UNPKG

4.55 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/index.js":
100/*!**********************************************************************!*\
101 !*** /root/amplify-js/node_modules/@aws-crypto/crc32/build/index.js ***!
102 \**********************************************************************/
103/*! no static exports found */
104/***/ (function(module, exports, __webpack_require__) {
105
106"use strict";
107
108Object.defineProperty(exports, "__esModule", { value: true });
109exports.Crc32 = exports.crc32 = void 0;
110var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
111function crc32(data) {
112 return new Crc32().update(data).digest();
113}
114exports.crc32 = crc32;
115var Crc32 = /** @class */ (function () {
116 function Crc32() {
117 this.checksum = 0xffffffff;
118 }
119 Crc32.prototype.update = function (data) {
120 var e_1, _a;
121 try {
122 for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
123 var byte = data_1_1.value;
124 this.checksum =
125 (this.checksum >>> 8) ^ lookupTable[(this.checksum ^ byte) & 0xff];
126 }
127 }
128 catch (e_1_1) { e_1 = { error: e_1_1 }; }
129 finally {
130 try {
131 if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);
132 }
133 finally { if (e_1) throw e_1.error; }
134 }
135 return this;
136 };
137 Crc32.prototype.digest = function () {
138 return (this.checksum ^ 0xffffffff) >>> 0;
139 };
140 return Crc32;
141}());
142exports.Crc32 = Crc32;
143// prettier-ignore
144var lookupTable = Uint32Array.from([
145 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA,
146 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
147 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988,
148 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91,
149 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE,
150 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7,
151 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
152 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5,
153 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172,
154 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B,
155 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940,
156 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59,
157 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116,
158 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F,
159 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924,
160 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D,
161 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A,
162 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433,
163 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818,
164 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01,
165 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E,
166 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457,
167 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C,
168 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65,
169 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2,
170 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB,
171 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0,
172 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9,
173 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086,
174 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F,
175 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4,
176 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD,
177 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A,
178 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683,
179 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8,
180 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1,
181 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE,
182 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7,
183 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC,
184 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5,
185 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252,
186 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B,
187 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60,
188 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79,
189 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236,
190 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F,
191 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04,
192 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D,
193 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A,
194 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713,
195 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38,
196 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21,
197 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E,
198 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777,
199 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C,
200 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45,
201 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2,
202 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB,
203 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0,
204 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9,
205 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6,
206 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF,
207 0xB3667A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N0IyQ0Y3RiwgMHgzMEI1RkZFOSxcbiAgMHhCREJERjIxQywgMHhDQUJBQzI4QSwgMHg1M0IzOTMzMCwgMHgyNEI0QTNBNixcbiAgMHhCQUQwMzYwNSwgMHhDREQ3MDY5MywgMHg1NERFNTcyOSwgMHgyM0Q5NjdCRixcbiAgMHhCMzY2N0EyRSwgMHhDNDYxNEFCOCwgMHg1RDY4MUIwMiwgMHgyQTZGMkI5NCxcbiAgMHhCNDBCQkUzNywgMHhDMzBDOEVBMSwgMHg1QTA1REYxQiwgMHgyRDAyRUY4RCxcbl0pO1xuIl19
211
212/***/ }),
213
214/***/ "../../node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js":
215/*!*****************************************************************************************!*\
216 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js ***!
217 \*****************************************************************************************/
218/*! no static exports found */
219/***/ (function(module, exports, __webpack_require__) {
220
221"use strict";
222
223Object.defineProperty(exports, "__esModule", { value: true });
224//# sourceMappingURL=CryptoOperation.js.map
225
226/***/ }),
227
228/***/ "../../node_modules/@aws-crypto/ie11-detection/build/Key.js":
229/*!*****************************************************************************!*\
230 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/Key.js ***!
231 \*****************************************************************************/
232/*! no static exports found */
233/***/ (function(module, exports, __webpack_require__) {
234
235"use strict";
236
237Object.defineProperty(exports, "__esModule", { value: true });
238//# sourceMappingURL=Key.js.map
239
240/***/ }),
241
242/***/ "../../node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js":
243/*!**************************************************************************************!*\
244 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js ***!
245 \**************************************************************************************/
246/*! no static exports found */
247/***/ (function(module, exports, __webpack_require__) {
248
249"use strict";
250
251Object.defineProperty(exports, "__esModule", { value: true });
252//# sourceMappingURL=KeyOperation.js.map
253
254/***/ }),
255
256/***/ "../../node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js":
257/*!****************************************************************************************!*\
258 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js ***!
259 \****************************************************************************************/
260/*! no static exports found */
261/***/ (function(module, exports, __webpack_require__) {
262
263"use strict";
264
265Object.defineProperty(exports, "__esModule", { value: true });
266//# sourceMappingURL=MsSubtleCrypto.js.map
267
268/***/ }),
269
270/***/ "../../node_modules/@aws-crypto/ie11-detection/build/MsWindow.js":
271/*!**********************************************************************************!*\
272 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js ***!
273 \**********************************************************************************/
274/*! no static exports found */
275/***/ (function(module, exports, __webpack_require__) {
276
277"use strict";
278
279Object.defineProperty(exports, "__esModule", { value: true });
280exports.isMsWindow = void 0;
281var msSubtleCryptoMethods = [
282 "decrypt",
283 "digest",
284 "encrypt",
285 "exportKey",
286 "generateKey",
287 "importKey",
288 "sign",
289 "verify"
290];
291function quacksLikeAnMsWindow(window) {
292 return "MSInputMethodContext" in window && "msCrypto" in window;
293}
294/**
295 * Determines if the provided window is (or is like) the window object one would
296 * expect to encounter in Internet Explorer 11.
297 */
298function isMsWindow(window) {
299 if (quacksLikeAnMsWindow(window) && window.msCrypto.subtle !== undefined) {
300 var _a = window.msCrypto, getRandomValues = _a.getRandomValues, subtle_1 = _a.subtle;
301 return msSubtleCryptoMethods
302 .map(function (methodName) { return subtle_1[methodName]; })
303 .concat(getRandomValues)
304 .every(function (method) { return typeof method === "function"; });
305 }
306 return false;
307}
308exports.isMsWindow = isMsWindow;
309//# sourceMappingURL=MsWindow.js.map
310
311/***/ }),
312
313/***/ "../../node_modules/@aws-crypto/ie11-detection/build/index.js":
314/*!*******************************************************************************!*\
315 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/index.js ***!
316 \*******************************************************************************/
317/*! no static exports found */
318/***/ (function(module, exports, __webpack_require__) {
319
320"use strict";
321
322Object.defineProperty(exports, "__esModule", { value: true });
323var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
324tslib_1.__exportStar(__webpack_require__(/*! ./CryptoOperation */ "../../node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js"), exports);
325tslib_1.__exportStar(__webpack_require__(/*! ./Key */ "../../node_modules/@aws-crypto/ie11-detection/build/Key.js"), exports);
326tslib_1.__exportStar(__webpack_require__(/*! ./KeyOperation */ "../../node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js"), exports);
327tslib_1.__exportStar(__webpack_require__(/*! ./MsSubtleCrypto */ "../../node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js"), exports);
328tslib_1.__exportStar(__webpack_require__(/*! ./MsWindow */ "../../node_modules/@aws-crypto/ie11-detection/build/MsWindow.js"), exports);
329//# sourceMappingURL=index.js.map
330
331/***/ }),
332
333/***/ "../../node_modules/@aws-crypto/sha256-browser/build/constants.js":
334/*!***********************************************************************************!*\
335 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/constants.js ***!
336 \***********************************************************************************/
337/*! no static exports found */
338/***/ (function(module, exports, __webpack_require__) {
339
340"use strict";
341
342Object.defineProperty(exports, "__esModule", { value: true });
343exports.EMPTY_DATA_SHA_256 = exports.SHA_256_HMAC_ALGO = exports.SHA_256_HASH = void 0;
344exports.SHA_256_HASH = { name: "SHA-256" };
345exports.SHA_256_HMAC_ALGO = {
346 name: "HMAC",
347 hash: exports.SHA_256_HASH
348};
349exports.EMPTY_DATA_SHA_256 = new Uint8Array([
350 227,
351 176,
352 196,
353 66,
354 152,
355 252,
356 28,
357 20,
358 154,
359 251,
360 244,
361 200,
362 153,
363 111,
364 185,
365 36,
366 39,
367 174,
368 65,
369 228,
370 100,
371 155,
372 147,
373 76,
374 164,
375 149,
376 153,
377 27,
378 120,
379 82,
380 184,
381 85
382]);
383//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOls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cG9ydCBjb25zdCBFTVBUWV9EQVRBX1NIQV8yNTYgPSBuZXcgVWludDhBcnJheShbXG4gIDIyNyxcbiAgMTc2LFxuICAxOTYsXG4gIDY2LFxuICAxNTIsXG4gIDI1MixcbiAgMjgsXG4gIDIwLFxuICAxNTQsXG4gIDI1MSxcbiAgMjQ0LFxuICAyMDAsXG4gIDE1MyxcbiAgMTExLFxuICAxODUsXG4gIDM2LFxuICAzOSxcbiAgMTc0LFxuICA2NSxcbiAgMjI4LFxuICAxMDAsXG4gIDE1NSxcbiAgMTQ3LFxuICA3NixcbiAgMTY0LFxuICAxNDksXG4gIDE1MyxcbiAgMjcsXG4gIDEyMCxcbiAgODIsXG4gIDE4NCxcbiAgODVcbl0pO1xuIl19
384
385/***/ }),
386
387/***/ "../../node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js":
388/*!*********************************************************************************************!*\
389 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js ***!
390 \*********************************************************************************************/
391/*! no static exports found */
392/***/ (function(module, exports, __webpack_require__) {
393
394"use strict";
395
396Object.defineProperty(exports, "__esModule", { value: true });
397exports.Sha256 = void 0;
398var ie11Sha256_1 = __webpack_require__(/*! ./ie11Sha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js");
399var webCryptoSha256_1 = __webpack_require__(/*! ./webCryptoSha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js");
400var sha256_js_1 = __webpack_require__(/*! @aws-crypto/sha256-js */ "../../node_modules/@aws-crypto/sha256-js/build/index.js");
401var supports_web_crypto_1 = __webpack_require__(/*! @aws-crypto/supports-web-crypto */ "../../node_modules/@aws-crypto/supports-web-crypto/build/index.js");
402var ie11_detection_1 = __webpack_require__(/*! @aws-crypto/ie11-detection */ "../../node_modules/@aws-crypto/ie11-detection/build/index.js");
403var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "../../node_modules/@aws-sdk/util-locate-window/dist/es/index.js");
404var Sha256 = /** @class */ (function () {
405 function Sha256(secret) {
406 if (supports_web_crypto_1.supportsWebCrypto(util_locate_window_1.locateWindow())) {
407 this.hash = new webCryptoSha256_1.Sha256(secret);
408 }
409 else if (ie11_detection_1.isMsWindow(util_locate_window_1.locateWindow())) {
410 this.hash = new ie11Sha256_1.Sha256(secret);
411 }
412 else {
413 this.hash = new sha256_js_1.Sha256(secret);
414 }
415 }
416 Sha256.prototype.update = function (data, encoding) {
417 this.hash.update(data, encoding);
418 };
419 Sha256.prototype.digest = function () {
420 return this.hash.digest();
421 };
422 return Sha256;
423}());
424exports.Sha256 = Sha256;
425//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3Jvc3NQbGF0Zm9ybVNoYTI1Ni5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jcm9zc1BsYXRmb3JtU2hhMjU2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJDQUFvRDtBQUNwRCxxREFBOEQ7QUFDOUQsbURBQTJEO0FBRTNELHVFQUFvRTtBQUNwRSw2REFBd0Q7QUFDeEQsa0VBQTJEO0FBRTNEO0lBR0UsZ0JBQVksTUFBbUI7UUFDN0IsSUFBSSx1Q0FBaUIsQ0FBQyxpQ0FBWSxFQUFFLENBQUMsRUFBRTtZQUNyQyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksd0JBQWUsQ0FBQyxNQUFNLENBQUMsQ0FBQztTQUN6QzthQUFNLElBQUksMkJBQVUsQ0FBQyxpQ0FBWSxFQUFFLENBQUMsRUFBRTtZQUNyQyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksbUJBQVUsQ0FBQyxNQUFNLENBQUMsQ0FBQztTQUNwQzthQUFNO1lBQ0wsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLGtCQUFRLENBQUMsTUFBTSxDQUFDLENBQUM7U0FDbEM7SU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VyY2VEYXRhKSB7XG4gICAgaWYgKHN1cHBvcnRzV2ViQ3J5cHRvKGxvY2F0ZVdpbmRvdygpKSkge1xuICAgICAgdGhpcy5oYXNoID0gbmV3IFdlYkNyeXB0b1NoYTI1NihzZWNyZXQpO1xuICAgIH0gZWxzZSBpZiAoaXNNc1dpbmRvdyhsb2NhdGVXaW5kb3coKSkpIHtcbiAgICAgIHRoaXMuaGFzaCA9IG5ldyBJZTExU2hhMjU2KHNlY3JldCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuaGFzaCA9IG5ldyBKc1NoYTI1NihzZWNyZXQpO1xuICAgIH1cbiAgfVxuXG4gIHVwZGF0ZShkYXRhOiBTb3VyY2VEYXRhLCBlbmNvZGluZz86IFwidXRmOFwiIHwgXCJhc2NpaVwiIHwgXCJsYXRpbjFcIik6IHZvaWQge1xuICAgIHRoaXMuaGFzaC51cGRhdGUoZGF0YSwgZW5jb2RpbmcpO1xuICB9XG5cbiAgZGlnZXN0KCk6IFByb21pc2U8VWludDhBcnJheT4ge1xuICAgIHJldHVybiB0aGlzLmhhc2guZGlnZXN0KCk7XG4gIH1cbn1cbiJdfQ==
426
427/***/ }),
428
429/***/ "../../node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js":
430/*!************************************************************************************!*\
431 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js ***!
432 \************************************************************************************/
433/*! no static exports found */
434/***/ (function(module, exports, __webpack_require__) {
435
436"use strict";
437
438Object.defineProperty(exports, "__esModule", { value: true });
439exports.Sha256 = void 0;
440var isEmptyData_1 = __webpack_require__(/*! ./isEmptyData */ "../../node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js");
441var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-browser/build/constants.js");
442var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
443var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "../../node_modules/@aws-sdk/util-locate-window/dist/es/index.js");
444var Sha256 = /** @class */ (function () {
445 function Sha256(secret) {
446 if (secret) {
447 this.operation = getKeyPromise(secret).then(function (keyData) {
448 return util_locate_window_1.locateWindow().msCrypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, keyData);
449 });
450 this.operation.catch(function () { });
451 }
452 else {
453 this.operation = Promise.resolve(util_locate_window_1.locateWindow().msCrypto.subtle.digest("SHA-256"));
454 }
455 }
456 Sha256.prototype.update = function (toHash) {
457 var _this = this;
458 if (isEmptyData_1.isEmptyData(toHash)) {
459 return;
460 }
461 this.operation = this.operation.then(function (operation) {
462 operation.onerror = function () {
463 _this.operation = Promise.reject(new Error("Error encountered updating hash"));
464 };
465 operation.process(toArrayBufferView(toHash));
466 return operation;
467 });
468 this.operation.catch(function () { });
469 };
470 Sha256.prototype.digest = function () {
471 return this.operation.then(function (operation) {
472 return new Promise(function (resolve, reject) {
473 operation.onerror = function () {
474 reject(new Error("Error encountered finalizing hash"));
475 };
476 operation.oncomplete = function () {
477 if (operation.result) {
478 resolve(new Uint8Array(operation.result));
479 }
480 reject(new Error("Error encountered finalizing hash"));
481 };
482 operation.finish();
483 });
484 });
485 };
486 return Sha256;
487}());
488exports.Sha256 = Sha256;
489function getKeyPromise(secret) {
490 return new Promise(function (resolve, reject) {
491 var keyOperation = util_locate_window_1.locateWindow().msCrypto.subtle.importKey("raw", toArrayBufferView(secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"]);
492 keyOperation.oncomplete = function () {
493 if (keyOperation.result) {
494 resolve(keyOperation.result);
495 }
496 reject(new Error("ImportKey completed without importing key."));
497 };
498 keyOperation.onerror = function () {
499 reject(new Error("ImportKey failed to import key."));
500 };
501 });
502}
503function toArrayBufferView(data) {
504 if (typeof data === "string") {
505 return util_utf8_browser_1.fromUtf8(data);
506 }
507 if (ArrayBuffer.isView(data)) {
508 return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
509 }
510 return new Uint8Array(data);
511}
512//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWUxMVNoYTI1Ni5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pZTExU2hhMjU2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZDQUE0QztBQUM1Qyx5Q0FBZ0Q7QUFFaEQsZ0VBQXNEO0FBRXRELGtFQUEyRDtBQUUzRDtJQUdFLGdCQUFZLE1BQW1CO1FBQzdCLElBQUksTUFBTSxFQUFFO1lBQ1YsSUFBSSxDQUFDLFNBQVMsR0FBRyxhQUFhLENBQUMsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUFDLFVBQUEsT0FBTztnQkFDakQsT0FBQyxpQ0FBWSxFQUFlLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQy9DLDZCQUFpQixFQUNqQixPQUFPLENBQ1I7WUFIRCxDQUdDLENBQ0YsQ0FBQztZQUNGLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLGNBQU8sQ0FBQyxDQUFDLENBQUM7U0FDaEM7YUFBTTtZQUNMLElBQUksQ0FBQyxTQUFTLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FDN0IsaUNBQVksRUFBZSxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUMvRCxDQUFDO1NBQ0g7SUFDSCxDQUFDO0lBRUQsdUJBQU0sR0FBTixVQUFPLE1BQWtCO1FBQXpCLGlCQWdCQztRQWZDLElBQUkseUJBQVcsQ0FBQyxNQUFNLENBQUMsRUFBRTtZQUN2QixPQUFPO1NBQ1I7UUFFRCxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxTQ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3BlcmF0aW9uLm9uZXJyb3IgPSAoKSA9PiB7XG4gICAgICAgICAgICByZWplY3QobmV3IEVycm9yKFwiRXJyb3IgZW5jb3VudGVyZWQgZmluYWxpemluZyBoYXNoXCIpKTtcbiAgICAgICAgICB9O1xuICAgICAgICAgIG9wZXJhdGlvbi5vbmNvbXBsZXRlID0gKCkgPT4ge1xuICAgICAgICAgICAgaWYgKG9wZXJhdGlvbi5yZXN1bHQpIHtcbiAgICAgICAgICAgICAgcmVzb2x2ZShuZXcgVWludDhBcnJheShvcGVyYXRpb24ucmVzdWx0KSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZWplY3QobmV3IEVycm9yKFwiRXJyb3IgZW5jb3VudGVyZWQgZmluYWxpemluZyBoYXNoXCIpKTtcbiAgICAgICAgICB9O1xuXG4gICAgICAgICAgb3BlcmF0aW9uLmZpbmlzaCgpO1xuICAgICAgICB9KVxuICAgICk7XG4gIH1cbn1cblxuZnVuY3Rpb24gZ2V0S2V5UHJvbWlzZShzZWNyZXQ6IFNvdXJjZURhdGEpOiBQcm9taXNlPEtleT4ge1xuICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgIGNvbnN0IGtleU9wZXJhdGlvbiA9IChsb2NhdGVXaW5kb3coKSBhcyBNc1dpbmRvdykubXNDcnlwdG8uc3VidGxlLmltcG9ydEtleShcbiAgICAgIFwicmF3XCIsXG4gICAgICB0b0FycmF5QnVmZmVyVmlldyhzZWNyZXQpLFxuICAgICAgU0hBXzI1Nl9ITUFDX0FMR08sXG4gICAgICBmYWxzZSxcbiAgICAgIFtcInNpZ25cIl1cbiAgICApO1xuXG4gICAga2V5T3BlcmF0aW9uLm9uY29tcGxldGUgPSAoKSA9PiB7XG4gICAgICBpZiAoa2V5T3BlcmF0aW9uLnJlc3VsdCkge1xuICAgICAgICByZXNvbHZlKGtleU9wZXJhdGlvbi5yZXN1bHQpO1xuICAgICAgfVxuXG4gICAgICByZWplY3QobmV3IEVycm9yKFwiSW1wb3J0S2V5IGNvbXBsZXRlZCB3aXRob3V0IGltcG9ydGluZyBrZXkuXCIpKTtcbiAgICB9O1xuICAgIGtleU9wZXJhdGlvbi5vbmVycm9yID0gKCkgPT4ge1xuICAgICAgcmVqZWN0KG5ldyBFcnJvcihcIkltcG9ydEtleSBmYWlsZWQgdG8gaW1wb3J0IGtleS5cIikpO1xuICAgIH07XG4gIH0pO1xufVxuXG5mdW5jdGlvbiB0b0FycmF5QnVmZmVyVmlldyhkYXRhOiBTb3VyY2VEYXRhKTogVWludDhBcnJheSB7XG4gIGlmICh0eXBlb2YgZGF0YSA9PT0gXCJzdHJpbmdcIikge1xuICAgIHJldHVybiBmcm9tVXRmOChkYXRhKTtcbiAgfVxuXG4gIGlmIChBcnJheUJ1ZmZlci5pc1ZpZXcoZGF0YSkpIHtcbiAgICByZXR1cm4gbmV3IFVpbnQ4QXJyYXkoXG4gICAgICBkYXRhLmJ1ZmZlcixcbiAgICAgIGRhdGEuYnl0ZU9mZnNldCxcbiAgICAgIGRhdGEuYnl0ZUxlbmd0aCAvIFVpbnQ4QXJyYXkuQllURVNfUEVSX0VMRU1FTlRcbiAgICApO1xuICB9XG5cbiAgcmV0dXJuIG5ldyBVaW50OEFycmF5KGRhdGEpO1xufVxuIl19
513
514/***/ }),
515
516/***/ "../../node_modules/@aws-crypto/sha256-browser/build/index.js":
517/*!*******************************************************************************!*\
518 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/index.js ***!
519 \*******************************************************************************/
520/*! no static exports found */
521/***/ (function(module, exports, __webpack_require__) {
522
523"use strict";
524
525Object.defineProperty(exports, "__esModule", { value: true });
526exports.WebCryptoSha256 = exports.Ie11Sha256 = void 0;
527var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
528tslib_1.__exportStar(__webpack_require__(/*! ./crossPlatformSha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js"), exports);
529var ie11Sha256_1 = __webpack_require__(/*! ./ie11Sha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js");
530Object.defineProperty(exports, "Ie11Sha256", { enumerable: true, get: function () { return ie11Sha256_1.Sha256; } });
531var webCryptoSha256_1 = __webpack_require__(/*! ./webCryptoSha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js");
532Object.defineProperty(exports, "WebCryptoSha256", { enumerable: true, get: function () { return webCryptoSha256_1.Sha256; } });
533//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGdFQUFzQztBQUN0QywyQ0FBb0Q7QUFBM0Msd0dBQUEsTUFBTSxPQUFjO0FBQzdCLHFEQUE4RDtBQUFyRCxrSEFBQSxNQUFNLE9BQW1CIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY3Jvc3NQbGF0Zm9ybVNoYTI1NlwiO1xuZXhwb3J0IHsgU2hhMjU2IGFzIEllMTFTaGEyNTYgfSBmcm9tIFwiLi9pZTExU2hhMjU2XCI7XG5leHBvcnQgeyBTaGEyNTYgYXMgV2ViQ3J5cHRvU2hhMjU2IH0gZnJvbSBcIi4vd2ViQ3J5cHRvU2hhMjU2XCI7XG4iXX0=
534
535/***/ }),
536
537/***/ "../../node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js":
538/*!*************************************************************************************!*\
539 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js ***!
540 \*************************************************************************************/
541/*! no static exports found */
542/***/ (function(module, exports, __webpack_require__) {
543
544"use strict";
545
546Object.defineProperty(exports, "__esModule", { value: true });
547exports.isEmptyData = void 0;
548function isEmptyData(data) {
549 if (typeof data === "string") {
550 return data.length === 0;
551 }
552 return data.byteLength === 0;
553}
554exports.isEmptyData = isEmptyData;
555//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNFbXB0eURhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaXNFbXB0eURhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsU0FBZ0IsV0FBVyxDQUFDLElBQWdCO0lBQzFDLElBQUksT0FBTyxJQUFJLEtBQUssUUFBUSxFQUFFO1FBQzVCLE9BQU8sSUFBSSxDQUFDLE1BQU0sS0FBSyxDQUFDLENBQUM7S0FDMUI7SUFFRCxPQUFPLElBQUksQ0FBQyxVQUFVLEtBQUssQ0FBQyxDQUFDO0FBQy9CLENBQUM7QUFORCxrQ0FNQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNvdXJjZURhdGEgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGlzRW1wdHlEYXRhKGRhdGE6IFNvdXJjZURhdGEpOiBib29sZWFuIHtcbiAgaWYgKHR5cGVvZiBkYXRhID09PSBcInN0cmluZ1wiKSB7XG4gICAgcmV0dXJuIGRhdGEubGVuZ3RoID09PSAwO1xuICB9XG5cbiAgcmV0dXJuIGRhdGEuYnl0ZUxlbmd0aCA9PT0gMDtcbn1cbiJdfQ==
556
557/***/ }),
558
559/***/ "../../node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js":
560/*!*****************************************************************************************!*\
561 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.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.Sha256 = void 0;
570var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
571var isEmptyData_1 = __webpack_require__(/*! ./isEmptyData */ "../../node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js");
572var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-browser/build/constants.js");
573var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "../../node_modules/@aws-sdk/util-locate-window/dist/es/index.js");
574var Sha256 = /** @class */ (function () {
575 function Sha256(secret) {
576 this.toHash = new Uint8Array(0);
577 if (secret !== void 0) {
578 this.key = new Promise(function (resolve, reject) {
579 util_locate_window_1.locateWindow()
580 .crypto.subtle.importKey("raw", convertToBuffer(secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"])
581 .then(resolve, reject);
582 });
583 this.key.catch(function () { });
584 }
585 }
586 Sha256.prototype.update = function (data) {
587 if (isEmptyData_1.isEmptyData(data)) {
588 return;
589 }
590 var update = convertToBuffer(data);
591 var typedArray = new Uint8Array(this.toHash.byteLength + update.byteLength);
592 typedArray.set(this.toHash, 0);
593 typedArray.set(update, this.toHash.byteLength);
594 this.toHash = typedArray;
595 };
596 Sha256.prototype.digest = function () {
597 var _this = this;
598 if (this.key) {
599 return this.key.then(function (key) {
600 return util_locate_window_1.locateWindow()
601 .crypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, key, _this.toHash)
602 .then(function (data) { return new Uint8Array(data); });
603 });
604 }
605 if (isEmptyData_1.isEmptyData(this.toHash)) {
606 return Promise.resolve(constants_1.EMPTY_DATA_SHA_256);
607 }
608 return Promise.resolve()
609 .then(function () {
610 return util_locate_window_1.locateWindow().crypto.subtle.digest(constants_1.SHA_256_HASH, _this.toHash);
611 })
612 .then(function (data) { return Promise.resolve(new Uint8Array(data)); });
613 };
614 return Sha256;
615}());
616exports.Sha256 = Sha256;
617function convertToBuffer(data) {
618 if (typeof data === "string") {
619 return util_utf8_browser_1.fromUtf8(data);
620 }
621 if (ArrayBuffer.isView(data)) {
622 return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
623 }
624 return new Uint8Array(data);
625}
626//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2ViQ3J5cHRvU2hhMjU2LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3dlYkNyeXB0b1NoYTI1Ni50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxnRUFBc0Q7QUFDdEQsNkNBQTRDO0FBQzVDLHlDQUlxQjtBQUNyQixrRUFBMkQ7QUFFM0Q7SUFJRSxnQkFBWSxNQUFtQjtRQUZ2QixXQUFNLEdBQWUsSUFBSSxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFHN0MsSUFBSSxNQUFNLEtBQUssS0FBSyxDQUFDLEVBQUU7WUFDckIsSUFBSSxDQUFDLEdBQUcsR0FBRyxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO2dCQUNyQyxpQ0FBWSxFQUFFO3FCQUNYLE1BQU0sQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUN0QixLQUFLLEVBQ0wsZUFBZSxDQUFDLE1BQU0sQ0FBQyxFQUN2Qiw2QkFBaUIsRUFDakIsS0FBSyxFQUNMLENBQUMsTUFBTSxDQUFDLENBQ1Q7cUJBQ0EsSUFBSSxDQUFDLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQztZQUMzQixDQUFDLENBQUMsQ0FBQztZQUNILElBQUksQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLGNBQU8sQ0FBQyxDQUFDLENBQUM7U0FDMUI7SUFDSCxDQUFDO0lBRUQsdUJBQU0sR0FBTixVQUFPLElBQWdCO1FBQ3JCLElBQUkseUJBQVcsQ0FBQyxJQUFJLENBQUMsRUFBRTtZQUNyQixPQUFPO1NBQ1I7UUFFRCxJQUFNLE1BQU0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AgaWYgKHR5cGVvZiBkYXRhID09PSBcInN0cmluZ1wiKSB7XG4gICAgcmV0dXJuIGZyb21VdGY4KGRhdGEpO1xuICB9XG5cbiAgaWYgKEFycmF5QnVmZmVyLmlzVmlldyhkYXRhKSkge1xuICAgIHJldHVybiBuZXcgVWludDhBcnJheShcbiAgICAgIGRhdGEuYnVmZmVyLFxuICAgICAgZGF0YS5ieXRlT2Zmc2V0LFxuICAgICAgZGF0YS5ieXRlTGVuZ3RoIC8gVWludDhBcnJheS5CWVRFU19QRVJfRUxFTUVOVFxuICAgICk7XG4gIH1cblxuICByZXR1cm4gbmV3IFVpbnQ4QXJyYXkoZGF0YSk7XG59XG4iXX0=
627
628/***/ }),
629
630/***/ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js":
631/*!*************************************************************************************************************************!*\
632 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js ***!
633 \*************************************************************************************************************************/
634/*! exports provided: fromUtf8, toUtf8 */
635/***/ (function(module, __webpack_exports__, __webpack_require__) {
636
637"use strict";
638__webpack_require__.r(__webpack_exports__);
639/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
640/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
641/* harmony import */ var _pureJs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pureJs */ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js");
642/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js");
643
644
645var fromUtf8 = function (input) {
646 return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
647};
648var toUtf8 = function (input) {
649 return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
650};
651//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsSUFBSSxVQUFVLEVBQUUsTUFBTSxJQUFJLFFBQVEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsUUFBUSxJQUFJLG1CQUFtQixFQUFFLE1BQU0sSUFBSSxpQkFBaUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBS25HLE1BQU0sQ0FBQyxJQUFNLFFBQVEsR0FBRyxVQUFDLEtBQWE7SUFDcEMsT0FBQSxPQUFPLFdBQVcsS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO0FBQWxGLENBQWtGLENBQUM7QUFFckYsTUFBTSxDQUFDLElBQU0sTUFBTSxHQUFHLFVBQUMsS0FBaUI7SUFDdEMsT0FBQSxPQUFPLFdBQVcsS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFDLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDO0FBQTlFLENBQThFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBmcm9tVXRmOCBhcyBqc0Zyb21VdGY4LCB0b1V0ZjggYXMganNUb1V0ZjggfSBmcm9tIFwiLi9wdXJlSnNcIjtcbmltcG9ydCB7IGZyb21VdGY4IGFzIHRleHRFbmNvZGVyRnJvbVV0ZjgsIHRvVXRmOCBhcyB0ZXh0RW5jb2RlclRvVXRmOCB9IGZyb20gXCIuL3doYXR3Z0VuY29kaW5nQXBpXCI7XG5cbmRlY2xhcmUgY29uc3QgVGV4dERlY29kZXI6IEZ1bmN0aW9uIHwgdW5kZWZpbmVkO1xuZGVjbGFyZSBjb25zdCBUZXh0RW5jb2RlcjogRnVuY3Rpb24gfCB1bmRlZmluZWQ7XG5cbmV4cG9ydCBjb25zdCBmcm9tVXRmOCA9IChpbnB1dDogc3RyaW5nKTogVWludDhBcnJheSA9PlxuICB0eXBlb2YgVGV4dEVuY29kZXIgPT09IFwiZnVuY3Rpb25cIiA/IHRleHRFbmNvZGVyRnJvbVV0ZjgoaW5wdXQpIDoganNGcm9tVXRmOChpbnB1dCk7XG5cbmV4cG9ydCBjb25zdCB0b1V0ZjggPSAoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcgPT5cbiAgdHlwZW9mIFRleHREZWNvZGVyID09PSBcImZ1bmN0aW9uXCIgPyB0ZXh0RW5jb2RlclRvVXRmOChpbnB1dCkgOiBqc1RvVXRmOChpbnB1dCk7XG4iXX0=
652
653/***/ }),
654
655/***/ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js":
656/*!**************************************************************************************************************************!*\
657 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js ***!
658 \**************************************************************************************************************************/
659/*! exports provided: fromUtf8, toUtf8 */
660/***/ (function(module, __webpack_exports__, __webpack_require__) {
661
662"use strict";
663__webpack_require__.r(__webpack_exports__);
664/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
665/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
666/**
667 * Converts a JS string from its native UCS-2/UTF-16 representation into a
668 * Uint8Array of the bytes used to represent the equivalent characters in UTF-8.
669 *
670 * Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google
671 * Closure library, though updated to use typed arrays.
672 */
673var fromUtf8 = function (input) {
674 var bytes = [];
675 for (var i = 0, len = input.length; i < len; i++) {
676 var value = input.charCodeAt(i);
677 if (value < 0x80) {
678 bytes.push(value);
679 }
680 else if (value < 0x800) {
681 bytes.push((value >> 6) | 192, (value & 63) | 128);
682 }
683 else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
684 var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023);
685 bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128);
686 }
687 else {
688 bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128);
689 }
690 }
691 return Uint8Array.from(bytes);
692};
693/**
694 * Converts a typed array of bytes containing UTF-8 data into a native JS
695 * string.
696 *
697 * Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the
698 * Google Closure library, though updated to use typed arrays and to better
699 * handle astral plane code points.
700 */
701var toUtf8 = function (input) {
702 var decoded = "";
703 for (var i = 0, len = input.length; i < len; i++) {
704 var byte = input[i];
705 if (byte < 0x80) {
706 decoded += String.fromCharCode(byte);
707 }
708 else if (192 <= byte && byte < 224) {
709 var nextByte = input[++i];
710 decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63));
711 }
712 else if (240 <= byte && byte < 365) {
713 var surrogatePair = [byte, input[++i], input[++i], input[++i]];
714 var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%");
715 decoded += decodeURIComponent(encoded);
716 }
717 else {
718 decoded += String.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5dGUsIGlucHV0WysraV0sIGlucHV0WysraV0sIGlucHV0WysraV1dO1xuICAgICAgY29uc3QgZW5jb2RlZCA9IFwiJVwiICsgc3Vycm9nYXRlUGFpci5tYXAoKGJ5dGVWYWx1ZSkgPT4gYnl0ZVZhbHVlLnRvU3RyaW5nKDE2KSkuam9pbihcIiVcIik7XG4gICAgICBkZWNvZGVkICs9IGRlY29kZVVSSUNvbXBvbmVudChlbmNvZGVkKTtcbiAgICB9IGVsc2Uge1xuICAgICAgZGVjb2RlZCArPSBTdHJpbmcuZnJvbUNoYXJDb2RlKFxuICAgICAgICAoKGJ5dGUgJiAwYjExMTEpIDw8IDEyKSB8ICgoaW5wdXRbKytpXSAmIDBiMTExMTExKSA8PCA2KSB8IChpbnB1dFsrK2ldICYgMGIxMTExMTEpXG4gICAgICApO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBkZWNvZGVkO1xufTtcbiJdfQ==
724
725/***/ }),
726
727/***/ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js":
728/*!*************************************************************************************************************************************!*\
729 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js ***!
730 \*************************************************************************************************************************************/
731/*! exports provided: fromUtf8, toUtf8 */
732/***/ (function(module, __webpack_exports__, __webpack_require__) {
733
734"use strict";
735__webpack_require__.r(__webpack_exports__);
736/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
737/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
738function fromUtf8(input) {
739 return new TextEncoder().encode(input);
740}
741function toUtf8(input) {
742 return new TextDecoder("utf-8").decode(input);
743}
744//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hhdHdnRW5jb2RpbmdBcGkuanMiLCJzb3VyY2VSb290Ijoi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ZXIgfCBBcnJheUJ1ZmZlclZpZXcsIG9wdGlvbnM/OiBUZXh0RGVjb2RlT3B0aW9ucyk6IHN0cmluZztcbiAgfVxuXG4gIGV4cG9ydCBpbnRlcmZhY2UgVGV4dERlY29kZXJDb25zdHJ1Y3RvciB7XG4gICAgbmV3IChsYWJlbD86IHN0cmluZywgb3B0aW9ucz86IFRleHREZWNvZGVyT3B0aW9ucyk6IFRleHREZWNvZGVyO1xuICB9XG5cbiAgaW50ZXJmYWNlIFRleHRFbmNvZGVyIHtcbiAgICByZWFkb25seSBlbmNvZGluZzogXCJ1dGYtOFwiO1xuICAgIGVuY29kZShpbnB1dD86IHN0cmluZyk6IFVpbnQ4QXJyYXk7XG4gIH1cblxuICBleHBvcnQgaW50ZXJmYWNlIFRleHRFbmNvZGVyQ29uc3RydWN0b3Ige1xuICAgIG5ldyAoKTogVGV4dEVuY29kZXI7XG4gIH1cbn1cblxuZGVjbGFyZSBjb25zdCBUZXh0RGVjb2RlcjogRW5jb2RpbmcuVGV4dERlY29kZXJDb25zdHJ1Y3RvcjtcblxuZGVjbGFyZSBjb25zdCBUZXh0RW5jb2RlcjogRW5jb2RpbmcuVGV4dEVuY29kZXJDb25zdHJ1Y3RvcjtcblxuZXhwb3J0IGZ1bmN0aW9uIGZyb21VdGY4KGlucHV0OiBzdHJpbmcpOiBVaW50OEFycmF5IHtcbiAgcmV0dXJuIG5ldyBUZXh0RW5jb2RlcigpLmVuY29kZShpbnB1dCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiB0b1V0ZjgoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcge1xuICByZXR1cm4gbmV3IFRleHREZWNvZGVyKFwidXRmLThcIikuZGVjb2RlKGlucHV0KTtcbn1cbiJdfQ==
745
746/***/ }),
747
748/***/ "../../node_modules/@aws-crypto/sha256-js/build/RawSha256.js":
749/*!******************************************************************************!*\
750 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/RawSha256.js ***!
751 \******************************************************************************/
752/*! no static exports found */
753/***/ (function(module, exports, __webpack_require__) {
754
755"use strict";
756
757Object.defineProperty(exports, "__esModule", { value: true });
758exports.RawSha256 = void 0;
759var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-js/build/constants.js");
760/**
761 * @internal
762 */
763var RawSha256 = /** @class */ (function () {
764 function RawSha256() {
765 this.state = Int32Array.from(constants_1.INIT);
766 this.temp = new Int32Array(64);
767 this.buffer = new Uint8Array(64);
768 this.bufferLength = 0;
769 this.bytesHashed = 0;
770 /**
771 * @internal
772 */
773 this.finished = false;
774 }
775 RawSha256.prototype.update = function (data) {
776 if (this.finished) {
777 throw new Error("Attempted to update an already finished hash.");
778 }
779 var position = 0;
780 var byteLength = data.byteLength;
781 this.bytesHashed += byteLength;
782 if (this.bytesHashed * 8 > constants_1.MAX_HASHABLE_LENGTH) {
783 throw new Error("Cannot hash more than 2^53 - 1 bits");
784 }
785 while (byteLength > 0) {
786 this.buffer[this.bufferLength++] = data[position++];
787 byteLength--;
788 if (this.bufferLength === constants_1.BLOCK_SIZE) {
789 this.hashBuffer();
790 this.bufferLength = 0;
791 }
792 }
793 };
794 RawSha256.prototype.digest = function () {
795 if (!this.finished) {
796 var bitsHashed = this.bytesHashed * 8;
797 var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength);
798 var undecoratedLength = this.bufferLength;
799 bufferView.setUint8(this.bufferLength++, 0x80);
800 // Ensure the final block has enough room for the hashed length
801 if (undecoratedLength % constants_1.BLOCK_SIZE >= constants_1.BLOCK_SIZE - 8) {
802 for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE; i++) {
803 bufferView.setUint8(i, 0);
804 }
805 this.hashBuffer();
806 this.bufferLength = 0;
807 }
808 for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE - 8; i++) {
809 bufferView.setUint8(i, 0);
810 }
811 bufferView.setUint32(constants_1.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true);
812 bufferView.setUint32(constants_1.BLOCK_SIZE - 4, bitsHashed);
813 this.hashBuffer();
814 this.finished = true;
815 }
816 // The value in state is little-endian rather than big-endian, so flip
817 // each word into a new Uint8Array
818 var out = new Uint8Array(constants_1.DIGEST_LENGTH);
819 for (var i = 0; i < 8; i++) {
820 out[i * 4] = (this.state[i] >>> 24) & 0xff;
821 out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff;
822 out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff;
823 out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff;
824 }
825 return out;
826 };
827 RawSha256.prototype.hashBuffer = function () {
828 var _a = this, buffer = _a.buffer, state = _a.state;
829 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];
830 for (var i = 0; i < constants_1.BLOCK_SIZE; i++) {
831 if (i < 16) {
832 this.temp[i] =
833 ((buffer[i * 4] & 0xff) << 24) |
834 ((buffer[i * 4 + 1] & 0xff) << 16) |
835 ((buffer[i * 4 + 2] & 0xff) << 8) |
836 (buffer[i * 4 + 3] & 0xff);
837 }
838 else {
839 var u = this.temp[i - 2];
840 var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10);
841 u = this.temp[i - 15];
842 var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3);
843 this.temp[i] =
844 ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0);
845 }
846 var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^
847 ((state4 >>> 11) | (state4 << 21)) ^
848 ((state4 >>> 25) | (state4 << 7))) +
849 ((state4 & state5) ^ (~state4 & state6))) |
850 0) +
851 ((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) |
852 0;
853 var t2 = ((((state0 >>> 2) | (state0 << 30)) ^
854 ((state0 >>> 13) | (state0 << 19)) ^
855 ((state0 >>> 22) | (state0 << 10))) +
856 ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) |
857 0;
858 state7 = state6;
859 state6 = state5;
860 state5 = state4;
861 state4 = (state3 + t1) | 0;
862 state3 = state2;
863 state2 = state1;
864 state1 = state0;
865 state0 = (t1 + t2) | 0;
866 }
867 state[0] += state0;
868 state[1] += state1;
869 state[2] += state2;
870 state[3] += state3;
871 state[4] += state4;
872 state[5] += state5;
873 state[6] += state6;
874 state[7] += state7;
875 };
876 return RawSha256;
877}());
878exports.RawSha256 = RawSha256;
879//# sourceMappingURL=RawSha256.js.map
880
881/***/ }),
882
883/***/ "../../node_modules/@aws-crypto/sha256-js/build/constants.js":
884/*!******************************************************************************!*\
885 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/constants.js ***!
886 \******************************************************************************/
887/*! no static exports found */
888/***/ (function(module, exports, __webpack_require__) {
889
890"use strict";
891
892Object.defineProperty(exports, "__esModule", { value: true });
893exports.MAX_HASHABLE_LENGTH = exports.INIT = exports.KEY = exports.DIGEST_LENGTH = exports.BLOCK_SIZE = void 0;
894/**
895 * @internal
896 */
897exports.BLOCK_SIZE = 64;
898/**
899 * @internal
900 */
901exports.DIGEST_LENGTH = 32;
902/**
903 * @internal
904 */
905exports.KEY = new Uint32Array([
906 0x428a2f98,
907 0x71374491,
908 0xb5c0fbcf,
909 0xe9b5dba5,
910 0x3956c25b,
911 0x59f111f1,
912 0x923f82a4,
913 0xab1c5ed5,
914 0xd807aa98,
915 0x12835b01,
916 0x243185be,
917 0x550c7dc3,
918 0x72be5d74,
919 0x80deb1fe,
920 0x9bdc06a7,
921 0xc19bf174,
922 0xe49b69c1,
923 0xefbe4786,
924 0x0fc19dc6,
925 0x240ca1cc,
926 0x2de92c6f,
927 0x4a7484aa,
928 0x5cb0a9dc,
929 0x76f988da,
930 0x983e5152,
931 0xa831c66d,
932 0xb00327c8,
933 0xbf597fc7,
934 0xc6e00bf3,
935 0xd5a79147,
936 0x06ca6351,
937 0x14292967,
938 0x27b70a85,
939 0x2e1b2138,
940 0x4d2c6dfc,
941 0x53380d13,
942 0x650a7354,
943 0x766a0abb,
944 0x81c2c92e,
945 0x92722c85,
946 0xa2bfe8a1,
947 0xa81a664b,
948 0xc24b8b70,
949 0xc76c51a3,
950 0xd192e819,
951 0xd6990624,
952 0xf40e3585,
953 0x106aa070,
954 0x19a4c116,
955 0x1e376c08,
956 0x2748774c,
957 0x34b0bcb5,
958 0x391c0cb3,
959 0x4ed8aa4a,
960 0x5b9cca4f,
961 0x682e6ff3,
962 0x748f82ee,
963 0x78a5636f,
964 0x84c87814,
965 0x8cc70208,
966 0x90befffa,
967 0xa4506ceb,
968 0xbef9a3f7,
969 0xc67178f2
970]);
971/**
972 * @internal
973 */
974exports.INIT = [
975 0x6a09e667,
976 0xbb67ae85,
977 0x3c6ef372,
978 0xa54ff53a,
979 0x510e527f,
980 0x9b05688c,
981 0x1f83d9ab,
982 0x5be0cd19
983];
984/**
985 * @internal
986 */
987exports.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1;
988//# sourceMappingURL=constants.js.map
989
990/***/ }),
991
992/***/ "../../node_modules/@aws-crypto/sha256-js/build/index.js":
993/*!**************************************************************************!*\
994 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/index.js ***!
995 \**************************************************************************/
996/*! no static exports found */
997/***/ (function(module, exports, __webpack_require__) {
998
999"use strict";
1000
1001Object.defineProperty(exports, "__esModule", { value: true });
1002var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
1003tslib_1.__exportStar(__webpack_require__(/*! ./jsSha256 */ "../../node_modules/@aws-crypto/sha256-js/build/jsSha256.js"), exports);
1004//# sourceMappingURL=index.js.map
1005
1006/***/ }),
1007
1008/***/ "../../node_modules/@aws-crypto/sha256-js/build/jsSha256.js":
1009/*!*****************************************************************************!*\
1010 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/jsSha256.js ***!
1011 \*****************************************************************************/
1012/*! no static exports found */
1013/***/ (function(module, exports, __webpack_require__) {
1014
1015"use strict";
1016
1017Object.defineProperty(exports, "__esModule", { value: true });
1018exports.Sha256 = void 0;
1019var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
1020var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-js/build/constants.js");
1021var RawSha256_1 = __webpack_require__(/*! ./RawSha256 */ "../../node_modules/@aws-crypto/sha256-js/build/RawSha256.js");
1022var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
1023var Sha256 = /** @class */ (function () {
1024 function Sha256(secret) {
1025 this.hash = new RawSha256_1.RawSha256();
1026 if (secret) {
1027 this.outer = new RawSha256_1.RawSha256();
1028 var inner = bufferFromSecret(secret);
1029 var outer = new Uint8Array(constants_1.BLOCK_SIZE);
1030 outer.set(inner);
1031 for (var i = 0; i < constants_1.BLOCK_SIZE; i++) {
1032 inner[i] ^= 0x36;
1033 outer[i] ^= 0x5c;
1034 }
1035 this.hash.update(inner);
1036 this.outer.update(outer);
1037 // overwrite the copied key in memory
1038 for (var i = 0; i < inner.byteLength; i++) {
1039 inner[i] = 0;
1040 }
1041 }
1042 }
1043 Sha256.prototype.update = function (toHash) {
1044 if (isEmptyData(toHash) || this.error) {
1045 return;
1046 }
1047 try {
1048 this.hash.update(convertToBuffer(toHash));
1049 }
1050 catch (e) {
1051 this.error = e;
1052 }
1053 };
1054 /* This synchronous method keeps compatibility
1055 * with the v2 aws-sdk.
1056 */
1057 Sha256.prototype.digestSync = function () {
1058 if (this.error) {
1059 throw this.error;
1060 }
1061 if (this.outer) {
1062 if (!this.outer.finished) {
1063 this.outer.update(this.hash.digest());
1064 }
1065 return this.outer.digest();
1066 }
1067 return this.hash.digest();
1068 };
1069 /* The underlying digest method here is synchronous.
1070 * To keep the same interface with the other hash functions
1071 * the default is to expose this as an async method.
1072 * However, it can sometimes be useful to have a sync method.
1073 */
1074 Sha256.prototype.digest = function () {
1075 return tslib_1.__awaiter(this, void 0, void 0, function () {
1076 return tslib_1.__generator(this, function (_a) {
1077 return [2 /*return*/, this.digestSync()];
1078 });
1079 });
1080 };
1081 return Sha256;
1082}());
1083exports.Sha256 = Sha256;
1084function bufferFromSecret(secret) {
1085 var input = convertToBuffer(secret);
1086 if (input.byteLength > constants_1.BLOCK_SIZE) {
1087 var bufferHash = new RawSha256_1.RawSha256();
1088 bufferHash.update(input);
1089 input = bufferHash.digest();
1090 }
1091 var buffer = new Uint8Array(constants_1.BLOCK_SIZE);
1092 buffer.set(input);
1093 return buffer;
1094}
1095function isEmptyData(data) {
1096 if (typeof data === "string") {
1097 return data.length === 0;
1098 }
1099 return data.byteLength === 0;
1100}
1101function convertToBuffer(data) {
1102 if (typeof data === "string") {
1103 return util_utf8_browser_1.fromUtf8(data);
1104 }
1105 if (ArrayBuffer.isView(data)) {
1106 return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1107 }
1108 return new Uint8Array(data);
1109}
1110//# sourceMappingURL=jsSha256.js.map
1111
1112/***/ }),
1113
1114/***/ "../../node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js":
1115/*!********************************************************************************************************************!*\
1116 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js ***!
1117 \********************************************************************************************************************/
1118/*! exports provided: fromUtf8, toUtf8 */
1119/***/ (function(module, __webpack_exports__, __webpack_require__) {
1120
1121"use strict";
1122__webpack_require__.r(__webpack_exports__);
1123/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
1124/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
1125/* harmony import */ var _pureJs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pureJs */ "../../node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js");
1126/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js");
1127
1128
1129var fromUtf8 = function (input) {
1130 return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
1131};
1132var toUtf8 = function (input) {
1133 return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
1134};
1135//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsSUFBSSxVQUFVLEVBQUUsTUFBTSxJQUFJLFFBQVEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsUUFBUSxJQUFJLG1CQUFtQixFQUFFLE1BQU0sSUFBSSxpQkFBaUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBS25HLE1BQU0sQ0FBQyxJQUFNLFFBQVEsR0FBRyxVQUFDLEtBQWE7SUFDcEMsT0FBQSxPQUFPLFdBQVcsS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQ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ws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js":
1140/*!*********************************************************************************************************************!*\
1141 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js ***!
1142 \*********************************************************************************************************************/
1143/*! exports provided: fromUtf8, toUtf8 */
1144/***/ (function(module, __webpack_exports__, __webpack_require__) {
1145
1146"use strict";
1147__webpack_require__.r(__webpack_exports__);
1148/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
1149/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
1150/**
1151 * Converts a JS string from its native UCS-2/UTF-16 representation into a
1152 * Uint8Array of the bytes used to represent the equivalent characters in UTF-8.
1153 *
1154 * Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google
1155 * Closure library, though updated to use typed arrays.
1156 */
1157var fromUtf8 = function (input) {
1158 var bytes = [];
1159 for (var i = 0, len = input.length; i < len; i++) {
1160 var value = input.charCodeAt(i);
1161 if (value < 0x80) {
1162 bytes.push(value);
1163 }
1164 else if (value < 0x800) {
1165 bytes.push((value >> 6) | 192, (value & 63) | 128);
1166 }
1167 else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
1168 var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023);
1169 bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128);
1170 }
1171 else {
1172 bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128);
1173 }
1174 }
1175 return Uint8Array.from(bytes);
1176};
1177/**
1178 * Converts a typed array of bytes containing UTF-8 data into a native JS
1179 * string.
1180 *
1181 * Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the
1182 * Google Closure library, though updated to use typed arrays and to better
1183 * handle astral plane code points.
1184 */
1185var toUtf8 = function (input) {
1186 var decoded = "";
1187 for (var i = 0, len = input.length; i < len; i++) {
1188 var byte = input[i];
1189 if (byte < 0x80) {
1190 decoded += String.fromCharCode(byte);
1191 }
1192 else if (192 <= byte && byte < 224) {
1193 var nextByte = input[++i];
1194 decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63));
1195 }
1196 else if (240 <= byte && byte < 365) {
1197 var surrogatePair = [byte, input[++i], input[++i], input[++i]];
1198 var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%");
1199 decoded += decodeURIComponent(encoded);
1200 }
1201 else {
1202 decoded += String.fromCharCode(((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63));
1203 }
1204 }
1205 return decoded;
1206};
1207//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVyZUpzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3B1cmVKcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxNQUFNLENBQUMsSUFBTSxRQUFRLEdBQUcsVUFBQyxLQUFhO0lBQ3BDLElBQU0sS0FBSyxHQUFrQixFQUFFLENBQUM7SUFDaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsR0FBRyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUNoRCxJQUFNLEtBQUssR0FBRyxLQUFLLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2xDLElBQUksS0FBSyxHQUFHLElBQUksRUFBRTtZQUNoQixLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1NBQ25CO2FBQU0sSUFBSSxLQUFLLE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ZGUoYnl0ZSk7XG4gICAgfSBlbHNlIGlmICgwYjExMDAwMDAwIDw9IGJ5dGUgJiYgYnl0ZSA8IDBiMTExMDAwMDApIHtcbiAgICAgIGNvbnN0IG5leHRCeXRlID0gaW5wdXRbKytpXTtcbiAgICAgIGRlY29kZWQgKz0gU3RyaW5nLmZyb21DaGFyQ29kZSgoKGJ5dGUgJiAwYjExMTExKSA8PCA2KSB8IChuZXh0Qnl0ZSAmIDBiMTExMTExKSk7XG4gICAgfSBlbHNlIGlmICgwYjExMTEwMDAwIDw9IGJ5dGUgJiYgYnl0ZSA8IDBiMTAxMTAxMTAxKSB7XG4gICAgICBjb25zdCBzdXJyb2dhdGVQYWlyID0gW2J5dGUsIGlucHV0WysraV0sIGlucHV0WysraV0sIGlucHV0WysraV1dO1xuICAgICAgY29uc3QgZW5jb2RlZCA9IFwiJVwiICsgc3Vycm9nYXRlUGFpci5tYXAoKGJ5dGVWYWx1ZSkgPT4gYnl0ZVZhbHVlLnRvU3RyaW5nKDE2KSkuam9pbihcIiVcIik7XG4gICAgICBkZWNvZGVkICs9IGRlY29kZVVSSUNvbXBvbmVudChlbmNvZGVkKTtcbiAgICB9IGVsc2Uge1xuICAgICAgZGVjb2RlZCArPSBTdHJpbmcuZnJvbUNoYXJDb2RlKFxuICAgICAgICAoKGJ5dGUgJiAwYjExMTEpIDw8IDEyKSB8ICgoaW5wdXRbKytpXSAmIDBiMTExMTExKSA8PCA2KSB8IChpbnB1dFsrK2ldICYgMGIxMTExMTEpXG4gICAgICApO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBkZWNvZGVkO1xufTtcbiJdfQ==
1208
1209/***/ }),
1210
1211/***/ "../../node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js":
1212/*!********************************************************************************************************************************!*\
1213 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js ***!
1214 \********************************************************************************************************************************/
1215/*! exports provided: fromUtf8, toUtf8 */
1216/***/ (function(module, __webpack_exports__, __webpack_require__) {
1217
1218"use strict";
1219__webpack_require__.r(__webpack_exports__);
1220/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
1221/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
1222function fromUtf8(input) {
1223 return new TextEncoder().encode(input);
1224}
1225function toUtf8(input) {
1226 return new TextDecoder("utf-8").decode(input);
1227}
1228//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hhdHdnRW5jb2RpbmdBcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd2hhdHdnRW5jb2RpbmdBcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNBLE1BQU0sVUFBVSxRQUFRLENBQUMsS0FBYTtJQUNwQyxPQUFPLElBQUksV0FBVyxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ3pDLENBQUM7QUFFRCxNQUFNLFVBQVUsTUFBTSxDQUFDLEtBQWlCO0lBQ3RDLE9BQU8sSUFBSSxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgZGVjbGFyYXRpb24gb2YgdGhlIGdsb2JhbCBUZXh0RW5jb2RlciBhbmQgVGV4dERlY29kZXIgY29uc3RydWN0b3JzLlxuICpcbiAqIEBzZWUgaHR0cHM6Ly9lbmNvZGluZy5zcGVjLndoYXR3Zy5vcmcvXG4gKi9cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tbmFtZXNwYWNlXG5uYW1lc3BhY2UgRW5jb2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GZ1bmN0aW9uIGZyb21VdGY4KGlucHV0OiBzdHJpbmcpOiBVaW50OEFycmF5IHtcbiAgcmV0dXJuIG5ldyBUZXh0RW5jb2RlcigpLmVuY29kZShpbnB1dCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiB0b1V0ZjgoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcge1xuICByZXR1cm4gbmV3IFRleHREZWNvZGVyKFwidXRmLThcIikuZGVjb2RlKGlucHV0KTtcbn1cbiJdfQ==
1229
1230/***/ }),
1231
1232/***/ "../../node_modules/@aws-crypto/supports-web-crypto/build/index.js":
1233/*!************************************************************************************!*\
1234 !*** /root/amplify-js/node_modules/@aws-crypto/supports-web-crypto/build/index.js ***!
1235 \************************************************************************************/
1236/*! no static exports found */
1237/***/ (function(module, exports, __webpack_require__) {
1238
1239"use strict";
1240
1241Object.defineProperty(exports, "__esModule", { value: true });
1242var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
1243tslib_1.__exportStar(__webpack_require__(/*! ./supportsWebCrypto */ "../../node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js"), exports);
1244//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOERBQW9DIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vc3VwcG9ydHNXZWJDcnlwdG9cIjtcbiJdfQ==
1245
1246/***/ }),
1247
1248/***/ "../../node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js":
1249/*!************************************************************************************************!*\
1250 !*** /root/amplify-js/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js ***!
1251 \************************************************************************************************/
1252/*! no static exports found */
1253/***/ (function(module, exports, __webpack_require__) {
1254
1255"use strict";
1256
1257Object.defineProperty(exports, "__esModule", { value: true });
1258exports.supportsZeroByteGCM = exports.supportsSubtleCrypto = exports.supportsSecureRandom = exports.supportsWebCrypto = void 0;
1259var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
1260var subtleCryptoMethods = [
1261 "decrypt",
1262 "digest",
1263 "encrypt",
1264 "exportKey",
1265 "generateKey",
1266 "importKey",
1267 "sign",
1268 "verify"
1269];
1270function supportsWebCrypto(window) {
1271 if (supportsSecureRandom(window) &&
1272 typeof window.crypto.subtle === "object") {
1273 var subtle = window.crypto.subtle;
1274 return supportsSubtleCrypto(subtle);
1275 }
1276 return false;
1277}
1278exports.supportsWebCrypto = supportsWebCrypto;
1279function supportsSecureRandom(window) {
1280 if (typeof window === "object" && typeof window.crypto === "object") {
1281 var getRandomValues = window.crypto.getRandomValues;
1282 return typeof getRandomValues === "function";
1283 }
1284 return false;
1285}
1286exports.supportsSecureRandom = supportsSecureRandom;
1287function supportsSubtleCrypto(subtle) {
1288 return (subtle &&
1289 subtleCryptoMethods.every(function (methodName) { return typeof subtle[methodName] === "function"; }));
1290}
1291exports.supportsSubtleCrypto = supportsSubtleCrypto;
1292function supportsZeroByteGCM(subtle) {
1293 return tslib_1.__awaiter(this, void 0, void 0, function () {
1294 var key, zeroByteAuthTag, _a;
1295 return tslib_1.__generator(this, function (_b) {
1296 switch (_b.label) {
1297 case 0:
1298 if (!supportsSubtleCrypto(subtle))
1299 return [2 /*return*/, false];
1300 _b.label = 1;
1301 case 1:
1302 _b.trys.push([1, 4, , 5]);
1303 return [4 /*yield*/, subtle.generateKey({ name: "AES-GCM", length: 128 }, false, ["encrypt"])];
1304 case 2:
1305 key = _b.sent();
1306 return [4 /*yield*/, subtle.encrypt({
1307 name: "AES-GCM",
1308 iv: new Uint8Array(Array(12)),
1309 additionalData: new Uint8Array(Array(16)),
1310 tagLength: 128
1311 }, key, new Uint8Array(0))];
1312 case 3:
1313 zeroByteAuthTag = _b.sent();
1314 return [2 /*return*/, zeroByteAuthTag.byteLength === 16];
1315 case 4:
1316 _a = _b.sent();
1317 return [2 /*return*/, false];
1318 case 5: return [2 /*return*/];
1319 }
1320 });
1321 });
1322}
1323exports.supportsZeroByteGCM = supportsZeroByteGCM;
1324//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwcG9ydHNXZWJDcnlwdG8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvc3VwcG9ydHNXZWJDcnlwdG8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQVVBLElBQU0sbUJBQW1CLEdBQThCO0lBQ3JELFNBQVM7SUFDVCxRQUFRO0lBQ1IsU0FBUztJQUNULFdBQVc7SUFDWCxhQUFhO0lBQ2IsV0FBVztJQUNYLE1BQU07SUFDTixRQUFRO0NBQ1QsQ0FBQztBQUVGLFNBQWdCLGlCQUFpQixDQUFDLE1BQWM7SUFDOUMsSUFDRSxvQkFBb0IsQ0FBQyxNQUFNLENBQUM7UUFDNUIsT0FBTyxNQUFNLENBQUMsTUFBTSxDQUFDLE1BQU0sS0FBSyxRQUFRLEVBQ3hDO1FBQ1EsSUFBQSxNQUFNLEdBQUssTUFBTSxDQUFDLE1BQU0sT0FBbEIsQ0FBbUI7UUFFakMsT0FBTyxvQkFBb0IsQ0FBQyxNQUFNLENBQUMsQ0FBQztLQUNyQztJQUVELE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQVhELDhDQVdDO0FBRUQsU0FBZ0Isb0JBQW9CLENBQUMsTUFBYztJQUNqRCxJQUFJLE9BQU8sTUFBTSxLQUFLLFFBQVEsSUFBSSxPQUFPLE1BQU0sQ0FBQyxNQUFNLEtBQUssUUFBUSxFQUFFO1FBQzNELElBQUEsZUFBZSxHQUFLLE1BQU0sQ0FBQyxNQUFNLGdCQUFsQixDQUFtQjtRQUUxQyxPQUFPLE9BQ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uZXcgVWludDhBcnJheShBcnJheSgxNikpLFxuICAgICAgICB0YWdMZW5ndGg6IDEyOFxuICAgICAgfSxcbiAgICAgIGtleSxcbiAgICAgIG5ldyBVaW50OEFycmF5KDApXG4gICAgKTtcbiAgICByZXR1cm4gemVyb0J5dGVBdXRoVGFnLmJ5dGVMZW5ndGggPT09IDE2O1xuICB9IGNhdGNoIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cbiJdfQ==
1325
1326/***/ }),
1327
1328/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/Firehose.js":
1329/*!**********************************************************************************!*\
1330 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/Firehose.js ***!
1331 \**********************************************************************************/
1332/*! exports provided: Firehose */
1333/***/ (function(module, __webpack_exports__, __webpack_require__) {
1334
1335"use strict";
1336__webpack_require__.r(__webpack_exports__);
1337/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Firehose", function() { return Firehose; });
1338/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1339/* harmony import */ var _FirehoseClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FirehoseClient */ "../../node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js");
1340/* harmony import */ var _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js");
1341/* harmony import */ var _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DeleteDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js");
1342/* harmony import */ var _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DescribeDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js");
1343/* harmony import */ var _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/ListDeliveryStreamsCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js");
1344/* harmony import */ var _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/ListTagsForDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js");
1345/* harmony import */ var _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/PutRecordBatchCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js");
1346/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js");
1347/* harmony import */ var _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/StartDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js");
1348/* harmony import */ var _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/StopDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js");
1349/* harmony import */ var _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/TagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js");
1350/* harmony import */ var _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/UntagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js");
1351/* harmony import */ var _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/UpdateDestinationCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js");
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366/**
1367 * <fullname>Amazon Kinesis Data Firehose API Reference</fullname>
1368 * <p>Amazon Kinesis Data Firehose is a fully managed service that delivers real-time
1369 * streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon
1370 * Elasticsearch Service (Amazon ES), Amazon Redshift, and Splunk.</p>
1371 */
1372var Firehose = /** @class */ (function (_super) {
1373 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Firehose, _super);
1374 function Firehose() {
1375 return _super !== null && _super.apply(this, arguments) || this;
1376 }
1377 Firehose.prototype.createDeliveryStream = function (args, optionsOrCb, cb) {
1378 var command = new _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__["CreateDeliveryStreamCommand"](args);
1379 if (typeof optionsOrCb === "function") {
1380 this.send(command, optionsOrCb);
1381 }
1382 else if (typeof cb === "function") {
1383 if (typeof optionsOrCb !== "object")
1384 throw new Error("Expect http options but get " + typeof optionsOrCb);
1385 this.send(command, optionsOrCb || {}, cb);
1386 }
1387 else {
1388 return this.send(command, optionsOrCb);
1389 }
1390 };
1391 Firehose.prototype.deleteDeliveryStream = function (args, optionsOrCb, cb) {
1392 var command = new _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__["DeleteDeliveryStreamCommand"](args);
1393 if (typeof optionsOrCb === "function") {
1394 this.send(command, optionsOrCb);
1395 }
1396 else if (typeof cb === "function") {
1397 if (typeof optionsOrCb !== "object")
1398 throw new Error("Expect http options but get " + typeof optionsOrCb);
1399 this.send(command, optionsOrCb || {}, cb);
1400 }
1401 else {
1402 return this.send(command, optionsOrCb);
1403 }
1404 };
1405 Firehose.prototype.describeDeliveryStream = function (args, optionsOrCb, cb) {
1406 var command = new _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__["DescribeDeliveryStreamCommand"](args);
1407 if (typeof optionsOrCb === "function") {
1408 this.send(command, optionsOrCb);
1409 }
1410 else if (typeof cb === "function") {
1411 if (typeof optionsOrCb !== "object")
1412 throw new Error("Expect http options but get " + typeof optionsOrCb);
1413 this.send(command, optionsOrCb || {}, cb);
1414 }
1415 else {
1416 return this.send(command, optionsOrCb);
1417 }
1418 };
1419 Firehose.prototype.listDeliveryStreams = function (args, optionsOrCb, cb) {
1420 var command = new _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__["ListDeliveryStreamsCommand"](args);
1421 if (typeof optionsOrCb === "function") {
1422 this.send(command, optionsOrCb);
1423 }
1424 else if (typeof cb === "function") {
1425 if (typeof optionsOrCb !== "object")
1426 throw new Error("Expect http options but get " + typeof optionsOrCb);
1427 this.send(command, optionsOrCb || {}, cb);
1428 }
1429 else {
1430 return this.send(command, optionsOrCb);
1431 }
1432 };
1433 Firehose.prototype.listTagsForDeliveryStream = function (args, optionsOrCb, cb) {
1434 var command = new _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__["ListTagsForDeliveryStreamCommand"](args);
1435 if (typeof optionsOrCb === "function") {
1436 this.send(command, optionsOrCb);
1437 }
1438 else if (typeof cb === "function") {
1439 if (typeof optionsOrCb !== "object")
1440 throw new Error("Expect http options but get " + typeof optionsOrCb);
1441 this.send(command, optionsOrCb || {}, cb);
1442 }
1443 else {
1444 return this.send(command, optionsOrCb);
1445 }
1446 };
1447 Firehose.prototype.putRecord = function (args, optionsOrCb, cb) {
1448 var command = new _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_8__["PutRecordCommand"](args);
1449 if (typeof optionsOrCb === "function") {
1450 this.send(command, optionsOrCb);
1451 }
1452 else if (typeof cb === "function") {
1453 if (typeof optionsOrCb !== "object")
1454 throw new Error("Expect http options but get " + typeof optionsOrCb);
1455 this.send(command, optionsOrCb || {}, cb);
1456 }
1457 else {
1458 return this.send(command, optionsOrCb);
1459 }
1460 };
1461 Firehose.prototype.putRecordBatch = function (args, optionsOrCb, cb) {
1462 var command = new _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_7__["PutRecordBatchCommand"](args);
1463 if (typeof optionsOrCb === "function") {
1464 this.send(command, optionsOrCb);
1465 }
1466 else if (typeof cb === "function") {
1467 if (typeof optionsOrCb !== "object")
1468 throw new Error("Expect http options but get " + typeof optionsOrCb);
1469 this.send(command, optionsOrCb || {}, cb);
1470 }
1471 else {
1472 return this.send(command, optionsOrCb);
1473 }
1474 };
1475 Firehose.prototype.startDeliveryStreamEncryption = function (args, optionsOrCb, cb) {
1476 var command = new _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__["StartDeliveryStreamEncryptionCommand"](args);
1477 if (typeof optionsOrCb === "function") {
1478 this.send(command, optionsOrCb);
1479 }
1480 else if (typeof cb === "function") {
1481 if (typeof optionsOrCb !== "object")
1482 throw new Error("Expect http options but get " + typeof optionsOrCb);
1483 this.send(command, optionsOrCb || {}, cb);
1484 }
1485 else {
1486 return this.send(command, optionsOrCb);
1487 }
1488 };
1489 Firehose.prototype.stopDeliveryStreamEncryption = function (args, optionsOrCb, cb) {
1490 var command = new _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__["StopDeliveryStreamEncryptionCommand"](args);
1491 if (typeof optionsOrCb === "function") {
1492 this.send(command, optionsOrCb);
1493 }
1494 else if (typeof cb === "function") {
1495 if (typeof optionsOrCb !== "object")
1496 throw new Error("Expect http options but get " + typeof optionsOrCb);
1497 this.send(command, optionsOrCb || {}, cb);
1498 }
1499 else {
1500 return this.send(command, optionsOrCb);
1501 }
1502 };
1503 Firehose.prototype.tagDeliveryStream = function (args, optionsOrCb, cb) {
1504 var command = new _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__["TagDeliveryStreamCommand"](args);
1505 if (typeof optionsOrCb === "function") {
1506 this.send(command, optionsOrCb);
1507 }
1508 else if (typeof cb === "function") {
1509 if (typeof optionsOrCb !== "object")
1510 throw new Error("Expect http options but get " + typeof optionsOrCb);
1511 this.send(command, optionsOrCb || {}, cb);
1512 }
1513 else {
1514 return this.send(command, optionsOrCb);
1515 }
1516 };
1517 Firehose.prototype.untagDeliveryStream = function (args, optionsOrCb, cb) {
1518 var command = new _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__["UntagDeliveryStreamCommand"](args);
1519 if (typeof optionsOrCb === "function") {
1520 this.send(command, optionsOrCb);
1521 }
1522 else if (typeof cb === "function") {
1523 if (typeof optionsOrCb !== "object")
1524 throw new Error("Expect http options but get " + typeof optionsOrCb);
1525 this.send(command, optionsOrCb || {}, cb);
1526 }
1527 else {
1528 return this.send(command, optionsOrCb);
1529 }
1530 };
1531 Firehose.prototype.updateDestination = function (args, optionsOrCb, cb) {
1532 var command = new _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__["UpdateDestinationCommand"](args);
1533 if (typeof optionsOrCb === "function") {
1534 this.send(command, optionsOrCb);
1535 }
1536 else if (typeof cb === "function") {
1537 if (typeof optionsOrCb !== "object")
1538 throw new Error("Expect http options but get " + typeof optionsOrCb);
1539 this.send(command, optionsOrCb || {}, cb);
1540 }
1541 else {
1542 return this.send(command, optionsOrCb);
1543 }
1544 };
1545 return Firehose;
1546}(_FirehoseClient__WEBPACK_IMPORTED_MODULE_1__["FirehoseClient"]));
1547
1548//# sourceMappingURL=Firehose.js.map
1549
1550/***/ }),
1551
1552/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js":
1553/*!****************************************************************************************!*\
1554 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js ***!
1555 \****************************************************************************************/
1556/*! exports provided: FirehoseClient */
1557/***/ (function(module, __webpack_exports__, __webpack_require__) {
1558
1559"use strict";
1560__webpack_require__.r(__webpack_exports__);
1561/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FirehoseClient", function() { return FirehoseClient; });
1562/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1563/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.browser.js");
1564/* 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");
1565/* 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");
1566/* 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");
1567/* 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");
1568/* 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");
1569/* 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");
1570/* 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");
1571/* 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");
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582/**
1583 * <fullname>Amazon Kinesis Data Firehose API Reference</fullname>
1584 * <p>Amazon Kinesis Data Firehose is a fully managed service that delivers real-time
1585 * streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon
1586 * Elasticsearch Service (Amazon ES), Amazon Redshift, and Splunk.</p>
1587 */
1588var FirehoseClient = /** @class */ (function (_super) {
1589 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FirehoseClient, _super);
1590 function FirehoseClient(configuration) {
1591 var _this = this;
1592 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
1593 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
1594 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
1595 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2);
1596 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3);
1597 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_4);
1598 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_5);
1599 _this = _super.call(this, _config_6) || this;
1600 _this.config = _config_6;
1601 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config));
1602 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config));
1603 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config));
1604 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config));
1605 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config));
1606 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config));
1607 return _this;
1608 }
1609 FirehoseClient.prototype.destroy = function () {
1610 _super.prototype.destroy.call(this);
1611 };
1612 return FirehoseClient;
1613}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"]));
1614
1615//# sourceMappingURL=FirehoseClient.js.map
1616
1617/***/ }),
1618
1619/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js":
1620/*!**************************************************************************************************************!*\
1621 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js ***!
1622 \**************************************************************************************************************/
1623/*! exports provided: CreateDeliveryStreamCommand */
1624/***/ (function(module, __webpack_exports__, __webpack_require__) {
1625
1626"use strict";
1627__webpack_require__.r(__webpack_exports__);
1628/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamCommand", function() { return CreateDeliveryStreamCommand; });
1629/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1630/* 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");
1631/* 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");
1632/* 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");
1633/* 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");
1634
1635
1636
1637
1638
1639/**
1640 * <p>Creates a Kinesis Data Firehose delivery stream.</p>
1641 *
1642 * <p>By default, you can create up to 50 delivery streams per AWS Region.</p>
1643 * <p>This is an asynchronous operation that immediately returns. The initial status of the
1644 * delivery stream is <code>CREATING</code>. After the delivery stream is created, its status
1645 * is <code>ACTIVE</code> and it now accepts data. If the delivery stream creation fails, the
1646 * status transitions to <code>CREATING_FAILED</code>. Attempts to send data to a delivery
1647 * stream that is not in the <code>ACTIVE</code> state cause an exception. To check the state
1648 * of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
1649 * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
1650 * doesn't change, and you can't invoke <code>CreateDeliveryStream</code> again on it.
1651 * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete
1652 * it.</p>
1653 * <p>A Kinesis Data Firehose delivery stream can be configured to receive records directly
1654 * from providers using <a>PutRecord</a> or <a>PutRecordBatch</a>, or it
1655 * can be configured to use an existing Kinesis stream as its source. To specify a Kinesis
1656 * data stream as input, set the <code>DeliveryStreamType</code> parameter to
1657 * <code>KinesisStreamAsSource</code>, and provide the Kinesis stream Amazon Resource Name
1658 * (ARN) and role ARN in the <code>KinesisStreamSourceConfiguration</code>
1659 * parameter.</p>
1660 * <p>To create a delivery stream with server-side encryption (SSE) enabled, include <a>DeliveryStreamEncryptionConfigurationInput</a> in your request. This is
1661 * optional. You can also invoke <a>StartDeliveryStreamEncryption</a> to turn on
1662 * SSE for an existing delivery stream that doesn't have SSE enabled.</p>
1663 * <p>A delivery stream is configured with a single destination: Amazon S3, Amazon ES,
1664 * Amazon Redshift, or Splunk. You must specify only one of the following destination
1665 * configuration parameters: <code>ExtendedS3DestinationConfiguration</code>,
1666 * <code>S3DestinationConfiguration</code>,
1667 * <code>ElasticsearchDestinationConfiguration</code>,
1668 * <code>RedshiftDestinationConfiguration</code>, or
1669 * <code>SplunkDestinationConfiguration</code>.</p>
1670 * <p>When you specify <code>S3DestinationConfiguration</code>, you can also provide the
1671 * following optional values: BufferingHints, <code>EncryptionConfiguration</code>, and
1672 * <code>CompressionFormat</code>. By default, if no <code>BufferingHints</code> value is
1673 * provided, Kinesis Data Firehose buffers data up to 5 MB or for 5 minutes, whichever
1674 * condition is satisfied first. <code>BufferingHints</code> is a hint, so there are some
1675 * cases where the service cannot adhere to these conditions strictly. For example, record
1676 * boundaries might be such that the size is a little over or under the configured buffering
1677 * size. By default, no encryption is performed. We strongly recommend that you enable
1678 * encryption to ensure secure data storage in Amazon S3.</p>
1679 *
1680 * <p>A few notes about Amazon Redshift as a destination:</p>
1681 * <ul>
1682 * <li>
1683 * <p>An Amazon Redshift destination requires an S3 bucket as intermediate location.
1684 * Kinesis Data Firehose first delivers data to Amazon S3 and then uses
1685 * <code>COPY</code> syntax to load data into an Amazon Redshift table. This is
1686 * specified in the <code>RedshiftDestinationConfiguration.S3Configuration</code>
1687 * parameter.</p>
1688 *
1689 * </li>
1690 * <li>
1691 * <p>The compression formats <code>SNAPPY</code> or <code>ZIP</code> cannot be
1692 * specified in <code>RedshiftDestinationConfiguration.S3Configuration</code> because
1693 * the Amazon Redshift <code>COPY</code> operation that reads from the S3 bucket doesn't
1694 * support these compression formats.</p>
1695 * </li>
1696 * <li>
1697 * <p>We strongly recommend that you use the user name and password you provide
1698 * exclusively with Kinesis Data Firehose, and that the permissions for the account are
1699 * restricted for Amazon Redshift <code>INSERT</code> permissions.</p>
1700 *
1701 * </li>
1702 * </ul>
1703 * <p>Kinesis Data Firehose assumes the IAM role that is configured as part of the
1704 * destination. The role should allow the Kinesis Data Firehose principal to assume the role,
1705 * and the role should have permissions that allow the service to deliver the data. For more
1706 * information, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3">Grant Kinesis Data
1707 * Firehose Access to an Amazon S3 Destination</a> in the <i>Amazon Kinesis Data
1708 * Firehose Developer Guide</i>.</p>
1709 */
1710var CreateDeliveryStreamCommand = /** @class */ (function (_super) {
1711 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateDeliveryStreamCommand, _super);
1712 // Start section: command_properties
1713 // End section: command_properties
1714 function CreateDeliveryStreamCommand(input) {
1715 var _this =
1716 // Start section: command_constructor
1717 _super.call(this) || this;
1718 _this.input = input;
1719 return _this;
1720 // End section: command_constructor
1721 }
1722 /**
1723 * @internal
1724 */
1725 CreateDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1726 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1727 var stack = clientStack.concat(this.middlewareStack);
1728 var logger = configuration.logger;
1729 var clientName = "FirehoseClient";
1730 var commandName = "CreateDeliveryStreamCommand";
1731 var handlerExecutionContext = {
1732 logger: logger,
1733 clientName: clientName,
1734 commandName: commandName,
1735 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateDeliveryStreamInput"].filterSensitiveLog,
1736 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateDeliveryStreamOutput"].filterSensitiveLog,
1737 };
1738 var requestHandler = configuration.requestHandler;
1739 return stack.resolve(function (request) {
1740 return requestHandler.handle(request.request, options || {});
1741 }, handlerExecutionContext);
1742 };
1743 CreateDeliveryStreamCommand.prototype.serialize = function (input, context) {
1744 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateDeliveryStreamCommand"])(input, context);
1745 };
1746 CreateDeliveryStreamCommand.prototype.deserialize = function (output, context) {
1747 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateDeliveryStreamCommand"])(output, context);
1748 };
1749 return CreateDeliveryStreamCommand;
1750}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
1751
1752//# sourceMappingURL=CreateDeliveryStreamCommand.js.map
1753
1754/***/ }),
1755
1756/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js":
1757/*!**************************************************************************************************************!*\
1758 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js ***!
1759 \**************************************************************************************************************/
1760/*! exports provided: DeleteDeliveryStreamCommand */
1761/***/ (function(module, __webpack_exports__, __webpack_require__) {
1762
1763"use strict";
1764__webpack_require__.r(__webpack_exports__);
1765/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamCommand", function() { return DeleteDeliveryStreamCommand; });
1766/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1767/* 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");
1768/* 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");
1769/* 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");
1770/* 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");
1771
1772
1773
1774
1775
1776/**
1777 * <p>Deletes a delivery stream and its data.</p>
1778 * <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:
1779 * <code>ACTIVE</code>, <code>DELETING</code>, <code>CREATING_FAILED</code>, or
1780 * <code>DELETING_FAILED</code>. You can't delete a delivery stream that is in the
1781 * <code>CREATING</code> state. While the deletion request is in process, the delivery
1782 * stream is in the <code>DELETING</code> state.</p>
1783 * <p>While the delivery stream is in the <code>DELETING</code> state, the service might
1784 * continue to accept records, but it doesn't make any guarantees with respect to delivering
1785 * the data. Therefore, as a best practice, first stop any applications that are sending
1786 * records before you delete a delivery stream.</p>
1787 */
1788var DeleteDeliveryStreamCommand = /** @class */ (function (_super) {
1789 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteDeliveryStreamCommand, _super);
1790 // Start section: command_properties
1791 // End section: command_properties
1792 function DeleteDeliveryStreamCommand(input) {
1793 var _this =
1794 // Start section: command_constructor
1795 _super.call(this) || this;
1796 _this.input = input;
1797 return _this;
1798 // End section: command_constructor
1799 }
1800 /**
1801 * @internal
1802 */
1803 DeleteDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1804 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1805 var stack = clientStack.concat(this.middlewareStack);
1806 var logger = configuration.logger;
1807 var clientName = "FirehoseClient";
1808 var commandName = "DeleteDeliveryStreamCommand";
1809 var handlerExecutionContext = {
1810 logger: logger,
1811 clientName: clientName,
1812 commandName: commandName,
1813 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteDeliveryStreamInput"].filterSensitiveLog,
1814 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteDeliveryStreamOutput"].filterSensitiveLog,
1815 };
1816 var requestHandler = configuration.requestHandler;
1817 return stack.resolve(function (request) {
1818 return requestHandler.handle(request.request, options || {});
1819 }, handlerExecutionContext);
1820 };
1821 DeleteDeliveryStreamCommand.prototype.serialize = function (input, context) {
1822 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteDeliveryStreamCommand"])(input, context);
1823 };
1824 DeleteDeliveryStreamCommand.prototype.deserialize = function (output, context) {
1825 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteDeliveryStreamCommand"])(output, context);
1826 };
1827 return DeleteDeliveryStreamCommand;
1828}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
1829
1830//# sourceMappingURL=DeleteDeliveryStreamCommand.js.map
1831
1832/***/ }),
1833
1834/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js":
1835/*!****************************************************************************************************************!*\
1836 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js ***!
1837 \****************************************************************************************************************/
1838/*! exports provided: DescribeDeliveryStreamCommand */
1839/***/ (function(module, __webpack_exports__, __webpack_require__) {
1840
1841"use strict";
1842__webpack_require__.r(__webpack_exports__);
1843/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamCommand", function() { return DescribeDeliveryStreamCommand; });
1844/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1845/* 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");
1846/* 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");
1847/* 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");
1848/* 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");
1849
1850
1851
1852
1853
1854/**
1855 * <p>Describes the specified delivery stream and its status. For example, after your
1856 * delivery stream is created, call <code>DescribeDeliveryStream</code> to see whether the
1857 * delivery stream is <code>ACTIVE</code> and therefore ready for data to be sent to it. </p>
1858 * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
1859 * doesn't change, and you can't invoke <a>CreateDeliveryStream</a> again on it.
1860 * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete it.
1861 * 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>
1862 */
1863var DescribeDeliveryStreamCommand = /** @class */ (function (_super) {
1864 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeDeliveryStreamCommand, _super);
1865 // Start section: command_properties
1866 // End section: command_properties
1867 function DescribeDeliveryStreamCommand(input) {
1868 var _this =
1869 // Start section: command_constructor
1870 _super.call(this) || this;
1871 _this.input = input;
1872 return _this;
1873 // End section: command_constructor
1874 }
1875 /**
1876 * @internal
1877 */
1878 DescribeDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1879 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1880 var stack = clientStack.concat(this.middlewareStack);
1881 var logger = configuration.logger;
1882 var clientName = "FirehoseClient";
1883 var commandName = "DescribeDeliveryStreamCommand";
1884 var handlerExecutionContext = {
1885 logger: logger,
1886 clientName: clientName,
1887 commandName: commandName,
1888 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeDeliveryStreamInput"].filterSensitiveLog,
1889 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeDeliveryStreamOutput"].filterSensitiveLog,
1890 };
1891 var requestHandler = configuration.requestHandler;
1892 return stack.resolve(function (request) {
1893 return requestHandler.handle(request.request, options || {});
1894 }, handlerExecutionContext);
1895 };
1896 DescribeDeliveryStreamCommand.prototype.serialize = function (input, context) {
1897 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeDeliveryStreamCommand"])(input, context);
1898 };
1899 DescribeDeliveryStreamCommand.prototype.deserialize = function (output, context) {
1900 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeDeliveryStreamCommand"])(output, context);
1901 };
1902 return DescribeDeliveryStreamCommand;
1903}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
1904
1905//# sourceMappingURL=DescribeDeliveryStreamCommand.js.map
1906
1907/***/ }),
1908
1909/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js":
1910/*!*************************************************************************************************************!*\
1911 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js ***!
1912 \*************************************************************************************************************/
1913/*! exports provided: ListDeliveryStreamsCommand */
1914/***/ (function(module, __webpack_exports__, __webpack_require__) {
1915
1916"use strict";
1917__webpack_require__.r(__webpack_exports__);
1918/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsCommand", function() { return ListDeliveryStreamsCommand; });
1919/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1920/* 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");
1921/* 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");
1922/* 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");
1923/* 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");
1924
1925
1926
1927
1928
1929/**
1930 * <p>Lists your delivery streams in alphabetical order of their names.</p>
1931 * <p>The number of delivery streams might be too large to return using a single call to
1932 * <code>ListDeliveryStreams</code>. You can limit the number of delivery streams returned,
1933 * using the <code>Limit</code> parameter. To determine whether there are more delivery
1934 * streams to list, check the value of <code>HasMoreDeliveryStreams</code> in the output. If
1935 * there are more delivery streams to list, you can request them by calling this operation
1936 * again and setting the <code>ExclusiveStartDeliveryStreamName</code> parameter to the name
1937 * of the last delivery stream returned in the last call.</p>
1938 */
1939var ListDeliveryStreamsCommand = /** @class */ (function (_super) {
1940 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListDeliveryStreamsCommand, _super);
1941 // Start section: command_properties
1942 // End section: command_properties
1943 function ListDeliveryStreamsCommand(input) {
1944 var _this =
1945 // Start section: command_constructor
1946 _super.call(this) || this;
1947 _this.input = input;
1948 return _this;
1949 // End section: command_constructor
1950 }
1951 /**
1952 * @internal
1953 */
1954 ListDeliveryStreamsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1955 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1956 var stack = clientStack.concat(this.middlewareStack);
1957 var logger = configuration.logger;
1958 var clientName = "FirehoseClient";
1959 var commandName = "ListDeliveryStreamsCommand";
1960 var handlerExecutionContext = {
1961 logger: logger,
1962 clientName: clientName,
1963 commandName: commandName,
1964 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListDeliveryStreamsInput"].filterSensitiveLog,
1965 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListDeliveryStreamsOutput"].filterSensitiveLog,
1966 };
1967 var requestHandler = configuration.requestHandler;
1968 return stack.resolve(function (request) {
1969 return requestHandler.handle(request.request, options || {});
1970 }, handlerExecutionContext);
1971 };
1972 ListDeliveryStreamsCommand.prototype.serialize = function (input, context) {
1973 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListDeliveryStreamsCommand"])(input, context);
1974 };
1975 ListDeliveryStreamsCommand.prototype.deserialize = function (output, context) {
1976 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListDeliveryStreamsCommand"])(output, context);
1977 };
1978 return ListDeliveryStreamsCommand;
1979}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
1980
1981//# sourceMappingURL=ListDeliveryStreamsCommand.js.map
1982
1983/***/ }),
1984
1985/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js":
1986/*!*******************************************************************************************************************!*\
1987 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js ***!
1988 \*******************************************************************************************************************/
1989/*! exports provided: ListTagsForDeliveryStreamCommand */
1990/***/ (function(module, __webpack_exports__, __webpack_require__) {
1991
1992"use strict";
1993__webpack_require__.r(__webpack_exports__);
1994/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamCommand", function() { return ListTagsForDeliveryStreamCommand; });
1995/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1996/* 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");
1997/* 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");
1998/* 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");
1999/* 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");
2000
2001
2002
2003
2004
2005/**
2006 * <p>Lists the tags for the specified delivery stream. This operation has a limit of five
2007 * transactions per second per account. </p>
2008 */
2009var ListTagsForDeliveryStreamCommand = /** @class */ (function (_super) {
2010 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForDeliveryStreamCommand, _super);
2011 // Start section: command_properties
2012 // End section: command_properties
2013 function ListTagsForDeliveryStreamCommand(input) {
2014 var _this =
2015 // Start section: command_constructor
2016 _super.call(this) || this;
2017 _this.input = input;
2018 return _this;
2019 // End section: command_constructor
2020 }
2021 /**
2022 * @internal
2023 */
2024 ListTagsForDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2025 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2026 var stack = clientStack.concat(this.middlewareStack);
2027 var logger = configuration.logger;
2028 var clientName = "FirehoseClient";
2029 var commandName = "ListTagsForDeliveryStreamCommand";
2030 var handlerExecutionContext = {
2031 logger: logger,
2032 clientName: clientName,
2033 commandName: commandName,
2034 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForDeliveryStreamInput"].filterSensitiveLog,
2035 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForDeliveryStreamOutput"].filterSensitiveLog,
2036 };
2037 var requestHandler = configuration.requestHandler;
2038 return stack.resolve(function (request) {
2039 return requestHandler.handle(request.request, options || {});
2040 }, handlerExecutionContext);
2041 };
2042 ListTagsForDeliveryStreamCommand.prototype.serialize = function (input, context) {
2043 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTagsForDeliveryStreamCommand"])(input, context);
2044 };
2045 ListTagsForDeliveryStreamCommand.prototype.deserialize = function (output, context) {
2046 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTagsForDeliveryStreamCommand"])(output, context);
2047 };
2048 return ListTagsForDeliveryStreamCommand;
2049}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2050
2051//# sourceMappingURL=ListTagsForDeliveryStreamCommand.js.map
2052
2053/***/ }),
2054
2055/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js":
2056/*!********************************************************************************************************!*\
2057 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js ***!
2058 \********************************************************************************************************/
2059/*! exports provided: PutRecordBatchCommand */
2060/***/ (function(module, __webpack_exports__, __webpack_require__) {
2061
2062"use strict";
2063__webpack_require__.r(__webpack_exports__);
2064/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchCommand", function() { return PutRecordBatchCommand; });
2065/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2066/* 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");
2067/* 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");
2068/* 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");
2069/* 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");
2070
2071
2072
2073
2074
2075/**
2076 * <p>Writes multiple data records into a delivery stream in a single call, which can
2077 * achieve higher throughput per producer than when writing single records. To write single
2078 * data records into a delivery stream, use <a>PutRecord</a>. Applications using
2079 * these operations are referred to as producers.</p>
2080 * <p>For information about service quota, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon Kinesis Data Firehose
2081 * Quota</a>.</p>
2082 * <p>Each <a>PutRecordBatch</a> request supports up to 500 records. Each record
2083 * in the request can be as large as 1,000 KB (before 64-bit encoding), up to a limit of 4 MB
2084 * for the entire request. These limits cannot be changed.</p>
2085 * <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
2086 * KB in size, and any kind of data. For example, it could be a segment from a log file,
2087 * geographic location data, website clickstream data, and so on.</p>
2088 * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
2089 * disambiguate the data blobs at the destination, a common solution is to use delimiters in
2090 * the data, such as a newline (<code>\n</code>) or some other character unique within the
2091 * data. This allows the consumer application to parse individual data items when reading the
2092 * data from the destination.</p>
2093 * <p>The <a>PutRecordBatch</a> response includes a count of failed records,
2094 * <code>FailedPutCount</code>, and an array of responses, <code>RequestResponses</code>.
2095 * Even if the <a>PutRecordBatch</a> call succeeds, the value of
2096 * <code>FailedPutCount</code> may be greater than 0, indicating that there are records for
2097 * which the operation didn't succeed. Each entry in the <code>RequestResponses</code> array
2098 * provides additional information about the processed record. It directly correlates with a
2099 * record in the request array using the same ordering, from the top to the bottom. The
2100 * response array always includes the same number of records as the request array.
2101 * <code>RequestResponses</code> includes both successfully and unsuccessfully processed
2102 * records. Kinesis Data Firehose tries to process all records in each <a>PutRecordBatch</a> request. A single record failure does not stop the processing
2103 * of subsequent records. </p>
2104 * <p>A successfully processed record includes a <code>RecordId</code> value, which is
2105 * unique for the record. An unsuccessfully processed record includes <code>ErrorCode</code>
2106 * and <code>ErrorMessage</code> values. <code>ErrorCode</code> reflects the type of error,
2107 * and is one of the following values: <code>ServiceUnavailableException</code> or
2108 * <code>InternalFailure</code>. <code>ErrorMessage</code> provides more detailed
2109 * information about the error.</p>
2110 * <p>If there is an internal server error or a timeout, the write might have completed or
2111 * it might have failed. If <code>FailedPutCount</code> is greater than 0, retry the request,
2112 * resending only those records that might have failed processing. This minimizes the possible
2113 * duplicate records and also reduces the total bytes sent (and corresponding charges). We
2114 * recommend that you handle any duplicates at the destination.</p>
2115 * <p>If <a>PutRecordBatch</a> throws <code>ServiceUnavailableException</code>,
2116 * back off and retry. If the exception persists, it is possible that the throughput limits
2117 * have been exceeded for the delivery stream.</p>
2118 *
2119 * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
2120 * are added to a delivery stream as it attempts to send the records to the destination. If
2121 * the destination is unreachable for more than 24 hours, the data is no longer
2122 * available.</p>
2123 * <important>
2124 * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
2125 * Instead, concatenate the raw data, then perform base64 encoding.</p>
2126 * </important>
2127 */
2128var PutRecordBatchCommand = /** @class */ (function (_super) {
2129 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordBatchCommand, _super);
2130 // Start section: command_properties
2131 // End section: command_properties
2132 function PutRecordBatchCommand(input) {
2133 var _this =
2134 // Start section: command_constructor
2135 _super.call(this) || this;
2136 _this.input = input;
2137 return _this;
2138 // End section: command_constructor
2139 }
2140 /**
2141 * @internal
2142 */
2143 PutRecordBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2144 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2145 var stack = clientStack.concat(this.middlewareStack);
2146 var logger = configuration.logger;
2147 var clientName = "FirehoseClient";
2148 var commandName = "PutRecordBatchCommand";
2149 var handlerExecutionContext = {
2150 logger: logger,
2151 clientName: clientName,
2152 commandName: commandName,
2153 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordBatchInput"].filterSensitiveLog,
2154 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordBatchOutput"].filterSensitiveLog,
2155 };
2156 var requestHandler = configuration.requestHandler;
2157 return stack.resolve(function (request) {
2158 return requestHandler.handle(request.request, options || {});
2159 }, handlerExecutionContext);
2160 };
2161 PutRecordBatchCommand.prototype.serialize = function (input, context) {
2162 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordBatchCommand"])(input, context);
2163 };
2164 PutRecordBatchCommand.prototype.deserialize = function (output, context) {
2165 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordBatchCommand"])(output, context);
2166 };
2167 return PutRecordBatchCommand;
2168}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2169
2170//# sourceMappingURL=PutRecordBatchCommand.js.map
2171
2172/***/ }),
2173
2174/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js":
2175/*!***************************************************************************************************!*\
2176 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js ***!
2177 \***************************************************************************************************/
2178/*! exports provided: PutRecordCommand */
2179/***/ (function(module, __webpack_exports__, __webpack_require__) {
2180
2181"use strict";
2182__webpack_require__.r(__webpack_exports__);
2183/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return PutRecordCommand; });
2184/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2185/* 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");
2186/* 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");
2187/* 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");
2188/* 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");
2189
2190
2191
2192
2193
2194/**
2195 * <p>Writes a single data record into an Amazon Kinesis Data Firehose delivery stream. To
2196 * write multiple data records into a delivery stream, use <a>PutRecordBatch</a>.
2197 * Applications using these operations are referred to as producers.</p>
2198 * <p>By default, each delivery stream can take in up to 2,000 transactions per second,
2199 * 5,000 records per second, or 5 MB per second. If you use <a>PutRecord</a> and
2200 * <a>PutRecordBatch</a>, the limits are an aggregate across these two
2201 * operations for each delivery stream. For more information about limits and how to request
2202 * an increase, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon
2203 * Kinesis Data Firehose Limits</a>. </p>
2204 * <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
2205 * KB in size, and any kind of data. For example, it can be a segment from a log file,
2206 * geographic location data, website clickstream data, and so on.</p>
2207 * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
2208 * disambiguate the data blobs at the destination, a common solution is to use delimiters in
2209 * the data, such as a newline (<code>\n</code>) or some other character unique within the
2210 * data. This allows the consumer application to parse individual data items when reading the
2211 * data from the destination.</p>
2212 * <p>The <code>PutRecord</code> operation returns a <code>RecordId</code>, which is a
2213 * unique string assigned to each record. Producer applications can use this ID for purposes
2214 * such as auditability and investigation.</p>
2215 * <p>If the <code>PutRecord</code> operation throws a
2216 * <code>ServiceUnavailableException</code>, back off and retry. If the exception persists,
2217 * it is possible that the throughput limits have been exceeded for the delivery stream. </p>
2218 * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
2219 * are added to a delivery stream as it tries to send the records to the destination. If the
2220 * destination is unreachable for more than 24 hours, the data is no longer
2221 * available.</p>
2222 *
2223 * <important>
2224 * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
2225 * Instead, concatenate the raw data, then perform base64 encoding.</p>
2226 * </important>
2227 */
2228var PutRecordCommand = /** @class */ (function (_super) {
2229 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordCommand, _super);
2230 // Start section: command_properties
2231 // End section: command_properties
2232 function PutRecordCommand(input) {
2233 var _this =
2234 // Start section: command_constructor
2235 _super.call(this) || this;
2236 _this.input = input;
2237 return _this;
2238 // End section: command_constructor
2239 }
2240 /**
2241 * @internal
2242 */
2243 PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2244 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2245 var stack = clientStack.concat(this.middlewareStack);
2246 var logger = configuration.logger;
2247 var clientName = "FirehoseClient";
2248 var commandName = "PutRecordCommand";
2249 var handlerExecutionContext = {
2250 logger: logger,
2251 clientName: clientName,
2252 commandName: commandName,
2253 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordInput"].filterSensitiveLog,
2254 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordOutput"].filterSensitiveLog,
2255 };
2256 var requestHandler = configuration.requestHandler;
2257 return stack.resolve(function (request) {
2258 return requestHandler.handle(request.request, options || {});
2259 }, handlerExecutionContext);
2260 };
2261 PutRecordCommand.prototype.serialize = function (input, context) {
2262 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordCommand"])(input, context);
2263 };
2264 PutRecordCommand.prototype.deserialize = function (output, context) {
2265 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordCommand"])(output, context);
2266 };
2267 return PutRecordCommand;
2268}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2269
2270//# sourceMappingURL=PutRecordCommand.js.map
2271
2272/***/ }),
2273
2274/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js":
2275/*!***********************************************************************************************************************!*\
2276 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js ***!
2277 \***********************************************************************************************************************/
2278/*! exports provided: StartDeliveryStreamEncryptionCommand */
2279/***/ (function(module, __webpack_exports__, __webpack_require__) {
2280
2281"use strict";
2282__webpack_require__.r(__webpack_exports__);
2283/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionCommand", function() { return StartDeliveryStreamEncryptionCommand; });
2284/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2285/* 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");
2286/* 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");
2287/* 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");
2288/* 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");
2289
2290
2291
2292
2293
2294/**
2295 * <p>Enables server-side encryption (SSE) for the delivery stream. </p>
2296 * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
2297 * Firehose first sets the encryption status of the stream to <code>ENABLING</code>, and then
2298 * to <code>ENABLED</code>. The encryption status of a delivery stream is the
2299 * <code>Status</code> property in <a>DeliveryStreamEncryptionConfiguration</a>.
2300 * If the operation fails, the encryption status changes to <code>ENABLING_FAILED</code>. You
2301 * can continue to read and write data to your delivery stream while the encryption status is
2302 * <code>ENABLING</code>, but the data is not encrypted. It can take up to 5 seconds after
2303 * the encryption status changes to <code>ENABLED</code> before all records written to the
2304 * delivery stream are encrypted. To find out whether a record or a batch of records was
2305 * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
2306 * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
2307 * <p>To check the encryption status of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
2308 * <p>Even if encryption is currently enabled for a delivery stream, you can still invoke this
2309 * operation on it to change the ARN of the CMK or both its type and ARN. If you invoke this
2310 * method to change the CMK, and the old CMK is of type <code>CUSTOMER_MANAGED_CMK</code>,
2311 * Kinesis Data Firehose schedules the grant it had on the old CMK for retirement. If the new
2312 * CMK is of type <code>CUSTOMER_MANAGED_CMK</code>, Kinesis Data Firehose creates a grant
2313 * that enables it to use the new CMK to encrypt and decrypt data and to manage the
2314 * grant.</p>
2315 * <p>If a delivery stream already has encryption enabled and then you invoke this operation
2316 * to change the ARN of the CMK or both its type and ARN and you get
2317 * <code>ENABLING_FAILED</code>, this only means that the attempt to change the CMK failed.
2318 * In this case, encryption remains enabled with the old CMK.</p>
2319 * <p>If the encryption status of your delivery stream is <code>ENABLING_FAILED</code>, you
2320 * can invoke this operation again with a valid CMK. The CMK must be enabled and the key
2321 * policy mustn't explicitly deny the permission for Kinesis Data Firehose to invoke KMS
2322 * encrypt and decrypt operations.</p>
2323 * <p>You can enable SSE for a delivery stream only if it's a delivery stream that uses
2324 * <code>DirectPut</code> as its source. </p>
2325 * <p>The <code>StartDeliveryStreamEncryption</code> and
2326 * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
2327 * per delivery stream per 24 hours. For example, you reach the limit if you call
2328 * <code>StartDeliveryStreamEncryption</code> 13 times and
2329 * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
2330 * 24-hour period.</p>
2331 */
2332var StartDeliveryStreamEncryptionCommand = /** @class */ (function (_super) {
2333 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartDeliveryStreamEncryptionCommand, _super);
2334 // Start section: command_properties
2335 // End section: command_properties
2336 function StartDeliveryStreamEncryptionCommand(input) {
2337 var _this =
2338 // Start section: command_constructor
2339 _super.call(this) || this;
2340 _this.input = input;
2341 return _this;
2342 // End section: command_constructor
2343 }
2344 /**
2345 * @internal
2346 */
2347 StartDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2348 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2349 var stack = clientStack.concat(this.middlewareStack);
2350 var logger = configuration.logger;
2351 var clientName = "FirehoseClient";
2352 var commandName = "StartDeliveryStreamEncryptionCommand";
2353 var handlerExecutionContext = {
2354 logger: logger,
2355 clientName: clientName,
2356 commandName: commandName,
2357 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StartDeliveryStreamEncryptionInput"].filterSensitiveLog,
2358 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StartDeliveryStreamEncryptionOutput"].filterSensitiveLog,
2359 };
2360 var requestHandler = configuration.requestHandler;
2361 return stack.resolve(function (request) {
2362 return requestHandler.handle(request.request, options || {});
2363 }, handlerExecutionContext);
2364 };
2365 StartDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) {
2366 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartDeliveryStreamEncryptionCommand"])(input, context);
2367 };
2368 StartDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) {
2369 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartDeliveryStreamEncryptionCommand"])(output, context);
2370 };
2371 return StartDeliveryStreamEncryptionCommand;
2372}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2373
2374//# sourceMappingURL=StartDeliveryStreamEncryptionCommand.js.map
2375
2376/***/ }),
2377
2378/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js":
2379/*!**********************************************************************************************************************!*\
2380 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js ***!
2381 \**********************************************************************************************************************/
2382/*! exports provided: StopDeliveryStreamEncryptionCommand */
2383/***/ (function(module, __webpack_exports__, __webpack_require__) {
2384
2385"use strict";
2386__webpack_require__.r(__webpack_exports__);
2387/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionCommand", function() { return StopDeliveryStreamEncryptionCommand; });
2388/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2389/* 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");
2390/* 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");
2391/* 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");
2392/* 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");
2393
2394
2395
2396
2397
2398/**
2399 * <p>Disables server-side encryption (SSE) for the delivery stream. </p>
2400 * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
2401 * Firehose first sets the encryption status of the stream to <code>DISABLING</code>, and then
2402 * to <code>DISABLED</code>. You can continue to read and write data to your stream while its
2403 * status is <code>DISABLING</code>. It can take up to 5 seconds after the encryption status
2404 * changes to <code>DISABLED</code> before all records written to the delivery stream are no
2405 * longer subject to encryption. To find out whether a record or a batch of records was
2406 * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
2407 * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
2408 * <p>To check the encryption state of a delivery stream, use <a>DescribeDeliveryStream</a>. </p>
2409 * <p>If SSE is enabled using a customer managed CMK and then you invoke
2410 * <code>StopDeliveryStreamEncryption</code>, Kinesis Data Firehose schedules the related
2411 * KMS grant for retirement and then retires it after it ensures that it is finished
2412 * delivering records to the destination.</p>
2413 * <p>The <code>StartDeliveryStreamEncryption</code> and
2414 * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
2415 * per delivery stream per 24 hours. For example, you reach the limit if you call
2416 * <code>StartDeliveryStreamEncryption</code> 13 times and
2417 * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
2418 * 24-hour period.</p>
2419 */
2420var StopDeliveryStreamEncryptionCommand = /** @class */ (function (_super) {
2421 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopDeliveryStreamEncryptionCommand, _super);
2422 // Start section: command_properties
2423 // End section: command_properties
2424 function StopDeliveryStreamEncryptionCommand(input) {
2425 var _this =
2426 // Start section: command_constructor
2427 _super.call(this) || this;
2428 _this.input = input;
2429 return _this;
2430 // End section: command_constructor
2431 }
2432 /**
2433 * @internal
2434 */
2435 StopDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2436 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2437 var stack = clientStack.concat(this.middlewareStack);
2438 var logger = configuration.logger;
2439 var clientName = "FirehoseClient";
2440 var commandName = "StopDeliveryStreamEncryptionCommand";
2441 var handlerExecutionContext = {
2442 logger: logger,
2443 clientName: clientName,
2444 commandName: commandName,
2445 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StopDeliveryStreamEncryptionInput"].filterSensitiveLog,
2446 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StopDeliveryStreamEncryptionOutput"].filterSensitiveLog,
2447 };
2448 var requestHandler = configuration.requestHandler;
2449 return stack.resolve(function (request) {
2450 return requestHandler.handle(request.request, options || {});
2451 }, handlerExecutionContext);
2452 };
2453 StopDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) {
2454 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopDeliveryStreamEncryptionCommand"])(input, context);
2455 };
2456 StopDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) {
2457 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopDeliveryStreamEncryptionCommand"])(output, context);
2458 };
2459 return StopDeliveryStreamEncryptionCommand;
2460}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2461
2462//# sourceMappingURL=StopDeliveryStreamEncryptionCommand.js.map
2463
2464/***/ }),
2465
2466/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js":
2467/*!***********************************************************************************************************!*\
2468 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js ***!
2469 \***********************************************************************************************************/
2470/*! exports provided: TagDeliveryStreamCommand */
2471/***/ (function(module, __webpack_exports__, __webpack_require__) {
2472
2473"use strict";
2474__webpack_require__.r(__webpack_exports__);
2475/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamCommand", function() { return TagDeliveryStreamCommand; });
2476/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2477/* 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");
2478/* 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");
2479/* 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");
2480/* 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");
2481
2482
2483
2484
2485
2486/**
2487 * <p>Adds or updates tags for the specified delivery stream. A tag is a key-value pair
2488 * that you can define and assign to AWS resources. If you specify a tag that already exists,
2489 * the tag value is replaced with the value that you specify in the request. Tags are
2490 * metadata. For example, you can add friendly names and descriptions or other types of
2491 * information that can help you distinguish the delivery stream. For more information about
2492 * 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
2493 * User Guide</i>. </p>
2494 * <p>Each delivery stream can have up to 50 tags. </p>
2495 * <p>This operation has a limit of five transactions per second per account. </p>
2496 */
2497var TagDeliveryStreamCommand = /** @class */ (function (_super) {
2498 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagDeliveryStreamCommand, _super);
2499 // Start section: command_properties
2500 // End section: command_properties
2501 function TagDeliveryStreamCommand(input) {
2502 var _this =
2503 // Start section: command_constructor
2504 _super.call(this) || this;
2505 _this.input = input;
2506 return _this;
2507 // End section: command_constructor
2508 }
2509 /**
2510 * @internal
2511 */
2512 TagDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2513 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2514 var stack = clientStack.concat(this.middlewareStack);
2515 var logger = configuration.logger;
2516 var clientName = "FirehoseClient";
2517 var commandName = "TagDeliveryStreamCommand";
2518 var handlerExecutionContext = {
2519 logger: logger,
2520 clientName: clientName,
2521 commandName: commandName,
2522 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["TagDeliveryStreamInput"].filterSensitiveLog,
2523 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["TagDeliveryStreamOutput"].filterSensitiveLog,
2524 };
2525 var requestHandler = configuration.requestHandler;
2526 return stack.resolve(function (request) {
2527 return requestHandler.handle(request.request, options || {});
2528 }, handlerExecutionContext);
2529 };
2530 TagDeliveryStreamCommand.prototype.serialize = function (input, context) {
2531 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1TagDeliveryStreamCommand"])(input, context);
2532 };
2533 TagDeliveryStreamCommand.prototype.deserialize = function (output, context) {
2534 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1TagDeliveryStreamCommand"])(output, context);
2535 };
2536 return TagDeliveryStreamCommand;
2537}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2538
2539//# sourceMappingURL=TagDeliveryStreamCommand.js.map
2540
2541/***/ }),
2542
2543/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js":
2544/*!*************************************************************************************************************!*\
2545 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js ***!
2546 \*************************************************************************************************************/
2547/*! exports provided: UntagDeliveryStreamCommand */
2548/***/ (function(module, __webpack_exports__, __webpack_require__) {
2549
2550"use strict";
2551__webpack_require__.r(__webpack_exports__);
2552/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamCommand", function() { return UntagDeliveryStreamCommand; });
2553/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2554/* 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");
2555/* 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");
2556/* 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");
2557/* 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");
2558
2559
2560
2561
2562
2563/**
2564 * <p>Removes tags from the specified delivery stream. Removed tags are deleted, and you
2565 * can't recover them after this operation successfully completes.</p>
2566 * <p>If you specify a tag that doesn't exist, the operation ignores it.</p>
2567 * <p>This operation has a limit of five transactions per second per account. </p>
2568 */
2569var UntagDeliveryStreamCommand = /** @class */ (function (_super) {
2570 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UntagDeliveryStreamCommand, _super);
2571 // Start section: command_properties
2572 // End section: command_properties
2573 function UntagDeliveryStreamCommand(input) {
2574 var _this =
2575 // Start section: command_constructor
2576 _super.call(this) || this;
2577 _this.input = input;
2578 return _this;
2579 // End section: command_constructor
2580 }
2581 /**
2582 * @internal
2583 */
2584 UntagDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2585 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2586 var stack = clientStack.concat(this.middlewareStack);
2587 var logger = configuration.logger;
2588 var clientName = "FirehoseClient";
2589 var commandName = "UntagDeliveryStreamCommand";
2590 var handlerExecutionContext = {
2591 logger: logger,
2592 clientName: clientName,
2593 commandName: commandName,
2594 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UntagDeliveryStreamInput"].filterSensitiveLog,
2595 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UntagDeliveryStreamOutput"].filterSensitiveLog,
2596 };
2597 var requestHandler = configuration.requestHandler;
2598 return stack.resolve(function (request) {
2599 return requestHandler.handle(request.request, options || {});
2600 }, handlerExecutionContext);
2601 };
2602 UntagDeliveryStreamCommand.prototype.serialize = function (input, context) {
2603 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UntagDeliveryStreamCommand"])(input, context);
2604 };
2605 UntagDeliveryStreamCommand.prototype.deserialize = function (output, context) {
2606 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UntagDeliveryStreamCommand"])(output, context);
2607 };
2608 return UntagDeliveryStreamCommand;
2609}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2610
2611//# sourceMappingURL=UntagDeliveryStreamCommand.js.map
2612
2613/***/ }),
2614
2615/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js":
2616/*!***********************************************************************************************************!*\
2617 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js ***!
2618 \***********************************************************************************************************/
2619/*! exports provided: UpdateDestinationCommand */
2620/***/ (function(module, __webpack_exports__, __webpack_require__) {
2621
2622"use strict";
2623__webpack_require__.r(__webpack_exports__);
2624/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationCommand", function() { return UpdateDestinationCommand; });
2625/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2626/* 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");
2627/* 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");
2628/* 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");
2629/* 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");
2630
2631
2632
2633
2634
2635/**
2636 * <p>Updates the specified destination of the specified delivery stream.</p>
2637 *
2638 * <p>Use this operation to change the destination type (for example, to replace the Amazon
2639 * S3 destination with Amazon Redshift) or change the parameters associated with a destination
2640 * (for example, to change the bucket name of the Amazon S3 destination). The update might not
2641 * occur immediately. The target delivery stream remains active while the configurations are
2642 * updated, so data writes to the delivery stream can continue during this process. The
2643 * updated configurations are usually effective within a few minutes.</p>
2644 * <p>Switching between Amazon ES and other services is not supported. For an Amazon ES
2645 * destination, you can only update to another Amazon ES destination.</p>
2646 * <p>If the destination type is the same, Kinesis Data Firehose merges the configuration
2647 * parameters specified with the destination configuration that already exists on the delivery
2648 * stream. If any of the parameters are not specified in the call, the existing values are
2649 * retained. For example, in the Amazon S3 destination, if <a>EncryptionConfiguration</a> is not specified, then the existing
2650 * <code>EncryptionConfiguration</code> is maintained on the destination.</p>
2651 * <p>If the destination type is not the same, for example, changing the destination from
2652 * Amazon S3 to Amazon Redshift, Kinesis Data Firehose does not merge any parameters. In this
2653 * case, all parameters must be specified.</p>
2654 *
2655 * <p>Kinesis Data Firehose uses <code>CurrentDeliveryStreamVersionId</code> to avoid race
2656 * conditions and conflicting merges. This is a required field, and the service updates the
2657 * configuration only if the existing configuration has a version ID that matches. After the
2658 * update is applied successfully, the version ID is updated, and can be retrieved using <a>DescribeDeliveryStream</a>. Use the new version ID to set
2659 * <code>CurrentDeliveryStreamVersionId</code> in the next call.</p>
2660 */
2661var UpdateDestinationCommand = /** @class */ (function (_super) {
2662 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateDestinationCommand, _super);
2663 // Start section: command_properties
2664 // End section: command_properties
2665 function UpdateDestinationCommand(input) {
2666 var _this =
2667 // Start section: command_constructor
2668 _super.call(this) || this;
2669 _this.input = input;
2670 return _this;
2671 // End section: command_constructor
2672 }
2673 /**
2674 * @internal
2675 */
2676 UpdateDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2677 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2678 var stack = clientStack.concat(this.middlewareStack);
2679 var logger = configuration.logger;
2680 var clientName = "FirehoseClient";
2681 var commandName = "UpdateDestinationCommand";
2682 var handlerExecutionContext = {
2683 logger: logger,
2684 clientName: clientName,
2685 commandName: commandName,
2686 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateDestinationInput"].filterSensitiveLog,
2687 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateDestinationOutput"].filterSensitiveLog,
2688 };
2689 var requestHandler = configuration.requestHandler;
2690 return stack.resolve(function (request) {
2691 return requestHandler.handle(request.request, options || {});
2692 }, handlerExecutionContext);
2693 };
2694 UpdateDestinationCommand.prototype.serialize = function (input, context) {
2695 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UpdateDestinationCommand"])(input, context);
2696 };
2697 UpdateDestinationCommand.prototype.deserialize = function (output, context) {
2698 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UpdateDestinationCommand"])(output, context);
2699 };
2700 return UpdateDestinationCommand;
2701}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2702
2703//# sourceMappingURL=UpdateDestinationCommand.js.map
2704
2705/***/ }),
2706
2707/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/endpoints.js":
2708/*!***********************************************************************************!*\
2709 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/endpoints.js ***!
2710 \***********************************************************************************/
2711/*! exports provided: defaultRegionInfoProvider */
2712/***/ (function(module, __webpack_exports__, __webpack_require__) {
2713
2714"use strict";
2715__webpack_require__.r(__webpack_exports__);
2716/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
2717/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2718
2719// Partition default templates
2720var AWS_TEMPLATE = "firehose.{region}.amazonaws.com";
2721var AWS_CN_TEMPLATE = "firehose.{region}.amazonaws.com.cn";
2722var AWS_ISO_TEMPLATE = "firehose.{region}.c2s.ic.gov";
2723var AWS_ISO_B_TEMPLATE = "firehose.{region}.sc2s.sgov.gov";
2724var AWS_US_GOV_TEMPLATE = "firehose.{region}.amazonaws.com";
2725// Partition regions
2726var AWS_REGIONS = new Set([
2727 "af-south-1",
2728 "ap-east-1",
2729 "ap-northeast-1",
2730 "ap-northeast-2",
2731 "ap-south-1",
2732 "ap-southeast-1",
2733 "ap-southeast-2",
2734 "ca-central-1",
2735 "eu-central-1",
2736 "eu-north-1",
2737 "eu-south-1",
2738 "eu-west-1",
2739 "eu-west-2",
2740 "eu-west-3",
2741 "me-south-1",
2742 "sa-east-1",
2743 "us-east-1",
2744 "us-east-2",
2745 "us-west-1",
2746 "us-west-2",
2747]);
2748var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
2749var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
2750var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
2751var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
2752var defaultRegionInfoProvider = function (region, options) {
2753 var regionInfo = undefined;
2754 switch (region) {
2755 // First, try to match exact region names.
2756 case "af-south-1":
2757 regionInfo = {
2758 hostname: "firehose.af-south-1.amazonaws.com",
2759 partition: "aws",
2760 };
2761 break;
2762 case "ap-east-1":
2763 regionInfo = {
2764 hostname: "firehose.ap-east-1.amazonaws.com",
2765 partition: "aws",
2766 };
2767 break;
2768 case "ap-northeast-1":
2769 regionInfo = {
2770 hostname: "firehose.ap-northeast-1.amazonaws.com",
2771 partition: "aws",
2772 };
2773 break;
2774 case "ap-northeast-2":
2775 regionInfo = {
2776 hostname: "firehose.ap-northeast-2.amazonaws.com",
2777 partition: "aws",
2778 };
2779 break;
2780 case "ap-south-1":
2781 regionInfo = {
2782 hostname: "firehose.ap-south-1.amazonaws.com",
2783 partition: "aws",
2784 };
2785 break;
2786 case "ap-southeast-1":
2787 regionInfo = {
2788 hostname: "firehose.ap-southeast-1.amazonaws.com",
2789 partition: "aws",
2790 };
2791 break;
2792 case "ap-southeast-2":
2793 regionInfo = {
2794 hostname: "firehose.ap-southeast-2.amazonaws.com",
2795 partition: "aws",
2796 };
2797 break;
2798 case "ca-central-1":
2799 regionInfo = {
2800 hostname: "firehose.ca-central-1.amazonaws.com",
2801 partition: "aws",
2802 };
2803 break;
2804 case "cn-north-1":
2805 regionInfo = {
2806 hostname: "firehose.cn-north-1.amazonaws.com.cn",
2807 partition: "aws-cn",
2808 };
2809 break;
2810 case "cn-northwest-1":
2811 regionInfo = {
2812 hostname: "firehose.cn-northwest-1.amazonaws.com.cn",
2813 partition: "aws-cn",
2814 };
2815 break;
2816 case "eu-central-1":
2817 regionInfo = {
2818 hostname: "firehose.eu-central-1.amazonaws.com",
2819 partition: "aws",
2820 };
2821 break;
2822 case "eu-north-1":
2823 regionInfo = {
2824 hostname: "firehose.eu-north-1.amazonaws.com",
2825 partition: "aws",
2826 };
2827 break;
2828 case "eu-south-1":
2829 regionInfo = {
2830 hostname: "firehose.eu-south-1.amazonaws.com",
2831 partition: "aws",
2832 };
2833 break;
2834 case "eu-west-1":
2835 regionInfo = {
2836 hostname: "firehose.eu-west-1.amazonaws.com",
2837 partition: "aws",
2838 };
2839 break;
2840 case "eu-west-2":
2841 regionInfo = {
2842 hostname: "firehose.eu-west-2.amazonaws.com",
2843 partition: "aws",
2844 };
2845 break;
2846 case "eu-west-3":
2847 regionInfo = {
2848 hostname: "firehose.eu-west-3.amazonaws.com",
2849 partition: "aws",
2850 };
2851 break;
2852 case "fips-us-east-1":
2853 regionInfo = {
2854 hostname: "firehose-fips.us-east-1.amazonaws.com",
2855 partition: "aws",
2856 signingRegion: "us-east-1",
2857 };
2858 break;
2859 case "fips-us-east-2":
2860 regionInfo = {
2861 hostname: "firehose-fips.us-east-2.amazonaws.com",
2862 partition: "aws",
2863 signingRegion: "us-east-2",
2864 };
2865 break;
2866 case "fips-us-gov-east-1":
2867 regionInfo = {
2868 hostname: "firehose-fips.us-gov-east-1.amazonaws.com",
2869 partition: "aws-us-gov",
2870 signingRegion: "us-gov-east-1",
2871 };
2872 break;
2873 case "fips-us-gov-west-1":
2874 regionInfo = {
2875 hostname: "firehose-fips.us-gov-west-1.amazonaws.com",
2876 partition: "aws-us-gov",
2877 signingRegion: "us-gov-west-1",
2878 };
2879 break;
2880 case "fips-us-west-1":
2881 regionInfo = {
2882 hostname: "firehose-fips.us-west-1.amazonaws.com",
2883 partition: "aws",
2884 signingRegion: "us-west-1",
2885 };
2886 break;
2887 case "fips-us-west-2":
2888 regionInfo = {
2889 hostname: "firehose-fips.us-west-2.amazonaws.com",
2890 partition: "aws",
2891 signingRegion: "us-west-2",
2892 };
2893 break;
2894 case "me-south-1":
2895 regionInfo = {
2896 hostname: "firehose.me-south-1.amazonaws.com",
2897 partition: "aws",
2898 };
2899 break;
2900 case "sa-east-1":
2901 regionInfo = {
2902 hostname: "firehose.sa-east-1.amazonaws.com",
2903 partition: "aws",
2904 };
2905 break;
2906 case "us-east-1":
2907 regionInfo = {
2908 hostname: "firehose.us-east-1.amazonaws.com",
2909 partition: "aws",
2910 };
2911 break;
2912 case "us-east-2":
2913 regionInfo = {
2914 hostname: "firehose.us-east-2.amazonaws.com",
2915 partition: "aws",
2916 };
2917 break;
2918 case "us-gov-east-1":
2919 regionInfo = {
2920 hostname: "firehose.us-gov-east-1.amazonaws.com",
2921 partition: "aws-us-gov",
2922 };
2923 break;
2924 case "us-gov-west-1":
2925 regionInfo = {
2926 hostname: "firehose.us-gov-west-1.amazonaws.com",
2927 partition: "aws-us-gov",
2928 };
2929 break;
2930 case "us-west-1":
2931 regionInfo = {
2932 hostname: "firehose.us-west-1.amazonaws.com",
2933 partition: "aws",
2934 };
2935 break;
2936 case "us-west-2":
2937 regionInfo = {
2938 hostname: "firehose.us-west-2.amazonaws.com",
2939 partition: "aws",
2940 };
2941 break;
2942 // Next, try to match partition endpoints.
2943 default:
2944 if (AWS_REGIONS.has(region)) {
2945 regionInfo = {
2946 hostname: AWS_TEMPLATE.replace("{region}", region),
2947 partition: "aws",
2948 };
2949 }
2950 if (AWS_CN_REGIONS.has(region)) {
2951 regionInfo = {
2952 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
2953 partition: "aws-cn",
2954 };
2955 }
2956 if (AWS_ISO_REGIONS.has(region)) {
2957 regionInfo = {
2958 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
2959 partition: "aws-iso",
2960 };
2961 }
2962 if (AWS_ISO_B_REGIONS.has(region)) {
2963 regionInfo = {
2964 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
2965 partition: "aws-iso-b",
2966 };
2967 }
2968 if (AWS_US_GOV_REGIONS.has(region)) {
2969 regionInfo = {
2970 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
2971 partition: "aws-us-gov",
2972 };
2973 }
2974 // Finally, assume it's an AWS partition endpoint.
2975 if (regionInfo === undefined) {
2976 regionInfo = {
2977 hostname: AWS_TEMPLATE.replace("{region}", region),
2978 partition: "aws",
2979 };
2980 }
2981 }
2982 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "firehose" }, regionInfo));
2983};
2984//# sourceMappingURL=endpoints.js.map
2985
2986/***/ }),
2987
2988/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/index.js":
2989/*!*******************************************************************************!*\
2990 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/index.js ***!
2991 \*******************************************************************************/
2992/*! 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 */
2993/***/ (function(module, __webpack_exports__, __webpack_require__) {
2994
2995"use strict";
2996__webpack_require__.r(__webpack_exports__);
2997/* harmony import */ var _FirehoseClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FirehoseClient */ "../../node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js");
2998/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FirehoseClient", function() { return _FirehoseClient__WEBPACK_IMPORTED_MODULE_0__["FirehoseClient"]; });
2999
3000/* harmony import */ var _Firehose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Firehose */ "../../node_modules/@aws-sdk/client-firehose/dist/es/Firehose.js");
3001/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Firehose", function() { return _Firehose__WEBPACK_IMPORTED_MODULE_1__["Firehose"]; });
3002
3003/* harmony import */ var _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js");
3004/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamCommand", function() { return _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__["CreateDeliveryStreamCommand"]; });
3005
3006/* harmony import */ var _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DeleteDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js");
3007/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamCommand", function() { return _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__["DeleteDeliveryStreamCommand"]; });
3008
3009/* harmony import */ var _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DescribeDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js");
3010/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamCommand", function() { return _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__["DescribeDeliveryStreamCommand"]; });
3011
3012/* harmony import */ var _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/ListDeliveryStreamsCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js");
3013/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsCommand", function() { return _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__["ListDeliveryStreamsCommand"]; });
3014
3015/* harmony import */ var _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/ListTagsForDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js");
3016/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamCommand", function() { return _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__["ListTagsForDeliveryStreamCommand"]; });
3017
3018/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js");
3019/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_7__["PutRecordCommand"]; });
3020
3021/* harmony import */ var _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/PutRecordBatchCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js");
3022/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchCommand", function() { return _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_8__["PutRecordBatchCommand"]; });
3023
3024/* harmony import */ var _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/StartDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js");
3025/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionCommand", function() { return _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__["StartDeliveryStreamEncryptionCommand"]; });
3026
3027/* harmony import */ var _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/StopDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js");
3028/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionCommand", function() { return _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__["StopDeliveryStreamEncryptionCommand"]; });
3029
3030/* harmony import */ var _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/TagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js");
3031/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamCommand", function() { return _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__["TagDeliveryStreamCommand"]; });
3032
3033/* harmony import */ var _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/UntagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js");
3034/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamCommand", function() { return _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__["UntagDeliveryStreamCommand"]; });
3035
3036/* harmony import */ var _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/UpdateDestinationCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js");
3037/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationCommand", function() { return _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__["UpdateDestinationCommand"]; });
3038
3039/* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./models/index */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/index.js");
3040/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BufferingHints", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["BufferingHints"]; });
3041
3042/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CloudWatchLoggingOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CloudWatchLoggingOptions"]; });
3043
3044/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompressionFormat", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CompressionFormat"]; });
3045
3046/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ConcurrentModificationException"]; });
3047
3048/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentEncoding", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ContentEncoding"]; });
3049
3050/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyCommand", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CopyCommand"]; });
3051
3052/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeyType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KeyType"]; });
3053
3054/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfigurationInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamEncryptionConfigurationInput"]; });
3055
3056/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchBufferingHints", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchBufferingHints"]; });
3057
3058/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameterName", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ProcessorParameterName"]; });
3059
3060/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ProcessorParameter"]; });
3061
3062/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Processor", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Processor"]; });
3063
3064/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessingConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ProcessingConfiguration"]; });
3065
3066/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchRetryOptions"]; });
3067
3068/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSEncryptionConfig", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KMSEncryptionConfig"]; });
3069
3070/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["EncryptionConfiguration"]; });
3071
3072/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["S3DestinationConfiguration"]; });
3073
3074/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["VpcConfiguration"]; });
3075
3076/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchDestinationConfiguration"]; });
3077
3078/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HiveJsonSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HiveJsonSerDe"]; });
3079
3080/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OpenXJsonSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OpenXJsonSerDe"]; });
3081
3082/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Deserializer", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Deserializer"]; });
3083
3084/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputFormatConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InputFormatConfiguration"]; });
3085
3086/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcCompression", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OrcCompression"]; });
3087
3088/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcFormatVersion", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OrcFormatVersion"]; });
3089
3090/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OrcSerDe"]; });
3091
3092/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetCompression", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ParquetCompression"]; });
3093
3094/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetWriterVersion", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ParquetWriterVersion"]; });
3095
3096/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ParquetSerDe"]; });
3097
3098/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Serializer", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Serializer"]; });
3099
3100/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputFormatConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OutputFormatConfiguration"]; });
3101
3102/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SchemaConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SchemaConfiguration"]; });
3103
3104/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataFormatConversionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DataFormatConversionConfiguration"]; });
3105
3106/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ExtendedS3DestinationConfiguration"]; });
3107
3108/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointBufferingHints", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointBufferingHints"]; });
3109
3110/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointConfiguration"]; });
3111
3112/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointCommonAttribute", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointCommonAttribute"]; });
3113
3114/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRequestConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointRequestConfiguration"]; });
3115
3116/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointRetryOptions"]; });
3117
3118/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDestinationConfiguration"]; });
3119
3120/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KinesisStreamSourceConfiguration"]; });
3121
3122/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftRetryOptions"]; });
3123
3124/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftDestinationConfiguration"]; });
3125
3126/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkRetryOptions"]; });
3127
3128/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkDestinationConfiguration"]; });
3129
3130/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Tag"]; });
3131
3132/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CreateDeliveryStreamInput"]; });
3133
3134/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CreateDeliveryStreamOutput"]; });
3135
3136/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InvalidArgumentException"]; });
3137
3138/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidKMSResourceException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InvalidKMSResourceException"]; });
3139
3140/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["LimitExceededException"]; });
3141
3142/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ResourceInUseException"]; });
3143
3144/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeleteDeliveryStreamInput"]; });
3145
3146/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeleteDeliveryStreamOutput"]; });
3147
3148/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ResourceNotFoundException"]; });
3149
3150/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamFailureType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamFailureType"]; });
3151
3152/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FailureDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["FailureDescription"]; });
3153
3154/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamEncryptionStatus"]; });
3155
3156/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamEncryptionConfiguration"]; });
3157
3158/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamStatus"]; });
3159
3160/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["S3DestinationDescription"]; });
3161
3162/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfigurationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["VpcConfigurationDescription"]; });
3163
3164/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchDestinationDescription"]; });
3165
3166/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ExtendedS3DestinationDescription"]; });
3167
3168/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDescription"]; });
3169
3170/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDestinationDescription"]; });
3171
3172/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftDestinationDescription"]; });
3173
3174/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkDestinationDescription"]; });
3175
3176/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DestinationDescription"]; });
3177
3178/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KinesisStreamSourceDescription"]; });
3179
3180/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SourceDescription"]; });
3181
3182/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamDescription"]; });
3183
3184/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DescribeDeliveryStreamInput"]; });
3185
3186/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DescribeDeliveryStreamOutput"]; });
3187
3188/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["S3DestinationUpdate"]; });
3189
3190/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchDestinationUpdate"]; });
3191
3192/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ExtendedS3DestinationUpdate"]; });
3193
3194/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListDeliveryStreamsInput"]; });
3195
3196/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListDeliveryStreamsOutput"]; });
3197
3198/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTagsForDeliveryStreamInput"]; });
3199
3200/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTagsForDeliveryStreamOutput"]; });
3201
3202/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["_Record"]; });
3203
3204/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordInput"]; });
3205
3206/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordOutput"]; });
3207
3208/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ServiceUnavailableException"]; });
3209
3210/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordBatchInput"]; });
3211
3212/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchResponseEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordBatchResponseEntry"]; });
3213
3214/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordBatchOutput"]; });
3215
3216/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StartDeliveryStreamEncryptionInput"]; });
3217
3218/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StartDeliveryStreamEncryptionOutput"]; });
3219
3220/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StopDeliveryStreamEncryptionInput"]; });
3221
3222/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StopDeliveryStreamEncryptionOutput"]; });
3223
3224/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TagDeliveryStreamInput"]; });
3225
3226/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TagDeliveryStreamOutput"]; });
3227
3228/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UntagDeliveryStreamInput"]; });
3229
3230/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UntagDeliveryStreamOutput"]; });
3231
3232/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDestinationUpdate"]; });
3233
3234/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftDestinationUpdate"]; });
3235
3236/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkDestinationUpdate"]; });
3237
3238/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UpdateDestinationInput"]; });
3239
3240/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UpdateDestinationOutput"]; });
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257//# sourceMappingURL=index.js.map
3258
3259/***/ }),
3260
3261/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/index.js":
3262/*!**************************************************************************************!*\
3263 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/models/index.js ***!
3264 \**************************************************************************************/
3265/*! 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 */
3266/***/ (function(module, __webpack_exports__, __webpack_require__) {
3267
3268"use strict";
3269__webpack_require__.r(__webpack_exports__);
3270/* 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");
3271/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BufferingHints", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BufferingHints"]; });
3272
3273/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CloudWatchLoggingOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CloudWatchLoggingOptions"]; });
3274
3275/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompressionFormat", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CompressionFormat"]; });
3276
3277/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConcurrentModificationException"]; });
3278
3279/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentEncoding", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ContentEncoding"]; });
3280
3281/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyCommand", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CopyCommand"]; });
3282
3283/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeyType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KeyType"]; });
3284
3285/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfigurationInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamEncryptionConfigurationInput"]; });
3286
3287/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchBufferingHints", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchBufferingHints"]; });
3288
3289/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameterName", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProcessorParameterName"]; });
3290
3291/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProcessorParameter"]; });
3292
3293/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Processor", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Processor"]; });
3294
3295/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessingConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProcessingConfiguration"]; });
3296
3297/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchRetryOptions"]; });
3298
3299/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSEncryptionConfig", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSEncryptionConfig"]; });
3300
3301/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EncryptionConfiguration"]; });
3302
3303/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["S3DestinationConfiguration"]; });
3304
3305/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VpcConfiguration"]; });
3306
3307/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchDestinationConfiguration"]; });
3308
3309/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HiveJsonSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HiveJsonSerDe"]; });
3310
3311/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OpenXJsonSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OpenXJsonSerDe"]; });
3312
3313/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Deserializer", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Deserializer"]; });
3314
3315/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputFormatConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InputFormatConfiguration"]; });
3316
3317/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcCompression", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OrcCompression"]; });
3318
3319/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcFormatVersion", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OrcFormatVersion"]; });
3320
3321/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OrcSerDe"]; });
3322
3323/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetCompression", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ParquetCompression"]; });
3324
3325/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetWriterVersion", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ParquetWriterVersion"]; });
3326
3327/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ParquetSerDe"]; });
3328
3329/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Serializer", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Serializer"]; });
3330
3331/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputFormatConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OutputFormatConfiguration"]; });
3332
3333/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SchemaConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SchemaConfiguration"]; });
3334
3335/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataFormatConversionConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DataFormatConversionConfiguration"]; });
3336
3337/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExtendedS3DestinationConfiguration"]; });
3338
3339/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointBufferingHints", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointBufferingHints"]; });
3340
3341/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointConfiguration"]; });
3342
3343/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointCommonAttribute", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointCommonAttribute"]; });
3344
3345/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRequestConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointRequestConfiguration"]; });
3346
3347/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointRetryOptions"]; });
3348
3349/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDestinationConfiguration"]; });
3350
3351/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KinesisStreamSourceConfiguration"]; });
3352
3353/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftRetryOptions"]; });
3354
3355/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftDestinationConfiguration"]; });
3356
3357/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkRetryOptions"]; });
3358
3359/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkDestinationConfiguration"]; });
3360
3361/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Tag"]; });
3362
3363/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateDeliveryStreamInput"]; });
3364
3365/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateDeliveryStreamOutput"]; });
3366
3367/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidArgumentException"]; });
3368
3369/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidKMSResourceException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidKMSResourceException"]; });
3370
3371/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["LimitExceededException"]; });
3372
3373/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceInUseException"]; });
3374
3375/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteDeliveryStreamInput"]; });
3376
3377/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteDeliveryStreamOutput"]; });
3378
3379/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceNotFoundException"]; });
3380
3381/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamFailureType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamFailureType"]; });
3382
3383/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FailureDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["FailureDescription"]; });
3384
3385/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamEncryptionStatus"]; });
3386
3387/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamEncryptionConfiguration"]; });
3388
3389/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamStatus"]; });
3390
3391/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["S3DestinationDescription"]; });
3392
3393/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfigurationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VpcConfigurationDescription"]; });
3394
3395/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchDestinationDescription"]; });
3396
3397/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExtendedS3DestinationDescription"]; });
3398
3399/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDescription"]; });
3400
3401/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDestinationDescription"]; });
3402
3403/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftDestinationDescription"]; });
3404
3405/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkDestinationDescription"]; });
3406
3407/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DestinationDescription"]; });
3408
3409/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KinesisStreamSourceDescription"]; });
3410
3411/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SourceDescription"]; });
3412
3413/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamDescription"]; });
3414
3415/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeDeliveryStreamInput"]; });
3416
3417/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeDeliveryStreamOutput"]; });
3418
3419/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["S3DestinationUpdate"]; });
3420
3421/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchDestinationUpdate"]; });
3422
3423/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExtendedS3DestinationUpdate"]; });
3424
3425/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListDeliveryStreamsInput"]; });
3426
3427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListDeliveryStreamsOutput"]; });
3428
3429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForDeliveryStreamInput"]; });
3430
3431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForDeliveryStreamOutput"]; });
3432
3433/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["_Record"]; });
3434
3435/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordInput"]; });
3436
3437/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordOutput"]; });
3438
3439/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ServiceUnavailableException"]; });
3440
3441/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordBatchInput"]; });
3442
3443/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchResponseEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordBatchResponseEntry"]; });
3444
3445/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordBatchOutput"]; });
3446
3447/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartDeliveryStreamEncryptionInput"]; });
3448
3449/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartDeliveryStreamEncryptionOutput"]; });
3450
3451/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StopDeliveryStreamEncryptionInput"]; });
3452
3453/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StopDeliveryStreamEncryptionOutput"]; });
3454
3455/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TagDeliveryStreamInput"]; });
3456
3457/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TagDeliveryStreamOutput"]; });
3458
3459/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UntagDeliveryStreamInput"]; });
3460
3461/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UntagDeliveryStreamOutput"]; });
3462
3463/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDestinationUpdate"]; });
3464
3465/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftDestinationUpdate"]; });
3466
3467/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkDestinationUpdate"]; });
3468
3469/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateDestinationInput"]; });
3470
3471/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateDestinationOutput"]; });
3472
3473
3474//# sourceMappingURL=index.js.map
3475
3476/***/ }),
3477
3478/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js":
3479/*!*****************************************************************************************!*\
3480 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js ***!
3481 \*****************************************************************************************/
3482/*! 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 */
3483/***/ (function(module, __webpack_exports__, __webpack_require__) {
3484
3485"use strict";
3486__webpack_require__.r(__webpack_exports__);
3487/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BufferingHints", function() { return BufferingHints; });
3488/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloudWatchLoggingOptions", function() { return CloudWatchLoggingOptions; });
3489/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompressionFormat", function() { return CompressionFormat; });
3490/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return ConcurrentModificationException; });
3491/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentEncoding", function() { return ContentEncoding; });
3492/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CopyCommand", function() { return CopyCommand; });
3493/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyType", function() { return KeyType; });
3494/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfigurationInput", function() { return DeliveryStreamEncryptionConfigurationInput; });
3495/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchBufferingHints", function() { return ElasticsearchBufferingHints; });
3496/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameterName", function() { return ProcessorParameterName; });
3497/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameter", function() { return ProcessorParameter; });
3498/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Processor", function() { return Processor; });
3499/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessingConfiguration", function() { return ProcessingConfiguration; });
3500/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchRetryOptions", function() { return ElasticsearchRetryOptions; });
3501/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSEncryptionConfig", function() { return KMSEncryptionConfig; });
3502/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionConfiguration", function() { return EncryptionConfiguration; });
3503/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3DestinationConfiguration", function() { return S3DestinationConfiguration; });
3504/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VpcConfiguration", function() { return VpcConfiguration; });
3505/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationConfiguration", function() { return ElasticsearchDestinationConfiguration; });
3506/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HiveJsonSerDe", function() { return HiveJsonSerDe; });
3507/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpenXJsonSerDe", function() { return OpenXJsonSerDe; });
3508/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Deserializer", function() { return Deserializer; });
3509/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputFormatConfiguration", function() { return InputFormatConfiguration; });
3510/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrcCompression", function() { return OrcCompression; });
3511/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrcFormatVersion", function() { return OrcFormatVersion; });
3512/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrcSerDe", function() { return OrcSerDe; });
3513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParquetCompression", function() { return ParquetCompression; });
3514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParquetWriterVersion", function() { return ParquetWriterVersion; });
3515/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParquetSerDe", function() { return ParquetSerDe; });
3516/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Serializer", function() { return Serializer; });
3517/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputFormatConfiguration", function() { return OutputFormatConfiguration; });
3518/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SchemaConfiguration", function() { return SchemaConfiguration; });
3519/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataFormatConversionConfiguration", function() { return DataFormatConversionConfiguration; });
3520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationConfiguration", function() { return ExtendedS3DestinationConfiguration; });
3521/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointBufferingHints", function() { return HttpEndpointBufferingHints; });
3522/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointConfiguration", function() { return HttpEndpointConfiguration; });
3523/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointCommonAttribute", function() { return HttpEndpointCommonAttribute; });
3524/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRequestConfiguration", function() { return HttpEndpointRequestConfiguration; });
3525/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRetryOptions", function() { return HttpEndpointRetryOptions; });
3526/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationConfiguration", function() { return HttpEndpointDestinationConfiguration; });
3527/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceConfiguration", function() { return KinesisStreamSourceConfiguration; });
3528/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftRetryOptions", function() { return RedshiftRetryOptions; });
3529/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationConfiguration", function() { return RedshiftDestinationConfiguration; });
3530/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkRetryOptions", function() { return SplunkRetryOptions; });
3531/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationConfiguration", function() { return SplunkDestinationConfiguration; });
3532/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return Tag; });
3533/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamInput", function() { return CreateDeliveryStreamInput; });
3534/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamOutput", function() { return CreateDeliveryStreamOutput; });
3535/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return InvalidArgumentException; });
3536/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidKMSResourceException", function() { return InvalidKMSResourceException; });
3537/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return LimitExceededException; });
3538/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return ResourceInUseException; });
3539/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamInput", function() { return DeleteDeliveryStreamInput; });
3540/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamOutput", function() { return DeleteDeliveryStreamOutput; });
3541/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; });
3542/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamFailureType", function() { return DeliveryStreamFailureType; });
3543/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FailureDescription", function() { return FailureDescription; });
3544/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionStatus", function() { return DeliveryStreamEncryptionStatus; });
3545/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfiguration", function() { return DeliveryStreamEncryptionConfiguration; });
3546/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamStatus", function() { return DeliveryStreamStatus; });
3547/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3DestinationDescription", function() { return S3DestinationDescription; });
3548/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VpcConfigurationDescription", function() { return VpcConfigurationDescription; });
3549/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationDescription", function() { return ElasticsearchDestinationDescription; });
3550/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationDescription", function() { return ExtendedS3DestinationDescription; });
3551/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDescription", function() { return HttpEndpointDescription; });
3552/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationDescription", function() { return HttpEndpointDestinationDescription; });
3553/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationDescription", function() { return RedshiftDestinationDescription; });
3554/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationDescription", function() { return SplunkDestinationDescription; });
3555/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinationDescription", function() { return DestinationDescription; });
3556/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceDescription", function() { return KinesisStreamSourceDescription; });
3557/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SourceDescription", function() { return SourceDescription; });
3558/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamDescription", function() { return DeliveryStreamDescription; });
3559/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamInput", function() { return DescribeDeliveryStreamInput; });
3560/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamOutput", function() { return DescribeDeliveryStreamOutput; });
3561/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3DestinationUpdate", function() { return S3DestinationUpdate; });
3562/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationUpdate", function() { return ElasticsearchDestinationUpdate; });
3563/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationUpdate", function() { return ExtendedS3DestinationUpdate; });
3564/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsInput", function() { return ListDeliveryStreamsInput; });
3565/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsOutput", function() { return ListDeliveryStreamsOutput; });
3566/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamInput", function() { return ListTagsForDeliveryStreamInput; });
3567/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamOutput", function() { return ListTagsForDeliveryStreamOutput; });
3568/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _Record; });
3569/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return PutRecordInput; });
3570/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return PutRecordOutput; });
3571/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return ServiceUnavailableException; });
3572/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchInput", function() { return PutRecordBatchInput; });
3573/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchResponseEntry", function() { return PutRecordBatchResponseEntry; });
3574/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchOutput", function() { return PutRecordBatchOutput; });
3575/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionInput", function() { return StartDeliveryStreamEncryptionInput; });
3576/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionOutput", function() { return StartDeliveryStreamEncryptionOutput; });
3577/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionInput", function() { return StopDeliveryStreamEncryptionInput; });
3578/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionOutput", function() { return StopDeliveryStreamEncryptionOutput; });
3579/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamInput", function() { return TagDeliveryStreamInput; });
3580/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamOutput", function() { return TagDeliveryStreamOutput; });
3581/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamInput", function() { return UntagDeliveryStreamInput; });
3582/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamOutput", function() { return UntagDeliveryStreamOutput; });
3583/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationUpdate", function() { return HttpEndpointDestinationUpdate; });
3584/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationUpdate", function() { return RedshiftDestinationUpdate; });
3585/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationUpdate", function() { return SplunkDestinationUpdate; });
3586/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationInput", function() { return UpdateDestinationInput; });
3587/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationOutput", function() { return UpdateDestinationOutput; });
3588/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
3589/* 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");
3590
3591
3592var BufferingHints;
3593(function (BufferingHints) {
3594 BufferingHints.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3595})(BufferingHints || (BufferingHints = {}));
3596var CloudWatchLoggingOptions;
3597(function (CloudWatchLoggingOptions) {
3598 CloudWatchLoggingOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3599})(CloudWatchLoggingOptions || (CloudWatchLoggingOptions = {}));
3600var CompressionFormat;
3601(function (CompressionFormat) {
3602 CompressionFormat["GZIP"] = "GZIP";
3603 CompressionFormat["HADOOP_SNAPPY"] = "HADOOP_SNAPPY";
3604 CompressionFormat["SNAPPY"] = "Snappy";
3605 CompressionFormat["UNCOMPRESSED"] = "UNCOMPRESSED";
3606 CompressionFormat["ZIP"] = "ZIP";
3607})(CompressionFormat || (CompressionFormat = {}));
3608var ConcurrentModificationException;
3609(function (ConcurrentModificationException) {
3610 ConcurrentModificationException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3611})(ConcurrentModificationException || (ConcurrentModificationException = {}));
3612var ContentEncoding;
3613(function (ContentEncoding) {
3614 ContentEncoding["GZIP"] = "GZIP";
3615 ContentEncoding["NONE"] = "NONE";
3616})(ContentEncoding || (ContentEncoding = {}));
3617var CopyCommand;
3618(function (CopyCommand) {
3619 CopyCommand.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3620})(CopyCommand || (CopyCommand = {}));
3621var KeyType;
3622(function (KeyType) {
3623 KeyType["AWS_OWNED_CMK"] = "AWS_OWNED_CMK";
3624 KeyType["CUSTOMER_MANAGED_CMK"] = "CUSTOMER_MANAGED_CMK";
3625})(KeyType || (KeyType = {}));
3626var DeliveryStreamEncryptionConfigurationInput;
3627(function (DeliveryStreamEncryptionConfigurationInput) {
3628 DeliveryStreamEncryptionConfigurationInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3629})(DeliveryStreamEncryptionConfigurationInput || (DeliveryStreamEncryptionConfigurationInput = {}));
3630var ElasticsearchBufferingHints;
3631(function (ElasticsearchBufferingHints) {
3632 ElasticsearchBufferingHints.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3633})(ElasticsearchBufferingHints || (ElasticsearchBufferingHints = {}));
3634var ProcessorParameterName;
3635(function (ProcessorParameterName) {
3636 ProcessorParameterName["BUFFER_INTERVAL_IN_SECONDS"] = "BufferIntervalInSeconds";
3637 ProcessorParameterName["BUFFER_SIZE_IN_MB"] = "BufferSizeInMBs";
3638 ProcessorParameterName["LAMBDA_ARN"] = "LambdaArn";
3639 ProcessorParameterName["LAMBDA_NUMBER_OF_RETRIES"] = "NumberOfRetries";
3640 ProcessorParameterName["ROLE_ARN"] = "RoleArn";
3641})(ProcessorParameterName || (ProcessorParameterName = {}));
3642var ProcessorParameter;
3643(function (ProcessorParameter) {
3644 ProcessorParameter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3645})(ProcessorParameter || (ProcessorParameter = {}));
3646var Processor;
3647(function (Processor) {
3648 Processor.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3649})(Processor || (Processor = {}));
3650var ProcessingConfiguration;
3651(function (ProcessingConfiguration) {
3652 ProcessingConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3653})(ProcessingConfiguration || (ProcessingConfiguration = {}));
3654var ElasticsearchRetryOptions;
3655(function (ElasticsearchRetryOptions) {
3656 ElasticsearchRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3657})(ElasticsearchRetryOptions || (ElasticsearchRetryOptions = {}));
3658var KMSEncryptionConfig;
3659(function (KMSEncryptionConfig) {
3660 KMSEncryptionConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3661})(KMSEncryptionConfig || (KMSEncryptionConfig = {}));
3662var EncryptionConfiguration;
3663(function (EncryptionConfiguration) {
3664 EncryptionConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3665})(EncryptionConfiguration || (EncryptionConfiguration = {}));
3666var S3DestinationConfiguration;
3667(function (S3DestinationConfiguration) {
3668 S3DestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3669})(S3DestinationConfiguration || (S3DestinationConfiguration = {}));
3670var VpcConfiguration;
3671(function (VpcConfiguration) {
3672 VpcConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3673})(VpcConfiguration || (VpcConfiguration = {}));
3674var ElasticsearchDestinationConfiguration;
3675(function (ElasticsearchDestinationConfiguration) {
3676 ElasticsearchDestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3677})(ElasticsearchDestinationConfiguration || (ElasticsearchDestinationConfiguration = {}));
3678var HiveJsonSerDe;
3679(function (HiveJsonSerDe) {
3680 HiveJsonSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3681})(HiveJsonSerDe || (HiveJsonSerDe = {}));
3682var OpenXJsonSerDe;
3683(function (OpenXJsonSerDe) {
3684 OpenXJsonSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3685})(OpenXJsonSerDe || (OpenXJsonSerDe = {}));
3686var Deserializer;
3687(function (Deserializer) {
3688 Deserializer.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3689})(Deserializer || (Deserializer = {}));
3690var InputFormatConfiguration;
3691(function (InputFormatConfiguration) {
3692 InputFormatConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3693})(InputFormatConfiguration || (InputFormatConfiguration = {}));
3694var OrcCompression;
3695(function (OrcCompression) {
3696 OrcCompression["NONE"] = "NONE";
3697 OrcCompression["SNAPPY"] = "SNAPPY";
3698 OrcCompression["ZLIB"] = "ZLIB";
3699})(OrcCompression || (OrcCompression = {}));
3700var OrcFormatVersion;
3701(function (OrcFormatVersion) {
3702 OrcFormatVersion["V0_11"] = "V0_11";
3703 OrcFormatVersion["V0_12"] = "V0_12";
3704})(OrcFormatVersion || (OrcFormatVersion = {}));
3705var OrcSerDe;
3706(function (OrcSerDe) {
3707 OrcSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3708})(OrcSerDe || (OrcSerDe = {}));
3709var ParquetCompression;
3710(function (ParquetCompression) {
3711 ParquetCompression["GZIP"] = "GZIP";
3712 ParquetCompression["SNAPPY"] = "SNAPPY";
3713 ParquetCompression["UNCOMPRESSED"] = "UNCOMPRESSED";
3714})(ParquetCompression || (ParquetCompression = {}));
3715var ParquetWriterVersion;
3716(function (ParquetWriterVersion) {
3717 ParquetWriterVersion["V1"] = "V1";
3718 ParquetWriterVersion["V2"] = "V2";
3719})(ParquetWriterVersion || (ParquetWriterVersion = {}));
3720var ParquetSerDe;
3721(function (ParquetSerDe) {
3722 ParquetSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3723})(ParquetSerDe || (ParquetSerDe = {}));
3724var Serializer;
3725(function (Serializer) {
3726 Serializer.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3727})(Serializer || (Serializer = {}));
3728var OutputFormatConfiguration;
3729(function (OutputFormatConfiguration) {
3730 OutputFormatConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3731})(OutputFormatConfiguration || (OutputFormatConfiguration = {}));
3732var SchemaConfiguration;
3733(function (SchemaConfiguration) {
3734 SchemaConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3735})(SchemaConfiguration || (SchemaConfiguration = {}));
3736var DataFormatConversionConfiguration;
3737(function (DataFormatConversionConfiguration) {
3738 DataFormatConversionConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3739})(DataFormatConversionConfiguration || (DataFormatConversionConfiguration = {}));
3740var ExtendedS3DestinationConfiguration;
3741(function (ExtendedS3DestinationConfiguration) {
3742 ExtendedS3DestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3743})(ExtendedS3DestinationConfiguration || (ExtendedS3DestinationConfiguration = {}));
3744var HttpEndpointBufferingHints;
3745(function (HttpEndpointBufferingHints) {
3746 HttpEndpointBufferingHints.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3747})(HttpEndpointBufferingHints || (HttpEndpointBufferingHints = {}));
3748var HttpEndpointConfiguration;
3749(function (HttpEndpointConfiguration) {
3750 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"] }))); };
3751})(HttpEndpointConfiguration || (HttpEndpointConfiguration = {}));
3752var HttpEndpointCommonAttribute;
3753(function (HttpEndpointCommonAttribute) {
3754 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"] }))); };
3755})(HttpEndpointCommonAttribute || (HttpEndpointCommonAttribute = {}));
3756var HttpEndpointRequestConfiguration;
3757(function (HttpEndpointRequestConfiguration) {
3758 HttpEndpointRequestConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.CommonAttributes && {
3759 CommonAttributes: obj.CommonAttributes.map(function (item) { return HttpEndpointCommonAttribute.filterSensitiveLog(item); }),
3760 }))); };
3761})(HttpEndpointRequestConfiguration || (HttpEndpointRequestConfiguration = {}));
3762var HttpEndpointRetryOptions;
3763(function (HttpEndpointRetryOptions) {
3764 HttpEndpointRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3765})(HttpEndpointRetryOptions || (HttpEndpointRetryOptions = {}));
3766var HttpEndpointDestinationConfiguration;
3767(function (HttpEndpointDestinationConfiguration) {
3768 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 && {
3769 EndpointConfiguration: HttpEndpointConfiguration.filterSensitiveLog(obj.EndpointConfiguration),
3770 })), (obj.RequestConfiguration && {
3771 RequestConfiguration: HttpEndpointRequestConfiguration.filterSensitiveLog(obj.RequestConfiguration),
3772 }))); };
3773})(HttpEndpointDestinationConfiguration || (HttpEndpointDestinationConfiguration = {}));
3774var KinesisStreamSourceConfiguration;
3775(function (KinesisStreamSourceConfiguration) {
3776 KinesisStreamSourceConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3777})(KinesisStreamSourceConfiguration || (KinesisStreamSourceConfiguration = {}));
3778var RedshiftRetryOptions;
3779(function (RedshiftRetryOptions) {
3780 RedshiftRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3781})(RedshiftRetryOptions || (RedshiftRetryOptions = {}));
3782var RedshiftDestinationConfiguration;
3783(function (RedshiftDestinationConfiguration) {
3784 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"] }))); };
3785})(RedshiftDestinationConfiguration || (RedshiftDestinationConfiguration = {}));
3786var SplunkRetryOptions;
3787(function (SplunkRetryOptions) {
3788 SplunkRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3789})(SplunkRetryOptions || (SplunkRetryOptions = {}));
3790var SplunkDestinationConfiguration;
3791(function (SplunkDestinationConfiguration) {
3792 SplunkDestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3793})(SplunkDestinationConfiguration || (SplunkDestinationConfiguration = {}));
3794var Tag;
3795(function (Tag) {
3796 Tag.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3797})(Tag || (Tag = {}));
3798var CreateDeliveryStreamInput;
3799(function (CreateDeliveryStreamInput) {
3800 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 && {
3801 RedshiftDestinationConfiguration: RedshiftDestinationConfiguration.filterSensitiveLog(obj.RedshiftDestinationConfiguration),
3802 })), (obj.HttpEndpointDestinationConfiguration && {
3803 HttpEndpointDestinationConfiguration: HttpEndpointDestinationConfiguration.filterSensitiveLog(obj.HttpEndpointDestinationConfiguration),
3804 }))); };
3805})(CreateDeliveryStreamInput || (CreateDeliveryStreamInput = {}));
3806var CreateDeliveryStreamOutput;
3807(function (CreateDeliveryStreamOutput) {
3808 CreateDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3809})(CreateDeliveryStreamOutput || (CreateDeliveryStreamOutput = {}));
3810var InvalidArgumentException;
3811(function (InvalidArgumentException) {
3812 InvalidArgumentException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3813})(InvalidArgumentException || (InvalidArgumentException = {}));
3814var InvalidKMSResourceException;
3815(function (InvalidKMSResourceException) {
3816 InvalidKMSResourceException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3817})(InvalidKMSResourceException || (InvalidKMSResourceException = {}));
3818var LimitExceededException;
3819(function (LimitExceededException) {
3820 LimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3821})(LimitExceededException || (LimitExceededException = {}));
3822var ResourceInUseException;
3823(function (ResourceInUseException) {
3824 ResourceInUseException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3825})(ResourceInUseException || (ResourceInUseException = {}));
3826var DeleteDeliveryStreamInput;
3827(function (DeleteDeliveryStreamInput) {
3828 DeleteDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3829})(DeleteDeliveryStreamInput || (DeleteDeliveryStreamInput = {}));
3830var DeleteDeliveryStreamOutput;
3831(function (DeleteDeliveryStreamOutput) {
3832 DeleteDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3833})(DeleteDeliveryStreamOutput || (DeleteDeliveryStreamOutput = {}));
3834var ResourceNotFoundException;
3835(function (ResourceNotFoundException) {
3836 ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3837})(ResourceNotFoundException || (ResourceNotFoundException = {}));
3838var DeliveryStreamFailureType;
3839(function (DeliveryStreamFailureType) {
3840 DeliveryStreamFailureType["CREATE_ENI_FAILED"] = "CREATE_ENI_FAILED";
3841 DeliveryStreamFailureType["CREATE_KMS_GRANT_FAILED"] = "CREATE_KMS_GRANT_FAILED";
3842 DeliveryStreamFailureType["DELETE_ENI_FAILED"] = "DELETE_ENI_FAILED";
3843 DeliveryStreamFailureType["DISABLED_KMS_KEY"] = "DISABLED_KMS_KEY";
3844 DeliveryStreamFailureType["ENI_ACCESS_DENIED"] = "ENI_ACCESS_DENIED";
3845 DeliveryStreamFailureType["INVALID_KMS_KEY"] = "INVALID_KMS_KEY";
3846 DeliveryStreamFailureType["KMS_ACCESS_DENIED"] = "KMS_ACCESS_DENIED";
3847 DeliveryStreamFailureType["KMS_KEY_NOT_FOUND"] = "KMS_KEY_NOT_FOUND";
3848 DeliveryStreamFailureType["KMS_OPT_IN_REQUIRED"] = "KMS_OPT_IN_REQUIRED";
3849 DeliveryStreamFailureType["RETIRE_KMS_GRANT_FAILED"] = "RETIRE_KMS_GRANT_FAILED";
3850 DeliveryStreamFailureType["SECURITY_GROUP_ACCESS_DENIED"] = "SECURITY_GROUP_ACCESS_DENIED";
3851 DeliveryStreamFailureType["SECURITY_GROUP_NOT_FOUND"] = "SECURITY_GROUP_NOT_FOUND";
3852 DeliveryStreamFailureType["SUBNET_ACCESS_DENIED"] = "SUBNET_ACCESS_DENIED";
3853 DeliveryStreamFailureType["SUBNET_NOT_FOUND"] = "SUBNET_NOT_FOUND";
3854 DeliveryStreamFailureType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
3855})(DeliveryStreamFailureType || (DeliveryStreamFailureType = {}));
3856var FailureDescription;
3857(function (FailureDescription) {
3858 FailureDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3859})(FailureDescription || (FailureDescription = {}));
3860var DeliveryStreamEncryptionStatus;
3861(function (DeliveryStreamEncryptionStatus) {
3862 DeliveryStreamEncryptionStatus["DISABLED"] = "DISABLED";
3863 DeliveryStreamEncryptionStatus["DISABLING"] = "DISABLING";
3864 DeliveryStreamEncryptionStatus["DISABLING_FAILED"] = "DISABLING_FAILED";
3865 DeliveryStreamEncryptionStatus["ENABLED"] = "ENABLED";
3866 DeliveryStreamEncryptionStatus["ENABLING"] = "ENABLING";
3867 DeliveryStreamEncryptionStatus["ENABLING_FAILED"] = "ENABLING_FAILED";
3868})(DeliveryStreamEncryptionStatus || (DeliveryStreamEncryptionStatus = {}));
3869var DeliveryStreamEncryptionConfiguration;
3870(function (DeliveryStreamEncryptionConfiguration) {
3871 DeliveryStreamEncryptionConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3872})(DeliveryStreamEncryptionConfiguration || (DeliveryStreamEncryptionConfiguration = {}));
3873var DeliveryStreamStatus;
3874(function (DeliveryStreamStatus) {
3875 DeliveryStreamStatus["ACTIVE"] = "ACTIVE";
3876 DeliveryStreamStatus["CREATING"] = "CREATING";
3877 DeliveryStreamStatus["CREATING_FAILED"] = "CREATING_FAILED";
3878 DeliveryStreamStatus["DELETING"] = "DELETING";
3879 DeliveryStreamStatus["DELETING_FAILED"] = "DELETING_FAILED";
3880})(DeliveryStreamStatus || (DeliveryStreamStatus = {}));
3881var S3DestinationDescription;
3882(function (S3DestinationDescription) {
3883 S3DestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3884})(S3DestinationDescription || (S3DestinationDescription = {}));
3885var VpcConfigurationDescription;
3886(function (VpcConfigurationDescription) {
3887 VpcConfigurationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3888})(VpcConfigurationDescription || (VpcConfigurationDescription = {}));
3889var ElasticsearchDestinationDescription;
3890(function (ElasticsearchDestinationDescription) {
3891 ElasticsearchDestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3892})(ElasticsearchDestinationDescription || (ElasticsearchDestinationDescription = {}));
3893var ExtendedS3DestinationDescription;
3894(function (ExtendedS3DestinationDescription) {
3895 ExtendedS3DestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3896})(ExtendedS3DestinationDescription || (ExtendedS3DestinationDescription = {}));
3897var HttpEndpointDescription;
3898(function (HttpEndpointDescription) {
3899 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"] }))); };
3900})(HttpEndpointDescription || (HttpEndpointDescription = {}));
3901var HttpEndpointDestinationDescription;
3902(function (HttpEndpointDestinationDescription) {
3903 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 && {
3904 EndpointConfiguration: HttpEndpointDescription.filterSensitiveLog(obj.EndpointConfiguration),
3905 })), (obj.RequestConfiguration && {
3906 RequestConfiguration: HttpEndpointRequestConfiguration.filterSensitiveLog(obj.RequestConfiguration),
3907 }))); };
3908})(HttpEndpointDestinationDescription || (HttpEndpointDestinationDescription = {}));
3909var RedshiftDestinationDescription;
3910(function (RedshiftDestinationDescription) {
3911 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"] }))); };
3912})(RedshiftDestinationDescription || (RedshiftDestinationDescription = {}));
3913var SplunkDestinationDescription;
3914(function (SplunkDestinationDescription) {
3915 SplunkDestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3916})(SplunkDestinationDescription || (SplunkDestinationDescription = {}));
3917var DestinationDescription;
3918(function (DestinationDescription) {
3919 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 && {
3920 RedshiftDestinationDescription: RedshiftDestinationDescription.filterSensitiveLog(obj.RedshiftDestinationDescription),
3921 })), (obj.HttpEndpointDestinationDescription && {
3922 HttpEndpointDestinationDescription: HttpEndpointDestinationDescription.filterSensitiveLog(obj.HttpEndpointDestinationDescription),
3923 }))); };
3924})(DestinationDescription || (DestinationDescription = {}));
3925var KinesisStreamSourceDescription;
3926(function (KinesisStreamSourceDescription) {
3927 KinesisStreamSourceDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3928})(KinesisStreamSourceDescription || (KinesisStreamSourceDescription = {}));
3929var SourceDescription;
3930(function (SourceDescription) {
3931 SourceDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3932})(SourceDescription || (SourceDescription = {}));
3933var DeliveryStreamDescription;
3934(function (DeliveryStreamDescription) {
3935 DeliveryStreamDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Destinations && {
3936 Destinations: obj.Destinations.map(function (item) { return DestinationDescription.filterSensitiveLog(item); }),
3937 }))); };
3938})(DeliveryStreamDescription || (DeliveryStreamDescription = {}));
3939var DescribeDeliveryStreamInput;
3940(function (DescribeDeliveryStreamInput) {
3941 DescribeDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3942})(DescribeDeliveryStreamInput || (DescribeDeliveryStreamInput = {}));
3943var DescribeDeliveryStreamOutput;
3944(function (DescribeDeliveryStreamOutput) {
3945 DescribeDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.DeliveryStreamDescription && {
3946 DeliveryStreamDescription: DeliveryStreamDescription.filterSensitiveLog(obj.DeliveryStreamDescription),
3947 }))); };
3948})(DescribeDeliveryStreamOutput || (DescribeDeliveryStreamOutput = {}));
3949var S3DestinationUpdate;
3950(function (S3DestinationUpdate) {
3951 S3DestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3952})(S3DestinationUpdate || (S3DestinationUpdate = {}));
3953var ElasticsearchDestinationUpdate;
3954(function (ElasticsearchDestinationUpdate) {
3955 ElasticsearchDestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3956})(ElasticsearchDestinationUpdate || (ElasticsearchDestinationUpdate = {}));
3957var ExtendedS3DestinationUpdate;
3958(function (ExtendedS3DestinationUpdate) {
3959 ExtendedS3DestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3960})(ExtendedS3DestinationUpdate || (ExtendedS3DestinationUpdate = {}));
3961var ListDeliveryStreamsInput;
3962(function (ListDeliveryStreamsInput) {
3963 ListDeliveryStreamsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3964})(ListDeliveryStreamsInput || (ListDeliveryStreamsInput = {}));
3965var ListDeliveryStreamsOutput;
3966(function (ListDeliveryStreamsOutput) {
3967 ListDeliveryStreamsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3968})(ListDeliveryStreamsOutput || (ListDeliveryStreamsOutput = {}));
3969var ListTagsForDeliveryStreamInput;
3970(function (ListTagsForDeliveryStreamInput) {
3971 ListTagsForDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3972})(ListTagsForDeliveryStreamInput || (ListTagsForDeliveryStreamInput = {}));
3973var ListTagsForDeliveryStreamOutput;
3974(function (ListTagsForDeliveryStreamOutput) {
3975 ListTagsForDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3976})(ListTagsForDeliveryStreamOutput || (ListTagsForDeliveryStreamOutput = {}));
3977var _Record;
3978(function (_Record) {
3979 _Record.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3980})(_Record || (_Record = {}));
3981var PutRecordInput;
3982(function (PutRecordInput) {
3983 PutRecordInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3984})(PutRecordInput || (PutRecordInput = {}));
3985var PutRecordOutput;
3986(function (PutRecordOutput) {
3987 PutRecordOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3988})(PutRecordOutput || (PutRecordOutput = {}));
3989var ServiceUnavailableException;
3990(function (ServiceUnavailableException) {
3991 ServiceUnavailableException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3992})(ServiceUnavailableException || (ServiceUnavailableException = {}));
3993var PutRecordBatchInput;
3994(function (PutRecordBatchInput) {
3995 PutRecordBatchInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3996})(PutRecordBatchInput || (PutRecordBatchInput = {}));
3997var PutRecordBatchResponseEntry;
3998(function (PutRecordBatchResponseEntry) {
3999 PutRecordBatchResponseEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4000})(PutRecordBatchResponseEntry || (PutRecordBatchResponseEntry = {}));
4001var PutRecordBatchOutput;
4002(function (PutRecordBatchOutput) {
4003 PutRecordBatchOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4004})(PutRecordBatchOutput || (PutRecordBatchOutput = {}));
4005var StartDeliveryStreamEncryptionInput;
4006(function (StartDeliveryStreamEncryptionInput) {
4007 StartDeliveryStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4008})(StartDeliveryStreamEncryptionInput || (StartDeliveryStreamEncryptionInput = {}));
4009var StartDeliveryStreamEncryptionOutput;
4010(function (StartDeliveryStreamEncryptionOutput) {
4011 StartDeliveryStreamEncryptionOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4012})(StartDeliveryStreamEncryptionOutput || (StartDeliveryStreamEncryptionOutput = {}));
4013var StopDeliveryStreamEncryptionInput;
4014(function (StopDeliveryStreamEncryptionInput) {
4015 StopDeliveryStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4016})(StopDeliveryStreamEncryptionInput || (StopDeliveryStreamEncryptionInput = {}));
4017var StopDeliveryStreamEncryptionOutput;
4018(function (StopDeliveryStreamEncryptionOutput) {
4019 StopDeliveryStreamEncryptionOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4020})(StopDeliveryStreamEncryptionOutput || (StopDeliveryStreamEncryptionOutput = {}));
4021var TagDeliveryStreamInput;
4022(function (TagDeliveryStreamInput) {
4023 TagDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4024})(TagDeliveryStreamInput || (TagDeliveryStreamInput = {}));
4025var TagDeliveryStreamOutput;
4026(function (TagDeliveryStreamOutput) {
4027 TagDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4028})(TagDeliveryStreamOutput || (TagDeliveryStreamOutput = {}));
4029var UntagDeliveryStreamInput;
4030(function (UntagDeliveryStreamInput) {
4031 UntagDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4032})(UntagDeliveryStreamInput || (UntagDeliveryStreamInput = {}));
4033var UntagDeliveryStreamOutput;
4034(function (UntagDeliveryStreamOutput) {
4035 UntagDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4036})(UntagDeliveryStreamOutput || (UntagDeliveryStreamOutput = {}));
4037var HttpEndpointDestinationUpdate;
4038(function (HttpEndpointDestinationUpdate) {
4039 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 && {
4040 EndpointConfiguration: HttpEndpointConfiguration.filterSensitiveLog(obj.EndpointConfiguration),
4041 })), (obj.RequestConfiguration && {
4042 RequestConfiguration: HttpEndpointRequestConfiguration.filterSensitiveLog(obj.RequestConfiguration),
4043 }))); };
4044})(HttpEndpointDestinationUpdate || (HttpEndpointDestinationUpdate = {}));
4045var RedshiftDestinationUpdate;
4046(function (RedshiftDestinationUpdate) {
4047 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"] }))); };
4048})(RedshiftDestinationUpdate || (RedshiftDestinationUpdate = {}));
4049var SplunkDestinationUpdate;
4050(function (SplunkDestinationUpdate) {
4051 SplunkDestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4052})(SplunkDestinationUpdate || (SplunkDestinationUpdate = {}));
4053var UpdateDestinationInput;
4054(function (UpdateDestinationInput) {
4055 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 && {
4056 RedshiftDestinationUpdate: RedshiftDestinationUpdate.filterSensitiveLog(obj.RedshiftDestinationUpdate),
4057 })), (obj.HttpEndpointDestinationUpdate && {
4058 HttpEndpointDestinationUpdate: HttpEndpointDestinationUpdate.filterSensitiveLog(obj.HttpEndpointDestinationUpdate),
4059 }))); };
4060})(UpdateDestinationInput || (UpdateDestinationInput = {}));
4061var UpdateDestinationOutput;
4062(function (UpdateDestinationOutput) {
4063 UpdateDestinationOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4064})(UpdateDestinationOutput || (UpdateDestinationOutput = {}));
4065//# sourceMappingURL=models_0.js.map
4066
4067/***/ }),
4068
4069/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/package.json":
4070/*!***********************************************************************************!*\
4071 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/package.json ***!
4072 \***********************************************************************************/
4073/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
4074/***/ (function(module) {
4075
4076module.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\"}}");
4077
4078/***/ }),
4079
4080/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js":
4081/*!***********************************************************************************************!*\
4082 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js ***!
4083 \***********************************************************************************************/
4084/*! 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 */
4085/***/ (function(module, __webpack_exports__, __webpack_require__) {
4086
4087"use strict";
4088__webpack_require__.r(__webpack_exports__);
4089/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateDeliveryStreamCommand", function() { return serializeAws_json1_1CreateDeliveryStreamCommand; });
4090/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteDeliveryStreamCommand", function() { return serializeAws_json1_1DeleteDeliveryStreamCommand; });
4091/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeDeliveryStreamCommand", function() { return serializeAws_json1_1DescribeDeliveryStreamCommand; });
4092/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListDeliveryStreamsCommand", function() { return serializeAws_json1_1ListDeliveryStreamsCommand; });
4093/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTagsForDeliveryStreamCommand", function() { return serializeAws_json1_1ListTagsForDeliveryStreamCommand; });
4094/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordCommand", function() { return serializeAws_json1_1PutRecordCommand; });
4095/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordBatchCommand", function() { return serializeAws_json1_1PutRecordBatchCommand; });
4096/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartDeliveryStreamEncryptionCommand", function() { return serializeAws_json1_1StartDeliveryStreamEncryptionCommand; });
4097/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopDeliveryStreamEncryptionCommand", function() { return serializeAws_json1_1StopDeliveryStreamEncryptionCommand; });
4098/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1TagDeliveryStreamCommand", function() { return serializeAws_json1_1TagDeliveryStreamCommand; });
4099/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UntagDeliveryStreamCommand", function() { return serializeAws_json1_1UntagDeliveryStreamCommand; });
4100/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UpdateDestinationCommand", function() { return serializeAws_json1_1UpdateDestinationCommand; });
4101/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateDeliveryStreamCommand", function() { return deserializeAws_json1_1CreateDeliveryStreamCommand; });
4102/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteDeliveryStreamCommand", function() { return deserializeAws_json1_1DeleteDeliveryStreamCommand; });
4103/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeDeliveryStreamCommand", function() { return deserializeAws_json1_1DescribeDeliveryStreamCommand; });
4104/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListDeliveryStreamsCommand", function() { return deserializeAws_json1_1ListDeliveryStreamsCommand; });
4105/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTagsForDeliveryStreamCommand", function() { return deserializeAws_json1_1ListTagsForDeliveryStreamCommand; });
4106/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordCommand", function() { return deserializeAws_json1_1PutRecordCommand; });
4107/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordBatchCommand", function() { return deserializeAws_json1_1PutRecordBatchCommand; });
4108/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartDeliveryStreamEncryptionCommand", function() { return deserializeAws_json1_1StartDeliveryStreamEncryptionCommand; });
4109/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopDeliveryStreamEncryptionCommand", function() { return deserializeAws_json1_1StopDeliveryStreamEncryptionCommand; });
4110/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1TagDeliveryStreamCommand", function() { return deserializeAws_json1_1TagDeliveryStreamCommand; });
4111/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UntagDeliveryStreamCommand", function() { return deserializeAws_json1_1UntagDeliveryStreamCommand; });
4112/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UpdateDestinationCommand", function() { return deserializeAws_json1_1UpdateDestinationCommand; });
4113/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
4114/* 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");
4115
4116
4117var serializeAws_json1_1CreateDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4118 var headers, body;
4119 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4120 headers = {
4121 "content-type": "application/x-amz-json-1.1",
4122 "x-amz-target": "Firehose_20150804.CreateDeliveryStream",
4123 };
4124 body = JSON.stringify(serializeAws_json1_1CreateDeliveryStreamInput(input, context));
4125 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4126 });
4127}); };
4128var serializeAws_json1_1DeleteDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4129 var headers, body;
4130 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4131 headers = {
4132 "content-type": "application/x-amz-json-1.1",
4133 "x-amz-target": "Firehose_20150804.DeleteDeliveryStream",
4134 };
4135 body = JSON.stringify(serializeAws_json1_1DeleteDeliveryStreamInput(input, context));
4136 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4137 });
4138}); };
4139var serializeAws_json1_1DescribeDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4140 var headers, body;
4141 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4142 headers = {
4143 "content-type": "application/x-amz-json-1.1",
4144 "x-amz-target": "Firehose_20150804.DescribeDeliveryStream",
4145 };
4146 body = JSON.stringify(serializeAws_json1_1DescribeDeliveryStreamInput(input, context));
4147 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4148 });
4149}); };
4150var serializeAws_json1_1ListDeliveryStreamsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4151 var headers, body;
4152 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4153 headers = {
4154 "content-type": "application/x-amz-json-1.1",
4155 "x-amz-target": "Firehose_20150804.ListDeliveryStreams",
4156 };
4157 body = JSON.stringify(serializeAws_json1_1ListDeliveryStreamsInput(input, context));
4158 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4159 });
4160}); };
4161var serializeAws_json1_1ListTagsForDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4162 var headers, body;
4163 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4164 headers = {
4165 "content-type": "application/x-amz-json-1.1",
4166 "x-amz-target": "Firehose_20150804.ListTagsForDeliveryStream",
4167 };
4168 body = JSON.stringify(serializeAws_json1_1ListTagsForDeliveryStreamInput(input, context));
4169 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4170 });
4171}); };
4172var serializeAws_json1_1PutRecordCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4173 var headers, body;
4174 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4175 headers = {
4176 "content-type": "application/x-amz-json-1.1",
4177 "x-amz-target": "Firehose_20150804.PutRecord",
4178 };
4179 body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
4180 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4181 });
4182}); };
4183var serializeAws_json1_1PutRecordBatchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4184 var headers, body;
4185 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4186 headers = {
4187 "content-type": "application/x-amz-json-1.1",
4188 "x-amz-target": "Firehose_20150804.PutRecordBatch",
4189 };
4190 body = JSON.stringify(serializeAws_json1_1PutRecordBatchInput(input, context));
4191 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4192 });
4193}); };
4194var serializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4195 var headers, body;
4196 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4197 headers = {
4198 "content-type": "application/x-amz-json-1.1",
4199 "x-amz-target": "Firehose_20150804.StartDeliveryStreamEncryption",
4200 };
4201 body = JSON.stringify(serializeAws_json1_1StartDeliveryStreamEncryptionInput(input, context));
4202 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4203 });
4204}); };
4205var serializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4206 var headers, body;
4207 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4208 headers = {
4209 "content-type": "application/x-amz-json-1.1",
4210 "x-amz-target": "Firehose_20150804.StopDeliveryStreamEncryption",
4211 };
4212 body = JSON.stringify(serializeAws_json1_1StopDeliveryStreamEncryptionInput(input, context));
4213 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4214 });
4215}); };
4216var serializeAws_json1_1TagDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4217 var headers, body;
4218 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4219 headers = {
4220 "content-type": "application/x-amz-json-1.1",
4221 "x-amz-target": "Firehose_20150804.TagDeliveryStream",
4222 };
4223 body = JSON.stringify(serializeAws_json1_1TagDeliveryStreamInput(input, context));
4224 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4225 });
4226}); };
4227var serializeAws_json1_1UntagDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4228 var headers, body;
4229 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4230 headers = {
4231 "content-type": "application/x-amz-json-1.1",
4232 "x-amz-target": "Firehose_20150804.UntagDeliveryStream",
4233 };
4234 body = JSON.stringify(serializeAws_json1_1UntagDeliveryStreamInput(input, context));
4235 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4236 });
4237}); };
4238var serializeAws_json1_1UpdateDestinationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4239 var headers, body;
4240 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4241 headers = {
4242 "content-type": "application/x-amz-json-1.1",
4243 "x-amz-target": "Firehose_20150804.UpdateDestination",
4244 };
4245 body = JSON.stringify(serializeAws_json1_1UpdateDestinationInput(input, context));
4246 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4247 });
4248}); };
4249var deserializeAws_json1_1CreateDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4250 var data, contents, response;
4251 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4252 switch (_a.label) {
4253 case 0:
4254 if (output.statusCode >= 300) {
4255 return [2 /*return*/, deserializeAws_json1_1CreateDeliveryStreamCommandError(output, context)];
4256 }
4257 return [4 /*yield*/, parseBody(output.body, context)];
4258 case 1:
4259 data = _a.sent();
4260 contents = {};
4261 contents = deserializeAws_json1_1CreateDeliveryStreamOutput(data, context);
4262 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4263 return [2 /*return*/, Promise.resolve(response)];
4264 }
4265 });
4266}); };
4267var deserializeAws_json1_1CreateDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4268 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4269 var _g;
4270 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4271 switch (_h.label) {
4272 case 0:
4273 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4274 _g = {};
4275 return [4 /*yield*/, parseBody(output.body, context)];
4276 case 1:
4277 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4278 errorCode = "UnknownError";
4279 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4280 _b = errorCode;
4281 switch (_b) {
4282 case "InvalidArgumentException": return [3 /*break*/, 2];
4283 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4284 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4285 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4286 case "LimitExceededException": return [3 /*break*/, 6];
4287 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 6];
4288 case "ResourceInUseException": return [3 /*break*/, 8];
4289 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 8];
4290 }
4291 return [3 /*break*/, 10];
4292 case 2:
4293 _c = [{}];
4294 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4295 case 3:
4296 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) }]);
4297 return [3 /*break*/, 11];
4298 case 4:
4299 _d = [{}];
4300 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4301 case 5:
4302 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) }]);
4303 return [3 /*break*/, 11];
4304 case 6:
4305 _e = [{}];
4306 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4307 case 7:
4308 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) }]);
4309 return [3 /*break*/, 11];
4310 case 8:
4311 _f = [{}];
4312 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4313 case 9:
4314 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) }]);
4315 return [3 /*break*/, 11];
4316 case 10:
4317 parsedBody = parsedOutput.body;
4318 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4319 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) });
4320 _h.label = 11;
4321 case 11:
4322 message = response.message || response.Message || errorCode;
4323 response.message = message;
4324 delete response.Message;
4325 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4326 }
4327 });
4328}); };
4329var deserializeAws_json1_1DeleteDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4330 var data, contents, response;
4331 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4332 switch (_a.label) {
4333 case 0:
4334 if (output.statusCode >= 300) {
4335 return [2 /*return*/, deserializeAws_json1_1DeleteDeliveryStreamCommandError(output, context)];
4336 }
4337 return [4 /*yield*/, parseBody(output.body, context)];
4338 case 1:
4339 data = _a.sent();
4340 contents = {};
4341 contents = deserializeAws_json1_1DeleteDeliveryStreamOutput(data, context);
4342 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4343 return [2 /*return*/, Promise.resolve(response)];
4344 }
4345 });
4346}); };
4347var deserializeAws_json1_1DeleteDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4348 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
4349 var _e;
4350 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
4351 switch (_f.label) {
4352 case 0:
4353 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4354 _e = {};
4355 return [4 /*yield*/, parseBody(output.body, context)];
4356 case 1:
4357 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
4358 errorCode = "UnknownError";
4359 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4360 _b = errorCode;
4361 switch (_b) {
4362 case "ResourceInUseException": return [3 /*break*/, 2];
4363 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 2];
4364 case "ResourceNotFoundException": return [3 /*break*/, 4];
4365 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 4];
4366 }
4367 return [3 /*break*/, 6];
4368 case 2:
4369 _c = [{}];
4370 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4371 case 3:
4372 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) }]);
4373 return [3 /*break*/, 7];
4374 case 4:
4375 _d = [{}];
4376 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4377 case 5:
4378 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) }]);
4379 return [3 /*break*/, 7];
4380 case 6:
4381 parsedBody = parsedOutput.body;
4382 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4383 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) });
4384 _f.label = 7;
4385 case 7:
4386 message = response.message || response.Message || errorCode;
4387 response.message = message;
4388 delete response.Message;
4389 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4390 }
4391 });
4392}); };
4393var deserializeAws_json1_1DescribeDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4394 var data, contents, response;
4395 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4396 switch (_a.label) {
4397 case 0:
4398 if (output.statusCode >= 300) {
4399 return [2 /*return*/, deserializeAws_json1_1DescribeDeliveryStreamCommandError(output, context)];
4400 }
4401 return [4 /*yield*/, parseBody(output.body, context)];
4402 case 1:
4403 data = _a.sent();
4404 contents = {};
4405 contents = deserializeAws_json1_1DescribeDeliveryStreamOutput(data, context);
4406 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4407 return [2 /*return*/, Promise.resolve(response)];
4408 }
4409 });
4410}); };
4411var deserializeAws_json1_1DescribeDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4412 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
4413 var _d;
4414 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
4415 switch (_e.label) {
4416 case 0:
4417 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4418 _d = {};
4419 return [4 /*yield*/, parseBody(output.body, context)];
4420 case 1:
4421 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
4422 errorCode = "UnknownError";
4423 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4424 _b = errorCode;
4425 switch (_b) {
4426 case "ResourceNotFoundException": return [3 /*break*/, 2];
4427 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 2];
4428 }
4429 return [3 /*break*/, 4];
4430 case 2:
4431 _c = [{}];
4432 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4433 case 3:
4434 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) }]);
4435 return [3 /*break*/, 5];
4436 case 4:
4437 parsedBody = parsedOutput.body;
4438 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4439 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) });
4440 _e.label = 5;
4441 case 5:
4442 message = response.message || response.Message || errorCode;
4443 response.message = message;
4444 delete response.Message;
4445 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4446 }
4447 });
4448}); };
4449var deserializeAws_json1_1ListDeliveryStreamsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4450 var data, contents, response;
4451 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4452 switch (_a.label) {
4453 case 0:
4454 if (output.statusCode >= 300) {
4455 return [2 /*return*/, deserializeAws_json1_1ListDeliveryStreamsCommandError(output, context)];
4456 }
4457 return [4 /*yield*/, parseBody(output.body, context)];
4458 case 1:
4459 data = _a.sent();
4460 contents = {};
4461 contents = deserializeAws_json1_1ListDeliveryStreamsOutput(data, context);
4462 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4463 return [2 /*return*/, Promise.resolve(response)];
4464 }
4465 });
4466}); };
4467var deserializeAws_json1_1ListDeliveryStreamsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4468 var parsedOutput, _a, response, errorCode, parsedBody, message;
4469 var _b;
4470 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
4471 switch (_c.label) {
4472 case 0:
4473 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4474 _b = {};
4475 return [4 /*yield*/, parseBody(output.body, context)];
4476 case 1:
4477 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
4478 errorCode = "UnknownError";
4479 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4480 switch (errorCode) {
4481 default:
4482 parsedBody = parsedOutput.body;
4483 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4484 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) });
4485 }
4486 message = response.message || response.Message || errorCode;
4487 response.message = message;
4488 delete response.Message;
4489 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4490 }
4491 });
4492}); };
4493var deserializeAws_json1_1ListTagsForDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4494 var data, contents, response;
4495 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4496 switch (_a.label) {
4497 case 0:
4498 if (output.statusCode >= 300) {
4499 return [2 /*return*/, deserializeAws_json1_1ListTagsForDeliveryStreamCommandError(output, context)];
4500 }
4501 return [4 /*yield*/, parseBody(output.body, context)];
4502 case 1:
4503 data = _a.sent();
4504 contents = {};
4505 contents = deserializeAws_json1_1ListTagsForDeliveryStreamOutput(data, context);
4506 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4507 return [2 /*return*/, Promise.resolve(response)];
4508 }
4509 });
4510}); };
4511var deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4512 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
4513 var _f;
4514 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
4515 switch (_g.label) {
4516 case 0:
4517 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4518 _f = {};
4519 return [4 /*yield*/, parseBody(output.body, context)];
4520 case 1:
4521 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4522 errorCode = "UnknownError";
4523 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4524 _b = errorCode;
4525 switch (_b) {
4526 case "InvalidArgumentException": return [3 /*break*/, 2];
4527 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4528 case "LimitExceededException": return [3 /*break*/, 4];
4529 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
4530 case "ResourceNotFoundException": return [3 /*break*/, 6];
4531 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6];
4532 }
4533 return [3 /*break*/, 8];
4534 case 2:
4535 _c = [{}];
4536 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4537 case 3:
4538 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) }]);
4539 return [3 /*break*/, 9];
4540 case 4:
4541 _d = [{}];
4542 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4543 case 5:
4544 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) }]);
4545 return [3 /*break*/, 9];
4546 case 6:
4547 _e = [{}];
4548 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4549 case 7:
4550 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) }]);
4551 return [3 /*break*/, 9];
4552 case 8:
4553 parsedBody = parsedOutput.body;
4554 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4555 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) });
4556 _g.label = 9;
4557 case 9:
4558 message = response.message || response.Message || errorCode;
4559 response.message = message;
4560 delete response.Message;
4561 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4562 }
4563 });
4564}); };
4565var deserializeAws_json1_1PutRecordCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4566 var data, contents, response;
4567 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4568 switch (_a.label) {
4569 case 0:
4570 if (output.statusCode >= 300) {
4571 return [2 /*return*/, deserializeAws_json1_1PutRecordCommandError(output, context)];
4572 }
4573 return [4 /*yield*/, parseBody(output.body, context)];
4574 case 1:
4575 data = _a.sent();
4576 contents = {};
4577 contents = deserializeAws_json1_1PutRecordOutput(data, context);
4578 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4579 return [2 /*return*/, Promise.resolve(response)];
4580 }
4581 });
4582}); };
4583var deserializeAws_json1_1PutRecordCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4584 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4585 var _g;
4586 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4587 switch (_h.label) {
4588 case 0:
4589 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4590 _g = {};
4591 return [4 /*yield*/, parseBody(output.body, context)];
4592 case 1:
4593 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4594 errorCode = "UnknownError";
4595 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4596 _b = errorCode;
4597 switch (_b) {
4598 case "InvalidArgumentException": return [3 /*break*/, 2];
4599 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4600 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4601 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4602 case "ResourceNotFoundException": return [3 /*break*/, 6];
4603 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6];
4604 case "ServiceUnavailableException": return [3 /*break*/, 8];
4605 case "com.amazonaws.firehose#ServiceUnavailableException": return [3 /*break*/, 8];
4606 }
4607 return [3 /*break*/, 10];
4608 case 2:
4609 _c = [{}];
4610 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4611 case 3:
4612 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) }]);
4613 return [3 /*break*/, 11];
4614 case 4:
4615 _d = [{}];
4616 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4617 case 5:
4618 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) }]);
4619 return [3 /*break*/, 11];
4620 case 6:
4621 _e = [{}];
4622 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4623 case 7:
4624 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) }]);
4625 return [3 /*break*/, 11];
4626 case 8:
4627 _f = [{}];
4628 return [4 /*yield*/, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
4629 case 9:
4630 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) }]);
4631 return [3 /*break*/, 11];
4632 case 10:
4633 parsedBody = parsedOutput.body;
4634 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4635 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) });
4636 _h.label = 11;
4637 case 11:
4638 message = response.message || response.Message || errorCode;
4639 response.message = message;
4640 delete response.Message;
4641 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4642 }
4643 });
4644}); };
4645var deserializeAws_json1_1PutRecordBatchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4646 var data, contents, response;
4647 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4648 switch (_a.label) {
4649 case 0:
4650 if (output.statusCode >= 300) {
4651 return [2 /*return*/, deserializeAws_json1_1PutRecordBatchCommandError(output, context)];
4652 }
4653 return [4 /*yield*/, parseBody(output.body, context)];
4654 case 1:
4655 data = _a.sent();
4656 contents = {};
4657 contents = deserializeAws_json1_1PutRecordBatchOutput(data, context);
4658 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4659 return [2 /*return*/, Promise.resolve(response)];
4660 }
4661 });
4662}); };
4663var deserializeAws_json1_1PutRecordBatchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4664 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4665 var _g;
4666 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4667 switch (_h.label) {
4668 case 0:
4669 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4670 _g = {};
4671 return [4 /*yield*/, parseBody(output.body, context)];
4672 case 1:
4673 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4674 errorCode = "UnknownError";
4675 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4676 _b = errorCode;
4677 switch (_b) {
4678 case "InvalidArgumentException": return [3 /*break*/, 2];
4679 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4680 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4681 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4682 case "ResourceNotFoundException": return [3 /*break*/, 6];
4683 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6];
4684 case "ServiceUnavailableException": return [3 /*break*/, 8];
4685 case "com.amazonaws.firehose#ServiceUnavailableException": return [3 /*break*/, 8];
4686 }
4687 return [3 /*break*/, 10];
4688 case 2:
4689 _c = [{}];
4690 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4691 case 3:
4692 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) }]);
4693 return [3 /*break*/, 11];
4694 case 4:
4695 _d = [{}];
4696 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4697 case 5:
4698 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) }]);
4699 return [3 /*break*/, 11];
4700 case 6:
4701 _e = [{}];
4702 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4703 case 7:
4704 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) }]);
4705 return [3 /*break*/, 11];
4706 case 8:
4707 _f = [{}];
4708 return [4 /*yield*/, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
4709 case 9:
4710 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) }]);
4711 return [3 /*break*/, 11];
4712 case 10:
4713 parsedBody = parsedOutput.body;
4714 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4715 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) });
4716 _h.label = 11;
4717 case 11:
4718 message = response.message || response.Message || errorCode;
4719 response.message = message;
4720 delete response.Message;
4721 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4722 }
4723 });
4724}); };
4725var deserializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4726 var data, contents, response;
4727 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4728 switch (_a.label) {
4729 case 0:
4730 if (output.statusCode >= 300) {
4731 return [2 /*return*/, deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError(output, context)];
4732 }
4733 return [4 /*yield*/, parseBody(output.body, context)];
4734 case 1:
4735 data = _a.sent();
4736 contents = {};
4737 contents = deserializeAws_json1_1StartDeliveryStreamEncryptionOutput(data, context);
4738 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4739 return [2 /*return*/, Promise.resolve(response)];
4740 }
4741 });
4742}); };
4743var deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4744 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
4745 var _h;
4746 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
4747 switch (_j.label) {
4748 case 0:
4749 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4750 _h = {};
4751 return [4 /*yield*/, parseBody(output.body, context)];
4752 case 1:
4753 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
4754 errorCode = "UnknownError";
4755 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4756 _b = errorCode;
4757 switch (_b) {
4758 case "InvalidArgumentException": return [3 /*break*/, 2];
4759 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4760 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4761 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4762 case "LimitExceededException": return [3 /*break*/, 6];
4763 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 6];
4764 case "ResourceInUseException": return [3 /*break*/, 8];
4765 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 8];
4766 case "ResourceNotFoundException": return [3 /*break*/, 10];
4767 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 10];
4768 }
4769 return [3 /*break*/, 12];
4770 case 2:
4771 _c = [{}];
4772 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4773 case 3:
4774 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) }]);
4775 return [3 /*break*/, 13];
4776 case 4:
4777 _d = [{}];
4778 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4779 case 5:
4780 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) }]);
4781 return [3 /*break*/, 13];
4782 case 6:
4783 _e = [{}];
4784 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4785 case 7:
4786 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) }]);
4787 return [3 /*break*/, 13];
4788 case 8:
4789 _f = [{}];
4790 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4791 case 9:
4792 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) }]);
4793 return [3 /*break*/, 13];
4794 case 10:
4795 _g = [{}];
4796 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4797 case 11:
4798 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) }]);
4799 return [3 /*break*/, 13];
4800 case 12:
4801 parsedBody = parsedOutput.body;
4802 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4803 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) });
4804 _j.label = 13;
4805 case 13:
4806 message = response.message || response.Message || errorCode;
4807 response.message = message;
4808 delete response.Message;
4809 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4810 }
4811 });
4812}); };
4813var deserializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4814 var data, contents, response;
4815 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4816 switch (_a.label) {
4817 case 0:
4818 if (output.statusCode >= 300) {
4819 return [2 /*return*/, deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError(output, context)];
4820 }
4821 return [4 /*yield*/, parseBody(output.body, context)];
4822 case 1:
4823 data = _a.sent();
4824 contents = {};
4825 contents = deserializeAws_json1_1StopDeliveryStreamEncryptionOutput(data, context);
4826 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4827 return [2 /*return*/, Promise.resolve(response)];
4828 }
4829 });
4830}); };
4831var deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4832 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4833 var _g;
4834 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4835 switch (_h.label) {
4836 case 0:
4837 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4838 _g = {};
4839 return [4 /*yield*/, parseBody(output.body, context)];
4840 case 1:
4841 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4842 errorCode = "UnknownError";
4843 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4844 _b = errorCode;
4845 switch (_b) {
4846 case "InvalidArgumentException": return [3 /*break*/, 2];
4847 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4848 case "LimitExceededException": return [3 /*break*/, 4];
4849 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
4850 case "ResourceInUseException": return [3 /*break*/, 6];
4851 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
4852 case "ResourceNotFoundException": return [3 /*break*/, 8];
4853 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
4854 }
4855 return [3 /*break*/, 10];
4856 case 2:
4857 _c = [{}];
4858 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4859 case 3:
4860 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) }]);
4861 return [3 /*break*/, 11];
4862 case 4:
4863 _d = [{}];
4864 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4865 case 5:
4866 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) }]);
4867 return [3 /*break*/, 11];
4868 case 6:
4869 _e = [{}];
4870 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4871 case 7:
4872 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) }]);
4873 return [3 /*break*/, 11];
4874 case 8:
4875 _f = [{}];
4876 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4877 case 9:
4878 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) }]);
4879 return [3 /*break*/, 11];
4880 case 10:
4881 parsedBody = parsedOutput.body;
4882 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4883 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) });
4884 _h.label = 11;
4885 case 11:
4886 message = response.message || response.Message || errorCode;
4887 response.message = message;
4888 delete response.Message;
4889 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4890 }
4891 });
4892}); };
4893var deserializeAws_json1_1TagDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4894 var data, contents, response;
4895 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4896 switch (_a.label) {
4897 case 0:
4898 if (output.statusCode >= 300) {
4899 return [2 /*return*/, deserializeAws_json1_1TagDeliveryStreamCommandError(output, context)];
4900 }
4901 return [4 /*yield*/, parseBody(output.body, context)];
4902 case 1:
4903 data = _a.sent();
4904 contents = {};
4905 contents = deserializeAws_json1_1TagDeliveryStreamOutput(data, context);
4906 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4907 return [2 /*return*/, Promise.resolve(response)];
4908 }
4909 });
4910}); };
4911var deserializeAws_json1_1TagDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4912 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4913 var _g;
4914 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4915 switch (_h.label) {
4916 case 0:
4917 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4918 _g = {};
4919 return [4 /*yield*/, parseBody(output.body, context)];
4920 case 1:
4921 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4922 errorCode = "UnknownError";
4923 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4924 _b = errorCode;
4925 switch (_b) {
4926 case "InvalidArgumentException": return [3 /*break*/, 2];
4927 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4928 case "LimitExceededException": return [3 /*break*/, 4];
4929 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
4930 case "ResourceInUseException": return [3 /*break*/, 6];
4931 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
4932 case "ResourceNotFoundException": return [3 /*break*/, 8];
4933 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
4934 }
4935 return [3 /*break*/, 10];
4936 case 2:
4937 _c = [{}];
4938 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4939 case 3:
4940 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) }]);
4941 return [3 /*break*/, 11];
4942 case 4:
4943 _d = [{}];
4944 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4945 case 5:
4946 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) }]);
4947 return [3 /*break*/, 11];
4948 case 6:
4949 _e = [{}];
4950 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4951 case 7:
4952 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) }]);
4953 return [3 /*break*/, 11];
4954 case 8:
4955 _f = [{}];
4956 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4957 case 9:
4958 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) }]);
4959 return [3 /*break*/, 11];
4960 case 10:
4961 parsedBody = parsedOutput.body;
4962 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4963 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) });
4964 _h.label = 11;
4965 case 11:
4966 message = response.message || response.Message || errorCode;
4967 response.message = message;
4968 delete response.Message;
4969 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4970 }
4971 });
4972}); };
4973var deserializeAws_json1_1UntagDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4974 var data, contents, response;
4975 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4976 switch (_a.label) {
4977 case 0:
4978 if (output.statusCode >= 300) {
4979 return [2 /*return*/, deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context)];
4980 }
4981 return [4 /*yield*/, parseBody(output.body, context)];
4982 case 1:
4983 data = _a.sent();
4984 contents = {};
4985 contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context);
4986 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4987 return [2 /*return*/, Promise.resolve(response)];
4988 }
4989 });
4990}); };
4991var deserializeAws_json1_1UntagDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4992 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4993 var _g;
4994 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4995 switch (_h.label) {
4996 case 0:
4997 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4998 _g = {};
4999 return [4 /*yield*/, parseBody(output.body, context)];
5000 case 1:
5001 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
5002 errorCode = "UnknownError";
5003 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5004 _b = errorCode;
5005 switch (_b) {
5006 case "InvalidArgumentException": return [3 /*break*/, 2];
5007 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
5008 case "LimitExceededException": return [3 /*break*/, 4];
5009 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
5010 case "ResourceInUseException": return [3 /*break*/, 6];
5011 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
5012 case "ResourceNotFoundException": return [3 /*break*/, 8];
5013 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
5014 }
5015 return [3 /*break*/, 10];
5016 case 2:
5017 _c = [{}];
5018 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
5019 case 3:
5020 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) }]);
5021 return [3 /*break*/, 11];
5022 case 4:
5023 _d = [{}];
5024 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
5025 case 5:
5026 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) }]);
5027 return [3 /*break*/, 11];
5028 case 6:
5029 _e = [{}];
5030 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
5031 case 7:
5032 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) }]);
5033 return [3 /*break*/, 11];
5034 case 8:
5035 _f = [{}];
5036 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5037 case 9:
5038 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) }]);
5039 return [3 /*break*/, 11];
5040 case 10:
5041 parsedBody = parsedOutput.body;
5042 errorCode = parsedBody.code || parsedBody.Code || errorCode;
5043 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) });
5044 _h.label = 11;
5045 case 11:
5046 message = response.message || response.Message || errorCode;
5047 response.message = message;
5048 delete response.Message;
5049 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
5050 }
5051 });
5052}); };
5053var deserializeAws_json1_1UpdateDestinationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5054 var data, contents, response;
5055 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5056 switch (_a.label) {
5057 case 0:
5058 if (output.statusCode >= 300) {
5059 return [2 /*return*/, deserializeAws_json1_1UpdateDestinationCommandError(output, context)];
5060 }
5061 return [4 /*yield*/, parseBody(output.body, context)];
5062 case 1:
5063 data = _a.sent();
5064 contents = {};
5065 contents = deserializeAws_json1_1UpdateDestinationOutput(data, context);
5066 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
5067 return [2 /*return*/, Promise.resolve(response)];
5068 }
5069 });
5070}); };
5071var deserializeAws_json1_1UpdateDestinationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5072 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
5073 var _g;
5074 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
5075 switch (_h.label) {
5076 case 0:
5077 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
5078 _g = {};
5079 return [4 /*yield*/, parseBody(output.body, context)];
5080 case 1:
5081 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
5082 errorCode = "UnknownError";
5083 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5084 _b = errorCode;
5085 switch (_b) {
5086 case "ConcurrentModificationException": return [3 /*break*/, 2];
5087 case "com.amazonaws.firehose#ConcurrentModificationException": return [3 /*break*/, 2];
5088 case "InvalidArgumentException": return [3 /*break*/, 4];
5089 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 4];
5090 case "ResourceInUseException": return [3 /*break*/, 6];
5091 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
5092 case "ResourceNotFoundException": return [3 /*break*/, 8];
5093 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
5094 }
5095 return [3 /*break*/, 10];
5096 case 2:
5097 _c = [{}];
5098 return [4 /*yield*/, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
5099 case 3:
5100 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) }]);
5101 return [3 /*break*/, 11];
5102 case 4:
5103 _d = [{}];
5104 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
5105 case 5:
5106 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) }]);
5107 return [3 /*break*/, 11];
5108 case 6:
5109 _e = [{}];
5110 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
5111 case 7:
5112 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) }]);
5113 return [3 /*break*/, 11];
5114 case 8:
5115 _f = [{}];
5116 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5117 case 9:
5118 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) }]);
5119 return [3 /*break*/, 11];
5120 case 10:
5121 parsedBody = parsedOutput.body;
5122 errorCode = parsedBody.code || parsedBody.Code || errorCode;
5123 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) });
5124 _h.label = 11;
5125 case 11:
5126 message = response.message || response.Message || errorCode;
5127 response.message = message;
5128 delete response.Message;
5129 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
5130 }
5131 });
5132}); };
5133var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5134 var body, deserialized, contents;
5135 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5136 body = parsedOutput.body;
5137 deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
5138 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5139 return [2 /*return*/, contents];
5140 });
5141}); };
5142var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5143 var body, deserialized, contents;
5144 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5145 body = parsedOutput.body;
5146 deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
5147 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5148 return [2 /*return*/, contents];
5149 });
5150}); };
5151var deserializeAws_json1_1InvalidKMSResourceExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5152 var body, deserialized, contents;
5153 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5154 body = parsedOutput.body;
5155 deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context);
5156 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidKMSResourceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5157 return [2 /*return*/, contents];
5158 });
5159}); };
5160var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5161 var body, deserialized, contents;
5162 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5163 body = parsedOutput.body;
5164 deserialized = deserializeAws_json1_1LimitExceededException(body, context);
5165 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5166 return [2 /*return*/, contents];
5167 });
5168}); };
5169var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5170 var body, deserialized, contents;
5171 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5172 body = parsedOutput.body;
5173 deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
5174 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5175 return [2 /*return*/, contents];
5176 });
5177}); };
5178var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5179 var body, deserialized, contents;
5180 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5181 body = parsedOutput.body;
5182 deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
5183 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5184 return [2 /*return*/, contents];
5185 });
5186}); };
5187var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5188 var body, deserialized, contents;
5189 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5190 body = parsedOutput.body;
5191 deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
5192 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5193 return [2 /*return*/, contents];
5194 });
5195}); };
5196var serializeAws_json1_1BufferingHints = function (input, context) {
5197 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined &&
5198 input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
5199};
5200var serializeAws_json1_1CloudWatchLoggingOptions = function (input, context) {
5201 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 }));
5202};
5203var serializeAws_json1_1ColumnToJsonKeyMappings = function (input, context) {
5204 return Object.entries(input).reduce(function (acc, _a) {
5205 var _b;
5206 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
5207 if (value === null) {
5208 return acc;
5209 }
5210 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
5211 }, {});
5212};
5213var serializeAws_json1_1CopyCommand = function (input, context) {
5214 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 &&
5215 input.DataTableColumns !== null && { DataTableColumns: input.DataTableColumns })), (input.DataTableName !== undefined && input.DataTableName !== null && { DataTableName: input.DataTableName }));
5216};
5217var serializeAws_json1_1CreateDeliveryStreamInput = function (input, context) {
5218 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 &&
5219 input.DeliveryStreamEncryptionConfigurationInput !== null && {
5220 DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
5221 })), (input.DeliveryStreamName !== undefined &&
5222 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.DeliveryStreamType !== undefined &&
5223 input.DeliveryStreamType !== null && { DeliveryStreamType: input.DeliveryStreamType })), (input.ElasticsearchDestinationConfiguration !== undefined &&
5224 input.ElasticsearchDestinationConfiguration !== null && {
5225 ElasticsearchDestinationConfiguration: serializeAws_json1_1ElasticsearchDestinationConfiguration(input.ElasticsearchDestinationConfiguration, context),
5226 })), (input.ExtendedS3DestinationConfiguration !== undefined &&
5227 input.ExtendedS3DestinationConfiguration !== null && {
5228 ExtendedS3DestinationConfiguration: serializeAws_json1_1ExtendedS3DestinationConfiguration(input.ExtendedS3DestinationConfiguration, context),
5229 })), (input.HttpEndpointDestinationConfiguration !== undefined &&
5230 input.HttpEndpointDestinationConfiguration !== null && {
5231 HttpEndpointDestinationConfiguration: serializeAws_json1_1HttpEndpointDestinationConfiguration(input.HttpEndpointDestinationConfiguration, context),
5232 })), (input.KinesisStreamSourceConfiguration !== undefined &&
5233 input.KinesisStreamSourceConfiguration !== null && {
5234 KinesisStreamSourceConfiguration: serializeAws_json1_1KinesisStreamSourceConfiguration(input.KinesisStreamSourceConfiguration, context),
5235 })), (input.RedshiftDestinationConfiguration !== undefined &&
5236 input.RedshiftDestinationConfiguration !== null && {
5237 RedshiftDestinationConfiguration: serializeAws_json1_1RedshiftDestinationConfiguration(input.RedshiftDestinationConfiguration, context),
5238 })), (input.S3DestinationConfiguration !== undefined &&
5239 input.S3DestinationConfiguration !== null && {
5240 S3DestinationConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3DestinationConfiguration, context),
5241 })), (input.SplunkDestinationConfiguration !== undefined &&
5242 input.SplunkDestinationConfiguration !== null && {
5243 SplunkDestinationConfiguration: serializeAws_json1_1SplunkDestinationConfiguration(input.SplunkDestinationConfiguration, context),
5244 })), (input.Tags !== undefined &&
5245 input.Tags !== null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }));
5246};
5247var serializeAws_json1_1DataFormatConversionConfiguration = function (input, context) {
5248 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 &&
5249 input.InputFormatConfiguration !== null && {
5250 InputFormatConfiguration: serializeAws_json1_1InputFormatConfiguration(input.InputFormatConfiguration, context),
5251 })), (input.OutputFormatConfiguration !== undefined &&
5252 input.OutputFormatConfiguration !== null && {
5253 OutputFormatConfiguration: serializeAws_json1_1OutputFormatConfiguration(input.OutputFormatConfiguration, context),
5254 })), (input.SchemaConfiguration !== undefined &&
5255 input.SchemaConfiguration !== null && {
5256 SchemaConfiguration: serializeAws_json1_1SchemaConfiguration(input.SchemaConfiguration, context),
5257 }));
5258};
5259var serializeAws_json1_1DeleteDeliveryStreamInput = function (input, context) {
5260 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AllowForceDelete !== undefined &&
5261 input.AllowForceDelete !== null && { AllowForceDelete: input.AllowForceDelete })), (input.DeliveryStreamName !== undefined &&
5262 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName }));
5263};
5264var serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput = function (input, context) {
5265 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 }));
5266};
5267var serializeAws_json1_1DescribeDeliveryStreamInput = function (input, context) {
5268 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 &&
5269 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartDestinationId !== undefined &&
5270 input.ExclusiveStartDestinationId !== null && { ExclusiveStartDestinationId: input.ExclusiveStartDestinationId })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
5271};
5272var serializeAws_json1_1Deserializer = function (input, context) {
5273 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.HiveJsonSerDe !== undefined &&
5274 input.HiveJsonSerDe !== null && {
5275 HiveJsonSerDe: serializeAws_json1_1HiveJsonSerDe(input.HiveJsonSerDe, context),
5276 })), (input.OpenXJsonSerDe !== undefined &&
5277 input.OpenXJsonSerDe !== null && {
5278 OpenXJsonSerDe: serializeAws_json1_1OpenXJsonSerDe(input.OpenXJsonSerDe, context),
5279 }));
5280};
5281var serializeAws_json1_1ElasticsearchBufferingHints = function (input, context) {
5282 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined &&
5283 input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
5284};
5285var serializeAws_json1_1ElasticsearchDestinationConfiguration = function (input, context) {
5286 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 &&
5287 input.BufferingHints !== null && {
5288 BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
5289 })), (input.CloudWatchLoggingOptions !== undefined &&
5290 input.CloudWatchLoggingOptions !== null && {
5291 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5292 })), (input.ClusterEndpoint !== undefined &&
5293 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 &&
5294 input.IndexRotationPeriod !== null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined &&
5295 input.ProcessingConfiguration !== null && {
5296 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5297 })), (input.RetryOptions !== undefined &&
5298 input.RetryOptions !== null && {
5299 RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
5300 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5301 input.S3Configuration !== null && {
5302 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5303 })), (input.TypeName !== undefined && input.TypeName !== null && { TypeName: input.TypeName })), (input.VpcConfiguration !== undefined &&
5304 input.VpcConfiguration !== null && {
5305 VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
5306 }));
5307};
5308var serializeAws_json1_1ElasticsearchDestinationUpdate = function (input, context) {
5309 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 &&
5310 input.BufferingHints !== null && {
5311 BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
5312 })), (input.CloudWatchLoggingOptions !== undefined &&
5313 input.CloudWatchLoggingOptions !== null && {
5314 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5315 })), (input.ClusterEndpoint !== undefined &&
5316 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 &&
5317 input.IndexRotationPeriod !== null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined &&
5318 input.ProcessingConfiguration !== null && {
5319 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5320 })), (input.RetryOptions !== undefined &&
5321 input.RetryOptions !== null && {
5322 RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
5323 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3Update !== undefined &&
5324 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.TypeName !== undefined && input.TypeName !== null && { TypeName: input.TypeName }));
5325};
5326var serializeAws_json1_1ElasticsearchRetryOptions = function (input, context) {
5327 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5328 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5329};
5330var serializeAws_json1_1EncryptionConfiguration = function (input, context) {
5331 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KMSEncryptionConfig !== undefined &&
5332 input.KMSEncryptionConfig !== null && {
5333 KMSEncryptionConfig: serializeAws_json1_1KMSEncryptionConfig(input.KMSEncryptionConfig, context),
5334 })), (input.NoEncryptionConfig !== undefined &&
5335 input.NoEncryptionConfig !== null && { NoEncryptionConfig: input.NoEncryptionConfig }));
5336};
5337var serializeAws_json1_1ExtendedS3DestinationConfiguration = function (input, context) {
5338 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 &&
5339 input.BufferingHints !== null && {
5340 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5341 })), (input.CloudWatchLoggingOptions !== undefined &&
5342 input.CloudWatchLoggingOptions !== null && {
5343 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5344 })), (input.CompressionFormat !== undefined &&
5345 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration !== undefined &&
5346 input.DataFormatConversionConfiguration !== null && {
5347 DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
5348 })), (input.EncryptionConfiguration !== undefined &&
5349 input.EncryptionConfiguration !== null && {
5350 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5351 })), (input.ErrorOutputPrefix !== undefined &&
5352 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.ProcessingConfiguration !== undefined &&
5353 input.ProcessingConfiguration !== null && {
5354 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5355 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration !== undefined &&
5356 input.S3BackupConfiguration !== null && {
5357 S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
5358 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode }));
5359};
5360var serializeAws_json1_1ExtendedS3DestinationUpdate = function (input, context) {
5361 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 &&
5362 input.BufferingHints !== null && {
5363 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5364 })), (input.CloudWatchLoggingOptions !== undefined &&
5365 input.CloudWatchLoggingOptions !== null && {
5366 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5367 })), (input.CompressionFormat !== undefined &&
5368 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration !== undefined &&
5369 input.DataFormatConversionConfiguration !== null && {
5370 DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
5371 })), (input.EncryptionConfiguration !== undefined &&
5372 input.EncryptionConfiguration !== null && {
5373 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5374 })), (input.ErrorOutputPrefix !== undefined &&
5375 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.ProcessingConfiguration !== undefined &&
5376 input.ProcessingConfiguration !== null && {
5377 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5378 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate !== undefined &&
5379 input.S3BackupUpdate !== null && {
5380 S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
5381 }));
5382};
5383var serializeAws_json1_1HiveJsonSerDe = function (input, context) {
5384 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TimestampFormats !== undefined &&
5385 input.TimestampFormats !== null && {
5386 TimestampFormats: serializeAws_json1_1ListOfNonEmptyStrings(input.TimestampFormats, context),
5387 }));
5388};
5389var serializeAws_json1_1HttpEndpointBufferingHints = function (input, context) {
5390 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined &&
5391 input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
5392};
5393var serializeAws_json1_1HttpEndpointCommonAttribute = function (input, context) {
5394 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 &&
5395 input.AttributeValue !== null && { AttributeValue: input.AttributeValue }));
5396};
5397var serializeAws_json1_1HttpEndpointCommonAttributesList = function (input, context) {
5398 return input
5399 .filter(function (e) { return e != null; })
5400 .map(function (entry) {
5401 if (entry === null) {
5402 return null;
5403 }
5404 return serializeAws_json1_1HttpEndpointCommonAttribute(entry, context);
5405 });
5406};
5407var serializeAws_json1_1HttpEndpointConfiguration = function (input, context) {
5408 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 }));
5409};
5410var serializeAws_json1_1HttpEndpointDestinationConfiguration = function (input, context) {
5411 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 &&
5412 input.BufferingHints !== null && {
5413 BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
5414 })), (input.CloudWatchLoggingOptions !== undefined &&
5415 input.CloudWatchLoggingOptions !== null && {
5416 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5417 })), (input.EndpointConfiguration !== undefined &&
5418 input.EndpointConfiguration !== null && {
5419 EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
5420 })), (input.ProcessingConfiguration !== undefined &&
5421 input.ProcessingConfiguration !== null && {
5422 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5423 })), (input.RequestConfiguration !== undefined &&
5424 input.RequestConfiguration !== null && {
5425 RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
5426 })), (input.RetryOptions !== undefined &&
5427 input.RetryOptions !== null && {
5428 RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
5429 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5430 input.S3Configuration !== null && {
5431 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5432 }));
5433};
5434var serializeAws_json1_1HttpEndpointDestinationUpdate = function (input, context) {
5435 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 &&
5436 input.BufferingHints !== null && {
5437 BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
5438 })), (input.CloudWatchLoggingOptions !== undefined &&
5439 input.CloudWatchLoggingOptions !== null && {
5440 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5441 })), (input.EndpointConfiguration !== undefined &&
5442 input.EndpointConfiguration !== null && {
5443 EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
5444 })), (input.ProcessingConfiguration !== undefined &&
5445 input.ProcessingConfiguration !== null && {
5446 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5447 })), (input.RequestConfiguration !== undefined &&
5448 input.RequestConfiguration !== null && {
5449 RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
5450 })), (input.RetryOptions !== undefined &&
5451 input.RetryOptions !== null && {
5452 RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
5453 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Update !== undefined &&
5454 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }));
5455};
5456var serializeAws_json1_1HttpEndpointRequestConfiguration = function (input, context) {
5457 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CommonAttributes !== undefined &&
5458 input.CommonAttributes !== null && {
5459 CommonAttributes: serializeAws_json1_1HttpEndpointCommonAttributesList(input.CommonAttributes, context),
5460 })), (input.ContentEncoding !== undefined &&
5461 input.ContentEncoding !== null && { ContentEncoding: input.ContentEncoding }));
5462};
5463var serializeAws_json1_1HttpEndpointRetryOptions = function (input, context) {
5464 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5465 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5466};
5467var serializeAws_json1_1InputFormatConfiguration = function (input, context) {
5468 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Deserializer !== undefined &&
5469 input.Deserializer !== null && { Deserializer: serializeAws_json1_1Deserializer(input.Deserializer, context) }));
5470};
5471var serializeAws_json1_1KinesisStreamSourceConfiguration = function (input, context) {
5472 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KinesisStreamARN !== undefined &&
5473 input.KinesisStreamARN !== null && { KinesisStreamARN: input.KinesisStreamARN })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
5474};
5475var serializeAws_json1_1KMSEncryptionConfig = function (input, context) {
5476 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AWSKMSKeyARN !== undefined && input.AWSKMSKeyARN !== null && { AWSKMSKeyARN: input.AWSKMSKeyARN }));
5477};
5478var serializeAws_json1_1ListDeliveryStreamsInput = function (input, context) {
5479 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 &&
5480 input.DeliveryStreamType !== null && { DeliveryStreamType: input.DeliveryStreamType })), (input.ExclusiveStartDeliveryStreamName !== undefined &&
5481 input.ExclusiveStartDeliveryStreamName !== null && {
5482 ExclusiveStartDeliveryStreamName: input.ExclusiveStartDeliveryStreamName,
5483 })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
5484};
5485var serializeAws_json1_1ListOfNonEmptyStrings = function (input, context) {
5486 return input
5487 .filter(function (e) { return e != null; })
5488 .map(function (entry) {
5489 if (entry === null) {
5490 return null;
5491 }
5492 return entry;
5493 });
5494};
5495var serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (input, context) {
5496 return input
5497 .filter(function (e) { return e != null; })
5498 .map(function (entry) {
5499 if (entry === null) {
5500 return null;
5501 }
5502 return entry;
5503 });
5504};
5505var serializeAws_json1_1ListTagsForDeliveryStreamInput = function (input, context) {
5506 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 &&
5507 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartTagKey !== undefined &&
5508 input.ExclusiveStartTagKey !== null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
5509};
5510var serializeAws_json1_1OpenXJsonSerDe = function (input, context) {
5511 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 &&
5512 input.CaseInsensitive !== null && { CaseInsensitive: input.CaseInsensitive })), (input.ColumnToJsonKeyMappings !== undefined &&
5513 input.ColumnToJsonKeyMappings !== null && {
5514 ColumnToJsonKeyMappings: serializeAws_json1_1ColumnToJsonKeyMappings(input.ColumnToJsonKeyMappings, context),
5515 })), (input.ConvertDotsInJsonKeysToUnderscores !== undefined &&
5516 input.ConvertDotsInJsonKeysToUnderscores !== null && {
5517 ConvertDotsInJsonKeysToUnderscores: input.ConvertDotsInJsonKeysToUnderscores,
5518 }));
5519};
5520var serializeAws_json1_1OrcSerDe = function (input, context) {
5521 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 &&
5522 input.BlockSizeBytes !== null && { BlockSizeBytes: input.BlockSizeBytes })), (input.BloomFilterColumns !== undefined &&
5523 input.BloomFilterColumns !== null && {
5524 BloomFilterColumns: serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(input.BloomFilterColumns, context),
5525 })), (input.BloomFilterFalsePositiveProbability !== undefined &&
5526 input.BloomFilterFalsePositiveProbability !== null && {
5527 BloomFilterFalsePositiveProbability: input.BloomFilterFalsePositiveProbability,
5528 })), (input.Compression !== undefined && input.Compression !== null && { Compression: input.Compression })), (input.DictionaryKeyThreshold !== undefined &&
5529 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 &&
5530 input.PaddingTolerance !== null && { PaddingTolerance: input.PaddingTolerance })), (input.RowIndexStride !== undefined &&
5531 input.RowIndexStride !== null && { RowIndexStride: input.RowIndexStride })), (input.StripeSizeBytes !== undefined &&
5532 input.StripeSizeBytes !== null && { StripeSizeBytes: input.StripeSizeBytes }));
5533};
5534var serializeAws_json1_1OutputFormatConfiguration = function (input, context) {
5535 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Serializer !== undefined &&
5536 input.Serializer !== null && { Serializer: serializeAws_json1_1Serializer(input.Serializer, context) }));
5537};
5538var serializeAws_json1_1ParquetSerDe = function (input, context) {
5539 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 &&
5540 input.BlockSizeBytes !== null && { BlockSizeBytes: input.BlockSizeBytes })), (input.Compression !== undefined && input.Compression !== null && { Compression: input.Compression })), (input.EnableDictionaryCompression !== undefined &&
5541 input.EnableDictionaryCompression !== null && { EnableDictionaryCompression: input.EnableDictionaryCompression })), (input.MaxPaddingBytes !== undefined &&
5542 input.MaxPaddingBytes !== null && { MaxPaddingBytes: input.MaxPaddingBytes })), (input.PageSizeBytes !== undefined && input.PageSizeBytes !== null && { PageSizeBytes: input.PageSizeBytes })), (input.WriterVersion !== undefined && input.WriterVersion !== null && { WriterVersion: input.WriterVersion }));
5543};
5544var serializeAws_json1_1ProcessingConfiguration = function (input, context) {
5545 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 &&
5546 input.Processors !== null && { Processors: serializeAws_json1_1ProcessorList(input.Processors, context) }));
5547};
5548var serializeAws_json1_1Processor = function (input, context) {
5549 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Parameters !== undefined &&
5550 input.Parameters !== null && {
5551 Parameters: serializeAws_json1_1ProcessorParameterList(input.Parameters, context),
5552 })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
5553};
5554var serializeAws_json1_1ProcessorList = function (input, context) {
5555 return input
5556 .filter(function (e) { return e != null; })
5557 .map(function (entry) {
5558 if (entry === null) {
5559 return null;
5560 }
5561 return serializeAws_json1_1Processor(entry, context);
5562 });
5563};
5564var serializeAws_json1_1ProcessorParameter = function (input, context) {
5565 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 &&
5566 input.ParameterValue !== null && { ParameterValue: input.ParameterValue }));
5567};
5568var serializeAws_json1_1ProcessorParameterList = function (input, context) {
5569 return input
5570 .filter(function (e) { return e != null; })
5571 .map(function (entry) {
5572 if (entry === null) {
5573 return null;
5574 }
5575 return serializeAws_json1_1ProcessorParameter(entry, context);
5576 });
5577};
5578var serializeAws_json1_1PutRecordBatchInput = function (input, context) {
5579 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5580 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Records !== undefined &&
5581 input.Records !== null && {
5582 Records: serializeAws_json1_1PutRecordBatchRequestEntryList(input.Records, context),
5583 }));
5584};
5585var serializeAws_json1_1PutRecordBatchRequestEntryList = function (input, context) {
5586 return input
5587 .filter(function (e) { return e != null; })
5588 .map(function (entry) {
5589 if (entry === null) {
5590 return null;
5591 }
5592 return serializeAws_json1_1_Record(entry, context);
5593 });
5594};
5595var serializeAws_json1_1PutRecordInput = function (input, context) {
5596 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5597 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Record !== undefined &&
5598 input.Record !== null && { Record: serializeAws_json1_1_Record(input.Record, context) }));
5599};
5600var serializeAws_json1_1_Record = function (input, context) {
5601 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) }));
5602};
5603var serializeAws_json1_1RedshiftDestinationConfiguration = function (input, context) {
5604 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 &&
5605 input.CloudWatchLoggingOptions !== null && {
5606 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5607 })), (input.ClusterJDBCURL !== undefined &&
5608 input.ClusterJDBCURL !== null && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand !== undefined &&
5609 input.CopyCommand !== null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.ProcessingConfiguration !== undefined &&
5610 input.ProcessingConfiguration !== null && {
5611 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5612 })), (input.RetryOptions !== undefined &&
5613 input.RetryOptions !== null && {
5614 RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
5615 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration !== undefined &&
5616 input.S3BackupConfiguration !== null && {
5617 S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
5618 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5619 input.S3Configuration !== null && {
5620 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5621 })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
5622};
5623var serializeAws_json1_1RedshiftDestinationUpdate = function (input, context) {
5624 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 &&
5625 input.CloudWatchLoggingOptions !== null && {
5626 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5627 })), (input.ClusterJDBCURL !== undefined &&
5628 input.ClusterJDBCURL !== null && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand !== undefined &&
5629 input.CopyCommand !== null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.ProcessingConfiguration !== undefined &&
5630 input.ProcessingConfiguration !== null && {
5631 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5632 })), (input.RetryOptions !== undefined &&
5633 input.RetryOptions !== null && {
5634 RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
5635 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate !== undefined &&
5636 input.S3BackupUpdate !== null && {
5637 S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
5638 })), (input.S3Update !== undefined &&
5639 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
5640};
5641var serializeAws_json1_1RedshiftRetryOptions = function (input, context) {
5642 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5643 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5644};
5645var serializeAws_json1_1S3DestinationConfiguration = function (input, context) {
5646 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 &&
5647 input.BufferingHints !== null && {
5648 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5649 })), (input.CloudWatchLoggingOptions !== undefined &&
5650 input.CloudWatchLoggingOptions !== null && {
5651 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5652 })), (input.CompressionFormat !== undefined &&
5653 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration !== undefined &&
5654 input.EncryptionConfiguration !== null && {
5655 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5656 })), (input.ErrorOutputPrefix !== undefined &&
5657 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
5658};
5659var serializeAws_json1_1S3DestinationUpdate = function (input, context) {
5660 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 &&
5661 input.BufferingHints !== null && {
5662 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5663 })), (input.CloudWatchLoggingOptions !== undefined &&
5664 input.CloudWatchLoggingOptions !== null && {
5665 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5666 })), (input.CompressionFormat !== undefined &&
5667 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration !== undefined &&
5668 input.EncryptionConfiguration !== null && {
5669 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5670 })), (input.ErrorOutputPrefix !== undefined &&
5671 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
5672};
5673var serializeAws_json1_1SchemaConfiguration = function (input, context) {
5674 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 }));
5675};
5676var serializeAws_json1_1SecurityGroupIdList = function (input, context) {
5677 return input
5678 .filter(function (e) { return e != null; })
5679 .map(function (entry) {
5680 if (entry === null) {
5681 return null;
5682 }
5683 return entry;
5684 });
5685};
5686var serializeAws_json1_1Serializer = function (input, context) {
5687 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.OrcSerDe !== undefined &&
5688 input.OrcSerDe !== null && { OrcSerDe: serializeAws_json1_1OrcSerDe(input.OrcSerDe, context) })), (input.ParquetSerDe !== undefined &&
5689 input.ParquetSerDe !== null && { ParquetSerDe: serializeAws_json1_1ParquetSerDe(input.ParquetSerDe, context) }));
5690};
5691var serializeAws_json1_1SplunkDestinationConfiguration = function (input, context) {
5692 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 &&
5693 input.CloudWatchLoggingOptions !== null && {
5694 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5695 })), (input.HECAcknowledgmentTimeoutInSeconds !== undefined &&
5696 input.HECAcknowledgmentTimeoutInSeconds !== null && {
5697 HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
5698 })), (input.HECEndpoint !== undefined && input.HECEndpoint !== null && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType !== undefined &&
5699 input.HECEndpointType !== null && { HECEndpointType: input.HECEndpointType })), (input.HECToken !== undefined && input.HECToken !== null && { HECToken: input.HECToken })), (input.ProcessingConfiguration !== undefined &&
5700 input.ProcessingConfiguration !== null && {
5701 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5702 })), (input.RetryOptions !== undefined &&
5703 input.RetryOptions !== null && {
5704 RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
5705 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5706 input.S3Configuration !== null && {
5707 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5708 }));
5709};
5710var serializeAws_json1_1SplunkDestinationUpdate = function (input, context) {
5711 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 &&
5712 input.CloudWatchLoggingOptions !== null && {
5713 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5714 })), (input.HECAcknowledgmentTimeoutInSeconds !== undefined &&
5715 input.HECAcknowledgmentTimeoutInSeconds !== null && {
5716 HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
5717 })), (input.HECEndpoint !== undefined && input.HECEndpoint !== null && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType !== undefined &&
5718 input.HECEndpointType !== null && { HECEndpointType: input.HECEndpointType })), (input.HECToken !== undefined && input.HECToken !== null && { HECToken: input.HECToken })), (input.ProcessingConfiguration !== undefined &&
5719 input.ProcessingConfiguration !== null && {
5720 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5721 })), (input.RetryOptions !== undefined &&
5722 input.RetryOptions !== null && {
5723 RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
5724 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Update !== undefined &&
5725 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }));
5726};
5727var serializeAws_json1_1SplunkRetryOptions = function (input, context) {
5728 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5729 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5730};
5731var serializeAws_json1_1StartDeliveryStreamEncryptionInput = function (input, context) {
5732 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamEncryptionConfigurationInput !== undefined &&
5733 input.DeliveryStreamEncryptionConfigurationInput !== null && {
5734 DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
5735 })), (input.DeliveryStreamName !== undefined &&
5736 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName }));
5737};
5738var serializeAws_json1_1StopDeliveryStreamEncryptionInput = function (input, context) {
5739 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5740 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName }));
5741};
5742var serializeAws_json1_1SubnetIdList = function (input, context) {
5743 return input
5744 .filter(function (e) { return e != null; })
5745 .map(function (entry) {
5746 if (entry === null) {
5747 return null;
5748 }
5749 return entry;
5750 });
5751};
5752var serializeAws_json1_1Tag = function (input, context) {
5753 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 }));
5754};
5755var serializeAws_json1_1TagDeliveryStreamInput = function (input, context) {
5756 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5757 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Tags !== undefined &&
5758 input.Tags !== null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }));
5759};
5760var serializeAws_json1_1TagDeliveryStreamInputTagList = function (input, context) {
5761 return input
5762 .filter(function (e) { return e != null; })
5763 .map(function (entry) {
5764 if (entry === null) {
5765 return null;
5766 }
5767 return serializeAws_json1_1Tag(entry, context);
5768 });
5769};
5770var serializeAws_json1_1TagKeyList = function (input, context) {
5771 return input
5772 .filter(function (e) { return e != null; })
5773 .map(function (entry) {
5774 if (entry === null) {
5775 return null;
5776 }
5777 return entry;
5778 });
5779};
5780var serializeAws_json1_1UntagDeliveryStreamInput = function (input, context) {
5781 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5782 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.TagKeys !== undefined &&
5783 input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
5784};
5785var serializeAws_json1_1UpdateDestinationInput = function (input, context) {
5786 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 &&
5787 input.CurrentDeliveryStreamVersionId !== null && {
5788 CurrentDeliveryStreamVersionId: input.CurrentDeliveryStreamVersionId,
5789 })), (input.DeliveryStreamName !== undefined &&
5790 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.DestinationId !== undefined && input.DestinationId !== null && { DestinationId: input.DestinationId })), (input.ElasticsearchDestinationUpdate !== undefined &&
5791 input.ElasticsearchDestinationUpdate !== null && {
5792 ElasticsearchDestinationUpdate: serializeAws_json1_1ElasticsearchDestinationUpdate(input.ElasticsearchDestinationUpdate, context),
5793 })), (input.ExtendedS3DestinationUpdate !== undefined &&
5794 input.ExtendedS3DestinationUpdate !== null && {
5795 ExtendedS3DestinationUpdate: serializeAws_json1_1ExtendedS3DestinationUpdate(input.ExtendedS3DestinationUpdate, context),
5796 })), (input.HttpEndpointDestinationUpdate !== undefined &&
5797 input.HttpEndpointDestinationUpdate !== null && {
5798 HttpEndpointDestinationUpdate: serializeAws_json1_1HttpEndpointDestinationUpdate(input.HttpEndpointDestinationUpdate, context),
5799 })), (input.RedshiftDestinationUpdate !== undefined &&
5800 input.RedshiftDestinationUpdate !== null && {
5801 RedshiftDestinationUpdate: serializeAws_json1_1RedshiftDestinationUpdate(input.RedshiftDestinationUpdate, context),
5802 })), (input.S3DestinationUpdate !== undefined &&
5803 input.S3DestinationUpdate !== null && {
5804 S3DestinationUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3DestinationUpdate, context),
5805 })), (input.SplunkDestinationUpdate !== undefined &&
5806 input.SplunkDestinationUpdate !== null && {
5807 SplunkDestinationUpdate: serializeAws_json1_1SplunkDestinationUpdate(input.SplunkDestinationUpdate, context),
5808 }));
5809};
5810var serializeAws_json1_1VpcConfiguration = function (input, context) {
5811 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 &&
5812 input.SecurityGroupIds !== null && {
5813 SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
5814 })), (input.SubnetIds !== undefined &&
5815 input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }));
5816};
5817var deserializeAws_json1_1BufferingHints = function (output, context) {
5818 return {
5819 IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null
5820 ? output.IntervalInSeconds
5821 : undefined,
5822 SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined,
5823 };
5824};
5825var deserializeAws_json1_1CloudWatchLoggingOptions = function (output, context) {
5826 return {
5827 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
5828 LogGroupName: output.LogGroupName !== undefined && output.LogGroupName !== null ? output.LogGroupName : undefined,
5829 LogStreamName: output.LogStreamName !== undefined && output.LogStreamName !== null ? output.LogStreamName : undefined,
5830 };
5831};
5832var deserializeAws_json1_1ColumnToJsonKeyMappings = function (output, context) {
5833 return Object.entries(output).reduce(function (acc, _a) {
5834 var _b;
5835 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
5836 if (value === null) {
5837 return acc;
5838 }
5839 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
5840 }, {});
5841};
5842var deserializeAws_json1_1ConcurrentModificationException = function (output, context) {
5843 return {
5844 message: output.message !== undefined && output.message !== null ? output.message : undefined,
5845 };
5846};
5847var deserializeAws_json1_1CopyCommand = function (output, context) {
5848 return {
5849 CopyOptions: output.CopyOptions !== undefined && output.CopyOptions !== null ? output.CopyOptions : undefined,
5850 DataTableColumns: output.DataTableColumns !== undefined && output.DataTableColumns !== null ? output.DataTableColumns : undefined,
5851 DataTableName: output.DataTableName !== undefined && output.DataTableName !== null ? output.DataTableName : undefined,
5852 };
5853};
5854var deserializeAws_json1_1CreateDeliveryStreamOutput = function (output, context) {
5855 return {
5856 DeliveryStreamARN: output.DeliveryStreamARN !== undefined && output.DeliveryStreamARN !== null
5857 ? output.DeliveryStreamARN
5858 : undefined,
5859 };
5860};
5861var deserializeAws_json1_1DataFormatConversionConfiguration = function (output, context) {
5862 return {
5863 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
5864 InputFormatConfiguration: output.InputFormatConfiguration !== undefined && output.InputFormatConfiguration !== null
5865 ? deserializeAws_json1_1InputFormatConfiguration(output.InputFormatConfiguration, context)
5866 : undefined,
5867 OutputFormatConfiguration: output.OutputFormatConfiguration !== undefined && output.OutputFormatConfiguration !== null
5868 ? deserializeAws_json1_1OutputFormatConfiguration(output.OutputFormatConfiguration, context)
5869 : undefined,
5870 SchemaConfiguration: output.SchemaConfiguration !== undefined && output.SchemaConfiguration !== null
5871 ? deserializeAws_json1_1SchemaConfiguration(output.SchemaConfiguration, context)
5872 : undefined,
5873 };
5874};
5875var deserializeAws_json1_1DeleteDeliveryStreamOutput = function (output, context) {
5876 return {};
5877};
5878var deserializeAws_json1_1DeliveryStreamDescription = function (output, context) {
5879 return {
5880 CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
5881 ? new Date(Math.round(output.CreateTimestamp * 1000))
5882 : undefined,
5883 DeliveryStreamARN: output.DeliveryStreamARN !== undefined && output.DeliveryStreamARN !== null
5884 ? output.DeliveryStreamARN
5885 : undefined,
5886 DeliveryStreamEncryptionConfiguration: output.DeliveryStreamEncryptionConfiguration !== undefined &&
5887 output.DeliveryStreamEncryptionConfiguration !== null
5888 ? deserializeAws_json1_1DeliveryStreamEncryptionConfiguration(output.DeliveryStreamEncryptionConfiguration, context)
5889 : undefined,
5890 DeliveryStreamName: output.DeliveryStreamName !== undefined && output.DeliveryStreamName !== null
5891 ? output.DeliveryStreamName
5892 : undefined,
5893 DeliveryStreamStatus: output.DeliveryStreamStatus !== undefined && output.DeliveryStreamStatus !== null
5894 ? output.DeliveryStreamStatus
5895 : undefined,
5896 DeliveryStreamType: output.DeliveryStreamType !== undefined && output.DeliveryStreamType !== null
5897 ? output.DeliveryStreamType
5898 : undefined,
5899 Destinations: output.Destinations !== undefined && output.Destinations !== null
5900 ? deserializeAws_json1_1DestinationDescriptionList(output.Destinations, context)
5901 : undefined,
5902 FailureDescription: output.FailureDescription !== undefined && output.FailureDescription !== null
5903 ? deserializeAws_json1_1FailureDescription(output.FailureDescription, context)
5904 : undefined,
5905 HasMoreDestinations: output.HasMoreDestinations !== undefined && output.HasMoreDestinations !== null
5906 ? output.HasMoreDestinations
5907 : undefined,
5908 LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
5909 ? new Date(Math.round(output.LastUpdateTimestamp * 1000))
5910 : undefined,
5911 Source: output.Source !== undefined && output.Source !== null
5912 ? deserializeAws_json1_1SourceDescription(output.Source, context)
5913 : undefined,
5914 VersionId: output.VersionId !== undefined && output.VersionId !== null ? output.VersionId : undefined,
5915 };
5916};
5917var deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = function (output, context) {
5918 return {
5919 FailureDescription: output.FailureDescription !== undefined && output.FailureDescription !== null
5920 ? deserializeAws_json1_1FailureDescription(output.FailureDescription, context)
5921 : undefined,
5922 KeyARN: output.KeyARN !== undefined && output.KeyARN !== null ? output.KeyARN : undefined,
5923 KeyType: output.KeyType !== undefined && output.KeyType !== null ? output.KeyType : undefined,
5924 Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined,
5925 };
5926};
5927var deserializeAws_json1_1DeliveryStreamNameList = function (output, context) {
5928 return (output || [])
5929 .filter(function (e) { return e != null; })
5930 .map(function (entry) {
5931 if (entry === null) {
5932 return null;
5933 }
5934 return entry;
5935 });
5936};
5937var deserializeAws_json1_1DescribeDeliveryStreamOutput = function (output, context) {
5938 return {
5939 DeliveryStreamDescription: output.DeliveryStreamDescription !== undefined && output.DeliveryStreamDescription !== null
5940 ? deserializeAws_json1_1DeliveryStreamDescription(output.DeliveryStreamDescription, context)
5941 : undefined,
5942 };
5943};
5944var deserializeAws_json1_1Deserializer = function (output, context) {
5945 return {
5946 HiveJsonSerDe: output.HiveJsonSerDe !== undefined && output.HiveJsonSerDe !== null
5947 ? deserializeAws_json1_1HiveJsonSerDe(output.HiveJsonSerDe, context)
5948 : undefined,
5949 OpenXJsonSerDe: output.OpenXJsonSerDe !== undefined && output.OpenXJsonSerDe !== null
5950 ? deserializeAws_json1_1OpenXJsonSerDe(output.OpenXJsonSerDe, context)
5951 : undefined,
5952 };
5953};
5954var deserializeAws_json1_1DestinationDescription = function (output, context) {
5955 return {
5956 DestinationId: output.DestinationId !== undefined && output.DestinationId !== null ? output.DestinationId : undefined,
5957 ElasticsearchDestinationDescription: output.ElasticsearchDestinationDescription !== undefined && output.ElasticsearchDestinationDescription !== null
5958 ? deserializeAws_json1_1ElasticsearchDestinationDescription(output.ElasticsearchDestinationDescription, context)
5959 : undefined,
5960 ExtendedS3DestinationDescription: output.ExtendedS3DestinationDescription !== undefined && output.ExtendedS3DestinationDescription !== null
5961 ? deserializeAws_json1_1ExtendedS3DestinationDescription(output.ExtendedS3DestinationDescription, context)
5962 : undefined,
5963 HttpEndpointDestinationDescription: output.HttpEndpointDestinationDescription !== undefined && output.HttpEndpointDestinationDescription !== null
5964 ? deserializeAws_json1_1HttpEndpointDestinationDescription(output.HttpEndpointDestinationDescription, context)
5965 : undefined,
5966 RedshiftDestinationDescription: output.RedshiftDestinationDescription !== undefined && output.RedshiftDestinationDescription !== null
5967 ? deserializeAws_json1_1RedshiftDestinationDescription(output.RedshiftDestinationDescription, context)
5968 : undefined,
5969 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
5970 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
5971 : undefined,
5972 SplunkDestinationDescription: output.SplunkDestinationDescription !== undefined && output.SplunkDestinationDescription !== null
5973 ? deserializeAws_json1_1SplunkDestinationDescription(output.SplunkDestinationDescription, context)
5974 : undefined,
5975 };
5976};
5977var deserializeAws_json1_1DestinationDescriptionList = function (output, context) {
5978 return (output || [])
5979 .filter(function (e) { return e != null; })
5980 .map(function (entry) {
5981 if (entry === null) {
5982 return null;
5983 }
5984 return deserializeAws_json1_1DestinationDescription(entry, context);
5985 });
5986};
5987var deserializeAws_json1_1ElasticsearchBufferingHints = function (output, context) {
5988 return {
5989 IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null
5990 ? output.IntervalInSeconds
5991 : undefined,
5992 SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined,
5993 };
5994};
5995var deserializeAws_json1_1ElasticsearchDestinationDescription = function (output, context) {
5996 return {
5997 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
5998 ? deserializeAws_json1_1ElasticsearchBufferingHints(output.BufferingHints, context)
5999 : undefined,
6000 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6001 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6002 : undefined,
6003 ClusterEndpoint: output.ClusterEndpoint !== undefined && output.ClusterEndpoint !== null ? output.ClusterEndpoint : undefined,
6004 DomainARN: output.DomainARN !== undefined && output.DomainARN !== null ? output.DomainARN : undefined,
6005 IndexName: output.IndexName !== undefined && output.IndexName !== null ? output.IndexName : undefined,
6006 IndexRotationPeriod: output.IndexRotationPeriod !== undefined && output.IndexRotationPeriod !== null
6007 ? output.IndexRotationPeriod
6008 : undefined,
6009 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6010 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6011 : undefined,
6012 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6013 ? deserializeAws_json1_1ElasticsearchRetryOptions(output.RetryOptions, context)
6014 : undefined,
6015 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6016 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6017 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6018 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6019 : undefined,
6020 TypeName: output.TypeName !== undefined && output.TypeName !== null ? output.TypeName : undefined,
6021 VpcConfigurationDescription: output.VpcConfigurationDescription !== undefined && output.VpcConfigurationDescription !== null
6022 ? deserializeAws_json1_1VpcConfigurationDescription(output.VpcConfigurationDescription, context)
6023 : undefined,
6024 };
6025};
6026var deserializeAws_json1_1ElasticsearchRetryOptions = function (output, context) {
6027 return {
6028 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6029 ? output.DurationInSeconds
6030 : undefined,
6031 };
6032};
6033var deserializeAws_json1_1EncryptionConfiguration = function (output, context) {
6034 return {
6035 KMSEncryptionConfig: output.KMSEncryptionConfig !== undefined && output.KMSEncryptionConfig !== null
6036 ? deserializeAws_json1_1KMSEncryptionConfig(output.KMSEncryptionConfig, context)
6037 : undefined,
6038 NoEncryptionConfig: output.NoEncryptionConfig !== undefined && output.NoEncryptionConfig !== null
6039 ? output.NoEncryptionConfig
6040 : undefined,
6041 };
6042};
6043var deserializeAws_json1_1ExtendedS3DestinationDescription = function (output, context) {
6044 return {
6045 BucketARN: output.BucketARN !== undefined && output.BucketARN !== null ? output.BucketARN : undefined,
6046 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
6047 ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context)
6048 : undefined,
6049 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6050 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6051 : undefined,
6052 CompressionFormat: output.CompressionFormat !== undefined && output.CompressionFormat !== null
6053 ? output.CompressionFormat
6054 : undefined,
6055 DataFormatConversionConfiguration: output.DataFormatConversionConfiguration !== undefined && output.DataFormatConversionConfiguration !== null
6056 ? deserializeAws_json1_1DataFormatConversionConfiguration(output.DataFormatConversionConfiguration, context)
6057 : undefined,
6058 EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
6059 ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
6060 : undefined,
6061 ErrorOutputPrefix: output.ErrorOutputPrefix !== undefined && output.ErrorOutputPrefix !== null
6062 ? output.ErrorOutputPrefix
6063 : undefined,
6064 Prefix: output.Prefix !== undefined && output.Prefix !== null ? output.Prefix : undefined,
6065 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6066 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6067 : undefined,
6068 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6069 S3BackupDescription: output.S3BackupDescription !== undefined && output.S3BackupDescription !== null
6070 ? deserializeAws_json1_1S3DestinationDescription(output.S3BackupDescription, context)
6071 : undefined,
6072 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6073 };
6074};
6075var deserializeAws_json1_1FailureDescription = function (output, context) {
6076 return {
6077 Details: output.Details !== undefined && output.Details !== null ? output.Details : undefined,
6078 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
6079 };
6080};
6081var deserializeAws_json1_1HiveJsonSerDe = function (output, context) {
6082 return {
6083 TimestampFormats: output.TimestampFormats !== undefined && output.TimestampFormats !== null
6084 ? deserializeAws_json1_1ListOfNonEmptyStrings(output.TimestampFormats, context)
6085 : undefined,
6086 };
6087};
6088var deserializeAws_json1_1HttpEndpointBufferingHints = function (output, context) {
6089 return {
6090 IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null
6091 ? output.IntervalInSeconds
6092 : undefined,
6093 SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined,
6094 };
6095};
6096var deserializeAws_json1_1HttpEndpointCommonAttribute = function (output, context) {
6097 return {
6098 AttributeName: output.AttributeName !== undefined && output.AttributeName !== null ? output.AttributeName : undefined,
6099 AttributeValue: output.AttributeValue !== undefined && output.AttributeValue !== null ? output.AttributeValue : undefined,
6100 };
6101};
6102var deserializeAws_json1_1HttpEndpointCommonAttributesList = function (output, context) {
6103 return (output || [])
6104 .filter(function (e) { return e != null; })
6105 .map(function (entry) {
6106 if (entry === null) {
6107 return null;
6108 }
6109 return deserializeAws_json1_1HttpEndpointCommonAttribute(entry, context);
6110 });
6111};
6112var deserializeAws_json1_1HttpEndpointDescription = function (output, context) {
6113 return {
6114 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
6115 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
6116 };
6117};
6118var deserializeAws_json1_1HttpEndpointDestinationDescription = function (output, context) {
6119 return {
6120 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
6121 ? deserializeAws_json1_1HttpEndpointBufferingHints(output.BufferingHints, context)
6122 : undefined,
6123 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6124 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6125 : undefined,
6126 EndpointConfiguration: output.EndpointConfiguration !== undefined && output.EndpointConfiguration !== null
6127 ? deserializeAws_json1_1HttpEndpointDescription(output.EndpointConfiguration, context)
6128 : undefined,
6129 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6130 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6131 : undefined,
6132 RequestConfiguration: output.RequestConfiguration !== undefined && output.RequestConfiguration !== null
6133 ? deserializeAws_json1_1HttpEndpointRequestConfiguration(output.RequestConfiguration, context)
6134 : undefined,
6135 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6136 ? deserializeAws_json1_1HttpEndpointRetryOptions(output.RetryOptions, context)
6137 : undefined,
6138 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6139 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6140 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6141 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6142 : undefined,
6143 };
6144};
6145var deserializeAws_json1_1HttpEndpointRequestConfiguration = function (output, context) {
6146 return {
6147 CommonAttributes: output.CommonAttributes !== undefined && output.CommonAttributes !== null
6148 ? deserializeAws_json1_1HttpEndpointCommonAttributesList(output.CommonAttributes, context)
6149 : undefined,
6150 ContentEncoding: output.ContentEncoding !== undefined && output.ContentEncoding !== null ? output.ContentEncoding : undefined,
6151 };
6152};
6153var deserializeAws_json1_1HttpEndpointRetryOptions = function (output, context) {
6154 return {
6155 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6156 ? output.DurationInSeconds
6157 : undefined,
6158 };
6159};
6160var deserializeAws_json1_1InputFormatConfiguration = function (output, context) {
6161 return {
6162 Deserializer: output.Deserializer !== undefined && output.Deserializer !== null
6163 ? deserializeAws_json1_1Deserializer(output.Deserializer, context)
6164 : undefined,
6165 };
6166};
6167var deserializeAws_json1_1InvalidArgumentException = function (output, context) {
6168 return {
6169 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6170 };
6171};
6172var deserializeAws_json1_1InvalidKMSResourceException = function (output, context) {
6173 return {
6174 code: output.code !== undefined && output.code !== null ? output.code : undefined,
6175 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6176 };
6177};
6178var deserializeAws_json1_1KinesisStreamSourceDescription = function (output, context) {
6179 return {
6180 DeliveryStartTimestamp: output.DeliveryStartTimestamp !== undefined && output.DeliveryStartTimestamp !== null
6181 ? new Date(Math.round(output.DeliveryStartTimestamp * 1000))
6182 : undefined,
6183 KinesisStreamARN: output.KinesisStreamARN !== undefined && output.KinesisStreamARN !== null ? output.KinesisStreamARN : undefined,
6184 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6185 };
6186};
6187var deserializeAws_json1_1KMSEncryptionConfig = function (output, context) {
6188 return {
6189 AWSKMSKeyARN: output.AWSKMSKeyARN !== undefined && output.AWSKMSKeyARN !== null ? output.AWSKMSKeyARN : undefined,
6190 };
6191};
6192var deserializeAws_json1_1LimitExceededException = function (output, context) {
6193 return {
6194 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6195 };
6196};
6197var deserializeAws_json1_1ListDeliveryStreamsOutput = function (output, context) {
6198 return {
6199 DeliveryStreamNames: output.DeliveryStreamNames !== undefined && output.DeliveryStreamNames !== null
6200 ? deserializeAws_json1_1DeliveryStreamNameList(output.DeliveryStreamNames, context)
6201 : undefined,
6202 HasMoreDeliveryStreams: output.HasMoreDeliveryStreams !== undefined && output.HasMoreDeliveryStreams !== null
6203 ? output.HasMoreDeliveryStreams
6204 : undefined,
6205 };
6206};
6207var deserializeAws_json1_1ListOfNonEmptyStrings = function (output, context) {
6208 return (output || [])
6209 .filter(function (e) { return e != null; })
6210 .map(function (entry) {
6211 if (entry === null) {
6212 return null;
6213 }
6214 return entry;
6215 });
6216};
6217var deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (output, context) {
6218 return (output || [])
6219 .filter(function (e) { return e != null; })
6220 .map(function (entry) {
6221 if (entry === null) {
6222 return null;
6223 }
6224 return entry;
6225 });
6226};
6227var deserializeAws_json1_1ListTagsForDeliveryStreamOutput = function (output, context) {
6228 return {
6229 HasMoreTags: output.HasMoreTags !== undefined && output.HasMoreTags !== null ? output.HasMoreTags : undefined,
6230 Tags: output.Tags !== undefined && output.Tags !== null
6231 ? deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList(output.Tags, context)
6232 : undefined,
6233 };
6234};
6235var deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = function (output, context) {
6236 return (output || [])
6237 .filter(function (e) { return e != null; })
6238 .map(function (entry) {
6239 if (entry === null) {
6240 return null;
6241 }
6242 return deserializeAws_json1_1Tag(entry, context);
6243 });
6244};
6245var deserializeAws_json1_1OpenXJsonSerDe = function (output, context) {
6246 return {
6247 CaseInsensitive: output.CaseInsensitive !== undefined && output.CaseInsensitive !== null ? output.CaseInsensitive : undefined,
6248 ColumnToJsonKeyMappings: output.ColumnToJsonKeyMappings !== undefined && output.ColumnToJsonKeyMappings !== null
6249 ? deserializeAws_json1_1ColumnToJsonKeyMappings(output.ColumnToJsonKeyMappings, context)
6250 : undefined,
6251 ConvertDotsInJsonKeysToUnderscores: output.ConvertDotsInJsonKeysToUnderscores !== undefined && output.ConvertDotsInJsonKeysToUnderscores !== null
6252 ? output.ConvertDotsInJsonKeysToUnderscores
6253 : undefined,
6254 };
6255};
6256var deserializeAws_json1_1OrcSerDe = function (output, context) {
6257 return {
6258 BlockSizeBytes: output.BlockSizeBytes !== undefined && output.BlockSizeBytes !== null ? output.BlockSizeBytes : undefined,
6259 BloomFilterColumns: output.BloomFilterColumns !== undefined && output.BloomFilterColumns !== null
6260 ? deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(output.BloomFilterColumns, context)
6261 : undefined,
6262 BloomFilterFalsePositiveProbability: output.BloomFilterFalsePositiveProbability !== undefined && output.BloomFilterFalsePositiveProbability !== null
6263 ? output.BloomFilterFalsePositiveProbability
6264 : undefined,
6265 Compression: output.Compression !== undefined && output.Compression !== null ? output.Compression : undefined,
6266 DictionaryKeyThreshold: output.DictionaryKeyThreshold !== undefined && output.DictionaryKeyThreshold !== null
6267 ? output.DictionaryKeyThreshold
6268 : undefined,
6269 EnablePadding: output.EnablePadding !== undefined && output.EnablePadding !== null ? output.EnablePadding : undefined,
6270 FormatVersion: output.FormatVersion !== undefined && output.FormatVersion !== null ? output.FormatVersion : undefined,
6271 PaddingTolerance: output.PaddingTolerance !== undefined && output.PaddingTolerance !== null ? output.PaddingTolerance : undefined,
6272 RowIndexStride: output.RowIndexStride !== undefined && output.RowIndexStride !== null ? output.RowIndexStride : undefined,
6273 StripeSizeBytes: output.StripeSizeBytes !== undefined && output.StripeSizeBytes !== null ? output.StripeSizeBytes : undefined,
6274 };
6275};
6276var deserializeAws_json1_1OutputFormatConfiguration = function (output, context) {
6277 return {
6278 Serializer: output.Serializer !== undefined && output.Serializer !== null
6279 ? deserializeAws_json1_1Serializer(output.Serializer, context)
6280 : undefined,
6281 };
6282};
6283var deserializeAws_json1_1ParquetSerDe = function (output, context) {
6284 return {
6285 BlockSizeBytes: output.BlockSizeBytes !== undefined && output.BlockSizeBytes !== null ? output.BlockSizeBytes : undefined,
6286 Compression: output.Compression !== undefined && output.Compression !== null ? output.Compression : undefined,
6287 EnableDictionaryCompression: output.EnableDictionaryCompression !== undefined && output.EnableDictionaryCompression !== null
6288 ? output.EnableDictionaryCompression
6289 : undefined,
6290 MaxPaddingBytes: output.MaxPaddingBytes !== undefined && output.MaxPaddingBytes !== null ? output.MaxPaddingBytes : undefined,
6291 PageSizeBytes: output.PageSizeBytes !== undefined && output.PageSizeBytes !== null ? output.PageSizeBytes : undefined,
6292 WriterVersion: output.WriterVersion !== undefined && output.WriterVersion !== null ? output.WriterVersion : undefined,
6293 };
6294};
6295var deserializeAws_json1_1ProcessingConfiguration = function (output, context) {
6296 return {
6297 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
6298 Processors: output.Processors !== undefined && output.Processors !== null
6299 ? deserializeAws_json1_1ProcessorList(output.Processors, context)
6300 : undefined,
6301 };
6302};
6303var deserializeAws_json1_1Processor = function (output, context) {
6304 return {
6305 Parameters: output.Parameters !== undefined && output.Parameters !== null
6306 ? deserializeAws_json1_1ProcessorParameterList(output.Parameters, context)
6307 : undefined,
6308 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
6309 };
6310};
6311var deserializeAws_json1_1ProcessorList = function (output, context) {
6312 return (output || [])
6313 .filter(function (e) { return e != null; })
6314 .map(function (entry) {
6315 if (entry === null) {
6316 return null;
6317 }
6318 return deserializeAws_json1_1Processor(entry, context);
6319 });
6320};
6321var deserializeAws_json1_1ProcessorParameter = function (output, context) {
6322 return {
6323 ParameterName: output.ParameterName !== undefined && output.ParameterName !== null ? output.ParameterName : undefined,
6324 ParameterValue: output.ParameterValue !== undefined && output.ParameterValue !== null ? output.ParameterValue : undefined,
6325 };
6326};
6327var deserializeAws_json1_1ProcessorParameterList = function (output, context) {
6328 return (output || [])
6329 .filter(function (e) { return e != null; })
6330 .map(function (entry) {
6331 if (entry === null) {
6332 return null;
6333 }
6334 return deserializeAws_json1_1ProcessorParameter(entry, context);
6335 });
6336};
6337var deserializeAws_json1_1PutRecordBatchOutput = function (output, context) {
6338 return {
6339 Encrypted: output.Encrypted !== undefined && output.Encrypted !== null ? output.Encrypted : undefined,
6340 FailedPutCount: output.FailedPutCount !== undefined && output.FailedPutCount !== null ? output.FailedPutCount : undefined,
6341 RequestResponses: output.RequestResponses !== undefined && output.RequestResponses !== null
6342 ? deserializeAws_json1_1PutRecordBatchResponseEntryList(output.RequestResponses, context)
6343 : undefined,
6344 };
6345};
6346var deserializeAws_json1_1PutRecordBatchResponseEntry = function (output, context) {
6347 return {
6348 ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined,
6349 ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null ? output.ErrorMessage : undefined,
6350 RecordId: output.RecordId !== undefined && output.RecordId !== null ? output.RecordId : undefined,
6351 };
6352};
6353var deserializeAws_json1_1PutRecordBatchResponseEntryList = 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_1PutRecordBatchResponseEntry(entry, context);
6361 });
6362};
6363var deserializeAws_json1_1PutRecordOutput = function (output, context) {
6364 return {
6365 Encrypted: output.Encrypted !== undefined && output.Encrypted !== null ? output.Encrypted : undefined,
6366 RecordId: output.RecordId !== undefined && output.RecordId !== null ? output.RecordId : undefined,
6367 };
6368};
6369var deserializeAws_json1_1RedshiftDestinationDescription = function (output, context) {
6370 return {
6371 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6372 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6373 : undefined,
6374 ClusterJDBCURL: output.ClusterJDBCURL !== undefined && output.ClusterJDBCURL !== null ? output.ClusterJDBCURL : undefined,
6375 CopyCommand: output.CopyCommand !== undefined && output.CopyCommand !== null
6376 ? deserializeAws_json1_1CopyCommand(output.CopyCommand, context)
6377 : undefined,
6378 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6379 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6380 : undefined,
6381 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6382 ? deserializeAws_json1_1RedshiftRetryOptions(output.RetryOptions, context)
6383 : undefined,
6384 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6385 S3BackupDescription: output.S3BackupDescription !== undefined && output.S3BackupDescription !== null
6386 ? deserializeAws_json1_1S3DestinationDescription(output.S3BackupDescription, context)
6387 : undefined,
6388 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6389 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6390 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6391 : undefined,
6392 Username: output.Username !== undefined && output.Username !== null ? output.Username : undefined,
6393 };
6394};
6395var deserializeAws_json1_1RedshiftRetryOptions = function (output, context) {
6396 return {
6397 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6398 ? output.DurationInSeconds
6399 : undefined,
6400 };
6401};
6402var deserializeAws_json1_1ResourceInUseException = function (output, context) {
6403 return {
6404 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6405 };
6406};
6407var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
6408 return {
6409 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6410 };
6411};
6412var deserializeAws_json1_1S3DestinationDescription = function (output, context) {
6413 return {
6414 BucketARN: output.BucketARN !== undefined && output.BucketARN !== null ? output.BucketARN : undefined,
6415 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
6416 ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context)
6417 : undefined,
6418 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6419 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6420 : undefined,
6421 CompressionFormat: output.CompressionFormat !== undefined && output.CompressionFormat !== null
6422 ? output.CompressionFormat
6423 : undefined,
6424 EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
6425 ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
6426 : undefined,
6427 ErrorOutputPrefix: output.ErrorOutputPrefix !== undefined && output.ErrorOutputPrefix !== null
6428 ? output.ErrorOutputPrefix
6429 : undefined,
6430 Prefix: output.Prefix !== undefined && output.Prefix !== null ? output.Prefix : undefined,
6431 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6432 };
6433};
6434var deserializeAws_json1_1SchemaConfiguration = function (output, context) {
6435 return {
6436 CatalogId: output.CatalogId !== undefined && output.CatalogId !== null ? output.CatalogId : undefined,
6437 DatabaseName: output.DatabaseName !== undefined && output.DatabaseName !== null ? output.DatabaseName : undefined,
6438 Region: output.Region !== undefined && output.Region !== null ? output.Region : undefined,
6439 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6440 TableName: output.TableName !== undefined && output.TableName !== null ? output.TableName : undefined,
6441 VersionId: output.VersionId !== undefined && output.VersionId !== null ? output.VersionId : undefined,
6442 };
6443};
6444var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
6445 return (output || [])
6446 .filter(function (e) { return e != null; })
6447 .map(function (entry) {
6448 if (entry === null) {
6449 return null;
6450 }
6451 return entry;
6452 });
6453};
6454var deserializeAws_json1_1Serializer = function (output, context) {
6455 return {
6456 OrcSerDe: output.OrcSerDe !== undefined && output.OrcSerDe !== null
6457 ? deserializeAws_json1_1OrcSerDe(output.OrcSerDe, context)
6458 : undefined,
6459 ParquetSerDe: output.ParquetSerDe !== undefined && output.ParquetSerDe !== null
6460 ? deserializeAws_json1_1ParquetSerDe(output.ParquetSerDe, context)
6461 : undefined,
6462 };
6463};
6464var deserializeAws_json1_1ServiceUnavailableException = function (output, context) {
6465 return {
6466 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6467 };
6468};
6469var deserializeAws_json1_1SourceDescription = function (output, context) {
6470 return {
6471 KinesisStreamSourceDescription: output.KinesisStreamSourceDescription !== undefined && output.KinesisStreamSourceDescription !== null
6472 ? deserializeAws_json1_1KinesisStreamSourceDescription(output.KinesisStreamSourceDescription, context)
6473 : undefined,
6474 };
6475};
6476var deserializeAws_json1_1SplunkDestinationDescription = function (output, context) {
6477 return {
6478 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6479 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6480 : undefined,
6481 HECAcknowledgmentTimeoutInSeconds: output.HECAcknowledgmentTimeoutInSeconds !== undefined && output.HECAcknowledgmentTimeoutInSeconds !== null
6482 ? output.HECAcknowledgmentTimeoutInSeconds
6483 : undefined,
6484 HECEndpoint: output.HECEndpoint !== undefined && output.HECEndpoint !== null ? output.HECEndpoint : undefined,
6485 HECEndpointType: output.HECEndpointType !== undefined && output.HECEndpointType !== null ? output.HECEndpointType : undefined,
6486 HECToken: output.HECToken !== undefined && output.HECToken !== null ? output.HECToken : undefined,
6487 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6488 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6489 : undefined,
6490 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6491 ? deserializeAws_json1_1SplunkRetryOptions(output.RetryOptions, context)
6492 : undefined,
6493 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6494 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6495 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6496 : undefined,
6497 };
6498};
6499var deserializeAws_json1_1SplunkRetryOptions = function (output, context) {
6500 return {
6501 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6502 ? output.DurationInSeconds
6503 : undefined,
6504 };
6505};
6506var deserializeAws_json1_1StartDeliveryStreamEncryptionOutput = function (output, context) {
6507 return {};
6508};
6509var deserializeAws_json1_1StopDeliveryStreamEncryptionOutput = function (output, context) {
6510 return {};
6511};
6512var deserializeAws_json1_1SubnetIdList = function (output, context) {
6513 return (output || [])
6514 .filter(function (e) { return e != null; })
6515 .map(function (entry) {
6516 if (entry === null) {
6517 return null;
6518 }
6519 return entry;
6520 });
6521};
6522var deserializeAws_json1_1Tag = function (output, context) {
6523 return {
6524 Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined,
6525 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
6526 };
6527};
6528var deserializeAws_json1_1TagDeliveryStreamOutput = function (output, context) {
6529 return {};
6530};
6531var deserializeAws_json1_1UntagDeliveryStreamOutput = function (output, context) {
6532 return {};
6533};
6534var deserializeAws_json1_1UpdateDestinationOutput = function (output, context) {
6535 return {};
6536};
6537var deserializeAws_json1_1VpcConfigurationDescription = function (output, context) {
6538 return {
6539 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6540 SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null
6541 ? deserializeAws_json1_1SecurityGroupIdList(output.SecurityGroupIds, context)
6542 : undefined,
6543 SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
6544 ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context)
6545 : undefined,
6546 VpcId: output.VpcId !== undefined && output.VpcId !== null ? output.VpcId : undefined,
6547 };
6548};
6549var deserializeMetadata = function (output) {
6550 var _a;
6551 return ({
6552 httpStatusCode: output.statusCode,
6553 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
6554 extendedRequestId: output.headers["x-amz-id-2"],
6555 cfId: output.headers["x-amz-cf-id"],
6556 });
6557};
6558// Collect low-level response body stream to Uint8Array.
6559var collectBody = function (streamBody, context) {
6560 if (streamBody === void 0) { streamBody = new Uint8Array(); }
6561 if (streamBody instanceof Uint8Array) {
6562 return Promise.resolve(streamBody);
6563 }
6564 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6565};
6566// Encode Uint8Array data into string with utf-8.
6567var collectBodyString = function (streamBody, context) {
6568 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
6569};
6570var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
6571 var _a, hostname, _b, protocol, port, contents;
6572 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
6573 switch (_c.label) {
6574 case 0: return [4 /*yield*/, context.endpoint()];
6575 case 1:
6576 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
6577 contents = {
6578 protocol: protocol,
6579 hostname: hostname,
6580 port: port,
6581 method: "POST",
6582 path: path,
6583 headers: headers,
6584 };
6585 if (resolvedHostname !== undefined) {
6586 contents.hostname = resolvedHostname;
6587 }
6588 if (body !== undefined) {
6589 contents.body = body;
6590 }
6591 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)];
6592 }
6593 });
6594}); };
6595var parseBody = function (streamBody, context) {
6596 return collectBodyString(streamBody, context).then(function (encoded) {
6597 if (encoded.length) {
6598 return JSON.parse(encoded);
6599 }
6600 return {};
6601 });
6602};
6603/**
6604 * Load an error code for the aws.rest-json-1.1 protocol.
6605 */
6606var loadRestJsonErrorCode = function (output, data) {
6607 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
6608 var sanitizeErrorCode = function (rawValue) {
6609 var cleanValue = rawValue;
6610 if (cleanValue.indexOf(":") >= 0) {
6611 cleanValue = cleanValue.split(":")[0];
6612 }
6613 if (cleanValue.indexOf("#") >= 0) {
6614 cleanValue = cleanValue.split("#")[1];
6615 }
6616 return cleanValue;
6617 };
6618 var headerKey = findKey(output.headers, "x-amzn-errortype");
6619 if (headerKey !== undefined) {
6620 return sanitizeErrorCode(output.headers[headerKey]);
6621 }
6622 if (data.code !== undefined) {
6623 return sanitizeErrorCode(data.code);
6624 }
6625 if (data["__type"] !== undefined) {
6626 return sanitizeErrorCode(data["__type"]);
6627 }
6628 return "";
6629};
6630//# sourceMappingURL=Aws_json1_1.js.map
6631
6632/***/ }),
6633
6634/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.browser.js":
6635/*!***********************************************************************************************!*\
6636 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.browser.js ***!
6637 \***********************************************************************************************/
6638/*! exports provided: ClientDefaultValues */
6639/***/ (function(module, __webpack_exports__, __webpack_require__) {
6640
6641"use strict";
6642__webpack_require__.r(__webpack_exports__);
6643/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
6644/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
6645/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-firehose/dist/es/package.json");
6646var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "../../node_modules/@aws-sdk/client-firehose/dist/es/package.json", 1);
6647/* 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");
6648/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
6649/* 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");
6650/* 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");
6651/* 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");
6652/* 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");
6653/* 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");
6654/* 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");
6655/* 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");
6656/* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./runtimeConfig.shared */ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.shared.js");
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668/**
6669 * @internal
6670 */
6671var 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"])({
6672 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"].serviceId,
6673 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
6674 }), 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"] });
6675//# sourceMappingURL=runtimeConfig.browser.js.map
6676
6677/***/ }),
6678
6679/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.shared.js":
6680/*!**********************************************************************************************!*\
6681 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.shared.js ***!
6682 \**********************************************************************************************/
6683/*! exports provided: ClientSharedValues */
6684/***/ (function(module, __webpack_exports__, __webpack_require__) {
6685
6686"use strict";
6687__webpack_require__.r(__webpack_exports__);
6688/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
6689/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-firehose/dist/es/endpoints.js");
6690/* 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");
6691
6692
6693/**
6694 * @internal
6695 */
6696var ClientSharedValues = {
6697 apiVersion: "2015-08-04",
6698 disableHostPrefix: false,
6699 logger: {},
6700 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
6701 serviceId: "Firehose",
6702 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
6703};
6704//# sourceMappingURL=runtimeConfig.shared.js.map
6705
6706/***/ }),
6707
6708/***/ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js":
6709/*!**********************************************************************************************!*\
6710 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js ***!
6711 \**********************************************************************************************/
6712/*! 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 */
6713/***/ (function(module, __webpack_exports__, __webpack_require__) {
6714
6715"use strict";
6716__webpack_require__.r(__webpack_exports__);
6717/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
6718/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
6719/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
6720/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
6721/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
6722/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
6723/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
6724/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
6725/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
6726/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
6727/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
6728/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
6729/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
6730/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
6731/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
6732/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
6733/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
6734/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
6735/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
6736/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
6737/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
6738/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
6739/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
6740/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
6741/*! *****************************************************************************
6742Copyright (c) Microsoft Corporation.
6743
6744Permission to use, copy, modify, and/or distribute this software for any
6745purpose with or without fee is hereby granted.
6746
6747THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
6748REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6749AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
6750INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6751LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
6752OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6753PERFORMANCE OF THIS SOFTWARE.
6754***************************************************************************** */
6755/* global Reflect, Promise */
6756
6757var extendStatics = function(d, b) {
6758 extendStatics = Object.setPrototypeOf ||
6759 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6760 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6761 return extendStatics(d, b);
6762};
6763
6764function __extends(d, b) {
6765 if (typeof b !== "function" && b !== null)
6766 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
6767 extendStatics(d, b);
6768 function __() { this.constructor = d; }
6769 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6770}
6771
6772var __assign = function() {
6773 __assign = Object.assign || function __assign(t) {
6774 for (var s, i = 1, n = arguments.length; i < n; i++) {
6775 s = arguments[i];
6776 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6777 }
6778 return t;
6779 }
6780 return __assign.apply(this, arguments);
6781}
6782
6783function __rest(s, e) {
6784 var t = {};
6785 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
6786 t[p] = s[p];
6787 if (s != null && typeof Object.getOwnPropertySymbols === "function")
6788 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6789 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
6790 t[p[i]] = s[p[i]];
6791 }
6792 return t;
6793}
6794
6795function __decorate(decorators, target, key, desc) {
6796 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6797 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6798 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;
6799 return c > 3 && r && Object.defineProperty(target, key, r), r;
6800}
6801
6802function __param(paramIndex, decorator) {
6803 return function (target, key) { decorator(target, key, paramIndex); }
6804}
6805
6806function __metadata(metadataKey, metadataValue) {
6807 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
6808}
6809
6810function __awaiter(thisArg, _arguments, P, generator) {
6811 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6812 return new (P || (P = Promise))(function (resolve, reject) {
6813 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6814 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6815 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
6816 step((generator = generator.apply(thisArg, _arguments || [])).next());
6817 });
6818}
6819
6820function __generator(thisArg, body) {
6821 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
6822 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
6823 function verb(n) { return function (v) { return step([n, v]); }; }
6824 function step(op) {
6825 if (f) throw new TypeError("Generator is already executing.");
6826 while (_) try {
6827 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;
6828 if (y = 0, t) op = [op[0] & 2, t.value];
6829 switch (op[0]) {
6830 case 0: case 1: t = op; break;
6831 case 4: _.label++; return { value: op[1], done: false };
6832 case 5: _.label++; y = op[1]; op = [0]; continue;
6833 case 7: op = _.ops.pop(); _.trys.pop(); continue;
6834 default:
6835 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
6836 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
6837 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
6838 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
6839 if (t[2]) _.ops.pop();
6840 _.trys.pop(); continue;
6841 }
6842 op = body.call(thisArg, _);
6843 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
6844 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
6845 }
6846}
6847
6848var __createBinding = Object.create ? (function(o, m, k, k2) {
6849 if (k2 === undefined) k2 = k;
6850 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6851}) : (function(o, m, k, k2) {
6852 if (k2 === undefined) k2 = k;
6853 o[k2] = m[k];
6854});
6855
6856function __exportStar(m, o) {
6857 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
6858}
6859
6860function __values(o) {
6861 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
6862 if (m) return m.call(o);
6863 if (o && typeof o.length === "number") return {
6864 next: function () {
6865 if (o && i >= o.length) o = void 0;
6866 return { value: o && o[i++], done: !o };
6867 }
6868 };
6869 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
6870}
6871
6872function __read(o, n) {
6873 var m = typeof Symbol === "function" && o[Symbol.iterator];
6874 if (!m) return o;
6875 var i = m.call(o), r, ar = [], e;
6876 try {
6877 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
6878 }
6879 catch (error) { e = { error: error }; }
6880 finally {
6881 try {
6882 if (r && !r.done && (m = i["return"])) m.call(i);
6883 }
6884 finally { if (e) throw e.error; }
6885 }
6886 return ar;
6887}
6888
6889/** @deprecated */
6890function __spread() {
6891 for (var ar = [], i = 0; i < arguments.length; i++)
6892 ar = ar.concat(__read(arguments[i]));
6893 return ar;
6894}
6895
6896/** @deprecated */
6897function __spreadArrays() {
6898 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
6899 for (var r = Array(s), k = 0, i = 0; i < il; i++)
6900 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6901 r[k] = a[j];
6902 return r;
6903}
6904
6905function __spreadArray(to, from, pack) {
6906 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
6907 if (ar || !(i in from)) {
6908 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6909 ar[i] = from[i];
6910 }
6911 }
6912 return to.concat(ar || Array.prototype.slice.call(from));
6913}
6914
6915function __await(v) {
6916 return this instanceof __await ? (this.v = v, this) : new __await(v);
6917}
6918
6919function __asyncGenerator(thisArg, _arguments, generator) {
6920 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6921 var g = generator.apply(thisArg, _arguments || []), i, q = [];
6922 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
6923 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); }); }; }
6924 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
6925 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
6926 function fulfill(value) { resume("next", value); }
6927 function reject(value) { resume("throw", value); }
6928 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
6929}
6930
6931function __asyncDelegator(o) {
6932 var i, p;
6933 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
6934 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; }
6935}
6936
6937function __asyncValues(o) {
6938 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6939 var m = o[Symbol.asyncIterator], i;
6940 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);
6941 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); }); }; }
6942 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
6943}
6944
6945function __makeTemplateObject(cooked, raw) {
6946 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
6947 return cooked;
6948};
6949
6950var __setModuleDefault = Object.create ? (function(o, v) {
6951 Object.defineProperty(o, "default", { enumerable: true, value: v });
6952}) : function(o, v) {
6953 o["default"] = v;
6954};
6955
6956function __importStar(mod) {
6957 if (mod && mod.__esModule) return mod;
6958 var result = {};
6959 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
6960 __setModuleDefault(result, mod);
6961 return result;
6962}
6963
6964function __importDefault(mod) {
6965 return (mod && mod.__esModule) ? mod : { default: mod };
6966}
6967
6968function __classPrivateFieldGet(receiver, state, kind, f) {
6969 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
6970 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");
6971 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6972}
6973
6974function __classPrivateFieldSet(receiver, state, value, kind, f) {
6975 if (kind === "m") throw new TypeError("Private method is not writable");
6976 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
6977 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");
6978 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6979}
6980
6981
6982/***/ }),
6983
6984/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js":
6985/*!********************************************************************************!*\
6986 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js ***!
6987 \********************************************************************************/
6988/*! exports provided: Kinesis */
6989/***/ (function(module, __webpack_exports__, __webpack_require__) {
6990
6991"use strict";
6992__webpack_require__.r(__webpack_exports__);
6993/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kinesis", function() { return Kinesis; });
6994/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
6995/* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./KinesisClient */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js");
6996/* harmony import */ var _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AddTagsToStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js");
6997/* harmony import */ var _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js");
6998/* harmony import */ var _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DecreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js");
6999/* harmony import */ var _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DeleteStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js");
7000/* harmony import */ var _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DeregisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js");
7001/* harmony import */ var _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DescribeLimitsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js");
7002/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
7003/* harmony import */ var _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/DescribeStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js");
7004/* harmony import */ var _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/DescribeStreamSummaryCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js");
7005/* harmony import */ var _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DisableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js");
7006/* harmony import */ var _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/EnableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js");
7007/* harmony import */ var _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/GetRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js");
7008/* harmony import */ var _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/GetShardIteratorCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js");
7009/* harmony import */ var _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/IncreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js");
7010/* harmony import */ var _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/ListShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js");
7011/* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/ListStreamConsumersCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js");
7012/* harmony import */ var _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/ListStreamsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js");
7013/* harmony import */ var _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/ListTagsForStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js");
7014/* harmony import */ var _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/MergeShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js");
7015/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js");
7016/* harmony import */ var _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/PutRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js");
7017/* harmony import */ var _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/RegisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js");
7018/* harmony import */ var _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/RemoveTagsFromStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js");
7019/* harmony import */ var _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/SplitShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js");
7020/* harmony import */ var _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/StartStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js");
7021/* harmony import */ var _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/StopStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js");
7022/* harmony import */ var _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/SubscribeToShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js");
7023/* harmony import */ var _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/UpdateShardCountCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js");
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054/**
7055 * <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
7056 * <p>Amazon Kinesis Data Streams is a managed service that scales elastically for
7057 * real-time processing of streaming big data.</p>
7058 */
7059var Kinesis = /** @class */ (function (_super) {
7060 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Kinesis, _super);
7061 function Kinesis() {
7062 return _super !== null && _super.apply(this, arguments) || this;
7063 }
7064 Kinesis.prototype.addTagsToStream = function (args, optionsOrCb, cb) {
7065 var command = new _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__["AddTagsToStreamCommand"](args);
7066 if (typeof optionsOrCb === "function") {
7067 this.send(command, optionsOrCb);
7068 }
7069 else if (typeof cb === "function") {
7070 if (typeof optionsOrCb !== "object")
7071 throw new Error("Expect http options but get " + typeof optionsOrCb);
7072 this.send(command, optionsOrCb || {}, cb);
7073 }
7074 else {
7075 return this.send(command, optionsOrCb);
7076 }
7077 };
7078 Kinesis.prototype.createStream = function (args, optionsOrCb, cb) {
7079 var command = new _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__["CreateStreamCommand"](args);
7080 if (typeof optionsOrCb === "function") {
7081 this.send(command, optionsOrCb);
7082 }
7083 else if (typeof cb === "function") {
7084 if (typeof optionsOrCb !== "object")
7085 throw new Error("Expect http options but get " + typeof optionsOrCb);
7086 this.send(command, optionsOrCb || {}, cb);
7087 }
7088 else {
7089 return this.send(command, optionsOrCb);
7090 }
7091 };
7092 Kinesis.prototype.decreaseStreamRetentionPeriod = function (args, optionsOrCb, cb) {
7093 var command = new _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__["DecreaseStreamRetentionPeriodCommand"](args);
7094 if (typeof optionsOrCb === "function") {
7095 this.send(command, optionsOrCb);
7096 }
7097 else if (typeof cb === "function") {
7098 if (typeof optionsOrCb !== "object")
7099 throw new Error("Expect http options but get " + typeof optionsOrCb);
7100 this.send(command, optionsOrCb || {}, cb);
7101 }
7102 else {
7103 return this.send(command, optionsOrCb);
7104 }
7105 };
7106 Kinesis.prototype.deleteStream = function (args, optionsOrCb, cb) {
7107 var command = new _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__["DeleteStreamCommand"](args);
7108 if (typeof optionsOrCb === "function") {
7109 this.send(command, optionsOrCb);
7110 }
7111 else if (typeof cb === "function") {
7112 if (typeof optionsOrCb !== "object")
7113 throw new Error("Expect http options but get " + typeof optionsOrCb);
7114 this.send(command, optionsOrCb || {}, cb);
7115 }
7116 else {
7117 return this.send(command, optionsOrCb);
7118 }
7119 };
7120 Kinesis.prototype.deregisterStreamConsumer = function (args, optionsOrCb, cb) {
7121 var command = new _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__["DeregisterStreamConsumerCommand"](args);
7122 if (typeof optionsOrCb === "function") {
7123 this.send(command, optionsOrCb);
7124 }
7125 else if (typeof cb === "function") {
7126 if (typeof optionsOrCb !== "object")
7127 throw new Error("Expect http options but get " + typeof optionsOrCb);
7128 this.send(command, optionsOrCb || {}, cb);
7129 }
7130 else {
7131 return this.send(command, optionsOrCb);
7132 }
7133 };
7134 Kinesis.prototype.describeLimits = function (args, optionsOrCb, cb) {
7135 var command = new _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__["DescribeLimitsCommand"](args);
7136 if (typeof optionsOrCb === "function") {
7137 this.send(command, optionsOrCb);
7138 }
7139 else if (typeof cb === "function") {
7140 if (typeof optionsOrCb !== "object")
7141 throw new Error("Expect http options but get " + typeof optionsOrCb);
7142 this.send(command, optionsOrCb || {}, cb);
7143 }
7144 else {
7145 return this.send(command, optionsOrCb);
7146 }
7147 };
7148 Kinesis.prototype.describeStream = function (args, optionsOrCb, cb) {
7149 var command = new _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__["DescribeStreamCommand"](args);
7150 if (typeof optionsOrCb === "function") {
7151 this.send(command, optionsOrCb);
7152 }
7153 else if (typeof cb === "function") {
7154 if (typeof optionsOrCb !== "object")
7155 throw new Error("Expect http options but get " + typeof optionsOrCb);
7156 this.send(command, optionsOrCb || {}, cb);
7157 }
7158 else {
7159 return this.send(command, optionsOrCb);
7160 }
7161 };
7162 Kinesis.prototype.describeStreamConsumer = function (args, optionsOrCb, cb) {
7163 var command = new _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__["DescribeStreamConsumerCommand"](args);
7164 if (typeof optionsOrCb === "function") {
7165 this.send(command, optionsOrCb);
7166 }
7167 else if (typeof cb === "function") {
7168 if (typeof optionsOrCb !== "object")
7169 throw new Error("Expect http options but get " + typeof optionsOrCb);
7170 this.send(command, optionsOrCb || {}, cb);
7171 }
7172 else {
7173 return this.send(command, optionsOrCb);
7174 }
7175 };
7176 Kinesis.prototype.describeStreamSummary = function (args, optionsOrCb, cb) {
7177 var command = new _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__["DescribeStreamSummaryCommand"](args);
7178 if (typeof optionsOrCb === "function") {
7179 this.send(command, optionsOrCb);
7180 }
7181 else if (typeof cb === "function") {
7182 if (typeof optionsOrCb !== "object")
7183 throw new Error("Expect http options but get " + typeof optionsOrCb);
7184 this.send(command, optionsOrCb || {}, cb);
7185 }
7186 else {
7187 return this.send(command, optionsOrCb);
7188 }
7189 };
7190 Kinesis.prototype.disableEnhancedMonitoring = function (args, optionsOrCb, cb) {
7191 var command = new _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__["DisableEnhancedMonitoringCommand"](args);
7192 if (typeof optionsOrCb === "function") {
7193 this.send(command, optionsOrCb);
7194 }
7195 else if (typeof cb === "function") {
7196 if (typeof optionsOrCb !== "object")
7197 throw new Error("Expect http options but get " + typeof optionsOrCb);
7198 this.send(command, optionsOrCb || {}, cb);
7199 }
7200 else {
7201 return this.send(command, optionsOrCb);
7202 }
7203 };
7204 Kinesis.prototype.enableEnhancedMonitoring = function (args, optionsOrCb, cb) {
7205 var command = new _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__["EnableEnhancedMonitoringCommand"](args);
7206 if (typeof optionsOrCb === "function") {
7207 this.send(command, optionsOrCb);
7208 }
7209 else if (typeof cb === "function") {
7210 if (typeof optionsOrCb !== "object")
7211 throw new Error("Expect http options but get " + typeof optionsOrCb);
7212 this.send(command, optionsOrCb || {}, cb);
7213 }
7214 else {
7215 return this.send(command, optionsOrCb);
7216 }
7217 };
7218 Kinesis.prototype.getRecords = function (args, optionsOrCb, cb) {
7219 var command = new _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__["GetRecordsCommand"](args);
7220 if (typeof optionsOrCb === "function") {
7221 this.send(command, optionsOrCb);
7222 }
7223 else if (typeof cb === "function") {
7224 if (typeof optionsOrCb !== "object")
7225 throw new Error("Expect http options but get " + typeof optionsOrCb);
7226 this.send(command, optionsOrCb || {}, cb);
7227 }
7228 else {
7229 return this.send(command, optionsOrCb);
7230 }
7231 };
7232 Kinesis.prototype.getShardIterator = function (args, optionsOrCb, cb) {
7233 var command = new _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__["GetShardIteratorCommand"](args);
7234 if (typeof optionsOrCb === "function") {
7235 this.send(command, optionsOrCb);
7236 }
7237 else if (typeof cb === "function") {
7238 if (typeof optionsOrCb !== "object")
7239 throw new Error("Expect http options but get " + typeof optionsOrCb);
7240 this.send(command, optionsOrCb || {}, cb);
7241 }
7242 else {
7243 return this.send(command, optionsOrCb);
7244 }
7245 };
7246 Kinesis.prototype.increaseStreamRetentionPeriod = function (args, optionsOrCb, cb) {
7247 var command = new _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__["IncreaseStreamRetentionPeriodCommand"](args);
7248 if (typeof optionsOrCb === "function") {
7249 this.send(command, optionsOrCb);
7250 }
7251 else if (typeof cb === "function") {
7252 if (typeof optionsOrCb !== "object")
7253 throw new Error("Expect http options but get " + typeof optionsOrCb);
7254 this.send(command, optionsOrCb || {}, cb);
7255 }
7256 else {
7257 return this.send(command, optionsOrCb);
7258 }
7259 };
7260 Kinesis.prototype.listShards = function (args, optionsOrCb, cb) {
7261 var command = new _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__["ListShardsCommand"](args);
7262 if (typeof optionsOrCb === "function") {
7263 this.send(command, optionsOrCb);
7264 }
7265 else if (typeof cb === "function") {
7266 if (typeof optionsOrCb !== "object")
7267 throw new Error("Expect http options but get " + typeof optionsOrCb);
7268 this.send(command, optionsOrCb || {}, cb);
7269 }
7270 else {
7271 return this.send(command, optionsOrCb);
7272 }
7273 };
7274 Kinesis.prototype.listStreamConsumers = function (args, optionsOrCb, cb) {
7275 var command = new _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__["ListStreamConsumersCommand"](args);
7276 if (typeof optionsOrCb === "function") {
7277 this.send(command, optionsOrCb);
7278 }
7279 else if (typeof cb === "function") {
7280 if (typeof optionsOrCb !== "object")
7281 throw new Error("Expect http options but get " + typeof optionsOrCb);
7282 this.send(command, optionsOrCb || {}, cb);
7283 }
7284 else {
7285 return this.send(command, optionsOrCb);
7286 }
7287 };
7288 Kinesis.prototype.listStreams = function (args, optionsOrCb, cb) {
7289 var command = new _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_18__["ListStreamsCommand"](args);
7290 if (typeof optionsOrCb === "function") {
7291 this.send(command, optionsOrCb);
7292 }
7293 else if (typeof cb === "function") {
7294 if (typeof optionsOrCb !== "object")
7295 throw new Error("Expect http options but get " + typeof optionsOrCb);
7296 this.send(command, optionsOrCb || {}, cb);
7297 }
7298 else {
7299 return this.send(command, optionsOrCb);
7300 }
7301 };
7302 Kinesis.prototype.listTagsForStream = function (args, optionsOrCb, cb) {
7303 var command = new _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_19__["ListTagsForStreamCommand"](args);
7304 if (typeof optionsOrCb === "function") {
7305 this.send(command, optionsOrCb);
7306 }
7307 else if (typeof cb === "function") {
7308 if (typeof optionsOrCb !== "object")
7309 throw new Error("Expect http options but get " + typeof optionsOrCb);
7310 this.send(command, optionsOrCb || {}, cb);
7311 }
7312 else {
7313 return this.send(command, optionsOrCb);
7314 }
7315 };
7316 Kinesis.prototype.mergeShards = function (args, optionsOrCb, cb) {
7317 var command = new _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_20__["MergeShardsCommand"](args);
7318 if (typeof optionsOrCb === "function") {
7319 this.send(command, optionsOrCb);
7320 }
7321 else if (typeof cb === "function") {
7322 if (typeof optionsOrCb !== "object")
7323 throw new Error("Expect http options but get " + typeof optionsOrCb);
7324 this.send(command, optionsOrCb || {}, cb);
7325 }
7326 else {
7327 return this.send(command, optionsOrCb);
7328 }
7329 };
7330 Kinesis.prototype.putRecord = function (args, optionsOrCb, cb) {
7331 var command = new _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_21__["PutRecordCommand"](args);
7332 if (typeof optionsOrCb === "function") {
7333 this.send(command, optionsOrCb);
7334 }
7335 else if (typeof cb === "function") {
7336 if (typeof optionsOrCb !== "object")
7337 throw new Error("Expect http options but get " + typeof optionsOrCb);
7338 this.send(command, optionsOrCb || {}, cb);
7339 }
7340 else {
7341 return this.send(command, optionsOrCb);
7342 }
7343 };
7344 Kinesis.prototype.putRecords = function (args, optionsOrCb, cb) {
7345 var command = new _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_22__["PutRecordsCommand"](args);
7346 if (typeof optionsOrCb === "function") {
7347 this.send(command, optionsOrCb);
7348 }
7349 else if (typeof cb === "function") {
7350 if (typeof optionsOrCb !== "object")
7351 throw new Error("Expect http options but get " + typeof optionsOrCb);
7352 this.send(command, optionsOrCb || {}, cb);
7353 }
7354 else {
7355 return this.send(command, optionsOrCb);
7356 }
7357 };
7358 Kinesis.prototype.registerStreamConsumer = function (args, optionsOrCb, cb) {
7359 var command = new _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_23__["RegisterStreamConsumerCommand"](args);
7360 if (typeof optionsOrCb === "function") {
7361 this.send(command, optionsOrCb);
7362 }
7363 else if (typeof cb === "function") {
7364 if (typeof optionsOrCb !== "object")
7365 throw new Error("Expect http options but get " + typeof optionsOrCb);
7366 this.send(command, optionsOrCb || {}, cb);
7367 }
7368 else {
7369 return this.send(command, optionsOrCb);
7370 }
7371 };
7372 Kinesis.prototype.removeTagsFromStream = function (args, optionsOrCb, cb) {
7373 var command = new _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_24__["RemoveTagsFromStreamCommand"](args);
7374 if (typeof optionsOrCb === "function") {
7375 this.send(command, optionsOrCb);
7376 }
7377 else if (typeof cb === "function") {
7378 if (typeof optionsOrCb !== "object")
7379 throw new Error("Expect http options but get " + typeof optionsOrCb);
7380 this.send(command, optionsOrCb || {}, cb);
7381 }
7382 else {
7383 return this.send(command, optionsOrCb);
7384 }
7385 };
7386 Kinesis.prototype.splitShard = function (args, optionsOrCb, cb) {
7387 var command = new _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_25__["SplitShardCommand"](args);
7388 if (typeof optionsOrCb === "function") {
7389 this.send(command, optionsOrCb);
7390 }
7391 else if (typeof cb === "function") {
7392 if (typeof optionsOrCb !== "object")
7393 throw new Error("Expect http options but get " + typeof optionsOrCb);
7394 this.send(command, optionsOrCb || {}, cb);
7395 }
7396 else {
7397 return this.send(command, optionsOrCb);
7398 }
7399 };
7400 Kinesis.prototype.startStreamEncryption = function (args, optionsOrCb, cb) {
7401 var command = new _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__["StartStreamEncryptionCommand"](args);
7402 if (typeof optionsOrCb === "function") {
7403 this.send(command, optionsOrCb);
7404 }
7405 else if (typeof cb === "function") {
7406 if (typeof optionsOrCb !== "object")
7407 throw new Error("Expect http options but get " + typeof optionsOrCb);
7408 this.send(command, optionsOrCb || {}, cb);
7409 }
7410 else {
7411 return this.send(command, optionsOrCb);
7412 }
7413 };
7414 Kinesis.prototype.stopStreamEncryption = function (args, optionsOrCb, cb) {
7415 var command = new _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__["StopStreamEncryptionCommand"](args);
7416 if (typeof optionsOrCb === "function") {
7417 this.send(command, optionsOrCb);
7418 }
7419 else if (typeof cb === "function") {
7420 if (typeof optionsOrCb !== "object")
7421 throw new Error("Expect http options but get " + typeof optionsOrCb);
7422 this.send(command, optionsOrCb || {}, cb);
7423 }
7424 else {
7425 return this.send(command, optionsOrCb);
7426 }
7427 };
7428 Kinesis.prototype.subscribeToShard = function (args, optionsOrCb, cb) {
7429 var command = new _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_28__["SubscribeToShardCommand"](args);
7430 if (typeof optionsOrCb === "function") {
7431 this.send(command, optionsOrCb);
7432 }
7433 else if (typeof cb === "function") {
7434 if (typeof optionsOrCb !== "object")
7435 throw new Error("Expect http options but get " + typeof optionsOrCb);
7436 this.send(command, optionsOrCb || {}, cb);
7437 }
7438 else {
7439 return this.send(command, optionsOrCb);
7440 }
7441 };
7442 Kinesis.prototype.updateShardCount = function (args, optionsOrCb, cb) {
7443 var command = new _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_29__["UpdateShardCountCommand"](args);
7444 if (typeof optionsOrCb === "function") {
7445 this.send(command, optionsOrCb);
7446 }
7447 else if (typeof cb === "function") {
7448 if (typeof optionsOrCb !== "object")
7449 throw new Error("Expect http options but get " + typeof optionsOrCb);
7450 this.send(command, optionsOrCb || {}, cb);
7451 }
7452 else {
7453 return this.send(command, optionsOrCb);
7454 }
7455 };
7456 return Kinesis;
7457}(_KinesisClient__WEBPACK_IMPORTED_MODULE_1__["KinesisClient"]));
7458
7459//# sourceMappingURL=Kinesis.js.map
7460
7461/***/ }),
7462
7463/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js":
7464/*!**************************************************************************************!*\
7465 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js ***!
7466 \**************************************************************************************/
7467/*! exports provided: KinesisClient */
7468/***/ (function(module, __webpack_exports__, __webpack_require__) {
7469
7470"use strict";
7471__webpack_require__.r(__webpack_exports__);
7472/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KinesisClient", function() { return KinesisClient; });
7473/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7474/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.browser.js");
7475/* 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");
7476/* 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");
7477/* 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");
7478/* 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");
7479/* 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");
7480/* 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");
7481/* 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");
7482/* 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");
7483/* 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");
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495/**
7496 * <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
7497 * <p>Amazon Kinesis Data Streams is a managed service that scales elastically for
7498 * real-time processing of streaming big data.</p>
7499 */
7500var KinesisClient = /** @class */ (function (_super) {
7501 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(KinesisClient, _super);
7502 function KinesisClient(configuration) {
7503 var _this = this;
7504 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
7505 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
7506 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
7507 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_8__["resolveAwsAuthConfig"])(_config_2);
7508 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_7__["resolveRetryConfig"])(_config_3);
7509 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_5__["resolveHostHeaderConfig"])(_config_4);
7510 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_9__["resolveUserAgentConfig"])(_config_5);
7511 var _config_7 = Object(_aws_sdk_eventstream_serde_config_resolver__WEBPACK_IMPORTED_MODULE_3__["resolveEventStreamSerdeConfig"])(_config_6);
7512 _this = _super.call(this, _config_7) || this;
7513 _this.config = _config_7;
7514 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_8__["getAwsAuthPlugin"])(_this.config));
7515 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_7__["getRetryPlugin"])(_this.config));
7516 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_4__["getContentLengthPlugin"])(_this.config));
7517 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_5__["getHostHeaderPlugin"])(_this.config));
7518 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_6__["getLoggerPlugin"])(_this.config));
7519 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_9__["getUserAgentPlugin"])(_this.config));
7520 return _this;
7521 }
7522 KinesisClient.prototype.destroy = function () {
7523 _super.prototype.destroy.call(this);
7524 };
7525 return KinesisClient;
7526}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_10__["Client"]));
7527
7528//# sourceMappingURL=KinesisClient.js.map
7529
7530/***/ }),
7531
7532/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js":
7533/*!********************************************************************************************************!*\
7534 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js ***!
7535 \********************************************************************************************************/
7536/*! exports provided: AddTagsToStreamCommand */
7537/***/ (function(module, __webpack_exports__, __webpack_require__) {
7538
7539"use strict";
7540__webpack_require__.r(__webpack_exports__);
7541/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamCommand", function() { return AddTagsToStreamCommand; });
7542/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7543/* 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");
7544/* 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");
7545/* 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");
7546/* 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");
7547
7548
7549
7550
7551
7552/**
7553 * <p>Adds or updates tags for the specified Kinesis data stream. Each time you invoke
7554 * this operation, you can specify up to 10 tags. If you want to add more than 10 tags to
7555 * your stream, you can invoke this operation multiple times. In total, each stream can
7556 * have up to 50 tags.</p>
7557 * <p>If tags have already been assigned to the stream, <code>AddTagsToStream</code>
7558 * overwrites any existing tags that correspond to the specified tag keys.</p>
7559 * <p>
7560 * <a>AddTagsToStream</a> has a limit of five transactions per second per
7561 * account.</p>
7562 */
7563var AddTagsToStreamCommand = /** @class */ (function (_super) {
7564 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AddTagsToStreamCommand, _super);
7565 // Start section: command_properties
7566 // End section: command_properties
7567 function AddTagsToStreamCommand(input) {
7568 var _this =
7569 // Start section: command_constructor
7570 _super.call(this) || this;
7571 _this.input = input;
7572 return _this;
7573 // End section: command_constructor
7574 }
7575 /**
7576 * @internal
7577 */
7578 AddTagsToStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7579 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7580 var stack = clientStack.concat(this.middlewareStack);
7581 var logger = configuration.logger;
7582 var clientName = "KinesisClient";
7583 var commandName = "AddTagsToStreamCommand";
7584 var handlerExecutionContext = {
7585 logger: logger,
7586 clientName: clientName,
7587 commandName: commandName,
7588 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["AddTagsToStreamInput"].filterSensitiveLog,
7589 outputFilterSensitiveLog: function (output) { return output; },
7590 };
7591 var requestHandler = configuration.requestHandler;
7592 return stack.resolve(function (request) {
7593 return requestHandler.handle(request.request, options || {});
7594 }, handlerExecutionContext);
7595 };
7596 AddTagsToStreamCommand.prototype.serialize = function (input, context) {
7597 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1AddTagsToStreamCommand"])(input, context);
7598 };
7599 AddTagsToStreamCommand.prototype.deserialize = function (output, context) {
7600 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1AddTagsToStreamCommand"])(output, context);
7601 };
7602 return AddTagsToStreamCommand;
7603}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7604
7605//# sourceMappingURL=AddTagsToStreamCommand.js.map
7606
7607/***/ }),
7608
7609/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js":
7610/*!*****************************************************************************************************!*\
7611 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js ***!
7612 \*****************************************************************************************************/
7613/*! exports provided: CreateStreamCommand */
7614/***/ (function(module, __webpack_exports__, __webpack_require__) {
7615
7616"use strict";
7617__webpack_require__.r(__webpack_exports__);
7618/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateStreamCommand", function() { return CreateStreamCommand; });
7619/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7620/* 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");
7621/* 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");
7622/* 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");
7623/* 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");
7624
7625
7626
7627
7628
7629/**
7630 * <p>Creates a Kinesis data stream. A stream captures and transports data records that
7631 * are continuously emitted from different data sources or <i>producers</i>.
7632 * Scale-out within a stream is explicitly supported by means of shards, which are uniquely
7633 * identified groups of data records in a stream.</p>
7634 * <p>You specify and control the number of shards that a stream is composed of. Each
7635 * shard can support reads up to five transactions per second, up to a maximum data read
7636 * total of 2 MiB per second. Each shard can support writes up to 1,000 records per second,
7637 * up to a maximum data write total of 1 MiB per second. If the amount of data input
7638 * increases or decreases, you can add or remove shards.</p>
7639 * <p>The stream name identifies the stream. The name is scoped to the AWS account used
7640 * by the application. It is also scoped by AWS Region. That is, two streams in two
7641 * different accounts can have the same name, and two streams in the same account, but in
7642 * two different Regions, can have the same name.</p>
7643 * <p>
7644 * <code>CreateStream</code> is an asynchronous operation. Upon receiving a
7645 * <code>CreateStream</code> request, Kinesis Data Streams immediately returns and sets
7646 * the stream status to <code>CREATING</code>. After the stream is created, Kinesis Data
7647 * Streams sets the stream status to <code>ACTIVE</code>. You should perform read and write
7648 * operations only on an <code>ACTIVE</code> stream. </p>
7649 * <p>You receive a <code>LimitExceededException</code> when making a
7650 * <code>CreateStream</code> request when you try to do one of the following:</p>
7651 * <ul>
7652 * <li>
7653 *
7654 * <p>Have more than five streams in the <code>CREATING</code> state at any point
7655 * in time.</p>
7656 * </li>
7657 * <li>
7658 *
7659 * <p>Create more shards than are authorized for your account.</p>
7660 * </li>
7661 * </ul>
7662 * <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
7663 * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
7664 * Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact AWS
7665 * Support</a>.</p>
7666 * <p>You can use <code>DescribeStream</code> to check the stream status, which is
7667 * returned in <code>StreamStatus</code>.</p>
7668 * <p>
7669 * <a>CreateStream</a> has a limit of five transactions per second per
7670 * account.</p>
7671 */
7672var CreateStreamCommand = /** @class */ (function (_super) {
7673 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateStreamCommand, _super);
7674 // Start section: command_properties
7675 // End section: command_properties
7676 function CreateStreamCommand(input) {
7677 var _this =
7678 // Start section: command_constructor
7679 _super.call(this) || this;
7680 _this.input = input;
7681 return _this;
7682 // End section: command_constructor
7683 }
7684 /**
7685 * @internal
7686 */
7687 CreateStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7688 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7689 var stack = clientStack.concat(this.middlewareStack);
7690 var logger = configuration.logger;
7691 var clientName = "KinesisClient";
7692 var commandName = "CreateStreamCommand";
7693 var handlerExecutionContext = {
7694 logger: logger,
7695 clientName: clientName,
7696 commandName: commandName,
7697 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateStreamInput"].filterSensitiveLog,
7698 outputFilterSensitiveLog: function (output) { return output; },
7699 };
7700 var requestHandler = configuration.requestHandler;
7701 return stack.resolve(function (request) {
7702 return requestHandler.handle(request.request, options || {});
7703 }, handlerExecutionContext);
7704 };
7705 CreateStreamCommand.prototype.serialize = function (input, context) {
7706 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateStreamCommand"])(input, context);
7707 };
7708 CreateStreamCommand.prototype.deserialize = function (output, context) {
7709 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateStreamCommand"])(output, context);
7710 };
7711 return CreateStreamCommand;
7712}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7713
7714//# sourceMappingURL=CreateStreamCommand.js.map
7715
7716/***/ }),
7717
7718/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js":
7719/*!**********************************************************************************************************************!*\
7720 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js ***!
7721 \**********************************************************************************************************************/
7722/*! exports provided: DecreaseStreamRetentionPeriodCommand */
7723/***/ (function(module, __webpack_exports__, __webpack_require__) {
7724
7725"use strict";
7726__webpack_require__.r(__webpack_exports__);
7727/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodCommand", function() { return DecreaseStreamRetentionPeriodCommand; });
7728/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7729/* 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");
7730/* 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");
7731/* 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");
7732/* 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");
7733
7734
7735
7736
7737
7738/**
7739 * <p>Decreases the Kinesis data stream's retention period, which is the length of time
7740 * data records are accessible after they are added to the stream. The minimum value of a
7741 * stream's retention period is 24 hours.</p>
7742 * <p>This operation may result in lost data. For example, if the stream's retention
7743 * period is 48 hours and is decreased to 24 hours, any data already in the stream that is
7744 * older than 24 hours is inaccessible.</p>
7745 */
7746var DecreaseStreamRetentionPeriodCommand = /** @class */ (function (_super) {
7747 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DecreaseStreamRetentionPeriodCommand, _super);
7748 // Start section: command_properties
7749 // End section: command_properties
7750 function DecreaseStreamRetentionPeriodCommand(input) {
7751 var _this =
7752 // Start section: command_constructor
7753 _super.call(this) || this;
7754 _this.input = input;
7755 return _this;
7756 // End section: command_constructor
7757 }
7758 /**
7759 * @internal
7760 */
7761 DecreaseStreamRetentionPeriodCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7762 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7763 var stack = clientStack.concat(this.middlewareStack);
7764 var logger = configuration.logger;
7765 var clientName = "KinesisClient";
7766 var commandName = "DecreaseStreamRetentionPeriodCommand";
7767 var handlerExecutionContext = {
7768 logger: logger,
7769 clientName: clientName,
7770 commandName: commandName,
7771 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DecreaseStreamRetentionPeriodInput"].filterSensitiveLog,
7772 outputFilterSensitiveLog: function (output) { return output; },
7773 };
7774 var requestHandler = configuration.requestHandler;
7775 return stack.resolve(function (request) {
7776 return requestHandler.handle(request.request, options || {});
7777 }, handlerExecutionContext);
7778 };
7779 DecreaseStreamRetentionPeriodCommand.prototype.serialize = function (input, context) {
7780 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DecreaseStreamRetentionPeriodCommand"])(input, context);
7781 };
7782 DecreaseStreamRetentionPeriodCommand.prototype.deserialize = function (output, context) {
7783 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand"])(output, context);
7784 };
7785 return DecreaseStreamRetentionPeriodCommand;
7786}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7787
7788//# sourceMappingURL=DecreaseStreamRetentionPeriodCommand.js.map
7789
7790/***/ }),
7791
7792/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js":
7793/*!*****************************************************************************************************!*\
7794 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js ***!
7795 \*****************************************************************************************************/
7796/*! exports provided: DeleteStreamCommand */
7797/***/ (function(module, __webpack_exports__, __webpack_require__) {
7798
7799"use strict";
7800__webpack_require__.r(__webpack_exports__);
7801/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamCommand", function() { return DeleteStreamCommand; });
7802/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7803/* 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");
7804/* 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");
7805/* 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");
7806/* 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");
7807
7808
7809
7810
7811
7812/**
7813 * <p>Deletes a Kinesis data stream and all its shards and data. You must shut down any
7814 * applications that are operating on the stream before you delete the stream. If an
7815 * application attempts to operate on a deleted stream, it receives the exception
7816 * <code>ResourceNotFoundException</code>.</p>
7817 * <p>If the stream is in the <code>ACTIVE</code> state, you can delete it. After a
7818 * <code>DeleteStream</code> request, the specified stream is in the
7819 * <code>DELETING</code> state until Kinesis Data Streams completes the
7820 * deletion.</p>
7821 * <p>
7822 * <b>Note:</b> Kinesis Data Streams might continue to accept
7823 * data read and write operations, such as <a>PutRecord</a>, <a>PutRecords</a>, and <a>GetRecords</a>, on a stream in the
7824 * <code>DELETING</code> state until the stream deletion is complete.</p>
7825 * <p>When you delete a stream, any shards in that stream are also deleted, and any tags
7826 * are dissociated from the stream.</p>
7827 * <p>You can use the <a>DescribeStream</a> operation to check the state of
7828 * the stream, which is returned in <code>StreamStatus</code>.</p>
7829 * <p>
7830 * <a>DeleteStream</a> has a limit of five transactions per second per
7831 * account.</p>
7832 */
7833var DeleteStreamCommand = /** @class */ (function (_super) {
7834 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteStreamCommand, _super);
7835 // Start section: command_properties
7836 // End section: command_properties
7837 function DeleteStreamCommand(input) {
7838 var _this =
7839 // Start section: command_constructor
7840 _super.call(this) || this;
7841 _this.input = input;
7842 return _this;
7843 // End section: command_constructor
7844 }
7845 /**
7846 * @internal
7847 */
7848 DeleteStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7849 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7850 var stack = clientStack.concat(this.middlewareStack);
7851 var logger = configuration.logger;
7852 var clientName = "KinesisClient";
7853 var commandName = "DeleteStreamCommand";
7854 var handlerExecutionContext = {
7855 logger: logger,
7856 clientName: clientName,
7857 commandName: commandName,
7858 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteStreamInput"].filterSensitiveLog,
7859 outputFilterSensitiveLog: function (output) { return output; },
7860 };
7861 var requestHandler = configuration.requestHandler;
7862 return stack.resolve(function (request) {
7863 return requestHandler.handle(request.request, options || {});
7864 }, handlerExecutionContext);
7865 };
7866 DeleteStreamCommand.prototype.serialize = function (input, context) {
7867 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteStreamCommand"])(input, context);
7868 };
7869 DeleteStreamCommand.prototype.deserialize = function (output, context) {
7870 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteStreamCommand"])(output, context);
7871 };
7872 return DeleteStreamCommand;
7873}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7874
7875//# sourceMappingURL=DeleteStreamCommand.js.map
7876
7877/***/ }),
7878
7879/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js":
7880/*!*****************************************************************************************************************!*\
7881 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js ***!
7882 \*****************************************************************************************************************/
7883/*! exports provided: DeregisterStreamConsumerCommand */
7884/***/ (function(module, __webpack_exports__, __webpack_require__) {
7885
7886"use strict";
7887__webpack_require__.r(__webpack_exports__);
7888/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerCommand", function() { return DeregisterStreamConsumerCommand; });
7889/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7890/* 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");
7891/* 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");
7892/* 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");
7893/* 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");
7894
7895
7896
7897
7898
7899/**
7900 * <p>To deregister a consumer, provide its ARN. Alternatively, you can provide the ARN of
7901 * the data stream and the name you gave the consumer when you registered it. You may also
7902 * provide all three parameters, as long as they don't conflict with each other. If you
7903 * don't know the name or ARN of the consumer that you want to deregister, you can use the
7904 * <a>ListStreamConsumers</a> operation to get a list of the descriptions of
7905 * all the consumers that are currently registered with a given data stream. The
7906 * description of a consumer contains its name and ARN.</p>
7907 * <p>This operation has a limit of five transactions per second per stream.</p>
7908 */
7909var DeregisterStreamConsumerCommand = /** @class */ (function (_super) {
7910 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeregisterStreamConsumerCommand, _super);
7911 // Start section: command_properties
7912 // End section: command_properties
7913 function DeregisterStreamConsumerCommand(input) {
7914 var _this =
7915 // Start section: command_constructor
7916 _super.call(this) || this;
7917 _this.input = input;
7918 return _this;
7919 // End section: command_constructor
7920 }
7921 /**
7922 * @internal
7923 */
7924 DeregisterStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7925 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7926 var stack = clientStack.concat(this.middlewareStack);
7927 var logger = configuration.logger;
7928 var clientName = "KinesisClient";
7929 var commandName = "DeregisterStreamConsumerCommand";
7930 var handlerExecutionContext = {
7931 logger: logger,
7932 clientName: clientName,
7933 commandName: commandName,
7934 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeregisterStreamConsumerInput"].filterSensitiveLog,
7935 outputFilterSensitiveLog: function (output) { return output; },
7936 };
7937 var requestHandler = configuration.requestHandler;
7938 return stack.resolve(function (request) {
7939 return requestHandler.handle(request.request, options || {});
7940 }, handlerExecutionContext);
7941 };
7942 DeregisterStreamConsumerCommand.prototype.serialize = function (input, context) {
7943 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeregisterStreamConsumerCommand"])(input, context);
7944 };
7945 DeregisterStreamConsumerCommand.prototype.deserialize = function (output, context) {
7946 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeregisterStreamConsumerCommand"])(output, context);
7947 };
7948 return DeregisterStreamConsumerCommand;
7949}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7950
7951//# sourceMappingURL=DeregisterStreamConsumerCommand.js.map
7952
7953/***/ }),
7954
7955/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js":
7956/*!*******************************************************************************************************!*\
7957 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js ***!
7958 \*******************************************************************************************************/
7959/*! exports provided: DescribeLimitsCommand */
7960/***/ (function(module, __webpack_exports__, __webpack_require__) {
7961
7962"use strict";
7963__webpack_require__.r(__webpack_exports__);
7964/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsCommand", function() { return DescribeLimitsCommand; });
7965/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7966/* 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");
7967/* 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");
7968/* 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");
7969/* 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");
7970
7971
7972
7973
7974
7975/**
7976 * <p>Describes the shard limits and usage for the account.</p>
7977 * <p>If you update your account limits, the old limits might be returned for a few
7978 * minutes.</p>
7979 * <p>This operation has a limit of one transaction per second per account.</p>
7980 */
7981var DescribeLimitsCommand = /** @class */ (function (_super) {
7982 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeLimitsCommand, _super);
7983 // Start section: command_properties
7984 // End section: command_properties
7985 function DescribeLimitsCommand(input) {
7986 var _this =
7987 // Start section: command_constructor
7988 _super.call(this) || this;
7989 _this.input = input;
7990 return _this;
7991 // End section: command_constructor
7992 }
7993 /**
7994 * @internal
7995 */
7996 DescribeLimitsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7997 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7998 var stack = clientStack.concat(this.middlewareStack);
7999 var logger = configuration.logger;
8000 var clientName = "KinesisClient";
8001 var commandName = "DescribeLimitsCommand";
8002 var handlerExecutionContext = {
8003 logger: logger,
8004 clientName: clientName,
8005 commandName: commandName,
8006 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeLimitsInput"].filterSensitiveLog,
8007 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeLimitsOutput"].filterSensitiveLog,
8008 };
8009 var requestHandler = configuration.requestHandler;
8010 return stack.resolve(function (request) {
8011 return requestHandler.handle(request.request, options || {});
8012 }, handlerExecutionContext);
8013 };
8014 DescribeLimitsCommand.prototype.serialize = function (input, context) {
8015 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeLimitsCommand"])(input, context);
8016 };
8017 DescribeLimitsCommand.prototype.deserialize = function (output, context) {
8018 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeLimitsCommand"])(output, context);
8019 };
8020 return DescribeLimitsCommand;
8021}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8022
8023//# sourceMappingURL=DescribeLimitsCommand.js.map
8024
8025/***/ }),
8026
8027/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js":
8028/*!*******************************************************************************************************!*\
8029 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js ***!
8030 \*******************************************************************************************************/
8031/*! exports provided: DescribeStreamCommand */
8032/***/ (function(module, __webpack_exports__, __webpack_require__) {
8033
8034"use strict";
8035__webpack_require__.r(__webpack_exports__);
8036/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamCommand", function() { return DescribeStreamCommand; });
8037/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8038/* 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");
8039/* 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");
8040/* 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");
8041/* 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");
8042
8043
8044
8045
8046
8047/**
8048 * <p>Describes the specified Kinesis data stream.</p>
8049 *
8050 * <p>The information returned includes the stream name, Amazon Resource Name (ARN),
8051 * creation time, enhanced metric configuration, and shard map. The shard map is an array
8052 * of shard objects. For each shard object, there is the hash key and sequence number
8053 * ranges that the shard spans, and the IDs of any earlier shards that played in a role in
8054 * creating the shard. Every record ingested in the stream is identified by a sequence
8055 * number, which is assigned when the record is put into the stream.</p>
8056 *
8057 * <p>You can limit the number of shards returned by each call. For more information, see
8058 * <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html">Retrieving
8059 * Shards from a Stream</a> in the <i>Amazon Kinesis Data Streams Developer
8060 * Guide</i>.</p>
8061 * <p>There are no guarantees about the chronological order shards returned. To process
8062 * shards in chronological order, use the ID of the parent shard to track the lineage to
8063 * the oldest shard.</p>
8064 * <p>This operation has a limit of 10 transactions per second per account.</p>
8065 */
8066var DescribeStreamCommand = /** @class */ (function (_super) {
8067 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamCommand, _super);
8068 // Start section: command_properties
8069 // End section: command_properties
8070 function DescribeStreamCommand(input) {
8071 var _this =
8072 // Start section: command_constructor
8073 _super.call(this) || this;
8074 _this.input = input;
8075 return _this;
8076 // End section: command_constructor
8077 }
8078 /**
8079 * @internal
8080 */
8081 DescribeStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8082 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8083 var stack = clientStack.concat(this.middlewareStack);
8084 var logger = configuration.logger;
8085 var clientName = "KinesisClient";
8086 var commandName = "DescribeStreamCommand";
8087 var handlerExecutionContext = {
8088 logger: logger,
8089 clientName: clientName,
8090 commandName: commandName,
8091 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamInput"].filterSensitiveLog,
8092 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamOutput"].filterSensitiveLog,
8093 };
8094 var requestHandler = configuration.requestHandler;
8095 return stack.resolve(function (request) {
8096 return requestHandler.handle(request.request, options || {});
8097 }, handlerExecutionContext);
8098 };
8099 DescribeStreamCommand.prototype.serialize = function (input, context) {
8100 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamCommand"])(input, context);
8101 };
8102 DescribeStreamCommand.prototype.deserialize = function (output, context) {
8103 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamCommand"])(output, context);
8104 };
8105 return DescribeStreamCommand;
8106}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8107
8108//# sourceMappingURL=DescribeStreamCommand.js.map
8109
8110/***/ }),
8111
8112/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js":
8113/*!***************************************************************************************************************!*\
8114 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js ***!
8115 \***************************************************************************************************************/
8116/*! exports provided: DescribeStreamConsumerCommand */
8117/***/ (function(module, __webpack_exports__, __webpack_require__) {
8118
8119"use strict";
8120__webpack_require__.r(__webpack_exports__);
8121/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerCommand", function() { return DescribeStreamConsumerCommand; });
8122/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8123/* 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");
8124/* 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");
8125/* 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");
8126/* 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");
8127
8128
8129
8130
8131
8132/**
8133 * <p>To get the description of a registered consumer, provide the ARN of the consumer.
8134 * Alternatively, you can provide the ARN of the data stream and the name you gave the
8135 * consumer when you registered it. You may also provide all three parameters, as long as
8136 * they don't conflict with each other. If you don't know the name or ARN of the consumer
8137 * that you want to describe, you can use the <a>ListStreamConsumers</a>
8138 * operation to get a list of the descriptions of all the consumers that are currently
8139 * registered with a given data stream.</p>
8140 * <p>This operation has a limit of 20 transactions per second per stream.</p>
8141 */
8142var DescribeStreamConsumerCommand = /** @class */ (function (_super) {
8143 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamConsumerCommand, _super);
8144 // Start section: command_properties
8145 // End section: command_properties
8146 function DescribeStreamConsumerCommand(input) {
8147 var _this =
8148 // Start section: command_constructor
8149 _super.call(this) || this;
8150 _this.input = input;
8151 return _this;
8152 // End section: command_constructor
8153 }
8154 /**
8155 * @internal
8156 */
8157 DescribeStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8158 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8159 var stack = clientStack.concat(this.middlewareStack);
8160 var logger = configuration.logger;
8161 var clientName = "KinesisClient";
8162 var commandName = "DescribeStreamConsumerCommand";
8163 var handlerExecutionContext = {
8164 logger: logger,
8165 clientName: clientName,
8166 commandName: commandName,
8167 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamConsumerInput"].filterSensitiveLog,
8168 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamConsumerOutput"].filterSensitiveLog,
8169 };
8170 var requestHandler = configuration.requestHandler;
8171 return stack.resolve(function (request) {
8172 return requestHandler.handle(request.request, options || {});
8173 }, handlerExecutionContext);
8174 };
8175 DescribeStreamConsumerCommand.prototype.serialize = function (input, context) {
8176 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamConsumerCommand"])(input, context);
8177 };
8178 DescribeStreamConsumerCommand.prototype.deserialize = function (output, context) {
8179 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamConsumerCommand"])(output, context);
8180 };
8181 return DescribeStreamConsumerCommand;
8182}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8183
8184//# sourceMappingURL=DescribeStreamConsumerCommand.js.map
8185
8186/***/ }),
8187
8188/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js":
8189/*!**************************************************************************************************************!*\
8190 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js ***!
8191 \**************************************************************************************************************/
8192/*! exports provided: DescribeStreamSummaryCommand */
8193/***/ (function(module, __webpack_exports__, __webpack_require__) {
8194
8195"use strict";
8196__webpack_require__.r(__webpack_exports__);
8197/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryCommand", function() { return DescribeStreamSummaryCommand; });
8198/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8199/* 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");
8200/* 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");
8201/* 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");
8202/* 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");
8203
8204
8205
8206
8207
8208/**
8209 * <p>Provides a summarized description of the specified Kinesis data stream without the
8210 * shard list.</p>
8211 * <p>The information returned includes the stream name, Amazon Resource Name (ARN),
8212 * status, record retention period, approximate creation time, monitoring, encryption
8213 * details, and open shard count. </p>
8214 * <p>
8215 * <a>DescribeStreamSummary</a> has a limit of 20 transactions per second
8216 * per account.</p>
8217 */
8218var DescribeStreamSummaryCommand = /** @class */ (function (_super) {
8219 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamSummaryCommand, _super);
8220 // Start section: command_properties
8221 // End section: command_properties
8222 function DescribeStreamSummaryCommand(input) {
8223 var _this =
8224 // Start section: command_constructor
8225 _super.call(this) || this;
8226 _this.input = input;
8227 return _this;
8228 // End section: command_constructor
8229 }
8230 /**
8231 * @internal
8232 */
8233 DescribeStreamSummaryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8234 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8235 var stack = clientStack.concat(this.middlewareStack);
8236 var logger = configuration.logger;
8237 var clientName = "KinesisClient";
8238 var commandName = "DescribeStreamSummaryCommand";
8239 var handlerExecutionContext = {
8240 logger: logger,
8241 clientName: clientName,
8242 commandName: commandName,
8243 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamSummaryInput"].filterSensitiveLog,
8244 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamSummaryOutput"].filterSensitiveLog,
8245 };
8246 var requestHandler = configuration.requestHandler;
8247 return stack.resolve(function (request) {
8248 return requestHandler.handle(request.request, options || {});
8249 }, handlerExecutionContext);
8250 };
8251 DescribeStreamSummaryCommand.prototype.serialize = function (input, context) {
8252 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamSummaryCommand"])(input, context);
8253 };
8254 DescribeStreamSummaryCommand.prototype.deserialize = function (output, context) {
8255 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamSummaryCommand"])(output, context);
8256 };
8257 return DescribeStreamSummaryCommand;
8258}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8259
8260//# sourceMappingURL=DescribeStreamSummaryCommand.js.map
8261
8262/***/ }),
8263
8264/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js":
8265/*!******************************************************************************************************************!*\
8266 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js ***!
8267 \******************************************************************************************************************/
8268/*! exports provided: DisableEnhancedMonitoringCommand */
8269/***/ (function(module, __webpack_exports__, __webpack_require__) {
8270
8271"use strict";
8272__webpack_require__.r(__webpack_exports__);
8273/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringCommand", function() { return DisableEnhancedMonitoringCommand; });
8274/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8275/* 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");
8276/* 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");
8277/* 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");
8278/* 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");
8279
8280
8281
8282
8283
8284/**
8285 * <p>Disables enhanced monitoring.</p>
8286 */
8287var DisableEnhancedMonitoringCommand = /** @class */ (function (_super) {
8288 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DisableEnhancedMonitoringCommand, _super);
8289 // Start section: command_properties
8290 // End section: command_properties
8291 function DisableEnhancedMonitoringCommand(input) {
8292 var _this =
8293 // Start section: command_constructor
8294 _super.call(this) || this;
8295 _this.input = input;
8296 return _this;
8297 // End section: command_constructor
8298 }
8299 /**
8300 * @internal
8301 */
8302 DisableEnhancedMonitoringCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8303 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8304 var stack = clientStack.concat(this.middlewareStack);
8305 var logger = configuration.logger;
8306 var clientName = "KinesisClient";
8307 var commandName = "DisableEnhancedMonitoringCommand";
8308 var handlerExecutionContext = {
8309 logger: logger,
8310 clientName: clientName,
8311 commandName: commandName,
8312 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DisableEnhancedMonitoringInput"].filterSensitiveLog,
8313 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["EnhancedMonitoringOutput"].filterSensitiveLog,
8314 };
8315 var requestHandler = configuration.requestHandler;
8316 return stack.resolve(function (request) {
8317 return requestHandler.handle(request.request, options || {});
8318 }, handlerExecutionContext);
8319 };
8320 DisableEnhancedMonitoringCommand.prototype.serialize = function (input, context) {
8321 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DisableEnhancedMonitoringCommand"])(input, context);
8322 };
8323 DisableEnhancedMonitoringCommand.prototype.deserialize = function (output, context) {
8324 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DisableEnhancedMonitoringCommand"])(output, context);
8325 };
8326 return DisableEnhancedMonitoringCommand;
8327}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8328
8329//# sourceMappingURL=DisableEnhancedMonitoringCommand.js.map
8330
8331/***/ }),
8332
8333/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js":
8334/*!*****************************************************************************************************************!*\
8335 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js ***!
8336 \*****************************************************************************************************************/
8337/*! exports provided: EnableEnhancedMonitoringCommand */
8338/***/ (function(module, __webpack_exports__, __webpack_require__) {
8339
8340"use strict";
8341__webpack_require__.r(__webpack_exports__);
8342/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringCommand", function() { return EnableEnhancedMonitoringCommand; });
8343/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8344/* 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");
8345/* 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");
8346/* 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");
8347/* 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");
8348
8349
8350
8351
8352
8353/**
8354 * <p>Enables enhanced Kinesis data stream monitoring for shard-level metrics.</p>
8355 */
8356var EnableEnhancedMonitoringCommand = /** @class */ (function (_super) {
8357 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EnableEnhancedMonitoringCommand, _super);
8358 // Start section: command_properties
8359 // End section: command_properties
8360 function EnableEnhancedMonitoringCommand(input) {
8361 var _this =
8362 // Start section: command_constructor
8363 _super.call(this) || this;
8364 _this.input = input;
8365 return _this;
8366 // End section: command_constructor
8367 }
8368 /**
8369 * @internal
8370 */
8371 EnableEnhancedMonitoringCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8372 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8373 var stack = clientStack.concat(this.middlewareStack);
8374 var logger = configuration.logger;
8375 var clientName = "KinesisClient";
8376 var commandName = "EnableEnhancedMonitoringCommand";
8377 var handlerExecutionContext = {
8378 logger: logger,
8379 clientName: clientName,
8380 commandName: commandName,
8381 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["EnableEnhancedMonitoringInput"].filterSensitiveLog,
8382 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["EnhancedMonitoringOutput"].filterSensitiveLog,
8383 };
8384 var requestHandler = configuration.requestHandler;
8385 return stack.resolve(function (request) {
8386 return requestHandler.handle(request.request, options || {});
8387 }, handlerExecutionContext);
8388 };
8389 EnableEnhancedMonitoringCommand.prototype.serialize = function (input, context) {
8390 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1EnableEnhancedMonitoringCommand"])(input, context);
8391 };
8392 EnableEnhancedMonitoringCommand.prototype.deserialize = function (output, context) {
8393 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1EnableEnhancedMonitoringCommand"])(output, context);
8394 };
8395 return EnableEnhancedMonitoringCommand;
8396}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8397
8398//# sourceMappingURL=EnableEnhancedMonitoringCommand.js.map
8399
8400/***/ }),
8401
8402/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js":
8403/*!***************************************************************************************************!*\
8404 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js ***!
8405 \***************************************************************************************************/
8406/*! exports provided: GetRecordsCommand */
8407/***/ (function(module, __webpack_exports__, __webpack_require__) {
8408
8409"use strict";
8410__webpack_require__.r(__webpack_exports__);
8411/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsCommand", function() { return GetRecordsCommand; });
8412/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8413/* 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");
8414/* 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");
8415/* 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");
8416/* 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");
8417
8418
8419
8420
8421
8422/**
8423 * <p>Gets data records from a Kinesis data stream's shard.</p>
8424 * <p>Specify a shard iterator using the <code>ShardIterator</code> parameter. The shard
8425 * iterator specifies the position in the shard from which you want to start reading data
8426 * records sequentially. If there are no records available in the portion of the shard that
8427 * the iterator points to, <a>GetRecords</a> returns an empty list. It might
8428 * take multiple calls to get to a portion of the shard that contains records.</p>
8429 * <p>You can scale by provisioning multiple shards per stream while considering service
8430 * limits (for more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Amazon Kinesis Data Streams
8431 * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
8432 * Guide</i>). Your application should have one thread per shard, each reading
8433 * continuously from its stream. To read from a stream continually, call <a>GetRecords</a> in a loop. Use <a>GetShardIterator</a> to get the
8434 * shard iterator to specify in the first <a>GetRecords</a> call. <a>GetRecords</a> returns a new shard iterator in
8435 * <code>NextShardIterator</code>. Specify the shard iterator returned in
8436 * <code>NextShardIterator</code> in subsequent calls to <a>GetRecords</a>.
8437 * 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>.
8438 * You can terminate the loop when the shard is closed, or when the shard iterator reaches
8439 * the record with the sequence number or other attribute that marks it as the last record
8440 * to process.</p>
8441 * <p>Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB
8442 * per second. You can ensure that your calls don't exceed the maximum supported size or
8443 * throughput by using the <code>Limit</code> parameter to specify the maximum number of
8444 * records that <a>GetRecords</a> can return. Consider your average record size
8445 * when determining this limit. The maximum number of records that can be returned per call
8446 * is 10,000.</p>
8447 *
8448 * <p>The size of the data returned by <a>GetRecords</a> varies depending on
8449 * the utilization of the shard. The maximum size of data that <a>GetRecords</a>
8450 * can return is 10 MiB. If a call returns this amount of data, subsequent calls made
8451 * within the next 5 seconds throw <code>ProvisionedThroughputExceededException</code>. If
8452 * there is insufficient provisioned throughput on the stream, subsequent calls made within
8453 * the next 1 second throw <code>ProvisionedThroughputExceededException</code>. <a>GetRecords</a> doesn't return any data when it throws an exception. For this
8454 * 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
8455 * second.</p>
8456 * <p>To detect whether the application is falling behind in processing, you can use the
8457 * <code>MillisBehindLatest</code> response attribute. You can also monitor the stream
8458 * 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
8459 * Kinesis Data Streams Developer Guide</i>).</p>
8460 * <p>Each Amazon Kinesis record includes a value,
8461 * <code>ApproximateArrivalTimestamp</code>, that is set when a stream successfully
8462 * receives and stores a record. This is commonly referred to as a server-side time stamp,
8463 * whereas a client-side time stamp is set when a data producer creates or sends the record
8464 * to a stream (a data producer is any data source putting data records into a stream, for
8465 * example with <a>PutRecords</a>). The time stamp has millisecond precision.
8466 * There are no guarantees about the time stamp accuracy, or that the time stamp is always
8467 * increasing. For example, records in a shard or across a stream might have time stamps
8468 * that are out of order.</p>
8469 * <p>This operation has a limit of five transactions per second per shard.</p>
8470 */
8471var GetRecordsCommand = /** @class */ (function (_super) {
8472 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecordsCommand, _super);
8473 // Start section: command_properties
8474 // End section: command_properties
8475 function GetRecordsCommand(input) {
8476 var _this =
8477 // Start section: command_constructor
8478 _super.call(this) || this;
8479 _this.input = input;
8480 return _this;
8481 // End section: command_constructor
8482 }
8483 /**
8484 * @internal
8485 */
8486 GetRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8487 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8488 var stack = clientStack.concat(this.middlewareStack);
8489 var logger = configuration.logger;
8490 var clientName = "KinesisClient";
8491 var commandName = "GetRecordsCommand";
8492 var handlerExecutionContext = {
8493 logger: logger,
8494 clientName: clientName,
8495 commandName: commandName,
8496 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetRecordsInput"].filterSensitiveLog,
8497 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetRecordsOutput"].filterSensitiveLog,
8498 };
8499 var requestHandler = configuration.requestHandler;
8500 return stack.resolve(function (request) {
8501 return requestHandler.handle(request.request, options || {});
8502 }, handlerExecutionContext);
8503 };
8504 GetRecordsCommand.prototype.serialize = function (input, context) {
8505 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetRecordsCommand"])(input, context);
8506 };
8507 GetRecordsCommand.prototype.deserialize = function (output, context) {
8508 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetRecordsCommand"])(output, context);
8509 };
8510 return GetRecordsCommand;
8511}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8512
8513//# sourceMappingURL=GetRecordsCommand.js.map
8514
8515/***/ }),
8516
8517/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js":
8518/*!*********************************************************************************************************!*\
8519 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js ***!
8520 \*********************************************************************************************************/
8521/*! exports provided: GetShardIteratorCommand */
8522/***/ (function(module, __webpack_exports__, __webpack_require__) {
8523
8524"use strict";
8525__webpack_require__.r(__webpack_exports__);
8526/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorCommand", function() { return GetShardIteratorCommand; });
8527/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8528/* 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");
8529/* 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");
8530/* 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");
8531/* 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");
8532
8533
8534
8535
8536
8537/**
8538 * <p>Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it
8539 * is returned to the requester.</p>
8540 * <p>A shard iterator specifies the shard position from which to start reading data
8541 * records sequentially. The position is specified using the sequence number of a data
8542 * record in a shard. A sequence number is the identifier associated with every record
8543 * ingested in the stream, and is assigned when a record is put into the stream. Each
8544 * stream has one or more shards.</p>
8545 * <p>You must specify the shard iterator type. For example, you can set the
8546 * <code>ShardIteratorType</code> parameter to read exactly from the position denoted
8547 * by a specific sequence number by using the <code>AT_SEQUENCE_NUMBER</code> shard
8548 * iterator type. Alternatively, the parameter can read right after the sequence number by
8549 * using the <code>AFTER_SEQUENCE_NUMBER</code> shard iterator type, using sequence numbers
8550 * returned by earlier calls to <a>PutRecord</a>, <a>PutRecords</a>,
8551 * <a>GetRecords</a>, or <a>DescribeStream</a>. In the request,
8552 * you can specify the shard iterator type <code>AT_TIMESTAMP</code> to read records from
8553 * an arbitrary point in time, <code>TRIM_HORIZON</code> to cause
8554 * <code>ShardIterator</code> to point to the last untrimmed record in the shard in the
8555 * system (the oldest data record in the shard), or <code>LATEST</code> so that you always
8556 * read the most recent data in the shard. </p>
8557 * <p>When you read repeatedly from a stream, use a <a>GetShardIterator</a>
8558 * 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
8559 * iterator is returned by every <a>GetRecords</a> request in
8560 * <code>NextShardIterator</code>, which you use in the <code>ShardIterator</code>
8561 * parameter of the next <a>GetRecords</a> request. </p>
8562 * <p>If a <a>GetShardIterator</a> request is made too often, you receive a
8563 * <code>ProvisionedThroughputExceededException</code>. For more information about
8564 * 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
8565 * <i>Amazon Kinesis Data Streams Developer Guide</i>.</p>
8566 * <p>If the shard is closed, <a>GetShardIterator</a> returns a valid iterator
8567 * for the last sequence number of the shard. A shard can be closed as a result of using
8568 * <a>SplitShard</a> or <a>MergeShards</a>.</p>
8569 * <p>
8570 * <a>GetShardIterator</a> has a limit of five transactions per second per
8571 * account per open shard.</p>
8572 */
8573var GetShardIteratorCommand = /** @class */ (function (_super) {
8574 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetShardIteratorCommand, _super);
8575 // Start section: command_properties
8576 // End section: command_properties
8577 function GetShardIteratorCommand(input) {
8578 var _this =
8579 // Start section: command_constructor
8580 _super.call(this) || this;
8581 _this.input = input;
8582 return _this;
8583 // End section: command_constructor
8584 }
8585 /**
8586 * @internal
8587 */
8588 GetShardIteratorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8589 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8590 var stack = clientStack.concat(this.middlewareStack);
8591 var logger = configuration.logger;
8592 var clientName = "KinesisClient";
8593 var commandName = "GetShardIteratorCommand";
8594 var handlerExecutionContext = {
8595 logger: logger,
8596 clientName: clientName,
8597 commandName: commandName,
8598 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetShardIteratorInput"].filterSensitiveLog,
8599 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetShardIteratorOutput"].filterSensitiveLog,
8600 };
8601 var requestHandler = configuration.requestHandler;
8602 return stack.resolve(function (request) {
8603 return requestHandler.handle(request.request, options || {});
8604 }, handlerExecutionContext);
8605 };
8606 GetShardIteratorCommand.prototype.serialize = function (input, context) {
8607 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetShardIteratorCommand"])(input, context);
8608 };
8609 GetShardIteratorCommand.prototype.deserialize = function (output, context) {
8610 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetShardIteratorCommand"])(output, context);
8611 };
8612 return GetShardIteratorCommand;
8613}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8614
8615//# sourceMappingURL=GetShardIteratorCommand.js.map
8616
8617/***/ }),
8618
8619/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js":
8620/*!**********************************************************************************************************************!*\
8621 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js ***!
8622 \**********************************************************************************************************************/
8623/*! exports provided: IncreaseStreamRetentionPeriodCommand */
8624/***/ (function(module, __webpack_exports__, __webpack_require__) {
8625
8626"use strict";
8627__webpack_require__.r(__webpack_exports__);
8628/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodCommand", function() { return IncreaseStreamRetentionPeriodCommand; });
8629/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8630/* 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");
8631/* 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");
8632/* 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");
8633/* 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");
8634
8635
8636
8637
8638
8639/**
8640 * <p>Increases the Kinesis data stream's retention period, which is the length of time
8641 * data records are accessible after they are added to the stream. The maximum value of a
8642 * stream's retention period is 168 hours (7 days).</p>
8643 * <p>If you choose a longer stream retention period, this operation increases the time
8644 * period during which records that have not yet expired are accessible. However, it does
8645 * not make previous, expired data (older than the stream's previous retention period)
8646 * accessible after the operation has been called. For example, if a stream's retention
8647 * period is set to 24 hours and is increased to 168 hours, any data that is older than 24
8648 * hours remains inaccessible to consumer applications.</p>
8649 */
8650var IncreaseStreamRetentionPeriodCommand = /** @class */ (function (_super) {
8651 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IncreaseStreamRetentionPeriodCommand, _super);
8652 // Start section: command_properties
8653 // End section: command_properties
8654 function IncreaseStreamRetentionPeriodCommand(input) {
8655 var _this =
8656 // Start section: command_constructor
8657 _super.call(this) || this;
8658 _this.input = input;
8659 return _this;
8660 // End section: command_constructor
8661 }
8662 /**
8663 * @internal
8664 */
8665 IncreaseStreamRetentionPeriodCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8666 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8667 var stack = clientStack.concat(this.middlewareStack);
8668 var logger = configuration.logger;
8669 var clientName = "KinesisClient";
8670 var commandName = "IncreaseStreamRetentionPeriodCommand";
8671 var handlerExecutionContext = {
8672 logger: logger,
8673 clientName: clientName,
8674 commandName: commandName,
8675 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["IncreaseStreamRetentionPeriodInput"].filterSensitiveLog,
8676 outputFilterSensitiveLog: function (output) { return output; },
8677 };
8678 var requestHandler = configuration.requestHandler;
8679 return stack.resolve(function (request) {
8680 return requestHandler.handle(request.request, options || {});
8681 }, handlerExecutionContext);
8682 };
8683 IncreaseStreamRetentionPeriodCommand.prototype.serialize = function (input, context) {
8684 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1IncreaseStreamRetentionPeriodCommand"])(input, context);
8685 };
8686 IncreaseStreamRetentionPeriodCommand.prototype.deserialize = function (output, context) {
8687 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand"])(output, context);
8688 };
8689 return IncreaseStreamRetentionPeriodCommand;
8690}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8691
8692//# sourceMappingURL=IncreaseStreamRetentionPeriodCommand.js.map
8693
8694/***/ }),
8695
8696/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js":
8697/*!***************************************************************************************************!*\
8698 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js ***!
8699 \***************************************************************************************************/
8700/*! exports provided: ListShardsCommand */
8701/***/ (function(module, __webpack_exports__, __webpack_require__) {
8702
8703"use strict";
8704__webpack_require__.r(__webpack_exports__);
8705/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsCommand", function() { return ListShardsCommand; });
8706/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8707/* 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");
8708/* 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");
8709/* 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");
8710/* 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");
8711
8712
8713
8714
8715
8716/**
8717 * <p>Lists the shards in a stream and provides information about each shard. This
8718 * operation has a limit of 100 transactions per second per data stream.</p>
8719 * <important>
8720 * <p>This API is a new operation that is used by the Amazon Kinesis Client Library
8721 * (KCL). If you have a fine-grained IAM policy that only allows specific operations,
8722 * you must update your policy to allow calls to this API. For more information, see
8723 * <a href="https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html">Controlling Access to Amazon Kinesis Data Streams Resources Using
8724 * IAM</a>.</p>
8725 * </important>
8726 */
8727var ListShardsCommand = /** @class */ (function (_super) {
8728 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListShardsCommand, _super);
8729 // Start section: command_properties
8730 // End section: command_properties
8731 function ListShardsCommand(input) {
8732 var _this =
8733 // Start section: command_constructor
8734 _super.call(this) || this;
8735 _this.input = input;
8736 return _this;
8737 // End section: command_constructor
8738 }
8739 /**
8740 * @internal
8741 */
8742 ListShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8743 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8744 var stack = clientStack.concat(this.middlewareStack);
8745 var logger = configuration.logger;
8746 var clientName = "KinesisClient";
8747 var commandName = "ListShardsCommand";
8748 var handlerExecutionContext = {
8749 logger: logger,
8750 clientName: clientName,
8751 commandName: commandName,
8752 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListShardsInput"].filterSensitiveLog,
8753 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListShardsOutput"].filterSensitiveLog,
8754 };
8755 var requestHandler = configuration.requestHandler;
8756 return stack.resolve(function (request) {
8757 return requestHandler.handle(request.request, options || {});
8758 }, handlerExecutionContext);
8759 };
8760 ListShardsCommand.prototype.serialize = function (input, context) {
8761 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListShardsCommand"])(input, context);
8762 };
8763 ListShardsCommand.prototype.deserialize = function (output, context) {
8764 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListShardsCommand"])(output, context);
8765 };
8766 return ListShardsCommand;
8767}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8768
8769//# sourceMappingURL=ListShardsCommand.js.map
8770
8771/***/ }),
8772
8773/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js":
8774/*!************************************************************************************************************!*\
8775 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js ***!
8776 \************************************************************************************************************/
8777/*! exports provided: ListStreamConsumersCommand */
8778/***/ (function(module, __webpack_exports__, __webpack_require__) {
8779
8780"use strict";
8781__webpack_require__.r(__webpack_exports__);
8782/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersCommand", function() { return ListStreamConsumersCommand; });
8783/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8784/* 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");
8785/* 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");
8786/* 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");
8787/* 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");
8788
8789
8790
8791
8792
8793/**
8794 * <p>Lists the consumers registered to receive data from a stream using enhanced fan-out,
8795 * and provides information about each consumer.</p>
8796 * <p>This operation has a limit of 5 transactions per second per stream.</p>
8797 */
8798var ListStreamConsumersCommand = /** @class */ (function (_super) {
8799 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListStreamConsumersCommand, _super);
8800 // Start section: command_properties
8801 // End section: command_properties
8802 function ListStreamConsumersCommand(input) {
8803 var _this =
8804 // Start section: command_constructor
8805 _super.call(this) || this;
8806 _this.input = input;
8807 return _this;
8808 // End section: command_constructor
8809 }
8810 /**
8811 * @internal
8812 */
8813 ListStreamConsumersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8814 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8815 var stack = clientStack.concat(this.middlewareStack);
8816 var logger = configuration.logger;
8817 var clientName = "KinesisClient";
8818 var commandName = "ListStreamConsumersCommand";
8819 var handlerExecutionContext = {
8820 logger: logger,
8821 clientName: clientName,
8822 commandName: commandName,
8823 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamConsumersInput"].filterSensitiveLog,
8824 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamConsumersOutput"].filterSensitiveLog,
8825 };
8826 var requestHandler = configuration.requestHandler;
8827 return stack.resolve(function (request) {
8828 return requestHandler.handle(request.request, options || {});
8829 }, handlerExecutionContext);
8830 };
8831 ListStreamConsumersCommand.prototype.serialize = function (input, context) {
8832 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListStreamConsumersCommand"])(input, context);
8833 };
8834 ListStreamConsumersCommand.prototype.deserialize = function (output, context) {
8835 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListStreamConsumersCommand"])(output, context);
8836 };
8837 return ListStreamConsumersCommand;
8838}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8839
8840//# sourceMappingURL=ListStreamConsumersCommand.js.map
8841
8842/***/ }),
8843
8844/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js":
8845/*!****************************************************************************************************!*\
8846 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js ***!
8847 \****************************************************************************************************/
8848/*! exports provided: ListStreamsCommand */
8849/***/ (function(module, __webpack_exports__, __webpack_require__) {
8850
8851"use strict";
8852__webpack_require__.r(__webpack_exports__);
8853/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsCommand", function() { return ListStreamsCommand; });
8854/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8855/* 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");
8856/* 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");
8857/* 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");
8858/* 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");
8859
8860
8861
8862
8863
8864/**
8865 * <p>Lists your Kinesis data streams.</p>
8866 * <p>The number of streams may be too large to return from a single call to
8867 * <code>ListStreams</code>. You can limit the number of returned streams using the
8868 * <code>Limit</code> parameter. If you do not specify a value for the
8869 * <code>Limit</code> parameter, Kinesis Data Streams uses the default limit, which is
8870 * currently 10.</p>
8871 * <p>You can detect if there are more streams available to list by using the
8872 * <code>HasMoreStreams</code> flag from the returned output. If there are more streams
8873 * available, you can request more streams by using the name of the last stream returned by
8874 * the <code>ListStreams</code> request in the <code>ExclusiveStartStreamName</code>
8875 * parameter in a subsequent request to <code>ListStreams</code>. The group of stream names
8876 * returned by the subsequent request is then added to the list. You can continue this
8877 * process until all the stream names have been collected in the list. </p>
8878 * <p>
8879 * <a>ListStreams</a> has a limit of five transactions per second per
8880 * account.</p>
8881 */
8882var ListStreamsCommand = /** @class */ (function (_super) {
8883 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListStreamsCommand, _super);
8884 // Start section: command_properties
8885 // End section: command_properties
8886 function ListStreamsCommand(input) {
8887 var _this =
8888 // Start section: command_constructor
8889 _super.call(this) || this;
8890 _this.input = input;
8891 return _this;
8892 // End section: command_constructor
8893 }
8894 /**
8895 * @internal
8896 */
8897 ListStreamsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8898 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8899 var stack = clientStack.concat(this.middlewareStack);
8900 var logger = configuration.logger;
8901 var clientName = "KinesisClient";
8902 var commandName = "ListStreamsCommand";
8903 var handlerExecutionContext = {
8904 logger: logger,
8905 clientName: clientName,
8906 commandName: commandName,
8907 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamsInput"].filterSensitiveLog,
8908 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamsOutput"].filterSensitiveLog,
8909 };
8910 var requestHandler = configuration.requestHandler;
8911 return stack.resolve(function (request) {
8912 return requestHandler.handle(request.request, options || {});
8913 }, handlerExecutionContext);
8914 };
8915 ListStreamsCommand.prototype.serialize = function (input, context) {
8916 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListStreamsCommand"])(input, context);
8917 };
8918 ListStreamsCommand.prototype.deserialize = function (output, context) {
8919 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListStreamsCommand"])(output, context);
8920 };
8921 return ListStreamsCommand;
8922}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8923
8924//# sourceMappingURL=ListStreamsCommand.js.map
8925
8926/***/ }),
8927
8928/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js":
8929/*!**********************************************************************************************************!*\
8930 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js ***!
8931 \**********************************************************************************************************/
8932/*! exports provided: ListTagsForStreamCommand */
8933/***/ (function(module, __webpack_exports__, __webpack_require__) {
8934
8935"use strict";
8936__webpack_require__.r(__webpack_exports__);
8937/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamCommand", function() { return ListTagsForStreamCommand; });
8938/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8939/* 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");
8940/* 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");
8941/* 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");
8942/* 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");
8943
8944
8945
8946
8947
8948/**
8949 * <p>Lists the tags for the specified Kinesis data stream. This operation has a limit of
8950 * five transactions per second per account.</p>
8951 */
8952var ListTagsForStreamCommand = /** @class */ (function (_super) {
8953 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForStreamCommand, _super);
8954 // Start section: command_properties
8955 // End section: command_properties
8956 function ListTagsForStreamCommand(input) {
8957 var _this =
8958 // Start section: command_constructor
8959 _super.call(this) || this;
8960 _this.input = input;
8961 return _this;
8962 // End section: command_constructor
8963 }
8964 /**
8965 * @internal
8966 */
8967 ListTagsForStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8968 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8969 var stack = clientStack.concat(this.middlewareStack);
8970 var logger = configuration.logger;
8971 var clientName = "KinesisClient";
8972 var commandName = "ListTagsForStreamCommand";
8973 var handlerExecutionContext = {
8974 logger: logger,
8975 clientName: clientName,
8976 commandName: commandName,
8977 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForStreamInput"].filterSensitiveLog,
8978 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForStreamOutput"].filterSensitiveLog,
8979 };
8980 var requestHandler = configuration.requestHandler;
8981 return stack.resolve(function (request) {
8982 return requestHandler.handle(request.request, options || {});
8983 }, handlerExecutionContext);
8984 };
8985 ListTagsForStreamCommand.prototype.serialize = function (input, context) {
8986 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTagsForStreamCommand"])(input, context);
8987 };
8988 ListTagsForStreamCommand.prototype.deserialize = function (output, context) {
8989 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTagsForStreamCommand"])(output, context);
8990 };
8991 return ListTagsForStreamCommand;
8992}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8993
8994//# sourceMappingURL=ListTagsForStreamCommand.js.map
8995
8996/***/ }),
8997
8998/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js":
8999/*!****************************************************************************************************!*\
9000 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js ***!
9001 \****************************************************************************************************/
9002/*! exports provided: MergeShardsCommand */
9003/***/ (function(module, __webpack_exports__, __webpack_require__) {
9004
9005"use strict";
9006__webpack_require__.r(__webpack_exports__);
9007/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeShardsCommand", function() { return MergeShardsCommand; });
9008/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9009/* 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");
9010/* 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");
9011/* 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");
9012/* 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");
9013
9014
9015
9016
9017
9018/**
9019 * <p>Merges two adjacent shards in a Kinesis data stream and combines them into a single
9020 * shard to reduce the stream's capacity to ingest and transport data. Two shards are
9021 * considered adjacent if the union of the hash key ranges for the two shards form a
9022 * contiguous set with no gaps. For example, if you have two shards, one with a hash key
9023 * range of 276...381 and the other with a hash key range of 382...454, then you could
9024 * merge these two shards into a single shard that would have a hash key range of
9025 * 276...454. After the merge, the single child shard receives data for all hash key values
9026 * covered by the two parent shards.</p>
9027 * <p>
9028 * <code>MergeShards</code> is called when there is a need to reduce the overall capacity
9029 * of a stream because of excess capacity that is not being used. You must specify the
9030 * shard to be merged and the adjacent shard for a stream. For more information about
9031 * merging shards, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html">Merge Two
9032 * Shards</a> in the <i>Amazon Kinesis Data Streams Developer
9033 * Guide</i>.</p>
9034 * <p>If the stream is in the <code>ACTIVE</code> state, you can call
9035 * <code>MergeShards</code>. If a stream is in the <code>CREATING</code>,
9036 * <code>UPDATING</code>, or <code>DELETING</code> state, <code>MergeShards</code>
9037 * returns a <code>ResourceInUseException</code>. If the specified stream does not exist,
9038 * <code>MergeShards</code> returns a <code>ResourceNotFoundException</code>. </p>
9039 * <p>You can use <a>DescribeStream</a> to check the state of the stream,
9040 * which is returned in <code>StreamStatus</code>.</p>
9041 * <p>
9042 * <code>MergeShards</code> is an asynchronous operation. Upon receiving a
9043 * <code>MergeShards</code> request, Amazon Kinesis Data Streams immediately returns a
9044 * response and sets the <code>StreamStatus</code> to <code>UPDATING</code>. After the
9045 * operation is completed, Kinesis Data Streams sets the <code>StreamStatus</code> to
9046 * <code>ACTIVE</code>. Read and write operations continue to work while the stream is
9047 * in the <code>UPDATING</code> state. </p>
9048 * <p>You use <a>DescribeStream</a> to determine the shard IDs that are
9049 * specified in the <code>MergeShards</code> request. </p>
9050 * <p>If you try to operate on too many streams in parallel using <a>CreateStream</a>, <a>DeleteStream</a>, <code>MergeShards</code>,
9051 * or <a>SplitShard</a>, you receive a <code>LimitExceededException</code>. </p>
9052 * <p>
9053 * <code>MergeShards</code> has a limit of five transactions per second per
9054 * account.</p>
9055 */
9056var MergeShardsCommand = /** @class */ (function (_super) {
9057 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MergeShardsCommand, _super);
9058 // Start section: command_properties
9059 // End section: command_properties
9060 function MergeShardsCommand(input) {
9061 var _this =
9062 // Start section: command_constructor
9063 _super.call(this) || this;
9064 _this.input = input;
9065 return _this;
9066 // End section: command_constructor
9067 }
9068 /**
9069 * @internal
9070 */
9071 MergeShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9072 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9073 var stack = clientStack.concat(this.middlewareStack);
9074 var logger = configuration.logger;
9075 var clientName = "KinesisClient";
9076 var commandName = "MergeShardsCommand";
9077 var handlerExecutionContext = {
9078 logger: logger,
9079 clientName: clientName,
9080 commandName: commandName,
9081 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["MergeShardsInput"].filterSensitiveLog,
9082 outputFilterSensitiveLog: function (output) { return output; },
9083 };
9084 var requestHandler = configuration.requestHandler;
9085 return stack.resolve(function (request) {
9086 return requestHandler.handle(request.request, options || {});
9087 }, handlerExecutionContext);
9088 };
9089 MergeShardsCommand.prototype.serialize = function (input, context) {
9090 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1MergeShardsCommand"])(input, context);
9091 };
9092 MergeShardsCommand.prototype.deserialize = function (output, context) {
9093 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1MergeShardsCommand"])(output, context);
9094 };
9095 return MergeShardsCommand;
9096}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9097
9098//# sourceMappingURL=MergeShardsCommand.js.map
9099
9100/***/ }),
9101
9102/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js":
9103/*!**************************************************************************************************!*\
9104 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js ***!
9105 \**************************************************************************************************/
9106/*! exports provided: PutRecordCommand */
9107/***/ (function(module, __webpack_exports__, __webpack_require__) {
9108
9109"use strict";
9110__webpack_require__.r(__webpack_exports__);
9111/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return PutRecordCommand; });
9112/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9113/* 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");
9114/* 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");
9115/* 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");
9116/* 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");
9117
9118
9119
9120
9121
9122/**
9123 * <p>Writes a single data record into an Amazon Kinesis data stream. Call
9124 * <code>PutRecord</code> to send data into the stream for real-time ingestion and
9125 * subsequent processing, one record at a time. Each shard can support writes up to 1,000
9126 * records per second, up to a maximum data write total of 1 MiB per second.</p>
9127 * <p>You must specify the name of the stream that captures, stores, and transports the
9128 * data; a partition key; and the data blob itself.</p>
9129 * <p>The data blob can be any type of data; for example, a segment from a log file,
9130 * geographic/location data, website clickstream data, and so on.</p>
9131 * <p>The partition key is used by Kinesis Data Streams to distribute data across shards.
9132 * Kinesis Data Streams segregates the data records that belong to a stream into multiple
9133 * shards, using the partition key associated with each data record to determine the shard
9134 * to which a given data record belongs.</p>
9135 * <p>Partition keys are Unicode strings, with a maximum length limit of 256 characters
9136 * for each key. An MD5 hash function is used to map partition keys to 128-bit integer
9137 * values and to map associated data records to shards using the hash key ranges of the
9138 * shards. You can override hashing the partition key to determine the shard by explicitly
9139 * specifying a hash value using the <code>ExplicitHashKey</code> parameter. For more
9140 * 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
9141 * Developer Guide</i>.</p>
9142 * <p>
9143 * <code>PutRecord</code> returns the shard ID of where the data record was placed and the
9144 * sequence number that was assigned to the data record.</p>
9145 * <p>Sequence numbers increase over time and are specific to a shard within a stream,
9146 * not across all shards within a stream. To guarantee strictly increasing ordering, write
9147 * serially to a shard and use the <code>SequenceNumberForOrdering</code> parameter. For
9148 * 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
9149 * Developer Guide</i>.</p>
9150 * <important>
9151 * <p>After you write a record to a stream, you cannot modify that record or its order
9152 * within the stream.</p>
9153 * </important>
9154 * <p>If a <code>PutRecord</code> request cannot be processed because of insufficient
9155 * provisioned throughput on the shard involved in the request, <code>PutRecord</code>
9156 * throws <code>ProvisionedThroughputExceededException</code>. </p>
9157 * <p>By default, data records are accessible for 24 hours from the time that they are
9158 * added to a stream. You can use <a>IncreaseStreamRetentionPeriod</a> or <a>DecreaseStreamRetentionPeriod</a> to modify this retention period.</p>
9159 */
9160var PutRecordCommand = /** @class */ (function (_super) {
9161 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordCommand, _super);
9162 // Start section: command_properties
9163 // End section: command_properties
9164 function PutRecordCommand(input) {
9165 var _this =
9166 // Start section: command_constructor
9167 _super.call(this) || this;
9168 _this.input = input;
9169 return _this;
9170 // End section: command_constructor
9171 }
9172 /**
9173 * @internal
9174 */
9175 PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9176 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9177 var stack = clientStack.concat(this.middlewareStack);
9178 var logger = configuration.logger;
9179 var clientName = "KinesisClient";
9180 var commandName = "PutRecordCommand";
9181 var handlerExecutionContext = {
9182 logger: logger,
9183 clientName: clientName,
9184 commandName: commandName,
9185 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordInput"].filterSensitiveLog,
9186 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordOutput"].filterSensitiveLog,
9187 };
9188 var requestHandler = configuration.requestHandler;
9189 return stack.resolve(function (request) {
9190 return requestHandler.handle(request.request, options || {});
9191 }, handlerExecutionContext);
9192 };
9193 PutRecordCommand.prototype.serialize = function (input, context) {
9194 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordCommand"])(input, context);
9195 };
9196 PutRecordCommand.prototype.deserialize = function (output, context) {
9197 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordCommand"])(output, context);
9198 };
9199 return PutRecordCommand;
9200}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9201
9202//# sourceMappingURL=PutRecordCommand.js.map
9203
9204/***/ }),
9205
9206/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js":
9207/*!***************************************************************************************************!*\
9208 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js ***!
9209 \***************************************************************************************************/
9210/*! exports provided: PutRecordsCommand */
9211/***/ (function(module, __webpack_exports__, __webpack_require__) {
9212
9213"use strict";
9214__webpack_require__.r(__webpack_exports__);
9215/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsCommand", function() { return PutRecordsCommand; });
9216/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9217/* 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");
9218/* 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");
9219/* 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");
9220/* 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");
9221
9222
9223
9224
9225
9226/**
9227 * <p>Writes multiple data records into a Kinesis data stream in a single call (also
9228 * referred to as a <code>PutRecords</code> request). Use this operation to send data into
9229 * the stream for data ingestion and processing. </p>
9230 * <p>Each <code>PutRecords</code> request can support up to 500 records. Each record in
9231 * the request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request,
9232 * including partition keys. Each shard can support writes up to 1,000 records per second,
9233 * up to a maximum data write total of 1 MiB per second.</p>
9234 * <p>You must specify the name of the stream that captures, stores, and transports the
9235 * data; and an array of request <code>Records</code>, with each record in the array
9236 * requiring a partition key and data blob. The record size limit applies to the total size
9237 * of the partition key and data blob.</p>
9238 * <p>The data blob can be any type of data; for example, a segment from a log file,
9239 * geographic/location data, website clickstream data, and so on.</p>
9240 * <p>The partition key is used by Kinesis Data Streams as input to a hash function that
9241 * maps the partition key and associated data to a specific shard. An MD5 hash function is
9242 * used to map partition keys to 128-bit integer values and to map associated data records
9243 * to shards. As a result of this hashing mechanism, all data records with the same
9244 * 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
9245 * Developer Guide</i>.</p>
9246 * <p>Each record in the <code>Records</code> array may include an optional parameter,
9247 * <code>ExplicitHashKey</code>, which overrides the partition key to shard mapping.
9248 * This parameter allows a data producer to determine explicitly the shard where the record
9249 * 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
9250 * Data Streams Developer Guide</i>.</p>
9251 * <p>The <code>PutRecords</code> response includes an array of response
9252 * <code>Records</code>. Each record in the response array directly correlates with a
9253 * record in the request array using natural ordering, from the top to the bottom of the
9254 * request and response. The response <code>Records</code> array always includes the same
9255 * number of records as the request array.</p>
9256 * <p>The response <code>Records</code> array includes both successfully and
9257 * unsuccessfully processed records. Kinesis Data Streams attempts to process all records
9258 * in each <code>PutRecords</code> request. A single record failure does not stop the
9259 * processing of subsequent records. As a result, PutRecords doesn't guarantee the ordering
9260 * of records. If you need to read records in the same order they are written to the
9261 * stream, use <a>PutRecord</a> instead of <code>PutRecords</code>, and write to
9262 * the same shard.</p>
9263 * <p>A successfully processed record includes <code>ShardId</code> and
9264 * <code>SequenceNumber</code> values. The <code>ShardId</code> parameter identifies
9265 * the shard in the stream where the record is stored. The <code>SequenceNumber</code>
9266 * parameter is an identifier assigned to the put record, unique to all records in the
9267 * stream.</p>
9268 * <p>An unsuccessfully processed record includes <code>ErrorCode</code> and
9269 * <code>ErrorMessage</code> values. <code>ErrorCode</code> reflects the type of error
9270 * and can be one of the following values:
9271 * <code>ProvisionedThroughputExceededException</code> or <code>InternalFailure</code>.
9272 * <code>ErrorMessage</code> provides more detailed information about the
9273 * <code>ProvisionedThroughputExceededException</code> exception including the account
9274 * ID, stream name, and shard ID of the record that was throttled. For more information
9275 * 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
9276 * Data Streams Developer Guide</i>.</p>
9277 * <important>
9278 * <p>After you write a record to a stream, you cannot modify that record or its order
9279 * within the stream.</p>
9280 * </important>
9281 * <p>By default, data records are accessible for 24 hours from the time that they are
9282 * added to a stream. You can use <a>IncreaseStreamRetentionPeriod</a> or <a>DecreaseStreamRetentionPeriod</a> to modify this retention period.</p>
9283 */
9284var PutRecordsCommand = /** @class */ (function (_super) {
9285 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordsCommand, _super);
9286 // Start section: command_properties
9287 // End section: command_properties
9288 function PutRecordsCommand(input) {
9289 var _this =
9290 // Start section: command_constructor
9291 _super.call(this) || this;
9292 _this.input = input;
9293 return _this;
9294 // End section: command_constructor
9295 }
9296 /**
9297 * @internal
9298 */
9299 PutRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9300 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9301 var stack = clientStack.concat(this.middlewareStack);
9302 var logger = configuration.logger;
9303 var clientName = "KinesisClient";
9304 var commandName = "PutRecordsCommand";
9305 var handlerExecutionContext = {
9306 logger: logger,
9307 clientName: clientName,
9308 commandName: commandName,
9309 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordsInput"].filterSensitiveLog,
9310 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordsOutput"].filterSensitiveLog,
9311 };
9312 var requestHandler = configuration.requestHandler;
9313 return stack.resolve(function (request) {
9314 return requestHandler.handle(request.request, options || {});
9315 }, handlerExecutionContext);
9316 };
9317 PutRecordsCommand.prototype.serialize = function (input, context) {
9318 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordsCommand"])(input, context);
9319 };
9320 PutRecordsCommand.prototype.deserialize = function (output, context) {
9321 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordsCommand"])(output, context);
9322 };
9323 return PutRecordsCommand;
9324}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9325
9326//# sourceMappingURL=PutRecordsCommand.js.map
9327
9328/***/ }),
9329
9330/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js":
9331/*!***************************************************************************************************************!*\
9332 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js ***!
9333 \***************************************************************************************************************/
9334/*! exports provided: RegisterStreamConsumerCommand */
9335/***/ (function(module, __webpack_exports__, __webpack_require__) {
9336
9337"use strict";
9338__webpack_require__.r(__webpack_exports__);
9339/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerCommand", function() { return RegisterStreamConsumerCommand; });
9340/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9341/* 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");
9342/* 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");
9343/* 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");
9344/* 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");
9345
9346
9347
9348
9349
9350/**
9351 * <p>Registers a consumer with a Kinesis data stream. When you use this operation, the
9352 * consumer you register can then call <a>SubscribeToShard</a> to receive data
9353 * from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every
9354 * shard you subscribe to. This rate is unaffected by the total number of consumers that
9355 * read from the same stream.</p>
9356 * <p>You can register up to 20 consumers per stream. A given consumer can only be
9357 * registered with one stream at a time.</p>
9358 * <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
9359 * Using the Kinesis Data Streams API</a>.</p>
9360 * <p>The use of this operation has a limit of five transactions per second per account.
9361 * Also, only 5 consumers can be created simultaneously. In other words, you cannot have
9362 * more than 5 consumers in a <code>CREATING</code> status at the same time. Registering a
9363 * 6th consumer while there are 5 in a <code>CREATING</code> status results in a
9364 * <code>LimitExceededException</code>.</p>
9365 */
9366var RegisterStreamConsumerCommand = /** @class */ (function (_super) {
9367 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RegisterStreamConsumerCommand, _super);
9368 // Start section: command_properties
9369 // End section: command_properties
9370 function RegisterStreamConsumerCommand(input) {
9371 var _this =
9372 // Start section: command_constructor
9373 _super.call(this) || this;
9374 _this.input = input;
9375 return _this;
9376 // End section: command_constructor
9377 }
9378 /**
9379 * @internal
9380 */
9381 RegisterStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9382 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9383 var stack = clientStack.concat(this.middlewareStack);
9384 var logger = configuration.logger;
9385 var clientName = "KinesisClient";
9386 var commandName = "RegisterStreamConsumerCommand";
9387 var handlerExecutionContext = {
9388 logger: logger,
9389 clientName: clientName,
9390 commandName: commandName,
9391 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["RegisterStreamConsumerInput"].filterSensitiveLog,
9392 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["RegisterStreamConsumerOutput"].filterSensitiveLog,
9393 };
9394 var requestHandler = configuration.requestHandler;
9395 return stack.resolve(function (request) {
9396 return requestHandler.handle(request.request, options || {});
9397 }, handlerExecutionContext);
9398 };
9399 RegisterStreamConsumerCommand.prototype.serialize = function (input, context) {
9400 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1RegisterStreamConsumerCommand"])(input, context);
9401 };
9402 RegisterStreamConsumerCommand.prototype.deserialize = function (output, context) {
9403 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1RegisterStreamConsumerCommand"])(output, context);
9404 };
9405 return RegisterStreamConsumerCommand;
9406}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9407
9408//# sourceMappingURL=RegisterStreamConsumerCommand.js.map
9409
9410/***/ }),
9411
9412/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js":
9413/*!*************************************************************************************************************!*\
9414 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js ***!
9415 \*************************************************************************************************************/
9416/*! exports provided: RemoveTagsFromStreamCommand */
9417/***/ (function(module, __webpack_exports__, __webpack_require__) {
9418
9419"use strict";
9420__webpack_require__.r(__webpack_exports__);
9421/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamCommand", function() { return RemoveTagsFromStreamCommand; });
9422/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9423/* 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");
9424/* 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");
9425/* 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");
9426/* 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");
9427
9428
9429
9430
9431
9432/**
9433 * <p>Removes tags from the specified Kinesis data stream. Removed tags are deleted and
9434 * cannot be recovered after this operation successfully completes.</p>
9435 * <p>If you specify a tag that does not exist, it is ignored.</p>
9436 * <p>
9437 * <a>RemoveTagsFromStream</a> has a limit of five transactions per second per
9438 * account.</p>
9439 */
9440var RemoveTagsFromStreamCommand = /** @class */ (function (_super) {
9441 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RemoveTagsFromStreamCommand, _super);
9442 // Start section: command_properties
9443 // End section: command_properties
9444 function RemoveTagsFromStreamCommand(input) {
9445 var _this =
9446 // Start section: command_constructor
9447 _super.call(this) || this;
9448 _this.input = input;
9449 return _this;
9450 // End section: command_constructor
9451 }
9452 /**
9453 * @internal
9454 */
9455 RemoveTagsFromStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9456 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9457 var stack = clientStack.concat(this.middlewareStack);
9458 var logger = configuration.logger;
9459 var clientName = "KinesisClient";
9460 var commandName = "RemoveTagsFromStreamCommand";
9461 var handlerExecutionContext = {
9462 logger: logger,
9463 clientName: clientName,
9464 commandName: commandName,
9465 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["RemoveTagsFromStreamInput"].filterSensitiveLog,
9466 outputFilterSensitiveLog: function (output) { return output; },
9467 };
9468 var requestHandler = configuration.requestHandler;
9469 return stack.resolve(function (request) {
9470 return requestHandler.handle(request.request, options || {});
9471 }, handlerExecutionContext);
9472 };
9473 RemoveTagsFromStreamCommand.prototype.serialize = function (input, context) {
9474 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1RemoveTagsFromStreamCommand"])(input, context);
9475 };
9476 RemoveTagsFromStreamCommand.prototype.deserialize = function (output, context) {
9477 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1RemoveTagsFromStreamCommand"])(output, context);
9478 };
9479 return RemoveTagsFromStreamCommand;
9480}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9481
9482//# sourceMappingURL=RemoveTagsFromStreamCommand.js.map
9483
9484/***/ }),
9485
9486/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js":
9487/*!***************************************************************************************************!*\
9488 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js ***!
9489 \***************************************************************************************************/
9490/*! exports provided: SplitShardCommand */
9491/***/ (function(module, __webpack_exports__, __webpack_require__) {
9492
9493"use strict";
9494__webpack_require__.r(__webpack_exports__);
9495/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplitShardCommand", function() { return SplitShardCommand; });
9496/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9497/* 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");
9498/* 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");
9499/* 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");
9500/* 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");
9501
9502
9503
9504
9505
9506/**
9507 * <p>Splits a shard into two new shards in the Kinesis data stream, to increase the
9508 * stream's capacity to ingest and transport data. <code>SplitShard</code> is called when
9509 * there is a need to increase the overall capacity of a stream because of an expected
9510 * increase in the volume of data records being ingested. </p>
9511 * <p>You can also use <code>SplitShard</code> when a shard appears to be approaching its
9512 * maximum utilization; for example, the producers sending data into the specific shard are
9513 * suddenly sending more than previously anticipated. You can also call
9514 * <code>SplitShard</code> to increase stream capacity, so that more Kinesis Data
9515 * Streams applications can simultaneously read data from the stream for real-time
9516 * processing. </p>
9517 * <p>You must specify the shard to be split and the new hash key, which is the position
9518 * in the shard where the shard gets split in two. In many cases, the new hash key might be
9519 * the average of the beginning and ending hash key, but it can be any hash key value in
9520 * 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
9521 * Shard</a> in the <i>Amazon Kinesis Data Streams Developer
9522 * Guide</i>.</p>
9523 * <p>You can use <a>DescribeStream</a> to determine the shard ID and hash key
9524 * values for the <code>ShardToSplit</code> and <code>NewStartingHashKey</code> parameters
9525 * that are specified in the <code>SplitShard</code> request.</p>
9526 * <p>
9527 * <code>SplitShard</code> is an asynchronous operation. Upon receiving a
9528 * <code>SplitShard</code> request, Kinesis Data Streams immediately returns a response
9529 * and sets the stream status to <code>UPDATING</code>. After the operation is completed,
9530 * Kinesis Data Streams sets the stream status to <code>ACTIVE</code>. Read and write
9531 * operations continue to work while the stream is in the <code>UPDATING</code> state. </p>
9532 * <p>You can use <code>DescribeStream</code> to check the status of the stream, which is
9533 * returned in <code>StreamStatus</code>. If the stream is in the <code>ACTIVE</code>
9534 * state, you can call <code>SplitShard</code>. If a stream is in <code>CREATING</code> or
9535 * <code>UPDATING</code> or <code>DELETING</code> states, <code>DescribeStream</code>
9536 * returns a <code>ResourceInUseException</code>.</p>
9537 * <p>If the specified stream does not exist, <code>DescribeStream</code> returns a
9538 * <code>ResourceNotFoundException</code>. If you try to create more shards than are
9539 * authorized for your account, you receive a <code>LimitExceededException</code>. </p>
9540 * <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
9541 * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
9542 * Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact AWS
9543 * Support</a>.</p>
9544 * <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
9545 * <code>LimitExceededException</code>. </p>
9546 * <p>
9547 * <code>SplitShard</code> has a limit of five transactions per second per
9548 * account.</p>
9549 */
9550var SplitShardCommand = /** @class */ (function (_super) {
9551 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SplitShardCommand, _super);
9552 // Start section: command_properties
9553 // End section: command_properties
9554 function SplitShardCommand(input) {
9555 var _this =
9556 // Start section: command_constructor
9557 _super.call(this) || this;
9558 _this.input = input;
9559 return _this;
9560 // End section: command_constructor
9561 }
9562 /**
9563 * @internal
9564 */
9565 SplitShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9566 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9567 var stack = clientStack.concat(this.middlewareStack);
9568 var logger = configuration.logger;
9569 var clientName = "KinesisClient";
9570 var commandName = "SplitShardCommand";
9571 var handlerExecutionContext = {
9572 logger: logger,
9573 clientName: clientName,
9574 commandName: commandName,
9575 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["SplitShardInput"].filterSensitiveLog,
9576 outputFilterSensitiveLog: function (output) { return output; },
9577 };
9578 var requestHandler = configuration.requestHandler;
9579 return stack.resolve(function (request) {
9580 return requestHandler.handle(request.request, options || {});
9581 }, handlerExecutionContext);
9582 };
9583 SplitShardCommand.prototype.serialize = function (input, context) {
9584 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SplitShardCommand"])(input, context);
9585 };
9586 SplitShardCommand.prototype.deserialize = function (output, context) {
9587 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SplitShardCommand"])(output, context);
9588 };
9589 return SplitShardCommand;
9590}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9591
9592//# sourceMappingURL=SplitShardCommand.js.map
9593
9594/***/ }),
9595
9596/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js":
9597/*!**************************************************************************************************************!*\
9598 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js ***!
9599 \**************************************************************************************************************/
9600/*! exports provided: StartStreamEncryptionCommand */
9601/***/ (function(module, __webpack_exports__, __webpack_require__) {
9602
9603"use strict";
9604__webpack_require__.r(__webpack_exports__);
9605/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionCommand", function() { return StartStreamEncryptionCommand; });
9606/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9607/* 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");
9608/* 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");
9609/* 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");
9610/* 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");
9611
9612
9613
9614
9615
9616/**
9617 * <p>Enables or updates server-side encryption using an AWS KMS key for a specified
9618 * stream. </p>
9619 * <p>Starting encryption is an asynchronous operation. Upon receiving the request,
9620 * Kinesis Data Streams returns immediately and sets the status of the stream to
9621 * <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
9622 * status of the stream back to <code>ACTIVE</code>. Updating or applying encryption
9623 * normally takes a few seconds to complete, but it can take minutes. You can continue to
9624 * read and write data to your stream while its status is <code>UPDATING</code>. Once the
9625 * status of the stream is <code>ACTIVE</code>, encryption begins for records written to
9626 * the stream. </p>
9627 * <p>API Limits: You can successfully apply a new AWS KMS key for server-side encryption
9628 * 25 times in a rolling 24-hour period.</p>
9629 * <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
9630 * status before all records written to the stream are encrypted. After you enable
9631 * encryption, you can verify that encryption is applied by inspecting the API response
9632 * from <code>PutRecord</code> or <code>PutRecords</code>.</p>
9633 */
9634var StartStreamEncryptionCommand = /** @class */ (function (_super) {
9635 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartStreamEncryptionCommand, _super);
9636 // Start section: command_properties
9637 // End section: command_properties
9638 function StartStreamEncryptionCommand(input) {
9639 var _this =
9640 // Start section: command_constructor
9641 _super.call(this) || this;
9642 _this.input = input;
9643 return _this;
9644 // End section: command_constructor
9645 }
9646 /**
9647 * @internal
9648 */
9649 StartStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9650 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9651 var stack = clientStack.concat(this.middlewareStack);
9652 var logger = configuration.logger;
9653 var clientName = "KinesisClient";
9654 var commandName = "StartStreamEncryptionCommand";
9655 var handlerExecutionContext = {
9656 logger: logger,
9657 clientName: clientName,
9658 commandName: commandName,
9659 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StartStreamEncryptionInput"].filterSensitiveLog,
9660 outputFilterSensitiveLog: function (output) { return output; },
9661 };
9662 var requestHandler = configuration.requestHandler;
9663 return stack.resolve(function (request) {
9664 return requestHandler.handle(request.request, options || {});
9665 }, handlerExecutionContext);
9666 };
9667 StartStreamEncryptionCommand.prototype.serialize = function (input, context) {
9668 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartStreamEncryptionCommand"])(input, context);
9669 };
9670 StartStreamEncryptionCommand.prototype.deserialize = function (output, context) {
9671 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartStreamEncryptionCommand"])(output, context);
9672 };
9673 return StartStreamEncryptionCommand;
9674}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9675
9676//# sourceMappingURL=StartStreamEncryptionCommand.js.map
9677
9678/***/ }),
9679
9680/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js":
9681/*!*************************************************************************************************************!*\
9682 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js ***!
9683 \*************************************************************************************************************/
9684/*! exports provided: StopStreamEncryptionCommand */
9685/***/ (function(module, __webpack_exports__, __webpack_require__) {
9686
9687"use strict";
9688__webpack_require__.r(__webpack_exports__);
9689/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionCommand", function() { return StopStreamEncryptionCommand; });
9690/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9691/* 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");
9692/* 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");
9693/* 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");
9694/* 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");
9695
9696
9697
9698
9699
9700/**
9701 * <p>Disables server-side encryption for a specified stream. </p>
9702 * <p>Stopping encryption is an asynchronous operation. Upon receiving the request,
9703 * Kinesis Data Streams returns immediately and sets the status of the stream to
9704 * <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
9705 * status of the stream back to <code>ACTIVE</code>. Stopping encryption normally takes a
9706 * few seconds to complete, but it can take minutes. You can continue to read and write
9707 * data to your stream while its status is <code>UPDATING</code>. Once the status of the
9708 * stream is <code>ACTIVE</code>, records written to the stream are no longer encrypted by
9709 * Kinesis Data Streams. </p>
9710 * <p>API Limits: You can successfully disable server-side encryption 25 times in a
9711 * rolling 24-hour period. </p>
9712 * <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
9713 * status before all records written to the stream are no longer subject to encryption.
9714 * After you disabled encryption, you can verify that encryption is not applied by
9715 * inspecting the API response from <code>PutRecord</code> or
9716 * <code>PutRecords</code>.</p>
9717 */
9718var StopStreamEncryptionCommand = /** @class */ (function (_super) {
9719 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopStreamEncryptionCommand, _super);
9720 // Start section: command_properties
9721 // End section: command_properties
9722 function StopStreamEncryptionCommand(input) {
9723 var _this =
9724 // Start section: command_constructor
9725 _super.call(this) || this;
9726 _this.input = input;
9727 return _this;
9728 // End section: command_constructor
9729 }
9730 /**
9731 * @internal
9732 */
9733 StopStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9734 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9735 var stack = clientStack.concat(this.middlewareStack);
9736 var logger = configuration.logger;
9737 var clientName = "KinesisClient";
9738 var commandName = "StopStreamEncryptionCommand";
9739 var handlerExecutionContext = {
9740 logger: logger,
9741 clientName: clientName,
9742 commandName: commandName,
9743 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StopStreamEncryptionInput"].filterSensitiveLog,
9744 outputFilterSensitiveLog: function (output) { return output; },
9745 };
9746 var requestHandler = configuration.requestHandler;
9747 return stack.resolve(function (request) {
9748 return requestHandler.handle(request.request, options || {});
9749 }, handlerExecutionContext);
9750 };
9751 StopStreamEncryptionCommand.prototype.serialize = function (input, context) {
9752 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopStreamEncryptionCommand"])(input, context);
9753 };
9754 StopStreamEncryptionCommand.prototype.deserialize = function (output, context) {
9755 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopStreamEncryptionCommand"])(output, context);
9756 };
9757 return StopStreamEncryptionCommand;
9758}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9759
9760//# sourceMappingURL=StopStreamEncryptionCommand.js.map
9761
9762/***/ }),
9763
9764/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js":
9765/*!*********************************************************************************************************!*\
9766 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js ***!
9767 \*********************************************************************************************************/
9768/*! exports provided: SubscribeToShardCommand */
9769/***/ (function(module, __webpack_exports__, __webpack_require__) {
9770
9771"use strict";
9772__webpack_require__.r(__webpack_exports__);
9773/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardCommand", function() { return SubscribeToShardCommand; });
9774/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9775/* 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");
9776/* 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");
9777/* 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");
9778/* 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");
9779
9780
9781
9782
9783
9784/**
9785 * <p>This operation establishes an HTTP/2 connection between the consumer you specify in
9786 * the <code>ConsumerARN</code> parameter and the shard you specify in the
9787 * <code>ShardId</code> parameter. After the connection is successfully established,
9788 * Kinesis Data Streams pushes records from the shard to the consumer over this connection.
9789 * Before you call this operation, call <a>RegisterStreamConsumer</a> to
9790 * register the consumer with Kinesis Data Streams.</p>
9791 * <p>When the <code>SubscribeToShard</code> call succeeds, your consumer starts receiving
9792 * events of type <a>SubscribeToShardEvent</a> over the HTTP/2 connection for up
9793 * to 5 minutes, after which time you need to call <code>SubscribeToShard</code> again to
9794 * renew the subscription if you want to continue to receive records.</p>
9795 * <p>You can make one call to <code>SubscribeToShard</code> per second per registered
9796 * consumer per shard. For example, if you have a 4000 shard stream and two registered
9797 * stream consumers, you can make one <code>SubscribeToShard</code> request per second for
9798 * each combination of shard and registered consumer, allowing you to subscribe both
9799 * consumers to all 4000 shards in one second. </p>
9800 * <p>If you call <code>SubscribeToShard</code> again with the same <code>ConsumerARN</code>
9801 * and <code>ShardId</code> within 5 seconds of a successful call, you'll get a
9802 * <code>ResourceInUseException</code>. If you call <code>SubscribeToShard</code> 5
9803 * seconds or more after a successful call, the first connection will expire and the second
9804 * call will take over the subscription.</p>
9805 * <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
9806 * Using the Kinesis Data Streams API</a>.</p>
9807 */
9808var SubscribeToShardCommand = /** @class */ (function (_super) {
9809 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SubscribeToShardCommand, _super);
9810 // Start section: command_properties
9811 // End section: command_properties
9812 function SubscribeToShardCommand(input) {
9813 var _this =
9814 // Start section: command_constructor
9815 _super.call(this) || this;
9816 _this.input = input;
9817 return _this;
9818 // End section: command_constructor
9819 }
9820 /**
9821 * @internal
9822 */
9823 SubscribeToShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9824 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9825 var stack = clientStack.concat(this.middlewareStack);
9826 var logger = configuration.logger;
9827 var clientName = "KinesisClient";
9828 var commandName = "SubscribeToShardCommand";
9829 var handlerExecutionContext = {
9830 logger: logger,
9831 clientName: clientName,
9832 commandName: commandName,
9833 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["SubscribeToShardInput"].filterSensitiveLog,
9834 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["SubscribeToShardOutput"].filterSensitiveLog,
9835 };
9836 var requestHandler = configuration.requestHandler;
9837 return stack.resolve(function (request) {
9838 return requestHandler.handle(request.request, options || {});
9839 }, handlerExecutionContext);
9840 };
9841 SubscribeToShardCommand.prototype.serialize = function (input, context) {
9842 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SubscribeToShardCommand"])(input, context);
9843 };
9844 SubscribeToShardCommand.prototype.deserialize = function (output, context) {
9845 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SubscribeToShardCommand"])(output, context);
9846 };
9847 return SubscribeToShardCommand;
9848}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9849
9850//# sourceMappingURL=SubscribeToShardCommand.js.map
9851
9852/***/ }),
9853
9854/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js":
9855/*!*********************************************************************************************************!*\
9856 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js ***!
9857 \*********************************************************************************************************/
9858/*! exports provided: UpdateShardCountCommand */
9859/***/ (function(module, __webpack_exports__, __webpack_require__) {
9860
9861"use strict";
9862__webpack_require__.r(__webpack_exports__);
9863/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountCommand", function() { return UpdateShardCountCommand; });
9864/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9865/* 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");
9866/* 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");
9867/* 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");
9868/* 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");
9869
9870
9871
9872
9873
9874/**
9875 * <p>Updates the shard count of the specified stream to the specified number of
9876 * shards.</p>
9877 * <p>Updating the shard count is an asynchronous operation. Upon receiving the request,
9878 * Kinesis Data Streams returns immediately and sets the status of the stream to
9879 * <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
9880 * status of the stream back to <code>ACTIVE</code>. Depending on the size of the stream,
9881 * the scaling action could take a few minutes to complete. You can continue to read and
9882 * write data to your stream while its status is <code>UPDATING</code>.</p>
9883 * <p>To update the shard count, Kinesis Data Streams performs splits or merges on
9884 * individual shards. This can cause short-lived shards to be created, in addition to the
9885 * final shards. These short-lived shards count towards your total shard limit for your
9886 * account in the Region.</p>
9887 * <p>When using this operation, we recommend that you specify a target shard count that
9888 * is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your
9889 * shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling
9890 * action might take longer to complete. </p>
9891 * <p>This operation has the following default limits. By default, you cannot do the
9892 * following:</p>
9893 * <ul>
9894 * <li>
9895 * <p>Scale more than ten times per rolling 24-hour period per stream</p>
9896 * </li>
9897 * <li>
9898 * <p>Scale up to more than double your current shard count for a
9899 * stream</p>
9900 * </li>
9901 * <li>
9902 * <p>Scale down below half your current shard count for a stream</p>
9903 * </li>
9904 * <li>
9905 * <p>Scale up to more than 500 shards in a stream</p>
9906 * </li>
9907 * <li>
9908 * <p>Scale a stream with more than 500 shards down unless the result is less
9909 * than 500 shards</p>
9910 * </li>
9911 * <li>
9912 * <p>Scale up to more than the shard limit for your account</p>
9913 * </li>
9914 * </ul>
9915 * <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
9916 * <i>Amazon Kinesis Data Streams Developer Guide</i>. To request an
9917 * increase in the call rate limit, the shard limit for this API, or your overall shard
9918 * 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>
9919 */
9920var UpdateShardCountCommand = /** @class */ (function (_super) {
9921 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateShardCountCommand, _super);
9922 // Start section: command_properties
9923 // End section: command_properties
9924 function UpdateShardCountCommand(input) {
9925 var _this =
9926 // Start section: command_constructor
9927 _super.call(this) || this;
9928 _this.input = input;
9929 return _this;
9930 // End section: command_constructor
9931 }
9932 /**
9933 * @internal
9934 */
9935 UpdateShardCountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9936 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9937 var stack = clientStack.concat(this.middlewareStack);
9938 var logger = configuration.logger;
9939 var clientName = "KinesisClient";
9940 var commandName = "UpdateShardCountCommand";
9941 var handlerExecutionContext = {
9942 logger: logger,
9943 clientName: clientName,
9944 commandName: commandName,
9945 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateShardCountInput"].filterSensitiveLog,
9946 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateShardCountOutput"].filterSensitiveLog,
9947 };
9948 var requestHandler = configuration.requestHandler;
9949 return stack.resolve(function (request) {
9950 return requestHandler.handle(request.request, options || {});
9951 }, handlerExecutionContext);
9952 };
9953 UpdateShardCountCommand.prototype.serialize = function (input, context) {
9954 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UpdateShardCountCommand"])(input, context);
9955 };
9956 UpdateShardCountCommand.prototype.deserialize = function (output, context) {
9957 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UpdateShardCountCommand"])(output, context);
9958 };
9959 return UpdateShardCountCommand;
9960}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9961
9962//# sourceMappingURL=UpdateShardCountCommand.js.map
9963
9964/***/ }),
9965
9966/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/endpoints.js":
9967/*!**********************************************************************************!*\
9968 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/endpoints.js ***!
9969 \**********************************************************************************/
9970/*! exports provided: defaultRegionInfoProvider */
9971/***/ (function(module, __webpack_exports__, __webpack_require__) {
9972
9973"use strict";
9974__webpack_require__.r(__webpack_exports__);
9975/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
9976/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9977
9978// Partition default templates
9979var AWS_TEMPLATE = "kinesis.{region}.amazonaws.com";
9980var AWS_CN_TEMPLATE = "kinesis.{region}.amazonaws.com.cn";
9981var AWS_ISO_TEMPLATE = "kinesis.{region}.c2s.ic.gov";
9982var AWS_ISO_B_TEMPLATE = "kinesis.{region}.sc2s.sgov.gov";
9983var AWS_US_GOV_TEMPLATE = "kinesis.{region}.amazonaws.com";
9984// Partition regions
9985var AWS_REGIONS = new Set([
9986 "af-south-1",
9987 "ap-east-1",
9988 "ap-northeast-1",
9989 "ap-northeast-2",
9990 "ap-south-1",
9991 "ap-southeast-1",
9992 "ap-southeast-2",
9993 "ca-central-1",
9994 "eu-central-1",
9995 "eu-north-1",
9996 "eu-south-1",
9997 "eu-west-1",
9998 "eu-west-2",
9999 "eu-west-3",
10000 "me-south-1",
10001 "sa-east-1",
10002 "us-east-1",
10003 "us-east-2",
10004 "us-west-1",
10005 "us-west-2",
10006]);
10007var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
10008var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
10009var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
10010var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
10011var defaultRegionInfoProvider = function (region, options) {
10012 var regionInfo = undefined;
10013 switch (region) {
10014 // First, try to match exact region names.
10015 case "af-south-1":
10016 regionInfo = {
10017 hostname: "kinesis.af-south-1.amazonaws.com",
10018 partition: "aws",
10019 };
10020 break;
10021 case "ap-east-1":
10022 regionInfo = {
10023 hostname: "kinesis.ap-east-1.amazonaws.com",
10024 partition: "aws",
10025 };
10026 break;
10027 case "ap-northeast-1":
10028 regionInfo = {
10029 hostname: "kinesis.ap-northeast-1.amazonaws.com",
10030 partition: "aws",
10031 };
10032 break;
10033 case "ap-northeast-2":
10034 regionInfo = {
10035 hostname: "kinesis.ap-northeast-2.amazonaws.com",
10036 partition: "aws",
10037 };
10038 break;
10039 case "ap-south-1":
10040 regionInfo = {
10041 hostname: "kinesis.ap-south-1.amazonaws.com",
10042 partition: "aws",
10043 };
10044 break;
10045 case "ap-southeast-1":
10046 regionInfo = {
10047 hostname: "kinesis.ap-southeast-1.amazonaws.com",
10048 partition: "aws",
10049 };
10050 break;
10051 case "ap-southeast-2":
10052 regionInfo = {
10053 hostname: "kinesis.ap-southeast-2.amazonaws.com",
10054 partition: "aws",
10055 };
10056 break;
10057 case "ca-central-1":
10058 regionInfo = {
10059 hostname: "kinesis.ca-central-1.amazonaws.com",
10060 partition: "aws",
10061 };
10062 break;
10063 case "cn-north-1":
10064 regionInfo = {
10065 hostname: "kinesis.cn-north-1.amazonaws.com.cn",
10066 partition: "aws-cn",
10067 };
10068 break;
10069 case "cn-northwest-1":
10070 regionInfo = {
10071 hostname: "kinesis.cn-northwest-1.amazonaws.com.cn",
10072 partition: "aws-cn",
10073 };
10074 break;
10075 case "eu-central-1":
10076 regionInfo = {
10077 hostname: "kinesis.eu-central-1.amazonaws.com",
10078 partition: "aws",
10079 };
10080 break;
10081 case "eu-north-1":
10082 regionInfo = {
10083 hostname: "kinesis.eu-north-1.amazonaws.com",
10084 partition: "aws",
10085 };
10086 break;
10087 case "eu-south-1":
10088 regionInfo = {
10089 hostname: "kinesis.eu-south-1.amazonaws.com",
10090 partition: "aws",
10091 };
10092 break;
10093 case "eu-west-1":
10094 regionInfo = {
10095 hostname: "kinesis.eu-west-1.amazonaws.com",
10096 partition: "aws",
10097 };
10098 break;
10099 case "eu-west-2":
10100 regionInfo = {
10101 hostname: "kinesis.eu-west-2.amazonaws.com",
10102 partition: "aws",
10103 };
10104 break;
10105 case "eu-west-3":
10106 regionInfo = {
10107 hostname: "kinesis.eu-west-3.amazonaws.com",
10108 partition: "aws",
10109 };
10110 break;
10111 case "fips-us-east-1":
10112 regionInfo = {
10113 hostname: "kinesis-fips.us-east-1.amazonaws.com",
10114 partition: "aws",
10115 signingRegion: "us-east-1",
10116 };
10117 break;
10118 case "fips-us-east-2":
10119 regionInfo = {
10120 hostname: "kinesis-fips.us-east-2.amazonaws.com",
10121 partition: "aws",
10122 signingRegion: "us-east-2",
10123 };
10124 break;
10125 case "fips-us-west-1":
10126 regionInfo = {
10127 hostname: "kinesis-fips.us-west-1.amazonaws.com",
10128 partition: "aws",
10129 signingRegion: "us-west-1",
10130 };
10131 break;
10132 case "fips-us-west-2":
10133 regionInfo = {
10134 hostname: "kinesis-fips.us-west-2.amazonaws.com",
10135 partition: "aws",
10136 signingRegion: "us-west-2",
10137 };
10138 break;
10139 case "me-south-1":
10140 regionInfo = {
10141 hostname: "kinesis.me-south-1.amazonaws.com",
10142 partition: "aws",
10143 };
10144 break;
10145 case "sa-east-1":
10146 regionInfo = {
10147 hostname: "kinesis.sa-east-1.amazonaws.com",
10148 partition: "aws",
10149 };
10150 break;
10151 case "us-east-1":
10152 regionInfo = {
10153 hostname: "kinesis.us-east-1.amazonaws.com",
10154 partition: "aws",
10155 };
10156 break;
10157 case "us-east-2":
10158 regionInfo = {
10159 hostname: "kinesis.us-east-2.amazonaws.com",
10160 partition: "aws",
10161 };
10162 break;
10163 case "us-gov-east-1":
10164 regionInfo = {
10165 hostname: "kinesis.us-gov-east-1.amazonaws.com",
10166 partition: "aws-us-gov",
10167 signingRegion: "us-gov-east-1",
10168 };
10169 break;
10170 case "us-gov-west-1":
10171 regionInfo = {
10172 hostname: "kinesis.us-gov-west-1.amazonaws.com",
10173 partition: "aws-us-gov",
10174 signingRegion: "us-gov-west-1",
10175 };
10176 break;
10177 case "us-iso-east-1":
10178 regionInfo = {
10179 hostname: "kinesis.us-iso-east-1.c2s.ic.gov",
10180 partition: "aws-iso",
10181 };
10182 break;
10183 case "us-isob-east-1":
10184 regionInfo = {
10185 hostname: "kinesis.us-isob-east-1.sc2s.sgov.gov",
10186 partition: "aws-iso-b",
10187 };
10188 break;
10189 case "us-west-1":
10190 regionInfo = {
10191 hostname: "kinesis.us-west-1.amazonaws.com",
10192 partition: "aws",
10193 };
10194 break;
10195 case "us-west-2":
10196 regionInfo = {
10197 hostname: "kinesis.us-west-2.amazonaws.com",
10198 partition: "aws",
10199 };
10200 break;
10201 // Next, try to match partition endpoints.
10202 default:
10203 if (AWS_REGIONS.has(region)) {
10204 regionInfo = {
10205 hostname: AWS_TEMPLATE.replace("{region}", region),
10206 partition: "aws",
10207 };
10208 }
10209 if (AWS_CN_REGIONS.has(region)) {
10210 regionInfo = {
10211 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
10212 partition: "aws-cn",
10213 };
10214 }
10215 if (AWS_ISO_REGIONS.has(region)) {
10216 regionInfo = {
10217 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
10218 partition: "aws-iso",
10219 };
10220 }
10221 if (AWS_ISO_B_REGIONS.has(region)) {
10222 regionInfo = {
10223 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
10224 partition: "aws-iso-b",
10225 };
10226 }
10227 if (AWS_US_GOV_REGIONS.has(region)) {
10228 regionInfo = {
10229 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
10230 partition: "aws-us-gov",
10231 };
10232 }
10233 // Finally, assume it's an AWS partition endpoint.
10234 if (regionInfo === undefined) {
10235 regionInfo = {
10236 hostname: AWS_TEMPLATE.replace("{region}", region),
10237 partition: "aws",
10238 };
10239 }
10240 }
10241 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "kinesis" }, regionInfo));
10242};
10243//# sourceMappingURL=endpoints.js.map
10244
10245/***/ }),
10246
10247/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/index.js":
10248/*!******************************************************************************!*\
10249 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/index.js ***!
10250 \******************************************************************************/
10251/*! 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 */
10252/***/ (function(module, __webpack_exports__, __webpack_require__) {
10253
10254"use strict";
10255__webpack_require__.r(__webpack_exports__);
10256/* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KinesisClient */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js");
10257/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisClient", function() { return _KinesisClient__WEBPACK_IMPORTED_MODULE_0__["KinesisClient"]; });
10258
10259/* harmony import */ var _Kinesis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Kinesis */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js");
10260/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Kinesis", function() { return _Kinesis__WEBPACK_IMPORTED_MODULE_1__["Kinesis"]; });
10261
10262/* harmony import */ var _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AddTagsToStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js");
10263/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamCommand", function() { return _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__["AddTagsToStreamCommand"]; });
10264
10265/* harmony import */ var _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js");
10266/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamCommand", function() { return _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__["CreateStreamCommand"]; });
10267
10268/* harmony import */ var _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DecreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js");
10269/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodCommand", function() { return _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__["DecreaseStreamRetentionPeriodCommand"]; });
10270
10271/* harmony import */ var _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DeleteStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js");
10272/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamCommand", function() { return _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__["DeleteStreamCommand"]; });
10273
10274/* harmony import */ var _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DeregisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js");
10275/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerCommand", function() { return _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__["DeregisterStreamConsumerCommand"]; });
10276
10277/* harmony import */ var _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DescribeLimitsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js");
10278/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsCommand", function() { return _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__["DescribeLimitsCommand"]; });
10279
10280/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
10281/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamCommand", function() { return _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__["DescribeStreamCommand"]; });
10282
10283/* harmony import */ var _waiters_waitForStreamExists__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./waiters/waitForStreamExists */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamExists.js");
10284/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "waitForStreamExists", function() { return _waiters_waitForStreamExists__WEBPACK_IMPORTED_MODULE_9__["waitForStreamExists"]; });
10285
10286/* harmony import */ var _waiters_waitForStreamNotExists__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./waiters/waitForStreamNotExists */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamNotExists.js");
10287/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "waitForStreamNotExists", function() { return _waiters_waitForStreamNotExists__WEBPACK_IMPORTED_MODULE_10__["waitForStreamNotExists"]; });
10288
10289/* harmony import */ var _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DescribeStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js");
10290/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerCommand", function() { return _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_11__["DescribeStreamConsumerCommand"]; });
10291
10292/* harmony import */ var _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/DescribeStreamSummaryCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js");
10293/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryCommand", function() { return _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_12__["DescribeStreamSummaryCommand"]; });
10294
10295/* harmony import */ var _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DisableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js");
10296/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringCommand", function() { return _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_13__["DisableEnhancedMonitoringCommand"]; });
10297
10298/* harmony import */ var _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/EnableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js");
10299/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringCommand", function() { return _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_14__["EnableEnhancedMonitoringCommand"]; });
10300
10301/* harmony import */ var _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/GetRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js");
10302/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsCommand", function() { return _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_15__["GetRecordsCommand"]; });
10303
10304/* harmony import */ var _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/GetShardIteratorCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js");
10305/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorCommand", function() { return _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_16__["GetShardIteratorCommand"]; });
10306
10307/* harmony import */ var _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/IncreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js");
10308/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodCommand", function() { return _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_17__["IncreaseStreamRetentionPeriodCommand"]; });
10309
10310/* harmony import */ var _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/ListShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js");
10311/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsCommand", function() { return _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_18__["ListShardsCommand"]; });
10312
10313/* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/ListStreamConsumersCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js");
10314/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersCommand", function() { return _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_19__["ListStreamConsumersCommand"]; });
10315
10316/* harmony import */ var _pagination_ListStreamConsumersPaginator__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./pagination/ListStreamConsumersPaginator */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/ListStreamConsumersPaginator.js");
10317/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "paginateListStreamConsumers", function() { return _pagination_ListStreamConsumersPaginator__WEBPACK_IMPORTED_MODULE_20__["paginateListStreamConsumers"]; });
10318
10319/* harmony import */ var _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/ListStreamsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js");
10320/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsCommand", function() { return _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_21__["ListStreamsCommand"]; });
10321
10322/* harmony import */ var _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/ListTagsForStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js");
10323/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamCommand", function() { return _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_22__["ListTagsForStreamCommand"]; });
10324
10325/* harmony import */ var _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/MergeShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js");
10326/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsCommand", function() { return _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_23__["MergeShardsCommand"]; });
10327
10328/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js");
10329/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_24__["PutRecordCommand"]; });
10330
10331/* harmony import */ var _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/PutRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js");
10332/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsCommand", function() { return _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_25__["PutRecordsCommand"]; });
10333
10334/* harmony import */ var _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/RegisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js");
10335/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerCommand", function() { return _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_26__["RegisterStreamConsumerCommand"]; });
10336
10337/* harmony import */ var _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/RemoveTagsFromStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js");
10338/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamCommand", function() { return _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_27__["RemoveTagsFromStreamCommand"]; });
10339
10340/* harmony import */ var _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/SplitShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js");
10341/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardCommand", function() { return _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_28__["SplitShardCommand"]; });
10342
10343/* harmony import */ var _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/StartStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js");
10344/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionCommand", function() { return _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_29__["StartStreamEncryptionCommand"]; });
10345
10346/* harmony import */ var _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/StopStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js");
10347/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionCommand", function() { return _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_30__["StopStreamEncryptionCommand"]; });
10348
10349/* harmony import */ var _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/SubscribeToShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js");
10350/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardCommand", function() { return _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_31__["SubscribeToShardCommand"]; });
10351
10352/* harmony import */ var _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/UpdateShardCountCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js");
10353/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountCommand", function() { return _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_32__["UpdateShardCountCommand"]; });
10354
10355/* harmony import */ var _pagination_Interfaces__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pagination/Interfaces */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/Interfaces.js");
10356/* 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");
10357/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["AddTagsToStreamInput"]; });
10358
10359/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["InvalidArgumentException"]; });
10360
10361/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["LimitExceededException"]; });
10362
10363/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ResourceInUseException"]; });
10364
10365/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ResourceNotFoundException"]; });
10366
10367/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["HashKeyRange"]; });
10368
10369/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChildShard", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ChildShard"]; });
10370
10371/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ConsumerStatus"]; });
10372
10373/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["Consumer"]; });
10374
10375/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ConsumerDescription"]; });
10376
10377/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["CreateStreamInput"]; });
10378
10379/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DecreaseStreamRetentionPeriodInput"]; });
10380
10381/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DeleteStreamInput"]; });
10382
10383/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DeregisterStreamConsumerInput"]; });
10384
10385/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeLimitsInput"]; });
10386
10387/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeLimitsOutput"]; });
10388
10389/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamInput"]; });
10390
10391/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EncryptionType"]; });
10392
10393/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["MetricsName"]; });
10394
10395/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EnhancedMetrics"]; });
10396
10397/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SequenceNumberRange"]; });
10398
10399/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["Shard"]; });
10400
10401/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StreamStatus"]; });
10402
10403/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StreamDescription"]; });
10404
10405/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamOutput"]; });
10406
10407/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamConsumerInput"]; });
10408
10409/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamConsumerOutput"]; });
10410
10411/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamSummaryInput"]; });
10412
10413/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StreamDescriptionSummary"]; });
10414
10415/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamSummaryOutput"]; });
10416
10417/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DisableEnhancedMonitoringInput"]; });
10418
10419/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EnhancedMonitoringOutput"]; });
10420
10421/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EnableEnhancedMonitoringInput"]; });
10422
10423/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ExpiredIteratorException"]; });
10424
10425/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ExpiredNextTokenException"]; });
10426
10427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetRecordsInput"]; });
10428
10429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["_Record"]; });
10430
10431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetRecordsOutput"]; });
10432
10433/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSAccessDeniedException"]; });
10434
10435/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSDisabledException"]; });
10436
10437/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSInvalidStateException"]; });
10438
10439/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSNotFoundException"]; });
10440
10441/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSOptInRequired"]; });
10442
10443/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSThrottlingException"]; });
10444
10445/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ProvisionedThroughputExceededException"]; });
10446
10447/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ShardIteratorType"]; });
10448
10449/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetShardIteratorInput"]; });
10450
10451/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetShardIteratorOutput"]; });
10452
10453/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["IncreaseStreamRetentionPeriodInput"]; });
10454
10455/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["InternalFailureException"]; });
10456
10457/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilterType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ShardFilterType"]; });
10458
10459/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ShardFilter"]; });
10460
10461/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListShardsInput"]; });
10462
10463/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListShardsOutput"]; });
10464
10465/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamConsumersInput"]; });
10466
10467/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamConsumersOutput"]; });
10468
10469/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamsInput"]; });
10470
10471/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamsOutput"]; });
10472
10473/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListTagsForStreamInput"]; });
10474
10475/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["Tag"]; });
10476
10477/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListTagsForStreamOutput"]; });
10478
10479/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["MergeShardsInput"]; });
10480
10481/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordInput"]; });
10482
10483/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordOutput"]; });
10484
10485/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsRequestEntry"]; });
10486
10487/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsInput"]; });
10488
10489/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsResultEntry"]; });
10490
10491/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsOutput"]; });
10492
10493/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["RegisterStreamConsumerInput"]; });
10494
10495/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["RegisterStreamConsumerOutput"]; });
10496
10497/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["RemoveTagsFromStreamInput"]; });
10498
10499/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SplitShardInput"]; });
10500
10501/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StartStreamEncryptionInput"]; });
10502
10503/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StopStreamEncryptionInput"]; });
10504
10505/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StartingPosition"]; });
10506
10507/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardInput"]; });
10508
10509/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardEvent"]; });
10510
10511/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardEventStream"]; });
10512
10513/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardOutput"]; });
10514
10515/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ScalingType"]; });
10516
10517/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["UpdateShardCountInput"]; });
10518
10519/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["UpdateShardCountOutput"]; });
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556//# sourceMappingURL=index.js.map
10557
10558/***/ }),
10559
10560/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/index.js":
10561/*!*************************************************************************************!*\
10562 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/models/index.js ***!
10563 \*************************************************************************************/
10564/*! 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 */
10565/***/ (function(module, __webpack_exports__, __webpack_require__) {
10566
10567"use strict";
10568__webpack_require__.r(__webpack_exports__);
10569/* 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");
10570/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AddTagsToStreamInput"]; });
10571
10572/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidArgumentException"]; });
10573
10574/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["LimitExceededException"]; });
10575
10576/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceInUseException"]; });
10577
10578/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceNotFoundException"]; });
10579
10580/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HashKeyRange"]; });
10581
10582/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChildShard", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChildShard"]; });
10583
10584/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConsumerStatus"]; });
10585
10586/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Consumer"]; });
10587
10588/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConsumerDescription"]; });
10589
10590/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateStreamInput"]; });
10591
10592/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DecreaseStreamRetentionPeriodInput"]; });
10593
10594/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteStreamInput"]; });
10595
10596/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeregisterStreamConsumerInput"]; });
10597
10598/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeLimitsInput"]; });
10599
10600/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeLimitsOutput"]; });
10601
10602/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamInput"]; });
10603
10604/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EncryptionType"]; });
10605
10606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MetricsName"]; });
10607
10608/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EnhancedMetrics"]; });
10609
10610/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SequenceNumberRange"]; });
10611
10612/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Shard"]; });
10613
10614/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StreamStatus"]; });
10615
10616/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StreamDescription"]; });
10617
10618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamOutput"]; });
10619
10620/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamConsumerInput"]; });
10621
10622/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamConsumerOutput"]; });
10623
10624/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamSummaryInput"]; });
10625
10626/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StreamDescriptionSummary"]; });
10627
10628/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamSummaryOutput"]; });
10629
10630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DisableEnhancedMonitoringInput"]; });
10631
10632/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EnhancedMonitoringOutput"]; });
10633
10634/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EnableEnhancedMonitoringInput"]; });
10635
10636/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExpiredIteratorException"]; });
10637
10638/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExpiredNextTokenException"]; });
10639
10640/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetRecordsInput"]; });
10641
10642/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["_Record"]; });
10643
10644/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetRecordsOutput"]; });
10645
10646/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSAccessDeniedException"]; });
10647
10648/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSDisabledException"]; });
10649
10650/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSInvalidStateException"]; });
10651
10652/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSNotFoundException"]; });
10653
10654/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSOptInRequired"]; });
10655
10656/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSThrottlingException"]; });
10657
10658/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProvisionedThroughputExceededException"]; });
10659
10660/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ShardIteratorType"]; });
10661
10662/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetShardIteratorInput"]; });
10663
10664/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetShardIteratorOutput"]; });
10665
10666/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["IncreaseStreamRetentionPeriodInput"]; });
10667
10668/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InternalFailureException"]; });
10669
10670/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilterType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ShardFilterType"]; });
10671
10672/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ShardFilter"]; });
10673
10674/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListShardsInput"]; });
10675
10676/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListShardsOutput"]; });
10677
10678/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamConsumersInput"]; });
10679
10680/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamConsumersOutput"]; });
10681
10682/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamsInput"]; });
10683
10684/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamsOutput"]; });
10685
10686/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForStreamInput"]; });
10687
10688/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Tag"]; });
10689
10690/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForStreamOutput"]; });
10691
10692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MergeShardsInput"]; });
10693
10694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordInput"]; });
10695
10696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordOutput"]; });
10697
10698/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsRequestEntry"]; });
10699
10700/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsInput"]; });
10701
10702/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsResultEntry"]; });
10703
10704/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsOutput"]; });
10705
10706/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RegisterStreamConsumerInput"]; });
10707
10708/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RegisterStreamConsumerOutput"]; });
10709
10710/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RemoveTagsFromStreamInput"]; });
10711
10712/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplitShardInput"]; });
10713
10714/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartStreamEncryptionInput"]; });
10715
10716/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StopStreamEncryptionInput"]; });
10717
10718/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartingPosition"]; });
10719
10720/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardInput"]; });
10721
10722/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardEvent"]; });
10723
10724/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardEventStream"]; });
10725
10726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardOutput"]; });
10727
10728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ScalingType"]; });
10729
10730/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateShardCountInput"]; });
10731
10732/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateShardCountOutput"]; });
10733
10734
10735//# sourceMappingURL=index.js.map
10736
10737/***/ }),
10738
10739/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js":
10740/*!****************************************************************************************!*\
10741 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js ***!
10742 \****************************************************************************************/
10743/*! 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 */
10744/***/ (function(module, __webpack_exports__, __webpack_require__) {
10745
10746"use strict";
10747__webpack_require__.r(__webpack_exports__);
10748/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return AddTagsToStreamInput; });
10749/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return InvalidArgumentException; });
10750/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return LimitExceededException; });
10751/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return ResourceInUseException; });
10752/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; });
10753/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return HashKeyRange; });
10754/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChildShard", function() { return ChildShard; });
10755/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return ConsumerStatus; });
10756/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return Consumer; });
10757/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return ConsumerDescription; });
10758/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return CreateStreamInput; });
10759/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return DecreaseStreamRetentionPeriodInput; });
10760/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return DeleteStreamInput; });
10761/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return DeregisterStreamConsumerInput; });
10762/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return DescribeLimitsInput; });
10763/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return DescribeLimitsOutput; });
10764/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return DescribeStreamInput; });
10765/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return EncryptionType; });
10766/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return MetricsName; });
10767/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return EnhancedMetrics; });
10768/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return SequenceNumberRange; });
10769/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return Shard; });
10770/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return StreamStatus; });
10771/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return StreamDescription; });
10772/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return DescribeStreamOutput; });
10773/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return DescribeStreamConsumerInput; });
10774/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return DescribeStreamConsumerOutput; });
10775/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return DescribeStreamSummaryInput; });
10776/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return StreamDescriptionSummary; });
10777/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return DescribeStreamSummaryOutput; });
10778/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return DisableEnhancedMonitoringInput; });
10779/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return EnhancedMonitoringOutput; });
10780/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return EnableEnhancedMonitoringInput; });
10781/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return ExpiredIteratorException; });
10782/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return ExpiredNextTokenException; });
10783/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return GetRecordsInput; });
10784/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _Record; });
10785/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return GetRecordsOutput; });
10786/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return KMSAccessDeniedException; });
10787/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return KMSDisabledException; });
10788/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return KMSInvalidStateException; });
10789/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return KMSNotFoundException; });
10790/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return KMSOptInRequired; });
10791/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return KMSThrottlingException; });
10792/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return ProvisionedThroughputExceededException; });
10793/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return ShardIteratorType; });
10794/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return GetShardIteratorInput; });
10795/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return GetShardIteratorOutput; });
10796/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return IncreaseStreamRetentionPeriodInput; });
10797/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return InternalFailureException; });
10798/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShardFilterType", function() { return ShardFilterType; });
10799/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShardFilter", function() { return ShardFilter; });
10800/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return ListShardsInput; });
10801/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return ListShardsOutput; });
10802/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return ListStreamConsumersInput; });
10803/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return ListStreamConsumersOutput; });
10804/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return ListStreamsInput; });
10805/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return ListStreamsOutput; });
10806/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return ListTagsForStreamInput; });
10807/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return Tag; });
10808/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return ListTagsForStreamOutput; });
10809/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return MergeShardsInput; });
10810/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return PutRecordInput; });
10811/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return PutRecordOutput; });
10812/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return PutRecordsRequestEntry; });
10813/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return PutRecordsInput; });
10814/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return PutRecordsResultEntry; });
10815/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return PutRecordsOutput; });
10816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return RegisterStreamConsumerInput; });
10817/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return RegisterStreamConsumerOutput; });
10818/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return RemoveTagsFromStreamInput; });
10819/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return SplitShardInput; });
10820/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return StartStreamEncryptionInput; });
10821/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return StopStreamEncryptionInput; });
10822/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return StartingPosition; });
10823/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return SubscribeToShardInput; });
10824/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return SubscribeToShardEvent; });
10825/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return SubscribeToShardEventStream; });
10826/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return SubscribeToShardOutput; });
10827/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return ScalingType; });
10828/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return UpdateShardCountInput; });
10829/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return UpdateShardCountOutput; });
10830/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
10831
10832var AddTagsToStreamInput;
10833(function (AddTagsToStreamInput) {
10834 AddTagsToStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10835})(AddTagsToStreamInput || (AddTagsToStreamInput = {}));
10836var InvalidArgumentException;
10837(function (InvalidArgumentException) {
10838 InvalidArgumentException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10839})(InvalidArgumentException || (InvalidArgumentException = {}));
10840var LimitExceededException;
10841(function (LimitExceededException) {
10842 LimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10843})(LimitExceededException || (LimitExceededException = {}));
10844var ResourceInUseException;
10845(function (ResourceInUseException) {
10846 ResourceInUseException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10847})(ResourceInUseException || (ResourceInUseException = {}));
10848var ResourceNotFoundException;
10849(function (ResourceNotFoundException) {
10850 ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10851})(ResourceNotFoundException || (ResourceNotFoundException = {}));
10852var HashKeyRange;
10853(function (HashKeyRange) {
10854 HashKeyRange.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10855})(HashKeyRange || (HashKeyRange = {}));
10856var ChildShard;
10857(function (ChildShard) {
10858 ChildShard.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10859})(ChildShard || (ChildShard = {}));
10860var ConsumerStatus;
10861(function (ConsumerStatus) {
10862 ConsumerStatus["ACTIVE"] = "ACTIVE";
10863 ConsumerStatus["CREATING"] = "CREATING";
10864 ConsumerStatus["DELETING"] = "DELETING";
10865})(ConsumerStatus || (ConsumerStatus = {}));
10866var Consumer;
10867(function (Consumer) {
10868 Consumer.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10869})(Consumer || (Consumer = {}));
10870var ConsumerDescription;
10871(function (ConsumerDescription) {
10872 ConsumerDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10873})(ConsumerDescription || (ConsumerDescription = {}));
10874var CreateStreamInput;
10875(function (CreateStreamInput) {
10876 CreateStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10877})(CreateStreamInput || (CreateStreamInput = {}));
10878var DecreaseStreamRetentionPeriodInput;
10879(function (DecreaseStreamRetentionPeriodInput) {
10880 DecreaseStreamRetentionPeriodInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10881})(DecreaseStreamRetentionPeriodInput || (DecreaseStreamRetentionPeriodInput = {}));
10882var DeleteStreamInput;
10883(function (DeleteStreamInput) {
10884 DeleteStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10885})(DeleteStreamInput || (DeleteStreamInput = {}));
10886var DeregisterStreamConsumerInput;
10887(function (DeregisterStreamConsumerInput) {
10888 DeregisterStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10889})(DeregisterStreamConsumerInput || (DeregisterStreamConsumerInput = {}));
10890var DescribeLimitsInput;
10891(function (DescribeLimitsInput) {
10892 DescribeLimitsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10893})(DescribeLimitsInput || (DescribeLimitsInput = {}));
10894var DescribeLimitsOutput;
10895(function (DescribeLimitsOutput) {
10896 DescribeLimitsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10897})(DescribeLimitsOutput || (DescribeLimitsOutput = {}));
10898var DescribeStreamInput;
10899(function (DescribeStreamInput) {
10900 DescribeStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10901})(DescribeStreamInput || (DescribeStreamInput = {}));
10902var EncryptionType;
10903(function (EncryptionType) {
10904 EncryptionType["KMS"] = "KMS";
10905 EncryptionType["NONE"] = "NONE";
10906})(EncryptionType || (EncryptionType = {}));
10907var MetricsName;
10908(function (MetricsName) {
10909 MetricsName["ALL"] = "ALL";
10910 MetricsName["INCOMING_BYTES"] = "IncomingBytes";
10911 MetricsName["INCOMING_RECORDS"] = "IncomingRecords";
10912 MetricsName["ITERATOR_AGE_MILLISECONDS"] = "IteratorAgeMilliseconds";
10913 MetricsName["OUTGOING_BYTES"] = "OutgoingBytes";
10914 MetricsName["OUTGOING_RECORDS"] = "OutgoingRecords";
10915 MetricsName["READ_PROVISIONED_THROUGHPUT_EXCEEDED"] = "ReadProvisionedThroughputExceeded";
10916 MetricsName["WRITE_PROVISIONED_THROUGHPUT_EXCEEDED"] = "WriteProvisionedThroughputExceeded";
10917})(MetricsName || (MetricsName = {}));
10918var EnhancedMetrics;
10919(function (EnhancedMetrics) {
10920 EnhancedMetrics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10921})(EnhancedMetrics || (EnhancedMetrics = {}));
10922var SequenceNumberRange;
10923(function (SequenceNumberRange) {
10924 SequenceNumberRange.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10925})(SequenceNumberRange || (SequenceNumberRange = {}));
10926var Shard;
10927(function (Shard) {
10928 Shard.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10929})(Shard || (Shard = {}));
10930var StreamStatus;
10931(function (StreamStatus) {
10932 StreamStatus["ACTIVE"] = "ACTIVE";
10933 StreamStatus["CREATING"] = "CREATING";
10934 StreamStatus["DELETING"] = "DELETING";
10935 StreamStatus["UPDATING"] = "UPDATING";
10936})(StreamStatus || (StreamStatus = {}));
10937var StreamDescription;
10938(function (StreamDescription) {
10939 StreamDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10940})(StreamDescription || (StreamDescription = {}));
10941var DescribeStreamOutput;
10942(function (DescribeStreamOutput) {
10943 DescribeStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10944})(DescribeStreamOutput || (DescribeStreamOutput = {}));
10945var DescribeStreamConsumerInput;
10946(function (DescribeStreamConsumerInput) {
10947 DescribeStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10948})(DescribeStreamConsumerInput || (DescribeStreamConsumerInput = {}));
10949var DescribeStreamConsumerOutput;
10950(function (DescribeStreamConsumerOutput) {
10951 DescribeStreamConsumerOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10952})(DescribeStreamConsumerOutput || (DescribeStreamConsumerOutput = {}));
10953var DescribeStreamSummaryInput;
10954(function (DescribeStreamSummaryInput) {
10955 DescribeStreamSummaryInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10956})(DescribeStreamSummaryInput || (DescribeStreamSummaryInput = {}));
10957var StreamDescriptionSummary;
10958(function (StreamDescriptionSummary) {
10959 StreamDescriptionSummary.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10960})(StreamDescriptionSummary || (StreamDescriptionSummary = {}));
10961var DescribeStreamSummaryOutput;
10962(function (DescribeStreamSummaryOutput) {
10963 DescribeStreamSummaryOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10964})(DescribeStreamSummaryOutput || (DescribeStreamSummaryOutput = {}));
10965var DisableEnhancedMonitoringInput;
10966(function (DisableEnhancedMonitoringInput) {
10967 DisableEnhancedMonitoringInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10968})(DisableEnhancedMonitoringInput || (DisableEnhancedMonitoringInput = {}));
10969var EnhancedMonitoringOutput;
10970(function (EnhancedMonitoringOutput) {
10971 EnhancedMonitoringOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10972})(EnhancedMonitoringOutput || (EnhancedMonitoringOutput = {}));
10973var EnableEnhancedMonitoringInput;
10974(function (EnableEnhancedMonitoringInput) {
10975 EnableEnhancedMonitoringInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10976})(EnableEnhancedMonitoringInput || (EnableEnhancedMonitoringInput = {}));
10977var ExpiredIteratorException;
10978(function (ExpiredIteratorException) {
10979 ExpiredIteratorException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10980})(ExpiredIteratorException || (ExpiredIteratorException = {}));
10981var ExpiredNextTokenException;
10982(function (ExpiredNextTokenException) {
10983 ExpiredNextTokenException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10984})(ExpiredNextTokenException || (ExpiredNextTokenException = {}));
10985var GetRecordsInput;
10986(function (GetRecordsInput) {
10987 GetRecordsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10988})(GetRecordsInput || (GetRecordsInput = {}));
10989var _Record;
10990(function (_Record) {
10991 _Record.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10992})(_Record || (_Record = {}));
10993var GetRecordsOutput;
10994(function (GetRecordsOutput) {
10995 GetRecordsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10996})(GetRecordsOutput || (GetRecordsOutput = {}));
10997var KMSAccessDeniedException;
10998(function (KMSAccessDeniedException) {
10999 KMSAccessDeniedException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11000})(KMSAccessDeniedException || (KMSAccessDeniedException = {}));
11001var KMSDisabledException;
11002(function (KMSDisabledException) {
11003 KMSDisabledException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11004})(KMSDisabledException || (KMSDisabledException = {}));
11005var KMSInvalidStateException;
11006(function (KMSInvalidStateException) {
11007 KMSInvalidStateException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11008})(KMSInvalidStateException || (KMSInvalidStateException = {}));
11009var KMSNotFoundException;
11010(function (KMSNotFoundException) {
11011 KMSNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11012})(KMSNotFoundException || (KMSNotFoundException = {}));
11013var KMSOptInRequired;
11014(function (KMSOptInRequired) {
11015 KMSOptInRequired.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11016})(KMSOptInRequired || (KMSOptInRequired = {}));
11017var KMSThrottlingException;
11018(function (KMSThrottlingException) {
11019 KMSThrottlingException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11020})(KMSThrottlingException || (KMSThrottlingException = {}));
11021var ProvisionedThroughputExceededException;
11022(function (ProvisionedThroughputExceededException) {
11023 ProvisionedThroughputExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11024})(ProvisionedThroughputExceededException || (ProvisionedThroughputExceededException = {}));
11025var ShardIteratorType;
11026(function (ShardIteratorType) {
11027 ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER";
11028 ShardIteratorType["AT_SEQUENCE_NUMBER"] = "AT_SEQUENCE_NUMBER";
11029 ShardIteratorType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
11030 ShardIteratorType["LATEST"] = "LATEST";
11031 ShardIteratorType["TRIM_HORIZON"] = "TRIM_HORIZON";
11032})(ShardIteratorType || (ShardIteratorType = {}));
11033var GetShardIteratorInput;
11034(function (GetShardIteratorInput) {
11035 GetShardIteratorInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11036})(GetShardIteratorInput || (GetShardIteratorInput = {}));
11037var GetShardIteratorOutput;
11038(function (GetShardIteratorOutput) {
11039 GetShardIteratorOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11040})(GetShardIteratorOutput || (GetShardIteratorOutput = {}));
11041var IncreaseStreamRetentionPeriodInput;
11042(function (IncreaseStreamRetentionPeriodInput) {
11043 IncreaseStreamRetentionPeriodInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11044})(IncreaseStreamRetentionPeriodInput || (IncreaseStreamRetentionPeriodInput = {}));
11045var InternalFailureException;
11046(function (InternalFailureException) {
11047 InternalFailureException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11048})(InternalFailureException || (InternalFailureException = {}));
11049var ShardFilterType;
11050(function (ShardFilterType) {
11051 ShardFilterType["AFTER_SHARD_ID"] = "AFTER_SHARD_ID";
11052 ShardFilterType["AT_LATEST"] = "AT_LATEST";
11053 ShardFilterType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
11054 ShardFilterType["AT_TRIM_HORIZON"] = "AT_TRIM_HORIZON";
11055 ShardFilterType["FROM_TIMESTAMP"] = "FROM_TIMESTAMP";
11056 ShardFilterType["FROM_TRIM_HORIZON"] = "FROM_TRIM_HORIZON";
11057})(ShardFilterType || (ShardFilterType = {}));
11058var ShardFilter;
11059(function (ShardFilter) {
11060 ShardFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11061})(ShardFilter || (ShardFilter = {}));
11062var ListShardsInput;
11063(function (ListShardsInput) {
11064 ListShardsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11065})(ListShardsInput || (ListShardsInput = {}));
11066var ListShardsOutput;
11067(function (ListShardsOutput) {
11068 ListShardsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11069})(ListShardsOutput || (ListShardsOutput = {}));
11070var ListStreamConsumersInput;
11071(function (ListStreamConsumersInput) {
11072 ListStreamConsumersInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11073})(ListStreamConsumersInput || (ListStreamConsumersInput = {}));
11074var ListStreamConsumersOutput;
11075(function (ListStreamConsumersOutput) {
11076 ListStreamConsumersOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11077})(ListStreamConsumersOutput || (ListStreamConsumersOutput = {}));
11078var ListStreamsInput;
11079(function (ListStreamsInput) {
11080 ListStreamsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11081})(ListStreamsInput || (ListStreamsInput = {}));
11082var ListStreamsOutput;
11083(function (ListStreamsOutput) {
11084 ListStreamsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11085})(ListStreamsOutput || (ListStreamsOutput = {}));
11086var ListTagsForStreamInput;
11087(function (ListTagsForStreamInput) {
11088 ListTagsForStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11089})(ListTagsForStreamInput || (ListTagsForStreamInput = {}));
11090var Tag;
11091(function (Tag) {
11092 Tag.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11093})(Tag || (Tag = {}));
11094var ListTagsForStreamOutput;
11095(function (ListTagsForStreamOutput) {
11096 ListTagsForStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11097})(ListTagsForStreamOutput || (ListTagsForStreamOutput = {}));
11098var MergeShardsInput;
11099(function (MergeShardsInput) {
11100 MergeShardsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11101})(MergeShardsInput || (MergeShardsInput = {}));
11102var PutRecordInput;
11103(function (PutRecordInput) {
11104 PutRecordInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11105})(PutRecordInput || (PutRecordInput = {}));
11106var PutRecordOutput;
11107(function (PutRecordOutput) {
11108 PutRecordOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11109})(PutRecordOutput || (PutRecordOutput = {}));
11110var PutRecordsRequestEntry;
11111(function (PutRecordsRequestEntry) {
11112 PutRecordsRequestEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11113})(PutRecordsRequestEntry || (PutRecordsRequestEntry = {}));
11114var PutRecordsInput;
11115(function (PutRecordsInput) {
11116 PutRecordsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11117})(PutRecordsInput || (PutRecordsInput = {}));
11118var PutRecordsResultEntry;
11119(function (PutRecordsResultEntry) {
11120 PutRecordsResultEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11121})(PutRecordsResultEntry || (PutRecordsResultEntry = {}));
11122var PutRecordsOutput;
11123(function (PutRecordsOutput) {
11124 PutRecordsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11125})(PutRecordsOutput || (PutRecordsOutput = {}));
11126var RegisterStreamConsumerInput;
11127(function (RegisterStreamConsumerInput) {
11128 RegisterStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11129})(RegisterStreamConsumerInput || (RegisterStreamConsumerInput = {}));
11130var RegisterStreamConsumerOutput;
11131(function (RegisterStreamConsumerOutput) {
11132 RegisterStreamConsumerOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11133})(RegisterStreamConsumerOutput || (RegisterStreamConsumerOutput = {}));
11134var RemoveTagsFromStreamInput;
11135(function (RemoveTagsFromStreamInput) {
11136 RemoveTagsFromStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11137})(RemoveTagsFromStreamInput || (RemoveTagsFromStreamInput = {}));
11138var SplitShardInput;
11139(function (SplitShardInput) {
11140 SplitShardInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11141})(SplitShardInput || (SplitShardInput = {}));
11142var StartStreamEncryptionInput;
11143(function (StartStreamEncryptionInput) {
11144 StartStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11145})(StartStreamEncryptionInput || (StartStreamEncryptionInput = {}));
11146var StopStreamEncryptionInput;
11147(function (StopStreamEncryptionInput) {
11148 StopStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11149})(StopStreamEncryptionInput || (StopStreamEncryptionInput = {}));
11150var StartingPosition;
11151(function (StartingPosition) {
11152 StartingPosition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11153})(StartingPosition || (StartingPosition = {}));
11154var SubscribeToShardInput;
11155(function (SubscribeToShardInput) {
11156 SubscribeToShardInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11157})(SubscribeToShardInput || (SubscribeToShardInput = {}));
11158var SubscribeToShardEvent;
11159(function (SubscribeToShardEvent) {
11160 SubscribeToShardEvent.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11161})(SubscribeToShardEvent || (SubscribeToShardEvent = {}));
11162var SubscribeToShardEventStream;
11163(function (SubscribeToShardEventStream) {
11164 SubscribeToShardEventStream.visit = function (value, visitor) {
11165 if (value.SubscribeToShardEvent !== undefined)
11166 return visitor.SubscribeToShardEvent(value.SubscribeToShardEvent);
11167 if (value.ResourceNotFoundException !== undefined)
11168 return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
11169 if (value.ResourceInUseException !== undefined)
11170 return visitor.ResourceInUseException(value.ResourceInUseException);
11171 if (value.KMSDisabledException !== undefined)
11172 return visitor.KMSDisabledException(value.KMSDisabledException);
11173 if (value.KMSInvalidStateException !== undefined)
11174 return visitor.KMSInvalidStateException(value.KMSInvalidStateException);
11175 if (value.KMSAccessDeniedException !== undefined)
11176 return visitor.KMSAccessDeniedException(value.KMSAccessDeniedException);
11177 if (value.KMSNotFoundException !== undefined)
11178 return visitor.KMSNotFoundException(value.KMSNotFoundException);
11179 if (value.KMSOptInRequired !== undefined)
11180 return visitor.KMSOptInRequired(value.KMSOptInRequired);
11181 if (value.KMSThrottlingException !== undefined)
11182 return visitor.KMSThrottlingException(value.KMSThrottlingException);
11183 if (value.InternalFailureException !== undefined)
11184 return visitor.InternalFailureException(value.InternalFailureException);
11185 return visitor._(value.$unknown[0], value.$unknown[1]);
11186 };
11187 SubscribeToShardEventStream.filterSensitiveLog = function (obj) {
11188 var _a;
11189 if (obj.SubscribeToShardEvent !== undefined)
11190 return { SubscribeToShardEvent: SubscribeToShardEvent.filterSensitiveLog(obj.SubscribeToShardEvent) };
11191 if (obj.ResourceNotFoundException !== undefined)
11192 return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
11193 if (obj.ResourceInUseException !== undefined)
11194 return { ResourceInUseException: ResourceInUseException.filterSensitiveLog(obj.ResourceInUseException) };
11195 if (obj.KMSDisabledException !== undefined)
11196 return { KMSDisabledException: KMSDisabledException.filterSensitiveLog(obj.KMSDisabledException) };
11197 if (obj.KMSInvalidStateException !== undefined)
11198 return { KMSInvalidStateException: KMSInvalidStateException.filterSensitiveLog(obj.KMSInvalidStateException) };
11199 if (obj.KMSAccessDeniedException !== undefined)
11200 return { KMSAccessDeniedException: KMSAccessDeniedException.filterSensitiveLog(obj.KMSAccessDeniedException) };
11201 if (obj.KMSNotFoundException !== undefined)
11202 return { KMSNotFoundException: KMSNotFoundException.filterSensitiveLog(obj.KMSNotFoundException) };
11203 if (obj.KMSOptInRequired !== undefined)
11204 return { KMSOptInRequired: KMSOptInRequired.filterSensitiveLog(obj.KMSOptInRequired) };
11205 if (obj.KMSThrottlingException !== undefined)
11206 return { KMSThrottlingException: KMSThrottlingException.filterSensitiveLog(obj.KMSThrottlingException) };
11207 if (obj.InternalFailureException !== undefined)
11208 return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
11209 if (obj.$unknown !== undefined)
11210 return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
11211 };
11212})(SubscribeToShardEventStream || (SubscribeToShardEventStream = {}));
11213var SubscribeToShardOutput;
11214(function (SubscribeToShardOutput) {
11215 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" }))); };
11216})(SubscribeToShardOutput || (SubscribeToShardOutput = {}));
11217var ScalingType;
11218(function (ScalingType) {
11219 ScalingType["UNIFORM_SCALING"] = "UNIFORM_SCALING";
11220})(ScalingType || (ScalingType = {}));
11221var UpdateShardCountInput;
11222(function (UpdateShardCountInput) {
11223 UpdateShardCountInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11224})(UpdateShardCountInput || (UpdateShardCountInput = {}));
11225var UpdateShardCountOutput;
11226(function (UpdateShardCountOutput) {
11227 UpdateShardCountOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11228})(UpdateShardCountOutput || (UpdateShardCountOutput = {}));
11229//# sourceMappingURL=models_0.js.map
11230
11231/***/ }),
11232
11233/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/package.json":
11234/*!**********************************************************************************!*\
11235 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/package.json ***!
11236 \**********************************************************************************/
11237/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
11238/***/ (function(module) {
11239
11240module.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\"}}");
11241
11242/***/ }),
11243
11244/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/Interfaces.js":
11245/*!**********************************************************************************************!*\
11246 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/pagination/Interfaces.js ***!
11247 \**********************************************************************************************/
11248/*! no exports provided */
11249/***/ (function(module, __webpack_exports__, __webpack_require__) {
11250
11251"use strict";
11252__webpack_require__.r(__webpack_exports__);
11253
11254//# sourceMappingURL=Interfaces.js.map
11255
11256/***/ }),
11257
11258/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/ListStreamConsumersPaginator.js":
11259/*!****************************************************************************************************************!*\
11260 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/pagination/ListStreamConsumersPaginator.js ***!
11261 \****************************************************************************************************************/
11262/*! exports provided: paginateListStreamConsumers */
11263/***/ (function(module, __webpack_exports__, __webpack_require__) {
11264
11265"use strict";
11266__webpack_require__.r(__webpack_exports__);
11267/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "paginateListStreamConsumers", function() { return paginateListStreamConsumers; });
11268/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
11269/* harmony import */ var _Kinesis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Kinesis */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js");
11270/* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../KinesisClient */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js");
11271/* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListStreamConsumersCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js");
11272
11273
11274
11275
11276/**
11277 * @private
11278 */
11279var makePagedClientRequest = function (client, input) {
11280 var args = [];
11281 for (var _i = 2; _i < arguments.length; _i++) {
11282 args[_i - 2] = arguments[_i];
11283 }
11284 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11285 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11286 switch (_a.label) {
11287 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))];
11288 case 1:
11289 // @ts-ignore
11290 return [2 /*return*/, _a.sent()];
11291 }
11292 });
11293 });
11294};
11295/**
11296 * @private
11297 */
11298var makePagedRequest = function (client, input) {
11299 var args = [];
11300 for (var _i = 2; _i < arguments.length; _i++) {
11301 args[_i - 2] = arguments[_i];
11302 }
11303 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11304 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11305 switch (_a.label) {
11306 case 0: return [4 /*yield*/, client.listStreamConsumers.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))];
11307 case 1:
11308 // @ts-ignore
11309 return [2 /*return*/, _a.sent()];
11310 }
11311 });
11312 });
11313};
11314function paginateListStreamConsumers(config, input) {
11315 var additionalArguments = [];
11316 for (var _i = 2; _i < arguments.length; _i++) {
11317 additionalArguments[_i - 2] = arguments[_i];
11318 }
11319 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function paginateListStreamConsumers_1() {
11320 var token, hasNext, page;
11321 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11322 switch (_a.label) {
11323 case 0:
11324 token = config.startingToken || undefined;
11325 hasNext = true;
11326 _a.label = 1;
11327 case 1:
11328 if (!hasNext) return [3 /*break*/, 9];
11329 input.NextToken = token;
11330 input["MaxResults"] = config.pageSize;
11331 if (!(config.client instanceof _Kinesis__WEBPACK_IMPORTED_MODULE_1__["Kinesis"])) return [3 /*break*/, 3];
11332 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)))];
11333 case 2:
11334 page = _a.sent();
11335 return [3 /*break*/, 6];
11336 case 3:
11337 if (!(config.client instanceof _KinesisClient__WEBPACK_IMPORTED_MODULE_2__["KinesisClient"])) return [3 /*break*/, 5];
11338 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)))];
11339 case 4:
11340 page = _a.sent();
11341 return [3 /*break*/, 6];
11342 case 5: throw new Error("Invalid client, expected Kinesis | KinesisClient");
11343 case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)];
11344 case 7: return [4 /*yield*/, _a.sent()];
11345 case 8:
11346 _a.sent();
11347 token = page.NextToken;
11348 hasNext = !!token;
11349 return [3 /*break*/, 1];
11350 case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)];
11351 case 10:
11352 // @ts-ignore
11353 return [2 /*return*/, _a.sent()];
11354 }
11355 });
11356 });
11357}
11358//# sourceMappingURL=ListStreamConsumersPaginator.js.map
11359
11360/***/ }),
11361
11362/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js":
11363/*!**********************************************************************************************!*\
11364 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js ***!
11365 \**********************************************************************************************/
11366/*! 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 */
11367/***/ (function(module, __webpack_exports__, __webpack_require__) {
11368
11369"use strict";
11370__webpack_require__.r(__webpack_exports__);
11371/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1AddTagsToStreamCommand", function() { return serializeAws_json1_1AddTagsToStreamCommand; });
11372/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateStreamCommand", function() { return serializeAws_json1_1CreateStreamCommand; });
11373/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DecreaseStreamRetentionPeriodCommand", function() { return serializeAws_json1_1DecreaseStreamRetentionPeriodCommand; });
11374/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteStreamCommand", function() { return serializeAws_json1_1DeleteStreamCommand; });
11375/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeregisterStreamConsumerCommand", function() { return serializeAws_json1_1DeregisterStreamConsumerCommand; });
11376/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeLimitsCommand", function() { return serializeAws_json1_1DescribeLimitsCommand; });
11377/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeStreamCommand", function() { return serializeAws_json1_1DescribeStreamCommand; });
11378/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeStreamConsumerCommand", function() { return serializeAws_json1_1DescribeStreamConsumerCommand; });
11379/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeStreamSummaryCommand", function() { return serializeAws_json1_1DescribeStreamSummaryCommand; });
11380/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DisableEnhancedMonitoringCommand", function() { return serializeAws_json1_1DisableEnhancedMonitoringCommand; });
11381/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1EnableEnhancedMonitoringCommand", function() { return serializeAws_json1_1EnableEnhancedMonitoringCommand; });
11382/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetRecordsCommand", function() { return serializeAws_json1_1GetRecordsCommand; });
11383/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetShardIteratorCommand", function() { return serializeAws_json1_1GetShardIteratorCommand; });
11384/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1IncreaseStreamRetentionPeriodCommand", function() { return serializeAws_json1_1IncreaseStreamRetentionPeriodCommand; });
11385/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListShardsCommand", function() { return serializeAws_json1_1ListShardsCommand; });
11386/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListStreamConsumersCommand", function() { return serializeAws_json1_1ListStreamConsumersCommand; });
11387/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListStreamsCommand", function() { return serializeAws_json1_1ListStreamsCommand; });
11388/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTagsForStreamCommand", function() { return serializeAws_json1_1ListTagsForStreamCommand; });
11389/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1MergeShardsCommand", function() { return serializeAws_json1_1MergeShardsCommand; });
11390/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordCommand", function() { return serializeAws_json1_1PutRecordCommand; });
11391/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordsCommand", function() { return serializeAws_json1_1PutRecordsCommand; });
11392/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1RegisterStreamConsumerCommand", function() { return serializeAws_json1_1RegisterStreamConsumerCommand; });
11393/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1RemoveTagsFromStreamCommand", function() { return serializeAws_json1_1RemoveTagsFromStreamCommand; });
11394/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1SplitShardCommand", function() { return serializeAws_json1_1SplitShardCommand; });
11395/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartStreamEncryptionCommand", function() { return serializeAws_json1_1StartStreamEncryptionCommand; });
11396/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopStreamEncryptionCommand", function() { return serializeAws_json1_1StopStreamEncryptionCommand; });
11397/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1SubscribeToShardCommand", function() { return serializeAws_json1_1SubscribeToShardCommand; });
11398/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UpdateShardCountCommand", function() { return serializeAws_json1_1UpdateShardCountCommand; });
11399/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1AddTagsToStreamCommand", function() { return deserializeAws_json1_1AddTagsToStreamCommand; });
11400/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateStreamCommand", function() { return deserializeAws_json1_1CreateStreamCommand; });
11401/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand", function() { return deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand; });
11402/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteStreamCommand", function() { return deserializeAws_json1_1DeleteStreamCommand; });
11403/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeregisterStreamConsumerCommand", function() { return deserializeAws_json1_1DeregisterStreamConsumerCommand; });
11404/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeLimitsCommand", function() { return deserializeAws_json1_1DescribeLimitsCommand; });
11405/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeStreamCommand", function() { return deserializeAws_json1_1DescribeStreamCommand; });
11406/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeStreamConsumerCommand", function() { return deserializeAws_json1_1DescribeStreamConsumerCommand; });
11407/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeStreamSummaryCommand", function() { return deserializeAws_json1_1DescribeStreamSummaryCommand; });
11408/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DisableEnhancedMonitoringCommand", function() { return deserializeAws_json1_1DisableEnhancedMonitoringCommand; });
11409/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1EnableEnhancedMonitoringCommand", function() { return deserializeAws_json1_1EnableEnhancedMonitoringCommand; });
11410/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetRecordsCommand", function() { return deserializeAws_json1_1GetRecordsCommand; });
11411/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetShardIteratorCommand", function() { return deserializeAws_json1_1GetShardIteratorCommand; });
11412/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand", function() { return deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand; });
11413/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListShardsCommand", function() { return deserializeAws_json1_1ListShardsCommand; });
11414/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListStreamConsumersCommand", function() { return deserializeAws_json1_1ListStreamConsumersCommand; });
11415/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListStreamsCommand", function() { return deserializeAws_json1_1ListStreamsCommand; });
11416/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTagsForStreamCommand", function() { return deserializeAws_json1_1ListTagsForStreamCommand; });
11417/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1MergeShardsCommand", function() { return deserializeAws_json1_1MergeShardsCommand; });
11418/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordCommand", function() { return deserializeAws_json1_1PutRecordCommand; });
11419/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordsCommand", function() { return deserializeAws_json1_1PutRecordsCommand; });
11420/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1RegisterStreamConsumerCommand", function() { return deserializeAws_json1_1RegisterStreamConsumerCommand; });
11421/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1RemoveTagsFromStreamCommand", function() { return deserializeAws_json1_1RemoveTagsFromStreamCommand; });
11422/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1SplitShardCommand", function() { return deserializeAws_json1_1SplitShardCommand; });
11423/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartStreamEncryptionCommand", function() { return deserializeAws_json1_1StartStreamEncryptionCommand; });
11424/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopStreamEncryptionCommand", function() { return deserializeAws_json1_1StopStreamEncryptionCommand; });
11425/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1SubscribeToShardCommand", function() { return deserializeAws_json1_1SubscribeToShardCommand; });
11426/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UpdateShardCountCommand", function() { return deserializeAws_json1_1UpdateShardCountCommand; });
11427/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
11428/* 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");
11429
11430
11431var serializeAws_json1_1AddTagsToStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11432 var headers, body;
11433 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11434 headers = {
11435 "content-type": "application/x-amz-json-1.1",
11436 "x-amz-target": "Kinesis_20131202.AddTagsToStream",
11437 };
11438 body = JSON.stringify(serializeAws_json1_1AddTagsToStreamInput(input, context));
11439 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11440 });
11441}); };
11442var serializeAws_json1_1CreateStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11443 var headers, body;
11444 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11445 headers = {
11446 "content-type": "application/x-amz-json-1.1",
11447 "x-amz-target": "Kinesis_20131202.CreateStream",
11448 };
11449 body = JSON.stringify(serializeAws_json1_1CreateStreamInput(input, context));
11450 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11451 });
11452}); };
11453var serializeAws_json1_1DecreaseStreamRetentionPeriodCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11454 var headers, body;
11455 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11456 headers = {
11457 "content-type": "application/x-amz-json-1.1",
11458 "x-amz-target": "Kinesis_20131202.DecreaseStreamRetentionPeriod",
11459 };
11460 body = JSON.stringify(serializeAws_json1_1DecreaseStreamRetentionPeriodInput(input, context));
11461 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11462 });
11463}); };
11464var serializeAws_json1_1DeleteStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11465 var headers, body;
11466 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11467 headers = {
11468 "content-type": "application/x-amz-json-1.1",
11469 "x-amz-target": "Kinesis_20131202.DeleteStream",
11470 };
11471 body = JSON.stringify(serializeAws_json1_1DeleteStreamInput(input, context));
11472 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11473 });
11474}); };
11475var serializeAws_json1_1DeregisterStreamConsumerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11476 var headers, body;
11477 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11478 headers = {
11479 "content-type": "application/x-amz-json-1.1",
11480 "x-amz-target": "Kinesis_20131202.DeregisterStreamConsumer",
11481 };
11482 body = JSON.stringify(serializeAws_json1_1DeregisterStreamConsumerInput(input, context));
11483 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11484 });
11485}); };
11486var serializeAws_json1_1DescribeLimitsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11487 var headers, body;
11488 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11489 headers = {
11490 "content-type": "application/x-amz-json-1.1",
11491 "x-amz-target": "Kinesis_20131202.DescribeLimits",
11492 };
11493 body = JSON.stringify(serializeAws_json1_1DescribeLimitsInput(input, context));
11494 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11495 });
11496}); };
11497var serializeAws_json1_1DescribeStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11498 var headers, body;
11499 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11500 headers = {
11501 "content-type": "application/x-amz-json-1.1",
11502 "x-amz-target": "Kinesis_20131202.DescribeStream",
11503 };
11504 body = JSON.stringify(serializeAws_json1_1DescribeStreamInput(input, context));
11505 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11506 });
11507}); };
11508var serializeAws_json1_1DescribeStreamConsumerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11509 var headers, body;
11510 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11511 headers = {
11512 "content-type": "application/x-amz-json-1.1",
11513 "x-amz-target": "Kinesis_20131202.DescribeStreamConsumer",
11514 };
11515 body = JSON.stringify(serializeAws_json1_1DescribeStreamConsumerInput(input, context));
11516 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11517 });
11518}); };
11519var serializeAws_json1_1DescribeStreamSummaryCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11520 var headers, body;
11521 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11522 headers = {
11523 "content-type": "application/x-amz-json-1.1",
11524 "x-amz-target": "Kinesis_20131202.DescribeStreamSummary",
11525 };
11526 body = JSON.stringify(serializeAws_json1_1DescribeStreamSummaryInput(input, context));
11527 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11528 });
11529}); };
11530var serializeAws_json1_1DisableEnhancedMonitoringCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11531 var headers, body;
11532 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11533 headers = {
11534 "content-type": "application/x-amz-json-1.1",
11535 "x-amz-target": "Kinesis_20131202.DisableEnhancedMonitoring",
11536 };
11537 body = JSON.stringify(serializeAws_json1_1DisableEnhancedMonitoringInput(input, context));
11538 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11539 });
11540}); };
11541var serializeAws_json1_1EnableEnhancedMonitoringCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11542 var headers, body;
11543 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11544 headers = {
11545 "content-type": "application/x-amz-json-1.1",
11546 "x-amz-target": "Kinesis_20131202.EnableEnhancedMonitoring",
11547 };
11548 body = JSON.stringify(serializeAws_json1_1EnableEnhancedMonitoringInput(input, context));
11549 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11550 });
11551}); };
11552var serializeAws_json1_1GetRecordsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11553 var headers, body;
11554 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11555 headers = {
11556 "content-type": "application/x-amz-json-1.1",
11557 "x-amz-target": "Kinesis_20131202.GetRecords",
11558 };
11559 body = JSON.stringify(serializeAws_json1_1GetRecordsInput(input, context));
11560 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11561 });
11562}); };
11563var serializeAws_json1_1GetShardIteratorCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11564 var headers, body;
11565 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11566 headers = {
11567 "content-type": "application/x-amz-json-1.1",
11568 "x-amz-target": "Kinesis_20131202.GetShardIterator",
11569 };
11570 body = JSON.stringify(serializeAws_json1_1GetShardIteratorInput(input, context));
11571 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11572 });
11573}); };
11574var serializeAws_json1_1IncreaseStreamRetentionPeriodCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11575 var headers, body;
11576 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11577 headers = {
11578 "content-type": "application/x-amz-json-1.1",
11579 "x-amz-target": "Kinesis_20131202.IncreaseStreamRetentionPeriod",
11580 };
11581 body = JSON.stringify(serializeAws_json1_1IncreaseStreamRetentionPeriodInput(input, context));
11582 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11583 });
11584}); };
11585var serializeAws_json1_1ListShardsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11586 var headers, body;
11587 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11588 headers = {
11589 "content-type": "application/x-amz-json-1.1",
11590 "x-amz-target": "Kinesis_20131202.ListShards",
11591 };
11592 body = JSON.stringify(serializeAws_json1_1ListShardsInput(input, context));
11593 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11594 });
11595}); };
11596var serializeAws_json1_1ListStreamConsumersCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11597 var headers, body;
11598 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11599 headers = {
11600 "content-type": "application/x-amz-json-1.1",
11601 "x-amz-target": "Kinesis_20131202.ListStreamConsumers",
11602 };
11603 body = JSON.stringify(serializeAws_json1_1ListStreamConsumersInput(input, context));
11604 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11605 });
11606}); };
11607var serializeAws_json1_1ListStreamsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11608 var headers, body;
11609 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11610 headers = {
11611 "content-type": "application/x-amz-json-1.1",
11612 "x-amz-target": "Kinesis_20131202.ListStreams",
11613 };
11614 body = JSON.stringify(serializeAws_json1_1ListStreamsInput(input, context));
11615 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11616 });
11617}); };
11618var serializeAws_json1_1ListTagsForStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11619 var headers, body;
11620 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11621 headers = {
11622 "content-type": "application/x-amz-json-1.1",
11623 "x-amz-target": "Kinesis_20131202.ListTagsForStream",
11624 };
11625 body = JSON.stringify(serializeAws_json1_1ListTagsForStreamInput(input, context));
11626 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11627 });
11628}); };
11629var serializeAws_json1_1MergeShardsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11630 var headers, body;
11631 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11632 headers = {
11633 "content-type": "application/x-amz-json-1.1",
11634 "x-amz-target": "Kinesis_20131202.MergeShards",
11635 };
11636 body = JSON.stringify(serializeAws_json1_1MergeShardsInput(input, context));
11637 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11638 });
11639}); };
11640var serializeAws_json1_1PutRecordCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11641 var headers, body;
11642 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11643 headers = {
11644 "content-type": "application/x-amz-json-1.1",
11645 "x-amz-target": "Kinesis_20131202.PutRecord",
11646 };
11647 body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
11648 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11649 });
11650}); };
11651var serializeAws_json1_1PutRecordsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11652 var headers, body;
11653 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11654 headers = {
11655 "content-type": "application/x-amz-json-1.1",
11656 "x-amz-target": "Kinesis_20131202.PutRecords",
11657 };
11658 body = JSON.stringify(serializeAws_json1_1PutRecordsInput(input, context));
11659 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11660 });
11661}); };
11662var serializeAws_json1_1RegisterStreamConsumerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11663 var headers, body;
11664 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11665 headers = {
11666 "content-type": "application/x-amz-json-1.1",
11667 "x-amz-target": "Kinesis_20131202.RegisterStreamConsumer",
11668 };
11669 body = JSON.stringify(serializeAws_json1_1RegisterStreamConsumerInput(input, context));
11670 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11671 });
11672}); };
11673var serializeAws_json1_1RemoveTagsFromStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11674 var headers, body;
11675 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11676 headers = {
11677 "content-type": "application/x-amz-json-1.1",
11678 "x-amz-target": "Kinesis_20131202.RemoveTagsFromStream",
11679 };
11680 body = JSON.stringify(serializeAws_json1_1RemoveTagsFromStreamInput(input, context));
11681 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11682 });
11683}); };
11684var serializeAws_json1_1SplitShardCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11685 var headers, body;
11686 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11687 headers = {
11688 "content-type": "application/x-amz-json-1.1",
11689 "x-amz-target": "Kinesis_20131202.SplitShard",
11690 };
11691 body = JSON.stringify(serializeAws_json1_1SplitShardInput(input, context));
11692 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11693 });
11694}); };
11695var serializeAws_json1_1StartStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11696 var headers, body;
11697 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11698 headers = {
11699 "content-type": "application/x-amz-json-1.1",
11700 "x-amz-target": "Kinesis_20131202.StartStreamEncryption",
11701 };
11702 body = JSON.stringify(serializeAws_json1_1StartStreamEncryptionInput(input, context));
11703 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11704 });
11705}); };
11706var serializeAws_json1_1StopStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11707 var headers, body;
11708 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11709 headers = {
11710 "content-type": "application/x-amz-json-1.1",
11711 "x-amz-target": "Kinesis_20131202.StopStreamEncryption",
11712 };
11713 body = JSON.stringify(serializeAws_json1_1StopStreamEncryptionInput(input, context));
11714 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11715 });
11716}); };
11717var serializeAws_json1_1SubscribeToShardCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11718 var headers, body;
11719 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11720 headers = {
11721 "content-type": "application/x-amz-json-1.1",
11722 "x-amz-target": "Kinesis_20131202.SubscribeToShard",
11723 };
11724 body = JSON.stringify(serializeAws_json1_1SubscribeToShardInput(input, context));
11725 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11726 });
11727}); };
11728var serializeAws_json1_1UpdateShardCountCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11729 var headers, body;
11730 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11731 headers = {
11732 "content-type": "application/x-amz-json-1.1",
11733 "x-amz-target": "Kinesis_20131202.UpdateShardCount",
11734 };
11735 body = JSON.stringify(serializeAws_json1_1UpdateShardCountInput(input, context));
11736 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11737 });
11738}); };
11739var deserializeAws_json1_1AddTagsToStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11740 var response;
11741 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11742 switch (_a.label) {
11743 case 0:
11744 if (output.statusCode >= 300) {
11745 return [2 /*return*/, deserializeAws_json1_1AddTagsToStreamCommandError(output, context)];
11746 }
11747 return [4 /*yield*/, collectBody(output.body, context)];
11748 case 1:
11749 _a.sent();
11750 response = {
11751 $metadata: deserializeMetadata(output),
11752 };
11753 return [2 /*return*/, Promise.resolve(response)];
11754 }
11755 });
11756}); };
11757var deserializeAws_json1_1AddTagsToStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11758 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
11759 var _g;
11760 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
11761 switch (_h.label) {
11762 case 0:
11763 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
11764 _g = {};
11765 return [4 /*yield*/, parseBody(output.body, context)];
11766 case 1:
11767 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
11768 errorCode = "UnknownError";
11769 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11770 _b = errorCode;
11771 switch (_b) {
11772 case "InvalidArgumentException": return [3 /*break*/, 2];
11773 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
11774 case "LimitExceededException": return [3 /*break*/, 4];
11775 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
11776 case "ResourceInUseException": return [3 /*break*/, 6];
11777 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
11778 case "ResourceNotFoundException": return [3 /*break*/, 8];
11779 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
11780 }
11781 return [3 /*break*/, 10];
11782 case 2:
11783 _c = [{}];
11784 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
11785 case 3:
11786 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) }]);
11787 return [3 /*break*/, 11];
11788 case 4:
11789 _d = [{}];
11790 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
11791 case 5:
11792 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) }]);
11793 return [3 /*break*/, 11];
11794 case 6:
11795 _e = [{}];
11796 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
11797 case 7:
11798 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) }]);
11799 return [3 /*break*/, 11];
11800 case 8:
11801 _f = [{}];
11802 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
11803 case 9:
11804 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) }]);
11805 return [3 /*break*/, 11];
11806 case 10:
11807 parsedBody = parsedOutput.body;
11808 errorCode = parsedBody.code || parsedBody.Code || errorCode;
11809 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) });
11810 _h.label = 11;
11811 case 11:
11812 message = response.message || response.Message || errorCode;
11813 response.message = message;
11814 delete response.Message;
11815 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
11816 }
11817 });
11818}); };
11819var deserializeAws_json1_1CreateStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11820 var response;
11821 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11822 switch (_a.label) {
11823 case 0:
11824 if (output.statusCode >= 300) {
11825 return [2 /*return*/, deserializeAws_json1_1CreateStreamCommandError(output, context)];
11826 }
11827 return [4 /*yield*/, collectBody(output.body, context)];
11828 case 1:
11829 _a.sent();
11830 response = {
11831 $metadata: deserializeMetadata(output),
11832 };
11833 return [2 /*return*/, Promise.resolve(response)];
11834 }
11835 });
11836}); };
11837var deserializeAws_json1_1CreateStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11838 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
11839 var _f;
11840 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
11841 switch (_g.label) {
11842 case 0:
11843 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
11844 _f = {};
11845 return [4 /*yield*/, parseBody(output.body, context)];
11846 case 1:
11847 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
11848 errorCode = "UnknownError";
11849 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11850 _b = errorCode;
11851 switch (_b) {
11852 case "InvalidArgumentException": return [3 /*break*/, 2];
11853 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
11854 case "LimitExceededException": return [3 /*break*/, 4];
11855 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
11856 case "ResourceInUseException": return [3 /*break*/, 6];
11857 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
11858 }
11859 return [3 /*break*/, 8];
11860 case 2:
11861 _c = [{}];
11862 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
11863 case 3:
11864 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) }]);
11865 return [3 /*break*/, 9];
11866 case 4:
11867 _d = [{}];
11868 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
11869 case 5:
11870 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) }]);
11871 return [3 /*break*/, 9];
11872 case 6:
11873 _e = [{}];
11874 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
11875 case 7:
11876 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) }]);
11877 return [3 /*break*/, 9];
11878 case 8:
11879 parsedBody = parsedOutput.body;
11880 errorCode = parsedBody.code || parsedBody.Code || errorCode;
11881 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) });
11882 _g.label = 9;
11883 case 9:
11884 message = response.message || response.Message || errorCode;
11885 response.message = message;
11886 delete response.Message;
11887 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
11888 }
11889 });
11890}); };
11891var deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11892 var response;
11893 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11894 switch (_a.label) {
11895 case 0:
11896 if (output.statusCode >= 300) {
11897 return [2 /*return*/, deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError(output, context)];
11898 }
11899 return [4 /*yield*/, collectBody(output.body, context)];
11900 case 1:
11901 _a.sent();
11902 response = {
11903 $metadata: deserializeMetadata(output),
11904 };
11905 return [2 /*return*/, Promise.resolve(response)];
11906 }
11907 });
11908}); };
11909var deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11910 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
11911 var _g;
11912 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
11913 switch (_h.label) {
11914 case 0:
11915 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
11916 _g = {};
11917 return [4 /*yield*/, parseBody(output.body, context)];
11918 case 1:
11919 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
11920 errorCode = "UnknownError";
11921 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11922 _b = errorCode;
11923 switch (_b) {
11924 case "InvalidArgumentException": return [3 /*break*/, 2];
11925 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
11926 case "LimitExceededException": return [3 /*break*/, 4];
11927 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
11928 case "ResourceInUseException": return [3 /*break*/, 6];
11929 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
11930 case "ResourceNotFoundException": return [3 /*break*/, 8];
11931 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
11932 }
11933 return [3 /*break*/, 10];
11934 case 2:
11935 _c = [{}];
11936 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
11937 case 3:
11938 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) }]);
11939 return [3 /*break*/, 11];
11940 case 4:
11941 _d = [{}];
11942 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
11943 case 5:
11944 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) }]);
11945 return [3 /*break*/, 11];
11946 case 6:
11947 _e = [{}];
11948 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
11949 case 7:
11950 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) }]);
11951 return [3 /*break*/, 11];
11952 case 8:
11953 _f = [{}];
11954 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
11955 case 9:
11956 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) }]);
11957 return [3 /*break*/, 11];
11958 case 10:
11959 parsedBody = parsedOutput.body;
11960 errorCode = parsedBody.code || parsedBody.Code || errorCode;
11961 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) });
11962 _h.label = 11;
11963 case 11:
11964 message = response.message || response.Message || errorCode;
11965 response.message = message;
11966 delete response.Message;
11967 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
11968 }
11969 });
11970}); };
11971var deserializeAws_json1_1DeleteStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11972 var response;
11973 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11974 switch (_a.label) {
11975 case 0:
11976 if (output.statusCode >= 300) {
11977 return [2 /*return*/, deserializeAws_json1_1DeleteStreamCommandError(output, context)];
11978 }
11979 return [4 /*yield*/, collectBody(output.body, context)];
11980 case 1:
11981 _a.sent();
11982 response = {
11983 $metadata: deserializeMetadata(output),
11984 };
11985 return [2 /*return*/, Promise.resolve(response)];
11986 }
11987 });
11988}); };
11989var deserializeAws_json1_1DeleteStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11990 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
11991 var _f;
11992 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
11993 switch (_g.label) {
11994 case 0:
11995 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
11996 _f = {};
11997 return [4 /*yield*/, parseBody(output.body, context)];
11998 case 1:
11999 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12000 errorCode = "UnknownError";
12001 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12002 _b = errorCode;
12003 switch (_b) {
12004 case "LimitExceededException": return [3 /*break*/, 2];
12005 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12006 case "ResourceInUseException": return [3 /*break*/, 4];
12007 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 4];
12008 case "ResourceNotFoundException": return [3 /*break*/, 6];
12009 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12010 }
12011 return [3 /*break*/, 8];
12012 case 2:
12013 _c = [{}];
12014 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12015 case 3:
12016 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) }]);
12017 return [3 /*break*/, 9];
12018 case 4:
12019 _d = [{}];
12020 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12021 case 5:
12022 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) }]);
12023 return [3 /*break*/, 9];
12024 case 6:
12025 _e = [{}];
12026 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12027 case 7:
12028 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) }]);
12029 return [3 /*break*/, 9];
12030 case 8:
12031 parsedBody = parsedOutput.body;
12032 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12033 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) });
12034 _g.label = 9;
12035 case 9:
12036 message = response.message || response.Message || errorCode;
12037 response.message = message;
12038 delete response.Message;
12039 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12040 }
12041 });
12042}); };
12043var deserializeAws_json1_1DeregisterStreamConsumerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12044 var response;
12045 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12046 switch (_a.label) {
12047 case 0:
12048 if (output.statusCode >= 300) {
12049 return [2 /*return*/, deserializeAws_json1_1DeregisterStreamConsumerCommandError(output, context)];
12050 }
12051 return [4 /*yield*/, collectBody(output.body, context)];
12052 case 1:
12053 _a.sent();
12054 response = {
12055 $metadata: deserializeMetadata(output),
12056 };
12057 return [2 /*return*/, Promise.resolve(response)];
12058 }
12059 });
12060}); };
12061var deserializeAws_json1_1DeregisterStreamConsumerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12062 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
12063 var _f;
12064 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
12065 switch (_g.label) {
12066 case 0:
12067 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12068 _f = {};
12069 return [4 /*yield*/, parseBody(output.body, context)];
12070 case 1:
12071 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12072 errorCode = "UnknownError";
12073 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12074 _b = errorCode;
12075 switch (_b) {
12076 case "InvalidArgumentException": return [3 /*break*/, 2];
12077 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12078 case "LimitExceededException": return [3 /*break*/, 4];
12079 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12080 case "ResourceNotFoundException": return [3 /*break*/, 6];
12081 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12082 }
12083 return [3 /*break*/, 8];
12084 case 2:
12085 _c = [{}];
12086 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12087 case 3:
12088 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) }]);
12089 return [3 /*break*/, 9];
12090 case 4:
12091 _d = [{}];
12092 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12093 case 5:
12094 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) }]);
12095 return [3 /*break*/, 9];
12096 case 6:
12097 _e = [{}];
12098 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12099 case 7:
12100 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) }]);
12101 return [3 /*break*/, 9];
12102 case 8:
12103 parsedBody = parsedOutput.body;
12104 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12105 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) });
12106 _g.label = 9;
12107 case 9:
12108 message = response.message || response.Message || errorCode;
12109 response.message = message;
12110 delete response.Message;
12111 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12112 }
12113 });
12114}); };
12115var deserializeAws_json1_1DescribeLimitsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12116 var data, contents, response;
12117 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12118 switch (_a.label) {
12119 case 0:
12120 if (output.statusCode >= 300) {
12121 return [2 /*return*/, deserializeAws_json1_1DescribeLimitsCommandError(output, context)];
12122 }
12123 return [4 /*yield*/, parseBody(output.body, context)];
12124 case 1:
12125 data = _a.sent();
12126 contents = {};
12127 contents = deserializeAws_json1_1DescribeLimitsOutput(data, context);
12128 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12129 return [2 /*return*/, Promise.resolve(response)];
12130 }
12131 });
12132}); };
12133var deserializeAws_json1_1DescribeLimitsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12134 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
12135 var _d;
12136 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
12137 switch (_e.label) {
12138 case 0:
12139 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12140 _d = {};
12141 return [4 /*yield*/, parseBody(output.body, context)];
12142 case 1:
12143 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
12144 errorCode = "UnknownError";
12145 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12146 _b = errorCode;
12147 switch (_b) {
12148 case "LimitExceededException": return [3 /*break*/, 2];
12149 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12150 }
12151 return [3 /*break*/, 4];
12152 case 2:
12153 _c = [{}];
12154 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12155 case 3:
12156 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) }]);
12157 return [3 /*break*/, 5];
12158 case 4:
12159 parsedBody = parsedOutput.body;
12160 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12161 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) });
12162 _e.label = 5;
12163 case 5:
12164 message = response.message || response.Message || errorCode;
12165 response.message = message;
12166 delete response.Message;
12167 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12168 }
12169 });
12170}); };
12171var deserializeAws_json1_1DescribeStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12172 var data, contents, response;
12173 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12174 switch (_a.label) {
12175 case 0:
12176 if (output.statusCode >= 300) {
12177 return [2 /*return*/, deserializeAws_json1_1DescribeStreamCommandError(output, context)];
12178 }
12179 return [4 /*yield*/, parseBody(output.body, context)];
12180 case 1:
12181 data = _a.sent();
12182 contents = {};
12183 contents = deserializeAws_json1_1DescribeStreamOutput(data, context);
12184 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12185 return [2 /*return*/, Promise.resolve(response)];
12186 }
12187 });
12188}); };
12189var deserializeAws_json1_1DescribeStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12190 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
12191 var _e;
12192 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
12193 switch (_f.label) {
12194 case 0:
12195 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12196 _e = {};
12197 return [4 /*yield*/, parseBody(output.body, context)];
12198 case 1:
12199 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
12200 errorCode = "UnknownError";
12201 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12202 _b = errorCode;
12203 switch (_b) {
12204 case "LimitExceededException": return [3 /*break*/, 2];
12205 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12206 case "ResourceNotFoundException": return [3 /*break*/, 4];
12207 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 4];
12208 }
12209 return [3 /*break*/, 6];
12210 case 2:
12211 _c = [{}];
12212 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12213 case 3:
12214 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) }]);
12215 return [3 /*break*/, 7];
12216 case 4:
12217 _d = [{}];
12218 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12219 case 5:
12220 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) }]);
12221 return [3 /*break*/, 7];
12222 case 6:
12223 parsedBody = parsedOutput.body;
12224 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12225 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) });
12226 _f.label = 7;
12227 case 7:
12228 message = response.message || response.Message || errorCode;
12229 response.message = message;
12230 delete response.Message;
12231 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12232 }
12233 });
12234}); };
12235var deserializeAws_json1_1DescribeStreamConsumerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12236 var data, contents, response;
12237 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12238 switch (_a.label) {
12239 case 0:
12240 if (output.statusCode >= 300) {
12241 return [2 /*return*/, deserializeAws_json1_1DescribeStreamConsumerCommandError(output, context)];
12242 }
12243 return [4 /*yield*/, parseBody(output.body, context)];
12244 case 1:
12245 data = _a.sent();
12246 contents = {};
12247 contents = deserializeAws_json1_1DescribeStreamConsumerOutput(data, context);
12248 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12249 return [2 /*return*/, Promise.resolve(response)];
12250 }
12251 });
12252}); };
12253var deserializeAws_json1_1DescribeStreamConsumerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12254 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
12255 var _f;
12256 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
12257 switch (_g.label) {
12258 case 0:
12259 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12260 _f = {};
12261 return [4 /*yield*/, parseBody(output.body, context)];
12262 case 1:
12263 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12264 errorCode = "UnknownError";
12265 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12266 _b = errorCode;
12267 switch (_b) {
12268 case "InvalidArgumentException": return [3 /*break*/, 2];
12269 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12270 case "LimitExceededException": return [3 /*break*/, 4];
12271 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12272 case "ResourceNotFoundException": return [3 /*break*/, 6];
12273 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12274 }
12275 return [3 /*break*/, 8];
12276 case 2:
12277 _c = [{}];
12278 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12279 case 3:
12280 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) }]);
12281 return [3 /*break*/, 9];
12282 case 4:
12283 _d = [{}];
12284 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12285 case 5:
12286 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) }]);
12287 return [3 /*break*/, 9];
12288 case 6:
12289 _e = [{}];
12290 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12291 case 7:
12292 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) }]);
12293 return [3 /*break*/, 9];
12294 case 8:
12295 parsedBody = parsedOutput.body;
12296 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12297 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) });
12298 _g.label = 9;
12299 case 9:
12300 message = response.message || response.Message || errorCode;
12301 response.message = message;
12302 delete response.Message;
12303 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12304 }
12305 });
12306}); };
12307var deserializeAws_json1_1DescribeStreamSummaryCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12308 var data, contents, response;
12309 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12310 switch (_a.label) {
12311 case 0:
12312 if (output.statusCode >= 300) {
12313 return [2 /*return*/, deserializeAws_json1_1DescribeStreamSummaryCommandError(output, context)];
12314 }
12315 return [4 /*yield*/, parseBody(output.body, context)];
12316 case 1:
12317 data = _a.sent();
12318 contents = {};
12319 contents = deserializeAws_json1_1DescribeStreamSummaryOutput(data, context);
12320 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12321 return [2 /*return*/, Promise.resolve(response)];
12322 }
12323 });
12324}); };
12325var deserializeAws_json1_1DescribeStreamSummaryCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12326 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
12327 var _e;
12328 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
12329 switch (_f.label) {
12330 case 0:
12331 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12332 _e = {};
12333 return [4 /*yield*/, parseBody(output.body, context)];
12334 case 1:
12335 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
12336 errorCode = "UnknownError";
12337 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12338 _b = errorCode;
12339 switch (_b) {
12340 case "LimitExceededException": return [3 /*break*/, 2];
12341 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12342 case "ResourceNotFoundException": return [3 /*break*/, 4];
12343 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 4];
12344 }
12345 return [3 /*break*/, 6];
12346 case 2:
12347 _c = [{}];
12348 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12349 case 3:
12350 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) }]);
12351 return [3 /*break*/, 7];
12352 case 4:
12353 _d = [{}];
12354 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12355 case 5:
12356 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) }]);
12357 return [3 /*break*/, 7];
12358 case 6:
12359 parsedBody = parsedOutput.body;
12360 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12361 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) });
12362 _f.label = 7;
12363 case 7:
12364 message = response.message || response.Message || errorCode;
12365 response.message = message;
12366 delete response.Message;
12367 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12368 }
12369 });
12370}); };
12371var deserializeAws_json1_1DisableEnhancedMonitoringCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12372 var data, contents, response;
12373 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12374 switch (_a.label) {
12375 case 0:
12376 if (output.statusCode >= 300) {
12377 return [2 /*return*/, deserializeAws_json1_1DisableEnhancedMonitoringCommandError(output, context)];
12378 }
12379 return [4 /*yield*/, parseBody(output.body, context)];
12380 case 1:
12381 data = _a.sent();
12382 contents = {};
12383 contents = deserializeAws_json1_1EnhancedMonitoringOutput(data, context);
12384 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12385 return [2 /*return*/, Promise.resolve(response)];
12386 }
12387 });
12388}); };
12389var deserializeAws_json1_1DisableEnhancedMonitoringCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12390 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
12391 var _g;
12392 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
12393 switch (_h.label) {
12394 case 0:
12395 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12396 _g = {};
12397 return [4 /*yield*/, parseBody(output.body, context)];
12398 case 1:
12399 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
12400 errorCode = "UnknownError";
12401 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12402 _b = errorCode;
12403 switch (_b) {
12404 case "InvalidArgumentException": return [3 /*break*/, 2];
12405 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12406 case "LimitExceededException": return [3 /*break*/, 4];
12407 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12408 case "ResourceInUseException": return [3 /*break*/, 6];
12409 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
12410 case "ResourceNotFoundException": return [3 /*break*/, 8];
12411 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
12412 }
12413 return [3 /*break*/, 10];
12414 case 2:
12415 _c = [{}];
12416 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12417 case 3:
12418 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) }]);
12419 return [3 /*break*/, 11];
12420 case 4:
12421 _d = [{}];
12422 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12423 case 5:
12424 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) }]);
12425 return [3 /*break*/, 11];
12426 case 6:
12427 _e = [{}];
12428 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12429 case 7:
12430 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) }]);
12431 return [3 /*break*/, 11];
12432 case 8:
12433 _f = [{}];
12434 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12435 case 9:
12436 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) }]);
12437 return [3 /*break*/, 11];
12438 case 10:
12439 parsedBody = parsedOutput.body;
12440 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12441 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) });
12442 _h.label = 11;
12443 case 11:
12444 message = response.message || response.Message || errorCode;
12445 response.message = message;
12446 delete response.Message;
12447 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12448 }
12449 });
12450}); };
12451var deserializeAws_json1_1EnableEnhancedMonitoringCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12452 var data, contents, response;
12453 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12454 switch (_a.label) {
12455 case 0:
12456 if (output.statusCode >= 300) {
12457 return [2 /*return*/, deserializeAws_json1_1EnableEnhancedMonitoringCommandError(output, context)];
12458 }
12459 return [4 /*yield*/, parseBody(output.body, context)];
12460 case 1:
12461 data = _a.sent();
12462 contents = {};
12463 contents = deserializeAws_json1_1EnhancedMonitoringOutput(data, context);
12464 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12465 return [2 /*return*/, Promise.resolve(response)];
12466 }
12467 });
12468}); };
12469var deserializeAws_json1_1EnableEnhancedMonitoringCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12470 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
12471 var _g;
12472 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
12473 switch (_h.label) {
12474 case 0:
12475 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12476 _g = {};
12477 return [4 /*yield*/, parseBody(output.body, context)];
12478 case 1:
12479 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
12480 errorCode = "UnknownError";
12481 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12482 _b = errorCode;
12483 switch (_b) {
12484 case "InvalidArgumentException": return [3 /*break*/, 2];
12485 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12486 case "LimitExceededException": return [3 /*break*/, 4];
12487 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12488 case "ResourceInUseException": return [3 /*break*/, 6];
12489 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
12490 case "ResourceNotFoundException": return [3 /*break*/, 8];
12491 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
12492 }
12493 return [3 /*break*/, 10];
12494 case 2:
12495 _c = [{}];
12496 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12497 case 3:
12498 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) }]);
12499 return [3 /*break*/, 11];
12500 case 4:
12501 _d = [{}];
12502 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12503 case 5:
12504 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) }]);
12505 return [3 /*break*/, 11];
12506 case 6:
12507 _e = [{}];
12508 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12509 case 7:
12510 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) }]);
12511 return [3 /*break*/, 11];
12512 case 8:
12513 _f = [{}];
12514 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12515 case 9:
12516 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) }]);
12517 return [3 /*break*/, 11];
12518 case 10:
12519 parsedBody = parsedOutput.body;
12520 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12521 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) });
12522 _h.label = 11;
12523 case 11:
12524 message = response.message || response.Message || errorCode;
12525 response.message = message;
12526 delete response.Message;
12527 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12528 }
12529 });
12530}); };
12531var deserializeAws_json1_1GetRecordsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12532 var data, contents, response;
12533 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12534 switch (_a.label) {
12535 case 0:
12536 if (output.statusCode >= 300) {
12537 return [2 /*return*/, deserializeAws_json1_1GetRecordsCommandError(output, context)];
12538 }
12539 return [4 /*yield*/, parseBody(output.body, context)];
12540 case 1:
12541 data = _a.sent();
12542 contents = {};
12543 contents = deserializeAws_json1_1GetRecordsOutput(data, context);
12544 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12545 return [2 /*return*/, Promise.resolve(response)];
12546 }
12547 });
12548}); };
12549var deserializeAws_json1_1GetRecordsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12550 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, parsedBody, message;
12551 var _o;
12552 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_p) {
12553 switch (_p.label) {
12554 case 0:
12555 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12556 _o = {};
12557 return [4 /*yield*/, parseBody(output.body, context)];
12558 case 1:
12559 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
12560 errorCode = "UnknownError";
12561 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12562 _b = errorCode;
12563 switch (_b) {
12564 case "ExpiredIteratorException": return [3 /*break*/, 2];
12565 case "com.amazonaws.kinesis#ExpiredIteratorException": return [3 /*break*/, 2];
12566 case "InvalidArgumentException": return [3 /*break*/, 4];
12567 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 4];
12568 case "KMSAccessDeniedException": return [3 /*break*/, 6];
12569 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 6];
12570 case "KMSDisabledException": return [3 /*break*/, 8];
12571 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 8];
12572 case "KMSInvalidStateException": return [3 /*break*/, 10];
12573 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 10];
12574 case "KMSNotFoundException": return [3 /*break*/, 12];
12575 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 12];
12576 case "KMSOptInRequired": return [3 /*break*/, 14];
12577 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 14];
12578 case "KMSThrottlingException": return [3 /*break*/, 16];
12579 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 16];
12580 case "ProvisionedThroughputExceededException": return [3 /*break*/, 18];
12581 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 18];
12582 case "ResourceNotFoundException": return [3 /*break*/, 20];
12583 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 20];
12584 }
12585 return [3 /*break*/, 22];
12586 case 2:
12587 _c = [{}];
12588 return [4 /*yield*/, deserializeAws_json1_1ExpiredIteratorExceptionResponse(parsedOutput, context)];
12589 case 3:
12590 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) }]);
12591 return [3 /*break*/, 23];
12592 case 4:
12593 _d = [{}];
12594 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12595 case 5:
12596 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) }]);
12597 return [3 /*break*/, 23];
12598 case 6:
12599 _e = [{}];
12600 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
12601 case 7:
12602 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) }]);
12603 return [3 /*break*/, 23];
12604 case 8:
12605 _f = [{}];
12606 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
12607 case 9:
12608 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) }]);
12609 return [3 /*break*/, 23];
12610 case 10:
12611 _g = [{}];
12612 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
12613 case 11:
12614 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) }]);
12615 return [3 /*break*/, 23];
12616 case 12:
12617 _h = [{}];
12618 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
12619 case 13:
12620 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) }]);
12621 return [3 /*break*/, 23];
12622 case 14:
12623 _j = [{}];
12624 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
12625 case 15:
12626 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) }]);
12627 return [3 /*break*/, 23];
12628 case 16:
12629 _k = [{}];
12630 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
12631 case 17:
12632 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) }]);
12633 return [3 /*break*/, 23];
12634 case 18:
12635 _l = [{}];
12636 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
12637 case 19:
12638 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) }]);
12639 return [3 /*break*/, 23];
12640 case 20:
12641 _m = [{}];
12642 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12643 case 21:
12644 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) }]);
12645 return [3 /*break*/, 23];
12646 case 22:
12647 parsedBody = parsedOutput.body;
12648 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12649 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) });
12650 _p.label = 23;
12651 case 23:
12652 message = response.message || response.Message || errorCode;
12653 response.message = message;
12654 delete response.Message;
12655 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12656 }
12657 });
12658}); };
12659var deserializeAws_json1_1GetShardIteratorCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12660 var data, contents, response;
12661 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12662 switch (_a.label) {
12663 case 0:
12664 if (output.statusCode >= 300) {
12665 return [2 /*return*/, deserializeAws_json1_1GetShardIteratorCommandError(output, context)];
12666 }
12667 return [4 /*yield*/, parseBody(output.body, context)];
12668 case 1:
12669 data = _a.sent();
12670 contents = {};
12671 contents = deserializeAws_json1_1GetShardIteratorOutput(data, context);
12672 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12673 return [2 /*return*/, Promise.resolve(response)];
12674 }
12675 });
12676}); };
12677var deserializeAws_json1_1GetShardIteratorCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12678 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
12679 var _f;
12680 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
12681 switch (_g.label) {
12682 case 0:
12683 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12684 _f = {};
12685 return [4 /*yield*/, parseBody(output.body, context)];
12686 case 1:
12687 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12688 errorCode = "UnknownError";
12689 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12690 _b = errorCode;
12691 switch (_b) {
12692 case "InvalidArgumentException": return [3 /*break*/, 2];
12693 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12694 case "ProvisionedThroughputExceededException": return [3 /*break*/, 4];
12695 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 4];
12696 case "ResourceNotFoundException": return [3 /*break*/, 6];
12697 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12698 }
12699 return [3 /*break*/, 8];
12700 case 2:
12701 _c = [{}];
12702 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12703 case 3:
12704 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) }]);
12705 return [3 /*break*/, 9];
12706 case 4:
12707 _d = [{}];
12708 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
12709 case 5:
12710 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) }]);
12711 return [3 /*break*/, 9];
12712 case 6:
12713 _e = [{}];
12714 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12715 case 7:
12716 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) }]);
12717 return [3 /*break*/, 9];
12718 case 8:
12719 parsedBody = parsedOutput.body;
12720 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12721 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) });
12722 _g.label = 9;
12723 case 9:
12724 message = response.message || response.Message || errorCode;
12725 response.message = message;
12726 delete response.Message;
12727 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12728 }
12729 });
12730}); };
12731var deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12732 var response;
12733 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12734 switch (_a.label) {
12735 case 0:
12736 if (output.statusCode >= 300) {
12737 return [2 /*return*/, deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError(output, context)];
12738 }
12739 return [4 /*yield*/, collectBody(output.body, context)];
12740 case 1:
12741 _a.sent();
12742 response = {
12743 $metadata: deserializeMetadata(output),
12744 };
12745 return [2 /*return*/, Promise.resolve(response)];
12746 }
12747 });
12748}); };
12749var deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12750 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
12751 var _g;
12752 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
12753 switch (_h.label) {
12754 case 0:
12755 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12756 _g = {};
12757 return [4 /*yield*/, parseBody(output.body, context)];
12758 case 1:
12759 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
12760 errorCode = "UnknownError";
12761 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12762 _b = errorCode;
12763 switch (_b) {
12764 case "InvalidArgumentException": return [3 /*break*/, 2];
12765 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12766 case "LimitExceededException": return [3 /*break*/, 4];
12767 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12768 case "ResourceInUseException": return [3 /*break*/, 6];
12769 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
12770 case "ResourceNotFoundException": return [3 /*break*/, 8];
12771 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
12772 }
12773 return [3 /*break*/, 10];
12774 case 2:
12775 _c = [{}];
12776 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12777 case 3:
12778 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) }]);
12779 return [3 /*break*/, 11];
12780 case 4:
12781 _d = [{}];
12782 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12783 case 5:
12784 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) }]);
12785 return [3 /*break*/, 11];
12786 case 6:
12787 _e = [{}];
12788 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12789 case 7:
12790 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) }]);
12791 return [3 /*break*/, 11];
12792 case 8:
12793 _f = [{}];
12794 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12795 case 9:
12796 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) }]);
12797 return [3 /*break*/, 11];
12798 case 10:
12799 parsedBody = parsedOutput.body;
12800 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12801 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) });
12802 _h.label = 11;
12803 case 11:
12804 message = response.message || response.Message || errorCode;
12805 response.message = message;
12806 delete response.Message;
12807 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12808 }
12809 });
12810}); };
12811var deserializeAws_json1_1ListShardsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12812 var data, contents, response;
12813 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12814 switch (_a.label) {
12815 case 0:
12816 if (output.statusCode >= 300) {
12817 return [2 /*return*/, deserializeAws_json1_1ListShardsCommandError(output, context)];
12818 }
12819 return [4 /*yield*/, parseBody(output.body, context)];
12820 case 1:
12821 data = _a.sent();
12822 contents = {};
12823 contents = deserializeAws_json1_1ListShardsOutput(data, context);
12824 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12825 return [2 /*return*/, Promise.resolve(response)];
12826 }
12827 });
12828}); };
12829var deserializeAws_json1_1ListShardsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12830 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
12831 var _h;
12832 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
12833 switch (_j.label) {
12834 case 0:
12835 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12836 _h = {};
12837 return [4 /*yield*/, parseBody(output.body, context)];
12838 case 1:
12839 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
12840 errorCode = "UnknownError";
12841 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12842 _b = errorCode;
12843 switch (_b) {
12844 case "ExpiredNextTokenException": return [3 /*break*/, 2];
12845 case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3 /*break*/, 2];
12846 case "InvalidArgumentException": return [3 /*break*/, 4];
12847 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 4];
12848 case "LimitExceededException": return [3 /*break*/, 6];
12849 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 6];
12850 case "ResourceInUseException": return [3 /*break*/, 8];
12851 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 8];
12852 case "ResourceNotFoundException": return [3 /*break*/, 10];
12853 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 10];
12854 }
12855 return [3 /*break*/, 12];
12856 case 2:
12857 _c = [{}];
12858 return [4 /*yield*/, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
12859 case 3:
12860 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) }]);
12861 return [3 /*break*/, 13];
12862 case 4:
12863 _d = [{}];
12864 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12865 case 5:
12866 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) }]);
12867 return [3 /*break*/, 13];
12868 case 6:
12869 _e = [{}];
12870 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12871 case 7:
12872 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) }]);
12873 return [3 /*break*/, 13];
12874 case 8:
12875 _f = [{}];
12876 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12877 case 9:
12878 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) }]);
12879 return [3 /*break*/, 13];
12880 case 10:
12881 _g = [{}];
12882 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12883 case 11:
12884 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) }]);
12885 return [3 /*break*/, 13];
12886 case 12:
12887 parsedBody = parsedOutput.body;
12888 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12889 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) });
12890 _j.label = 13;
12891 case 13:
12892 message = response.message || response.Message || errorCode;
12893 response.message = message;
12894 delete response.Message;
12895 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12896 }
12897 });
12898}); };
12899var deserializeAws_json1_1ListStreamConsumersCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12900 var data, contents, response;
12901 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12902 switch (_a.label) {
12903 case 0:
12904 if (output.statusCode >= 300) {
12905 return [2 /*return*/, deserializeAws_json1_1ListStreamConsumersCommandError(output, context)];
12906 }
12907 return [4 /*yield*/, parseBody(output.body, context)];
12908 case 1:
12909 data = _a.sent();
12910 contents = {};
12911 contents = deserializeAws_json1_1ListStreamConsumersOutput(data, context);
12912 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12913 return [2 /*return*/, Promise.resolve(response)];
12914 }
12915 });
12916}); };
12917var deserializeAws_json1_1ListStreamConsumersCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12918 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
12919 var _h;
12920 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
12921 switch (_j.label) {
12922 case 0:
12923 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12924 _h = {};
12925 return [4 /*yield*/, parseBody(output.body, context)];
12926 case 1:
12927 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
12928 errorCode = "UnknownError";
12929 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12930 _b = errorCode;
12931 switch (_b) {
12932 case "ExpiredNextTokenException": return [3 /*break*/, 2];
12933 case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3 /*break*/, 2];
12934 case "InvalidArgumentException": return [3 /*break*/, 4];
12935 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 4];
12936 case "LimitExceededException": return [3 /*break*/, 6];
12937 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 6];
12938 case "ResourceInUseException": return [3 /*break*/, 8];
12939 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 8];
12940 case "ResourceNotFoundException": return [3 /*break*/, 10];
12941 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 10];
12942 }
12943 return [3 /*break*/, 12];
12944 case 2:
12945 _c = [{}];
12946 return [4 /*yield*/, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
12947 case 3:
12948 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) }]);
12949 return [3 /*break*/, 13];
12950 case 4:
12951 _d = [{}];
12952 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12953 case 5:
12954 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) }]);
12955 return [3 /*break*/, 13];
12956 case 6:
12957 _e = [{}];
12958 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12959 case 7:
12960 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) }]);
12961 return [3 /*break*/, 13];
12962 case 8:
12963 _f = [{}];
12964 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12965 case 9:
12966 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) }]);
12967 return [3 /*break*/, 13];
12968 case 10:
12969 _g = [{}];
12970 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12971 case 11:
12972 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) }]);
12973 return [3 /*break*/, 13];
12974 case 12:
12975 parsedBody = parsedOutput.body;
12976 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12977 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) });
12978 _j.label = 13;
12979 case 13:
12980 message = response.message || response.Message || errorCode;
12981 response.message = message;
12982 delete response.Message;
12983 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12984 }
12985 });
12986}); };
12987var deserializeAws_json1_1ListStreamsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12988 var data, contents, response;
12989 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12990 switch (_a.label) {
12991 case 0:
12992 if (output.statusCode >= 300) {
12993 return [2 /*return*/, deserializeAws_json1_1ListStreamsCommandError(output, context)];
12994 }
12995 return [4 /*yield*/, parseBody(output.body, context)];
12996 case 1:
12997 data = _a.sent();
12998 contents = {};
12999 contents = deserializeAws_json1_1ListStreamsOutput(data, context);
13000 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13001 return [2 /*return*/, Promise.resolve(response)];
13002 }
13003 });
13004}); };
13005var deserializeAws_json1_1ListStreamsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13006 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
13007 var _d;
13008 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
13009 switch (_e.label) {
13010 case 0:
13011 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13012 _d = {};
13013 return [4 /*yield*/, parseBody(output.body, context)];
13014 case 1:
13015 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
13016 errorCode = "UnknownError";
13017 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13018 _b = errorCode;
13019 switch (_b) {
13020 case "LimitExceededException": return [3 /*break*/, 2];
13021 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
13022 }
13023 return [3 /*break*/, 4];
13024 case 2:
13025 _c = [{}];
13026 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13027 case 3:
13028 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) }]);
13029 return [3 /*break*/, 5];
13030 case 4:
13031 parsedBody = parsedOutput.body;
13032 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13033 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) });
13034 _e.label = 5;
13035 case 5:
13036 message = response.message || response.Message || errorCode;
13037 response.message = message;
13038 delete response.Message;
13039 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13040 }
13041 });
13042}); };
13043var deserializeAws_json1_1ListTagsForStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13044 var data, contents, response;
13045 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13046 switch (_a.label) {
13047 case 0:
13048 if (output.statusCode >= 300) {
13049 return [2 /*return*/, deserializeAws_json1_1ListTagsForStreamCommandError(output, context)];
13050 }
13051 return [4 /*yield*/, parseBody(output.body, context)];
13052 case 1:
13053 data = _a.sent();
13054 contents = {};
13055 contents = deserializeAws_json1_1ListTagsForStreamOutput(data, context);
13056 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13057 return [2 /*return*/, Promise.resolve(response)];
13058 }
13059 });
13060}); };
13061var deserializeAws_json1_1ListTagsForStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13062 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
13063 var _f;
13064 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
13065 switch (_g.label) {
13066 case 0:
13067 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13068 _f = {};
13069 return [4 /*yield*/, parseBody(output.body, context)];
13070 case 1:
13071 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
13072 errorCode = "UnknownError";
13073 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13074 _b = errorCode;
13075 switch (_b) {
13076 case "InvalidArgumentException": return [3 /*break*/, 2];
13077 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13078 case "LimitExceededException": return [3 /*break*/, 4];
13079 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13080 case "ResourceNotFoundException": return [3 /*break*/, 6];
13081 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
13082 }
13083 return [3 /*break*/, 8];
13084 case 2:
13085 _c = [{}];
13086 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13087 case 3:
13088 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) }]);
13089 return [3 /*break*/, 9];
13090 case 4:
13091 _d = [{}];
13092 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13093 case 5:
13094 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) }]);
13095 return [3 /*break*/, 9];
13096 case 6:
13097 _e = [{}];
13098 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13099 case 7:
13100 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) }]);
13101 return [3 /*break*/, 9];
13102 case 8:
13103 parsedBody = parsedOutput.body;
13104 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13105 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) });
13106 _g.label = 9;
13107 case 9:
13108 message = response.message || response.Message || errorCode;
13109 response.message = message;
13110 delete response.Message;
13111 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13112 }
13113 });
13114}); };
13115var deserializeAws_json1_1MergeShardsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13116 var response;
13117 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13118 switch (_a.label) {
13119 case 0:
13120 if (output.statusCode >= 300) {
13121 return [2 /*return*/, deserializeAws_json1_1MergeShardsCommandError(output, context)];
13122 }
13123 return [4 /*yield*/, collectBody(output.body, context)];
13124 case 1:
13125 _a.sent();
13126 response = {
13127 $metadata: deserializeMetadata(output),
13128 };
13129 return [2 /*return*/, Promise.resolve(response)];
13130 }
13131 });
13132}); };
13133var deserializeAws_json1_1MergeShardsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13134 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13135 var _g;
13136 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13137 switch (_h.label) {
13138 case 0:
13139 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13140 _g = {};
13141 return [4 /*yield*/, parseBody(output.body, context)];
13142 case 1:
13143 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13144 errorCode = "UnknownError";
13145 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13146 _b = errorCode;
13147 switch (_b) {
13148 case "InvalidArgumentException": return [3 /*break*/, 2];
13149 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13150 case "LimitExceededException": return [3 /*break*/, 4];
13151 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13152 case "ResourceInUseException": return [3 /*break*/, 6];
13153 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13154 case "ResourceNotFoundException": return [3 /*break*/, 8];
13155 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13156 }
13157 return [3 /*break*/, 10];
13158 case 2:
13159 _c = [{}];
13160 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13161 case 3:
13162 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) }]);
13163 return [3 /*break*/, 11];
13164 case 4:
13165 _d = [{}];
13166 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13167 case 5:
13168 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) }]);
13169 return [3 /*break*/, 11];
13170 case 6:
13171 _e = [{}];
13172 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13173 case 7:
13174 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) }]);
13175 return [3 /*break*/, 11];
13176 case 8:
13177 _f = [{}];
13178 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13179 case 9:
13180 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) }]);
13181 return [3 /*break*/, 11];
13182 case 10:
13183 parsedBody = parsedOutput.body;
13184 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13185 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) });
13186 _h.label = 11;
13187 case 11:
13188 message = response.message || response.Message || errorCode;
13189 response.message = message;
13190 delete response.Message;
13191 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13192 }
13193 });
13194}); };
13195var deserializeAws_json1_1PutRecordCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13196 var data, contents, response;
13197 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13198 switch (_a.label) {
13199 case 0:
13200 if (output.statusCode >= 300) {
13201 return [2 /*return*/, deserializeAws_json1_1PutRecordCommandError(output, context)];
13202 }
13203 return [4 /*yield*/, parseBody(output.body, context)];
13204 case 1:
13205 data = _a.sent();
13206 contents = {};
13207 contents = deserializeAws_json1_1PutRecordOutput(data, context);
13208 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13209 return [2 /*return*/, Promise.resolve(response)];
13210 }
13211 });
13212}); };
13213var deserializeAws_json1_1PutRecordCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13214 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message;
13215 var _m;
13216 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) {
13217 switch (_o.label) {
13218 case 0:
13219 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13220 _m = {};
13221 return [4 /*yield*/, parseBody(output.body, context)];
13222 case 1:
13223 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
13224 errorCode = "UnknownError";
13225 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13226 _b = errorCode;
13227 switch (_b) {
13228 case "InvalidArgumentException": return [3 /*break*/, 2];
13229 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13230 case "KMSAccessDeniedException": return [3 /*break*/, 4];
13231 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 4];
13232 case "KMSDisabledException": return [3 /*break*/, 6];
13233 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 6];
13234 case "KMSInvalidStateException": return [3 /*break*/, 8];
13235 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 8];
13236 case "KMSNotFoundException": return [3 /*break*/, 10];
13237 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 10];
13238 case "KMSOptInRequired": return [3 /*break*/, 12];
13239 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 12];
13240 case "KMSThrottlingException": return [3 /*break*/, 14];
13241 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 14];
13242 case "ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13243 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13244 case "ResourceNotFoundException": return [3 /*break*/, 18];
13245 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 18];
13246 }
13247 return [3 /*break*/, 20];
13248 case 2:
13249 _c = [{}];
13250 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13251 case 3:
13252 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) }]);
13253 return [3 /*break*/, 21];
13254 case 4:
13255 _d = [{}];
13256 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
13257 case 5:
13258 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) }]);
13259 return [3 /*break*/, 21];
13260 case 6:
13261 _e = [{}];
13262 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
13263 case 7:
13264 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) }]);
13265 return [3 /*break*/, 21];
13266 case 8:
13267 _f = [{}];
13268 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
13269 case 9:
13270 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) }]);
13271 return [3 /*break*/, 21];
13272 case 10:
13273 _g = [{}];
13274 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
13275 case 11:
13276 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) }]);
13277 return [3 /*break*/, 21];
13278 case 12:
13279 _h = [{}];
13280 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
13281 case 13:
13282 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) }]);
13283 return [3 /*break*/, 21];
13284 case 14:
13285 _j = [{}];
13286 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
13287 case 15:
13288 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) }]);
13289 return [3 /*break*/, 21];
13290 case 16:
13291 _k = [{}];
13292 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
13293 case 17:
13294 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) }]);
13295 return [3 /*break*/, 21];
13296 case 18:
13297 _l = [{}];
13298 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13299 case 19:
13300 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) }]);
13301 return [3 /*break*/, 21];
13302 case 20:
13303 parsedBody = parsedOutput.body;
13304 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13305 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) });
13306 _o.label = 21;
13307 case 21:
13308 message = response.message || response.Message || errorCode;
13309 response.message = message;
13310 delete response.Message;
13311 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13312 }
13313 });
13314}); };
13315var deserializeAws_json1_1PutRecordsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13316 var data, contents, response;
13317 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13318 switch (_a.label) {
13319 case 0:
13320 if (output.statusCode >= 300) {
13321 return [2 /*return*/, deserializeAws_json1_1PutRecordsCommandError(output, context)];
13322 }
13323 return [4 /*yield*/, parseBody(output.body, context)];
13324 case 1:
13325 data = _a.sent();
13326 contents = {};
13327 contents = deserializeAws_json1_1PutRecordsOutput(data, context);
13328 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13329 return [2 /*return*/, Promise.resolve(response)];
13330 }
13331 });
13332}); };
13333var deserializeAws_json1_1PutRecordsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13334 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message;
13335 var _m;
13336 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) {
13337 switch (_o.label) {
13338 case 0:
13339 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13340 _m = {};
13341 return [4 /*yield*/, parseBody(output.body, context)];
13342 case 1:
13343 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
13344 errorCode = "UnknownError";
13345 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13346 _b = errorCode;
13347 switch (_b) {
13348 case "InvalidArgumentException": return [3 /*break*/, 2];
13349 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13350 case "KMSAccessDeniedException": return [3 /*break*/, 4];
13351 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 4];
13352 case "KMSDisabledException": return [3 /*break*/, 6];
13353 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 6];
13354 case "KMSInvalidStateException": return [3 /*break*/, 8];
13355 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 8];
13356 case "KMSNotFoundException": return [3 /*break*/, 10];
13357 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 10];
13358 case "KMSOptInRequired": return [3 /*break*/, 12];
13359 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 12];
13360 case "KMSThrottlingException": return [3 /*break*/, 14];
13361 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 14];
13362 case "ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13363 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13364 case "ResourceNotFoundException": return [3 /*break*/, 18];
13365 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 18];
13366 }
13367 return [3 /*break*/, 20];
13368 case 2:
13369 _c = [{}];
13370 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13371 case 3:
13372 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) }]);
13373 return [3 /*break*/, 21];
13374 case 4:
13375 _d = [{}];
13376 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
13377 case 5:
13378 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) }]);
13379 return [3 /*break*/, 21];
13380 case 6:
13381 _e = [{}];
13382 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
13383 case 7:
13384 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) }]);
13385 return [3 /*break*/, 21];
13386 case 8:
13387 _f = [{}];
13388 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
13389 case 9:
13390 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) }]);
13391 return [3 /*break*/, 21];
13392 case 10:
13393 _g = [{}];
13394 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
13395 case 11:
13396 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) }]);
13397 return [3 /*break*/, 21];
13398 case 12:
13399 _h = [{}];
13400 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
13401 case 13:
13402 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) }]);
13403 return [3 /*break*/, 21];
13404 case 14:
13405 _j = [{}];
13406 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
13407 case 15:
13408 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) }]);
13409 return [3 /*break*/, 21];
13410 case 16:
13411 _k = [{}];
13412 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
13413 case 17:
13414 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) }]);
13415 return [3 /*break*/, 21];
13416 case 18:
13417 _l = [{}];
13418 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13419 case 19:
13420 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) }]);
13421 return [3 /*break*/, 21];
13422 case 20:
13423 parsedBody = parsedOutput.body;
13424 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13425 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) });
13426 _o.label = 21;
13427 case 21:
13428 message = response.message || response.Message || errorCode;
13429 response.message = message;
13430 delete response.Message;
13431 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13432 }
13433 });
13434}); };
13435var deserializeAws_json1_1RegisterStreamConsumerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13436 var data, contents, response;
13437 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13438 switch (_a.label) {
13439 case 0:
13440 if (output.statusCode >= 300) {
13441 return [2 /*return*/, deserializeAws_json1_1RegisterStreamConsumerCommandError(output, context)];
13442 }
13443 return [4 /*yield*/, parseBody(output.body, context)];
13444 case 1:
13445 data = _a.sent();
13446 contents = {};
13447 contents = deserializeAws_json1_1RegisterStreamConsumerOutput(data, context);
13448 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13449 return [2 /*return*/, Promise.resolve(response)];
13450 }
13451 });
13452}); };
13453var deserializeAws_json1_1RegisterStreamConsumerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13454 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13455 var _g;
13456 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13457 switch (_h.label) {
13458 case 0:
13459 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13460 _g = {};
13461 return [4 /*yield*/, parseBody(output.body, context)];
13462 case 1:
13463 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13464 errorCode = "UnknownError";
13465 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13466 _b = errorCode;
13467 switch (_b) {
13468 case "InvalidArgumentException": return [3 /*break*/, 2];
13469 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13470 case "LimitExceededException": return [3 /*break*/, 4];
13471 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13472 case "ResourceInUseException": return [3 /*break*/, 6];
13473 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13474 case "ResourceNotFoundException": return [3 /*break*/, 8];
13475 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13476 }
13477 return [3 /*break*/, 10];
13478 case 2:
13479 _c = [{}];
13480 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13481 case 3:
13482 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) }]);
13483 return [3 /*break*/, 11];
13484 case 4:
13485 _d = [{}];
13486 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13487 case 5:
13488 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) }]);
13489 return [3 /*break*/, 11];
13490 case 6:
13491 _e = [{}];
13492 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13493 case 7:
13494 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) }]);
13495 return [3 /*break*/, 11];
13496 case 8:
13497 _f = [{}];
13498 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13499 case 9:
13500 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) }]);
13501 return [3 /*break*/, 11];
13502 case 10:
13503 parsedBody = parsedOutput.body;
13504 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13505 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) });
13506 _h.label = 11;
13507 case 11:
13508 message = response.message || response.Message || errorCode;
13509 response.message = message;
13510 delete response.Message;
13511 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13512 }
13513 });
13514}); };
13515var deserializeAws_json1_1RemoveTagsFromStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13516 var response;
13517 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13518 switch (_a.label) {
13519 case 0:
13520 if (output.statusCode >= 300) {
13521 return [2 /*return*/, deserializeAws_json1_1RemoveTagsFromStreamCommandError(output, context)];
13522 }
13523 return [4 /*yield*/, collectBody(output.body, context)];
13524 case 1:
13525 _a.sent();
13526 response = {
13527 $metadata: deserializeMetadata(output),
13528 };
13529 return [2 /*return*/, Promise.resolve(response)];
13530 }
13531 });
13532}); };
13533var deserializeAws_json1_1RemoveTagsFromStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13534 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13535 var _g;
13536 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13537 switch (_h.label) {
13538 case 0:
13539 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13540 _g = {};
13541 return [4 /*yield*/, parseBody(output.body, context)];
13542 case 1:
13543 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13544 errorCode = "UnknownError";
13545 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13546 _b = errorCode;
13547 switch (_b) {
13548 case "InvalidArgumentException": return [3 /*break*/, 2];
13549 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13550 case "LimitExceededException": return [3 /*break*/, 4];
13551 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13552 case "ResourceInUseException": return [3 /*break*/, 6];
13553 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13554 case "ResourceNotFoundException": return [3 /*break*/, 8];
13555 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13556 }
13557 return [3 /*break*/, 10];
13558 case 2:
13559 _c = [{}];
13560 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13561 case 3:
13562 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) }]);
13563 return [3 /*break*/, 11];
13564 case 4:
13565 _d = [{}];
13566 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13567 case 5:
13568 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) }]);
13569 return [3 /*break*/, 11];
13570 case 6:
13571 _e = [{}];
13572 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13573 case 7:
13574 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) }]);
13575 return [3 /*break*/, 11];
13576 case 8:
13577 _f = [{}];
13578 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13579 case 9:
13580 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) }]);
13581 return [3 /*break*/, 11];
13582 case 10:
13583 parsedBody = parsedOutput.body;
13584 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13585 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) });
13586 _h.label = 11;
13587 case 11:
13588 message = response.message || response.Message || errorCode;
13589 response.message = message;
13590 delete response.Message;
13591 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13592 }
13593 });
13594}); };
13595var deserializeAws_json1_1SplitShardCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13596 var response;
13597 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13598 switch (_a.label) {
13599 case 0:
13600 if (output.statusCode >= 300) {
13601 return [2 /*return*/, deserializeAws_json1_1SplitShardCommandError(output, context)];
13602 }
13603 return [4 /*yield*/, collectBody(output.body, context)];
13604 case 1:
13605 _a.sent();
13606 response = {
13607 $metadata: deserializeMetadata(output),
13608 };
13609 return [2 /*return*/, Promise.resolve(response)];
13610 }
13611 });
13612}); };
13613var deserializeAws_json1_1SplitShardCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13614 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13615 var _g;
13616 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13617 switch (_h.label) {
13618 case 0:
13619 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13620 _g = {};
13621 return [4 /*yield*/, parseBody(output.body, context)];
13622 case 1:
13623 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13624 errorCode = "UnknownError";
13625 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13626 _b = errorCode;
13627 switch (_b) {
13628 case "InvalidArgumentException": return [3 /*break*/, 2];
13629 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13630 case "LimitExceededException": return [3 /*break*/, 4];
13631 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13632 case "ResourceInUseException": return [3 /*break*/, 6];
13633 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13634 case "ResourceNotFoundException": return [3 /*break*/, 8];
13635 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13636 }
13637 return [3 /*break*/, 10];
13638 case 2:
13639 _c = [{}];
13640 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13641 case 3:
13642 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) }]);
13643 return [3 /*break*/, 11];
13644 case 4:
13645 _d = [{}];
13646 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13647 case 5:
13648 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) }]);
13649 return [3 /*break*/, 11];
13650 case 6:
13651 _e = [{}];
13652 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13653 case 7:
13654 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) }]);
13655 return [3 /*break*/, 11];
13656 case 8:
13657 _f = [{}];
13658 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13659 case 9:
13660 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) }]);
13661 return [3 /*break*/, 11];
13662 case 10:
13663 parsedBody = parsedOutput.body;
13664 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13665 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) });
13666 _h.label = 11;
13667 case 11:
13668 message = response.message || response.Message || errorCode;
13669 response.message = message;
13670 delete response.Message;
13671 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13672 }
13673 });
13674}); };
13675var deserializeAws_json1_1StartStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13676 var response;
13677 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13678 switch (_a.label) {
13679 case 0:
13680 if (output.statusCode >= 300) {
13681 return [2 /*return*/, deserializeAws_json1_1StartStreamEncryptionCommandError(output, context)];
13682 }
13683 return [4 /*yield*/, collectBody(output.body, context)];
13684 case 1:
13685 _a.sent();
13686 response = {
13687 $metadata: deserializeMetadata(output),
13688 };
13689 return [2 /*return*/, Promise.resolve(response)];
13690 }
13691 });
13692}); };
13693var deserializeAws_json1_1StartStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13694 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, parsedBody, message;
13695 var _o;
13696 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_p) {
13697 switch (_p.label) {
13698 case 0:
13699 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13700 _o = {};
13701 return [4 /*yield*/, parseBody(output.body, context)];
13702 case 1:
13703 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
13704 errorCode = "UnknownError";
13705 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13706 _b = errorCode;
13707 switch (_b) {
13708 case "InvalidArgumentException": return [3 /*break*/, 2];
13709 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13710 case "KMSAccessDeniedException": return [3 /*break*/, 4];
13711 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 4];
13712 case "KMSDisabledException": return [3 /*break*/, 6];
13713 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 6];
13714 case "KMSInvalidStateException": return [3 /*break*/, 8];
13715 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 8];
13716 case "KMSNotFoundException": return [3 /*break*/, 10];
13717 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 10];
13718 case "KMSOptInRequired": return [3 /*break*/, 12];
13719 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 12];
13720 case "KMSThrottlingException": return [3 /*break*/, 14];
13721 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 14];
13722 case "LimitExceededException": return [3 /*break*/, 16];
13723 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 16];
13724 case "ResourceInUseException": return [3 /*break*/, 18];
13725 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 18];
13726 case "ResourceNotFoundException": return [3 /*break*/, 20];
13727 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 20];
13728 }
13729 return [3 /*break*/, 22];
13730 case 2:
13731 _c = [{}];
13732 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13733 case 3:
13734 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) }]);
13735 return [3 /*break*/, 23];
13736 case 4:
13737 _d = [{}];
13738 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
13739 case 5:
13740 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) }]);
13741 return [3 /*break*/, 23];
13742 case 6:
13743 _e = [{}];
13744 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
13745 case 7:
13746 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) }]);
13747 return [3 /*break*/, 23];
13748 case 8:
13749 _f = [{}];
13750 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
13751 case 9:
13752 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) }]);
13753 return [3 /*break*/, 23];
13754 case 10:
13755 _g = [{}];
13756 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
13757 case 11:
13758 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) }]);
13759 return [3 /*break*/, 23];
13760 case 12:
13761 _h = [{}];
13762 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
13763 case 13:
13764 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) }]);
13765 return [3 /*break*/, 23];
13766 case 14:
13767 _j = [{}];
13768 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
13769 case 15:
13770 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) }]);
13771 return [3 /*break*/, 23];
13772 case 16:
13773 _k = [{}];
13774 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13775 case 17:
13776 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) }]);
13777 return [3 /*break*/, 23];
13778 case 18:
13779 _l = [{}];
13780 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13781 case 19:
13782 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) }]);
13783 return [3 /*break*/, 23];
13784 case 20:
13785 _m = [{}];
13786 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13787 case 21:
13788 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) }]);
13789 return [3 /*break*/, 23];
13790 case 22:
13791 parsedBody = parsedOutput.body;
13792 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13793 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) });
13794 _p.label = 23;
13795 case 23:
13796 message = response.message || response.Message || errorCode;
13797 response.message = message;
13798 delete response.Message;
13799 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13800 }
13801 });
13802}); };
13803var deserializeAws_json1_1StopStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13804 var response;
13805 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13806 switch (_a.label) {
13807 case 0:
13808 if (output.statusCode >= 300) {
13809 return [2 /*return*/, deserializeAws_json1_1StopStreamEncryptionCommandError(output, context)];
13810 }
13811 return [4 /*yield*/, collectBody(output.body, context)];
13812 case 1:
13813 _a.sent();
13814 response = {
13815 $metadata: deserializeMetadata(output),
13816 };
13817 return [2 /*return*/, Promise.resolve(response)];
13818 }
13819 });
13820}); };
13821var deserializeAws_json1_1StopStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13822 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13823 var _g;
13824 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13825 switch (_h.label) {
13826 case 0:
13827 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13828 _g = {};
13829 return [4 /*yield*/, parseBody(output.body, context)];
13830 case 1:
13831 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13832 errorCode = "UnknownError";
13833 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13834 _b = errorCode;
13835 switch (_b) {
13836 case "InvalidArgumentException": return [3 /*break*/, 2];
13837 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13838 case "LimitExceededException": return [3 /*break*/, 4];
13839 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13840 case "ResourceInUseException": return [3 /*break*/, 6];
13841 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13842 case "ResourceNotFoundException": return [3 /*break*/, 8];
13843 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13844 }
13845 return [3 /*break*/, 10];
13846 case 2:
13847 _c = [{}];
13848 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13849 case 3:
13850 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) }]);
13851 return [3 /*break*/, 11];
13852 case 4:
13853 _d = [{}];
13854 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13855 case 5:
13856 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) }]);
13857 return [3 /*break*/, 11];
13858 case 6:
13859 _e = [{}];
13860 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13861 case 7:
13862 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) }]);
13863 return [3 /*break*/, 11];
13864 case 8:
13865 _f = [{}];
13866 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13867 case 9:
13868 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) }]);
13869 return [3 /*break*/, 11];
13870 case 10:
13871 parsedBody = parsedOutput.body;
13872 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13873 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) });
13874 _h.label = 11;
13875 case 11:
13876 message = response.message || response.Message || errorCode;
13877 response.message = message;
13878 delete response.Message;
13879 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13880 }
13881 });
13882}); };
13883var deserializeAws_json1_1SubscribeToShardCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13884 var data, contents, response;
13885 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13886 switch (_a.label) {
13887 case 0:
13888 if (output.statusCode >= 300) {
13889 return [2 /*return*/, deserializeAws_json1_1SubscribeToShardCommandError(output, context)];
13890 }
13891 return [4 /*yield*/, parseBody(output.body, context)];
13892 case 1:
13893 data = _a.sent();
13894 contents = {};
13895 contents = deserializeAws_json1_1SubscribeToShardOutput(data, context);
13896 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13897 return [2 /*return*/, Promise.resolve(response)];
13898 }
13899 });
13900}); };
13901var deserializeAws_json1_1SubscribeToShardCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13902 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13903 var _g;
13904 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13905 switch (_h.label) {
13906 case 0:
13907 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13908 _g = {};
13909 return [4 /*yield*/, parseBody(output.body, context)];
13910 case 1:
13911 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13912 errorCode = "UnknownError";
13913 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13914 _b = errorCode;
13915 switch (_b) {
13916 case "InvalidArgumentException": return [3 /*break*/, 2];
13917 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13918 case "LimitExceededException": return [3 /*break*/, 4];
13919 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13920 case "ResourceInUseException": return [3 /*break*/, 6];
13921 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13922 case "ResourceNotFoundException": return [3 /*break*/, 8];
13923 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13924 }
13925 return [3 /*break*/, 10];
13926 case 2:
13927 _c = [{}];
13928 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13929 case 3:
13930 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) }]);
13931 return [3 /*break*/, 11];
13932 case 4:
13933 _d = [{}];
13934 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13935 case 5:
13936 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) }]);
13937 return [3 /*break*/, 11];
13938 case 6:
13939 _e = [{}];
13940 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13941 case 7:
13942 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) }]);
13943 return [3 /*break*/, 11];
13944 case 8:
13945 _f = [{}];
13946 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13947 case 9:
13948 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) }]);
13949 return [3 /*break*/, 11];
13950 case 10:
13951 parsedBody = parsedOutput.body;
13952 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13953 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) });
13954 _h.label = 11;
13955 case 11:
13956 message = response.message || response.Message || errorCode;
13957 response.message = message;
13958 delete response.Message;
13959 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13960 }
13961 });
13962}); };
13963var deserializeAws_json1_1UpdateShardCountCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13964 var data, contents, response;
13965 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13966 switch (_a.label) {
13967 case 0:
13968 if (output.statusCode >= 300) {
13969 return [2 /*return*/, deserializeAws_json1_1UpdateShardCountCommandError(output, context)];
13970 }
13971 return [4 /*yield*/, parseBody(output.body, context)];
13972 case 1:
13973 data = _a.sent();
13974 contents = {};
13975 contents = deserializeAws_json1_1UpdateShardCountOutput(data, context);
13976 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13977 return [2 /*return*/, Promise.resolve(response)];
13978 }
13979 });
13980}); };
13981var deserializeAws_json1_1UpdateShardCountCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13982 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13983 var _g;
13984 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13985 switch (_h.label) {
13986 case 0:
13987 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13988 _g = {};
13989 return [4 /*yield*/, parseBody(output.body, context)];
13990 case 1:
13991 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13992 errorCode = "UnknownError";
13993 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13994 _b = errorCode;
13995 switch (_b) {
13996 case "InvalidArgumentException": return [3 /*break*/, 2];
13997 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13998 case "LimitExceededException": return [3 /*break*/, 4];
13999 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
14000 case "ResourceInUseException": return [3 /*break*/, 6];
14001 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
14002 case "ResourceNotFoundException": return [3 /*break*/, 8];
14003 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
14004 }
14005 return [3 /*break*/, 10];
14006 case 2:
14007 _c = [{}];
14008 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
14009 case 3:
14010 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) }]);
14011 return [3 /*break*/, 11];
14012 case 4:
14013 _d = [{}];
14014 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
14015 case 5:
14016 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) }]);
14017 return [3 /*break*/, 11];
14018 case 6:
14019 _e = [{}];
14020 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
14021 case 7:
14022 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) }]);
14023 return [3 /*break*/, 11];
14024 case 8:
14025 _f = [{}];
14026 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
14027 case 9:
14028 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) }]);
14029 return [3 /*break*/, 11];
14030 case 10:
14031 parsedBody = parsedOutput.body;
14032 errorCode = parsedBody.code || parsedBody.Code || errorCode;
14033 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) });
14034 _h.label = 11;
14035 case 11:
14036 message = response.message || response.Message || errorCode;
14037 response.message = message;
14038 delete response.Message;
14039 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
14040 }
14041 });
14042}); };
14043var deserializeAws_json1_1ExpiredIteratorExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14044 var body, deserialized, contents;
14045 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14046 body = parsedOutput.body;
14047 deserialized = deserializeAws_json1_1ExpiredIteratorException(body, context);
14048 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ExpiredIteratorException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14049 return [2 /*return*/, contents];
14050 });
14051}); };
14052var deserializeAws_json1_1ExpiredNextTokenExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14053 var body, deserialized, contents;
14054 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14055 body = parsedOutput.body;
14056 deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
14057 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ExpiredNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14058 return [2 /*return*/, contents];
14059 });
14060}); };
14061var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14062 var body, deserialized, contents;
14063 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14064 body = parsedOutput.body;
14065 deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
14066 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14067 return [2 /*return*/, contents];
14068 });
14069}); };
14070var deserializeAws_json1_1KMSAccessDeniedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14071 var body, deserialized, contents;
14072 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14073 body = parsedOutput.body;
14074 deserialized = deserializeAws_json1_1KMSAccessDeniedException(body, context);
14075 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSAccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14076 return [2 /*return*/, contents];
14077 });
14078}); };
14079var deserializeAws_json1_1KMSDisabledExceptionResponse = 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_1KMSDisabledException(body, context);
14084 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSDisabledException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14085 return [2 /*return*/, contents];
14086 });
14087}); };
14088var deserializeAws_json1_1KMSInvalidStateExceptionResponse = 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_1KMSInvalidStateException(body, context);
14093 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSInvalidStateException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14094 return [2 /*return*/, contents];
14095 });
14096}); };
14097var deserializeAws_json1_1KMSNotFoundExceptionResponse = 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_1KMSNotFoundException(body, context);
14102 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14103 return [2 /*return*/, contents];
14104 });
14105}); };
14106var deserializeAws_json1_1KMSOptInRequiredResponse = 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_1KMSOptInRequired(body, context);
14111 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSOptInRequired", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14112 return [2 /*return*/, contents];
14113 });
14114}); };
14115var deserializeAws_json1_1KMSThrottlingExceptionResponse = 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_1KMSThrottlingException(body, context);
14120 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14121 return [2 /*return*/, contents];
14122 });
14123}); };
14124var deserializeAws_json1_1LimitExceededExceptionResponse = 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_1LimitExceededException(body, context);
14129 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14130 return [2 /*return*/, contents];
14131 });
14132}); };
14133var deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = 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_1ProvisionedThroughputExceededException(body, context);
14138 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ProvisionedThroughputExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14139 return [2 /*return*/, contents];
14140 });
14141}); };
14142var deserializeAws_json1_1ResourceInUseExceptionResponse = 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_1ResourceInUseException(body, context);
14147 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14148 return [2 /*return*/, contents];
14149 });
14150}); };
14151var deserializeAws_json1_1ResourceNotFoundExceptionResponse = 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_1ResourceNotFoundException(body, context);
14156 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14157 return [2 /*return*/, contents];
14158 });
14159}); };
14160var serializeAws_json1_1AddTagsToStreamInput = function (input, context) {
14161 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) }));
14162};
14163var serializeAws_json1_1CreateStreamInput = function (input, context) {
14164 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 }));
14165};
14166var serializeAws_json1_1DecreaseStreamRetentionPeriodInput = function (input, context) {
14167 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RetentionPeriodHours !== undefined &&
14168 input.RetentionPeriodHours !== null && { RetentionPeriodHours: input.RetentionPeriodHours })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14169};
14170var serializeAws_json1_1DeleteStreamInput = function (input, context) {
14171 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EnforceConsumerDeletion !== undefined &&
14172 input.EnforceConsumerDeletion !== null && { EnforceConsumerDeletion: input.EnforceConsumerDeletion })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14173};
14174var serializeAws_json1_1DeregisterStreamConsumerInput = function (input, context) {
14175 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 }));
14176};
14177var serializeAws_json1_1DescribeLimitsInput = function (input, context) {
14178 return {};
14179};
14180var serializeAws_json1_1DescribeStreamConsumerInput = function (input, context) {
14181 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 }));
14182};
14183var serializeAws_json1_1DescribeStreamInput = function (input, context) {
14184 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 &&
14185 input.ExclusiveStartShardId !== null && { ExclusiveStartShardId: input.ExclusiveStartShardId })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14186};
14187var serializeAws_json1_1DescribeStreamSummaryInput = function (input, context) {
14188 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14189};
14190var serializeAws_json1_1DisableEnhancedMonitoringInput = function (input, context) {
14191 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShardLevelMetrics !== undefined &&
14192 input.ShardLevelMetrics !== null && {
14193 ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
14194 })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14195};
14196var serializeAws_json1_1EnableEnhancedMonitoringInput = function (input, context) {
14197 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShardLevelMetrics !== undefined &&
14198 input.ShardLevelMetrics !== null && {
14199 ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
14200 })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14201};
14202var serializeAws_json1_1GetRecordsInput = function (input, context) {
14203 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 }));
14204};
14205var serializeAws_json1_1GetShardIteratorInput = function (input, context) {
14206 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 &&
14207 input.ShardIteratorType !== null && { ShardIteratorType: input.ShardIteratorType })), (input.StartingSequenceNumber !== undefined &&
14208 input.StartingSequenceNumber !== null && { StartingSequenceNumber: input.StartingSequenceNumber })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.Timestamp !== undefined &&
14209 input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }));
14210};
14211var serializeAws_json1_1IncreaseStreamRetentionPeriodInput = function (input, context) {
14212 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RetentionPeriodHours !== undefined &&
14213 input.RetentionPeriodHours !== null && { RetentionPeriodHours: input.RetentionPeriodHours })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14214};
14215var serializeAws_json1_1ListShardsInput = function (input, context) {
14216 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 &&
14217 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 &&
14218 input.ShardFilter !== null && { ShardFilter: serializeAws_json1_1ShardFilter(input.ShardFilter, context) })), (input.StreamCreationTimestamp !== undefined &&
14219 input.StreamCreationTimestamp !== null && {
14220 StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
14221 })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14222};
14223var serializeAws_json1_1ListStreamConsumersInput = function (input, context) {
14224 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 &&
14225 input.StreamCreationTimestamp !== null && {
14226 StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
14227 }));
14228};
14229var serializeAws_json1_1ListStreamsInput = function (input, context) {
14230 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ExclusiveStartStreamName !== undefined &&
14231 input.ExclusiveStartStreamName !== null && { ExclusiveStartStreamName: input.ExclusiveStartStreamName })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
14232};
14233var serializeAws_json1_1ListTagsForStreamInput = function (input, context) {
14234 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 &&
14235 input.ExclusiveStartTagKey !== null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14236};
14237var serializeAws_json1_1MergeShardsInput = function (input, context) {
14238 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 &&
14239 input.AdjacentShardToMerge !== null && { AdjacentShardToMerge: input.AdjacentShardToMerge })), (input.ShardToMerge !== undefined && input.ShardToMerge !== null && { ShardToMerge: input.ShardToMerge })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14240};
14241var serializeAws_json1_1MetricsNameList = function (input, context) {
14242 return input
14243 .filter(function (e) { return e != null; })
14244 .map(function (entry) {
14245 if (entry === null) {
14246 return null;
14247 }
14248 return entry;
14249 });
14250};
14251var serializeAws_json1_1PutRecordInput = 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"])({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) })), (input.ExplicitHashKey !== undefined &&
14253 input.ExplicitHashKey !== null && { ExplicitHashKey: input.ExplicitHashKey })), (input.PartitionKey !== undefined && input.PartitionKey !== null && { PartitionKey: input.PartitionKey })), (input.SequenceNumberForOrdering !== undefined &&
14254 input.SequenceNumberForOrdering !== null && { SequenceNumberForOrdering: input.SequenceNumberForOrdering })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14255};
14256var serializeAws_json1_1PutRecordsInput = function (input, context) {
14257 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Records !== undefined &&
14258 input.Records !== null && { Records: serializeAws_json1_1PutRecordsRequestEntryList(input.Records, context) })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14259};
14260var serializeAws_json1_1PutRecordsRequestEntry = function (input, context) {
14261 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 &&
14262 input.ExplicitHashKey !== null && { ExplicitHashKey: input.ExplicitHashKey })), (input.PartitionKey !== undefined && input.PartitionKey !== null && { PartitionKey: input.PartitionKey }));
14263};
14264var serializeAws_json1_1PutRecordsRequestEntryList = function (input, context) {
14265 return input
14266 .filter(function (e) { return e != null; })
14267 .map(function (entry) {
14268 if (entry === null) {
14269 return null;
14270 }
14271 return serializeAws_json1_1PutRecordsRequestEntry(entry, context);
14272 });
14273};
14274var serializeAws_json1_1RegisterStreamConsumerInput = function (input, context) {
14275 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 }));
14276};
14277var serializeAws_json1_1RemoveTagsFromStreamInput = function (input, context) {
14278 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 &&
14279 input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
14280};
14281var serializeAws_json1_1ShardFilter = function (input, context) {
14282 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 &&
14283 input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
14284};
14285var serializeAws_json1_1SplitShardInput = function (input, context) {
14286 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 &&
14287 input.NewStartingHashKey !== null && { NewStartingHashKey: input.NewStartingHashKey })), (input.ShardToSplit !== undefined && input.ShardToSplit !== null && { ShardToSplit: input.ShardToSplit })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14288};
14289var serializeAws_json1_1StartingPosition = function (input, context) {
14290 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 &&
14291 input.SequenceNumber !== null && { SequenceNumber: input.SequenceNumber })), (input.Timestamp !== undefined &&
14292 input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
14293};
14294var serializeAws_json1_1StartStreamEncryptionInput = function (input, context) {
14295 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 &&
14296 input.EncryptionType !== null && { EncryptionType: input.EncryptionType })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14297};
14298var serializeAws_json1_1StopStreamEncryptionInput = function (input, context) {
14299 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 &&
14300 input.EncryptionType !== null && { EncryptionType: input.EncryptionType })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14301};
14302var serializeAws_json1_1SubscribeToShardInput = function (input, context) {
14303 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 &&
14304 input.StartingPosition !== null && {
14305 StartingPosition: serializeAws_json1_1StartingPosition(input.StartingPosition, context),
14306 }));
14307};
14308var serializeAws_json1_1TagKeyList = function (input, context) {
14309 return input
14310 .filter(function (e) { return e != null; })
14311 .map(function (entry) {
14312 if (entry === null) {
14313 return null;
14314 }
14315 return entry;
14316 });
14317};
14318var serializeAws_json1_1TagMap = function (input, context) {
14319 return Object.entries(input).reduce(function (acc, _a) {
14320 var _b;
14321 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
14322 if (value === null) {
14323 return acc;
14324 }
14325 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
14326 }, {});
14327};
14328var serializeAws_json1_1UpdateShardCountInput = function (input, context) {
14329 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 &&
14330 input.TargetShardCount !== null && { TargetShardCount: input.TargetShardCount }));
14331};
14332var deserializeAws_json1_1ChildShard = function (output, context) {
14333 return {
14334 HashKeyRange: output.HashKeyRange !== undefined && output.HashKeyRange !== null
14335 ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context)
14336 : undefined,
14337 ParentShards: output.ParentShards !== undefined && output.ParentShards !== null
14338 ? deserializeAws_json1_1ShardIdList(output.ParentShards, context)
14339 : undefined,
14340 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14341 };
14342};
14343var deserializeAws_json1_1ChildShardList = function (output, context) {
14344 return (output || [])
14345 .filter(function (e) { return e != null; })
14346 .map(function (entry) {
14347 if (entry === null) {
14348 return null;
14349 }
14350 return deserializeAws_json1_1ChildShard(entry, context);
14351 });
14352};
14353var deserializeAws_json1_1Consumer = function (output, context) {
14354 return {
14355 ConsumerARN: output.ConsumerARN !== undefined && output.ConsumerARN !== null ? output.ConsumerARN : undefined,
14356 ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
14357 ? new Date(Math.round(output.ConsumerCreationTimestamp * 1000))
14358 : undefined,
14359 ConsumerName: output.ConsumerName !== undefined && output.ConsumerName !== null ? output.ConsumerName : undefined,
14360 ConsumerStatus: output.ConsumerStatus !== undefined && output.ConsumerStatus !== null ? output.ConsumerStatus : undefined,
14361 };
14362};
14363var deserializeAws_json1_1ConsumerDescription = function (output, context) {
14364 return {
14365 ConsumerARN: output.ConsumerARN !== undefined && output.ConsumerARN !== null ? output.ConsumerARN : undefined,
14366 ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
14367 ? new Date(Math.round(output.ConsumerCreationTimestamp * 1000))
14368 : undefined,
14369 ConsumerName: output.ConsumerName !== undefined && output.ConsumerName !== null ? output.ConsumerName : undefined,
14370 ConsumerStatus: output.ConsumerStatus !== undefined && output.ConsumerStatus !== null ? output.ConsumerStatus : undefined,
14371 StreamARN: output.StreamARN !== undefined && output.StreamARN !== null ? output.StreamARN : undefined,
14372 };
14373};
14374var deserializeAws_json1_1ConsumerList = function (output, context) {
14375 return (output || [])
14376 .filter(function (e) { return e != null; })
14377 .map(function (entry) {
14378 if (entry === null) {
14379 return null;
14380 }
14381 return deserializeAws_json1_1Consumer(entry, context);
14382 });
14383};
14384var deserializeAws_json1_1DescribeLimitsOutput = function (output, context) {
14385 return {
14386 OpenShardCount: output.OpenShardCount !== undefined && output.OpenShardCount !== null ? output.OpenShardCount : undefined,
14387 ShardLimit: output.ShardLimit !== undefined && output.ShardLimit !== null ? output.ShardLimit : undefined,
14388 };
14389};
14390var deserializeAws_json1_1DescribeStreamConsumerOutput = function (output, context) {
14391 return {
14392 ConsumerDescription: output.ConsumerDescription !== undefined && output.ConsumerDescription !== null
14393 ? deserializeAws_json1_1ConsumerDescription(output.ConsumerDescription, context)
14394 : undefined,
14395 };
14396};
14397var deserializeAws_json1_1DescribeStreamOutput = function (output, context) {
14398 return {
14399 StreamDescription: output.StreamDescription !== undefined && output.StreamDescription !== null
14400 ? deserializeAws_json1_1StreamDescription(output.StreamDescription, context)
14401 : undefined,
14402 };
14403};
14404var deserializeAws_json1_1DescribeStreamSummaryOutput = function (output, context) {
14405 return {
14406 StreamDescriptionSummary: output.StreamDescriptionSummary !== undefined && output.StreamDescriptionSummary !== null
14407 ? deserializeAws_json1_1StreamDescriptionSummary(output.StreamDescriptionSummary, context)
14408 : undefined,
14409 };
14410};
14411var deserializeAws_json1_1EnhancedMetrics = function (output, context) {
14412 return {
14413 ShardLevelMetrics: output.ShardLevelMetrics !== undefined && output.ShardLevelMetrics !== null
14414 ? deserializeAws_json1_1MetricsNameList(output.ShardLevelMetrics, context)
14415 : undefined,
14416 };
14417};
14418var deserializeAws_json1_1EnhancedMonitoringList = function (output, context) {
14419 return (output || [])
14420 .filter(function (e) { return e != null; })
14421 .map(function (entry) {
14422 if (entry === null) {
14423 return null;
14424 }
14425 return deserializeAws_json1_1EnhancedMetrics(entry, context);
14426 });
14427};
14428var deserializeAws_json1_1EnhancedMonitoringOutput = function (output, context) {
14429 return {
14430 CurrentShardLevelMetrics: output.CurrentShardLevelMetrics !== undefined && output.CurrentShardLevelMetrics !== null
14431 ? deserializeAws_json1_1MetricsNameList(output.CurrentShardLevelMetrics, context)
14432 : undefined,
14433 DesiredShardLevelMetrics: output.DesiredShardLevelMetrics !== undefined && output.DesiredShardLevelMetrics !== null
14434 ? deserializeAws_json1_1MetricsNameList(output.DesiredShardLevelMetrics, context)
14435 : undefined,
14436 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14437 };
14438};
14439var deserializeAws_json1_1ExpiredIteratorException = function (output, context) {
14440 return {
14441 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14442 };
14443};
14444var deserializeAws_json1_1ExpiredNextTokenException = function (output, context) {
14445 return {
14446 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14447 };
14448};
14449var deserializeAws_json1_1GetRecordsOutput = function (output, context) {
14450 return {
14451 ChildShards: output.ChildShards !== undefined && output.ChildShards !== null
14452 ? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
14453 : undefined,
14454 MillisBehindLatest: output.MillisBehindLatest !== undefined && output.MillisBehindLatest !== null
14455 ? output.MillisBehindLatest
14456 : undefined,
14457 NextShardIterator: output.NextShardIterator !== undefined && output.NextShardIterator !== null
14458 ? output.NextShardIterator
14459 : undefined,
14460 Records: output.Records !== undefined && output.Records !== null
14461 ? deserializeAws_json1_1RecordList(output.Records, context)
14462 : undefined,
14463 };
14464};
14465var deserializeAws_json1_1GetShardIteratorOutput = function (output, context) {
14466 return {
14467 ShardIterator: output.ShardIterator !== undefined && output.ShardIterator !== null ? output.ShardIterator : undefined,
14468 };
14469};
14470var deserializeAws_json1_1HashKeyRange = function (output, context) {
14471 return {
14472 EndingHashKey: output.EndingHashKey !== undefined && output.EndingHashKey !== null ? output.EndingHashKey : undefined,
14473 StartingHashKey: output.StartingHashKey !== undefined && output.StartingHashKey !== null ? output.StartingHashKey : undefined,
14474 };
14475};
14476var deserializeAws_json1_1InternalFailureException = function (output, context) {
14477 return {
14478 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14479 };
14480};
14481var deserializeAws_json1_1InvalidArgumentException = function (output, context) {
14482 return {
14483 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14484 };
14485};
14486var deserializeAws_json1_1KMSAccessDeniedException = function (output, context) {
14487 return {
14488 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14489 };
14490};
14491var deserializeAws_json1_1KMSDisabledException = function (output, context) {
14492 return {
14493 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14494 };
14495};
14496var deserializeAws_json1_1KMSInvalidStateException = function (output, context) {
14497 return {
14498 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14499 };
14500};
14501var deserializeAws_json1_1KMSNotFoundException = function (output, context) {
14502 return {
14503 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14504 };
14505};
14506var deserializeAws_json1_1KMSOptInRequired = function (output, context) {
14507 return {
14508 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14509 };
14510};
14511var deserializeAws_json1_1KMSThrottlingException = function (output, context) {
14512 return {
14513 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14514 };
14515};
14516var deserializeAws_json1_1LimitExceededException = function (output, context) {
14517 return {
14518 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14519 };
14520};
14521var deserializeAws_json1_1ListShardsOutput = function (output, context) {
14522 return {
14523 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
14524 Shards: output.Shards !== undefined && output.Shards !== null
14525 ? deserializeAws_json1_1ShardList(output.Shards, context)
14526 : undefined,
14527 };
14528};
14529var deserializeAws_json1_1ListStreamConsumersOutput = function (output, context) {
14530 return {
14531 Consumers: output.Consumers !== undefined && output.Consumers !== null
14532 ? deserializeAws_json1_1ConsumerList(output.Consumers, context)
14533 : undefined,
14534 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
14535 };
14536};
14537var deserializeAws_json1_1ListStreamsOutput = function (output, context) {
14538 return {
14539 HasMoreStreams: output.HasMoreStreams !== undefined && output.HasMoreStreams !== null ? output.HasMoreStreams : undefined,
14540 StreamNames: output.StreamNames !== undefined && output.StreamNames !== null
14541 ? deserializeAws_json1_1StreamNameList(output.StreamNames, context)
14542 : undefined,
14543 };
14544};
14545var deserializeAws_json1_1ListTagsForStreamOutput = function (output, context) {
14546 return {
14547 HasMoreTags: output.HasMoreTags !== undefined && output.HasMoreTags !== null ? output.HasMoreTags : undefined,
14548 Tags: output.Tags !== undefined && output.Tags !== null
14549 ? deserializeAws_json1_1TagList(output.Tags, context)
14550 : undefined,
14551 };
14552};
14553var deserializeAws_json1_1MetricsNameList = function (output, context) {
14554 return (output || [])
14555 .filter(function (e) { return e != null; })
14556 .map(function (entry) {
14557 if (entry === null) {
14558 return null;
14559 }
14560 return entry;
14561 });
14562};
14563var deserializeAws_json1_1ProvisionedThroughputExceededException = function (output, context) {
14564 return {
14565 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14566 };
14567};
14568var deserializeAws_json1_1PutRecordOutput = function (output, context) {
14569 return {
14570 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14571 SequenceNumber: output.SequenceNumber !== undefined && output.SequenceNumber !== null ? output.SequenceNumber : undefined,
14572 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14573 };
14574};
14575var deserializeAws_json1_1PutRecordsOutput = function (output, context) {
14576 return {
14577 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14578 FailedRecordCount: output.FailedRecordCount !== undefined && output.FailedRecordCount !== null
14579 ? output.FailedRecordCount
14580 : undefined,
14581 Records: output.Records !== undefined && output.Records !== null
14582 ? deserializeAws_json1_1PutRecordsResultEntryList(output.Records, context)
14583 : undefined,
14584 };
14585};
14586var deserializeAws_json1_1PutRecordsResultEntry = function (output, context) {
14587 return {
14588 ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined,
14589 ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null ? output.ErrorMessage : undefined,
14590 SequenceNumber: output.SequenceNumber !== undefined && output.SequenceNumber !== null ? output.SequenceNumber : undefined,
14591 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14592 };
14593};
14594var deserializeAws_json1_1PutRecordsResultEntryList = function (output, context) {
14595 return (output || [])
14596 .filter(function (e) { return e != null; })
14597 .map(function (entry) {
14598 if (entry === null) {
14599 return null;
14600 }
14601 return deserializeAws_json1_1PutRecordsResultEntry(entry, context);
14602 });
14603};
14604var deserializeAws_json1_1_Record = function (output, context) {
14605 return {
14606 ApproximateArrivalTimestamp: output.ApproximateArrivalTimestamp !== undefined && output.ApproximateArrivalTimestamp !== null
14607 ? new Date(Math.round(output.ApproximateArrivalTimestamp * 1000))
14608 : undefined,
14609 Data: output.Data !== undefined && output.Data !== null ? context.base64Decoder(output.Data) : undefined,
14610 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14611 PartitionKey: output.PartitionKey !== undefined && output.PartitionKey !== null ? output.PartitionKey : undefined,
14612 SequenceNumber: output.SequenceNumber !== undefined && output.SequenceNumber !== null ? output.SequenceNumber : undefined,
14613 };
14614};
14615var deserializeAws_json1_1RecordList = function (output, context) {
14616 return (output || [])
14617 .filter(function (e) { return e != null; })
14618 .map(function (entry) {
14619 if (entry === null) {
14620 return null;
14621 }
14622 return deserializeAws_json1_1_Record(entry, context);
14623 });
14624};
14625var deserializeAws_json1_1RegisterStreamConsumerOutput = function (output, context) {
14626 return {
14627 Consumer: output.Consumer !== undefined && output.Consumer !== null
14628 ? deserializeAws_json1_1Consumer(output.Consumer, context)
14629 : undefined,
14630 };
14631};
14632var deserializeAws_json1_1ResourceInUseException = function (output, context) {
14633 return {
14634 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14635 };
14636};
14637var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
14638 return {
14639 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14640 };
14641};
14642var deserializeAws_json1_1SequenceNumberRange = function (output, context) {
14643 return {
14644 EndingSequenceNumber: output.EndingSequenceNumber !== undefined && output.EndingSequenceNumber !== null
14645 ? output.EndingSequenceNumber
14646 : undefined,
14647 StartingSequenceNumber: output.StartingSequenceNumber !== undefined && output.StartingSequenceNumber !== null
14648 ? output.StartingSequenceNumber
14649 : undefined,
14650 };
14651};
14652var deserializeAws_json1_1Shard = function (output, context) {
14653 return {
14654 AdjacentParentShardId: output.AdjacentParentShardId !== undefined && output.AdjacentParentShardId !== null
14655 ? output.AdjacentParentShardId
14656 : undefined,
14657 HashKeyRange: output.HashKeyRange !== undefined && output.HashKeyRange !== null
14658 ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context)
14659 : undefined,
14660 ParentShardId: output.ParentShardId !== undefined && output.ParentShardId !== null ? output.ParentShardId : undefined,
14661 SequenceNumberRange: output.SequenceNumberRange !== undefined && output.SequenceNumberRange !== null
14662 ? deserializeAws_json1_1SequenceNumberRange(output.SequenceNumberRange, context)
14663 : undefined,
14664 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14665 };
14666};
14667var deserializeAws_json1_1ShardIdList = function (output, context) {
14668 return (output || [])
14669 .filter(function (e) { return e != null; })
14670 .map(function (entry) {
14671 if (entry === null) {
14672 return null;
14673 }
14674 return entry;
14675 });
14676};
14677var deserializeAws_json1_1ShardList = function (output, context) {
14678 return (output || [])
14679 .filter(function (e) { return e != null; })
14680 .map(function (entry) {
14681 if (entry === null) {
14682 return null;
14683 }
14684 return deserializeAws_json1_1Shard(entry, context);
14685 });
14686};
14687var deserializeAws_json1_1StreamDescription = function (output, context) {
14688 return {
14689 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14690 EnhancedMonitoring: output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null
14691 ? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
14692 : undefined,
14693 HasMoreShards: output.HasMoreShards !== undefined && output.HasMoreShards !== null ? output.HasMoreShards : undefined,
14694 KeyId: output.KeyId !== undefined && output.KeyId !== null ? output.KeyId : undefined,
14695 RetentionPeriodHours: output.RetentionPeriodHours !== undefined && output.RetentionPeriodHours !== null
14696 ? output.RetentionPeriodHours
14697 : undefined,
14698 Shards: output.Shards !== undefined && output.Shards !== null
14699 ? deserializeAws_json1_1ShardList(output.Shards, context)
14700 : undefined,
14701 StreamARN: output.StreamARN !== undefined && output.StreamARN !== null ? output.StreamARN : undefined,
14702 StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
14703 ? new Date(Math.round(output.StreamCreationTimestamp * 1000))
14704 : undefined,
14705 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14706 StreamStatus: output.StreamStatus !== undefined && output.StreamStatus !== null ? output.StreamStatus : undefined,
14707 };
14708};
14709var deserializeAws_json1_1StreamDescriptionSummary = function (output, context) {
14710 return {
14711 ConsumerCount: output.ConsumerCount !== undefined && output.ConsumerCount !== null ? output.ConsumerCount : undefined,
14712 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14713 EnhancedMonitoring: output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null
14714 ? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
14715 : undefined,
14716 KeyId: output.KeyId !== undefined && output.KeyId !== null ? output.KeyId : undefined,
14717 OpenShardCount: output.OpenShardCount !== undefined && output.OpenShardCount !== null ? output.OpenShardCount : undefined,
14718 RetentionPeriodHours: output.RetentionPeriodHours !== undefined && output.RetentionPeriodHours !== null
14719 ? output.RetentionPeriodHours
14720 : undefined,
14721 StreamARN: output.StreamARN !== undefined && output.StreamARN !== null ? output.StreamARN : undefined,
14722 StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
14723 ? new Date(Math.round(output.StreamCreationTimestamp * 1000))
14724 : undefined,
14725 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14726 StreamStatus: output.StreamStatus !== undefined && output.StreamStatus !== null ? output.StreamStatus : undefined,
14727 };
14728};
14729var deserializeAws_json1_1StreamNameList = function (output, context) {
14730 return (output || [])
14731 .filter(function (e) { return e != null; })
14732 .map(function (entry) {
14733 if (entry === null) {
14734 return null;
14735 }
14736 return entry;
14737 });
14738};
14739var deserializeAws_json1_1SubscribeToShardEvent = function (output, context) {
14740 return {
14741 ChildShards: output.ChildShards !== undefined && output.ChildShards !== null
14742 ? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
14743 : undefined,
14744 ContinuationSequenceNumber: output.ContinuationSequenceNumber !== undefined && output.ContinuationSequenceNumber !== null
14745 ? output.ContinuationSequenceNumber
14746 : undefined,
14747 MillisBehindLatest: output.MillisBehindLatest !== undefined && output.MillisBehindLatest !== null
14748 ? output.MillisBehindLatest
14749 : undefined,
14750 Records: output.Records !== undefined && output.Records !== null
14751 ? deserializeAws_json1_1RecordList(output.Records, context)
14752 : undefined,
14753 };
14754};
14755var deserializeAws_json1_1SubscribeToShardEventStream = function (output, context) {
14756 if (output.InternalFailureException !== undefined && output.InternalFailureException !== null) {
14757 return {
14758 InternalFailureException: deserializeAws_json1_1InternalFailureException(output.InternalFailureException, context),
14759 };
14760 }
14761 if (output.KMSAccessDeniedException !== undefined && output.KMSAccessDeniedException !== null) {
14762 return {
14763 KMSAccessDeniedException: deserializeAws_json1_1KMSAccessDeniedException(output.KMSAccessDeniedException, context),
14764 };
14765 }
14766 if (output.KMSDisabledException !== undefined && output.KMSDisabledException !== null) {
14767 return {
14768 KMSDisabledException: deserializeAws_json1_1KMSDisabledException(output.KMSDisabledException, context),
14769 };
14770 }
14771 if (output.KMSInvalidStateException !== undefined && output.KMSInvalidStateException !== null) {
14772 return {
14773 KMSInvalidStateException: deserializeAws_json1_1KMSInvalidStateException(output.KMSInvalidStateException, context),
14774 };
14775 }
14776 if (output.KMSNotFoundException !== undefined && output.KMSNotFoundException !== null) {
14777 return {
14778 KMSNotFoundException: deserializeAws_json1_1KMSNotFoundException(output.KMSNotFoundException, context),
14779 };
14780 }
14781 if (output.KMSOptInRequired !== undefined && output.KMSOptInRequired !== null) {
14782 return {
14783 KMSOptInRequired: deserializeAws_json1_1KMSOptInRequired(output.KMSOptInRequired, context),
14784 };
14785 }
14786 if (output.KMSThrottlingException !== undefined && output.KMSThrottlingException !== null) {
14787 return {
14788 KMSThrottlingException: deserializeAws_json1_1KMSThrottlingException(output.KMSThrottlingException, context),
14789 };
14790 }
14791 if (output.ResourceInUseException !== undefined && output.ResourceInUseException !== null) {
14792 return {
14793 ResourceInUseException: deserializeAws_json1_1ResourceInUseException(output.ResourceInUseException, context),
14794 };
14795 }
14796 if (output.ResourceNotFoundException !== undefined && output.ResourceNotFoundException !== null) {
14797 return {
14798 ResourceNotFoundException: deserializeAws_json1_1ResourceNotFoundException(output.ResourceNotFoundException, context),
14799 };
14800 }
14801 if (output.SubscribeToShardEvent !== undefined && output.SubscribeToShardEvent !== null) {
14802 return {
14803 SubscribeToShardEvent: deserializeAws_json1_1SubscribeToShardEvent(output.SubscribeToShardEvent, context),
14804 };
14805 }
14806 return { $unknown: Object.entries(output)[0] };
14807};
14808var deserializeAws_json1_1SubscribeToShardOutput = function (output, context) {
14809 return {
14810 EventStream: output.EventStream !== undefined && output.EventStream !== null
14811 ? deserializeAws_json1_1SubscribeToShardEventStream(output.EventStream, context)
14812 : undefined,
14813 };
14814};
14815var deserializeAws_json1_1Tag = function (output, context) {
14816 return {
14817 Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined,
14818 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
14819 };
14820};
14821var deserializeAws_json1_1TagList = function (output, context) {
14822 return (output || [])
14823 .filter(function (e) { return e != null; })
14824 .map(function (entry) {
14825 if (entry === null) {
14826 return null;
14827 }
14828 return deserializeAws_json1_1Tag(entry, context);
14829 });
14830};
14831var deserializeAws_json1_1UpdateShardCountOutput = function (output, context) {
14832 return {
14833 CurrentShardCount: output.CurrentShardCount !== undefined && output.CurrentShardCount !== null
14834 ? output.CurrentShardCount
14835 : undefined,
14836 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14837 TargetShardCount: output.TargetShardCount !== undefined && output.TargetShardCount !== null ? output.TargetShardCount : undefined,
14838 };
14839};
14840var deserializeMetadata = function (output) {
14841 var _a;
14842 return ({
14843 httpStatusCode: output.statusCode,
14844 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
14845 extendedRequestId: output.headers["x-amz-id-2"],
14846 cfId: output.headers["x-amz-cf-id"],
14847 });
14848};
14849// Collect low-level response body stream to Uint8Array.
14850var collectBody = function (streamBody, context) {
14851 if (streamBody === void 0) { streamBody = new Uint8Array(); }
14852 if (streamBody instanceof Uint8Array) {
14853 return Promise.resolve(streamBody);
14854 }
14855 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
14856};
14857// Encode Uint8Array data into string with utf-8.
14858var collectBodyString = function (streamBody, context) {
14859 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
14860};
14861var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14862 var _a, hostname, _b, protocol, port, contents;
14863 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
14864 switch (_c.label) {
14865 case 0: return [4 /*yield*/, context.endpoint()];
14866 case 1:
14867 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
14868 contents = {
14869 protocol: protocol,
14870 hostname: hostname,
14871 port: port,
14872 method: "POST",
14873 path: path,
14874 headers: headers,
14875 };
14876 if (resolvedHostname !== undefined) {
14877 contents.hostname = resolvedHostname;
14878 }
14879 if (body !== undefined) {
14880 contents.body = body;
14881 }
14882 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)];
14883 }
14884 });
14885}); };
14886var parseBody = function (streamBody, context) {
14887 return collectBodyString(streamBody, context).then(function (encoded) {
14888 if (encoded.length) {
14889 return JSON.parse(encoded);
14890 }
14891 return {};
14892 });
14893};
14894/**
14895 * Load an error code for the aws.rest-json-1.1 protocol.
14896 */
14897var loadRestJsonErrorCode = function (output, data) {
14898 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
14899 var sanitizeErrorCode = function (rawValue) {
14900 var cleanValue = rawValue;
14901 if (cleanValue.indexOf(":") >= 0) {
14902 cleanValue = cleanValue.split(":")[0];
14903 }
14904 if (cleanValue.indexOf("#") >= 0) {
14905 cleanValue = cleanValue.split("#")[1];
14906 }
14907 return cleanValue;
14908 };
14909 var headerKey = findKey(output.headers, "x-amzn-errortype");
14910 if (headerKey !== undefined) {
14911 return sanitizeErrorCode(output.headers[headerKey]);
14912 }
14913 if (data.code !== undefined) {
14914 return sanitizeErrorCode(data.code);
14915 }
14916 if (data["__type"] !== undefined) {
14917 return sanitizeErrorCode(data["__type"]);
14918 }
14919 return "";
14920};
14921//# sourceMappingURL=Aws_json1_1.js.map
14922
14923/***/ }),
14924
14925/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.browser.js":
14926/*!**********************************************************************************************!*\
14927 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.browser.js ***!
14928 \**********************************************************************************************/
14929/*! exports provided: ClientDefaultValues */
14930/***/ (function(module, __webpack_exports__, __webpack_require__) {
14931
14932"use strict";
14933__webpack_require__.r(__webpack_exports__);
14934/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
14935/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
14936/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/package.json");
14937var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/package.json", 1);
14938/* 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");
14939/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
14940/* 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");
14941/* 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");
14942/* 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");
14943/* 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");
14944/* 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");
14945/* 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");
14946/* 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");
14947/* 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");
14948/* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.shared.js");
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961/**
14962 * @internal
14963 */
14964var 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"])({
14965 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"].serviceId,
14966 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
14967 }), 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"] });
14968//# sourceMappingURL=runtimeConfig.browser.js.map
14969
14970/***/ }),
14971
14972/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.shared.js":
14973/*!*********************************************************************************************!*\
14974 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.shared.js ***!
14975 \*********************************************************************************************/
14976/*! exports provided: ClientSharedValues */
14977/***/ (function(module, __webpack_exports__, __webpack_require__) {
14978
14979"use strict";
14980__webpack_require__.r(__webpack_exports__);
14981/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
14982/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/endpoints.js");
14983/* 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");
14984
14985
14986/**
14987 * @internal
14988 */
14989var ClientSharedValues = {
14990 apiVersion: "2013-12-02",
14991 disableHostPrefix: false,
14992 logger: {},
14993 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
14994 serviceId: "Kinesis",
14995 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
14996};
14997//# sourceMappingURL=runtimeConfig.shared.js.map
14998
14999/***/ }),
15000
15001/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamExists.js":
15002/*!****************************************************************************************************!*\
15003 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamExists.js ***!
15004 \****************************************************************************************************/
15005/*! exports provided: waitForStreamExists */
15006/***/ (function(module, __webpack_exports__, __webpack_require__) {
15007
15008"use strict";
15009__webpack_require__.r(__webpack_exports__);
15010/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "waitForStreamExists", function() { return waitForStreamExists; });
15011/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
15012/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
15013/* 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");
15014
15015
15016
15017var checkState = function (client, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15018 var result_1, returnComparator, exception_1;
15019 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15020 switch (_a.label) {
15021 case 0:
15022 _a.trys.push([0, 2, , 3]);
15023 return [4 /*yield*/, client.send(new _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamCommand"](input))];
15024 case 1:
15025 result_1 = _a.sent();
15026 try {
15027 returnComparator = function () {
15028 return result_1.StreamDescription.StreamStatus;
15029 };
15030 if (returnComparator() === "ACTIVE") {
15031 return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].SUCCESS }];
15032 }
15033 }
15034 catch (e) { }
15035 return [3 /*break*/, 3];
15036 case 2:
15037 exception_1 = _a.sent();
15038 return [3 /*break*/, 3];
15039 case 3: return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY }];
15040 }
15041 });
15042}); };
15043/**
15044 *
15045 * @param params : Waiter configuration options.
15046 * @param input : the input to DescribeStreamCommand for polling.
15047 */
15048var waitForStreamExists = function (params, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15049 var serviceDefaults;
15050 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15051 serviceDefaults = { minDelay: 10, maxDelay: 120 };
15052 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)];
15053 });
15054}); };
15055//# sourceMappingURL=waitForStreamExists.js.map
15056
15057/***/ }),
15058
15059/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamNotExists.js":
15060/*!*******************************************************************************************************!*\
15061 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamNotExists.js ***!
15062 \*******************************************************************************************************/
15063/*! exports provided: waitForStreamNotExists */
15064/***/ (function(module, __webpack_exports__, __webpack_require__) {
15065
15066"use strict";
15067__webpack_require__.r(__webpack_exports__);
15068/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "waitForStreamNotExists", function() { return waitForStreamNotExists; });
15069/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
15070/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
15071/* 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");
15072
15073
15074
15075var checkState = function (client, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15076 var result, exception_1;
15077 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15078 switch (_a.label) {
15079 case 0:
15080 _a.trys.push([0, 2, , 3]);
15081 return [4 /*yield*/, client.send(new _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamCommand"](input))];
15082 case 1:
15083 result = _a.sent();
15084 return [3 /*break*/, 3];
15085 case 2:
15086 exception_1 = _a.sent();
15087 if (exception_1.name && exception_1.name == "ResourceNotFoundException") {
15088 return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].SUCCESS }];
15089 }
15090 return [3 /*break*/, 3];
15091 case 3: return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY }];
15092 }
15093 });
15094}); };
15095/**
15096 *
15097 * @param params : Waiter configuration options.
15098 * @param input : the input to DescribeStreamCommand for polling.
15099 */
15100var waitForStreamNotExists = function (params, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15101 var serviceDefaults;
15102 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15103 serviceDefaults = { minDelay: 10, maxDelay: 120 };
15104 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)];
15105 });
15106}); };
15107//# sourceMappingURL=waitForStreamNotExists.js.map
15108
15109/***/ }),
15110
15111/***/ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js":
15112/*!*********************************************************************************************!*\
15113 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js ***!
15114 \*********************************************************************************************/
15115/*! 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 */
15116/***/ (function(module, __webpack_exports__, __webpack_require__) {
15117
15118"use strict";
15119__webpack_require__.r(__webpack_exports__);
15120/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
15121/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
15122/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
15123/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
15124/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
15125/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
15126/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
15127/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
15128/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
15129/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
15130/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
15131/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
15132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
15133/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
15134/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
15135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
15136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
15137/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
15138/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
15139/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
15140/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
15141/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
15142/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
15143/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
15144/*! *****************************************************************************
15145Copyright (c) Microsoft Corporation.
15146
15147Permission to use, copy, modify, and/or distribute this software for any
15148purpose with or without fee is hereby granted.
15149
15150THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
15151REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15152AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15153INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15154LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15155OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15156PERFORMANCE OF THIS SOFTWARE.
15157***************************************************************************** */
15158/* global Reflect, Promise */
15159
15160var extendStatics = function(d, b) {
15161 extendStatics = Object.setPrototypeOf ||
15162 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15163 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15164 return extendStatics(d, b);
15165};
15166
15167function __extends(d, b) {
15168 if (typeof b !== "function" && b !== null)
15169 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15170 extendStatics(d, b);
15171 function __() { this.constructor = d; }
15172 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15173}
15174
15175var __assign = function() {
15176 __assign = Object.assign || function __assign(t) {
15177 for (var s, i = 1, n = arguments.length; i < n; i++) {
15178 s = arguments[i];
15179 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
15180 }
15181 return t;
15182 }
15183 return __assign.apply(this, arguments);
15184}
15185
15186function __rest(s, e) {
15187 var t = {};
15188 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15189 t[p] = s[p];
15190 if (s != null && typeof Object.getOwnPropertySymbols === "function")
15191 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
15192 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
15193 t[p[i]] = s[p[i]];
15194 }
15195 return t;
15196}
15197
15198function __decorate(decorators, target, key, desc) {
15199 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15200 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15201 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;
15202 return c > 3 && r && Object.defineProperty(target, key, r), r;
15203}
15204
15205function __param(paramIndex, decorator) {
15206 return function (target, key) { decorator(target, key, paramIndex); }
15207}
15208
15209function __metadata(metadataKey, metadataValue) {
15210 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
15211}
15212
15213function __awaiter(thisArg, _arguments, P, generator) {
15214 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15215 return new (P || (P = Promise))(function (resolve, reject) {
15216 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15217 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
15218 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15219 step((generator = generator.apply(thisArg, _arguments || [])).next());
15220 });
15221}
15222
15223function __generator(thisArg, body) {
15224 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
15225 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15226 function verb(n) { return function (v) { return step([n, v]); }; }
15227 function step(op) {
15228 if (f) throw new TypeError("Generator is already executing.");
15229 while (_) try {
15230 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;
15231 if (y = 0, t) op = [op[0] & 2, t.value];
15232 switch (op[0]) {
15233 case 0: case 1: t = op; break;
15234 case 4: _.label++; return { value: op[1], done: false };
15235 case 5: _.label++; y = op[1]; op = [0]; continue;
15236 case 7: op = _.ops.pop(); _.trys.pop(); continue;
15237 default:
15238 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
15239 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
15240 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
15241 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
15242 if (t[2]) _.ops.pop();
15243 _.trys.pop(); continue;
15244 }
15245 op = body.call(thisArg, _);
15246 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
15247 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
15248 }
15249}
15250
15251var __createBinding = Object.create ? (function(o, m, k, k2) {
15252 if (k2 === undefined) k2 = k;
15253 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
15254}) : (function(o, m, k, k2) {
15255 if (k2 === undefined) k2 = k;
15256 o[k2] = m[k];
15257});
15258
15259function __exportStar(m, o) {
15260 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
15261}
15262
15263function __values(o) {
15264 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
15265 if (m) return m.call(o);
15266 if (o && typeof o.length === "number") return {
15267 next: function () {
15268 if (o && i >= o.length) o = void 0;
15269 return { value: o && o[i++], done: !o };
15270 }
15271 };
15272 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
15273}
15274
15275function __read(o, n) {
15276 var m = typeof Symbol === "function" && o[Symbol.iterator];
15277 if (!m) return o;
15278 var i = m.call(o), r, ar = [], e;
15279 try {
15280 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
15281 }
15282 catch (error) { e = { error: error }; }
15283 finally {
15284 try {
15285 if (r && !r.done && (m = i["return"])) m.call(i);
15286 }
15287 finally { if (e) throw e.error; }
15288 }
15289 return ar;
15290}
15291
15292/** @deprecated */
15293function __spread() {
15294 for (var ar = [], i = 0; i < arguments.length; i++)
15295 ar = ar.concat(__read(arguments[i]));
15296 return ar;
15297}
15298
15299/** @deprecated */
15300function __spreadArrays() {
15301 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
15302 for (var r = Array(s), k = 0, i = 0; i < il; i++)
15303 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
15304 r[k] = a[j];
15305 return r;
15306}
15307
15308function __spreadArray(to, from, pack) {
15309 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15310 if (ar || !(i in from)) {
15311 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
15312 ar[i] = from[i];
15313 }
15314 }
15315 return to.concat(ar || Array.prototype.slice.call(from));
15316}
15317
15318function __await(v) {
15319 return this instanceof __await ? (this.v = v, this) : new __await(v);
15320}
15321
15322function __asyncGenerator(thisArg, _arguments, generator) {
15323 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
15324 var g = generator.apply(thisArg, _arguments || []), i, q = [];
15325 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
15326 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); }); }; }
15327 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
15328 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
15329 function fulfill(value) { resume("next", value); }
15330 function reject(value) { resume("throw", value); }
15331 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
15332}
15333
15334function __asyncDelegator(o) {
15335 var i, p;
15336 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
15337 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; }
15338}
15339
15340function __asyncValues(o) {
15341 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
15342 var m = o[Symbol.asyncIterator], i;
15343 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);
15344 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); }); }; }
15345 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
15346}
15347
15348function __makeTemplateObject(cooked, raw) {
15349 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
15350 return cooked;
15351};
15352
15353var __setModuleDefault = Object.create ? (function(o, v) {
15354 Object.defineProperty(o, "default", { enumerable: true, value: v });
15355}) : function(o, v) {
15356 o["default"] = v;
15357};
15358
15359function __importStar(mod) {
15360 if (mod && mod.__esModule) return mod;
15361 var result = {};
15362 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
15363 __setModuleDefault(result, mod);
15364 return result;
15365}
15366
15367function __importDefault(mod) {
15368 return (mod && mod.__esModule) ? mod : { default: mod };
15369}
15370
15371function __classPrivateFieldGet(receiver, state, kind, f) {
15372 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15373 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");
15374 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15375}
15376
15377function __classPrivateFieldSet(receiver, state, value, kind, f) {
15378 if (kind === "m") throw new TypeError("Private method is not writable");
15379 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15380 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");
15381 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15382}
15383
15384
15385/***/ }),
15386
15387/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEvents.js":
15388/*!*****************************************************************************************************!*\
15389 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEvents.js ***!
15390 \*****************************************************************************************************/
15391/*! exports provided: PersonalizeEvents */
15392/***/ (function(module, __webpack_exports__, __webpack_require__) {
15393
15394"use strict";
15395__webpack_require__.r(__webpack_exports__);
15396/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEvents", function() { return PersonalizeEvents; });
15397/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15398/* harmony import */ var _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PersonalizeEventsClient */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js");
15399/* 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");
15400/* 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");
15401/* 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");
15402
15403
15404
15405
15406
15407/**
15408 * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
15409 * it for model training either alone or combined with historical data. For more information see <a>recording-events</a>.</p>
15410 */
15411var PersonalizeEvents = /** @class */ (function (_super) {
15412 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PersonalizeEvents, _super);
15413 function PersonalizeEvents() {
15414 return _super !== null && _super.apply(this, arguments) || this;
15415 }
15416 PersonalizeEvents.prototype.putEvents = function (args, optionsOrCb, cb) {
15417 var command = new _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__["PutEventsCommand"](args);
15418 if (typeof optionsOrCb === "function") {
15419 this.send(command, optionsOrCb);
15420 }
15421 else if (typeof cb === "function") {
15422 if (typeof optionsOrCb !== "object")
15423 throw new Error("Expect http options but get " + typeof optionsOrCb);
15424 this.send(command, optionsOrCb || {}, cb);
15425 }
15426 else {
15427 return this.send(command, optionsOrCb);
15428 }
15429 };
15430 PersonalizeEvents.prototype.putItems = function (args, optionsOrCb, cb) {
15431 var command = new _commands_PutItemsCommand__WEBPACK_IMPORTED_MODULE_3__["PutItemsCommand"](args);
15432 if (typeof optionsOrCb === "function") {
15433 this.send(command, optionsOrCb);
15434 }
15435 else if (typeof cb === "function") {
15436 if (typeof optionsOrCb !== "object")
15437 throw new Error("Expect http options but get " + typeof optionsOrCb);
15438 this.send(command, optionsOrCb || {}, cb);
15439 }
15440 else {
15441 return this.send(command, optionsOrCb);
15442 }
15443 };
15444 PersonalizeEvents.prototype.putUsers = function (args, optionsOrCb, cb) {
15445 var command = new _commands_PutUsersCommand__WEBPACK_IMPORTED_MODULE_4__["PutUsersCommand"](args);
15446 if (typeof optionsOrCb === "function") {
15447 this.send(command, optionsOrCb);
15448 }
15449 else if (typeof cb === "function") {
15450 if (typeof optionsOrCb !== "object")
15451 throw new Error("Expect http options but get " + typeof optionsOrCb);
15452 this.send(command, optionsOrCb || {}, cb);
15453 }
15454 else {
15455 return this.send(command, optionsOrCb);
15456 }
15457 };
15458 return PersonalizeEvents;
15459}(_PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEventsClient"]));
15460
15461//# sourceMappingURL=PersonalizeEvents.js.map
15462
15463/***/ }),
15464
15465/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js":
15466/*!***********************************************************************************************************!*\
15467 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js ***!
15468 \***********************************************************************************************************/
15469/*! exports provided: PersonalizeEventsClient */
15470/***/ (function(module, __webpack_exports__, __webpack_require__) {
15471
15472"use strict";
15473__webpack_require__.r(__webpack_exports__);
15474/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEventsClient", function() { return PersonalizeEventsClient; });
15475/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15476/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.browser.js");
15477/* 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");
15478/* 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");
15479/* 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");
15480/* 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");
15481/* 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");
15482/* 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");
15483/* 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");
15484/* 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");
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495/**
15496 * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
15497 * it for model training either alone or combined with historical data. For more information see <a>recording-events</a>.</p>
15498 */
15499var PersonalizeEventsClient = /** @class */ (function (_super) {
15500 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PersonalizeEventsClient, _super);
15501 function PersonalizeEventsClient(configuration) {
15502 var _this = this;
15503 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
15504 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
15505 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
15506 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2);
15507 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3);
15508 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_4);
15509 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_5);
15510 _this = _super.call(this, _config_6) || this;
15511 _this.config = _config_6;
15512 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config));
15513 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config));
15514 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config));
15515 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config));
15516 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config));
15517 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config));
15518 return _this;
15519 }
15520 PersonalizeEventsClient.prototype.destroy = function () {
15521 _super.prototype.destroy.call(this);
15522 };
15523 return PersonalizeEventsClient;
15524}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"]));
15525
15526//# sourceMappingURL=PersonalizeEventsClient.js.map
15527
15528/***/ }),
15529
15530/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutEventsCommand.js":
15531/*!*************************************************************************************************************!*\
15532 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutEventsCommand.js ***!
15533 \*************************************************************************************************************/
15534/*! exports provided: PutEventsCommand */
15535/***/ (function(module, __webpack_exports__, __webpack_require__) {
15536
15537"use strict";
15538__webpack_require__.r(__webpack_exports__);
15539/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return PutEventsCommand; });
15540/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15541/* 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");
15542/* 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");
15543/* 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");
15544/* 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");
15545
15546
15547
15548
15549
15550/**
15551 * <p>Records user interaction event data. For more information see <a>event-record-api</a>.</p>
15552 */
15553var PutEventsCommand = /** @class */ (function (_super) {
15554 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventsCommand, _super);
15555 // Start section: command_properties
15556 // End section: command_properties
15557 function PutEventsCommand(input) {
15558 var _this =
15559 // Start section: command_constructor
15560 _super.call(this) || this;
15561 _this.input = input;
15562 return _this;
15563 // End section: command_constructor
15564 }
15565 /**
15566 * @internal
15567 */
15568 PutEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15569 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
15570 var stack = clientStack.concat(this.middlewareStack);
15571 var logger = configuration.logger;
15572 var clientName = "PersonalizeEventsClient";
15573 var commandName = "PutEventsCommand";
15574 var handlerExecutionContext = {
15575 logger: logger,
15576 clientName: clientName,
15577 commandName: commandName,
15578 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"].filterSensitiveLog,
15579 outputFilterSensitiveLog: function (output) { return output; },
15580 };
15581 var requestHandler = configuration.requestHandler;
15582 return stack.resolve(function (request) {
15583 return requestHandler.handle(request.request, options || {});
15584 }, handlerExecutionContext);
15585 };
15586 PutEventsCommand.prototype.serialize = function (input, context) {
15587 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventsCommand"])(input, context);
15588 };
15589 PutEventsCommand.prototype.deserialize = function (output, context) {
15590 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventsCommand"])(output, context);
15591 };
15592 return PutEventsCommand;
15593}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
15594
15595//# sourceMappingURL=PutEventsCommand.js.map
15596
15597/***/ }),
15598
15599/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutItemsCommand.js":
15600/*!************************************************************************************************************!*\
15601 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutItemsCommand.js ***!
15602 \************************************************************************************************************/
15603/*! exports provided: PutItemsCommand */
15604/***/ (function(module, __webpack_exports__, __webpack_require__) {
15605
15606"use strict";
15607__webpack_require__.r(__webpack_exports__);
15608/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutItemsCommand", function() { return PutItemsCommand; });
15609/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15610/* 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");
15611/* 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");
15612/* 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");
15613/* 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");
15614
15615
15616
15617
15618
15619/**
15620 * <p>Adds one or more items to an Items dataset. For more information see
15621 * <a>importing-items</a>.</p>
15622 */
15623var PutItemsCommand = /** @class */ (function (_super) {
15624 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutItemsCommand, _super);
15625 // Start section: command_properties
15626 // End section: command_properties
15627 function PutItemsCommand(input) {
15628 var _this =
15629 // Start section: command_constructor
15630 _super.call(this) || this;
15631 _this.input = input;
15632 return _this;
15633 // End section: command_constructor
15634 }
15635 /**
15636 * @internal
15637 */
15638 PutItemsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15639 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
15640 var stack = clientStack.concat(this.middlewareStack);
15641 var logger = configuration.logger;
15642 var clientName = "PersonalizeEventsClient";
15643 var commandName = "PutItemsCommand";
15644 var handlerExecutionContext = {
15645 logger: logger,
15646 clientName: clientName,
15647 commandName: commandName,
15648 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutItemsRequest"].filterSensitiveLog,
15649 outputFilterSensitiveLog: function (output) { return output; },
15650 };
15651 var requestHandler = configuration.requestHandler;
15652 return stack.resolve(function (request) {
15653 return requestHandler.handle(request.request, options || {});
15654 }, handlerExecutionContext);
15655 };
15656 PutItemsCommand.prototype.serialize = function (input, context) {
15657 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutItemsCommand"])(input, context);
15658 };
15659 PutItemsCommand.prototype.deserialize = function (output, context) {
15660 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutItemsCommand"])(output, context);
15661 };
15662 return PutItemsCommand;
15663}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
15664
15665//# sourceMappingURL=PutItemsCommand.js.map
15666
15667/***/ }),
15668
15669/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutUsersCommand.js":
15670/*!************************************************************************************************************!*\
15671 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutUsersCommand.js ***!
15672 \************************************************************************************************************/
15673/*! exports provided: PutUsersCommand */
15674/***/ (function(module, __webpack_exports__, __webpack_require__) {
15675
15676"use strict";
15677__webpack_require__.r(__webpack_exports__);
15678/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutUsersCommand", function() { return PutUsersCommand; });
15679/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15680/* 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");
15681/* 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");
15682/* 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");
15683/* 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");
15684
15685
15686
15687
15688
15689/**
15690 * <p>Adds one or more users to a Users dataset. For more information see
15691 * <a>importing-users</a>.</p>
15692 */
15693var PutUsersCommand = /** @class */ (function (_super) {
15694 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutUsersCommand, _super);
15695 // Start section: command_properties
15696 // End section: command_properties
15697 function PutUsersCommand(input) {
15698 var _this =
15699 // Start section: command_constructor
15700 _super.call(this) || this;
15701 _this.input = input;
15702 return _this;
15703 // End section: command_constructor
15704 }
15705 /**
15706 * @internal
15707 */
15708 PutUsersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15709 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
15710 var stack = clientStack.concat(this.middlewareStack);
15711 var logger = configuration.logger;
15712 var clientName = "PersonalizeEventsClient";
15713 var commandName = "PutUsersCommand";
15714 var handlerExecutionContext = {
15715 logger: logger,
15716 clientName: clientName,
15717 commandName: commandName,
15718 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutUsersRequest"].filterSensitiveLog,
15719 outputFilterSensitiveLog: function (output) { return output; },
15720 };
15721 var requestHandler = configuration.requestHandler;
15722 return stack.resolve(function (request) {
15723 return requestHandler.handle(request.request, options || {});
15724 }, handlerExecutionContext);
15725 };
15726 PutUsersCommand.prototype.serialize = function (input, context) {
15727 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutUsersCommand"])(input, context);
15728 };
15729 PutUsersCommand.prototype.deserialize = function (output, context) {
15730 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutUsersCommand"])(output, context);
15731 };
15732 return PutUsersCommand;
15733}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
15734
15735//# sourceMappingURL=PutUsersCommand.js.map
15736
15737/***/ }),
15738
15739/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/endpoints.js":
15740/*!*********************************************************************************************!*\
15741 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/endpoints.js ***!
15742 \*********************************************************************************************/
15743/*! exports provided: defaultRegionInfoProvider */
15744/***/ (function(module, __webpack_exports__, __webpack_require__) {
15745
15746"use strict";
15747__webpack_require__.r(__webpack_exports__);
15748/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
15749/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15750
15751// Partition default templates
15752var AWS_TEMPLATE = "personalize-events.{region}.amazonaws.com";
15753var AWS_CN_TEMPLATE = "personalize-events.{region}.amazonaws.com.cn";
15754var AWS_ISO_TEMPLATE = "personalize-events.{region}.c2s.ic.gov";
15755var AWS_ISO_B_TEMPLATE = "personalize-events.{region}.sc2s.sgov.gov";
15756var AWS_US_GOV_TEMPLATE = "personalize-events.{region}.amazonaws.com";
15757// Partition regions
15758var AWS_REGIONS = new Set([
15759 "af-south-1",
15760 "ap-east-1",
15761 "ap-northeast-1",
15762 "ap-northeast-2",
15763 "ap-south-1",
15764 "ap-southeast-1",
15765 "ap-southeast-2",
15766 "ca-central-1",
15767 "eu-central-1",
15768 "eu-north-1",
15769 "eu-south-1",
15770 "eu-west-1",
15771 "eu-west-2",
15772 "eu-west-3",
15773 "me-south-1",
15774 "sa-east-1",
15775 "us-east-1",
15776 "us-east-2",
15777 "us-west-1",
15778 "us-west-2",
15779]);
15780var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
15781var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
15782var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
15783var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
15784var defaultRegionInfoProvider = function (region, options) {
15785 var regionInfo = undefined;
15786 switch (region) {
15787 // First, try to match exact region names.
15788 // Next, try to match partition endpoints.
15789 default:
15790 if (AWS_REGIONS.has(region)) {
15791 regionInfo = {
15792 hostname: AWS_TEMPLATE.replace("{region}", region),
15793 partition: "aws",
15794 };
15795 }
15796 if (AWS_CN_REGIONS.has(region)) {
15797 regionInfo = {
15798 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
15799 partition: "aws-cn",
15800 };
15801 }
15802 if (AWS_ISO_REGIONS.has(region)) {
15803 regionInfo = {
15804 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
15805 partition: "aws-iso",
15806 };
15807 }
15808 if (AWS_ISO_B_REGIONS.has(region)) {
15809 regionInfo = {
15810 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
15811 partition: "aws-iso-b",
15812 };
15813 }
15814 if (AWS_US_GOV_REGIONS.has(region)) {
15815 regionInfo = {
15816 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
15817 partition: "aws-us-gov",
15818 };
15819 }
15820 // Finally, assume it's an AWS partition endpoint.
15821 if (regionInfo === undefined) {
15822 regionInfo = {
15823 hostname: AWS_TEMPLATE.replace("{region}", region),
15824 partition: "aws",
15825 };
15826 }
15827 }
15828 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "personalize" }, regionInfo));
15829};
15830//# sourceMappingURL=endpoints.js.map
15831
15832/***/ }),
15833
15834/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/index.js":
15835/*!*****************************************************************************************!*\
15836 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/index.js ***!
15837 \*****************************************************************************************/
15838/*! exports provided: PersonalizeEventsClient, PersonalizeEvents, PutEventsCommand, PutItemsCommand, PutUsersCommand, InvalidInputException, Event, PutEventsRequest, Item, PutItemsRequest, ResourceNotFoundException, User, PutUsersRequest */
15839/***/ (function(module, __webpack_exports__, __webpack_require__) {
15840
15841"use strict";
15842__webpack_require__.r(__webpack_exports__);
15843/* harmony import */ var _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PersonalizeEventsClient */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js");
15844/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEventsClient", function() { return _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_0__["PersonalizeEventsClient"]; });
15845
15846/* harmony import */ var _PersonalizeEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PersonalizeEvents */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEvents.js");
15847/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEvents", function() { return _PersonalizeEvents__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEvents"]; });
15848
15849/* 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");
15850/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__["PutEventsCommand"]; });
15851
15852/* 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");
15853/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutItemsCommand", function() { return _commands_PutItemsCommand__WEBPACK_IMPORTED_MODULE_3__["PutItemsCommand"]; });
15854
15855/* 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");
15856/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutUsersCommand", function() { return _commands_PutUsersCommand__WEBPACK_IMPORTED_MODULE_4__["PutUsersCommand"]; });
15857
15858/* 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");
15859/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidInputException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["InvalidInputException"]; });
15860
15861/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["Event"]; });
15862
15863/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["PutEventsRequest"]; });
15864
15865/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["Item"]; });
15866
15867/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutItemsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["PutItemsRequest"]; });
15868
15869/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["ResourceNotFoundException"]; });
15870
15871/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "User", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["User"]; });
15872
15873/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutUsersRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["PutUsersRequest"]; });
15874
15875
15876
15877
15878
15879
15880
15881//# sourceMappingURL=index.js.map
15882
15883/***/ }),
15884
15885/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/index.js":
15886/*!************************************************************************************************!*\
15887 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/models/index.js ***!
15888 \************************************************************************************************/
15889/*! exports provided: InvalidInputException, Event, PutEventsRequest, Item, PutItemsRequest, ResourceNotFoundException, User, PutUsersRequest */
15890/***/ (function(module, __webpack_exports__, __webpack_require__) {
15891
15892"use strict";
15893__webpack_require__.r(__webpack_exports__);
15894/* 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");
15895/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidInputException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidInputException"]; });
15896
15897/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Event"]; });
15898
15899/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutEventsRequest"]; });
15900
15901/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Item"]; });
15902
15903/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutItemsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutItemsRequest"]; });
15904
15905/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceNotFoundException"]; });
15906
15907/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "User", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["User"]; });
15908
15909/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutUsersRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutUsersRequest"]; });
15910
15911
15912//# sourceMappingURL=index.js.map
15913
15914/***/ }),
15915
15916/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js":
15917/*!***************************************************************************************************!*\
15918 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js ***!
15919 \***************************************************************************************************/
15920/*! exports provided: InvalidInputException, Event, PutEventsRequest, Item, PutItemsRequest, ResourceNotFoundException, User, PutUsersRequest */
15921/***/ (function(module, __webpack_exports__, __webpack_require__) {
15922
15923"use strict";
15924__webpack_require__.r(__webpack_exports__);
15925/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidInputException", function() { return InvalidInputException; });
15926/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return Event; });
15927/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return PutEventsRequest; });
15928/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return Item; });
15929/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutItemsRequest", function() { return PutItemsRequest; });
15930/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; });
15931/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "User", function() { return User; });
15932/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutUsersRequest", function() { return PutUsersRequest; });
15933/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15934
15935var InvalidInputException;
15936(function (InvalidInputException) {
15937 InvalidInputException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15938})(InvalidInputException || (InvalidInputException = {}));
15939var Event;
15940(function (Event) {
15941 Event.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15942})(Event || (Event = {}));
15943var PutEventsRequest;
15944(function (PutEventsRequest) {
15945 PutEventsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15946})(PutEventsRequest || (PutEventsRequest = {}));
15947var Item;
15948(function (Item) {
15949 Item.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15950})(Item || (Item = {}));
15951var PutItemsRequest;
15952(function (PutItemsRequest) {
15953 PutItemsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15954})(PutItemsRequest || (PutItemsRequest = {}));
15955var ResourceNotFoundException;
15956(function (ResourceNotFoundException) {
15957 ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15958})(ResourceNotFoundException || (ResourceNotFoundException = {}));
15959var User;
15960(function (User) {
15961 User.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15962})(User || (User = {}));
15963var PutUsersRequest;
15964(function (PutUsersRequest) {
15965 PutUsersRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15966})(PutUsersRequest || (PutUsersRequest = {}));
15967//# sourceMappingURL=models_0.js.map
15968
15969/***/ }),
15970
15971/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/package.json":
15972/*!*********************************************************************************************!*\
15973 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/package.json ***!
15974 \*********************************************************************************************/
15975/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
15976/***/ (function(module) {
15977
15978module.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\"}}");
15979
15980/***/ }),
15981
15982/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js":
15983/*!***********************************************************************************************************!*\
15984 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js ***!
15985 \***********************************************************************************************************/
15986/*! exports provided: serializeAws_restJson1PutEventsCommand, serializeAws_restJson1PutItemsCommand, serializeAws_restJson1PutUsersCommand, deserializeAws_restJson1PutEventsCommand, deserializeAws_restJson1PutItemsCommand, deserializeAws_restJson1PutUsersCommand */
15987/***/ (function(module, __webpack_exports__, __webpack_require__) {
15988
15989"use strict";
15990__webpack_require__.r(__webpack_exports__);
15991/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventsCommand", function() { return serializeAws_restJson1PutEventsCommand; });
15992/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutItemsCommand", function() { return serializeAws_restJson1PutItemsCommand; });
15993/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutUsersCommand", function() { return serializeAws_restJson1PutUsersCommand; });
15994/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventsCommand", function() { return deserializeAws_restJson1PutEventsCommand; });
15995/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutItemsCommand", function() { return deserializeAws_restJson1PutItemsCommand; });
15996/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutUsersCommand", function() { return deserializeAws_restJson1PutUsersCommand; });
15997/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15998/* 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");
15999/* 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");
16000
16001
16002
16003var serializeAws_restJson1PutEventsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16004 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
16005 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
16006 switch (_c.label) {
16007 case 0:
16008 headers = {
16009 "content-type": "application/json",
16010 };
16011 resolvedPath = "/events";
16012 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 &&
16013 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 })));
16014 return [4 /*yield*/, context.endpoint()];
16015 case 1:
16016 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
16017 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
16018 protocol: protocol,
16019 hostname: hostname,
16020 port: port,
16021 method: "POST",
16022 headers: headers,
16023 path: resolvedPath,
16024 body: body,
16025 })];
16026 }
16027 });
16028}); };
16029var serializeAws_restJson1PutItemsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16030 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
16031 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
16032 switch (_c.label) {
16033 case 0:
16034 headers = {
16035 "content-type": "application/json",
16036 };
16037 resolvedPath = "/items";
16038 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 &&
16039 input.items !== null && { items: serializeAws_restJson1ItemList(input.items, context) })));
16040 return [4 /*yield*/, context.endpoint()];
16041 case 1:
16042 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
16043 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
16044 protocol: protocol,
16045 hostname: hostname,
16046 port: port,
16047 method: "POST",
16048 headers: headers,
16049 path: resolvedPath,
16050 body: body,
16051 })];
16052 }
16053 });
16054}); };
16055var serializeAws_restJson1PutUsersCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16056 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
16057 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
16058 switch (_c.label) {
16059 case 0:
16060 headers = {
16061 "content-type": "application/json",
16062 };
16063 resolvedPath = "/users";
16064 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 &&
16065 input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) })));
16066 return [4 /*yield*/, context.endpoint()];
16067 case 1:
16068 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
16069 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
16070 protocol: protocol,
16071 hostname: hostname,
16072 port: port,
16073 method: "POST",
16074 headers: headers,
16075 path: resolvedPath,
16076 body: body,
16077 })];
16078 }
16079 });
16080}); };
16081var deserializeAws_restJson1PutEventsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16082 var contents;
16083 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16084 switch (_a.label) {
16085 case 0:
16086 if (output.statusCode !== 200 && output.statusCode >= 300) {
16087 return [2 /*return*/, deserializeAws_restJson1PutEventsCommandError(output, context)];
16088 }
16089 contents = {
16090 $metadata: deserializeMetadata(output),
16091 };
16092 return [4 /*yield*/, collectBody(output.body, context)];
16093 case 1:
16094 _a.sent();
16095 return [2 /*return*/, Promise.resolve(contents)];
16096 }
16097 });
16098}); };
16099var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16100 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
16101 var _d;
16102 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
16103 switch (_e.label) {
16104 case 0:
16105 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
16106 _d = {};
16107 return [4 /*yield*/, parseBody(output.body, context)];
16108 case 1:
16109 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
16110 errorCode = "UnknownError";
16111 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16112 _b = errorCode;
16113 switch (_b) {
16114 case "InvalidInputException": return [3 /*break*/, 2];
16115 case "com.amazonaws.personalizeevents#InvalidInputException": return [3 /*break*/, 2];
16116 }
16117 return [3 /*break*/, 4];
16118 case 2:
16119 _c = [{}];
16120 return [4 /*yield*/, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
16121 case 3:
16122 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) }]);
16123 return [3 /*break*/, 5];
16124 case 4:
16125 parsedBody = parsedOutput.body;
16126 errorCode = parsedBody.code || parsedBody.Code || errorCode;
16127 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) });
16128 _e.label = 5;
16129 case 5:
16130 message = response.message || response.Message || errorCode;
16131 response.message = message;
16132 delete response.Message;
16133 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
16134 }
16135 });
16136}); };
16137var deserializeAws_restJson1PutItemsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16138 var contents;
16139 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16140 switch (_a.label) {
16141 case 0:
16142 if (output.statusCode !== 200 && output.statusCode >= 300) {
16143 return [2 /*return*/, deserializeAws_restJson1PutItemsCommandError(output, context)];
16144 }
16145 contents = {
16146 $metadata: deserializeMetadata(output),
16147 };
16148 return [4 /*yield*/, collectBody(output.body, context)];
16149 case 1:
16150 _a.sent();
16151 return [2 /*return*/, Promise.resolve(contents)];
16152 }
16153 });
16154}); };
16155var deserializeAws_restJson1PutItemsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16156 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
16157 var _e;
16158 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
16159 switch (_f.label) {
16160 case 0:
16161 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
16162 _e = {};
16163 return [4 /*yield*/, parseBody(output.body, context)];
16164 case 1:
16165 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
16166 errorCode = "UnknownError";
16167 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16168 _b = errorCode;
16169 switch (_b) {
16170 case "InvalidInputException": return [3 /*break*/, 2];
16171 case "com.amazonaws.personalizeevents#InvalidInputException": return [3 /*break*/, 2];
16172 case "ResourceNotFoundException": return [3 /*break*/, 4];
16173 case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3 /*break*/, 4];
16174 }
16175 return [3 /*break*/, 6];
16176 case 2:
16177 _c = [{}];
16178 return [4 /*yield*/, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
16179 case 3:
16180 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) }]);
16181 return [3 /*break*/, 7];
16182 case 4:
16183 _d = [{}];
16184 return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
16185 case 5:
16186 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) }]);
16187 return [3 /*break*/, 7];
16188 case 6:
16189 parsedBody = parsedOutput.body;
16190 errorCode = parsedBody.code || parsedBody.Code || errorCode;
16191 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) });
16192 _f.label = 7;
16193 case 7:
16194 message = response.message || response.Message || errorCode;
16195 response.message = message;
16196 delete response.Message;
16197 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
16198 }
16199 });
16200}); };
16201var deserializeAws_restJson1PutUsersCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16202 var contents;
16203 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16204 switch (_a.label) {
16205 case 0:
16206 if (output.statusCode !== 200 && output.statusCode >= 300) {
16207 return [2 /*return*/, deserializeAws_restJson1PutUsersCommandError(output, context)];
16208 }
16209 contents = {
16210 $metadata: deserializeMetadata(output),
16211 };
16212 return [4 /*yield*/, collectBody(output.body, context)];
16213 case 1:
16214 _a.sent();
16215 return [2 /*return*/, Promise.resolve(contents)];
16216 }
16217 });
16218}); };
16219var deserializeAws_restJson1PutUsersCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16220 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
16221 var _e;
16222 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
16223 switch (_f.label) {
16224 case 0:
16225 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
16226 _e = {};
16227 return [4 /*yield*/, parseBody(output.body, context)];
16228 case 1:
16229 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
16230 errorCode = "UnknownError";
16231 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16232 _b = errorCode;
16233 switch (_b) {
16234 case "InvalidInputException": return [3 /*break*/, 2];
16235 case "com.amazonaws.personalizeevents#InvalidInputException": return [3 /*break*/, 2];
16236 case "ResourceNotFoundException": return [3 /*break*/, 4];
16237 case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3 /*break*/, 4];
16238 }
16239 return [3 /*break*/, 6];
16240 case 2:
16241 _c = [{}];
16242 return [4 /*yield*/, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
16243 case 3:
16244 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) }]);
16245 return [3 /*break*/, 7];
16246 case 4:
16247 _d = [{}];
16248 return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
16249 case 5:
16250 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) }]);
16251 return [3 /*break*/, 7];
16252 case 6:
16253 parsedBody = parsedOutput.body;
16254 errorCode = parsedBody.code || parsedBody.Code || errorCode;
16255 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) });
16256 _f.label = 7;
16257 case 7:
16258 message = response.message || response.Message || errorCode;
16259 response.message = message;
16260 delete response.Message;
16261 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
16262 }
16263 });
16264}); };
16265var deserializeAws_restJson1InvalidInputExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16266 var contents, data;
16267 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16268 contents = {
16269 name: "InvalidInputException",
16270 $fault: "client",
16271 $metadata: deserializeMetadata(parsedOutput),
16272 message: undefined,
16273 };
16274 data = parsedOutput.body;
16275 if (data.message !== undefined && data.message !== null) {
16276 contents.message = data.message;
16277 }
16278 return [2 /*return*/, contents];
16279 });
16280}); };
16281var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16282 var contents, data;
16283 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16284 contents = {
16285 name: "ResourceNotFoundException",
16286 $fault: "client",
16287 $metadata: deserializeMetadata(parsedOutput),
16288 message: undefined,
16289 };
16290 data = parsedOutput.body;
16291 if (data.message !== undefined && data.message !== null) {
16292 contents.message = data.message;
16293 }
16294 return [2 /*return*/, contents];
16295 });
16296}); };
16297var serializeAws_restJson1Event = function (input, context) {
16298 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 &&
16299 input.impression !== null && { impression: serializeAws_restJson1Impression(input.impression, context) })), (input.itemId !== undefined && input.itemId !== null && { itemId: input.itemId })), (input.properties !== undefined &&
16300 input.properties !== null && { properties: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.properties) })), (input.recommendationId !== undefined &&
16301 input.recommendationId !== null && { recommendationId: input.recommendationId })), (input.sentAt !== undefined && input.sentAt !== null && { sentAt: Math.round(input.sentAt.getTime() / 1000) }));
16302};
16303var serializeAws_restJson1EventList = function (input, context) {
16304 return input
16305 .filter(function (e) { return e != null; })
16306 .map(function (entry) {
16307 if (entry === null) {
16308 return null;
16309 }
16310 return serializeAws_restJson1Event(entry, context);
16311 });
16312};
16313var serializeAws_restJson1Impression = function (input, context) {
16314 return input
16315 .filter(function (e) { return e != null; })
16316 .map(function (entry) {
16317 if (entry === null) {
16318 return null;
16319 }
16320 return entry;
16321 });
16322};
16323var serializeAws_restJson1Item = function (input, context) {
16324 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 &&
16325 input.properties !== null && { properties: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.properties) }));
16326};
16327var serializeAws_restJson1ItemList = function (input, context) {
16328 return input
16329 .filter(function (e) { return e != null; })
16330 .map(function (entry) {
16331 if (entry === null) {
16332 return null;
16333 }
16334 return serializeAws_restJson1Item(entry, context);
16335 });
16336};
16337var serializeAws_restJson1User = function (input, context) {
16338 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.properties !== undefined &&
16339 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 }));
16340};
16341var serializeAws_restJson1UserList = function (input, context) {
16342 return input
16343 .filter(function (e) { return e != null; })
16344 .map(function (entry) {
16345 if (entry === null) {
16346 return null;
16347 }
16348 return serializeAws_restJson1User(entry, context);
16349 });
16350};
16351var deserializeMetadata = function (output) {
16352 var _a;
16353 return ({
16354 httpStatusCode: output.statusCode,
16355 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
16356 extendedRequestId: output.headers["x-amz-id-2"],
16357 cfId: output.headers["x-amz-cf-id"],
16358 });
16359};
16360// Collect low-level response body stream to Uint8Array.
16361var collectBody = function (streamBody, context) {
16362 if (streamBody === void 0) { streamBody = new Uint8Array(); }
16363 if (streamBody instanceof Uint8Array) {
16364 return Promise.resolve(streamBody);
16365 }
16366 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
16367};
16368// Encode Uint8Array data into string with utf-8.
16369var collectBodyString = function (streamBody, context) {
16370 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
16371};
16372var isSerializableHeaderValue = function (value) {
16373 return value !== undefined &&
16374 value !== null &&
16375 value !== "" &&
16376 (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
16377 (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
16378};
16379var parseBody = function (streamBody, context) {
16380 return collectBodyString(streamBody, context).then(function (encoded) {
16381 if (encoded.length) {
16382 return JSON.parse(encoded);
16383 }
16384 return {};
16385 });
16386};
16387/**
16388 * Load an error code for the aws.rest-json-1.1 protocol.
16389 */
16390var loadRestJsonErrorCode = function (output, data) {
16391 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
16392 var sanitizeErrorCode = function (rawValue) {
16393 var cleanValue = rawValue;
16394 if (cleanValue.indexOf(":") >= 0) {
16395 cleanValue = cleanValue.split(":")[0];
16396 }
16397 if (cleanValue.indexOf("#") >= 0) {
16398 cleanValue = cleanValue.split("#")[1];
16399 }
16400 return cleanValue;
16401 };
16402 var headerKey = findKey(output.headers, "x-amzn-errortype");
16403 if (headerKey !== undefined) {
16404 return sanitizeErrorCode(output.headers[headerKey]);
16405 }
16406 if (data.code !== undefined) {
16407 return sanitizeErrorCode(data.code);
16408 }
16409 if (data["__type"] !== undefined) {
16410 return sanitizeErrorCode(data["__type"]);
16411 }
16412 return "";
16413};
16414//# sourceMappingURL=Aws_restJson1.js.map
16415
16416/***/ }),
16417
16418/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.browser.js":
16419/*!*********************************************************************************************************!*\
16420 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.browser.js ***!
16421 \*********************************************************************************************************/
16422/*! exports provided: ClientDefaultValues */
16423/***/ (function(module, __webpack_exports__, __webpack_require__) {
16424
16425"use strict";
16426__webpack_require__.r(__webpack_exports__);
16427/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
16428/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
16429/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/package.json");
16430var _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);
16431/* 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");
16432/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
16433/* 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");
16434/* 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");
16435/* 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");
16436/* 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");
16437/* 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");
16438/* 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");
16439/* 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");
16440/* 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");
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452/**
16453 * @internal
16454 */
16455var 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"])({
16456 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"].serviceId,
16457 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
16458 }), 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"] });
16459//# sourceMappingURL=runtimeConfig.browser.js.map
16460
16461/***/ }),
16462
16463/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.shared.js":
16464/*!********************************************************************************************************!*\
16465 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.shared.js ***!
16466 \********************************************************************************************************/
16467/*! exports provided: ClientSharedValues */
16468/***/ (function(module, __webpack_exports__, __webpack_require__) {
16469
16470"use strict";
16471__webpack_require__.r(__webpack_exports__);
16472/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
16473/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/endpoints.js");
16474/* 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");
16475
16476
16477/**
16478 * @internal
16479 */
16480var ClientSharedValues = {
16481 apiVersion: "2018-03-22",
16482 disableHostPrefix: false,
16483 logger: {},
16484 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
16485 serviceId: "Personalize Events",
16486 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
16487};
16488//# sourceMappingURL=runtimeConfig.shared.js.map
16489
16490/***/ }),
16491
16492/***/ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js":
16493/*!********************************************************************************************************!*\
16494 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js ***!
16495 \********************************************************************************************************/
16496/*! 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 */
16497/***/ (function(module, __webpack_exports__, __webpack_require__) {
16498
16499"use strict";
16500__webpack_require__.r(__webpack_exports__);
16501/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
16502/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
16503/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
16504/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
16505/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
16506/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
16507/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
16508/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
16509/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
16510/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
16511/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
16512/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
16513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
16514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
16515/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
16516/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
16517/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
16518/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
16519/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
16520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
16521/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
16522/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
16523/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
16524/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
16525/*! *****************************************************************************
16526Copyright (c) Microsoft Corporation.
16527
16528Permission to use, copy, modify, and/or distribute this software for any
16529purpose with or without fee is hereby granted.
16530
16531THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16532REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16533AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16534INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16535LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16536OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16537PERFORMANCE OF THIS SOFTWARE.
16538***************************************************************************** */
16539/* global Reflect, Promise */
16540
16541var extendStatics = function(d, b) {
16542 extendStatics = Object.setPrototypeOf ||
16543 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16544 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
16545 return extendStatics(d, b);
16546};
16547
16548function __extends(d, b) {
16549 if (typeof b !== "function" && b !== null)
16550 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16551 extendStatics(d, b);
16552 function __() { this.constructor = d; }
16553 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16554}
16555
16556var __assign = function() {
16557 __assign = Object.assign || function __assign(t) {
16558 for (var s, i = 1, n = arguments.length; i < n; i++) {
16559 s = arguments[i];
16560 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
16561 }
16562 return t;
16563 }
16564 return __assign.apply(this, arguments);
16565}
16566
16567function __rest(s, e) {
16568 var t = {};
16569 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16570 t[p] = s[p];
16571 if (s != null && typeof Object.getOwnPropertySymbols === "function")
16572 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16573 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
16574 t[p[i]] = s[p[i]];
16575 }
16576 return t;
16577}
16578
16579function __decorate(decorators, target, key, desc) {
16580 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16581 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16582 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;
16583 return c > 3 && r && Object.defineProperty(target, key, r), r;
16584}
16585
16586function __param(paramIndex, decorator) {
16587 return function (target, key) { decorator(target, key, paramIndex); }
16588}
16589
16590function __metadata(metadataKey, metadataValue) {
16591 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
16592}
16593
16594function __awaiter(thisArg, _arguments, P, generator) {
16595 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16596 return new (P || (P = Promise))(function (resolve, reject) {
16597 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16598 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16599 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
16600 step((generator = generator.apply(thisArg, _arguments || [])).next());
16601 });
16602}
16603
16604function __generator(thisArg, body) {
16605 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
16606 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
16607 function verb(n) { return function (v) { return step([n, v]); }; }
16608 function step(op) {
16609 if (f) throw new TypeError("Generator is already executing.");
16610 while (_) try {
16611 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;
16612 if (y = 0, t) op = [op[0] & 2, t.value];
16613 switch (op[0]) {
16614 case 0: case 1: t = op; break;
16615 case 4: _.label++; return { value: op[1], done: false };
16616 case 5: _.label++; y = op[1]; op = [0]; continue;
16617 case 7: op = _.ops.pop(); _.trys.pop(); continue;
16618 default:
16619 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
16620 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
16621 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
16622 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
16623 if (t[2]) _.ops.pop();
16624 _.trys.pop(); continue;
16625 }
16626 op = body.call(thisArg, _);
16627 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
16628 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
16629 }
16630}
16631
16632var __createBinding = Object.create ? (function(o, m, k, k2) {
16633 if (k2 === undefined) k2 = k;
16634 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16635}) : (function(o, m, k, k2) {
16636 if (k2 === undefined) k2 = k;
16637 o[k2] = m[k];
16638});
16639
16640function __exportStar(m, o) {
16641 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
16642}
16643
16644function __values(o) {
16645 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
16646 if (m) return m.call(o);
16647 if (o && typeof o.length === "number") return {
16648 next: function () {
16649 if (o && i >= o.length) o = void 0;
16650 return { value: o && o[i++], done: !o };
16651 }
16652 };
16653 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
16654}
16655
16656function __read(o, n) {
16657 var m = typeof Symbol === "function" && o[Symbol.iterator];
16658 if (!m) return o;
16659 var i = m.call(o), r, ar = [], e;
16660 try {
16661 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
16662 }
16663 catch (error) { e = { error: error }; }
16664 finally {
16665 try {
16666 if (r && !r.done && (m = i["return"])) m.call(i);
16667 }
16668 finally { if (e) throw e.error; }
16669 }
16670 return ar;
16671}
16672
16673/** @deprecated */
16674function __spread() {
16675 for (var ar = [], i = 0; i < arguments.length; i++)
16676 ar = ar.concat(__read(arguments[i]));
16677 return ar;
16678}
16679
16680/** @deprecated */
16681function __spreadArrays() {
16682 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
16683 for (var r = Array(s), k = 0, i = 0; i < il; i++)
16684 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
16685 r[k] = a[j];
16686 return r;
16687}
16688
16689function __spreadArray(to, from, pack) {
16690 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
16691 if (ar || !(i in from)) {
16692 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16693 ar[i] = from[i];
16694 }
16695 }
16696 return to.concat(ar || Array.prototype.slice.call(from));
16697}
16698
16699function __await(v) {
16700 return this instanceof __await ? (this.v = v, this) : new __await(v);
16701}
16702
16703function __asyncGenerator(thisArg, _arguments, generator) {
16704 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
16705 var g = generator.apply(thisArg, _arguments || []), i, q = [];
16706 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
16707 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); }); }; }
16708 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
16709 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
16710 function fulfill(value) { resume("next", value); }
16711 function reject(value) { resume("throw", value); }
16712 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
16713}
16714
16715function __asyncDelegator(o) {
16716 var i, p;
16717 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
16718 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; }
16719}
16720
16721function __asyncValues(o) {
16722 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
16723 var m = o[Symbol.asyncIterator], i;
16724 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);
16725 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); }); }; }
16726 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
16727}
16728
16729function __makeTemplateObject(cooked, raw) {
16730 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
16731 return cooked;
16732};
16733
16734var __setModuleDefault = Object.create ? (function(o, v) {
16735 Object.defineProperty(o, "default", { enumerable: true, value: v });
16736}) : function(o, v) {
16737 o["default"] = v;
16738};
16739
16740function __importStar(mod) {
16741 if (mod && mod.__esModule) return mod;
16742 var result = {};
16743 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
16744 __setModuleDefault(result, mod);
16745 return result;
16746}
16747
16748function __importDefault(mod) {
16749 return (mod && mod.__esModule) ? mod : { default: mod };
16750}
16751
16752function __classPrivateFieldGet(receiver, state, kind, f) {
16753 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16754 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");
16755 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16756}
16757
16758function __classPrivateFieldSet(receiver, state, value, kind, f) {
16759 if (kind === "m") throw new TypeError("Private method is not writable");
16760 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16761 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");
16762 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16763}
16764
16765
16766/***/ }),
16767
16768/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/Pinpoint.js":
16769/*!**********************************************************************************!*\
16770 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/Pinpoint.js ***!
16771 \**********************************************************************************/
16772/*! exports provided: Pinpoint */
16773/***/ (function(module, __webpack_exports__, __webpack_require__) {
16774
16775"use strict";
16776__webpack_require__.r(__webpack_exports__);
16777/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pinpoint", function() { return Pinpoint; });
16778/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
16779/* harmony import */ var _PinpointClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PinpointClient */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js");
16780/* harmony import */ var _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js");
16781/* harmony import */ var _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js");
16782/* harmony import */ var _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js");
16783/* harmony import */ var _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js");
16784/* harmony import */ var _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js");
16785/* harmony import */ var _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/CreateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js");
16786/* harmony import */ var _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/CreatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js");
16787/* harmony import */ var _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/CreateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js");
16788/* harmony import */ var _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/CreateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js");
16789/* harmony import */ var _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/CreateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js");
16790/* harmony import */ var _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/CreateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js");
16791/* harmony import */ var _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js");
16792/* harmony import */ var _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DeleteApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js");
16793/* harmony import */ var _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DeleteApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js");
16794/* harmony import */ var _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DeleteApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js");
16795/* harmony import */ var _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DeleteApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js");
16796/* harmony import */ var _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DeleteAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js");
16797/* harmony import */ var _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DeleteBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js");
16798/* harmony import */ var _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DeleteCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js");
16799/* harmony import */ var _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DeleteEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js");
16800/* harmony import */ var _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DeleteEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js");
16801/* harmony import */ var _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/DeleteEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js");
16802/* harmony import */ var _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/DeleteEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js");
16803/* harmony import */ var _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/DeleteGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js");
16804/* harmony import */ var _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/DeleteJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js");
16805/* harmony import */ var _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/DeletePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js");
16806/* harmony import */ var _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/DeleteRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js");
16807/* harmony import */ var _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/DeleteSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js");
16808/* harmony import */ var _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/DeleteSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js");
16809/* harmony import */ var _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/DeleteSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js");
16810/* harmony import */ var _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/DeleteUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js");
16811/* harmony import */ var _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/DeleteVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js");
16812/* harmony import */ var _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/DeleteVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js");
16813/* harmony import */ var _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/GetAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js");
16814/* harmony import */ var _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js");
16815/* harmony import */ var _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/GetApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js");
16816/* harmony import */ var _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js");
16817/* harmony import */ var _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/GetApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js");
16818/* harmony import */ var _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/GetAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js");
16819/* harmony import */ var _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/GetApplicationDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js");
16820/* harmony import */ var _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/GetApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js");
16821/* harmony import */ var _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/GetAppsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js");
16822/* harmony import */ var _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/GetBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js");
16823/* harmony import */ var _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/GetCampaignActivitiesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js");
16824/* harmony import */ var _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/GetCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js");
16825/* harmony import */ var _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/GetCampaignDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js");
16826/* harmony import */ var _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/GetCampaignVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js");
16827/* harmony import */ var _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/GetCampaignVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js");
16828/* harmony import */ var _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/GetCampaignsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js");
16829/* harmony import */ var _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/GetChannelsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js");
16830/* harmony import */ var _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/GetEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js");
16831/* harmony import */ var _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/GetEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js");
16832/* harmony import */ var _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/GetEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js");
16833/* harmony import */ var _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/GetEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js");
16834/* harmony import */ var _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/GetExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js");
16835/* harmony import */ var _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./commands/GetExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js");
16836/* harmony import */ var _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/GetGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js");
16837/* harmony import */ var _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/GetImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js");
16838/* harmony import */ var _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/GetImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js");
16839/* harmony import */ var _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/GetJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js");
16840/* harmony import */ var _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./commands/GetJourneyDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js");
16841/* harmony import */ var _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./commands/GetJourneyExecutionActivityMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js");
16842/* harmony import */ var _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./commands/GetJourneyExecutionMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js");
16843/* harmony import */ var _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./commands/GetPushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js");
16844/* harmony import */ var _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js");
16845/* harmony import */ var _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js");
16846/* harmony import */ var _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./commands/GetSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js");
16847/* harmony import */ var _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./commands/GetSegmentExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js");
16848/* harmony import */ var _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./commands/GetSegmentImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js");
16849/* harmony import */ var _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./commands/GetSegmentVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js");
16850/* harmony import */ var _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./commands/GetSegmentVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js");
16851/* harmony import */ var _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./commands/GetSegmentsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js");
16852/* harmony import */ var _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./commands/GetSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js");
16853/* harmony import */ var _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./commands/GetSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js");
16854/* harmony import */ var _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./commands/GetUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js");
16855/* harmony import */ var _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./commands/GetVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js");
16856/* harmony import */ var _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./commands/GetVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js");
16857/* harmony import */ var _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./commands/ListJourneysCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js");
16858/* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js");
16859/* harmony import */ var _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./commands/ListTemplateVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js");
16860/* harmony import */ var _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./commands/ListTemplatesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js");
16861/* harmony import */ var _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./commands/PhoneNumberValidateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js");
16862/* harmony import */ var _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./commands/PutEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js");
16863/* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js");
16864/* harmony import */ var _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./commands/RemoveAttributesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js");
16865/* harmony import */ var _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./commands/SendMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js");
16866/* harmony import */ var _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./commands/SendUsersMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js");
16867/* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js");
16868/* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js");
16869/* harmony import */ var _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./commands/UpdateAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js");
16870/* harmony import */ var _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./commands/UpdateApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js");
16871/* harmony import */ var _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./commands/UpdateApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js");
16872/* harmony import */ var _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./commands/UpdateApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js");
16873/* harmony import */ var _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./commands/UpdateApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js");
16874/* harmony import */ var _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./commands/UpdateApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js");
16875/* harmony import */ var _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./commands/UpdateBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js");
16876/* harmony import */ var _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./commands/UpdateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js");
16877/* harmony import */ var _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./commands/UpdateEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js");
16878/* harmony import */ var _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./commands/UpdateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js");
16879/* harmony import */ var _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./commands/UpdateEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js");
16880/* harmony import */ var _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./commands/UpdateEndpointsBatchCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js");
16881/* harmony import */ var _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./commands/UpdateGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js");
16882/* harmony import */ var _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./commands/UpdateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js");
16883/* harmony import */ var _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./commands/UpdateJourneyStateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js");
16884/* harmony import */ var _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./commands/UpdatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js");
16885/* harmony import */ var _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./commands/UpdateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js");
16886/* harmony import */ var _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./commands/UpdateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js");
16887/* harmony import */ var _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./commands/UpdateSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js");
16888/* harmony import */ var _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./commands/UpdateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js");
16889/* harmony import */ var _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./commands/UpdateTemplateActiveVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js");
16890/* harmony import */ var _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./commands/UpdateVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js");
16891/* harmony import */ var _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./commands/UpdateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js");
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
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 * <p>Doc Engage API - Amazon Pinpoint API</p>
17008 */
17009var Pinpoint = /** @class */ (function (_super) {
17010 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Pinpoint, _super);
17011 function Pinpoint() {
17012 return _super !== null && _super.apply(this, arguments) || this;
17013 }
17014 Pinpoint.prototype.createApp = function (args, optionsOrCb, cb) {
17015 var command = new _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__["CreateAppCommand"](args);
17016 if (typeof optionsOrCb === "function") {
17017 this.send(command, optionsOrCb);
17018 }
17019 else if (typeof cb === "function") {
17020 if (typeof optionsOrCb !== "object")
17021 throw new Error("Expect http options but get " + typeof optionsOrCb);
17022 this.send(command, optionsOrCb || {}, cb);
17023 }
17024 else {
17025 return this.send(command, optionsOrCb);
17026 }
17027 };
17028 Pinpoint.prototype.createCampaign = function (args, optionsOrCb, cb) {
17029 var command = new _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCampaignCommand"](args);
17030 if (typeof optionsOrCb === "function") {
17031 this.send(command, optionsOrCb);
17032 }
17033 else if (typeof cb === "function") {
17034 if (typeof optionsOrCb !== "object")
17035 throw new Error("Expect http options but get " + typeof optionsOrCb);
17036 this.send(command, optionsOrCb || {}, cb);
17037 }
17038 else {
17039 return this.send(command, optionsOrCb);
17040 }
17041 };
17042 Pinpoint.prototype.createEmailTemplate = function (args, optionsOrCb, cb) {
17043 var command = new _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__["CreateEmailTemplateCommand"](args);
17044 if (typeof optionsOrCb === "function") {
17045 this.send(command, optionsOrCb);
17046 }
17047 else if (typeof cb === "function") {
17048 if (typeof optionsOrCb !== "object")
17049 throw new Error("Expect http options but get " + typeof optionsOrCb);
17050 this.send(command, optionsOrCb || {}, cb);
17051 }
17052 else {
17053 return this.send(command, optionsOrCb);
17054 }
17055 };
17056 Pinpoint.prototype.createExportJob = function (args, optionsOrCb, cb) {
17057 var command = new _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__["CreateExportJobCommand"](args);
17058 if (typeof optionsOrCb === "function") {
17059 this.send(command, optionsOrCb);
17060 }
17061 else if (typeof cb === "function") {
17062 if (typeof optionsOrCb !== "object")
17063 throw new Error("Expect http options but get " + typeof optionsOrCb);
17064 this.send(command, optionsOrCb || {}, cb);
17065 }
17066 else {
17067 return this.send(command, optionsOrCb);
17068 }
17069 };
17070 Pinpoint.prototype.createImportJob = function (args, optionsOrCb, cb) {
17071 var command = new _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__["CreateImportJobCommand"](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.createJourney = function (args, optionsOrCb, cb) {
17085 var command = new _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__["CreateJourneyCommand"](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.createPushTemplate = function (args, optionsOrCb, cb) {
17099 var command = new _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__["CreatePushTemplateCommand"](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.createRecommenderConfiguration = function (args, optionsOrCb, cb) {
17113 var command = new _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__["CreateRecommenderConfigurationCommand"](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.createSegment = function (args, optionsOrCb, cb) {
17127 var command = new _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__["CreateSegmentCommand"](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.createSmsTemplate = function (args, optionsOrCb, cb) {
17141 var command = new _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__["CreateSmsTemplateCommand"](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.createVoiceTemplate = function (args, optionsOrCb, cb) {
17155 var command = new _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__["CreateVoiceTemplateCommand"](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.deleteAdmChannel = function (args, optionsOrCb, cb) {
17169 var command = new _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteAdmChannelCommand"](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.deleteApnsChannel = function (args, optionsOrCb, cb) {
17183 var command = new _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__["DeleteApnsChannelCommand"](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.deleteApnsSandboxChannel = function (args, optionsOrCb, cb) {
17197 var command = new _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__["DeleteApnsSandboxChannelCommand"](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.deleteApnsVoipChannel = function (args, optionsOrCb, cb) {
17211 var command = new _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__["DeleteApnsVoipChannelCommand"](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.deleteApnsVoipSandboxChannel = function (args, optionsOrCb, cb) {
17225 var command = new _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__["DeleteApnsVoipSandboxChannelCommand"](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.deleteApp = function (args, optionsOrCb, cb) {
17239 var command = new _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__["DeleteAppCommand"](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.deleteBaiduChannel = function (args, optionsOrCb, cb) {
17253 var command = new _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__["DeleteBaiduChannelCommand"](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.deleteCampaign = function (args, optionsOrCb, cb) {
17267 var command = new _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__["DeleteCampaignCommand"](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.deleteEmailChannel = function (args, optionsOrCb, cb) {
17281 var command = new _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__["DeleteEmailChannelCommand"](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.deleteEmailTemplate = function (args, optionsOrCb, cb) {
17295 var command = new _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__["DeleteEmailTemplateCommand"](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.deleteEndpoint = function (args, optionsOrCb, cb) {
17309 var command = new _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__["DeleteEndpointCommand"](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.deleteEventStream = function (args, optionsOrCb, cb) {
17323 var command = new _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__["DeleteEventStreamCommand"](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.deleteGcmChannel = function (args, optionsOrCb, cb) {
17337 var command = new _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__["DeleteGcmChannelCommand"](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.deleteJourney = function (args, optionsOrCb, cb) {
17351 var command = new _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__["DeleteJourneyCommand"](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.deletePushTemplate = function (args, optionsOrCb, cb) {
17365 var command = new _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__["DeletePushTemplateCommand"](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.deleteRecommenderConfiguration = function (args, optionsOrCb, cb) {
17379 var command = new _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__["DeleteRecommenderConfigurationCommand"](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.deleteSegment = function (args, optionsOrCb, cb) {
17393 var command = new _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__["DeleteSegmentCommand"](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.deleteSmsChannel = function (args, optionsOrCb, cb) {
17407 var command = new _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__["DeleteSmsChannelCommand"](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.deleteSmsTemplate = function (args, optionsOrCb, cb) {
17421 var command = new _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__["DeleteSmsTemplateCommand"](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.deleteUserEndpoints = function (args, optionsOrCb, cb) {
17435 var command = new _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__["DeleteUserEndpointsCommand"](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.deleteVoiceChannel = function (args, optionsOrCb, cb) {
17449 var command = new _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__["DeleteVoiceChannelCommand"](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.deleteVoiceTemplate = function (args, optionsOrCb, cb) {
17463 var command = new _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__["DeleteVoiceTemplateCommand"](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.getAdmChannel = function (args, optionsOrCb, cb) {
17477 var command = new _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__["GetAdmChannelCommand"](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.getApnsChannel = function (args, optionsOrCb, cb) {
17491 var command = new _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__["GetApnsChannelCommand"](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.getApnsSandboxChannel = function (args, optionsOrCb, cb) {
17505 var command = new _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__["GetApnsSandboxChannelCommand"](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.getApnsVoipChannel = function (args, optionsOrCb, cb) {
17519 var command = new _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__["GetApnsVoipChannelCommand"](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.getApnsVoipSandboxChannel = function (args, optionsOrCb, cb) {
17533 var command = new _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__["GetApnsVoipSandboxChannelCommand"](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.getApp = function (args, optionsOrCb, cb) {
17547 var command = new _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__["GetAppCommand"](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.getApplicationDateRangeKpi = function (args, optionsOrCb, cb) {
17561 var command = new _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__["GetApplicationDateRangeKpiCommand"](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.getApplicationSettings = function (args, optionsOrCb, cb) {
17575 var command = new _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__["GetApplicationSettingsCommand"](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.getApps = function (args, optionsOrCb, cb) {
17589 var command = new _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__["GetAppsCommand"](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.getBaiduChannel = function (args, optionsOrCb, cb) {
17603 var command = new _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__["GetBaiduChannelCommand"](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.getCampaign = function (args, optionsOrCb, cb) {
17617 var command = new _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_46__["GetCampaignCommand"](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.getCampaignActivities = function (args, optionsOrCb, cb) {
17631 var command = new _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_45__["GetCampaignActivitiesCommand"](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.getCampaignDateRangeKpi = function (args, optionsOrCb, cb) {
17645 var command = new _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__["GetCampaignDateRangeKpiCommand"](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.getCampaigns = function (args, optionsOrCb, cb) {
17659 var command = new _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_50__["GetCampaignsCommand"](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.getCampaignVersion = function (args, optionsOrCb, cb) {
17673 var command = new _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_48__["GetCampaignVersionCommand"](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.getCampaignVersions = function (args, optionsOrCb, cb) {
17687 var command = new _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_49__["GetCampaignVersionsCommand"](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.getChannels = function (args, optionsOrCb, cb) {
17701 var command = new _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__["GetChannelsCommand"](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.getEmailChannel = function (args, optionsOrCb, cb) {
17715 var command = new _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__["GetEmailChannelCommand"](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.getEmailTemplate = function (args, optionsOrCb, cb) {
17729 var command = new _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__["GetEmailTemplateCommand"](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.getEndpoint = function (args, optionsOrCb, cb) {
17743 var command = new _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__["GetEndpointCommand"](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.getEventStream = function (args, optionsOrCb, cb) {
17757 var command = new _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__["GetEventStreamCommand"](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.getExportJob = function (args, optionsOrCb, cb) {
17771 var command = new _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__["GetExportJobCommand"](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.getExportJobs = function (args, optionsOrCb, cb) {
17785 var command = new _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__["GetExportJobsCommand"](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.getGcmChannel = function (args, optionsOrCb, cb) {
17799 var command = new _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__["GetGcmChannelCommand"](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.getImportJob = function (args, optionsOrCb, cb) {
17813 var command = new _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__["GetImportJobCommand"](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.getImportJobs = function (args, optionsOrCb, cb) {
17827 var command = new _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__["GetImportJobsCommand"](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.getJourney = function (args, optionsOrCb, cb) {
17841 var command = new _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__["GetJourneyCommand"](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.getJourneyDateRangeKpi = function (args, optionsOrCb, cb) {
17855 var command = new _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__["GetJourneyDateRangeKpiCommand"](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.getJourneyExecutionActivityMetrics = function (args, optionsOrCb, cb) {
17869 var command = new _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__["GetJourneyExecutionActivityMetricsCommand"](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.getJourneyExecutionMetrics = function (args, optionsOrCb, cb) {
17883 var command = new _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__["GetJourneyExecutionMetricsCommand"](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.getPushTemplate = function (args, optionsOrCb, cb) {
17897 var command = new _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__["GetPushTemplateCommand"](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.getRecommenderConfiguration = function (args, optionsOrCb, cb) {
17911 var command = new _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__["GetRecommenderConfigurationCommand"](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.getRecommenderConfigurations = function (args, optionsOrCb, cb) {
17925 var command = new _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__["GetRecommenderConfigurationsCommand"](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.getSegment = function (args, optionsOrCb, cb) {
17939 var command = new _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__["GetSegmentCommand"](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.getSegmentExportJobs = function (args, optionsOrCb, cb) {
17953 var command = new _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__["GetSegmentExportJobsCommand"](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.getSegmentImportJobs = function (args, optionsOrCb, cb) {
17967 var command = new _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__["GetSegmentImportJobsCommand"](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.getSegments = function (args, optionsOrCb, cb) {
17981 var command = new _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_73__["GetSegmentsCommand"](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.getSegmentVersion = function (args, optionsOrCb, cb) {
17995 var command = new _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_71__["GetSegmentVersionCommand"](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.getSegmentVersions = function (args, optionsOrCb, cb) {
18009 var command = new _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_72__["GetSegmentVersionsCommand"](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.getSmsChannel = function (args, optionsOrCb, cb) {
18023 var command = new _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__["GetSmsChannelCommand"](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.getSmsTemplate = function (args, optionsOrCb, cb) {
18037 var command = new _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__["GetSmsTemplateCommand"](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.getUserEndpoints = function (args, optionsOrCb, cb) {
18051 var command = new _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__["GetUserEndpointsCommand"](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.getVoiceChannel = function (args, optionsOrCb, cb) {
18065 var command = new _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__["GetVoiceChannelCommand"](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.getVoiceTemplate = function (args, optionsOrCb, cb) {
18079 var command = new _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__["GetVoiceTemplateCommand"](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.listJourneys = function (args, optionsOrCb, cb) {
18093 var command = new _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__["ListJourneysCommand"](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.listTagsForResource = function (args, optionsOrCb, cb) {
18107 var command = new _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__["ListTagsForResourceCommand"](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.listTemplates = function (args, optionsOrCb, cb) {
18121 var command = new _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_82__["ListTemplatesCommand"](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.listTemplateVersions = function (args, optionsOrCb, cb) {
18135 var command = new _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_81__["ListTemplateVersionsCommand"](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.phoneNumberValidate = function (args, optionsOrCb, cb) {
18149 var command = new _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__["PhoneNumberValidateCommand"](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.putEvents = function (args, optionsOrCb, cb) {
18163 var command = new _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_85__["PutEventsCommand"](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.putEventStream = function (args, optionsOrCb, cb) {
18177 var command = new _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_84__["PutEventStreamCommand"](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.removeAttributes = function (args, optionsOrCb, cb) {
18191 var command = new _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__["RemoveAttributesCommand"](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.sendMessages = function (args, optionsOrCb, cb) {
18205 var command = new _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__["SendMessagesCommand"](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.sendUsersMessages = function (args, optionsOrCb, cb) {
18219 var command = new _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__["SendUsersMessagesCommand"](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.tagResource = function (args, optionsOrCb, cb) {
18233 var command = new _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__["TagResourceCommand"](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.untagResource = function (args, optionsOrCb, cb) {
18247 var command = new _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__["UntagResourceCommand"](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.updateAdmChannel = function (args, optionsOrCb, cb) {
18261 var command = new _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__["UpdateAdmChannelCommand"](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.updateApnsChannel = function (args, optionsOrCb, cb) {
18275 var command = new _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__["UpdateApnsChannelCommand"](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.updateApnsSandboxChannel = function (args, optionsOrCb, cb) {
18289 var command = new _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__["UpdateApnsSandboxChannelCommand"](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.updateApnsVoipChannel = function (args, optionsOrCb, cb) {
18303 var command = new _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__["UpdateApnsVoipChannelCommand"](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.updateApnsVoipSandboxChannel = function (args, optionsOrCb, cb) {
18317 var command = new _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__["UpdateApnsVoipSandboxChannelCommand"](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.updateApplicationSettings = function (args, optionsOrCb, cb) {
18331 var command = new _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__["UpdateApplicationSettingsCommand"](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.updateBaiduChannel = function (args, optionsOrCb, cb) {
18345 var command = new _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__["UpdateBaiduChannelCommand"](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.updateCampaign = function (args, optionsOrCb, cb) {
18359 var command = new _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__["UpdateCampaignCommand"](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.updateEmailChannel = function (args, optionsOrCb, cb) {
18373 var command = new _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__["UpdateEmailChannelCommand"](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.updateEmailTemplate = function (args, optionsOrCb, cb) {
18387 var command = new _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__["UpdateEmailTemplateCommand"](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.updateEndpoint = function (args, optionsOrCb, cb) {
18401 var command = new _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__["UpdateEndpointCommand"](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.updateEndpointsBatch = function (args, optionsOrCb, cb) {
18415 var command = new _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__["UpdateEndpointsBatchCommand"](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.updateGcmChannel = function (args, optionsOrCb, cb) {
18429 var command = new _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__["UpdateGcmChannelCommand"](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.updateJourney = function (args, optionsOrCb, cb) {
18443 var command = new _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__["UpdateJourneyCommand"](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.updateJourneyState = function (args, optionsOrCb, cb) {
18457 var command = new _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__["UpdateJourneyStateCommand"](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.updatePushTemplate = function (args, optionsOrCb, cb) {
18471 var command = new _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__["UpdatePushTemplateCommand"](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.updateRecommenderConfiguration = function (args, optionsOrCb, cb) {
18485 var command = new _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__["UpdateRecommenderConfigurationCommand"](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.updateSegment = function (args, optionsOrCb, cb) {
18499 var command = new _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__["UpdateSegmentCommand"](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.updateSmsChannel = function (args, optionsOrCb, cb) {
18513 var command = new _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__["UpdateSmsChannelCommand"](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.updateSmsTemplate = function (args, optionsOrCb, cb) {
18527 var command = new _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__["UpdateSmsTemplateCommand"](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.updateTemplateActiveVersion = function (args, optionsOrCb, cb) {
18541 var command = new _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__["UpdateTemplateActiveVersionCommand"](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.updateVoiceChannel = function (args, optionsOrCb, cb) {
18555 var command = new _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__["UpdateVoiceChannelCommand"](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.updateVoiceTemplate = function (args, optionsOrCb, cb) {
18569 var command = new _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__["UpdateVoiceTemplateCommand"](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 return Pinpoint;
18583}(_PinpointClient__WEBPACK_IMPORTED_MODULE_1__["PinpointClient"]));
18584
18585//# sourceMappingURL=Pinpoint.js.map
18586
18587/***/ }),
18588
18589/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js":
18590/*!****************************************************************************************!*\
18591 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js ***!
18592 \****************************************************************************************/
18593/*! exports provided: PinpointClient */
18594/***/ (function(module, __webpack_exports__, __webpack_require__) {
18595
18596"use strict";
18597__webpack_require__.r(__webpack_exports__);
18598/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PinpointClient", function() { return PinpointClient; });
18599/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18600/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.browser.js");
18601/* 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");
18602/* 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");
18603/* 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");
18604/* 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");
18605/* 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");
18606/* 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");
18607/* 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");
18608/* 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");
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619/**
18620 * <p>Doc Engage API - Amazon Pinpoint API</p>
18621 */
18622var PinpointClient = /** @class */ (function (_super) {
18623 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PinpointClient, _super);
18624 function PinpointClient(configuration) {
18625 var _this = this;
18626 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
18627 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
18628 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
18629 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2);
18630 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3);
18631 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_4);
18632 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_5);
18633 _this = _super.call(this, _config_6) || this;
18634 _this.config = _config_6;
18635 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config));
18636 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config));
18637 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config));
18638 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config));
18639 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config));
18640 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config));
18641 return _this;
18642 }
18643 PinpointClient.prototype.destroy = function () {
18644 _super.prototype.destroy.call(this);
18645 };
18646 return PinpointClient;
18647}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"]));
18648
18649//# sourceMappingURL=PinpointClient.js.map
18650
18651/***/ }),
18652
18653/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js":
18654/*!***************************************************************************************************!*\
18655 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js ***!
18656 \***************************************************************************************************/
18657/*! exports provided: CreateAppCommand */
18658/***/ (function(module, __webpack_exports__, __webpack_require__) {
18659
18660"use strict";
18661__webpack_require__.r(__webpack_exports__);
18662/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateAppCommand", function() { return CreateAppCommand; });
18663/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18664/* 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");
18665/* 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");
18666/* 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");
18667/* 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");
18668
18669
18670
18671
18672
18673/**
18674 * <p>Creates an application.</p>
18675 */
18676var CreateAppCommand = /** @class */ (function (_super) {
18677 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateAppCommand, _super);
18678 // Start section: command_properties
18679 // End section: command_properties
18680 function CreateAppCommand(input) {
18681 var _this =
18682 // Start section: command_constructor
18683 _super.call(this) || this;
18684 _this.input = input;
18685 return _this;
18686 // End section: command_constructor
18687 }
18688 /**
18689 * @internal
18690 */
18691 CreateAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18692 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18693 var stack = clientStack.concat(this.middlewareStack);
18694 var logger = configuration.logger;
18695 var clientName = "PinpointClient";
18696 var commandName = "CreateAppCommand";
18697 var handlerExecutionContext = {
18698 logger: logger,
18699 clientName: clientName,
18700 commandName: commandName,
18701 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateAppRequest"].filterSensitiveLog,
18702 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateAppResponse"].filterSensitiveLog,
18703 };
18704 var requestHandler = configuration.requestHandler;
18705 return stack.resolve(function (request) {
18706 return requestHandler.handle(request.request, options || {});
18707 }, handlerExecutionContext);
18708 };
18709 CreateAppCommand.prototype.serialize = function (input, context) {
18710 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateAppCommand"])(input, context);
18711 };
18712 CreateAppCommand.prototype.deserialize = function (output, context) {
18713 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateAppCommand"])(output, context);
18714 };
18715 return CreateAppCommand;
18716}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18717
18718//# sourceMappingURL=CreateAppCommand.js.map
18719
18720/***/ }),
18721
18722/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js":
18723/*!********************************************************************************************************!*\
18724 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js ***!
18725 \********************************************************************************************************/
18726/*! exports provided: CreateCampaignCommand */
18727/***/ (function(module, __webpack_exports__, __webpack_require__) {
18728
18729"use strict";
18730__webpack_require__.r(__webpack_exports__);
18731/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignCommand", function() { return CreateCampaignCommand; });
18732/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18733/* 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");
18734/* 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");
18735/* 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");
18736/* 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");
18737
18738
18739
18740
18741
18742/**
18743 * <p>Creates a new campaign for an application or updates the settings of an existing campaign for an application.</p>
18744 */
18745var CreateCampaignCommand = /** @class */ (function (_super) {
18746 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateCampaignCommand, _super);
18747 // Start section: command_properties
18748 // End section: command_properties
18749 function CreateCampaignCommand(input) {
18750 var _this =
18751 // Start section: command_constructor
18752 _super.call(this) || this;
18753 _this.input = input;
18754 return _this;
18755 // End section: command_constructor
18756 }
18757 /**
18758 * @internal
18759 */
18760 CreateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18761 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18762 var stack = clientStack.concat(this.middlewareStack);
18763 var logger = configuration.logger;
18764 var clientName = "PinpointClient";
18765 var commandName = "CreateCampaignCommand";
18766 var handlerExecutionContext = {
18767 logger: logger,
18768 clientName: clientName,
18769 commandName: commandName,
18770 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateCampaignRequest"].filterSensitiveLog,
18771 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateCampaignResponse"].filterSensitiveLog,
18772 };
18773 var requestHandler = configuration.requestHandler;
18774 return stack.resolve(function (request) {
18775 return requestHandler.handle(request.request, options || {});
18776 }, handlerExecutionContext);
18777 };
18778 CreateCampaignCommand.prototype.serialize = function (input, context) {
18779 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateCampaignCommand"])(input, context);
18780 };
18781 CreateCampaignCommand.prototype.deserialize = function (output, context) {
18782 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateCampaignCommand"])(output, context);
18783 };
18784 return CreateCampaignCommand;
18785}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18786
18787//# sourceMappingURL=CreateCampaignCommand.js.map
18788
18789/***/ }),
18790
18791/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js":
18792/*!*************************************************************************************************************!*\
18793 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js ***!
18794 \*************************************************************************************************************/
18795/*! exports provided: CreateEmailTemplateCommand */
18796/***/ (function(module, __webpack_exports__, __webpack_require__) {
18797
18798"use strict";
18799__webpack_require__.r(__webpack_exports__);
18800/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateCommand", function() { return CreateEmailTemplateCommand; });
18801/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18802/* 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");
18803/* 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");
18804/* 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");
18805/* 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");
18806
18807
18808
18809
18810
18811/**
18812 * <p>Creates a message template for messages that are sent through the email channel.</p>
18813 */
18814var CreateEmailTemplateCommand = /** @class */ (function (_super) {
18815 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateEmailTemplateCommand, _super);
18816 // Start section: command_properties
18817 // End section: command_properties
18818 function CreateEmailTemplateCommand(input) {
18819 var _this =
18820 // Start section: command_constructor
18821 _super.call(this) || this;
18822 _this.input = input;
18823 return _this;
18824 // End section: command_constructor
18825 }
18826 /**
18827 * @internal
18828 */
18829 CreateEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18830 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18831 var stack = clientStack.concat(this.middlewareStack);
18832 var logger = configuration.logger;
18833 var clientName = "PinpointClient";
18834 var commandName = "CreateEmailTemplateCommand";
18835 var handlerExecutionContext = {
18836 logger: logger,
18837 clientName: clientName,
18838 commandName: commandName,
18839 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateEmailTemplateRequest"].filterSensitiveLog,
18840 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateEmailTemplateResponse"].filterSensitiveLog,
18841 };
18842 var requestHandler = configuration.requestHandler;
18843 return stack.resolve(function (request) {
18844 return requestHandler.handle(request.request, options || {});
18845 }, handlerExecutionContext);
18846 };
18847 CreateEmailTemplateCommand.prototype.serialize = function (input, context) {
18848 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateEmailTemplateCommand"])(input, context);
18849 };
18850 CreateEmailTemplateCommand.prototype.deserialize = function (output, context) {
18851 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateEmailTemplateCommand"])(output, context);
18852 };
18853 return CreateEmailTemplateCommand;
18854}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18855
18856//# sourceMappingURL=CreateEmailTemplateCommand.js.map
18857
18858/***/ }),
18859
18860/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js":
18861/*!*********************************************************************************************************!*\
18862 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js ***!
18863 \*********************************************************************************************************/
18864/*! exports provided: CreateExportJobCommand */
18865/***/ (function(module, __webpack_exports__, __webpack_require__) {
18866
18867"use strict";
18868__webpack_require__.r(__webpack_exports__);
18869/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobCommand", function() { return CreateExportJobCommand; });
18870/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18871/* 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");
18872/* 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");
18873/* 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");
18874/* 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");
18875
18876
18877
18878
18879
18880/**
18881 * <p>Creates an export job for an application.</p>
18882 */
18883var CreateExportJobCommand = /** @class */ (function (_super) {
18884 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateExportJobCommand, _super);
18885 // Start section: command_properties
18886 // End section: command_properties
18887 function CreateExportJobCommand(input) {
18888 var _this =
18889 // Start section: command_constructor
18890 _super.call(this) || this;
18891 _this.input = input;
18892 return _this;
18893 // End section: command_constructor
18894 }
18895 /**
18896 * @internal
18897 */
18898 CreateExportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18899 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18900 var stack = clientStack.concat(this.middlewareStack);
18901 var logger = configuration.logger;
18902 var clientName = "PinpointClient";
18903 var commandName = "CreateExportJobCommand";
18904 var handlerExecutionContext = {
18905 logger: logger,
18906 clientName: clientName,
18907 commandName: commandName,
18908 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateExportJobRequest"].filterSensitiveLog,
18909 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateExportJobResponse"].filterSensitiveLog,
18910 };
18911 var requestHandler = configuration.requestHandler;
18912 return stack.resolve(function (request) {
18913 return requestHandler.handle(request.request, options || {});
18914 }, handlerExecutionContext);
18915 };
18916 CreateExportJobCommand.prototype.serialize = function (input, context) {
18917 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateExportJobCommand"])(input, context);
18918 };
18919 CreateExportJobCommand.prototype.deserialize = function (output, context) {
18920 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateExportJobCommand"])(output, context);
18921 };
18922 return CreateExportJobCommand;
18923}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18924
18925//# sourceMappingURL=CreateExportJobCommand.js.map
18926
18927/***/ }),
18928
18929/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js":
18930/*!*********************************************************************************************************!*\
18931 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js ***!
18932 \*********************************************************************************************************/
18933/*! exports provided: CreateImportJobCommand */
18934/***/ (function(module, __webpack_exports__, __webpack_require__) {
18935
18936"use strict";
18937__webpack_require__.r(__webpack_exports__);
18938/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobCommand", function() { return CreateImportJobCommand; });
18939/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18940/* 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");
18941/* 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");
18942/* 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");
18943/* 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");
18944
18945
18946
18947
18948
18949/**
18950 * <p>Creates an import job for an application.</p>
18951 */
18952var CreateImportJobCommand = /** @class */ (function (_super) {
18953 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateImportJobCommand, _super);
18954 // Start section: command_properties
18955 // End section: command_properties
18956 function CreateImportJobCommand(input) {
18957 var _this =
18958 // Start section: command_constructor
18959 _super.call(this) || this;
18960 _this.input = input;
18961 return _this;
18962 // End section: command_constructor
18963 }
18964 /**
18965 * @internal
18966 */
18967 CreateImportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18968 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18969 var stack = clientStack.concat(this.middlewareStack);
18970 var logger = configuration.logger;
18971 var clientName = "PinpointClient";
18972 var commandName = "CreateImportJobCommand";
18973 var handlerExecutionContext = {
18974 logger: logger,
18975 clientName: clientName,
18976 commandName: commandName,
18977 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateImportJobRequest"].filterSensitiveLog,
18978 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateImportJobResponse"].filterSensitiveLog,
18979 };
18980 var requestHandler = configuration.requestHandler;
18981 return stack.resolve(function (request) {
18982 return requestHandler.handle(request.request, options || {});
18983 }, handlerExecutionContext);
18984 };
18985 CreateImportJobCommand.prototype.serialize = function (input, context) {
18986 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateImportJobCommand"])(input, context);
18987 };
18988 CreateImportJobCommand.prototype.deserialize = function (output, context) {
18989 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateImportJobCommand"])(output, context);
18990 };
18991 return CreateImportJobCommand;
18992}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18993
18994//# sourceMappingURL=CreateImportJobCommand.js.map
18995
18996/***/ }),
18997
18998/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js":
18999/*!*******************************************************************************************************!*\
19000 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js ***!
19001 \*******************************************************************************************************/
19002/*! exports provided: CreateJourneyCommand */
19003/***/ (function(module, __webpack_exports__, __webpack_require__) {
19004
19005"use strict";
19006__webpack_require__.r(__webpack_exports__);
19007/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyCommand", function() { return CreateJourneyCommand; });
19008/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19009/* 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");
19010/* 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");
19011/* 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");
19012/* 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");
19013
19014
19015
19016
19017
19018/**
19019 * <p>Creates a journey for an application.</p>
19020 */
19021var CreateJourneyCommand = /** @class */ (function (_super) {
19022 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateJourneyCommand, _super);
19023 // Start section: command_properties
19024 // End section: command_properties
19025 function CreateJourneyCommand(input) {
19026 var _this =
19027 // Start section: command_constructor
19028 _super.call(this) || this;
19029 _this.input = input;
19030 return _this;
19031 // End section: command_constructor
19032 }
19033 /**
19034 * @internal
19035 */
19036 CreateJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19037 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19038 var stack = clientStack.concat(this.middlewareStack);
19039 var logger = configuration.logger;
19040 var clientName = "PinpointClient";
19041 var commandName = "CreateJourneyCommand";
19042 var handlerExecutionContext = {
19043 logger: logger,
19044 clientName: clientName,
19045 commandName: commandName,
19046 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateJourneyRequest"].filterSensitiveLog,
19047 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateJourneyResponse"].filterSensitiveLog,
19048 };
19049 var requestHandler = configuration.requestHandler;
19050 return stack.resolve(function (request) {
19051 return requestHandler.handle(request.request, options || {});
19052 }, handlerExecutionContext);
19053 };
19054 CreateJourneyCommand.prototype.serialize = function (input, context) {
19055 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateJourneyCommand"])(input, context);
19056 };
19057 CreateJourneyCommand.prototype.deserialize = function (output, context) {
19058 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateJourneyCommand"])(output, context);
19059 };
19060 return CreateJourneyCommand;
19061}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19062
19063//# sourceMappingURL=CreateJourneyCommand.js.map
19064
19065/***/ }),
19066
19067/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js":
19068/*!************************************************************************************************************!*\
19069 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js ***!
19070 \************************************************************************************************************/
19071/*! exports provided: CreatePushTemplateCommand */
19072/***/ (function(module, __webpack_exports__, __webpack_require__) {
19073
19074"use strict";
19075__webpack_require__.r(__webpack_exports__);
19076/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateCommand", function() { return CreatePushTemplateCommand; });
19077/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19078/* 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");
19079/* 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");
19080/* 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");
19081/* 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");
19082
19083
19084
19085
19086
19087/**
19088 * <p>Creates a message template for messages that are sent through a push notification channel.</p>
19089 */
19090var CreatePushTemplateCommand = /** @class */ (function (_super) {
19091 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatePushTemplateCommand, _super);
19092 // Start section: command_properties
19093 // End section: command_properties
19094 function CreatePushTemplateCommand(input) {
19095 var _this =
19096 // Start section: command_constructor
19097 _super.call(this) || this;
19098 _this.input = input;
19099 return _this;
19100 // End section: command_constructor
19101 }
19102 /**
19103 * @internal
19104 */
19105 CreatePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19106 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19107 var stack = clientStack.concat(this.middlewareStack);
19108 var logger = configuration.logger;
19109 var clientName = "PinpointClient";
19110 var commandName = "CreatePushTemplateCommand";
19111 var handlerExecutionContext = {
19112 logger: logger,
19113 clientName: clientName,
19114 commandName: commandName,
19115 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreatePushTemplateRequest"].filterSensitiveLog,
19116 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreatePushTemplateResponse"].filterSensitiveLog,
19117 };
19118 var requestHandler = configuration.requestHandler;
19119 return stack.resolve(function (request) {
19120 return requestHandler.handle(request.request, options || {});
19121 }, handlerExecutionContext);
19122 };
19123 CreatePushTemplateCommand.prototype.serialize = function (input, context) {
19124 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreatePushTemplateCommand"])(input, context);
19125 };
19126 CreatePushTemplateCommand.prototype.deserialize = function (output, context) {
19127 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreatePushTemplateCommand"])(output, context);
19128 };
19129 return CreatePushTemplateCommand;
19130}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19131
19132//# sourceMappingURL=CreatePushTemplateCommand.js.map
19133
19134/***/ }),
19135
19136/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js":
19137/*!************************************************************************************************************************!*\
19138 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js ***!
19139 \************************************************************************************************************************/
19140/*! exports provided: CreateRecommenderConfigurationCommand */
19141/***/ (function(module, __webpack_exports__, __webpack_require__) {
19142
19143"use strict";
19144__webpack_require__.r(__webpack_exports__);
19145/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationCommand", function() { return CreateRecommenderConfigurationCommand; });
19146/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19147/* 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");
19148/* 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");
19149/* 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");
19150/* 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");
19151
19152
19153
19154
19155
19156/**
19157 * <p>Creates an Amazon Pinpoint configuration for a recommender model.</p>
19158 */
19159var CreateRecommenderConfigurationCommand = /** @class */ (function (_super) {
19160 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateRecommenderConfigurationCommand, _super);
19161 // Start section: command_properties
19162 // End section: command_properties
19163 function CreateRecommenderConfigurationCommand(input) {
19164 var _this =
19165 // Start section: command_constructor
19166 _super.call(this) || this;
19167 _this.input = input;
19168 return _this;
19169 // End section: command_constructor
19170 }
19171 /**
19172 * @internal
19173 */
19174 CreateRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19175 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19176 var stack = clientStack.concat(this.middlewareStack);
19177 var logger = configuration.logger;
19178 var clientName = "PinpointClient";
19179 var commandName = "CreateRecommenderConfigurationCommand";
19180 var handlerExecutionContext = {
19181 logger: logger,
19182 clientName: clientName,
19183 commandName: commandName,
19184 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateRecommenderConfigurationRequest"].filterSensitiveLog,
19185 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateRecommenderConfigurationResponse"].filterSensitiveLog,
19186 };
19187 var requestHandler = configuration.requestHandler;
19188 return stack.resolve(function (request) {
19189 return requestHandler.handle(request.request, options || {});
19190 }, handlerExecutionContext);
19191 };
19192 CreateRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
19193 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateRecommenderConfigurationCommand"])(input, context);
19194 };
19195 CreateRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
19196 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateRecommenderConfigurationCommand"])(output, context);
19197 };
19198 return CreateRecommenderConfigurationCommand;
19199}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19200
19201//# sourceMappingURL=CreateRecommenderConfigurationCommand.js.map
19202
19203/***/ }),
19204
19205/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js":
19206/*!*******************************************************************************************************!*\
19207 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js ***!
19208 \*******************************************************************************************************/
19209/*! exports provided: CreateSegmentCommand */
19210/***/ (function(module, __webpack_exports__, __webpack_require__) {
19211
19212"use strict";
19213__webpack_require__.r(__webpack_exports__);
19214/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentCommand", function() { return CreateSegmentCommand; });
19215/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19216/* 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");
19217/* 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");
19218/* 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");
19219/* 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");
19220
19221
19222
19223
19224
19225/**
19226 * <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>
19227 */
19228var CreateSegmentCommand = /** @class */ (function (_super) {
19229 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateSegmentCommand, _super);
19230 // Start section: command_properties
19231 // End section: command_properties
19232 function CreateSegmentCommand(input) {
19233 var _this =
19234 // Start section: command_constructor
19235 _super.call(this) || this;
19236 _this.input = input;
19237 return _this;
19238 // End section: command_constructor
19239 }
19240 /**
19241 * @internal
19242 */
19243 CreateSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19244 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19245 var stack = clientStack.concat(this.middlewareStack);
19246 var logger = configuration.logger;
19247 var clientName = "PinpointClient";
19248 var commandName = "CreateSegmentCommand";
19249 var handlerExecutionContext = {
19250 logger: logger,
19251 clientName: clientName,
19252 commandName: commandName,
19253 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSegmentRequest"].filterSensitiveLog,
19254 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSegmentResponse"].filterSensitiveLog,
19255 };
19256 var requestHandler = configuration.requestHandler;
19257 return stack.resolve(function (request) {
19258 return requestHandler.handle(request.request, options || {});
19259 }, handlerExecutionContext);
19260 };
19261 CreateSegmentCommand.prototype.serialize = function (input, context) {
19262 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateSegmentCommand"])(input, context);
19263 };
19264 CreateSegmentCommand.prototype.deserialize = function (output, context) {
19265 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateSegmentCommand"])(output, context);
19266 };
19267 return CreateSegmentCommand;
19268}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19269
19270//# sourceMappingURL=CreateSegmentCommand.js.map
19271
19272/***/ }),
19273
19274/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js":
19275/*!***********************************************************************************************************!*\
19276 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js ***!
19277 \***********************************************************************************************************/
19278/*! exports provided: CreateSmsTemplateCommand */
19279/***/ (function(module, __webpack_exports__, __webpack_require__) {
19280
19281"use strict";
19282__webpack_require__.r(__webpack_exports__);
19283/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateCommand", function() { return CreateSmsTemplateCommand; });
19284/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19285/* 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");
19286/* 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");
19287/* 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");
19288/* 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");
19289
19290
19291
19292
19293
19294/**
19295 * <p>Creates a message template for messages that are sent through the SMS channel.</p>
19296 */
19297var CreateSmsTemplateCommand = /** @class */ (function (_super) {
19298 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateSmsTemplateCommand, _super);
19299 // Start section: command_properties
19300 // End section: command_properties
19301 function CreateSmsTemplateCommand(input) {
19302 var _this =
19303 // Start section: command_constructor
19304 _super.call(this) || this;
19305 _this.input = input;
19306 return _this;
19307 // End section: command_constructor
19308 }
19309 /**
19310 * @internal
19311 */
19312 CreateSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19313 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19314 var stack = clientStack.concat(this.middlewareStack);
19315 var logger = configuration.logger;
19316 var clientName = "PinpointClient";
19317 var commandName = "CreateSmsTemplateCommand";
19318 var handlerExecutionContext = {
19319 logger: logger,
19320 clientName: clientName,
19321 commandName: commandName,
19322 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSmsTemplateRequest"].filterSensitiveLog,
19323 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSmsTemplateResponse"].filterSensitiveLog,
19324 };
19325 var requestHandler = configuration.requestHandler;
19326 return stack.resolve(function (request) {
19327 return requestHandler.handle(request.request, options || {});
19328 }, handlerExecutionContext);
19329 };
19330 CreateSmsTemplateCommand.prototype.serialize = function (input, context) {
19331 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateSmsTemplateCommand"])(input, context);
19332 };
19333 CreateSmsTemplateCommand.prototype.deserialize = function (output, context) {
19334 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateSmsTemplateCommand"])(output, context);
19335 };
19336 return CreateSmsTemplateCommand;
19337}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19338
19339//# sourceMappingURL=CreateSmsTemplateCommand.js.map
19340
19341/***/ }),
19342
19343/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js":
19344/*!*************************************************************************************************************!*\
19345 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js ***!
19346 \*************************************************************************************************************/
19347/*! exports provided: CreateVoiceTemplateCommand */
19348/***/ (function(module, __webpack_exports__, __webpack_require__) {
19349
19350"use strict";
19351__webpack_require__.r(__webpack_exports__);
19352/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateCommand", function() { return CreateVoiceTemplateCommand; });
19353/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19354/* 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");
19355/* 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");
19356/* 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");
19357/* 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");
19358
19359
19360
19361
19362
19363/**
19364 * <p>Creates a message template for messages that are sent through the voice channel.</p>
19365 */
19366var CreateVoiceTemplateCommand = /** @class */ (function (_super) {
19367 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateVoiceTemplateCommand, _super);
19368 // Start section: command_properties
19369 // End section: command_properties
19370 function CreateVoiceTemplateCommand(input) {
19371 var _this =
19372 // Start section: command_constructor
19373 _super.call(this) || this;
19374 _this.input = input;
19375 return _this;
19376 // End section: command_constructor
19377 }
19378 /**
19379 * @internal
19380 */
19381 CreateVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19382 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19383 var stack = clientStack.concat(this.middlewareStack);
19384 var logger = configuration.logger;
19385 var clientName = "PinpointClient";
19386 var commandName = "CreateVoiceTemplateCommand";
19387 var handlerExecutionContext = {
19388 logger: logger,
19389 clientName: clientName,
19390 commandName: commandName,
19391 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateVoiceTemplateRequest"].filterSensitiveLog,
19392 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateVoiceTemplateResponse"].filterSensitiveLog,
19393 };
19394 var requestHandler = configuration.requestHandler;
19395 return stack.resolve(function (request) {
19396 return requestHandler.handle(request.request, options || {});
19397 }, handlerExecutionContext);
19398 };
19399 CreateVoiceTemplateCommand.prototype.serialize = function (input, context) {
19400 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateVoiceTemplateCommand"])(input, context);
19401 };
19402 CreateVoiceTemplateCommand.prototype.deserialize = function (output, context) {
19403 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateVoiceTemplateCommand"])(output, context);
19404 };
19405 return CreateVoiceTemplateCommand;
19406}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19407
19408//# sourceMappingURL=CreateVoiceTemplateCommand.js.map
19409
19410/***/ }),
19411
19412/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js":
19413/*!**********************************************************************************************************!*\
19414 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js ***!
19415 \**********************************************************************************************************/
19416/*! exports provided: DeleteAdmChannelCommand */
19417/***/ (function(module, __webpack_exports__, __webpack_require__) {
19418
19419"use strict";
19420__webpack_require__.r(__webpack_exports__);
19421/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelCommand", function() { return DeleteAdmChannelCommand; });
19422/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19423/* 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");
19424/* 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");
19425/* 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");
19426/* 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");
19427
19428
19429
19430
19431
19432/**
19433 * <p>Disables the ADM channel for an application and deletes any existing settings for the channel.</p>
19434 */
19435var DeleteAdmChannelCommand = /** @class */ (function (_super) {
19436 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteAdmChannelCommand, _super);
19437 // Start section: command_properties
19438 // End section: command_properties
19439 function DeleteAdmChannelCommand(input) {
19440 var _this =
19441 // Start section: command_constructor
19442 _super.call(this) || this;
19443 _this.input = input;
19444 return _this;
19445 // End section: command_constructor
19446 }
19447 /**
19448 * @internal
19449 */
19450 DeleteAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19451 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19452 var stack = clientStack.concat(this.middlewareStack);
19453 var logger = configuration.logger;
19454 var clientName = "PinpointClient";
19455 var commandName = "DeleteAdmChannelCommand";
19456 var handlerExecutionContext = {
19457 logger: logger,
19458 clientName: clientName,
19459 commandName: commandName,
19460 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAdmChannelRequest"].filterSensitiveLog,
19461 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAdmChannelResponse"].filterSensitiveLog,
19462 };
19463 var requestHandler = configuration.requestHandler;
19464 return stack.resolve(function (request) {
19465 return requestHandler.handle(request.request, options || {});
19466 }, handlerExecutionContext);
19467 };
19468 DeleteAdmChannelCommand.prototype.serialize = function (input, context) {
19469 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteAdmChannelCommand"])(input, context);
19470 };
19471 DeleteAdmChannelCommand.prototype.deserialize = function (output, context) {
19472 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteAdmChannelCommand"])(output, context);
19473 };
19474 return DeleteAdmChannelCommand;
19475}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19476
19477//# sourceMappingURL=DeleteAdmChannelCommand.js.map
19478
19479/***/ }),
19480
19481/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js":
19482/*!***********************************************************************************************************!*\
19483 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js ***!
19484 \***********************************************************************************************************/
19485/*! exports provided: DeleteApnsChannelCommand */
19486/***/ (function(module, __webpack_exports__, __webpack_require__) {
19487
19488"use strict";
19489__webpack_require__.r(__webpack_exports__);
19490/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelCommand", function() { return DeleteApnsChannelCommand; });
19491/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19492/* 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");
19493/* 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");
19494/* 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");
19495/* 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");
19496
19497
19498
19499
19500
19501/**
19502 * <p>Disables the APNs channel for an application and deletes any existing settings for the channel.</p>
19503 */
19504var DeleteApnsChannelCommand = /** @class */ (function (_super) {
19505 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsChannelCommand, _super);
19506 // Start section: command_properties
19507 // End section: command_properties
19508 function DeleteApnsChannelCommand(input) {
19509 var _this =
19510 // Start section: command_constructor
19511 _super.call(this) || this;
19512 _this.input = input;
19513 return _this;
19514 // End section: command_constructor
19515 }
19516 /**
19517 * @internal
19518 */
19519 DeleteApnsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19520 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19521 var stack = clientStack.concat(this.middlewareStack);
19522 var logger = configuration.logger;
19523 var clientName = "PinpointClient";
19524 var commandName = "DeleteApnsChannelCommand";
19525 var handlerExecutionContext = {
19526 logger: logger,
19527 clientName: clientName,
19528 commandName: commandName,
19529 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsChannelRequest"].filterSensitiveLog,
19530 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsChannelResponse"].filterSensitiveLog,
19531 };
19532 var requestHandler = configuration.requestHandler;
19533 return stack.resolve(function (request) {
19534 return requestHandler.handle(request.request, options || {});
19535 }, handlerExecutionContext);
19536 };
19537 DeleteApnsChannelCommand.prototype.serialize = function (input, context) {
19538 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsChannelCommand"])(input, context);
19539 };
19540 DeleteApnsChannelCommand.prototype.deserialize = function (output, context) {
19541 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsChannelCommand"])(output, context);
19542 };
19543 return DeleteApnsChannelCommand;
19544}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19545
19546//# sourceMappingURL=DeleteApnsChannelCommand.js.map
19547
19548/***/ }),
19549
19550/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js":
19551/*!******************************************************************************************************************!*\
19552 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js ***!
19553 \******************************************************************************************************************/
19554/*! exports provided: DeleteApnsSandboxChannelCommand */
19555/***/ (function(module, __webpack_exports__, __webpack_require__) {
19556
19557"use strict";
19558__webpack_require__.r(__webpack_exports__);
19559/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelCommand", function() { return DeleteApnsSandboxChannelCommand; });
19560/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19561/* 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");
19562/* 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");
19563/* 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");
19564/* 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");
19565
19566
19567
19568
19569
19570/**
19571 * <p>Disables the APNs sandbox channel for an application and deletes any existing settings for the channel.</p>
19572 */
19573var DeleteApnsSandboxChannelCommand = /** @class */ (function (_super) {
19574 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsSandboxChannelCommand, _super);
19575 // Start section: command_properties
19576 // End section: command_properties
19577 function DeleteApnsSandboxChannelCommand(input) {
19578 var _this =
19579 // Start section: command_constructor
19580 _super.call(this) || this;
19581 _this.input = input;
19582 return _this;
19583 // End section: command_constructor
19584 }
19585 /**
19586 * @internal
19587 */
19588 DeleteApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19589 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19590 var stack = clientStack.concat(this.middlewareStack);
19591 var logger = configuration.logger;
19592 var clientName = "PinpointClient";
19593 var commandName = "DeleteApnsSandboxChannelCommand";
19594 var handlerExecutionContext = {
19595 logger: logger,
19596 clientName: clientName,
19597 commandName: commandName,
19598 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsSandboxChannelRequest"].filterSensitiveLog,
19599 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsSandboxChannelResponse"].filterSensitiveLog,
19600 };
19601 var requestHandler = configuration.requestHandler;
19602 return stack.resolve(function (request) {
19603 return requestHandler.handle(request.request, options || {});
19604 }, handlerExecutionContext);
19605 };
19606 DeleteApnsSandboxChannelCommand.prototype.serialize = function (input, context) {
19607 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsSandboxChannelCommand"])(input, context);
19608 };
19609 DeleteApnsSandboxChannelCommand.prototype.deserialize = function (output, context) {
19610 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsSandboxChannelCommand"])(output, context);
19611 };
19612 return DeleteApnsSandboxChannelCommand;
19613}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19614
19615//# sourceMappingURL=DeleteApnsSandboxChannelCommand.js.map
19616
19617/***/ }),
19618
19619/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js":
19620/*!***************************************************************************************************************!*\
19621 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js ***!
19622 \***************************************************************************************************************/
19623/*! exports provided: DeleteApnsVoipChannelCommand */
19624/***/ (function(module, __webpack_exports__, __webpack_require__) {
19625
19626"use strict";
19627__webpack_require__.r(__webpack_exports__);
19628/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelCommand", function() { return DeleteApnsVoipChannelCommand; });
19629/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19630/* 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");
19631/* 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");
19632/* 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");
19633/* 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");
19634
19635
19636
19637
19638
19639/**
19640 * <p>Disables the APNs VoIP channel for an application and deletes any existing settings for the channel.</p>
19641 */
19642var DeleteApnsVoipChannelCommand = /** @class */ (function (_super) {
19643 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsVoipChannelCommand, _super);
19644 // Start section: command_properties
19645 // End section: command_properties
19646 function DeleteApnsVoipChannelCommand(input) {
19647 var _this =
19648 // Start section: command_constructor
19649 _super.call(this) || this;
19650 _this.input = input;
19651 return _this;
19652 // End section: command_constructor
19653 }
19654 /**
19655 * @internal
19656 */
19657 DeleteApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19658 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19659 var stack = clientStack.concat(this.middlewareStack);
19660 var logger = configuration.logger;
19661 var clientName = "PinpointClient";
19662 var commandName = "DeleteApnsVoipChannelCommand";
19663 var handlerExecutionContext = {
19664 logger: logger,
19665 clientName: clientName,
19666 commandName: commandName,
19667 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipChannelRequest"].filterSensitiveLog,
19668 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipChannelResponse"].filterSensitiveLog,
19669 };
19670 var requestHandler = configuration.requestHandler;
19671 return stack.resolve(function (request) {
19672 return requestHandler.handle(request.request, options || {});
19673 }, handlerExecutionContext);
19674 };
19675 DeleteApnsVoipChannelCommand.prototype.serialize = function (input, context) {
19676 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsVoipChannelCommand"])(input, context);
19677 };
19678 DeleteApnsVoipChannelCommand.prototype.deserialize = function (output, context) {
19679 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsVoipChannelCommand"])(output, context);
19680 };
19681 return DeleteApnsVoipChannelCommand;
19682}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19683
19684//# sourceMappingURL=DeleteApnsVoipChannelCommand.js.map
19685
19686/***/ }),
19687
19688/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js":
19689/*!**********************************************************************************************************************!*\
19690 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js ***!
19691 \**********************************************************************************************************************/
19692/*! exports provided: DeleteApnsVoipSandboxChannelCommand */
19693/***/ (function(module, __webpack_exports__, __webpack_require__) {
19694
19695"use strict";
19696__webpack_require__.r(__webpack_exports__);
19697/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelCommand", function() { return DeleteApnsVoipSandboxChannelCommand; });
19698/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19699/* 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");
19700/* 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");
19701/* 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");
19702/* 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");
19703
19704
19705
19706
19707
19708/**
19709 * <p>Disables the APNs VoIP sandbox channel for an application and deletes any existing settings for the channel.</p>
19710 */
19711var DeleteApnsVoipSandboxChannelCommand = /** @class */ (function (_super) {
19712 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsVoipSandboxChannelCommand, _super);
19713 // Start section: command_properties
19714 // End section: command_properties
19715 function DeleteApnsVoipSandboxChannelCommand(input) {
19716 var _this =
19717 // Start section: command_constructor
19718 _super.call(this) || this;
19719 _this.input = input;
19720 return _this;
19721 // End section: command_constructor
19722 }
19723 /**
19724 * @internal
19725 */
19726 DeleteApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19727 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19728 var stack = clientStack.concat(this.middlewareStack);
19729 var logger = configuration.logger;
19730 var clientName = "PinpointClient";
19731 var commandName = "DeleteApnsVoipSandboxChannelCommand";
19732 var handlerExecutionContext = {
19733 logger: logger,
19734 clientName: clientName,
19735 commandName: commandName,
19736 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipSandboxChannelRequest"].filterSensitiveLog,
19737 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipSandboxChannelResponse"].filterSensitiveLog,
19738 };
19739 var requestHandler = configuration.requestHandler;
19740 return stack.resolve(function (request) {
19741 return requestHandler.handle(request.request, options || {});
19742 }, handlerExecutionContext);
19743 };
19744 DeleteApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) {
19745 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand"])(input, context);
19746 };
19747 DeleteApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) {
19748 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand"])(output, context);
19749 };
19750 return DeleteApnsVoipSandboxChannelCommand;
19751}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19752
19753//# sourceMappingURL=DeleteApnsVoipSandboxChannelCommand.js.map
19754
19755/***/ }),
19756
19757/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js":
19758/*!***************************************************************************************************!*\
19759 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js ***!
19760 \***************************************************************************************************/
19761/*! exports provided: DeleteAppCommand */
19762/***/ (function(module, __webpack_exports__, __webpack_require__) {
19763
19764"use strict";
19765__webpack_require__.r(__webpack_exports__);
19766/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAppCommand", function() { return DeleteAppCommand; });
19767/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19768/* 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");
19769/* 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");
19770/* 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");
19771/* 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");
19772
19773
19774
19775
19776
19777/**
19778 * <p>Deletes an application.</p>
19779 */
19780var DeleteAppCommand = /** @class */ (function (_super) {
19781 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteAppCommand, _super);
19782 // Start section: command_properties
19783 // End section: command_properties
19784 function DeleteAppCommand(input) {
19785 var _this =
19786 // Start section: command_constructor
19787 _super.call(this) || this;
19788 _this.input = input;
19789 return _this;
19790 // End section: command_constructor
19791 }
19792 /**
19793 * @internal
19794 */
19795 DeleteAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19796 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19797 var stack = clientStack.concat(this.middlewareStack);
19798 var logger = configuration.logger;
19799 var clientName = "PinpointClient";
19800 var commandName = "DeleteAppCommand";
19801 var handlerExecutionContext = {
19802 logger: logger,
19803 clientName: clientName,
19804 commandName: commandName,
19805 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAppRequest"].filterSensitiveLog,
19806 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAppResponse"].filterSensitiveLog,
19807 };
19808 var requestHandler = configuration.requestHandler;
19809 return stack.resolve(function (request) {
19810 return requestHandler.handle(request.request, options || {});
19811 }, handlerExecutionContext);
19812 };
19813 DeleteAppCommand.prototype.serialize = function (input, context) {
19814 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteAppCommand"])(input, context);
19815 };
19816 DeleteAppCommand.prototype.deserialize = function (output, context) {
19817 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteAppCommand"])(output, context);
19818 };
19819 return DeleteAppCommand;
19820}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19821
19822//# sourceMappingURL=DeleteAppCommand.js.map
19823
19824/***/ }),
19825
19826/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js":
19827/*!************************************************************************************************************!*\
19828 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js ***!
19829 \************************************************************************************************************/
19830/*! exports provided: DeleteBaiduChannelCommand */
19831/***/ (function(module, __webpack_exports__, __webpack_require__) {
19832
19833"use strict";
19834__webpack_require__.r(__webpack_exports__);
19835/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelCommand", function() { return DeleteBaiduChannelCommand; });
19836/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19837/* 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");
19838/* 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");
19839/* 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");
19840/* 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");
19841
19842
19843
19844
19845
19846/**
19847 * <p>Disables the Baidu channel for an application and deletes any existing settings for the channel.</p>
19848 */
19849var DeleteBaiduChannelCommand = /** @class */ (function (_super) {
19850 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBaiduChannelCommand, _super);
19851 // Start section: command_properties
19852 // End section: command_properties
19853 function DeleteBaiduChannelCommand(input) {
19854 var _this =
19855 // Start section: command_constructor
19856 _super.call(this) || this;
19857 _this.input = input;
19858 return _this;
19859 // End section: command_constructor
19860 }
19861 /**
19862 * @internal
19863 */
19864 DeleteBaiduChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19865 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19866 var stack = clientStack.concat(this.middlewareStack);
19867 var logger = configuration.logger;
19868 var clientName = "PinpointClient";
19869 var commandName = "DeleteBaiduChannelCommand";
19870 var handlerExecutionContext = {
19871 logger: logger,
19872 clientName: clientName,
19873 commandName: commandName,
19874 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteBaiduChannelRequest"].filterSensitiveLog,
19875 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteBaiduChannelResponse"].filterSensitiveLog,
19876 };
19877 var requestHandler = configuration.requestHandler;
19878 return stack.resolve(function (request) {
19879 return requestHandler.handle(request.request, options || {});
19880 }, handlerExecutionContext);
19881 };
19882 DeleteBaiduChannelCommand.prototype.serialize = function (input, context) {
19883 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteBaiduChannelCommand"])(input, context);
19884 };
19885 DeleteBaiduChannelCommand.prototype.deserialize = function (output, context) {
19886 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteBaiduChannelCommand"])(output, context);
19887 };
19888 return DeleteBaiduChannelCommand;
19889}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19890
19891//# sourceMappingURL=DeleteBaiduChannelCommand.js.map
19892
19893/***/ }),
19894
19895/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js":
19896/*!********************************************************************************************************!*\
19897 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js ***!
19898 \********************************************************************************************************/
19899/*! exports provided: DeleteCampaignCommand */
19900/***/ (function(module, __webpack_exports__, __webpack_require__) {
19901
19902"use strict";
19903__webpack_require__.r(__webpack_exports__);
19904/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignCommand", function() { return DeleteCampaignCommand; });
19905/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19906/* 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");
19907/* 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");
19908/* 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");
19909/* 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");
19910
19911
19912
19913
19914
19915/**
19916 * <p>Deletes a campaign from an application.</p>
19917 */
19918var DeleteCampaignCommand = /** @class */ (function (_super) {
19919 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteCampaignCommand, _super);
19920 // Start section: command_properties
19921 // End section: command_properties
19922 function DeleteCampaignCommand(input) {
19923 var _this =
19924 // Start section: command_constructor
19925 _super.call(this) || this;
19926 _this.input = input;
19927 return _this;
19928 // End section: command_constructor
19929 }
19930 /**
19931 * @internal
19932 */
19933 DeleteCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19934 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19935 var stack = clientStack.concat(this.middlewareStack);
19936 var logger = configuration.logger;
19937 var clientName = "PinpointClient";
19938 var commandName = "DeleteCampaignCommand";
19939 var handlerExecutionContext = {
19940 logger: logger,
19941 clientName: clientName,
19942 commandName: commandName,
19943 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteCampaignRequest"].filterSensitiveLog,
19944 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteCampaignResponse"].filterSensitiveLog,
19945 };
19946 var requestHandler = configuration.requestHandler;
19947 return stack.resolve(function (request) {
19948 return requestHandler.handle(request.request, options || {});
19949 }, handlerExecutionContext);
19950 };
19951 DeleteCampaignCommand.prototype.serialize = function (input, context) {
19952 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteCampaignCommand"])(input, context);
19953 };
19954 DeleteCampaignCommand.prototype.deserialize = function (output, context) {
19955 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteCampaignCommand"])(output, context);
19956 };
19957 return DeleteCampaignCommand;
19958}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19959
19960//# sourceMappingURL=DeleteCampaignCommand.js.map
19961
19962/***/ }),
19963
19964/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js":
19965/*!************************************************************************************************************!*\
19966 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js ***!
19967 \************************************************************************************************************/
19968/*! exports provided: DeleteEmailChannelCommand */
19969/***/ (function(module, __webpack_exports__, __webpack_require__) {
19970
19971"use strict";
19972__webpack_require__.r(__webpack_exports__);
19973/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelCommand", function() { return DeleteEmailChannelCommand; });
19974/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19975/* 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");
19976/* 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");
19977/* 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");
19978/* 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");
19979
19980
19981
19982
19983
19984/**
19985 * <p>Disables the email channel for an application and deletes any existing settings for the channel.</p>
19986 */
19987var DeleteEmailChannelCommand = /** @class */ (function (_super) {
19988 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEmailChannelCommand, _super);
19989 // Start section: command_properties
19990 // End section: command_properties
19991 function DeleteEmailChannelCommand(input) {
19992 var _this =
19993 // Start section: command_constructor
19994 _super.call(this) || this;
19995 _this.input = input;
19996 return _this;
19997 // End section: command_constructor
19998 }
19999 /**
20000 * @internal
20001 */
20002 DeleteEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20003 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20004 var stack = clientStack.concat(this.middlewareStack);
20005 var logger = configuration.logger;
20006 var clientName = "PinpointClient";
20007 var commandName = "DeleteEmailChannelCommand";
20008 var handlerExecutionContext = {
20009 logger: logger,
20010 clientName: clientName,
20011 commandName: commandName,
20012 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailChannelRequest"].filterSensitiveLog,
20013 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailChannelResponse"].filterSensitiveLog,
20014 };
20015 var requestHandler = configuration.requestHandler;
20016 return stack.resolve(function (request) {
20017 return requestHandler.handle(request.request, options || {});
20018 }, handlerExecutionContext);
20019 };
20020 DeleteEmailChannelCommand.prototype.serialize = function (input, context) {
20021 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEmailChannelCommand"])(input, context);
20022 };
20023 DeleteEmailChannelCommand.prototype.deserialize = function (output, context) {
20024 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEmailChannelCommand"])(output, context);
20025 };
20026 return DeleteEmailChannelCommand;
20027}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20028
20029//# sourceMappingURL=DeleteEmailChannelCommand.js.map
20030
20031/***/ }),
20032
20033/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js":
20034/*!*************************************************************************************************************!*\
20035 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js ***!
20036 \*************************************************************************************************************/
20037/*! exports provided: DeleteEmailTemplateCommand */
20038/***/ (function(module, __webpack_exports__, __webpack_require__) {
20039
20040"use strict";
20041__webpack_require__.r(__webpack_exports__);
20042/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateCommand", function() { return DeleteEmailTemplateCommand; });
20043/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20044/* 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");
20045/* 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");
20046/* 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");
20047/* 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");
20048
20049
20050
20051
20052
20053/**
20054 * <p>Deletes a message template for messages that were sent through the email channel.</p>
20055 */
20056var DeleteEmailTemplateCommand = /** @class */ (function (_super) {
20057 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEmailTemplateCommand, _super);
20058 // Start section: command_properties
20059 // End section: command_properties
20060 function DeleteEmailTemplateCommand(input) {
20061 var _this =
20062 // Start section: command_constructor
20063 _super.call(this) || this;
20064 _this.input = input;
20065 return _this;
20066 // End section: command_constructor
20067 }
20068 /**
20069 * @internal
20070 */
20071 DeleteEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20072 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20073 var stack = clientStack.concat(this.middlewareStack);
20074 var logger = configuration.logger;
20075 var clientName = "PinpointClient";
20076 var commandName = "DeleteEmailTemplateCommand";
20077 var handlerExecutionContext = {
20078 logger: logger,
20079 clientName: clientName,
20080 commandName: commandName,
20081 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailTemplateRequest"].filterSensitiveLog,
20082 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailTemplateResponse"].filterSensitiveLog,
20083 };
20084 var requestHandler = configuration.requestHandler;
20085 return stack.resolve(function (request) {
20086 return requestHandler.handle(request.request, options || {});
20087 }, handlerExecutionContext);
20088 };
20089 DeleteEmailTemplateCommand.prototype.serialize = function (input, context) {
20090 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEmailTemplateCommand"])(input, context);
20091 };
20092 DeleteEmailTemplateCommand.prototype.deserialize = function (output, context) {
20093 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEmailTemplateCommand"])(output, context);
20094 };
20095 return DeleteEmailTemplateCommand;
20096}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20097
20098//# sourceMappingURL=DeleteEmailTemplateCommand.js.map
20099
20100/***/ }),
20101
20102/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js":
20103/*!********************************************************************************************************!*\
20104 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js ***!
20105 \********************************************************************************************************/
20106/*! exports provided: DeleteEndpointCommand */
20107/***/ (function(module, __webpack_exports__, __webpack_require__) {
20108
20109"use strict";
20110__webpack_require__.r(__webpack_exports__);
20111/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointCommand", function() { return DeleteEndpointCommand; });
20112/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20113/* 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");
20114/* 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");
20115/* 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");
20116/* 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");
20117
20118
20119
20120
20121
20122/**
20123 * <p>Deletes an endpoint from an application.</p>
20124 */
20125var DeleteEndpointCommand = /** @class */ (function (_super) {
20126 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEndpointCommand, _super);
20127 // Start section: command_properties
20128 // End section: command_properties
20129 function DeleteEndpointCommand(input) {
20130 var _this =
20131 // Start section: command_constructor
20132 _super.call(this) || this;
20133 _this.input = input;
20134 return _this;
20135 // End section: command_constructor
20136 }
20137 /**
20138 * @internal
20139 */
20140 DeleteEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20141 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20142 var stack = clientStack.concat(this.middlewareStack);
20143 var logger = configuration.logger;
20144 var clientName = "PinpointClient";
20145 var commandName = "DeleteEndpointCommand";
20146 var handlerExecutionContext = {
20147 logger: logger,
20148 clientName: clientName,
20149 commandName: commandName,
20150 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointRequest"].filterSensitiveLog,
20151 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointResponse"].filterSensitiveLog,
20152 };
20153 var requestHandler = configuration.requestHandler;
20154 return stack.resolve(function (request) {
20155 return requestHandler.handle(request.request, options || {});
20156 }, handlerExecutionContext);
20157 };
20158 DeleteEndpointCommand.prototype.serialize = function (input, context) {
20159 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEndpointCommand"])(input, context);
20160 };
20161 DeleteEndpointCommand.prototype.deserialize = function (output, context) {
20162 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEndpointCommand"])(output, context);
20163 };
20164 return DeleteEndpointCommand;
20165}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20166
20167//# sourceMappingURL=DeleteEndpointCommand.js.map
20168
20169/***/ }),
20170
20171/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js":
20172/*!***********************************************************************************************************!*\
20173 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js ***!
20174 \***********************************************************************************************************/
20175/*! exports provided: DeleteEventStreamCommand */
20176/***/ (function(module, __webpack_exports__, __webpack_require__) {
20177
20178"use strict";
20179__webpack_require__.r(__webpack_exports__);
20180/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamCommand", function() { return DeleteEventStreamCommand; });
20181/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20182/* 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");
20183/* 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");
20184/* 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");
20185/* 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");
20186
20187
20188
20189
20190
20191/**
20192 * <p>Deletes the event stream for an application.</p>
20193 */
20194var DeleteEventStreamCommand = /** @class */ (function (_super) {
20195 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEventStreamCommand, _super);
20196 // Start section: command_properties
20197 // End section: command_properties
20198 function DeleteEventStreamCommand(input) {
20199 var _this =
20200 // Start section: command_constructor
20201 _super.call(this) || this;
20202 _this.input = input;
20203 return _this;
20204 // End section: command_constructor
20205 }
20206 /**
20207 * @internal
20208 */
20209 DeleteEventStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20210 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20211 var stack = clientStack.concat(this.middlewareStack);
20212 var logger = configuration.logger;
20213 var clientName = "PinpointClient";
20214 var commandName = "DeleteEventStreamCommand";
20215 var handlerExecutionContext = {
20216 logger: logger,
20217 clientName: clientName,
20218 commandName: commandName,
20219 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEventStreamRequest"].filterSensitiveLog,
20220 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEventStreamResponse"].filterSensitiveLog,
20221 };
20222 var requestHandler = configuration.requestHandler;
20223 return stack.resolve(function (request) {
20224 return requestHandler.handle(request.request, options || {});
20225 }, handlerExecutionContext);
20226 };
20227 DeleteEventStreamCommand.prototype.serialize = function (input, context) {
20228 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEventStreamCommand"])(input, context);
20229 };
20230 DeleteEventStreamCommand.prototype.deserialize = function (output, context) {
20231 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEventStreamCommand"])(output, context);
20232 };
20233 return DeleteEventStreamCommand;
20234}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20235
20236//# sourceMappingURL=DeleteEventStreamCommand.js.map
20237
20238/***/ }),
20239
20240/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js":
20241/*!**********************************************************************************************************!*\
20242 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js ***!
20243 \**********************************************************************************************************/
20244/*! exports provided: DeleteGcmChannelCommand */
20245/***/ (function(module, __webpack_exports__, __webpack_require__) {
20246
20247"use strict";
20248__webpack_require__.r(__webpack_exports__);
20249/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelCommand", function() { return DeleteGcmChannelCommand; });
20250/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20251/* 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");
20252/* 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");
20253/* 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");
20254/* 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");
20255
20256
20257
20258
20259
20260/**
20261 * <p>Disables the GCM channel for an application and deletes any existing settings for the channel.</p>
20262 */
20263var DeleteGcmChannelCommand = /** @class */ (function (_super) {
20264 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteGcmChannelCommand, _super);
20265 // Start section: command_properties
20266 // End section: command_properties
20267 function DeleteGcmChannelCommand(input) {
20268 var _this =
20269 // Start section: command_constructor
20270 _super.call(this) || this;
20271 _this.input = input;
20272 return _this;
20273 // End section: command_constructor
20274 }
20275 /**
20276 * @internal
20277 */
20278 DeleteGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20279 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20280 var stack = clientStack.concat(this.middlewareStack);
20281 var logger = configuration.logger;
20282 var clientName = "PinpointClient";
20283 var commandName = "DeleteGcmChannelCommand";
20284 var handlerExecutionContext = {
20285 logger: logger,
20286 clientName: clientName,
20287 commandName: commandName,
20288 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteGcmChannelRequest"].filterSensitiveLog,
20289 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteGcmChannelResponse"].filterSensitiveLog,
20290 };
20291 var requestHandler = configuration.requestHandler;
20292 return stack.resolve(function (request) {
20293 return requestHandler.handle(request.request, options || {});
20294 }, handlerExecutionContext);
20295 };
20296 DeleteGcmChannelCommand.prototype.serialize = function (input, context) {
20297 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteGcmChannelCommand"])(input, context);
20298 };
20299 DeleteGcmChannelCommand.prototype.deserialize = function (output, context) {
20300 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteGcmChannelCommand"])(output, context);
20301 };
20302 return DeleteGcmChannelCommand;
20303}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20304
20305//# sourceMappingURL=DeleteGcmChannelCommand.js.map
20306
20307/***/ }),
20308
20309/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js":
20310/*!*******************************************************************************************************!*\
20311 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js ***!
20312 \*******************************************************************************************************/
20313/*! exports provided: DeleteJourneyCommand */
20314/***/ (function(module, __webpack_exports__, __webpack_require__) {
20315
20316"use strict";
20317__webpack_require__.r(__webpack_exports__);
20318/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyCommand", function() { return DeleteJourneyCommand; });
20319/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20320/* 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");
20321/* 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");
20322/* 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");
20323/* 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");
20324
20325
20326
20327
20328
20329/**
20330 * <p>Deletes a journey from an application.</p>
20331 */
20332var DeleteJourneyCommand = /** @class */ (function (_super) {
20333 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteJourneyCommand, _super);
20334 // Start section: command_properties
20335 // End section: command_properties
20336 function DeleteJourneyCommand(input) {
20337 var _this =
20338 // Start section: command_constructor
20339 _super.call(this) || this;
20340 _this.input = input;
20341 return _this;
20342 // End section: command_constructor
20343 }
20344 /**
20345 * @internal
20346 */
20347 DeleteJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20348 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20349 var stack = clientStack.concat(this.middlewareStack);
20350 var logger = configuration.logger;
20351 var clientName = "PinpointClient";
20352 var commandName = "DeleteJourneyCommand";
20353 var handlerExecutionContext = {
20354 logger: logger,
20355 clientName: clientName,
20356 commandName: commandName,
20357 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteJourneyRequest"].filterSensitiveLog,
20358 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteJourneyResponse"].filterSensitiveLog,
20359 };
20360 var requestHandler = configuration.requestHandler;
20361 return stack.resolve(function (request) {
20362 return requestHandler.handle(request.request, options || {});
20363 }, handlerExecutionContext);
20364 };
20365 DeleteJourneyCommand.prototype.serialize = function (input, context) {
20366 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteJourneyCommand"])(input, context);
20367 };
20368 DeleteJourneyCommand.prototype.deserialize = function (output, context) {
20369 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteJourneyCommand"])(output, context);
20370 };
20371 return DeleteJourneyCommand;
20372}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20373
20374//# sourceMappingURL=DeleteJourneyCommand.js.map
20375
20376/***/ }),
20377
20378/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js":
20379/*!************************************************************************************************************!*\
20380 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js ***!
20381 \************************************************************************************************************/
20382/*! exports provided: DeletePushTemplateCommand */
20383/***/ (function(module, __webpack_exports__, __webpack_require__) {
20384
20385"use strict";
20386__webpack_require__.r(__webpack_exports__);
20387/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateCommand", function() { return DeletePushTemplateCommand; });
20388/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20389/* 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");
20390/* 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");
20391/* 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");
20392/* 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");
20393
20394
20395
20396
20397
20398/**
20399 * <p>Deletes a message template for messages that were sent through a push notification channel.</p>
20400 */
20401var DeletePushTemplateCommand = /** @class */ (function (_super) {
20402 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeletePushTemplateCommand, _super);
20403 // Start section: command_properties
20404 // End section: command_properties
20405 function DeletePushTemplateCommand(input) {
20406 var _this =
20407 // Start section: command_constructor
20408 _super.call(this) || this;
20409 _this.input = input;
20410 return _this;
20411 // End section: command_constructor
20412 }
20413 /**
20414 * @internal
20415 */
20416 DeletePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20417 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20418 var stack = clientStack.concat(this.middlewareStack);
20419 var logger = configuration.logger;
20420 var clientName = "PinpointClient";
20421 var commandName = "DeletePushTemplateCommand";
20422 var handlerExecutionContext = {
20423 logger: logger,
20424 clientName: clientName,
20425 commandName: commandName,
20426 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeletePushTemplateRequest"].filterSensitiveLog,
20427 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeletePushTemplateResponse"].filterSensitiveLog,
20428 };
20429 var requestHandler = configuration.requestHandler;
20430 return stack.resolve(function (request) {
20431 return requestHandler.handle(request.request, options || {});
20432 }, handlerExecutionContext);
20433 };
20434 DeletePushTemplateCommand.prototype.serialize = function (input, context) {
20435 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeletePushTemplateCommand"])(input, context);
20436 };
20437 DeletePushTemplateCommand.prototype.deserialize = function (output, context) {
20438 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeletePushTemplateCommand"])(output, context);
20439 };
20440 return DeletePushTemplateCommand;
20441}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20442
20443//# sourceMappingURL=DeletePushTemplateCommand.js.map
20444
20445/***/ }),
20446
20447/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js":
20448/*!************************************************************************************************************************!*\
20449 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js ***!
20450 \************************************************************************************************************************/
20451/*! exports provided: DeleteRecommenderConfigurationCommand */
20452/***/ (function(module, __webpack_exports__, __webpack_require__) {
20453
20454"use strict";
20455__webpack_require__.r(__webpack_exports__);
20456/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationCommand", function() { return DeleteRecommenderConfigurationCommand; });
20457/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20458/* 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");
20459/* 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");
20460/* 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");
20461/* 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");
20462
20463
20464
20465
20466
20467/**
20468 * <p>Deletes an Amazon Pinpoint configuration for a recommender model.</p>
20469 */
20470var DeleteRecommenderConfigurationCommand = /** @class */ (function (_super) {
20471 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteRecommenderConfigurationCommand, _super);
20472 // Start section: command_properties
20473 // End section: command_properties
20474 function DeleteRecommenderConfigurationCommand(input) {
20475 var _this =
20476 // Start section: command_constructor
20477 _super.call(this) || this;
20478 _this.input = input;
20479 return _this;
20480 // End section: command_constructor
20481 }
20482 /**
20483 * @internal
20484 */
20485 DeleteRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20486 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20487 var stack = clientStack.concat(this.middlewareStack);
20488 var logger = configuration.logger;
20489 var clientName = "PinpointClient";
20490 var commandName = "DeleteRecommenderConfigurationCommand";
20491 var handlerExecutionContext = {
20492 logger: logger,
20493 clientName: clientName,
20494 commandName: commandName,
20495 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteRecommenderConfigurationRequest"].filterSensitiveLog,
20496 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteRecommenderConfigurationResponse"].filterSensitiveLog,
20497 };
20498 var requestHandler = configuration.requestHandler;
20499 return stack.resolve(function (request) {
20500 return requestHandler.handle(request.request, options || {});
20501 }, handlerExecutionContext);
20502 };
20503 DeleteRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
20504 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteRecommenderConfigurationCommand"])(input, context);
20505 };
20506 DeleteRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
20507 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteRecommenderConfigurationCommand"])(output, context);
20508 };
20509 return DeleteRecommenderConfigurationCommand;
20510}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20511
20512//# sourceMappingURL=DeleteRecommenderConfigurationCommand.js.map
20513
20514/***/ }),
20515
20516/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js":
20517/*!*******************************************************************************************************!*\
20518 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js ***!
20519 \*******************************************************************************************************/
20520/*! exports provided: DeleteSegmentCommand */
20521/***/ (function(module, __webpack_exports__, __webpack_require__) {
20522
20523"use strict";
20524__webpack_require__.r(__webpack_exports__);
20525/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentCommand", function() { return DeleteSegmentCommand; });
20526/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20527/* 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");
20528/* 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");
20529/* 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");
20530/* 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");
20531
20532
20533
20534
20535
20536/**
20537 * <p>Deletes a segment from an application.</p>
20538 */
20539var DeleteSegmentCommand = /** @class */ (function (_super) {
20540 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSegmentCommand, _super);
20541 // Start section: command_properties
20542 // End section: command_properties
20543 function DeleteSegmentCommand(input) {
20544 var _this =
20545 // Start section: command_constructor
20546 _super.call(this) || this;
20547 _this.input = input;
20548 return _this;
20549 // End section: command_constructor
20550 }
20551 /**
20552 * @internal
20553 */
20554 DeleteSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20555 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20556 var stack = clientStack.concat(this.middlewareStack);
20557 var logger = configuration.logger;
20558 var clientName = "PinpointClient";
20559 var commandName = "DeleteSegmentCommand";
20560 var handlerExecutionContext = {
20561 logger: logger,
20562 clientName: clientName,
20563 commandName: commandName,
20564 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSegmentRequest"].filterSensitiveLog,
20565 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSegmentResponse"].filterSensitiveLog,
20566 };
20567 var requestHandler = configuration.requestHandler;
20568 return stack.resolve(function (request) {
20569 return requestHandler.handle(request.request, options || {});
20570 }, handlerExecutionContext);
20571 };
20572 DeleteSegmentCommand.prototype.serialize = function (input, context) {
20573 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSegmentCommand"])(input, context);
20574 };
20575 DeleteSegmentCommand.prototype.deserialize = function (output, context) {
20576 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSegmentCommand"])(output, context);
20577 };
20578 return DeleteSegmentCommand;
20579}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20580
20581//# sourceMappingURL=DeleteSegmentCommand.js.map
20582
20583/***/ }),
20584
20585/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js":
20586/*!**********************************************************************************************************!*\
20587 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js ***!
20588 \**********************************************************************************************************/
20589/*! exports provided: DeleteSmsChannelCommand */
20590/***/ (function(module, __webpack_exports__, __webpack_require__) {
20591
20592"use strict";
20593__webpack_require__.r(__webpack_exports__);
20594/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelCommand", function() { return DeleteSmsChannelCommand; });
20595/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20596/* 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");
20597/* 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");
20598/* 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");
20599/* 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");
20600
20601
20602
20603
20604
20605/**
20606 * <p>Disables the SMS channel for an application and deletes any existing settings for the channel.</p>
20607 */
20608var DeleteSmsChannelCommand = /** @class */ (function (_super) {
20609 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSmsChannelCommand, _super);
20610 // Start section: command_properties
20611 // End section: command_properties
20612 function DeleteSmsChannelCommand(input) {
20613 var _this =
20614 // Start section: command_constructor
20615 _super.call(this) || this;
20616 _this.input = input;
20617 return _this;
20618 // End section: command_constructor
20619 }
20620 /**
20621 * @internal
20622 */
20623 DeleteSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20624 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20625 var stack = clientStack.concat(this.middlewareStack);
20626 var logger = configuration.logger;
20627 var clientName = "PinpointClient";
20628 var commandName = "DeleteSmsChannelCommand";
20629 var handlerExecutionContext = {
20630 logger: logger,
20631 clientName: clientName,
20632 commandName: commandName,
20633 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsChannelRequest"].filterSensitiveLog,
20634 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsChannelResponse"].filterSensitiveLog,
20635 };
20636 var requestHandler = configuration.requestHandler;
20637 return stack.resolve(function (request) {
20638 return requestHandler.handle(request.request, options || {});
20639 }, handlerExecutionContext);
20640 };
20641 DeleteSmsChannelCommand.prototype.serialize = function (input, context) {
20642 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSmsChannelCommand"])(input, context);
20643 };
20644 DeleteSmsChannelCommand.prototype.deserialize = function (output, context) {
20645 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSmsChannelCommand"])(output, context);
20646 };
20647 return DeleteSmsChannelCommand;
20648}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20649
20650//# sourceMappingURL=DeleteSmsChannelCommand.js.map
20651
20652/***/ }),
20653
20654/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js":
20655/*!***********************************************************************************************************!*\
20656 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js ***!
20657 \***********************************************************************************************************/
20658/*! exports provided: DeleteSmsTemplateCommand */
20659/***/ (function(module, __webpack_exports__, __webpack_require__) {
20660
20661"use strict";
20662__webpack_require__.r(__webpack_exports__);
20663/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateCommand", function() { return DeleteSmsTemplateCommand; });
20664/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20665/* 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");
20666/* 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");
20667/* 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");
20668/* 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");
20669
20670
20671
20672
20673
20674/**
20675 * <p>Deletes a message template for messages that were sent through the SMS channel.</p>
20676 */
20677var DeleteSmsTemplateCommand = /** @class */ (function (_super) {
20678 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSmsTemplateCommand, _super);
20679 // Start section: command_properties
20680 // End section: command_properties
20681 function DeleteSmsTemplateCommand(input) {
20682 var _this =
20683 // Start section: command_constructor
20684 _super.call(this) || this;
20685 _this.input = input;
20686 return _this;
20687 // End section: command_constructor
20688 }
20689 /**
20690 * @internal
20691 */
20692 DeleteSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20693 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20694 var stack = clientStack.concat(this.middlewareStack);
20695 var logger = configuration.logger;
20696 var clientName = "PinpointClient";
20697 var commandName = "DeleteSmsTemplateCommand";
20698 var handlerExecutionContext = {
20699 logger: logger,
20700 clientName: clientName,
20701 commandName: commandName,
20702 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsTemplateRequest"].filterSensitiveLog,
20703 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsTemplateResponse"].filterSensitiveLog,
20704 };
20705 var requestHandler = configuration.requestHandler;
20706 return stack.resolve(function (request) {
20707 return requestHandler.handle(request.request, options || {});
20708 }, handlerExecutionContext);
20709 };
20710 DeleteSmsTemplateCommand.prototype.serialize = function (input, context) {
20711 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSmsTemplateCommand"])(input, context);
20712 };
20713 DeleteSmsTemplateCommand.prototype.deserialize = function (output, context) {
20714 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSmsTemplateCommand"])(output, context);
20715 };
20716 return DeleteSmsTemplateCommand;
20717}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20718
20719//# sourceMappingURL=DeleteSmsTemplateCommand.js.map
20720
20721/***/ }),
20722
20723/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js":
20724/*!*************************************************************************************************************!*\
20725 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js ***!
20726 \*************************************************************************************************************/
20727/*! exports provided: DeleteUserEndpointsCommand */
20728/***/ (function(module, __webpack_exports__, __webpack_require__) {
20729
20730"use strict";
20731__webpack_require__.r(__webpack_exports__);
20732/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsCommand", function() { return DeleteUserEndpointsCommand; });
20733/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20734/* 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");
20735/* 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");
20736/* 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");
20737/* 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");
20738
20739
20740
20741
20742
20743/**
20744 * <p>Deletes all the endpoints that are associated with a specific user ID.</p>
20745 */
20746var DeleteUserEndpointsCommand = /** @class */ (function (_super) {
20747 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteUserEndpointsCommand, _super);
20748 // Start section: command_properties
20749 // End section: command_properties
20750 function DeleteUserEndpointsCommand(input) {
20751 var _this =
20752 // Start section: command_constructor
20753 _super.call(this) || this;
20754 _this.input = input;
20755 return _this;
20756 // End section: command_constructor
20757 }
20758 /**
20759 * @internal
20760 */
20761 DeleteUserEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20762 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20763 var stack = clientStack.concat(this.middlewareStack);
20764 var logger = configuration.logger;
20765 var clientName = "PinpointClient";
20766 var commandName = "DeleteUserEndpointsCommand";
20767 var handlerExecutionContext = {
20768 logger: logger,
20769 clientName: clientName,
20770 commandName: commandName,
20771 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteUserEndpointsRequest"].filterSensitiveLog,
20772 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteUserEndpointsResponse"].filterSensitiveLog,
20773 };
20774 var requestHandler = configuration.requestHandler;
20775 return stack.resolve(function (request) {
20776 return requestHandler.handle(request.request, options || {});
20777 }, handlerExecutionContext);
20778 };
20779 DeleteUserEndpointsCommand.prototype.serialize = function (input, context) {
20780 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteUserEndpointsCommand"])(input, context);
20781 };
20782 DeleteUserEndpointsCommand.prototype.deserialize = function (output, context) {
20783 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteUserEndpointsCommand"])(output, context);
20784 };
20785 return DeleteUserEndpointsCommand;
20786}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20787
20788//# sourceMappingURL=DeleteUserEndpointsCommand.js.map
20789
20790/***/ }),
20791
20792/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js":
20793/*!************************************************************************************************************!*\
20794 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js ***!
20795 \************************************************************************************************************/
20796/*! exports provided: DeleteVoiceChannelCommand */
20797/***/ (function(module, __webpack_exports__, __webpack_require__) {
20798
20799"use strict";
20800__webpack_require__.r(__webpack_exports__);
20801/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelCommand", function() { return DeleteVoiceChannelCommand; });
20802/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20803/* 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");
20804/* 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");
20805/* 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");
20806/* 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");
20807
20808
20809
20810
20811
20812/**
20813 * <p>Disables the voice channel for an application and deletes any existing settings for the channel.</p>
20814 */
20815var DeleteVoiceChannelCommand = /** @class */ (function (_super) {
20816 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteVoiceChannelCommand, _super);
20817 // Start section: command_properties
20818 // End section: command_properties
20819 function DeleteVoiceChannelCommand(input) {
20820 var _this =
20821 // Start section: command_constructor
20822 _super.call(this) || this;
20823 _this.input = input;
20824 return _this;
20825 // End section: command_constructor
20826 }
20827 /**
20828 * @internal
20829 */
20830 DeleteVoiceChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20831 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20832 var stack = clientStack.concat(this.middlewareStack);
20833 var logger = configuration.logger;
20834 var clientName = "PinpointClient";
20835 var commandName = "DeleteVoiceChannelCommand";
20836 var handlerExecutionContext = {
20837 logger: logger,
20838 clientName: clientName,
20839 commandName: commandName,
20840 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceChannelRequest"].filterSensitiveLog,
20841 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceChannelResponse"].filterSensitiveLog,
20842 };
20843 var requestHandler = configuration.requestHandler;
20844 return stack.resolve(function (request) {
20845 return requestHandler.handle(request.request, options || {});
20846 }, handlerExecutionContext);
20847 };
20848 DeleteVoiceChannelCommand.prototype.serialize = function (input, context) {
20849 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteVoiceChannelCommand"])(input, context);
20850 };
20851 DeleteVoiceChannelCommand.prototype.deserialize = function (output, context) {
20852 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteVoiceChannelCommand"])(output, context);
20853 };
20854 return DeleteVoiceChannelCommand;
20855}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20856
20857//# sourceMappingURL=DeleteVoiceChannelCommand.js.map
20858
20859/***/ }),
20860
20861/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js":
20862/*!*************************************************************************************************************!*\
20863 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js ***!
20864 \*************************************************************************************************************/
20865/*! exports provided: DeleteVoiceTemplateCommand */
20866/***/ (function(module, __webpack_exports__, __webpack_require__) {
20867
20868"use strict";
20869__webpack_require__.r(__webpack_exports__);
20870/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateCommand", function() { return DeleteVoiceTemplateCommand; });
20871/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20872/* 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");
20873/* 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");
20874/* 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");
20875/* 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");
20876
20877
20878
20879
20880
20881/**
20882 * <p>Deletes a message template for messages that were sent through the voice channel.</p>
20883 */
20884var DeleteVoiceTemplateCommand = /** @class */ (function (_super) {
20885 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteVoiceTemplateCommand, _super);
20886 // Start section: command_properties
20887 // End section: command_properties
20888 function DeleteVoiceTemplateCommand(input) {
20889 var _this =
20890 // Start section: command_constructor
20891 _super.call(this) || this;
20892 _this.input = input;
20893 return _this;
20894 // End section: command_constructor
20895 }
20896 /**
20897 * @internal
20898 */
20899 DeleteVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20900 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20901 var stack = clientStack.concat(this.middlewareStack);
20902 var logger = configuration.logger;
20903 var clientName = "PinpointClient";
20904 var commandName = "DeleteVoiceTemplateCommand";
20905 var handlerExecutionContext = {
20906 logger: logger,
20907 clientName: clientName,
20908 commandName: commandName,
20909 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceTemplateRequest"].filterSensitiveLog,
20910 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceTemplateResponse"].filterSensitiveLog,
20911 };
20912 var requestHandler = configuration.requestHandler;
20913 return stack.resolve(function (request) {
20914 return requestHandler.handle(request.request, options || {});
20915 }, handlerExecutionContext);
20916 };
20917 DeleteVoiceTemplateCommand.prototype.serialize = function (input, context) {
20918 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteVoiceTemplateCommand"])(input, context);
20919 };
20920 DeleteVoiceTemplateCommand.prototype.deserialize = function (output, context) {
20921 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteVoiceTemplateCommand"])(output, context);
20922 };
20923 return DeleteVoiceTemplateCommand;
20924}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20925
20926//# sourceMappingURL=DeleteVoiceTemplateCommand.js.map
20927
20928/***/ }),
20929
20930/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js":
20931/*!*******************************************************************************************************!*\
20932 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js ***!
20933 \*******************************************************************************************************/
20934/*! exports provided: GetAdmChannelCommand */
20935/***/ (function(module, __webpack_exports__, __webpack_require__) {
20936
20937"use strict";
20938__webpack_require__.r(__webpack_exports__);
20939/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelCommand", function() { return GetAdmChannelCommand; });
20940/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20941/* 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");
20942/* 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");
20943/* 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");
20944/* 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");
20945
20946
20947
20948
20949
20950/**
20951 * <p>Retrieves information about the status and settings of the ADM channel for an application.</p>
20952 */
20953var GetAdmChannelCommand = /** @class */ (function (_super) {
20954 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAdmChannelCommand, _super);
20955 // Start section: command_properties
20956 // End section: command_properties
20957 function GetAdmChannelCommand(input) {
20958 var _this =
20959 // Start section: command_constructor
20960 _super.call(this) || this;
20961 _this.input = input;
20962 return _this;
20963 // End section: command_constructor
20964 }
20965 /**
20966 * @internal
20967 */
20968 GetAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20969 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20970 var stack = clientStack.concat(this.middlewareStack);
20971 var logger = configuration.logger;
20972 var clientName = "PinpointClient";
20973 var commandName = "GetAdmChannelCommand";
20974 var handlerExecutionContext = {
20975 logger: logger,
20976 clientName: clientName,
20977 commandName: commandName,
20978 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAdmChannelRequest"].filterSensitiveLog,
20979 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAdmChannelResponse"].filterSensitiveLog,
20980 };
20981 var requestHandler = configuration.requestHandler;
20982 return stack.resolve(function (request) {
20983 return requestHandler.handle(request.request, options || {});
20984 }, handlerExecutionContext);
20985 };
20986 GetAdmChannelCommand.prototype.serialize = function (input, context) {
20987 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAdmChannelCommand"])(input, context);
20988 };
20989 GetAdmChannelCommand.prototype.deserialize = function (output, context) {
20990 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAdmChannelCommand"])(output, context);
20991 };
20992 return GetAdmChannelCommand;
20993}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20994
20995//# sourceMappingURL=GetAdmChannelCommand.js.map
20996
20997/***/ }),
20998
20999/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js":
21000/*!********************************************************************************************************!*\
21001 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js ***!
21002 \********************************************************************************************************/
21003/*! exports provided: GetApnsChannelCommand */
21004/***/ (function(module, __webpack_exports__, __webpack_require__) {
21005
21006"use strict";
21007__webpack_require__.r(__webpack_exports__);
21008/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelCommand", function() { return GetApnsChannelCommand; });
21009/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21010/* 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");
21011/* 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");
21012/* 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");
21013/* 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");
21014
21015
21016
21017
21018
21019/**
21020 * <p>Retrieves information about the status and settings of the APNs channel for an application.</p>
21021 */
21022var GetApnsChannelCommand = /** @class */ (function (_super) {
21023 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsChannelCommand, _super);
21024 // Start section: command_properties
21025 // End section: command_properties
21026 function GetApnsChannelCommand(input) {
21027 var _this =
21028 // Start section: command_constructor
21029 _super.call(this) || this;
21030 _this.input = input;
21031 return _this;
21032 // End section: command_constructor
21033 }
21034 /**
21035 * @internal
21036 */
21037 GetApnsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21038 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21039 var stack = clientStack.concat(this.middlewareStack);
21040 var logger = configuration.logger;
21041 var clientName = "PinpointClient";
21042 var commandName = "GetApnsChannelCommand";
21043 var handlerExecutionContext = {
21044 logger: logger,
21045 clientName: clientName,
21046 commandName: commandName,
21047 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsChannelRequest"].filterSensitiveLog,
21048 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsChannelResponse"].filterSensitiveLog,
21049 };
21050 var requestHandler = configuration.requestHandler;
21051 return stack.resolve(function (request) {
21052 return requestHandler.handle(request.request, options || {});
21053 }, handlerExecutionContext);
21054 };
21055 GetApnsChannelCommand.prototype.serialize = function (input, context) {
21056 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsChannelCommand"])(input, context);
21057 };
21058 GetApnsChannelCommand.prototype.deserialize = function (output, context) {
21059 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsChannelCommand"])(output, context);
21060 };
21061 return GetApnsChannelCommand;
21062}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21063
21064//# sourceMappingURL=GetApnsChannelCommand.js.map
21065
21066/***/ }),
21067
21068/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js":
21069/*!***************************************************************************************************************!*\
21070 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js ***!
21071 \***************************************************************************************************************/
21072/*! exports provided: GetApnsSandboxChannelCommand */
21073/***/ (function(module, __webpack_exports__, __webpack_require__) {
21074
21075"use strict";
21076__webpack_require__.r(__webpack_exports__);
21077/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelCommand", function() { return GetApnsSandboxChannelCommand; });
21078/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21079/* 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");
21080/* 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");
21081/* 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");
21082/* 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");
21083
21084
21085
21086
21087
21088/**
21089 * <p>Retrieves information about the status and settings of the APNs sandbox channel for an application.</p>
21090 */
21091var GetApnsSandboxChannelCommand = /** @class */ (function (_super) {
21092 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsSandboxChannelCommand, _super);
21093 // Start section: command_properties
21094 // End section: command_properties
21095 function GetApnsSandboxChannelCommand(input) {
21096 var _this =
21097 // Start section: command_constructor
21098 _super.call(this) || this;
21099 _this.input = input;
21100 return _this;
21101 // End section: command_constructor
21102 }
21103 /**
21104 * @internal
21105 */
21106 GetApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21107 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21108 var stack = clientStack.concat(this.middlewareStack);
21109 var logger = configuration.logger;
21110 var clientName = "PinpointClient";
21111 var commandName = "GetApnsSandboxChannelCommand";
21112 var handlerExecutionContext = {
21113 logger: logger,
21114 clientName: clientName,
21115 commandName: commandName,
21116 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsSandboxChannelRequest"].filterSensitiveLog,
21117 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsSandboxChannelResponse"].filterSensitiveLog,
21118 };
21119 var requestHandler = configuration.requestHandler;
21120 return stack.resolve(function (request) {
21121 return requestHandler.handle(request.request, options || {});
21122 }, handlerExecutionContext);
21123 };
21124 GetApnsSandboxChannelCommand.prototype.serialize = function (input, context) {
21125 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsSandboxChannelCommand"])(input, context);
21126 };
21127 GetApnsSandboxChannelCommand.prototype.deserialize = function (output, context) {
21128 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsSandboxChannelCommand"])(output, context);
21129 };
21130 return GetApnsSandboxChannelCommand;
21131}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21132
21133//# sourceMappingURL=GetApnsSandboxChannelCommand.js.map
21134
21135/***/ }),
21136
21137/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js":
21138/*!************************************************************************************************************!*\
21139 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js ***!
21140 \************************************************************************************************************/
21141/*! exports provided: GetApnsVoipChannelCommand */
21142/***/ (function(module, __webpack_exports__, __webpack_require__) {
21143
21144"use strict";
21145__webpack_require__.r(__webpack_exports__);
21146/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelCommand", function() { return GetApnsVoipChannelCommand; });
21147/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21148/* 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");
21149/* 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");
21150/* 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");
21151/* 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");
21152
21153
21154
21155
21156
21157/**
21158 * <p>Retrieves information about the status and settings of the APNs VoIP channel for an application.</p>
21159 */
21160var GetApnsVoipChannelCommand = /** @class */ (function (_super) {
21161 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsVoipChannelCommand, _super);
21162 // Start section: command_properties
21163 // End section: command_properties
21164 function GetApnsVoipChannelCommand(input) {
21165 var _this =
21166 // Start section: command_constructor
21167 _super.call(this) || this;
21168 _this.input = input;
21169 return _this;
21170 // End section: command_constructor
21171 }
21172 /**
21173 * @internal
21174 */
21175 GetApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21176 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21177 var stack = clientStack.concat(this.middlewareStack);
21178 var logger = configuration.logger;
21179 var clientName = "PinpointClient";
21180 var commandName = "GetApnsVoipChannelCommand";
21181 var handlerExecutionContext = {
21182 logger: logger,
21183 clientName: clientName,
21184 commandName: commandName,
21185 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipChannelRequest"].filterSensitiveLog,
21186 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipChannelResponse"].filterSensitiveLog,
21187 };
21188 var requestHandler = configuration.requestHandler;
21189 return stack.resolve(function (request) {
21190 return requestHandler.handle(request.request, options || {});
21191 }, handlerExecutionContext);
21192 };
21193 GetApnsVoipChannelCommand.prototype.serialize = function (input, context) {
21194 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsVoipChannelCommand"])(input, context);
21195 };
21196 GetApnsVoipChannelCommand.prototype.deserialize = function (output, context) {
21197 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsVoipChannelCommand"])(output, context);
21198 };
21199 return GetApnsVoipChannelCommand;
21200}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21201
21202//# sourceMappingURL=GetApnsVoipChannelCommand.js.map
21203
21204/***/ }),
21205
21206/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js":
21207/*!*******************************************************************************************************************!*\
21208 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js ***!
21209 \*******************************************************************************************************************/
21210/*! exports provided: GetApnsVoipSandboxChannelCommand */
21211/***/ (function(module, __webpack_exports__, __webpack_require__) {
21212
21213"use strict";
21214__webpack_require__.r(__webpack_exports__);
21215/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelCommand", function() { return GetApnsVoipSandboxChannelCommand; });
21216/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21217/* 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");
21218/* 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");
21219/* 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");
21220/* 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");
21221
21222
21223
21224
21225
21226/**
21227 * <p>Retrieves information about the status and settings of the APNs VoIP sandbox channel for an application.</p>
21228 */
21229var GetApnsVoipSandboxChannelCommand = /** @class */ (function (_super) {
21230 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsVoipSandboxChannelCommand, _super);
21231 // Start section: command_properties
21232 // End section: command_properties
21233 function GetApnsVoipSandboxChannelCommand(input) {
21234 var _this =
21235 // Start section: command_constructor
21236 _super.call(this) || this;
21237 _this.input = input;
21238 return _this;
21239 // End section: command_constructor
21240 }
21241 /**
21242 * @internal
21243 */
21244 GetApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21245 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21246 var stack = clientStack.concat(this.middlewareStack);
21247 var logger = configuration.logger;
21248 var clientName = "PinpointClient";
21249 var commandName = "GetApnsVoipSandboxChannelCommand";
21250 var handlerExecutionContext = {
21251 logger: logger,
21252 clientName: clientName,
21253 commandName: commandName,
21254 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipSandboxChannelRequest"].filterSensitiveLog,
21255 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipSandboxChannelResponse"].filterSensitiveLog,
21256 };
21257 var requestHandler = configuration.requestHandler;
21258 return stack.resolve(function (request) {
21259 return requestHandler.handle(request.request, options || {});
21260 }, handlerExecutionContext);
21261 };
21262 GetApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) {
21263 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsVoipSandboxChannelCommand"])(input, context);
21264 };
21265 GetApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) {
21266 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsVoipSandboxChannelCommand"])(output, context);
21267 };
21268 return GetApnsVoipSandboxChannelCommand;
21269}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21270
21271//# sourceMappingURL=GetApnsVoipSandboxChannelCommand.js.map
21272
21273/***/ }),
21274
21275/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js":
21276/*!************************************************************************************************!*\
21277 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js ***!
21278 \************************************************************************************************/
21279/*! exports provided: GetAppCommand */
21280/***/ (function(module, __webpack_exports__, __webpack_require__) {
21281
21282"use strict";
21283__webpack_require__.r(__webpack_exports__);
21284/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppCommand", function() { return GetAppCommand; });
21285/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21286/* 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");
21287/* 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");
21288/* 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");
21289/* 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");
21290
21291
21292
21293
21294
21295/**
21296 * <p>Retrieves information about an application.</p>
21297 */
21298var GetAppCommand = /** @class */ (function (_super) {
21299 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAppCommand, _super);
21300 // Start section: command_properties
21301 // End section: command_properties
21302 function GetAppCommand(input) {
21303 var _this =
21304 // Start section: command_constructor
21305 _super.call(this) || this;
21306 _this.input = input;
21307 return _this;
21308 // End section: command_constructor
21309 }
21310 /**
21311 * @internal
21312 */
21313 GetAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21314 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21315 var stack = clientStack.concat(this.middlewareStack);
21316 var logger = configuration.logger;
21317 var clientName = "PinpointClient";
21318 var commandName = "GetAppCommand";
21319 var handlerExecutionContext = {
21320 logger: logger,
21321 clientName: clientName,
21322 commandName: commandName,
21323 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppRequest"].filterSensitiveLog,
21324 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppResponse"].filterSensitiveLog,
21325 };
21326 var requestHandler = configuration.requestHandler;
21327 return stack.resolve(function (request) {
21328 return requestHandler.handle(request.request, options || {});
21329 }, handlerExecutionContext);
21330 };
21331 GetAppCommand.prototype.serialize = function (input, context) {
21332 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAppCommand"])(input, context);
21333 };
21334 GetAppCommand.prototype.deserialize = function (output, context) {
21335 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAppCommand"])(output, context);
21336 };
21337 return GetAppCommand;
21338}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21339
21340//# sourceMappingURL=GetAppCommand.js.map
21341
21342/***/ }),
21343
21344/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js":
21345/*!********************************************************************************************************************!*\
21346 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js ***!
21347 \********************************************************************************************************************/
21348/*! exports provided: GetApplicationDateRangeKpiCommand */
21349/***/ (function(module, __webpack_exports__, __webpack_require__) {
21350
21351"use strict";
21352__webpack_require__.r(__webpack_exports__);
21353/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiCommand", function() { return GetApplicationDateRangeKpiCommand; });
21354/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21355/* 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");
21356/* 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");
21357/* 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");
21358/* 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");
21359
21360
21361
21362
21363
21364/**
21365 * <p>Retrieves (queries) pre-aggregated data for a standard metric that applies to an application.</p>
21366 */
21367var GetApplicationDateRangeKpiCommand = /** @class */ (function (_super) {
21368 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApplicationDateRangeKpiCommand, _super);
21369 // Start section: command_properties
21370 // End section: command_properties
21371 function GetApplicationDateRangeKpiCommand(input) {
21372 var _this =
21373 // Start section: command_constructor
21374 _super.call(this) || this;
21375 _this.input = input;
21376 return _this;
21377 // End section: command_constructor
21378 }
21379 /**
21380 * @internal
21381 */
21382 GetApplicationDateRangeKpiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21383 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21384 var stack = clientStack.concat(this.middlewareStack);
21385 var logger = configuration.logger;
21386 var clientName = "PinpointClient";
21387 var commandName = "GetApplicationDateRangeKpiCommand";
21388 var handlerExecutionContext = {
21389 logger: logger,
21390 clientName: clientName,
21391 commandName: commandName,
21392 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationDateRangeKpiRequest"].filterSensitiveLog,
21393 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationDateRangeKpiResponse"].filterSensitiveLog,
21394 };
21395 var requestHandler = configuration.requestHandler;
21396 return stack.resolve(function (request) {
21397 return requestHandler.handle(request.request, options || {});
21398 }, handlerExecutionContext);
21399 };
21400 GetApplicationDateRangeKpiCommand.prototype.serialize = function (input, context) {
21401 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApplicationDateRangeKpiCommand"])(input, context);
21402 };
21403 GetApplicationDateRangeKpiCommand.prototype.deserialize = function (output, context) {
21404 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApplicationDateRangeKpiCommand"])(output, context);
21405 };
21406 return GetApplicationDateRangeKpiCommand;
21407}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21408
21409//# sourceMappingURL=GetApplicationDateRangeKpiCommand.js.map
21410
21411/***/ }),
21412
21413/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js":
21414/*!****************************************************************************************************************!*\
21415 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js ***!
21416 \****************************************************************************************************************/
21417/*! exports provided: GetApplicationSettingsCommand */
21418/***/ (function(module, __webpack_exports__, __webpack_require__) {
21419
21420"use strict";
21421__webpack_require__.r(__webpack_exports__);
21422/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsCommand", function() { return GetApplicationSettingsCommand; });
21423/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21424/* 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");
21425/* 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");
21426/* 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");
21427/* 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");
21428
21429
21430
21431
21432
21433/**
21434 * <p>Retrieves information about the settings for an application.</p>
21435 */
21436var GetApplicationSettingsCommand = /** @class */ (function (_super) {
21437 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApplicationSettingsCommand, _super);
21438 // Start section: command_properties
21439 // End section: command_properties
21440 function GetApplicationSettingsCommand(input) {
21441 var _this =
21442 // Start section: command_constructor
21443 _super.call(this) || this;
21444 _this.input = input;
21445 return _this;
21446 // End section: command_constructor
21447 }
21448 /**
21449 * @internal
21450 */
21451 GetApplicationSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21452 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21453 var stack = clientStack.concat(this.middlewareStack);
21454 var logger = configuration.logger;
21455 var clientName = "PinpointClient";
21456 var commandName = "GetApplicationSettingsCommand";
21457 var handlerExecutionContext = {
21458 logger: logger,
21459 clientName: clientName,
21460 commandName: commandName,
21461 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationSettingsRequest"].filterSensitiveLog,
21462 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationSettingsResponse"].filterSensitiveLog,
21463 };
21464 var requestHandler = configuration.requestHandler;
21465 return stack.resolve(function (request) {
21466 return requestHandler.handle(request.request, options || {});
21467 }, handlerExecutionContext);
21468 };
21469 GetApplicationSettingsCommand.prototype.serialize = function (input, context) {
21470 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApplicationSettingsCommand"])(input, context);
21471 };
21472 GetApplicationSettingsCommand.prototype.deserialize = function (output, context) {
21473 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApplicationSettingsCommand"])(output, context);
21474 };
21475 return GetApplicationSettingsCommand;
21476}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21477
21478//# sourceMappingURL=GetApplicationSettingsCommand.js.map
21479
21480/***/ }),
21481
21482/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js":
21483/*!*************************************************************************************************!*\
21484 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js ***!
21485 \*************************************************************************************************/
21486/*! exports provided: GetAppsCommand */
21487/***/ (function(module, __webpack_exports__, __webpack_require__) {
21488
21489"use strict";
21490__webpack_require__.r(__webpack_exports__);
21491/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppsCommand", function() { return GetAppsCommand; });
21492/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21493/* 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");
21494/* 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");
21495/* 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");
21496/* 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");
21497
21498
21499
21500
21501
21502/**
21503 * <p>Retrieves information about all the applications that are associated with your Amazon Pinpoint account.</p>
21504 */
21505var GetAppsCommand = /** @class */ (function (_super) {
21506 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAppsCommand, _super);
21507 // Start section: command_properties
21508 // End section: command_properties
21509 function GetAppsCommand(input) {
21510 var _this =
21511 // Start section: command_constructor
21512 _super.call(this) || this;
21513 _this.input = input;
21514 return _this;
21515 // End section: command_constructor
21516 }
21517 /**
21518 * @internal
21519 */
21520 GetAppsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21521 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21522 var stack = clientStack.concat(this.middlewareStack);
21523 var logger = configuration.logger;
21524 var clientName = "PinpointClient";
21525 var commandName = "GetAppsCommand";
21526 var handlerExecutionContext = {
21527 logger: logger,
21528 clientName: clientName,
21529 commandName: commandName,
21530 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppsRequest"].filterSensitiveLog,
21531 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppsResponse"].filterSensitiveLog,
21532 };
21533 var requestHandler = configuration.requestHandler;
21534 return stack.resolve(function (request) {
21535 return requestHandler.handle(request.request, options || {});
21536 }, handlerExecutionContext);
21537 };
21538 GetAppsCommand.prototype.serialize = function (input, context) {
21539 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAppsCommand"])(input, context);
21540 };
21541 GetAppsCommand.prototype.deserialize = function (output, context) {
21542 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAppsCommand"])(output, context);
21543 };
21544 return GetAppsCommand;
21545}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21546
21547//# sourceMappingURL=GetAppsCommand.js.map
21548
21549/***/ }),
21550
21551/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js":
21552/*!*********************************************************************************************************!*\
21553 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js ***!
21554 \*********************************************************************************************************/
21555/*! exports provided: GetBaiduChannelCommand */
21556/***/ (function(module, __webpack_exports__, __webpack_require__) {
21557
21558"use strict";
21559__webpack_require__.r(__webpack_exports__);
21560/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelCommand", function() { return GetBaiduChannelCommand; });
21561/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21562/* 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");
21563/* 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");
21564/* 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");
21565/* 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");
21566
21567
21568
21569
21570
21571/**
21572 * <p>Retrieves information about the status and settings of the Baidu channel for an application.</p>
21573 */
21574var GetBaiduChannelCommand = /** @class */ (function (_super) {
21575 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBaiduChannelCommand, _super);
21576 // Start section: command_properties
21577 // End section: command_properties
21578 function GetBaiduChannelCommand(input) {
21579 var _this =
21580 // Start section: command_constructor
21581 _super.call(this) || this;
21582 _this.input = input;
21583 return _this;
21584 // End section: command_constructor
21585 }
21586 /**
21587 * @internal
21588 */
21589 GetBaiduChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21590 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21591 var stack = clientStack.concat(this.middlewareStack);
21592 var logger = configuration.logger;
21593 var clientName = "PinpointClient";
21594 var commandName = "GetBaiduChannelCommand";
21595 var handlerExecutionContext = {
21596 logger: logger,
21597 clientName: clientName,
21598 commandName: commandName,
21599 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetBaiduChannelRequest"].filterSensitiveLog,
21600 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetBaiduChannelResponse"].filterSensitiveLog,
21601 };
21602 var requestHandler = configuration.requestHandler;
21603 return stack.resolve(function (request) {
21604 return requestHandler.handle(request.request, options || {});
21605 }, handlerExecutionContext);
21606 };
21607 GetBaiduChannelCommand.prototype.serialize = function (input, context) {
21608 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetBaiduChannelCommand"])(input, context);
21609 };
21610 GetBaiduChannelCommand.prototype.deserialize = function (output, context) {
21611 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetBaiduChannelCommand"])(output, context);
21612 };
21613 return GetBaiduChannelCommand;
21614}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21615
21616//# sourceMappingURL=GetBaiduChannelCommand.js.map
21617
21618/***/ }),
21619
21620/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js":
21621/*!***************************************************************************************************************!*\
21622 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js ***!
21623 \***************************************************************************************************************/
21624/*! exports provided: GetCampaignActivitiesCommand */
21625/***/ (function(module, __webpack_exports__, __webpack_require__) {
21626
21627"use strict";
21628__webpack_require__.r(__webpack_exports__);
21629/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesCommand", function() { return GetCampaignActivitiesCommand; });
21630/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21631/* 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");
21632/* 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");
21633/* 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");
21634/* 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");
21635
21636
21637
21638
21639
21640/**
21641 * <p>Retrieves information about all the activities for a campaign.</p>
21642 */
21643var GetCampaignActivitiesCommand = /** @class */ (function (_super) {
21644 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignActivitiesCommand, _super);
21645 // Start section: command_properties
21646 // End section: command_properties
21647 function GetCampaignActivitiesCommand(input) {
21648 var _this =
21649 // Start section: command_constructor
21650 _super.call(this) || this;
21651 _this.input = input;
21652 return _this;
21653 // End section: command_constructor
21654 }
21655 /**
21656 * @internal
21657 */
21658 GetCampaignActivitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21659 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21660 var stack = clientStack.concat(this.middlewareStack);
21661 var logger = configuration.logger;
21662 var clientName = "PinpointClient";
21663 var commandName = "GetCampaignActivitiesCommand";
21664 var handlerExecutionContext = {
21665 logger: logger,
21666 clientName: clientName,
21667 commandName: commandName,
21668 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignActivitiesRequest"].filterSensitiveLog,
21669 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignActivitiesResponse"].filterSensitiveLog,
21670 };
21671 var requestHandler = configuration.requestHandler;
21672 return stack.resolve(function (request) {
21673 return requestHandler.handle(request.request, options || {});
21674 }, handlerExecutionContext);
21675 };
21676 GetCampaignActivitiesCommand.prototype.serialize = function (input, context) {
21677 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignActivitiesCommand"])(input, context);
21678 };
21679 GetCampaignActivitiesCommand.prototype.deserialize = function (output, context) {
21680 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignActivitiesCommand"])(output, context);
21681 };
21682 return GetCampaignActivitiesCommand;
21683}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21684
21685//# sourceMappingURL=GetCampaignActivitiesCommand.js.map
21686
21687/***/ }),
21688
21689/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js":
21690/*!*****************************************************************************************************!*\
21691 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js ***!
21692 \*****************************************************************************************************/
21693/*! exports provided: GetCampaignCommand */
21694/***/ (function(module, __webpack_exports__, __webpack_require__) {
21695
21696"use strict";
21697__webpack_require__.r(__webpack_exports__);
21698/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignCommand", function() { return GetCampaignCommand; });
21699/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21700/* 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");
21701/* 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");
21702/* 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");
21703/* 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");
21704
21705
21706
21707
21708
21709/**
21710 * <p>Retrieves information about the status, configuration, and other settings for a campaign.</p>
21711 */
21712var GetCampaignCommand = /** @class */ (function (_super) {
21713 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignCommand, _super);
21714 // Start section: command_properties
21715 // End section: command_properties
21716 function GetCampaignCommand(input) {
21717 var _this =
21718 // Start section: command_constructor
21719 _super.call(this) || this;
21720 _this.input = input;
21721 return _this;
21722 // End section: command_constructor
21723 }
21724 /**
21725 * @internal
21726 */
21727 GetCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21728 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21729 var stack = clientStack.concat(this.middlewareStack);
21730 var logger = configuration.logger;
21731 var clientName = "PinpointClient";
21732 var commandName = "GetCampaignCommand";
21733 var handlerExecutionContext = {
21734 logger: logger,
21735 clientName: clientName,
21736 commandName: commandName,
21737 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignRequest"].filterSensitiveLog,
21738 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignResponse"].filterSensitiveLog,
21739 };
21740 var requestHandler = configuration.requestHandler;
21741 return stack.resolve(function (request) {
21742 return requestHandler.handle(request.request, options || {});
21743 }, handlerExecutionContext);
21744 };
21745 GetCampaignCommand.prototype.serialize = function (input, context) {
21746 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignCommand"])(input, context);
21747 };
21748 GetCampaignCommand.prototype.deserialize = function (output, context) {
21749 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignCommand"])(output, context);
21750 };
21751 return GetCampaignCommand;
21752}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21753
21754//# sourceMappingURL=GetCampaignCommand.js.map
21755
21756/***/ }),
21757
21758/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js":
21759/*!*****************************************************************************************************************!*\
21760 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js ***!
21761 \*****************************************************************************************************************/
21762/*! exports provided: GetCampaignDateRangeKpiCommand */
21763/***/ (function(module, __webpack_exports__, __webpack_require__) {
21764
21765"use strict";
21766__webpack_require__.r(__webpack_exports__);
21767/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiCommand", function() { return GetCampaignDateRangeKpiCommand; });
21768/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21769/* 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");
21770/* 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");
21771/* 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");
21772/* 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");
21773
21774
21775
21776
21777
21778/**
21779 * <p>Retrieves (queries) pre-aggregated data for a standard metric that applies to a campaign.</p>
21780 */
21781var GetCampaignDateRangeKpiCommand = /** @class */ (function (_super) {
21782 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignDateRangeKpiCommand, _super);
21783 // Start section: command_properties
21784 // End section: command_properties
21785 function GetCampaignDateRangeKpiCommand(input) {
21786 var _this =
21787 // Start section: command_constructor
21788 _super.call(this) || this;
21789 _this.input = input;
21790 return _this;
21791 // End section: command_constructor
21792 }
21793 /**
21794 * @internal
21795 */
21796 GetCampaignDateRangeKpiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21797 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21798 var stack = clientStack.concat(this.middlewareStack);
21799 var logger = configuration.logger;
21800 var clientName = "PinpointClient";
21801 var commandName = "GetCampaignDateRangeKpiCommand";
21802 var handlerExecutionContext = {
21803 logger: logger,
21804 clientName: clientName,
21805 commandName: commandName,
21806 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignDateRangeKpiRequest"].filterSensitiveLog,
21807 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignDateRangeKpiResponse"].filterSensitiveLog,
21808 };
21809 var requestHandler = configuration.requestHandler;
21810 return stack.resolve(function (request) {
21811 return requestHandler.handle(request.request, options || {});
21812 }, handlerExecutionContext);
21813 };
21814 GetCampaignDateRangeKpiCommand.prototype.serialize = function (input, context) {
21815 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignDateRangeKpiCommand"])(input, context);
21816 };
21817 GetCampaignDateRangeKpiCommand.prototype.deserialize = function (output, context) {
21818 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignDateRangeKpiCommand"])(output, context);
21819 };
21820 return GetCampaignDateRangeKpiCommand;
21821}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21822
21823//# sourceMappingURL=GetCampaignDateRangeKpiCommand.js.map
21824
21825/***/ }),
21826
21827/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js":
21828/*!************************************************************************************************************!*\
21829 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js ***!
21830 \************************************************************************************************************/
21831/*! exports provided: GetCampaignVersionCommand */
21832/***/ (function(module, __webpack_exports__, __webpack_require__) {
21833
21834"use strict";
21835__webpack_require__.r(__webpack_exports__);
21836/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionCommand", function() { return GetCampaignVersionCommand; });
21837/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21838/* 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");
21839/* 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");
21840/* 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");
21841/* 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");
21842
21843
21844
21845
21846
21847/**
21848 * <p>Retrieves information about the status, configuration, and other settings for a specific version of a campaign.</p>
21849 */
21850var GetCampaignVersionCommand = /** @class */ (function (_super) {
21851 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignVersionCommand, _super);
21852 // Start section: command_properties
21853 // End section: command_properties
21854 function GetCampaignVersionCommand(input) {
21855 var _this =
21856 // Start section: command_constructor
21857 _super.call(this) || this;
21858 _this.input = input;
21859 return _this;
21860 // End section: command_constructor
21861 }
21862 /**
21863 * @internal
21864 */
21865 GetCampaignVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21866 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21867 var stack = clientStack.concat(this.middlewareStack);
21868 var logger = configuration.logger;
21869 var clientName = "PinpointClient";
21870 var commandName = "GetCampaignVersionCommand";
21871 var handlerExecutionContext = {
21872 logger: logger,
21873 clientName: clientName,
21874 commandName: commandName,
21875 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionRequest"].filterSensitiveLog,
21876 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionResponse"].filterSensitiveLog,
21877 };
21878 var requestHandler = configuration.requestHandler;
21879 return stack.resolve(function (request) {
21880 return requestHandler.handle(request.request, options || {});
21881 }, handlerExecutionContext);
21882 };
21883 GetCampaignVersionCommand.prototype.serialize = function (input, context) {
21884 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignVersionCommand"])(input, context);
21885 };
21886 GetCampaignVersionCommand.prototype.deserialize = function (output, context) {
21887 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignVersionCommand"])(output, context);
21888 };
21889 return GetCampaignVersionCommand;
21890}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21891
21892//# sourceMappingURL=GetCampaignVersionCommand.js.map
21893
21894/***/ }),
21895
21896/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js":
21897/*!*************************************************************************************************************!*\
21898 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js ***!
21899 \*************************************************************************************************************/
21900/*! exports provided: GetCampaignVersionsCommand */
21901/***/ (function(module, __webpack_exports__, __webpack_require__) {
21902
21903"use strict";
21904__webpack_require__.r(__webpack_exports__);
21905/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsCommand", function() { return GetCampaignVersionsCommand; });
21906/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21907/* 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");
21908/* 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");
21909/* 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");
21910/* 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");
21911
21912
21913
21914
21915
21916/**
21917 * <p>Retrieves information about the status, configuration, and other settings for all versions of a campaign.</p>
21918 */
21919var GetCampaignVersionsCommand = /** @class */ (function (_super) {
21920 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignVersionsCommand, _super);
21921 // Start section: command_properties
21922 // End section: command_properties
21923 function GetCampaignVersionsCommand(input) {
21924 var _this =
21925 // Start section: command_constructor
21926 _super.call(this) || this;
21927 _this.input = input;
21928 return _this;
21929 // End section: command_constructor
21930 }
21931 /**
21932 * @internal
21933 */
21934 GetCampaignVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21935 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21936 var stack = clientStack.concat(this.middlewareStack);
21937 var logger = configuration.logger;
21938 var clientName = "PinpointClient";
21939 var commandName = "GetCampaignVersionsCommand";
21940 var handlerExecutionContext = {
21941 logger: logger,
21942 clientName: clientName,
21943 commandName: commandName,
21944 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionsRequest"].filterSensitiveLog,
21945 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionsResponse"].filterSensitiveLog,
21946 };
21947 var requestHandler = configuration.requestHandler;
21948 return stack.resolve(function (request) {
21949 return requestHandler.handle(request.request, options || {});
21950 }, handlerExecutionContext);
21951 };
21952 GetCampaignVersionsCommand.prototype.serialize = function (input, context) {
21953 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignVersionsCommand"])(input, context);
21954 };
21955 GetCampaignVersionsCommand.prototype.deserialize = function (output, context) {
21956 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignVersionsCommand"])(output, context);
21957 };
21958 return GetCampaignVersionsCommand;
21959}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21960
21961//# sourceMappingURL=GetCampaignVersionsCommand.js.map
21962
21963/***/ }),
21964
21965/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js":
21966/*!******************************************************************************************************!*\
21967 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js ***!
21968 \******************************************************************************************************/
21969/*! exports provided: GetCampaignsCommand */
21970/***/ (function(module, __webpack_exports__, __webpack_require__) {
21971
21972"use strict";
21973__webpack_require__.r(__webpack_exports__);
21974/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsCommand", function() { return GetCampaignsCommand; });
21975/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21976/* 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");
21977/* 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");
21978/* 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");
21979/* 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");
21980
21981
21982
21983
21984
21985/**
21986 * <p>Retrieves information about the status, configuration, and other settings for all the campaigns that are associated with an application.</p>
21987 */
21988var GetCampaignsCommand = /** @class */ (function (_super) {
21989 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignsCommand, _super);
21990 // Start section: command_properties
21991 // End section: command_properties
21992 function GetCampaignsCommand(input) {
21993 var _this =
21994 // Start section: command_constructor
21995 _super.call(this) || this;
21996 _this.input = input;
21997 return _this;
21998 // End section: command_constructor
21999 }
22000 /**
22001 * @internal
22002 */
22003 GetCampaignsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22004 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22005 var stack = clientStack.concat(this.middlewareStack);
22006 var logger = configuration.logger;
22007 var clientName = "PinpointClient";
22008 var commandName = "GetCampaignsCommand";
22009 var handlerExecutionContext = {
22010 logger: logger,
22011 clientName: clientName,
22012 commandName: commandName,
22013 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignsRequest"].filterSensitiveLog,
22014 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignsResponse"].filterSensitiveLog,
22015 };
22016 var requestHandler = configuration.requestHandler;
22017 return stack.resolve(function (request) {
22018 return requestHandler.handle(request.request, options || {});
22019 }, handlerExecutionContext);
22020 };
22021 GetCampaignsCommand.prototype.serialize = function (input, context) {
22022 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignsCommand"])(input, context);
22023 };
22024 GetCampaignsCommand.prototype.deserialize = function (output, context) {
22025 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignsCommand"])(output, context);
22026 };
22027 return GetCampaignsCommand;
22028}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22029
22030//# sourceMappingURL=GetCampaignsCommand.js.map
22031
22032/***/ }),
22033
22034/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js":
22035/*!*****************************************************************************************************!*\
22036 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js ***!
22037 \*****************************************************************************************************/
22038/*! exports provided: GetChannelsCommand */
22039/***/ (function(module, __webpack_exports__, __webpack_require__) {
22040
22041"use strict";
22042__webpack_require__.r(__webpack_exports__);
22043/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetChannelsCommand", function() { return GetChannelsCommand; });
22044/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22045/* 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");
22046/* 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");
22047/* 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");
22048/* 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");
22049
22050
22051
22052
22053
22054/**
22055 * <p>Retrieves information about the history and status of each channel for an application.</p>
22056 */
22057var GetChannelsCommand = /** @class */ (function (_super) {
22058 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetChannelsCommand, _super);
22059 // Start section: command_properties
22060 // End section: command_properties
22061 function GetChannelsCommand(input) {
22062 var _this =
22063 // Start section: command_constructor
22064 _super.call(this) || this;
22065 _this.input = input;
22066 return _this;
22067 // End section: command_constructor
22068 }
22069 /**
22070 * @internal
22071 */
22072 GetChannelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22073 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22074 var stack = clientStack.concat(this.middlewareStack);
22075 var logger = configuration.logger;
22076 var clientName = "PinpointClient";
22077 var commandName = "GetChannelsCommand";
22078 var handlerExecutionContext = {
22079 logger: logger,
22080 clientName: clientName,
22081 commandName: commandName,
22082 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetChannelsRequest"].filterSensitiveLog,
22083 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetChannelsResponse"].filterSensitiveLog,
22084 };
22085 var requestHandler = configuration.requestHandler;
22086 return stack.resolve(function (request) {
22087 return requestHandler.handle(request.request, options || {});
22088 }, handlerExecutionContext);
22089 };
22090 GetChannelsCommand.prototype.serialize = function (input, context) {
22091 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetChannelsCommand"])(input, context);
22092 };
22093 GetChannelsCommand.prototype.deserialize = function (output, context) {
22094 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetChannelsCommand"])(output, context);
22095 };
22096 return GetChannelsCommand;
22097}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22098
22099//# sourceMappingURL=GetChannelsCommand.js.map
22100
22101/***/ }),
22102
22103/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js":
22104/*!*********************************************************************************************************!*\
22105 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js ***!
22106 \*********************************************************************************************************/
22107/*! exports provided: GetEmailChannelCommand */
22108/***/ (function(module, __webpack_exports__, __webpack_require__) {
22109
22110"use strict";
22111__webpack_require__.r(__webpack_exports__);
22112/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelCommand", function() { return GetEmailChannelCommand; });
22113/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22114/* 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");
22115/* 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");
22116/* 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");
22117/* 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");
22118
22119
22120
22121
22122
22123/**
22124 * <p>Retrieves information about the status and settings of the email channel for an application.</p>
22125 */
22126var GetEmailChannelCommand = /** @class */ (function (_super) {
22127 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEmailChannelCommand, _super);
22128 // Start section: command_properties
22129 // End section: command_properties
22130 function GetEmailChannelCommand(input) {
22131 var _this =
22132 // Start section: command_constructor
22133 _super.call(this) || this;
22134 _this.input = input;
22135 return _this;
22136 // End section: command_constructor
22137 }
22138 /**
22139 * @internal
22140 */
22141 GetEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22142 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22143 var stack = clientStack.concat(this.middlewareStack);
22144 var logger = configuration.logger;
22145 var clientName = "PinpointClient";
22146 var commandName = "GetEmailChannelCommand";
22147 var handlerExecutionContext = {
22148 logger: logger,
22149 clientName: clientName,
22150 commandName: commandName,
22151 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailChannelRequest"].filterSensitiveLog,
22152 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailChannelResponse"].filterSensitiveLog,
22153 };
22154 var requestHandler = configuration.requestHandler;
22155 return stack.resolve(function (request) {
22156 return requestHandler.handle(request.request, options || {});
22157 }, handlerExecutionContext);
22158 };
22159 GetEmailChannelCommand.prototype.serialize = function (input, context) {
22160 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEmailChannelCommand"])(input, context);
22161 };
22162 GetEmailChannelCommand.prototype.deserialize = function (output, context) {
22163 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEmailChannelCommand"])(output, context);
22164 };
22165 return GetEmailChannelCommand;
22166}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22167
22168//# sourceMappingURL=GetEmailChannelCommand.js.map
22169
22170/***/ }),
22171
22172/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js":
22173/*!**********************************************************************************************************!*\
22174 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js ***!
22175 \**********************************************************************************************************/
22176/*! exports provided: GetEmailTemplateCommand */
22177/***/ (function(module, __webpack_exports__, __webpack_require__) {
22178
22179"use strict";
22180__webpack_require__.r(__webpack_exports__);
22181/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateCommand", function() { return GetEmailTemplateCommand; });
22182/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22183/* 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");
22184/* 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");
22185/* 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");
22186/* 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");
22187
22188
22189
22190
22191
22192/**
22193 * <p>Retrieves the content and settings of a message template for messages that are sent through the email channel.</p>
22194 */
22195var GetEmailTemplateCommand = /** @class */ (function (_super) {
22196 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEmailTemplateCommand, _super);
22197 // Start section: command_properties
22198 // End section: command_properties
22199 function GetEmailTemplateCommand(input) {
22200 var _this =
22201 // Start section: command_constructor
22202 _super.call(this) || this;
22203 _this.input = input;
22204 return _this;
22205 // End section: command_constructor
22206 }
22207 /**
22208 * @internal
22209 */
22210 GetEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22211 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22212 var stack = clientStack.concat(this.middlewareStack);
22213 var logger = configuration.logger;
22214 var clientName = "PinpointClient";
22215 var commandName = "GetEmailTemplateCommand";
22216 var handlerExecutionContext = {
22217 logger: logger,
22218 clientName: clientName,
22219 commandName: commandName,
22220 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailTemplateRequest"].filterSensitiveLog,
22221 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailTemplateResponse"].filterSensitiveLog,
22222 };
22223 var requestHandler = configuration.requestHandler;
22224 return stack.resolve(function (request) {
22225 return requestHandler.handle(request.request, options || {});
22226 }, handlerExecutionContext);
22227 };
22228 GetEmailTemplateCommand.prototype.serialize = function (input, context) {
22229 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEmailTemplateCommand"])(input, context);
22230 };
22231 GetEmailTemplateCommand.prototype.deserialize = function (output, context) {
22232 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEmailTemplateCommand"])(output, context);
22233 };
22234 return GetEmailTemplateCommand;
22235}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22236
22237//# sourceMappingURL=GetEmailTemplateCommand.js.map
22238
22239/***/ }),
22240
22241/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js":
22242/*!*****************************************************************************************************!*\
22243 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js ***!
22244 \*****************************************************************************************************/
22245/*! exports provided: GetEndpointCommand */
22246/***/ (function(module, __webpack_exports__, __webpack_require__) {
22247
22248"use strict";
22249__webpack_require__.r(__webpack_exports__);
22250/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEndpointCommand", function() { return GetEndpointCommand; });
22251/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22252/* 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");
22253/* 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");
22254/* 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");
22255/* 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");
22256
22257
22258
22259
22260
22261/**
22262 * <p>Retrieves information about the settings and attributes of a specific endpoint for an application.</p>
22263 */
22264var GetEndpointCommand = /** @class */ (function (_super) {
22265 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEndpointCommand, _super);
22266 // Start section: command_properties
22267 // End section: command_properties
22268 function GetEndpointCommand(input) {
22269 var _this =
22270 // Start section: command_constructor
22271 _super.call(this) || this;
22272 _this.input = input;
22273 return _this;
22274 // End section: command_constructor
22275 }
22276 /**
22277 * @internal
22278 */
22279 GetEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22280 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22281 var stack = clientStack.concat(this.middlewareStack);
22282 var logger = configuration.logger;
22283 var clientName = "PinpointClient";
22284 var commandName = "GetEndpointCommand";
22285 var handlerExecutionContext = {
22286 logger: logger,
22287 clientName: clientName,
22288 commandName: commandName,
22289 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEndpointRequest"].filterSensitiveLog,
22290 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEndpointResponse"].filterSensitiveLog,
22291 };
22292 var requestHandler = configuration.requestHandler;
22293 return stack.resolve(function (request) {
22294 return requestHandler.handle(request.request, options || {});
22295 }, handlerExecutionContext);
22296 };
22297 GetEndpointCommand.prototype.serialize = function (input, context) {
22298 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEndpointCommand"])(input, context);
22299 };
22300 GetEndpointCommand.prototype.deserialize = function (output, context) {
22301 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEndpointCommand"])(output, context);
22302 };
22303 return GetEndpointCommand;
22304}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22305
22306//# sourceMappingURL=GetEndpointCommand.js.map
22307
22308/***/ }),
22309
22310/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js":
22311/*!********************************************************************************************************!*\
22312 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js ***!
22313 \********************************************************************************************************/
22314/*! exports provided: GetEventStreamCommand */
22315/***/ (function(module, __webpack_exports__, __webpack_require__) {
22316
22317"use strict";
22318__webpack_require__.r(__webpack_exports__);
22319/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamCommand", function() { return GetEventStreamCommand; });
22320/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22321/* 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");
22322/* 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");
22323/* 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");
22324/* 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");
22325
22326
22327
22328
22329
22330/**
22331 * <p>Retrieves information about the event stream settings for an application.</p>
22332 */
22333var GetEventStreamCommand = /** @class */ (function (_super) {
22334 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEventStreamCommand, _super);
22335 // Start section: command_properties
22336 // End section: command_properties
22337 function GetEventStreamCommand(input) {
22338 var _this =
22339 // Start section: command_constructor
22340 _super.call(this) || this;
22341 _this.input = input;
22342 return _this;
22343 // End section: command_constructor
22344 }
22345 /**
22346 * @internal
22347 */
22348 GetEventStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22349 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22350 var stack = clientStack.concat(this.middlewareStack);
22351 var logger = configuration.logger;
22352 var clientName = "PinpointClient";
22353 var commandName = "GetEventStreamCommand";
22354 var handlerExecutionContext = {
22355 logger: logger,
22356 clientName: clientName,
22357 commandName: commandName,
22358 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEventStreamRequest"].filterSensitiveLog,
22359 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEventStreamResponse"].filterSensitiveLog,
22360 };
22361 var requestHandler = configuration.requestHandler;
22362 return stack.resolve(function (request) {
22363 return requestHandler.handle(request.request, options || {});
22364 }, handlerExecutionContext);
22365 };
22366 GetEventStreamCommand.prototype.serialize = function (input, context) {
22367 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEventStreamCommand"])(input, context);
22368 };
22369 GetEventStreamCommand.prototype.deserialize = function (output, context) {
22370 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEventStreamCommand"])(output, context);
22371 };
22372 return GetEventStreamCommand;
22373}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22374
22375//# sourceMappingURL=GetEventStreamCommand.js.map
22376
22377/***/ }),
22378
22379/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js":
22380/*!******************************************************************************************************!*\
22381 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js ***!
22382 \******************************************************************************************************/
22383/*! exports provided: GetExportJobCommand */
22384/***/ (function(module, __webpack_exports__, __webpack_require__) {
22385
22386"use strict";
22387__webpack_require__.r(__webpack_exports__);
22388/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobCommand", function() { return GetExportJobCommand; });
22389/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22390/* 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");
22391/* 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");
22392/* 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");
22393/* 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");
22394
22395
22396
22397
22398
22399/**
22400 * <p>Retrieves information about the status and settings of a specific export job for an application.</p>
22401 */
22402var GetExportJobCommand = /** @class */ (function (_super) {
22403 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetExportJobCommand, _super);
22404 // Start section: command_properties
22405 // End section: command_properties
22406 function GetExportJobCommand(input) {
22407 var _this =
22408 // Start section: command_constructor
22409 _super.call(this) || this;
22410 _this.input = input;
22411 return _this;
22412 // End section: command_constructor
22413 }
22414 /**
22415 * @internal
22416 */
22417 GetExportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22418 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22419 var stack = clientStack.concat(this.middlewareStack);
22420 var logger = configuration.logger;
22421 var clientName = "PinpointClient";
22422 var commandName = "GetExportJobCommand";
22423 var handlerExecutionContext = {
22424 logger: logger,
22425 clientName: clientName,
22426 commandName: commandName,
22427 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobRequest"].filterSensitiveLog,
22428 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobResponse"].filterSensitiveLog,
22429 };
22430 var requestHandler = configuration.requestHandler;
22431 return stack.resolve(function (request) {
22432 return requestHandler.handle(request.request, options || {});
22433 }, handlerExecutionContext);
22434 };
22435 GetExportJobCommand.prototype.serialize = function (input, context) {
22436 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetExportJobCommand"])(input, context);
22437 };
22438 GetExportJobCommand.prototype.deserialize = function (output, context) {
22439 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetExportJobCommand"])(output, context);
22440 };
22441 return GetExportJobCommand;
22442}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22443
22444//# sourceMappingURL=GetExportJobCommand.js.map
22445
22446/***/ }),
22447
22448/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js":
22449/*!*******************************************************************************************************!*\
22450 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js ***!
22451 \*******************************************************************************************************/
22452/*! exports provided: GetExportJobsCommand */
22453/***/ (function(module, __webpack_exports__, __webpack_require__) {
22454
22455"use strict";
22456__webpack_require__.r(__webpack_exports__);
22457/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsCommand", function() { return GetExportJobsCommand; });
22458/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22459/* 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");
22460/* 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");
22461/* 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");
22462/* 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");
22463
22464
22465
22466
22467
22468/**
22469 * <p>Retrieves information about the status and settings of all the export jobs for an application.</p>
22470 */
22471var GetExportJobsCommand = /** @class */ (function (_super) {
22472 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetExportJobsCommand, _super);
22473 // Start section: command_properties
22474 // End section: command_properties
22475 function GetExportJobsCommand(input) {
22476 var _this =
22477 // Start section: command_constructor
22478 _super.call(this) || this;
22479 _this.input = input;
22480 return _this;
22481 // End section: command_constructor
22482 }
22483 /**
22484 * @internal
22485 */
22486 GetExportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22487 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22488 var stack = clientStack.concat(this.middlewareStack);
22489 var logger = configuration.logger;
22490 var clientName = "PinpointClient";
22491 var commandName = "GetExportJobsCommand";
22492 var handlerExecutionContext = {
22493 logger: logger,
22494 clientName: clientName,
22495 commandName: commandName,
22496 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobsRequest"].filterSensitiveLog,
22497 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobsResponse"].filterSensitiveLog,
22498 };
22499 var requestHandler = configuration.requestHandler;
22500 return stack.resolve(function (request) {
22501 return requestHandler.handle(request.request, options || {});
22502 }, handlerExecutionContext);
22503 };
22504 GetExportJobsCommand.prototype.serialize = function (input, context) {
22505 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetExportJobsCommand"])(input, context);
22506 };
22507 GetExportJobsCommand.prototype.deserialize = function (output, context) {
22508 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetExportJobsCommand"])(output, context);
22509 };
22510 return GetExportJobsCommand;
22511}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22512
22513//# sourceMappingURL=GetExportJobsCommand.js.map
22514
22515/***/ }),
22516
22517/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js":
22518/*!*******************************************************************************************************!*\
22519 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js ***!
22520 \*******************************************************************************************************/
22521/*! exports provided: GetGcmChannelCommand */
22522/***/ (function(module, __webpack_exports__, __webpack_require__) {
22523
22524"use strict";
22525__webpack_require__.r(__webpack_exports__);
22526/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelCommand", function() { return GetGcmChannelCommand; });
22527/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22528/* 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");
22529/* 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");
22530/* 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");
22531/* 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");
22532
22533
22534
22535
22536
22537/**
22538 * <p>Retrieves information about the status and settings of the GCM channel for an application.</p>
22539 */
22540var GetGcmChannelCommand = /** @class */ (function (_super) {
22541 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetGcmChannelCommand, _super);
22542 // Start section: command_properties
22543 // End section: command_properties
22544 function GetGcmChannelCommand(input) {
22545 var _this =
22546 // Start section: command_constructor
22547 _super.call(this) || this;
22548 _this.input = input;
22549 return _this;
22550 // End section: command_constructor
22551 }
22552 /**
22553 * @internal
22554 */
22555 GetGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22556 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22557 var stack = clientStack.concat(this.middlewareStack);
22558 var logger = configuration.logger;
22559 var clientName = "PinpointClient";
22560 var commandName = "GetGcmChannelCommand";
22561 var handlerExecutionContext = {
22562 logger: logger,
22563 clientName: clientName,
22564 commandName: commandName,
22565 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetGcmChannelRequest"].filterSensitiveLog,
22566 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetGcmChannelResponse"].filterSensitiveLog,
22567 };
22568 var requestHandler = configuration.requestHandler;
22569 return stack.resolve(function (request) {
22570 return requestHandler.handle(request.request, options || {});
22571 }, handlerExecutionContext);
22572 };
22573 GetGcmChannelCommand.prototype.serialize = function (input, context) {
22574 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetGcmChannelCommand"])(input, context);
22575 };
22576 GetGcmChannelCommand.prototype.deserialize = function (output, context) {
22577 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetGcmChannelCommand"])(output, context);
22578 };
22579 return GetGcmChannelCommand;
22580}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22581
22582//# sourceMappingURL=GetGcmChannelCommand.js.map
22583
22584/***/ }),
22585
22586/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js":
22587/*!******************************************************************************************************!*\
22588 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js ***!
22589 \******************************************************************************************************/
22590/*! exports provided: GetImportJobCommand */
22591/***/ (function(module, __webpack_exports__, __webpack_require__) {
22592
22593"use strict";
22594__webpack_require__.r(__webpack_exports__);
22595/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobCommand", function() { return GetImportJobCommand; });
22596/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22597/* 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");
22598/* 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");
22599/* 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");
22600/* 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");
22601
22602
22603
22604
22605
22606/**
22607 * <p>Retrieves information about the status and settings of a specific import job for an application.</p>
22608 */
22609var GetImportJobCommand = /** @class */ (function (_super) {
22610 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetImportJobCommand, _super);
22611 // Start section: command_properties
22612 // End section: command_properties
22613 function GetImportJobCommand(input) {
22614 var _this =
22615 // Start section: command_constructor
22616 _super.call(this) || this;
22617 _this.input = input;
22618 return _this;
22619 // End section: command_constructor
22620 }
22621 /**
22622 * @internal
22623 */
22624 GetImportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22625 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22626 var stack = clientStack.concat(this.middlewareStack);
22627 var logger = configuration.logger;
22628 var clientName = "PinpointClient";
22629 var commandName = "GetImportJobCommand";
22630 var handlerExecutionContext = {
22631 logger: logger,
22632 clientName: clientName,
22633 commandName: commandName,
22634 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobRequest"].filterSensitiveLog,
22635 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobResponse"].filterSensitiveLog,
22636 };
22637 var requestHandler = configuration.requestHandler;
22638 return stack.resolve(function (request) {
22639 return requestHandler.handle(request.request, options || {});
22640 }, handlerExecutionContext);
22641 };
22642 GetImportJobCommand.prototype.serialize = function (input, context) {
22643 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetImportJobCommand"])(input, context);
22644 };
22645 GetImportJobCommand.prototype.deserialize = function (output, context) {
22646 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetImportJobCommand"])(output, context);
22647 };
22648 return GetImportJobCommand;
22649}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22650
22651//# sourceMappingURL=GetImportJobCommand.js.map
22652
22653/***/ }),
22654
22655/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js":
22656/*!*******************************************************************************************************!*\
22657 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js ***!
22658 \*******************************************************************************************************/
22659/*! exports provided: GetImportJobsCommand */
22660/***/ (function(module, __webpack_exports__, __webpack_require__) {
22661
22662"use strict";
22663__webpack_require__.r(__webpack_exports__);
22664/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsCommand", function() { return GetImportJobsCommand; });
22665/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22666/* 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");
22667/* 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");
22668/* 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");
22669/* 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");
22670
22671
22672
22673
22674
22675/**
22676 * <p>Retrieves information about the status and settings of all the import jobs for an application.</p>
22677 */
22678var GetImportJobsCommand = /** @class */ (function (_super) {
22679 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetImportJobsCommand, _super);
22680 // Start section: command_properties
22681 // End section: command_properties
22682 function GetImportJobsCommand(input) {
22683 var _this =
22684 // Start section: command_constructor
22685 _super.call(this) || this;
22686 _this.input = input;
22687 return _this;
22688 // End section: command_constructor
22689 }
22690 /**
22691 * @internal
22692 */
22693 GetImportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22694 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22695 var stack = clientStack.concat(this.middlewareStack);
22696 var logger = configuration.logger;
22697 var clientName = "PinpointClient";
22698 var commandName = "GetImportJobsCommand";
22699 var handlerExecutionContext = {
22700 logger: logger,
22701 clientName: clientName,
22702 commandName: commandName,
22703 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobsRequest"].filterSensitiveLog,
22704 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobsResponse"].filterSensitiveLog,
22705 };
22706 var requestHandler = configuration.requestHandler;
22707 return stack.resolve(function (request) {
22708 return requestHandler.handle(request.request, options || {});
22709 }, handlerExecutionContext);
22710 };
22711 GetImportJobsCommand.prototype.serialize = function (input, context) {
22712 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetImportJobsCommand"])(input, context);
22713 };
22714 GetImportJobsCommand.prototype.deserialize = function (output, context) {
22715 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetImportJobsCommand"])(output, context);
22716 };
22717 return GetImportJobsCommand;
22718}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22719
22720//# sourceMappingURL=GetImportJobsCommand.js.map
22721
22722/***/ }),
22723
22724/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js":
22725/*!****************************************************************************************************!*\
22726 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js ***!
22727 \****************************************************************************************************/
22728/*! exports provided: GetJourneyCommand */
22729/***/ (function(module, __webpack_exports__, __webpack_require__) {
22730
22731"use strict";
22732__webpack_require__.r(__webpack_exports__);
22733/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyCommand", function() { return GetJourneyCommand; });
22734/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22735/* 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");
22736/* 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");
22737/* 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");
22738/* 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");
22739
22740
22741
22742
22743
22744/**
22745 * <p>Retrieves information about the status, configuration, and other settings for a journey.</p>
22746 */
22747var GetJourneyCommand = /** @class */ (function (_super) {
22748 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyCommand, _super);
22749 // Start section: command_properties
22750 // End section: command_properties
22751 function GetJourneyCommand(input) {
22752 var _this =
22753 // Start section: command_constructor
22754 _super.call(this) || this;
22755 _this.input = input;
22756 return _this;
22757 // End section: command_constructor
22758 }
22759 /**
22760 * @internal
22761 */
22762 GetJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22763 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22764 var stack = clientStack.concat(this.middlewareStack);
22765 var logger = configuration.logger;
22766 var clientName = "PinpointClient";
22767 var commandName = "GetJourneyCommand";
22768 var handlerExecutionContext = {
22769 logger: logger,
22770 clientName: clientName,
22771 commandName: commandName,
22772 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetJourneyRequest"].filterSensitiveLog,
22773 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetJourneyResponse"].filterSensitiveLog,
22774 };
22775 var requestHandler = configuration.requestHandler;
22776 return stack.resolve(function (request) {
22777 return requestHandler.handle(request.request, options || {});
22778 }, handlerExecutionContext);
22779 };
22780 GetJourneyCommand.prototype.serialize = function (input, context) {
22781 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyCommand"])(input, context);
22782 };
22783 GetJourneyCommand.prototype.deserialize = function (output, context) {
22784 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyCommand"])(output, context);
22785 };
22786 return GetJourneyCommand;
22787}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22788
22789//# sourceMappingURL=GetJourneyCommand.js.map
22790
22791/***/ }),
22792
22793/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js":
22794/*!****************************************************************************************************************!*\
22795 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js ***!
22796 \****************************************************************************************************************/
22797/*! exports provided: GetJourneyDateRangeKpiCommand */
22798/***/ (function(module, __webpack_exports__, __webpack_require__) {
22799
22800"use strict";
22801__webpack_require__.r(__webpack_exports__);
22802/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiCommand", function() { return GetJourneyDateRangeKpiCommand; });
22803/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22804/* 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");
22805/* 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");
22806/* 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");
22807/* 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");
22808
22809
22810
22811
22812
22813/**
22814 * <p>Retrieves (queries) pre-aggregated data for a standard engagement metric that applies to a journey.</p>
22815 */
22816var GetJourneyDateRangeKpiCommand = /** @class */ (function (_super) {
22817 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyDateRangeKpiCommand, _super);
22818 // Start section: command_properties
22819 // End section: command_properties
22820 function GetJourneyDateRangeKpiCommand(input) {
22821 var _this =
22822 // Start section: command_constructor
22823 _super.call(this) || this;
22824 _this.input = input;
22825 return _this;
22826 // End section: command_constructor
22827 }
22828 /**
22829 * @internal
22830 */
22831 GetJourneyDateRangeKpiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22832 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22833 var stack = clientStack.concat(this.middlewareStack);
22834 var logger = configuration.logger;
22835 var clientName = "PinpointClient";
22836 var commandName = "GetJourneyDateRangeKpiCommand";
22837 var handlerExecutionContext = {
22838 logger: logger,
22839 clientName: clientName,
22840 commandName: commandName,
22841 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiRequest"].filterSensitiveLog,
22842 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiResponse"].filterSensitiveLog,
22843 };
22844 var requestHandler = configuration.requestHandler;
22845 return stack.resolve(function (request) {
22846 return requestHandler.handle(request.request, options || {});
22847 }, handlerExecutionContext);
22848 };
22849 GetJourneyDateRangeKpiCommand.prototype.serialize = function (input, context) {
22850 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyDateRangeKpiCommand"])(input, context);
22851 };
22852 GetJourneyDateRangeKpiCommand.prototype.deserialize = function (output, context) {
22853 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyDateRangeKpiCommand"])(output, context);
22854 };
22855 return GetJourneyDateRangeKpiCommand;
22856}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22857
22858//# sourceMappingURL=GetJourneyDateRangeKpiCommand.js.map
22859
22860/***/ }),
22861
22862/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js":
22863/*!****************************************************************************************************************************!*\
22864 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js ***!
22865 \****************************************************************************************************************************/
22866/*! exports provided: GetJourneyExecutionActivityMetricsCommand */
22867/***/ (function(module, __webpack_exports__, __webpack_require__) {
22868
22869"use strict";
22870__webpack_require__.r(__webpack_exports__);
22871/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsCommand", function() { return GetJourneyExecutionActivityMetricsCommand; });
22872/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22873/* 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");
22874/* 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");
22875/* 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");
22876/* 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");
22877
22878
22879
22880
22881
22882/**
22883 * <p>Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey activity.</p>
22884 */
22885var GetJourneyExecutionActivityMetricsCommand = /** @class */ (function (_super) {
22886 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyExecutionActivityMetricsCommand, _super);
22887 // Start section: command_properties
22888 // End section: command_properties
22889 function GetJourneyExecutionActivityMetricsCommand(input) {
22890 var _this =
22891 // Start section: command_constructor
22892 _super.call(this) || this;
22893 _this.input = input;
22894 return _this;
22895 // End section: command_constructor
22896 }
22897 /**
22898 * @internal
22899 */
22900 GetJourneyExecutionActivityMetricsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22901 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22902 var stack = clientStack.concat(this.middlewareStack);
22903 var logger = configuration.logger;
22904 var clientName = "PinpointClient";
22905 var commandName = "GetJourneyExecutionActivityMetricsCommand";
22906 var handlerExecutionContext = {
22907 logger: logger,
22908 clientName: clientName,
22909 commandName: commandName,
22910 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsRequest"].filterSensitiveLog,
22911 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsResponse"].filterSensitiveLog,
22912 };
22913 var requestHandler = configuration.requestHandler;
22914 return stack.resolve(function (request) {
22915 return requestHandler.handle(request.request, options || {});
22916 }, handlerExecutionContext);
22917 };
22918 GetJourneyExecutionActivityMetricsCommand.prototype.serialize = function (input, context) {
22919 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand"])(input, context);
22920 };
22921 GetJourneyExecutionActivityMetricsCommand.prototype.deserialize = function (output, context) {
22922 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand"])(output, context);
22923 };
22924 return GetJourneyExecutionActivityMetricsCommand;
22925}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22926
22927//# sourceMappingURL=GetJourneyExecutionActivityMetricsCommand.js.map
22928
22929/***/ }),
22930
22931/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js":
22932/*!********************************************************************************************************************!*\
22933 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js ***!
22934 \********************************************************************************************************************/
22935/*! exports provided: GetJourneyExecutionMetricsCommand */
22936/***/ (function(module, __webpack_exports__, __webpack_require__) {
22937
22938"use strict";
22939__webpack_require__.r(__webpack_exports__);
22940/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsCommand", function() { return GetJourneyExecutionMetricsCommand; });
22941/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22942/* 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");
22943/* 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");
22944/* 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");
22945/* 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");
22946
22947
22948
22949
22950
22951/**
22952 * <p>Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey.</p>
22953 */
22954var GetJourneyExecutionMetricsCommand = /** @class */ (function (_super) {
22955 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyExecutionMetricsCommand, _super);
22956 // Start section: command_properties
22957 // End section: command_properties
22958 function GetJourneyExecutionMetricsCommand(input) {
22959 var _this =
22960 // Start section: command_constructor
22961 _super.call(this) || this;
22962 _this.input = input;
22963 return _this;
22964 // End section: command_constructor
22965 }
22966 /**
22967 * @internal
22968 */
22969 GetJourneyExecutionMetricsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22970 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22971 var stack = clientStack.concat(this.middlewareStack);
22972 var logger = configuration.logger;
22973 var clientName = "PinpointClient";
22974 var commandName = "GetJourneyExecutionMetricsCommand";
22975 var handlerExecutionContext = {
22976 logger: logger,
22977 clientName: clientName,
22978 commandName: commandName,
22979 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsRequest"].filterSensitiveLog,
22980 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsResponse"].filterSensitiveLog,
22981 };
22982 var requestHandler = configuration.requestHandler;
22983 return stack.resolve(function (request) {
22984 return requestHandler.handle(request.request, options || {});
22985 }, handlerExecutionContext);
22986 };
22987 GetJourneyExecutionMetricsCommand.prototype.serialize = function (input, context) {
22988 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyExecutionMetricsCommand"])(input, context);
22989 };
22990 GetJourneyExecutionMetricsCommand.prototype.deserialize = function (output, context) {
22991 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyExecutionMetricsCommand"])(output, context);
22992 };
22993 return GetJourneyExecutionMetricsCommand;
22994}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22995
22996//# sourceMappingURL=GetJourneyExecutionMetricsCommand.js.map
22997
22998/***/ }),
22999
23000/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js":
23001/*!*********************************************************************************************************!*\
23002 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js ***!
23003 \*********************************************************************************************************/
23004/*! exports provided: GetPushTemplateCommand */
23005/***/ (function(module, __webpack_exports__, __webpack_require__) {
23006
23007"use strict";
23008__webpack_require__.r(__webpack_exports__);
23009/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateCommand", function() { return GetPushTemplateCommand; });
23010/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23011/* 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");
23012/* 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");
23013/* 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");
23014/* 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");
23015
23016
23017
23018
23019
23020/**
23021 * <p>Retrieves the content and settings of a message template for messages that are sent through a push notification channel.</p>
23022 */
23023var GetPushTemplateCommand = /** @class */ (function (_super) {
23024 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetPushTemplateCommand, _super);
23025 // Start section: command_properties
23026 // End section: command_properties
23027 function GetPushTemplateCommand(input) {
23028 var _this =
23029 // Start section: command_constructor
23030 _super.call(this) || this;
23031 _this.input = input;
23032 return _this;
23033 // End section: command_constructor
23034 }
23035 /**
23036 * @internal
23037 */
23038 GetPushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23039 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23040 var stack = clientStack.concat(this.middlewareStack);
23041 var logger = configuration.logger;
23042 var clientName = "PinpointClient";
23043 var commandName = "GetPushTemplateCommand";
23044 var handlerExecutionContext = {
23045 logger: logger,
23046 clientName: clientName,
23047 commandName: commandName,
23048 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateRequest"].filterSensitiveLog,
23049 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateResponse"].filterSensitiveLog,
23050 };
23051 var requestHandler = configuration.requestHandler;
23052 return stack.resolve(function (request) {
23053 return requestHandler.handle(request.request, options || {});
23054 }, handlerExecutionContext);
23055 };
23056 GetPushTemplateCommand.prototype.serialize = function (input, context) {
23057 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetPushTemplateCommand"])(input, context);
23058 };
23059 GetPushTemplateCommand.prototype.deserialize = function (output, context) {
23060 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetPushTemplateCommand"])(output, context);
23061 };
23062 return GetPushTemplateCommand;
23063}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23064
23065//# sourceMappingURL=GetPushTemplateCommand.js.map
23066
23067/***/ }),
23068
23069/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js":
23070/*!*********************************************************************************************************************!*\
23071 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js ***!
23072 \*********************************************************************************************************************/
23073/*! exports provided: GetRecommenderConfigurationCommand */
23074/***/ (function(module, __webpack_exports__, __webpack_require__) {
23075
23076"use strict";
23077__webpack_require__.r(__webpack_exports__);
23078/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationCommand", function() { return GetRecommenderConfigurationCommand; });
23079/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23080/* 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");
23081/* 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");
23082/* 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");
23083/* 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");
23084
23085
23086
23087
23088
23089/**
23090 * <p>Retrieves information about an Amazon Pinpoint configuration for a recommender model.</p>
23091 */
23092var GetRecommenderConfigurationCommand = /** @class */ (function (_super) {
23093 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecommenderConfigurationCommand, _super);
23094 // Start section: command_properties
23095 // End section: command_properties
23096 function GetRecommenderConfigurationCommand(input) {
23097 var _this =
23098 // Start section: command_constructor
23099 _super.call(this) || this;
23100 _this.input = input;
23101 return _this;
23102 // End section: command_constructor
23103 }
23104 /**
23105 * @internal
23106 */
23107 GetRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23108 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23109 var stack = clientStack.concat(this.middlewareStack);
23110 var logger = configuration.logger;
23111 var clientName = "PinpointClient";
23112 var commandName = "GetRecommenderConfigurationCommand";
23113 var handlerExecutionContext = {
23114 logger: logger,
23115 clientName: clientName,
23116 commandName: commandName,
23117 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationRequest"].filterSensitiveLog,
23118 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationResponse"].filterSensitiveLog,
23119 };
23120 var requestHandler = configuration.requestHandler;
23121 return stack.resolve(function (request) {
23122 return requestHandler.handle(request.request, options || {});
23123 }, handlerExecutionContext);
23124 };
23125 GetRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
23126 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetRecommenderConfigurationCommand"])(input, context);
23127 };
23128 GetRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
23129 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetRecommenderConfigurationCommand"])(output, context);
23130 };
23131 return GetRecommenderConfigurationCommand;
23132}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23133
23134//# sourceMappingURL=GetRecommenderConfigurationCommand.js.map
23135
23136/***/ }),
23137
23138/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js":
23139/*!**********************************************************************************************************************!*\
23140 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js ***!
23141 \**********************************************************************************************************************/
23142/*! exports provided: GetRecommenderConfigurationsCommand */
23143/***/ (function(module, __webpack_exports__, __webpack_require__) {
23144
23145"use strict";
23146__webpack_require__.r(__webpack_exports__);
23147/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsCommand", function() { return GetRecommenderConfigurationsCommand; });
23148/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23149/* 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");
23150/* 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");
23151/* 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");
23152/* 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");
23153
23154
23155
23156
23157
23158/**
23159 * <p>Retrieves information about all the recommender model configurations that are associated with your Amazon Pinpoint account.</p>
23160 */
23161var GetRecommenderConfigurationsCommand = /** @class */ (function (_super) {
23162 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecommenderConfigurationsCommand, _super);
23163 // Start section: command_properties
23164 // End section: command_properties
23165 function GetRecommenderConfigurationsCommand(input) {
23166 var _this =
23167 // Start section: command_constructor
23168 _super.call(this) || this;
23169 _this.input = input;
23170 return _this;
23171 // End section: command_constructor
23172 }
23173 /**
23174 * @internal
23175 */
23176 GetRecommenderConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23177 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23178 var stack = clientStack.concat(this.middlewareStack);
23179 var logger = configuration.logger;
23180 var clientName = "PinpointClient";
23181 var commandName = "GetRecommenderConfigurationsCommand";
23182 var handlerExecutionContext = {
23183 logger: logger,
23184 clientName: clientName,
23185 commandName: commandName,
23186 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsRequest"].filterSensitiveLog,
23187 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsResponse"].filterSensitiveLog,
23188 };
23189 var requestHandler = configuration.requestHandler;
23190 return stack.resolve(function (request) {
23191 return requestHandler.handle(request.request, options || {});
23192 }, handlerExecutionContext);
23193 };
23194 GetRecommenderConfigurationsCommand.prototype.serialize = function (input, context) {
23195 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetRecommenderConfigurationsCommand"])(input, context);
23196 };
23197 GetRecommenderConfigurationsCommand.prototype.deserialize = function (output, context) {
23198 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetRecommenderConfigurationsCommand"])(output, context);
23199 };
23200 return GetRecommenderConfigurationsCommand;
23201}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23202
23203//# sourceMappingURL=GetRecommenderConfigurationsCommand.js.map
23204
23205/***/ }),
23206
23207/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js":
23208/*!****************************************************************************************************!*\
23209 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js ***!
23210 \****************************************************************************************************/
23211/*! exports provided: GetSegmentCommand */
23212/***/ (function(module, __webpack_exports__, __webpack_require__) {
23213
23214"use strict";
23215__webpack_require__.r(__webpack_exports__);
23216/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentCommand", function() { return GetSegmentCommand; });
23217/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23218/* 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");
23219/* 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");
23220/* 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");
23221/* 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");
23222
23223
23224
23225
23226
23227/**
23228 * <p>Retrieves information about the configuration, dimension, and other settings for a specific segment that's associated with an application.</p>
23229 */
23230var GetSegmentCommand = /** @class */ (function (_super) {
23231 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentCommand, _super);
23232 // Start section: command_properties
23233 // End section: command_properties
23234 function GetSegmentCommand(input) {
23235 var _this =
23236 // Start section: command_constructor
23237 _super.call(this) || this;
23238 _this.input = input;
23239 return _this;
23240 // End section: command_constructor
23241 }
23242 /**
23243 * @internal
23244 */
23245 GetSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23246 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23247 var stack = clientStack.concat(this.middlewareStack);
23248 var logger = configuration.logger;
23249 var clientName = "PinpointClient";
23250 var commandName = "GetSegmentCommand";
23251 var handlerExecutionContext = {
23252 logger: logger,
23253 clientName: clientName,
23254 commandName: commandName,
23255 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentRequest"].filterSensitiveLog,
23256 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentResponse"].filterSensitiveLog,
23257 };
23258 var requestHandler = configuration.requestHandler;
23259 return stack.resolve(function (request) {
23260 return requestHandler.handle(request.request, options || {});
23261 }, handlerExecutionContext);
23262 };
23263 GetSegmentCommand.prototype.serialize = function (input, context) {
23264 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentCommand"])(input, context);
23265 };
23266 GetSegmentCommand.prototype.deserialize = function (output, context) {
23267 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentCommand"])(output, context);
23268 };
23269 return GetSegmentCommand;
23270}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23271
23272//# sourceMappingURL=GetSegmentCommand.js.map
23273
23274/***/ }),
23275
23276/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js":
23277/*!**************************************************************************************************************!*\
23278 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js ***!
23279 \**************************************************************************************************************/
23280/*! exports provided: GetSegmentExportJobsCommand */
23281/***/ (function(module, __webpack_exports__, __webpack_require__) {
23282
23283"use strict";
23284__webpack_require__.r(__webpack_exports__);
23285/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsCommand", function() { return GetSegmentExportJobsCommand; });
23286/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23287/* 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");
23288/* 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");
23289/* 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");
23290/* 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");
23291
23292
23293
23294
23295
23296/**
23297 * <p>Retrieves information about the status and settings of the export jobs for a segment.</p>
23298 */
23299var GetSegmentExportJobsCommand = /** @class */ (function (_super) {
23300 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentExportJobsCommand, _super);
23301 // Start section: command_properties
23302 // End section: command_properties
23303 function GetSegmentExportJobsCommand(input) {
23304 var _this =
23305 // Start section: command_constructor
23306 _super.call(this) || this;
23307 _this.input = input;
23308 return _this;
23309 // End section: command_constructor
23310 }
23311 /**
23312 * @internal
23313 */
23314 GetSegmentExportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23315 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23316 var stack = clientStack.concat(this.middlewareStack);
23317 var logger = configuration.logger;
23318 var clientName = "PinpointClient";
23319 var commandName = "GetSegmentExportJobsCommand";
23320 var handlerExecutionContext = {
23321 logger: logger,
23322 clientName: clientName,
23323 commandName: commandName,
23324 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsRequest"].filterSensitiveLog,
23325 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsResponse"].filterSensitiveLog,
23326 };
23327 var requestHandler = configuration.requestHandler;
23328 return stack.resolve(function (request) {
23329 return requestHandler.handle(request.request, options || {});
23330 }, handlerExecutionContext);
23331 };
23332 GetSegmentExportJobsCommand.prototype.serialize = function (input, context) {
23333 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentExportJobsCommand"])(input, context);
23334 };
23335 GetSegmentExportJobsCommand.prototype.deserialize = function (output, context) {
23336 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentExportJobsCommand"])(output, context);
23337 };
23338 return GetSegmentExportJobsCommand;
23339}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23340
23341//# sourceMappingURL=GetSegmentExportJobsCommand.js.map
23342
23343/***/ }),
23344
23345/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js":
23346/*!**************************************************************************************************************!*\
23347 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js ***!
23348 \**************************************************************************************************************/
23349/*! exports provided: GetSegmentImportJobsCommand */
23350/***/ (function(module, __webpack_exports__, __webpack_require__) {
23351
23352"use strict";
23353__webpack_require__.r(__webpack_exports__);
23354/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsCommand", function() { return GetSegmentImportJobsCommand; });
23355/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23356/* 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");
23357/* 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");
23358/* 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");
23359/* 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");
23360
23361
23362
23363
23364
23365/**
23366 * <p>Retrieves information about the status and settings of the import jobs for a segment.</p>
23367 */
23368var GetSegmentImportJobsCommand = /** @class */ (function (_super) {
23369 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentImportJobsCommand, _super);
23370 // Start section: command_properties
23371 // End section: command_properties
23372 function GetSegmentImportJobsCommand(input) {
23373 var _this =
23374 // Start section: command_constructor
23375 _super.call(this) || this;
23376 _this.input = input;
23377 return _this;
23378 // End section: command_constructor
23379 }
23380 /**
23381 * @internal
23382 */
23383 GetSegmentImportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23384 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23385 var stack = clientStack.concat(this.middlewareStack);
23386 var logger = configuration.logger;
23387 var clientName = "PinpointClient";
23388 var commandName = "GetSegmentImportJobsCommand";
23389 var handlerExecutionContext = {
23390 logger: logger,
23391 clientName: clientName,
23392 commandName: commandName,
23393 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsRequest"].filterSensitiveLog,
23394 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsResponse"].filterSensitiveLog,
23395 };
23396 var requestHandler = configuration.requestHandler;
23397 return stack.resolve(function (request) {
23398 return requestHandler.handle(request.request, options || {});
23399 }, handlerExecutionContext);
23400 };
23401 GetSegmentImportJobsCommand.prototype.serialize = function (input, context) {
23402 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentImportJobsCommand"])(input, context);
23403 };
23404 GetSegmentImportJobsCommand.prototype.deserialize = function (output, context) {
23405 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentImportJobsCommand"])(output, context);
23406 };
23407 return GetSegmentImportJobsCommand;
23408}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23409
23410//# sourceMappingURL=GetSegmentImportJobsCommand.js.map
23411
23412/***/ }),
23413
23414/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js":
23415/*!***********************************************************************************************************!*\
23416 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js ***!
23417 \***********************************************************************************************************/
23418/*! exports provided: GetSegmentVersionCommand */
23419/***/ (function(module, __webpack_exports__, __webpack_require__) {
23420
23421"use strict";
23422__webpack_require__.r(__webpack_exports__);
23423/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionCommand", function() { return GetSegmentVersionCommand; });
23424/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23425/* 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");
23426/* 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");
23427/* 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");
23428/* 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");
23429
23430
23431
23432
23433
23434/**
23435 * <p>Retrieves information about the configuration, dimension, and other settings for a specific version of a segment that's associated with an application.</p>
23436 */
23437var GetSegmentVersionCommand = /** @class */ (function (_super) {
23438 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentVersionCommand, _super);
23439 // Start section: command_properties
23440 // End section: command_properties
23441 function GetSegmentVersionCommand(input) {
23442 var _this =
23443 // Start section: command_constructor
23444 _super.call(this) || this;
23445 _this.input = input;
23446 return _this;
23447 // End section: command_constructor
23448 }
23449 /**
23450 * @internal
23451 */
23452 GetSegmentVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23453 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23454 var stack = clientStack.concat(this.middlewareStack);
23455 var logger = configuration.logger;
23456 var clientName = "PinpointClient";
23457 var commandName = "GetSegmentVersionCommand";
23458 var handlerExecutionContext = {
23459 logger: logger,
23460 clientName: clientName,
23461 commandName: commandName,
23462 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionRequest"].filterSensitiveLog,
23463 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionResponse"].filterSensitiveLog,
23464 };
23465 var requestHandler = configuration.requestHandler;
23466 return stack.resolve(function (request) {
23467 return requestHandler.handle(request.request, options || {});
23468 }, handlerExecutionContext);
23469 };
23470 GetSegmentVersionCommand.prototype.serialize = function (input, context) {
23471 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentVersionCommand"])(input, context);
23472 };
23473 GetSegmentVersionCommand.prototype.deserialize = function (output, context) {
23474 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentVersionCommand"])(output, context);
23475 };
23476 return GetSegmentVersionCommand;
23477}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23478
23479//# sourceMappingURL=GetSegmentVersionCommand.js.map
23480
23481/***/ }),
23482
23483/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js":
23484/*!************************************************************************************************************!*\
23485 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js ***!
23486 \************************************************************************************************************/
23487/*! exports provided: GetSegmentVersionsCommand */
23488/***/ (function(module, __webpack_exports__, __webpack_require__) {
23489
23490"use strict";
23491__webpack_require__.r(__webpack_exports__);
23492/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsCommand", function() { return GetSegmentVersionsCommand; });
23493/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23494/* 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");
23495/* 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");
23496/* 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");
23497/* 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");
23498
23499
23500
23501
23502
23503/**
23504 * <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>
23505 */
23506var GetSegmentVersionsCommand = /** @class */ (function (_super) {
23507 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentVersionsCommand, _super);
23508 // Start section: command_properties
23509 // End section: command_properties
23510 function GetSegmentVersionsCommand(input) {
23511 var _this =
23512 // Start section: command_constructor
23513 _super.call(this) || this;
23514 _this.input = input;
23515 return _this;
23516 // End section: command_constructor
23517 }
23518 /**
23519 * @internal
23520 */
23521 GetSegmentVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23522 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23523 var stack = clientStack.concat(this.middlewareStack);
23524 var logger = configuration.logger;
23525 var clientName = "PinpointClient";
23526 var commandName = "GetSegmentVersionsCommand";
23527 var handlerExecutionContext = {
23528 logger: logger,
23529 clientName: clientName,
23530 commandName: commandName,
23531 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsRequest"].filterSensitiveLog,
23532 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsResponse"].filterSensitiveLog,
23533 };
23534 var requestHandler = configuration.requestHandler;
23535 return stack.resolve(function (request) {
23536 return requestHandler.handle(request.request, options || {});
23537 }, handlerExecutionContext);
23538 };
23539 GetSegmentVersionsCommand.prototype.serialize = function (input, context) {
23540 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentVersionsCommand"])(input, context);
23541 };
23542 GetSegmentVersionsCommand.prototype.deserialize = function (output, context) {
23543 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentVersionsCommand"])(output, context);
23544 };
23545 return GetSegmentVersionsCommand;
23546}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23547
23548//# sourceMappingURL=GetSegmentVersionsCommand.js.map
23549
23550/***/ }),
23551
23552/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js":
23553/*!*****************************************************************************************************!*\
23554 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js ***!
23555 \*****************************************************************************************************/
23556/*! exports provided: GetSegmentsCommand */
23557/***/ (function(module, __webpack_exports__, __webpack_require__) {
23558
23559"use strict";
23560__webpack_require__.r(__webpack_exports__);
23561/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsCommand", function() { return GetSegmentsCommand; });
23562/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23563/* 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");
23564/* 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");
23565/* 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");
23566/* 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");
23567
23568
23569
23570
23571
23572/**
23573 * <p>Retrieves information about the configuration, dimension, and other settings for all the segments that are associated with an application.</p>
23574 */
23575var GetSegmentsCommand = /** @class */ (function (_super) {
23576 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentsCommand, _super);
23577 // Start section: command_properties
23578 // End section: command_properties
23579 function GetSegmentsCommand(input) {
23580 var _this =
23581 // Start section: command_constructor
23582 _super.call(this) || this;
23583 _this.input = input;
23584 return _this;
23585 // End section: command_constructor
23586 }
23587 /**
23588 * @internal
23589 */
23590 GetSegmentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23591 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23592 var stack = clientStack.concat(this.middlewareStack);
23593 var logger = configuration.logger;
23594 var clientName = "PinpointClient";
23595 var commandName = "GetSegmentsCommand";
23596 var handlerExecutionContext = {
23597 logger: logger,
23598 clientName: clientName,
23599 commandName: commandName,
23600 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsRequest"].filterSensitiveLog,
23601 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsResponse"].filterSensitiveLog,
23602 };
23603 var requestHandler = configuration.requestHandler;
23604 return stack.resolve(function (request) {
23605 return requestHandler.handle(request.request, options || {});
23606 }, handlerExecutionContext);
23607 };
23608 GetSegmentsCommand.prototype.serialize = function (input, context) {
23609 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentsCommand"])(input, context);
23610 };
23611 GetSegmentsCommand.prototype.deserialize = function (output, context) {
23612 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentsCommand"])(output, context);
23613 };
23614 return GetSegmentsCommand;
23615}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23616
23617//# sourceMappingURL=GetSegmentsCommand.js.map
23618
23619/***/ }),
23620
23621/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js":
23622/*!*******************************************************************************************************!*\
23623 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js ***!
23624 \*******************************************************************************************************/
23625/*! exports provided: GetSmsChannelCommand */
23626/***/ (function(module, __webpack_exports__, __webpack_require__) {
23627
23628"use strict";
23629__webpack_require__.r(__webpack_exports__);
23630/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelCommand", function() { return GetSmsChannelCommand; });
23631/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23632/* 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");
23633/* 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");
23634/* 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");
23635/* 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");
23636
23637
23638
23639
23640
23641/**
23642 * <p>Retrieves information about the status and settings of the SMS channel for an application.</p>
23643 */
23644var GetSmsChannelCommand = /** @class */ (function (_super) {
23645 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSmsChannelCommand, _super);
23646 // Start section: command_properties
23647 // End section: command_properties
23648 function GetSmsChannelCommand(input) {
23649 var _this =
23650 // Start section: command_constructor
23651 _super.call(this) || this;
23652 _this.input = input;
23653 return _this;
23654 // End section: command_constructor
23655 }
23656 /**
23657 * @internal
23658 */
23659 GetSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23660 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23661 var stack = clientStack.concat(this.middlewareStack);
23662 var logger = configuration.logger;
23663 var clientName = "PinpointClient";
23664 var commandName = "GetSmsChannelCommand";
23665 var handlerExecutionContext = {
23666 logger: logger,
23667 clientName: clientName,
23668 commandName: commandName,
23669 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelRequest"].filterSensitiveLog,
23670 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelResponse"].filterSensitiveLog,
23671 };
23672 var requestHandler = configuration.requestHandler;
23673 return stack.resolve(function (request) {
23674 return requestHandler.handle(request.request, options || {});
23675 }, handlerExecutionContext);
23676 };
23677 GetSmsChannelCommand.prototype.serialize = function (input, context) {
23678 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSmsChannelCommand"])(input, context);
23679 };
23680 GetSmsChannelCommand.prototype.deserialize = function (output, context) {
23681 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSmsChannelCommand"])(output, context);
23682 };
23683 return GetSmsChannelCommand;
23684}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23685
23686//# sourceMappingURL=GetSmsChannelCommand.js.map
23687
23688/***/ }),
23689
23690/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js":
23691/*!********************************************************************************************************!*\
23692 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js ***!
23693 \********************************************************************************************************/
23694/*! exports provided: GetSmsTemplateCommand */
23695/***/ (function(module, __webpack_exports__, __webpack_require__) {
23696
23697"use strict";
23698__webpack_require__.r(__webpack_exports__);
23699/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateCommand", function() { return GetSmsTemplateCommand; });
23700/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23701/* 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");
23702/* 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");
23703/* 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");
23704/* 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");
23705
23706
23707
23708
23709
23710/**
23711 * <p>Retrieves the content and settings of a message template for messages that are sent through the SMS channel.</p>
23712 */
23713var GetSmsTemplateCommand = /** @class */ (function (_super) {
23714 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSmsTemplateCommand, _super);
23715 // Start section: command_properties
23716 // End section: command_properties
23717 function GetSmsTemplateCommand(input) {
23718 var _this =
23719 // Start section: command_constructor
23720 _super.call(this) || this;
23721 _this.input = input;
23722 return _this;
23723 // End section: command_constructor
23724 }
23725 /**
23726 * @internal
23727 */
23728 GetSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23729 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23730 var stack = clientStack.concat(this.middlewareStack);
23731 var logger = configuration.logger;
23732 var clientName = "PinpointClient";
23733 var commandName = "GetSmsTemplateCommand";
23734 var handlerExecutionContext = {
23735 logger: logger,
23736 clientName: clientName,
23737 commandName: commandName,
23738 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateRequest"].filterSensitiveLog,
23739 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateResponse"].filterSensitiveLog,
23740 };
23741 var requestHandler = configuration.requestHandler;
23742 return stack.resolve(function (request) {
23743 return requestHandler.handle(request.request, options || {});
23744 }, handlerExecutionContext);
23745 };
23746 GetSmsTemplateCommand.prototype.serialize = function (input, context) {
23747 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSmsTemplateCommand"])(input, context);
23748 };
23749 GetSmsTemplateCommand.prototype.deserialize = function (output, context) {
23750 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSmsTemplateCommand"])(output, context);
23751 };
23752 return GetSmsTemplateCommand;
23753}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23754
23755//# sourceMappingURL=GetSmsTemplateCommand.js.map
23756
23757/***/ }),
23758
23759/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js":
23760/*!**********************************************************************************************************!*\
23761 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js ***!
23762 \**********************************************************************************************************/
23763/*! exports provided: GetUserEndpointsCommand */
23764/***/ (function(module, __webpack_exports__, __webpack_require__) {
23765
23766"use strict";
23767__webpack_require__.r(__webpack_exports__);
23768/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsCommand", function() { return GetUserEndpointsCommand; });
23769/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23770/* 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");
23771/* 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");
23772/* 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");
23773/* 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");
23774
23775
23776
23777
23778
23779/**
23780 * <p>Retrieves information about all the endpoints that are associated with a specific user ID.</p>
23781 */
23782var GetUserEndpointsCommand = /** @class */ (function (_super) {
23783 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetUserEndpointsCommand, _super);
23784 // Start section: command_properties
23785 // End section: command_properties
23786 function GetUserEndpointsCommand(input) {
23787 var _this =
23788 // Start section: command_constructor
23789 _super.call(this) || this;
23790 _this.input = input;
23791 return _this;
23792 // End section: command_constructor
23793 }
23794 /**
23795 * @internal
23796 */
23797 GetUserEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23798 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23799 var stack = clientStack.concat(this.middlewareStack);
23800 var logger = configuration.logger;
23801 var clientName = "PinpointClient";
23802 var commandName = "GetUserEndpointsCommand";
23803 var handlerExecutionContext = {
23804 logger: logger,
23805 clientName: clientName,
23806 commandName: commandName,
23807 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsRequest"].filterSensitiveLog,
23808 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsResponse"].filterSensitiveLog,
23809 };
23810 var requestHandler = configuration.requestHandler;
23811 return stack.resolve(function (request) {
23812 return requestHandler.handle(request.request, options || {});
23813 }, handlerExecutionContext);
23814 };
23815 GetUserEndpointsCommand.prototype.serialize = function (input, context) {
23816 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetUserEndpointsCommand"])(input, context);
23817 };
23818 GetUserEndpointsCommand.prototype.deserialize = function (output, context) {
23819 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetUserEndpointsCommand"])(output, context);
23820 };
23821 return GetUserEndpointsCommand;
23822}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23823
23824//# sourceMappingURL=GetUserEndpointsCommand.js.map
23825
23826/***/ }),
23827
23828/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js":
23829/*!*********************************************************************************************************!*\
23830 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js ***!
23831 \*********************************************************************************************************/
23832/*! exports provided: GetVoiceChannelCommand */
23833/***/ (function(module, __webpack_exports__, __webpack_require__) {
23834
23835"use strict";
23836__webpack_require__.r(__webpack_exports__);
23837/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelCommand", function() { return GetVoiceChannelCommand; });
23838/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23839/* 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");
23840/* 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");
23841/* 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");
23842/* 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");
23843
23844
23845
23846
23847
23848/**
23849 * <p>Retrieves information about the status and settings of the voice channel for an application.</p>
23850 */
23851var GetVoiceChannelCommand = /** @class */ (function (_super) {
23852 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetVoiceChannelCommand, _super);
23853 // Start section: command_properties
23854 // End section: command_properties
23855 function GetVoiceChannelCommand(input) {
23856 var _this =
23857 // Start section: command_constructor
23858 _super.call(this) || this;
23859 _this.input = input;
23860 return _this;
23861 // End section: command_constructor
23862 }
23863 /**
23864 * @internal
23865 */
23866 GetVoiceChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23867 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23868 var stack = clientStack.concat(this.middlewareStack);
23869 var logger = configuration.logger;
23870 var clientName = "PinpointClient";
23871 var commandName = "GetVoiceChannelCommand";
23872 var handlerExecutionContext = {
23873 logger: logger,
23874 clientName: clientName,
23875 commandName: commandName,
23876 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelRequest"].filterSensitiveLog,
23877 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelResponse"].filterSensitiveLog,
23878 };
23879 var requestHandler = configuration.requestHandler;
23880 return stack.resolve(function (request) {
23881 return requestHandler.handle(request.request, options || {});
23882 }, handlerExecutionContext);
23883 };
23884 GetVoiceChannelCommand.prototype.serialize = function (input, context) {
23885 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetVoiceChannelCommand"])(input, context);
23886 };
23887 GetVoiceChannelCommand.prototype.deserialize = function (output, context) {
23888 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetVoiceChannelCommand"])(output, context);
23889 };
23890 return GetVoiceChannelCommand;
23891}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23892
23893//# sourceMappingURL=GetVoiceChannelCommand.js.map
23894
23895/***/ }),
23896
23897/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js":
23898/*!**********************************************************************************************************!*\
23899 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js ***!
23900 \**********************************************************************************************************/
23901/*! exports provided: GetVoiceTemplateCommand */
23902/***/ (function(module, __webpack_exports__, __webpack_require__) {
23903
23904"use strict";
23905__webpack_require__.r(__webpack_exports__);
23906/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateCommand", function() { return GetVoiceTemplateCommand; });
23907/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23908/* 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");
23909/* 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");
23910/* 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");
23911/* 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");
23912
23913
23914
23915
23916
23917/**
23918 * <p>Retrieves the content and settings of a message template for messages that are sent through the voice channel.</p>
23919 */
23920var GetVoiceTemplateCommand = /** @class */ (function (_super) {
23921 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetVoiceTemplateCommand, _super);
23922 // Start section: command_properties
23923 // End section: command_properties
23924 function GetVoiceTemplateCommand(input) {
23925 var _this =
23926 // Start section: command_constructor
23927 _super.call(this) || this;
23928 _this.input = input;
23929 return _this;
23930 // End section: command_constructor
23931 }
23932 /**
23933 * @internal
23934 */
23935 GetVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23936 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23937 var stack = clientStack.concat(this.middlewareStack);
23938 var logger = configuration.logger;
23939 var clientName = "PinpointClient";
23940 var commandName = "GetVoiceTemplateCommand";
23941 var handlerExecutionContext = {
23942 logger: logger,
23943 clientName: clientName,
23944 commandName: commandName,
23945 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateRequest"].filterSensitiveLog,
23946 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateResponse"].filterSensitiveLog,
23947 };
23948 var requestHandler = configuration.requestHandler;
23949 return stack.resolve(function (request) {
23950 return requestHandler.handle(request.request, options || {});
23951 }, handlerExecutionContext);
23952 };
23953 GetVoiceTemplateCommand.prototype.serialize = function (input, context) {
23954 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetVoiceTemplateCommand"])(input, context);
23955 };
23956 GetVoiceTemplateCommand.prototype.deserialize = function (output, context) {
23957 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetVoiceTemplateCommand"])(output, context);
23958 };
23959 return GetVoiceTemplateCommand;
23960}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23961
23962//# sourceMappingURL=GetVoiceTemplateCommand.js.map
23963
23964/***/ }),
23965
23966/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js":
23967/*!******************************************************************************************************!*\
23968 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js ***!
23969 \******************************************************************************************************/
23970/*! exports provided: ListJourneysCommand */
23971/***/ (function(module, __webpack_exports__, __webpack_require__) {
23972
23973"use strict";
23974__webpack_require__.r(__webpack_exports__);
23975/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListJourneysCommand", function() { return ListJourneysCommand; });
23976/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23977/* 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");
23978/* 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");
23979/* 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");
23980/* 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");
23981
23982
23983
23984
23985
23986/**
23987 * <p>Retrieves information about the status, configuration, and other settings for all the journeys that are associated with an application.</p>
23988 */
23989var ListJourneysCommand = /** @class */ (function (_super) {
23990 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListJourneysCommand, _super);
23991 // Start section: command_properties
23992 // End section: command_properties
23993 function ListJourneysCommand(input) {
23994 var _this =
23995 // Start section: command_constructor
23996 _super.call(this) || this;
23997 _this.input = input;
23998 return _this;
23999 // End section: command_constructor
24000 }
24001 /**
24002 * @internal
24003 */
24004 ListJourneysCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24005 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24006 var stack = clientStack.concat(this.middlewareStack);
24007 var logger = configuration.logger;
24008 var clientName = "PinpointClient";
24009 var commandName = "ListJourneysCommand";
24010 var handlerExecutionContext = {
24011 logger: logger,
24012 clientName: clientName,
24013 commandName: commandName,
24014 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysRequest"].filterSensitiveLog,
24015 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysResponse"].filterSensitiveLog,
24016 };
24017 var requestHandler = configuration.requestHandler;
24018 return stack.resolve(function (request) {
24019 return requestHandler.handle(request.request, options || {});
24020 }, handlerExecutionContext);
24021 };
24022 ListJourneysCommand.prototype.serialize = function (input, context) {
24023 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListJourneysCommand"])(input, context);
24024 };
24025 ListJourneysCommand.prototype.deserialize = function (output, context) {
24026 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListJourneysCommand"])(output, context);
24027 };
24028 return ListJourneysCommand;
24029}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24030
24031//# sourceMappingURL=ListJourneysCommand.js.map
24032
24033/***/ }),
24034
24035/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js":
24036/*!*************************************************************************************************************!*\
24037 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js ***!
24038 \*************************************************************************************************************/
24039/*! exports provided: ListTagsForResourceCommand */
24040/***/ (function(module, __webpack_exports__, __webpack_require__) {
24041
24042"use strict";
24043__webpack_require__.r(__webpack_exports__);
24044/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return ListTagsForResourceCommand; });
24045/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24046/* 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");
24047/* 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");
24048/* 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");
24049/* 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");
24050
24051
24052
24053
24054
24055/**
24056 * <p>Retrieves all the tags (keys and values) that are associated with an application, campaign, message template, or segment.</p>
24057 */
24058var ListTagsForResourceCommand = /** @class */ (function (_super) {
24059 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForResourceCommand, _super);
24060 // Start section: command_properties
24061 // End section: command_properties
24062 function ListTagsForResourceCommand(input) {
24063 var _this =
24064 // Start section: command_constructor
24065 _super.call(this) || this;
24066 _this.input = input;
24067 return _this;
24068 // End section: command_constructor
24069 }
24070 /**
24071 * @internal
24072 */
24073 ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24074 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24075 var stack = clientStack.concat(this.middlewareStack);
24076 var logger = configuration.logger;
24077 var clientName = "PinpointClient";
24078 var commandName = "ListTagsForResourceCommand";
24079 var handlerExecutionContext = {
24080 logger: logger,
24081 clientName: clientName,
24082 commandName: commandName,
24083 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceRequest"].filterSensitiveLog,
24084 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceResponse"].filterSensitiveLog,
24085 };
24086 var requestHandler = configuration.requestHandler;
24087 return stack.resolve(function (request) {
24088 return requestHandler.handle(request.request, options || {});
24089 }, handlerExecutionContext);
24090 };
24091 ListTagsForResourceCommand.prototype.serialize = function (input, context) {
24092 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTagsForResourceCommand"])(input, context);
24093 };
24094 ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
24095 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTagsForResourceCommand"])(output, context);
24096 };
24097 return ListTagsForResourceCommand;
24098}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24099
24100//# sourceMappingURL=ListTagsForResourceCommand.js.map
24101
24102/***/ }),
24103
24104/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js":
24105/*!**************************************************************************************************************!*\
24106 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js ***!
24107 \**************************************************************************************************************/
24108/*! exports provided: ListTemplateVersionsCommand */
24109/***/ (function(module, __webpack_exports__, __webpack_require__) {
24110
24111"use strict";
24112__webpack_require__.r(__webpack_exports__);
24113/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsCommand", function() { return ListTemplateVersionsCommand; });
24114/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24115/* 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");
24116/* 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");
24117/* 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");
24118/* 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");
24119
24120
24121
24122
24123
24124/**
24125 * <p>Retrieves information about all the versions of a specific message template.</p>
24126 */
24127var ListTemplateVersionsCommand = /** @class */ (function (_super) {
24128 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTemplateVersionsCommand, _super);
24129 // Start section: command_properties
24130 // End section: command_properties
24131 function ListTemplateVersionsCommand(input) {
24132 var _this =
24133 // Start section: command_constructor
24134 _super.call(this) || this;
24135 _this.input = input;
24136 return _this;
24137 // End section: command_constructor
24138 }
24139 /**
24140 * @internal
24141 */
24142 ListTemplateVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24143 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24144 var stack = clientStack.concat(this.middlewareStack);
24145 var logger = configuration.logger;
24146 var clientName = "PinpointClient";
24147 var commandName = "ListTemplateVersionsCommand";
24148 var handlerExecutionContext = {
24149 logger: logger,
24150 clientName: clientName,
24151 commandName: commandName,
24152 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsRequest"].filterSensitiveLog,
24153 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsResponse"].filterSensitiveLog,
24154 };
24155 var requestHandler = configuration.requestHandler;
24156 return stack.resolve(function (request) {
24157 return requestHandler.handle(request.request, options || {});
24158 }, handlerExecutionContext);
24159 };
24160 ListTemplateVersionsCommand.prototype.serialize = function (input, context) {
24161 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTemplateVersionsCommand"])(input, context);
24162 };
24163 ListTemplateVersionsCommand.prototype.deserialize = function (output, context) {
24164 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTemplateVersionsCommand"])(output, context);
24165 };
24166 return ListTemplateVersionsCommand;
24167}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24168
24169//# sourceMappingURL=ListTemplateVersionsCommand.js.map
24170
24171/***/ }),
24172
24173/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js":
24174/*!*******************************************************************************************************!*\
24175 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js ***!
24176 \*******************************************************************************************************/
24177/*! exports provided: ListTemplatesCommand */
24178/***/ (function(module, __webpack_exports__, __webpack_require__) {
24179
24180"use strict";
24181__webpack_require__.r(__webpack_exports__);
24182/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesCommand", function() { return ListTemplatesCommand; });
24183/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24184/* 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");
24185/* 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");
24186/* 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");
24187/* 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");
24188
24189
24190
24191
24192
24193/**
24194 * <p>Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.</p>
24195 */
24196var ListTemplatesCommand = /** @class */ (function (_super) {
24197 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTemplatesCommand, _super);
24198 // Start section: command_properties
24199 // End section: command_properties
24200 function ListTemplatesCommand(input) {
24201 var _this =
24202 // Start section: command_constructor
24203 _super.call(this) || this;
24204 _this.input = input;
24205 return _this;
24206 // End section: command_constructor
24207 }
24208 /**
24209 * @internal
24210 */
24211 ListTemplatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24212 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24213 var stack = clientStack.concat(this.middlewareStack);
24214 var logger = configuration.logger;
24215 var clientName = "PinpointClient";
24216 var commandName = "ListTemplatesCommand";
24217 var handlerExecutionContext = {
24218 logger: logger,
24219 clientName: clientName,
24220 commandName: commandName,
24221 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesRequest"].filterSensitiveLog,
24222 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesResponse"].filterSensitiveLog,
24223 };
24224 var requestHandler = configuration.requestHandler;
24225 return stack.resolve(function (request) {
24226 return requestHandler.handle(request.request, options || {});
24227 }, handlerExecutionContext);
24228 };
24229 ListTemplatesCommand.prototype.serialize = function (input, context) {
24230 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTemplatesCommand"])(input, context);
24231 };
24232 ListTemplatesCommand.prototype.deserialize = function (output, context) {
24233 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTemplatesCommand"])(output, context);
24234 };
24235 return ListTemplatesCommand;
24236}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24237
24238//# sourceMappingURL=ListTemplatesCommand.js.map
24239
24240/***/ }),
24241
24242/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js":
24243/*!*************************************************************************************************************!*\
24244 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js ***!
24245 \*************************************************************************************************************/
24246/*! exports provided: PhoneNumberValidateCommand */
24247/***/ (function(module, __webpack_exports__, __webpack_require__) {
24248
24249"use strict";
24250__webpack_require__.r(__webpack_exports__);
24251/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateCommand", function() { return PhoneNumberValidateCommand; });
24252/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24253/* 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");
24254/* 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");
24255/* 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");
24256/* 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");
24257
24258
24259
24260
24261
24262/**
24263 * <p>Retrieves information about a phone number.</p>
24264 */
24265var PhoneNumberValidateCommand = /** @class */ (function (_super) {
24266 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PhoneNumberValidateCommand, _super);
24267 // Start section: command_properties
24268 // End section: command_properties
24269 function PhoneNumberValidateCommand(input) {
24270 var _this =
24271 // Start section: command_constructor
24272 _super.call(this) || this;
24273 _this.input = input;
24274 return _this;
24275 // End section: command_constructor
24276 }
24277 /**
24278 * @internal
24279 */
24280 PhoneNumberValidateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24281 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24282 var stack = clientStack.concat(this.middlewareStack);
24283 var logger = configuration.logger;
24284 var clientName = "PinpointClient";
24285 var commandName = "PhoneNumberValidateCommand";
24286 var handlerExecutionContext = {
24287 logger: logger,
24288 clientName: clientName,
24289 commandName: commandName,
24290 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateRequest"].filterSensitiveLog,
24291 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateResponse"].filterSensitiveLog,
24292 };
24293 var requestHandler = configuration.requestHandler;
24294 return stack.resolve(function (request) {
24295 return requestHandler.handle(request.request, options || {});
24296 }, handlerExecutionContext);
24297 };
24298 PhoneNumberValidateCommand.prototype.serialize = function (input, context) {
24299 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PhoneNumberValidateCommand"])(input, context);
24300 };
24301 PhoneNumberValidateCommand.prototype.deserialize = function (output, context) {
24302 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PhoneNumberValidateCommand"])(output, context);
24303 };
24304 return PhoneNumberValidateCommand;
24305}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24306
24307//# sourceMappingURL=PhoneNumberValidateCommand.js.map
24308
24309/***/ }),
24310
24311/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js":
24312/*!********************************************************************************************************!*\
24313 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js ***!
24314 \********************************************************************************************************/
24315/*! exports provided: PutEventStreamCommand */
24316/***/ (function(module, __webpack_exports__, __webpack_require__) {
24317
24318"use strict";
24319__webpack_require__.r(__webpack_exports__);
24320/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamCommand", function() { return PutEventStreamCommand; });
24321/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24322/* 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");
24323/* 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");
24324/* 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");
24325/* 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");
24326
24327
24328
24329
24330
24331/**
24332 * <p>Creates a new event stream for an application or updates the settings of an existing event stream for an application.</p>
24333 */
24334var PutEventStreamCommand = /** @class */ (function (_super) {
24335 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventStreamCommand, _super);
24336 // Start section: command_properties
24337 // End section: command_properties
24338 function PutEventStreamCommand(input) {
24339 var _this =
24340 // Start section: command_constructor
24341 _super.call(this) || this;
24342 _this.input = input;
24343 return _this;
24344 // End section: command_constructor
24345 }
24346 /**
24347 * @internal
24348 */
24349 PutEventStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24350 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24351 var stack = clientStack.concat(this.middlewareStack);
24352 var logger = configuration.logger;
24353 var clientName = "PinpointClient";
24354 var commandName = "PutEventStreamCommand";
24355 var handlerExecutionContext = {
24356 logger: logger,
24357 clientName: clientName,
24358 commandName: commandName,
24359 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamRequest"].filterSensitiveLog,
24360 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamResponse"].filterSensitiveLog,
24361 };
24362 var requestHandler = configuration.requestHandler;
24363 return stack.resolve(function (request) {
24364 return requestHandler.handle(request.request, options || {});
24365 }, handlerExecutionContext);
24366 };
24367 PutEventStreamCommand.prototype.serialize = function (input, context) {
24368 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventStreamCommand"])(input, context);
24369 };
24370 PutEventStreamCommand.prototype.deserialize = function (output, context) {
24371 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventStreamCommand"])(output, context);
24372 };
24373 return PutEventStreamCommand;
24374}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24375
24376//# sourceMappingURL=PutEventStreamCommand.js.map
24377
24378/***/ }),
24379
24380/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js":
24381/*!***************************************************************************************************!*\
24382 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js ***!
24383 \***************************************************************************************************/
24384/*! exports provided: PutEventsCommand */
24385/***/ (function(module, __webpack_exports__, __webpack_require__) {
24386
24387"use strict";
24388__webpack_require__.r(__webpack_exports__);
24389/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return PutEventsCommand; });
24390/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24391/* 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");
24392/* 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");
24393/* 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");
24394/* 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");
24395
24396
24397
24398
24399
24400/**
24401 * <p>Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with.</p>
24402 */
24403var PutEventsCommand = /** @class */ (function (_super) {
24404 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventsCommand, _super);
24405 // Start section: command_properties
24406 // End section: command_properties
24407 function PutEventsCommand(input) {
24408 var _this =
24409 // Start section: command_constructor
24410 _super.call(this) || this;
24411 _this.input = input;
24412 return _this;
24413 // End section: command_constructor
24414 }
24415 /**
24416 * @internal
24417 */
24418 PutEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24419 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24420 var stack = clientStack.concat(this.middlewareStack);
24421 var logger = configuration.logger;
24422 var clientName = "PinpointClient";
24423 var commandName = "PutEventsCommand";
24424 var handlerExecutionContext = {
24425 logger: logger,
24426 clientName: clientName,
24427 commandName: commandName,
24428 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"].filterSensitiveLog,
24429 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsResponse"].filterSensitiveLog,
24430 };
24431 var requestHandler = configuration.requestHandler;
24432 return stack.resolve(function (request) {
24433 return requestHandler.handle(request.request, options || {});
24434 }, handlerExecutionContext);
24435 };
24436 PutEventsCommand.prototype.serialize = function (input, context) {
24437 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventsCommand"])(input, context);
24438 };
24439 PutEventsCommand.prototype.deserialize = function (output, context) {
24440 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventsCommand"])(output, context);
24441 };
24442 return PutEventsCommand;
24443}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24444
24445//# sourceMappingURL=PutEventsCommand.js.map
24446
24447/***/ }),
24448
24449/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js":
24450/*!**********************************************************************************************************!*\
24451 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js ***!
24452 \**********************************************************************************************************/
24453/*! exports provided: RemoveAttributesCommand */
24454/***/ (function(module, __webpack_exports__, __webpack_require__) {
24455
24456"use strict";
24457__webpack_require__.r(__webpack_exports__);
24458/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesCommand", function() { return RemoveAttributesCommand; });
24459/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24460/* 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");
24461/* 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");
24462/* 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");
24463/* 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");
24464
24465
24466
24467
24468
24469/**
24470 * <p>Removes one or more attributes, of the same attribute type, from all the endpoints that are associated with an application.</p>
24471 */
24472var RemoveAttributesCommand = /** @class */ (function (_super) {
24473 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RemoveAttributesCommand, _super);
24474 // Start section: command_properties
24475 // End section: command_properties
24476 function RemoveAttributesCommand(input) {
24477 var _this =
24478 // Start section: command_constructor
24479 _super.call(this) || this;
24480 _this.input = input;
24481 return _this;
24482 // End section: command_constructor
24483 }
24484 /**
24485 * @internal
24486 */
24487 RemoveAttributesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24488 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24489 var stack = clientStack.concat(this.middlewareStack);
24490 var logger = configuration.logger;
24491 var clientName = "PinpointClient";
24492 var commandName = "RemoveAttributesCommand";
24493 var handlerExecutionContext = {
24494 logger: logger,
24495 clientName: clientName,
24496 commandName: commandName,
24497 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesRequest"].filterSensitiveLog,
24498 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesResponse"].filterSensitiveLog,
24499 };
24500 var requestHandler = configuration.requestHandler;
24501 return stack.resolve(function (request) {
24502 return requestHandler.handle(request.request, options || {});
24503 }, handlerExecutionContext);
24504 };
24505 RemoveAttributesCommand.prototype.serialize = function (input, context) {
24506 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1RemoveAttributesCommand"])(input, context);
24507 };
24508 RemoveAttributesCommand.prototype.deserialize = function (output, context) {
24509 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1RemoveAttributesCommand"])(output, context);
24510 };
24511 return RemoveAttributesCommand;
24512}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24513
24514//# sourceMappingURL=RemoveAttributesCommand.js.map
24515
24516/***/ }),
24517
24518/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js":
24519/*!******************************************************************************************************!*\
24520 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js ***!
24521 \******************************************************************************************************/
24522/*! exports provided: SendMessagesCommand */
24523/***/ (function(module, __webpack_exports__, __webpack_require__) {
24524
24525"use strict";
24526__webpack_require__.r(__webpack_exports__);
24527/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendMessagesCommand", function() { return SendMessagesCommand; });
24528/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24529/* 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");
24530/* 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");
24531/* 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");
24532/* 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");
24533
24534
24535
24536
24537
24538/**
24539 * <p>Creates and sends a direct message.</p>
24540 */
24541var SendMessagesCommand = /** @class */ (function (_super) {
24542 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SendMessagesCommand, _super);
24543 // Start section: command_properties
24544 // End section: command_properties
24545 function SendMessagesCommand(input) {
24546 var _this =
24547 // Start section: command_constructor
24548 _super.call(this) || this;
24549 _this.input = input;
24550 return _this;
24551 // End section: command_constructor
24552 }
24553 /**
24554 * @internal
24555 */
24556 SendMessagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24557 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24558 var stack = clientStack.concat(this.middlewareStack);
24559 var logger = configuration.logger;
24560 var clientName = "PinpointClient";
24561 var commandName = "SendMessagesCommand";
24562 var handlerExecutionContext = {
24563 logger: logger,
24564 clientName: clientName,
24565 commandName: commandName,
24566 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesRequest"].filterSensitiveLog,
24567 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesResponse"].filterSensitiveLog,
24568 };
24569 var requestHandler = configuration.requestHandler;
24570 return stack.resolve(function (request) {
24571 return requestHandler.handle(request.request, options || {});
24572 }, handlerExecutionContext);
24573 };
24574 SendMessagesCommand.prototype.serialize = function (input, context) {
24575 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1SendMessagesCommand"])(input, context);
24576 };
24577 SendMessagesCommand.prototype.deserialize = function (output, context) {
24578 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1SendMessagesCommand"])(output, context);
24579 };
24580 return SendMessagesCommand;
24581}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24582
24583//# sourceMappingURL=SendMessagesCommand.js.map
24584
24585/***/ }),
24586
24587/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js":
24588/*!***********************************************************************************************************!*\
24589 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js ***!
24590 \***********************************************************************************************************/
24591/*! exports provided: SendUsersMessagesCommand */
24592/***/ (function(module, __webpack_exports__, __webpack_require__) {
24593
24594"use strict";
24595__webpack_require__.r(__webpack_exports__);
24596/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesCommand", function() { return SendUsersMessagesCommand; });
24597/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24598/* 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");
24599/* 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");
24600/* 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");
24601/* 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");
24602
24603
24604
24605
24606
24607/**
24608 * <p>Creates and sends a message to a list of users.</p>
24609 */
24610var SendUsersMessagesCommand = /** @class */ (function (_super) {
24611 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SendUsersMessagesCommand, _super);
24612 // Start section: command_properties
24613 // End section: command_properties
24614 function SendUsersMessagesCommand(input) {
24615 var _this =
24616 // Start section: command_constructor
24617 _super.call(this) || this;
24618 _this.input = input;
24619 return _this;
24620 // End section: command_constructor
24621 }
24622 /**
24623 * @internal
24624 */
24625 SendUsersMessagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24626 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24627 var stack = clientStack.concat(this.middlewareStack);
24628 var logger = configuration.logger;
24629 var clientName = "PinpointClient";
24630 var commandName = "SendUsersMessagesCommand";
24631 var handlerExecutionContext = {
24632 logger: logger,
24633 clientName: clientName,
24634 commandName: commandName,
24635 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesRequest"].filterSensitiveLog,
24636 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesResponse"].filterSensitiveLog,
24637 };
24638 var requestHandler = configuration.requestHandler;
24639 return stack.resolve(function (request) {
24640 return requestHandler.handle(request.request, options || {});
24641 }, handlerExecutionContext);
24642 };
24643 SendUsersMessagesCommand.prototype.serialize = function (input, context) {
24644 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1SendUsersMessagesCommand"])(input, context);
24645 };
24646 SendUsersMessagesCommand.prototype.deserialize = function (output, context) {
24647 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1SendUsersMessagesCommand"])(output, context);
24648 };
24649 return SendUsersMessagesCommand;
24650}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24651
24652//# sourceMappingURL=SendUsersMessagesCommand.js.map
24653
24654/***/ }),
24655
24656/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js":
24657/*!*****************************************************************************************************!*\
24658 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js ***!
24659 \*****************************************************************************************************/
24660/*! exports provided: TagResourceCommand */
24661/***/ (function(module, __webpack_exports__, __webpack_require__) {
24662
24663"use strict";
24664__webpack_require__.r(__webpack_exports__);
24665/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return TagResourceCommand; });
24666/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24667/* 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");
24668/* 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");
24669/* 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");
24670/* 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");
24671
24672
24673
24674
24675
24676/**
24677 * <p>Adds one or more tags (keys and values) to an application, campaign, message template, or segment.</p>
24678 */
24679var TagResourceCommand = /** @class */ (function (_super) {
24680 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagResourceCommand, _super);
24681 // Start section: command_properties
24682 // End section: command_properties
24683 function TagResourceCommand(input) {
24684 var _this =
24685 // Start section: command_constructor
24686 _super.call(this) || this;
24687 _this.input = input;
24688 return _this;
24689 // End section: command_constructor
24690 }
24691 /**
24692 * @internal
24693 */
24694 TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24695 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24696 var stack = clientStack.concat(this.middlewareStack);
24697 var logger = configuration.logger;
24698 var clientName = "PinpointClient";
24699 var commandName = "TagResourceCommand";
24700 var handlerExecutionContext = {
24701 logger: logger,
24702 clientName: clientName,
24703 commandName: commandName,
24704 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["TagResourceRequest"].filterSensitiveLog,
24705 outputFilterSensitiveLog: function (output) { return output; },
24706 };
24707 var requestHandler = configuration.requestHandler;
24708 return stack.resolve(function (request) {
24709 return requestHandler.handle(request.request, options || {});
24710 }, handlerExecutionContext);
24711 };
24712 TagResourceCommand.prototype.serialize = function (input, context) {
24713 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1TagResourceCommand"])(input, context);
24714 };
24715 TagResourceCommand.prototype.deserialize = function (output, context) {
24716 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1TagResourceCommand"])(output, context);
24717 };
24718 return TagResourceCommand;
24719}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24720
24721//# sourceMappingURL=TagResourceCommand.js.map
24722
24723/***/ }),
24724
24725/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js":
24726/*!*******************************************************************************************************!*\
24727 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js ***!
24728 \*******************************************************************************************************/
24729/*! exports provided: UntagResourceCommand */
24730/***/ (function(module, __webpack_exports__, __webpack_require__) {
24731
24732"use strict";
24733__webpack_require__.r(__webpack_exports__);
24734/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return UntagResourceCommand; });
24735/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24736/* 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");
24737/* 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");
24738/* 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");
24739/* 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");
24740
24741
24742
24743
24744
24745/**
24746 * <p>Removes one or more tags (keys and values) from an application, campaign, message template, or segment.</p>
24747 */
24748var UntagResourceCommand = /** @class */ (function (_super) {
24749 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UntagResourceCommand, _super);
24750 // Start section: command_properties
24751 // End section: command_properties
24752 function UntagResourceCommand(input) {
24753 var _this =
24754 // Start section: command_constructor
24755 _super.call(this) || this;
24756 _this.input = input;
24757 return _this;
24758 // End section: command_constructor
24759 }
24760 /**
24761 * @internal
24762 */
24763 UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24764 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24765 var stack = clientStack.concat(this.middlewareStack);
24766 var logger = configuration.logger;
24767 var clientName = "PinpointClient";
24768 var commandName = "UntagResourceCommand";
24769 var handlerExecutionContext = {
24770 logger: logger,
24771 clientName: clientName,
24772 commandName: commandName,
24773 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UntagResourceRequest"].filterSensitiveLog,
24774 outputFilterSensitiveLog: function (output) { return output; },
24775 };
24776 var requestHandler = configuration.requestHandler;
24777 return stack.resolve(function (request) {
24778 return requestHandler.handle(request.request, options || {});
24779 }, handlerExecutionContext);
24780 };
24781 UntagResourceCommand.prototype.serialize = function (input, context) {
24782 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UntagResourceCommand"])(input, context);
24783 };
24784 UntagResourceCommand.prototype.deserialize = function (output, context) {
24785 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UntagResourceCommand"])(output, context);
24786 };
24787 return UntagResourceCommand;
24788}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24789
24790//# sourceMappingURL=UntagResourceCommand.js.map
24791
24792/***/ }),
24793
24794/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js":
24795/*!**********************************************************************************************************!*\
24796 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js ***!
24797 \**********************************************************************************************************/
24798/*! exports provided: UpdateAdmChannelCommand */
24799/***/ (function(module, __webpack_exports__, __webpack_require__) {
24800
24801"use strict";
24802__webpack_require__.r(__webpack_exports__);
24803/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelCommand", function() { return UpdateAdmChannelCommand; });
24804/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24805/* 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");
24806/* 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");
24807/* 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");
24808/* 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");
24809
24810
24811
24812
24813
24814/**
24815 * <p>Enables the ADM channel for an application or updates the status and settings of the ADM channel for an application.</p>
24816 */
24817var UpdateAdmChannelCommand = /** @class */ (function (_super) {
24818 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateAdmChannelCommand, _super);
24819 // Start section: command_properties
24820 // End section: command_properties
24821 function UpdateAdmChannelCommand(input) {
24822 var _this =
24823 // Start section: command_constructor
24824 _super.call(this) || this;
24825 _this.input = input;
24826 return _this;
24827 // End section: command_constructor
24828 }
24829 /**
24830 * @internal
24831 */
24832 UpdateAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24833 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24834 var stack = clientStack.concat(this.middlewareStack);
24835 var logger = configuration.logger;
24836 var clientName = "PinpointClient";
24837 var commandName = "UpdateAdmChannelCommand";
24838 var handlerExecutionContext = {
24839 logger: logger,
24840 clientName: clientName,
24841 commandName: commandName,
24842 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelRequest"].filterSensitiveLog,
24843 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelResponse"].filterSensitiveLog,
24844 };
24845 var requestHandler = configuration.requestHandler;
24846 return stack.resolve(function (request) {
24847 return requestHandler.handle(request.request, options || {});
24848 }, handlerExecutionContext);
24849 };
24850 UpdateAdmChannelCommand.prototype.serialize = function (input, context) {
24851 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateAdmChannelCommand"])(input, context);
24852 };
24853 UpdateAdmChannelCommand.prototype.deserialize = function (output, context) {
24854 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateAdmChannelCommand"])(output, context);
24855 };
24856 return UpdateAdmChannelCommand;
24857}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24858
24859//# sourceMappingURL=UpdateAdmChannelCommand.js.map
24860
24861/***/ }),
24862
24863/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js":
24864/*!***********************************************************************************************************!*\
24865 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js ***!
24866 \***********************************************************************************************************/
24867/*! exports provided: UpdateApnsChannelCommand */
24868/***/ (function(module, __webpack_exports__, __webpack_require__) {
24869
24870"use strict";
24871__webpack_require__.r(__webpack_exports__);
24872/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelCommand", function() { return UpdateApnsChannelCommand; });
24873/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24874/* 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");
24875/* 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");
24876/* 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");
24877/* 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");
24878
24879
24880
24881
24882
24883/**
24884 * <p>Enables the APNs channel for an application or updates the status and settings of the APNs channel for an application.</p>
24885 */
24886var UpdateApnsChannelCommand = /** @class */ (function (_super) {
24887 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsChannelCommand, _super);
24888 // Start section: command_properties
24889 // End section: command_properties
24890 function UpdateApnsChannelCommand(input) {
24891 var _this =
24892 // Start section: command_constructor
24893 _super.call(this) || this;
24894 _this.input = input;
24895 return _this;
24896 // End section: command_constructor
24897 }
24898 /**
24899 * @internal
24900 */
24901 UpdateApnsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24902 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24903 var stack = clientStack.concat(this.middlewareStack);
24904 var logger = configuration.logger;
24905 var clientName = "PinpointClient";
24906 var commandName = "UpdateApnsChannelCommand";
24907 var handlerExecutionContext = {
24908 logger: logger,
24909 clientName: clientName,
24910 commandName: commandName,
24911 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelRequest"].filterSensitiveLog,
24912 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelResponse"].filterSensitiveLog,
24913 };
24914 var requestHandler = configuration.requestHandler;
24915 return stack.resolve(function (request) {
24916 return requestHandler.handle(request.request, options || {});
24917 }, handlerExecutionContext);
24918 };
24919 UpdateApnsChannelCommand.prototype.serialize = function (input, context) {
24920 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsChannelCommand"])(input, context);
24921 };
24922 UpdateApnsChannelCommand.prototype.deserialize = function (output, context) {
24923 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsChannelCommand"])(output, context);
24924 };
24925 return UpdateApnsChannelCommand;
24926}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24927
24928//# sourceMappingURL=UpdateApnsChannelCommand.js.map
24929
24930/***/ }),
24931
24932/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js":
24933/*!******************************************************************************************************************!*\
24934 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js ***!
24935 \******************************************************************************************************************/
24936/*! exports provided: UpdateApnsSandboxChannelCommand */
24937/***/ (function(module, __webpack_exports__, __webpack_require__) {
24938
24939"use strict";
24940__webpack_require__.r(__webpack_exports__);
24941/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelCommand", function() { return UpdateApnsSandboxChannelCommand; });
24942/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24943/* 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");
24944/* 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");
24945/* 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");
24946/* 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");
24947
24948
24949
24950
24951
24952/**
24953 * <p>Enables the APNs sandbox channel for an application or updates the status and settings of the APNs sandbox channel for an application.</p>
24954 */
24955var UpdateApnsSandboxChannelCommand = /** @class */ (function (_super) {
24956 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsSandboxChannelCommand, _super);
24957 // Start section: command_properties
24958 // End section: command_properties
24959 function UpdateApnsSandboxChannelCommand(input) {
24960 var _this =
24961 // Start section: command_constructor
24962 _super.call(this) || this;
24963 _this.input = input;
24964 return _this;
24965 // End section: command_constructor
24966 }
24967 /**
24968 * @internal
24969 */
24970 UpdateApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24971 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24972 var stack = clientStack.concat(this.middlewareStack);
24973 var logger = configuration.logger;
24974 var clientName = "PinpointClient";
24975 var commandName = "UpdateApnsSandboxChannelCommand";
24976 var handlerExecutionContext = {
24977 logger: logger,
24978 clientName: clientName,
24979 commandName: commandName,
24980 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelRequest"].filterSensitiveLog,
24981 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelResponse"].filterSensitiveLog,
24982 };
24983 var requestHandler = configuration.requestHandler;
24984 return stack.resolve(function (request) {
24985 return requestHandler.handle(request.request, options || {});
24986 }, handlerExecutionContext);
24987 };
24988 UpdateApnsSandboxChannelCommand.prototype.serialize = function (input, context) {
24989 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsSandboxChannelCommand"])(input, context);
24990 };
24991 UpdateApnsSandboxChannelCommand.prototype.deserialize = function (output, context) {
24992 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsSandboxChannelCommand"])(output, context);
24993 };
24994 return UpdateApnsSandboxChannelCommand;
24995}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24996
24997//# sourceMappingURL=UpdateApnsSandboxChannelCommand.js.map
24998
24999/***/ }),
25000
25001/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js":
25002/*!***************************************************************************************************************!*\
25003 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js ***!
25004 \***************************************************************************************************************/
25005/*! exports provided: UpdateApnsVoipChannelCommand */
25006/***/ (function(module, __webpack_exports__, __webpack_require__) {
25007
25008"use strict";
25009__webpack_require__.r(__webpack_exports__);
25010/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelCommand", function() { return UpdateApnsVoipChannelCommand; });
25011/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25012/* 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");
25013/* 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");
25014/* 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");
25015/* 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");
25016
25017
25018
25019
25020
25021/**
25022 * <p>Enables the APNs VoIP channel for an application or updates the status and settings of the APNs VoIP channel for an application.</p>
25023 */
25024var UpdateApnsVoipChannelCommand = /** @class */ (function (_super) {
25025 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsVoipChannelCommand, _super);
25026 // Start section: command_properties
25027 // End section: command_properties
25028 function UpdateApnsVoipChannelCommand(input) {
25029 var _this =
25030 // Start section: command_constructor
25031 _super.call(this) || this;
25032 _this.input = input;
25033 return _this;
25034 // End section: command_constructor
25035 }
25036 /**
25037 * @internal
25038 */
25039 UpdateApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25040 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25041 var stack = clientStack.concat(this.middlewareStack);
25042 var logger = configuration.logger;
25043 var clientName = "PinpointClient";
25044 var commandName = "UpdateApnsVoipChannelCommand";
25045 var handlerExecutionContext = {
25046 logger: logger,
25047 clientName: clientName,
25048 commandName: commandName,
25049 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelRequest"].filterSensitiveLog,
25050 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelResponse"].filterSensitiveLog,
25051 };
25052 var requestHandler = configuration.requestHandler;
25053 return stack.resolve(function (request) {
25054 return requestHandler.handle(request.request, options || {});
25055 }, handlerExecutionContext);
25056 };
25057 UpdateApnsVoipChannelCommand.prototype.serialize = function (input, context) {
25058 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsVoipChannelCommand"])(input, context);
25059 };
25060 UpdateApnsVoipChannelCommand.prototype.deserialize = function (output, context) {
25061 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsVoipChannelCommand"])(output, context);
25062 };
25063 return UpdateApnsVoipChannelCommand;
25064}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25065
25066//# sourceMappingURL=UpdateApnsVoipChannelCommand.js.map
25067
25068/***/ }),
25069
25070/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js":
25071/*!**********************************************************************************************************************!*\
25072 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js ***!
25073 \**********************************************************************************************************************/
25074/*! exports provided: UpdateApnsVoipSandboxChannelCommand */
25075/***/ (function(module, __webpack_exports__, __webpack_require__) {
25076
25077"use strict";
25078__webpack_require__.r(__webpack_exports__);
25079/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelCommand", function() { return UpdateApnsVoipSandboxChannelCommand; });
25080/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25081/* 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");
25082/* 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");
25083/* 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");
25084/* 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");
25085
25086
25087
25088
25089
25090/**
25091 * <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>
25092 */
25093var UpdateApnsVoipSandboxChannelCommand = /** @class */ (function (_super) {
25094 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsVoipSandboxChannelCommand, _super);
25095 // Start section: command_properties
25096 // End section: command_properties
25097 function UpdateApnsVoipSandboxChannelCommand(input) {
25098 var _this =
25099 // Start section: command_constructor
25100 _super.call(this) || this;
25101 _this.input = input;
25102 return _this;
25103 // End section: command_constructor
25104 }
25105 /**
25106 * @internal
25107 */
25108 UpdateApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25109 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25110 var stack = clientStack.concat(this.middlewareStack);
25111 var logger = configuration.logger;
25112 var clientName = "PinpointClient";
25113 var commandName = "UpdateApnsVoipSandboxChannelCommand";
25114 var handlerExecutionContext = {
25115 logger: logger,
25116 clientName: clientName,
25117 commandName: commandName,
25118 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelRequest"].filterSensitiveLog,
25119 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelResponse"].filterSensitiveLog,
25120 };
25121 var requestHandler = configuration.requestHandler;
25122 return stack.resolve(function (request) {
25123 return requestHandler.handle(request.request, options || {});
25124 }, handlerExecutionContext);
25125 };
25126 UpdateApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) {
25127 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand"])(input, context);
25128 };
25129 UpdateApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) {
25130 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand"])(output, context);
25131 };
25132 return UpdateApnsVoipSandboxChannelCommand;
25133}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25134
25135//# sourceMappingURL=UpdateApnsVoipSandboxChannelCommand.js.map
25136
25137/***/ }),
25138
25139/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js":
25140/*!*******************************************************************************************************************!*\
25141 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js ***!
25142 \*******************************************************************************************************************/
25143/*! exports provided: UpdateApplicationSettingsCommand */
25144/***/ (function(module, __webpack_exports__, __webpack_require__) {
25145
25146"use strict";
25147__webpack_require__.r(__webpack_exports__);
25148/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsCommand", function() { return UpdateApplicationSettingsCommand; });
25149/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25150/* 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");
25151/* 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");
25152/* 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");
25153/* 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");
25154
25155
25156
25157
25158
25159/**
25160 * <p>Updates the settings for an application.</p>
25161 */
25162var UpdateApplicationSettingsCommand = /** @class */ (function (_super) {
25163 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApplicationSettingsCommand, _super);
25164 // Start section: command_properties
25165 // End section: command_properties
25166 function UpdateApplicationSettingsCommand(input) {
25167 var _this =
25168 // Start section: command_constructor
25169 _super.call(this) || this;
25170 _this.input = input;
25171 return _this;
25172 // End section: command_constructor
25173 }
25174 /**
25175 * @internal
25176 */
25177 UpdateApplicationSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25178 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25179 var stack = clientStack.concat(this.middlewareStack);
25180 var logger = configuration.logger;
25181 var clientName = "PinpointClient";
25182 var commandName = "UpdateApplicationSettingsCommand";
25183 var handlerExecutionContext = {
25184 logger: logger,
25185 clientName: clientName,
25186 commandName: commandName,
25187 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsRequest"].filterSensitiveLog,
25188 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsResponse"].filterSensitiveLog,
25189 };
25190 var requestHandler = configuration.requestHandler;
25191 return stack.resolve(function (request) {
25192 return requestHandler.handle(request.request, options || {});
25193 }, handlerExecutionContext);
25194 };
25195 UpdateApplicationSettingsCommand.prototype.serialize = function (input, context) {
25196 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApplicationSettingsCommand"])(input, context);
25197 };
25198 UpdateApplicationSettingsCommand.prototype.deserialize = function (output, context) {
25199 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApplicationSettingsCommand"])(output, context);
25200 };
25201 return UpdateApplicationSettingsCommand;
25202}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25203
25204//# sourceMappingURL=UpdateApplicationSettingsCommand.js.map
25205
25206/***/ }),
25207
25208/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js":
25209/*!************************************************************************************************************!*\
25210 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js ***!
25211 \************************************************************************************************************/
25212/*! exports provided: UpdateBaiduChannelCommand */
25213/***/ (function(module, __webpack_exports__, __webpack_require__) {
25214
25215"use strict";
25216__webpack_require__.r(__webpack_exports__);
25217/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelCommand", function() { return UpdateBaiduChannelCommand; });
25218/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25219/* 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");
25220/* 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");
25221/* 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");
25222/* 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");
25223
25224
25225
25226
25227
25228/**
25229 * <p>Enables the Baidu channel for an application or updates the status and settings of the Baidu channel for an application.</p>
25230 */
25231var UpdateBaiduChannelCommand = /** @class */ (function (_super) {
25232 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateBaiduChannelCommand, _super);
25233 // Start section: command_properties
25234 // End section: command_properties
25235 function UpdateBaiduChannelCommand(input) {
25236 var _this =
25237 // Start section: command_constructor
25238 _super.call(this) || this;
25239 _this.input = input;
25240 return _this;
25241 // End section: command_constructor
25242 }
25243 /**
25244 * @internal
25245 */
25246 UpdateBaiduChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25247 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25248 var stack = clientStack.concat(this.middlewareStack);
25249 var logger = configuration.logger;
25250 var clientName = "PinpointClient";
25251 var commandName = "UpdateBaiduChannelCommand";
25252 var handlerExecutionContext = {
25253 logger: logger,
25254 clientName: clientName,
25255 commandName: commandName,
25256 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelRequest"].filterSensitiveLog,
25257 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelResponse"].filterSensitiveLog,
25258 };
25259 var requestHandler = configuration.requestHandler;
25260 return stack.resolve(function (request) {
25261 return requestHandler.handle(request.request, options || {});
25262 }, handlerExecutionContext);
25263 };
25264 UpdateBaiduChannelCommand.prototype.serialize = function (input, context) {
25265 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateBaiduChannelCommand"])(input, context);
25266 };
25267 UpdateBaiduChannelCommand.prototype.deserialize = function (output, context) {
25268 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateBaiduChannelCommand"])(output, context);
25269 };
25270 return UpdateBaiduChannelCommand;
25271}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25272
25273//# sourceMappingURL=UpdateBaiduChannelCommand.js.map
25274
25275/***/ }),
25276
25277/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js":
25278/*!********************************************************************************************************!*\
25279 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js ***!
25280 \********************************************************************************************************/
25281/*! exports provided: UpdateCampaignCommand */
25282/***/ (function(module, __webpack_exports__, __webpack_require__) {
25283
25284"use strict";
25285__webpack_require__.r(__webpack_exports__);
25286/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignCommand", function() { return UpdateCampaignCommand; });
25287/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25288/* 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");
25289/* 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");
25290/* 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");
25291/* 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");
25292
25293
25294
25295
25296
25297/**
25298 * <p>Updates the configuration and other settings for a campaign.</p>
25299 */
25300var UpdateCampaignCommand = /** @class */ (function (_super) {
25301 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateCampaignCommand, _super);
25302 // Start section: command_properties
25303 // End section: command_properties
25304 function UpdateCampaignCommand(input) {
25305 var _this =
25306 // Start section: command_constructor
25307 _super.call(this) || this;
25308 _this.input = input;
25309 return _this;
25310 // End section: command_constructor
25311 }
25312 /**
25313 * @internal
25314 */
25315 UpdateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25316 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25317 var stack = clientStack.concat(this.middlewareStack);
25318 var logger = configuration.logger;
25319 var clientName = "PinpointClient";
25320 var commandName = "UpdateCampaignCommand";
25321 var handlerExecutionContext = {
25322 logger: logger,
25323 clientName: clientName,
25324 commandName: commandName,
25325 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignRequest"].filterSensitiveLog,
25326 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignResponse"].filterSensitiveLog,
25327 };
25328 var requestHandler = configuration.requestHandler;
25329 return stack.resolve(function (request) {
25330 return requestHandler.handle(request.request, options || {});
25331 }, handlerExecutionContext);
25332 };
25333 UpdateCampaignCommand.prototype.serialize = function (input, context) {
25334 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateCampaignCommand"])(input, context);
25335 };
25336 UpdateCampaignCommand.prototype.deserialize = function (output, context) {
25337 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateCampaignCommand"])(output, context);
25338 };
25339 return UpdateCampaignCommand;
25340}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25341
25342//# sourceMappingURL=UpdateCampaignCommand.js.map
25343
25344/***/ }),
25345
25346/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js":
25347/*!************************************************************************************************************!*\
25348 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js ***!
25349 \************************************************************************************************************/
25350/*! exports provided: UpdateEmailChannelCommand */
25351/***/ (function(module, __webpack_exports__, __webpack_require__) {
25352
25353"use strict";
25354__webpack_require__.r(__webpack_exports__);
25355/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelCommand", function() { return UpdateEmailChannelCommand; });
25356/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25357/* 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");
25358/* 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");
25359/* 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");
25360/* 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");
25361
25362
25363
25364
25365
25366/**
25367 * <p>Enables the email channel for an application or updates the status and settings of the email channel for an application.</p>
25368 */
25369var UpdateEmailChannelCommand = /** @class */ (function (_super) {
25370 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEmailChannelCommand, _super);
25371 // Start section: command_properties
25372 // End section: command_properties
25373 function UpdateEmailChannelCommand(input) {
25374 var _this =
25375 // Start section: command_constructor
25376 _super.call(this) || this;
25377 _this.input = input;
25378 return _this;
25379 // End section: command_constructor
25380 }
25381 /**
25382 * @internal
25383 */
25384 UpdateEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25385 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25386 var stack = clientStack.concat(this.middlewareStack);
25387 var logger = configuration.logger;
25388 var clientName = "PinpointClient";
25389 var commandName = "UpdateEmailChannelCommand";
25390 var handlerExecutionContext = {
25391 logger: logger,
25392 clientName: clientName,
25393 commandName: commandName,
25394 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelRequest"].filterSensitiveLog,
25395 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelResponse"].filterSensitiveLog,
25396 };
25397 var requestHandler = configuration.requestHandler;
25398 return stack.resolve(function (request) {
25399 return requestHandler.handle(request.request, options || {});
25400 }, handlerExecutionContext);
25401 };
25402 UpdateEmailChannelCommand.prototype.serialize = function (input, context) {
25403 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEmailChannelCommand"])(input, context);
25404 };
25405 UpdateEmailChannelCommand.prototype.deserialize = function (output, context) {
25406 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEmailChannelCommand"])(output, context);
25407 };
25408 return UpdateEmailChannelCommand;
25409}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25410
25411//# sourceMappingURL=UpdateEmailChannelCommand.js.map
25412
25413/***/ }),
25414
25415/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js":
25416/*!*************************************************************************************************************!*\
25417 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js ***!
25418 \*************************************************************************************************************/
25419/*! exports provided: UpdateEmailTemplateCommand */
25420/***/ (function(module, __webpack_exports__, __webpack_require__) {
25421
25422"use strict";
25423__webpack_require__.r(__webpack_exports__);
25424/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateCommand", function() { return UpdateEmailTemplateCommand; });
25425/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25426/* 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");
25427/* 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");
25428/* 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");
25429/* 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");
25430
25431
25432
25433
25434
25435/**
25436 * <p>Updates an existing message template for messages that are sent through the email channel.</p>
25437 */
25438var UpdateEmailTemplateCommand = /** @class */ (function (_super) {
25439 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEmailTemplateCommand, _super);
25440 // Start section: command_properties
25441 // End section: command_properties
25442 function UpdateEmailTemplateCommand(input) {
25443 var _this =
25444 // Start section: command_constructor
25445 _super.call(this) || this;
25446 _this.input = input;
25447 return _this;
25448 // End section: command_constructor
25449 }
25450 /**
25451 * @internal
25452 */
25453 UpdateEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25454 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25455 var stack = clientStack.concat(this.middlewareStack);
25456 var logger = configuration.logger;
25457 var clientName = "PinpointClient";
25458 var commandName = "UpdateEmailTemplateCommand";
25459 var handlerExecutionContext = {
25460 logger: logger,
25461 clientName: clientName,
25462 commandName: commandName,
25463 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateRequest"].filterSensitiveLog,
25464 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateResponse"].filterSensitiveLog,
25465 };
25466 var requestHandler = configuration.requestHandler;
25467 return stack.resolve(function (request) {
25468 return requestHandler.handle(request.request, options || {});
25469 }, handlerExecutionContext);
25470 };
25471 UpdateEmailTemplateCommand.prototype.serialize = function (input, context) {
25472 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEmailTemplateCommand"])(input, context);
25473 };
25474 UpdateEmailTemplateCommand.prototype.deserialize = function (output, context) {
25475 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEmailTemplateCommand"])(output, context);
25476 };
25477 return UpdateEmailTemplateCommand;
25478}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25479
25480//# sourceMappingURL=UpdateEmailTemplateCommand.js.map
25481
25482/***/ }),
25483
25484/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js":
25485/*!********************************************************************************************************!*\
25486 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js ***!
25487 \********************************************************************************************************/
25488/*! exports provided: UpdateEndpointCommand */
25489/***/ (function(module, __webpack_exports__, __webpack_require__) {
25490
25491"use strict";
25492__webpack_require__.r(__webpack_exports__);
25493/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointCommand", function() { return UpdateEndpointCommand; });
25494/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25495/* 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");
25496/* 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");
25497/* 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");
25498/* 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");
25499
25500
25501
25502
25503
25504/**
25505 * <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>
25506 */
25507var UpdateEndpointCommand = /** @class */ (function (_super) {
25508 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEndpointCommand, _super);
25509 // Start section: command_properties
25510 // End section: command_properties
25511 function UpdateEndpointCommand(input) {
25512 var _this =
25513 // Start section: command_constructor
25514 _super.call(this) || this;
25515 _this.input = input;
25516 return _this;
25517 // End section: command_constructor
25518 }
25519 /**
25520 * @internal
25521 */
25522 UpdateEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25523 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25524 var stack = clientStack.concat(this.middlewareStack);
25525 var logger = configuration.logger;
25526 var clientName = "PinpointClient";
25527 var commandName = "UpdateEndpointCommand";
25528 var handlerExecutionContext = {
25529 logger: logger,
25530 clientName: clientName,
25531 commandName: commandName,
25532 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointRequest"].filterSensitiveLog,
25533 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointResponse"].filterSensitiveLog,
25534 };
25535 var requestHandler = configuration.requestHandler;
25536 return stack.resolve(function (request) {
25537 return requestHandler.handle(request.request, options || {});
25538 }, handlerExecutionContext);
25539 };
25540 UpdateEndpointCommand.prototype.serialize = function (input, context) {
25541 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEndpointCommand"])(input, context);
25542 };
25543 UpdateEndpointCommand.prototype.deserialize = function (output, context) {
25544 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEndpointCommand"])(output, context);
25545 };
25546 return UpdateEndpointCommand;
25547}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25548
25549//# sourceMappingURL=UpdateEndpointCommand.js.map
25550
25551/***/ }),
25552
25553/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js":
25554/*!**************************************************************************************************************!*\
25555 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js ***!
25556 \**************************************************************************************************************/
25557/*! exports provided: UpdateEndpointsBatchCommand */
25558/***/ (function(module, __webpack_exports__, __webpack_require__) {
25559
25560"use strict";
25561__webpack_require__.r(__webpack_exports__);
25562/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchCommand", function() { return UpdateEndpointsBatchCommand; });
25563/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25564/* 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");
25565/* 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");
25566/* 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");
25567/* 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");
25568
25569
25570
25571
25572
25573/**
25574 * <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>
25575 */
25576var UpdateEndpointsBatchCommand = /** @class */ (function (_super) {
25577 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEndpointsBatchCommand, _super);
25578 // Start section: command_properties
25579 // End section: command_properties
25580 function UpdateEndpointsBatchCommand(input) {
25581 var _this =
25582 // Start section: command_constructor
25583 _super.call(this) || this;
25584 _this.input = input;
25585 return _this;
25586 // End section: command_constructor
25587 }
25588 /**
25589 * @internal
25590 */
25591 UpdateEndpointsBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25592 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25593 var stack = clientStack.concat(this.middlewareStack);
25594 var logger = configuration.logger;
25595 var clientName = "PinpointClient";
25596 var commandName = "UpdateEndpointsBatchCommand";
25597 var handlerExecutionContext = {
25598 logger: logger,
25599 clientName: clientName,
25600 commandName: commandName,
25601 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchRequest"].filterSensitiveLog,
25602 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchResponse"].filterSensitiveLog,
25603 };
25604 var requestHandler = configuration.requestHandler;
25605 return stack.resolve(function (request) {
25606 return requestHandler.handle(request.request, options || {});
25607 }, handlerExecutionContext);
25608 };
25609 UpdateEndpointsBatchCommand.prototype.serialize = function (input, context) {
25610 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEndpointsBatchCommand"])(input, context);
25611 };
25612 UpdateEndpointsBatchCommand.prototype.deserialize = function (output, context) {
25613 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEndpointsBatchCommand"])(output, context);
25614 };
25615 return UpdateEndpointsBatchCommand;
25616}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25617
25618//# sourceMappingURL=UpdateEndpointsBatchCommand.js.map
25619
25620/***/ }),
25621
25622/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js":
25623/*!**********************************************************************************************************!*\
25624 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js ***!
25625 \**********************************************************************************************************/
25626/*! exports provided: UpdateGcmChannelCommand */
25627/***/ (function(module, __webpack_exports__, __webpack_require__) {
25628
25629"use strict";
25630__webpack_require__.r(__webpack_exports__);
25631/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelCommand", function() { return UpdateGcmChannelCommand; });
25632/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25633/* 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");
25634/* 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");
25635/* 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");
25636/* 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");
25637
25638
25639
25640
25641
25642/**
25643 * <p>Enables the GCM channel for an application or updates the status and settings of the GCM channel for an application.</p>
25644 */
25645var UpdateGcmChannelCommand = /** @class */ (function (_super) {
25646 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateGcmChannelCommand, _super);
25647 // Start section: command_properties
25648 // End section: command_properties
25649 function UpdateGcmChannelCommand(input) {
25650 var _this =
25651 // Start section: command_constructor
25652 _super.call(this) || this;
25653 _this.input = input;
25654 return _this;
25655 // End section: command_constructor
25656 }
25657 /**
25658 * @internal
25659 */
25660 UpdateGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25661 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25662 var stack = clientStack.concat(this.middlewareStack);
25663 var logger = configuration.logger;
25664 var clientName = "PinpointClient";
25665 var commandName = "UpdateGcmChannelCommand";
25666 var handlerExecutionContext = {
25667 logger: logger,
25668 clientName: clientName,
25669 commandName: commandName,
25670 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelRequest"].filterSensitiveLog,
25671 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelResponse"].filterSensitiveLog,
25672 };
25673 var requestHandler = configuration.requestHandler;
25674 return stack.resolve(function (request) {
25675 return requestHandler.handle(request.request, options || {});
25676 }, handlerExecutionContext);
25677 };
25678 UpdateGcmChannelCommand.prototype.serialize = function (input, context) {
25679 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateGcmChannelCommand"])(input, context);
25680 };
25681 UpdateGcmChannelCommand.prototype.deserialize = function (output, context) {
25682 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateGcmChannelCommand"])(output, context);
25683 };
25684 return UpdateGcmChannelCommand;
25685}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25686
25687//# sourceMappingURL=UpdateGcmChannelCommand.js.map
25688
25689/***/ }),
25690
25691/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js":
25692/*!*******************************************************************************************************!*\
25693 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js ***!
25694 \*******************************************************************************************************/
25695/*! exports provided: UpdateJourneyCommand */
25696/***/ (function(module, __webpack_exports__, __webpack_require__) {
25697
25698"use strict";
25699__webpack_require__.r(__webpack_exports__);
25700/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyCommand", function() { return UpdateJourneyCommand; });
25701/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25702/* 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");
25703/* 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");
25704/* 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");
25705/* 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");
25706
25707
25708
25709
25710
25711/**
25712 * <p>Updates the configuration and other settings for a journey.</p>
25713 */
25714var UpdateJourneyCommand = /** @class */ (function (_super) {
25715 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateJourneyCommand, _super);
25716 // Start section: command_properties
25717 // End section: command_properties
25718 function UpdateJourneyCommand(input) {
25719 var _this =
25720 // Start section: command_constructor
25721 _super.call(this) || this;
25722 _this.input = input;
25723 return _this;
25724 // End section: command_constructor
25725 }
25726 /**
25727 * @internal
25728 */
25729 UpdateJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25730 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25731 var stack = clientStack.concat(this.middlewareStack);
25732 var logger = configuration.logger;
25733 var clientName = "PinpointClient";
25734 var commandName = "UpdateJourneyCommand";
25735 var handlerExecutionContext = {
25736 logger: logger,
25737 clientName: clientName,
25738 commandName: commandName,
25739 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyRequest"].filterSensitiveLog,
25740 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyResponse"].filterSensitiveLog,
25741 };
25742 var requestHandler = configuration.requestHandler;
25743 return stack.resolve(function (request) {
25744 return requestHandler.handle(request.request, options || {});
25745 }, handlerExecutionContext);
25746 };
25747 UpdateJourneyCommand.prototype.serialize = function (input, context) {
25748 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateJourneyCommand"])(input, context);
25749 };
25750 UpdateJourneyCommand.prototype.deserialize = function (output, context) {
25751 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateJourneyCommand"])(output, context);
25752 };
25753 return UpdateJourneyCommand;
25754}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25755
25756//# sourceMappingURL=UpdateJourneyCommand.js.map
25757
25758/***/ }),
25759
25760/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js":
25761/*!************************************************************************************************************!*\
25762 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js ***!
25763 \************************************************************************************************************/
25764/*! exports provided: UpdateJourneyStateCommand */
25765/***/ (function(module, __webpack_exports__, __webpack_require__) {
25766
25767"use strict";
25768__webpack_require__.r(__webpack_exports__);
25769/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateCommand", function() { return UpdateJourneyStateCommand; });
25770/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25771/* 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");
25772/* 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");
25773/* 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");
25774/* 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");
25775
25776
25777
25778
25779
25780/**
25781 * <p>Cancels (stops) an active journey.</p>
25782 */
25783var UpdateJourneyStateCommand = /** @class */ (function (_super) {
25784 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateJourneyStateCommand, _super);
25785 // Start section: command_properties
25786 // End section: command_properties
25787 function UpdateJourneyStateCommand(input) {
25788 var _this =
25789 // Start section: command_constructor
25790 _super.call(this) || this;
25791 _this.input = input;
25792 return _this;
25793 // End section: command_constructor
25794 }
25795 /**
25796 * @internal
25797 */
25798 UpdateJourneyStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25799 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25800 var stack = clientStack.concat(this.middlewareStack);
25801 var logger = configuration.logger;
25802 var clientName = "PinpointClient";
25803 var commandName = "UpdateJourneyStateCommand";
25804 var handlerExecutionContext = {
25805 logger: logger,
25806 clientName: clientName,
25807 commandName: commandName,
25808 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateRequest"].filterSensitiveLog,
25809 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateResponse"].filterSensitiveLog,
25810 };
25811 var requestHandler = configuration.requestHandler;
25812 return stack.resolve(function (request) {
25813 return requestHandler.handle(request.request, options || {});
25814 }, handlerExecutionContext);
25815 };
25816 UpdateJourneyStateCommand.prototype.serialize = function (input, context) {
25817 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateJourneyStateCommand"])(input, context);
25818 };
25819 UpdateJourneyStateCommand.prototype.deserialize = function (output, context) {
25820 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateJourneyStateCommand"])(output, context);
25821 };
25822 return UpdateJourneyStateCommand;
25823}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25824
25825//# sourceMappingURL=UpdateJourneyStateCommand.js.map
25826
25827/***/ }),
25828
25829/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js":
25830/*!************************************************************************************************************!*\
25831 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js ***!
25832 \************************************************************************************************************/
25833/*! exports provided: UpdatePushTemplateCommand */
25834/***/ (function(module, __webpack_exports__, __webpack_require__) {
25835
25836"use strict";
25837__webpack_require__.r(__webpack_exports__);
25838/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateCommand", function() { return UpdatePushTemplateCommand; });
25839/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25840/* 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");
25841/* 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");
25842/* 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");
25843/* 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");
25844
25845
25846
25847
25848
25849/**
25850 * <p>Updates an existing message template for messages that are sent through a push notification channel.</p>
25851 */
25852var UpdatePushTemplateCommand = /** @class */ (function (_super) {
25853 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdatePushTemplateCommand, _super);
25854 // Start section: command_properties
25855 // End section: command_properties
25856 function UpdatePushTemplateCommand(input) {
25857 var _this =
25858 // Start section: command_constructor
25859 _super.call(this) || this;
25860 _this.input = input;
25861 return _this;
25862 // End section: command_constructor
25863 }
25864 /**
25865 * @internal
25866 */
25867 UpdatePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25868 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25869 var stack = clientStack.concat(this.middlewareStack);
25870 var logger = configuration.logger;
25871 var clientName = "PinpointClient";
25872 var commandName = "UpdatePushTemplateCommand";
25873 var handlerExecutionContext = {
25874 logger: logger,
25875 clientName: clientName,
25876 commandName: commandName,
25877 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateRequest"].filterSensitiveLog,
25878 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateResponse"].filterSensitiveLog,
25879 };
25880 var requestHandler = configuration.requestHandler;
25881 return stack.resolve(function (request) {
25882 return requestHandler.handle(request.request, options || {});
25883 }, handlerExecutionContext);
25884 };
25885 UpdatePushTemplateCommand.prototype.serialize = function (input, context) {
25886 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdatePushTemplateCommand"])(input, context);
25887 };
25888 UpdatePushTemplateCommand.prototype.deserialize = function (output, context) {
25889 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdatePushTemplateCommand"])(output, context);
25890 };
25891 return UpdatePushTemplateCommand;
25892}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25893
25894//# sourceMappingURL=UpdatePushTemplateCommand.js.map
25895
25896/***/ }),
25897
25898/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js":
25899/*!************************************************************************************************************************!*\
25900 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js ***!
25901 \************************************************************************************************************************/
25902/*! exports provided: UpdateRecommenderConfigurationCommand */
25903/***/ (function(module, __webpack_exports__, __webpack_require__) {
25904
25905"use strict";
25906__webpack_require__.r(__webpack_exports__);
25907/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationCommand", function() { return UpdateRecommenderConfigurationCommand; });
25908/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25909/* 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");
25910/* 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");
25911/* 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");
25912/* 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");
25913
25914
25915
25916
25917
25918/**
25919 * <p>Updates an Amazon Pinpoint configuration for a recommender model.</p>
25920 */
25921var UpdateRecommenderConfigurationCommand = /** @class */ (function (_super) {
25922 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateRecommenderConfigurationCommand, _super);
25923 // Start section: command_properties
25924 // End section: command_properties
25925 function UpdateRecommenderConfigurationCommand(input) {
25926 var _this =
25927 // Start section: command_constructor
25928 _super.call(this) || this;
25929 _this.input = input;
25930 return _this;
25931 // End section: command_constructor
25932 }
25933 /**
25934 * @internal
25935 */
25936 UpdateRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25937 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25938 var stack = clientStack.concat(this.middlewareStack);
25939 var logger = configuration.logger;
25940 var clientName = "PinpointClient";
25941 var commandName = "UpdateRecommenderConfigurationCommand";
25942 var handlerExecutionContext = {
25943 logger: logger,
25944 clientName: clientName,
25945 commandName: commandName,
25946 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationRequest"].filterSensitiveLog,
25947 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationResponse"].filterSensitiveLog,
25948 };
25949 var requestHandler = configuration.requestHandler;
25950 return stack.resolve(function (request) {
25951 return requestHandler.handle(request.request, options || {});
25952 }, handlerExecutionContext);
25953 };
25954 UpdateRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
25955 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateRecommenderConfigurationCommand"])(input, context);
25956 };
25957 UpdateRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
25958 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateRecommenderConfigurationCommand"])(output, context);
25959 };
25960 return UpdateRecommenderConfigurationCommand;
25961}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25962
25963//# sourceMappingURL=UpdateRecommenderConfigurationCommand.js.map
25964
25965/***/ }),
25966
25967/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js":
25968/*!*******************************************************************************************************!*\
25969 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js ***!
25970 \*******************************************************************************************************/
25971/*! exports provided: UpdateSegmentCommand */
25972/***/ (function(module, __webpack_exports__, __webpack_require__) {
25973
25974"use strict";
25975__webpack_require__.r(__webpack_exports__);
25976/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentCommand", function() { return UpdateSegmentCommand; });
25977/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25978/* 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");
25979/* 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");
25980/* 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");
25981/* 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");
25982
25983
25984
25985
25986
25987/**
25988 * <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>
25989 */
25990var UpdateSegmentCommand = /** @class */ (function (_super) {
25991 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSegmentCommand, _super);
25992 // Start section: command_properties
25993 // End section: command_properties
25994 function UpdateSegmentCommand(input) {
25995 var _this =
25996 // Start section: command_constructor
25997 _super.call(this) || this;
25998 _this.input = input;
25999 return _this;
26000 // End section: command_constructor
26001 }
26002 /**
26003 * @internal
26004 */
26005 UpdateSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26006 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26007 var stack = clientStack.concat(this.middlewareStack);
26008 var logger = configuration.logger;
26009 var clientName = "PinpointClient";
26010 var commandName = "UpdateSegmentCommand";
26011 var handlerExecutionContext = {
26012 logger: logger,
26013 clientName: clientName,
26014 commandName: commandName,
26015 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentRequest"].filterSensitiveLog,
26016 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentResponse"].filterSensitiveLog,
26017 };
26018 var requestHandler = configuration.requestHandler;
26019 return stack.resolve(function (request) {
26020 return requestHandler.handle(request.request, options || {});
26021 }, handlerExecutionContext);
26022 };
26023 UpdateSegmentCommand.prototype.serialize = function (input, context) {
26024 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSegmentCommand"])(input, context);
26025 };
26026 UpdateSegmentCommand.prototype.deserialize = function (output, context) {
26027 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSegmentCommand"])(output, context);
26028 };
26029 return UpdateSegmentCommand;
26030}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26031
26032//# sourceMappingURL=UpdateSegmentCommand.js.map
26033
26034/***/ }),
26035
26036/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js":
26037/*!**********************************************************************************************************!*\
26038 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js ***!
26039 \**********************************************************************************************************/
26040/*! exports provided: UpdateSmsChannelCommand */
26041/***/ (function(module, __webpack_exports__, __webpack_require__) {
26042
26043"use strict";
26044__webpack_require__.r(__webpack_exports__);
26045/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelCommand", function() { return UpdateSmsChannelCommand; });
26046/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26047/* 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");
26048/* 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");
26049/* 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");
26050/* 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");
26051
26052
26053
26054
26055
26056/**
26057 * <p>Enables the SMS channel for an application or updates the status and settings of the SMS channel for an application.</p>
26058 */
26059var UpdateSmsChannelCommand = /** @class */ (function (_super) {
26060 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSmsChannelCommand, _super);
26061 // Start section: command_properties
26062 // End section: command_properties
26063 function UpdateSmsChannelCommand(input) {
26064 var _this =
26065 // Start section: command_constructor
26066 _super.call(this) || this;
26067 _this.input = input;
26068 return _this;
26069 // End section: command_constructor
26070 }
26071 /**
26072 * @internal
26073 */
26074 UpdateSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26075 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26076 var stack = clientStack.concat(this.middlewareStack);
26077 var logger = configuration.logger;
26078 var clientName = "PinpointClient";
26079 var commandName = "UpdateSmsChannelCommand";
26080 var handlerExecutionContext = {
26081 logger: logger,
26082 clientName: clientName,
26083 commandName: commandName,
26084 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelRequest"].filterSensitiveLog,
26085 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelResponse"].filterSensitiveLog,
26086 };
26087 var requestHandler = configuration.requestHandler;
26088 return stack.resolve(function (request) {
26089 return requestHandler.handle(request.request, options || {});
26090 }, handlerExecutionContext);
26091 };
26092 UpdateSmsChannelCommand.prototype.serialize = function (input, context) {
26093 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSmsChannelCommand"])(input, context);
26094 };
26095 UpdateSmsChannelCommand.prototype.deserialize = function (output, context) {
26096 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSmsChannelCommand"])(output, context);
26097 };
26098 return UpdateSmsChannelCommand;
26099}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26100
26101//# sourceMappingURL=UpdateSmsChannelCommand.js.map
26102
26103/***/ }),
26104
26105/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js":
26106/*!***********************************************************************************************************!*\
26107 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js ***!
26108 \***********************************************************************************************************/
26109/*! exports provided: UpdateSmsTemplateCommand */
26110/***/ (function(module, __webpack_exports__, __webpack_require__) {
26111
26112"use strict";
26113__webpack_require__.r(__webpack_exports__);
26114/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateCommand", function() { return UpdateSmsTemplateCommand; });
26115/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26116/* 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");
26117/* 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");
26118/* 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");
26119/* 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");
26120
26121
26122
26123
26124
26125/**
26126 * <p>Updates an existing message template for messages that are sent through the SMS channel.</p>
26127 */
26128var UpdateSmsTemplateCommand = /** @class */ (function (_super) {
26129 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSmsTemplateCommand, _super);
26130 // Start section: command_properties
26131 // End section: command_properties
26132 function UpdateSmsTemplateCommand(input) {
26133 var _this =
26134 // Start section: command_constructor
26135 _super.call(this) || this;
26136 _this.input = input;
26137 return _this;
26138 // End section: command_constructor
26139 }
26140 /**
26141 * @internal
26142 */
26143 UpdateSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26144 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26145 var stack = clientStack.concat(this.middlewareStack);
26146 var logger = configuration.logger;
26147 var clientName = "PinpointClient";
26148 var commandName = "UpdateSmsTemplateCommand";
26149 var handlerExecutionContext = {
26150 logger: logger,
26151 clientName: clientName,
26152 commandName: commandName,
26153 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateRequest"].filterSensitiveLog,
26154 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateResponse"].filterSensitiveLog,
26155 };
26156 var requestHandler = configuration.requestHandler;
26157 return stack.resolve(function (request) {
26158 return requestHandler.handle(request.request, options || {});
26159 }, handlerExecutionContext);
26160 };
26161 UpdateSmsTemplateCommand.prototype.serialize = function (input, context) {
26162 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSmsTemplateCommand"])(input, context);
26163 };
26164 UpdateSmsTemplateCommand.prototype.deserialize = function (output, context) {
26165 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSmsTemplateCommand"])(output, context);
26166 };
26167 return UpdateSmsTemplateCommand;
26168}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26169
26170//# sourceMappingURL=UpdateSmsTemplateCommand.js.map
26171
26172/***/ }),
26173
26174/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js":
26175/*!*********************************************************************************************************************!*\
26176 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js ***!
26177 \*********************************************************************************************************************/
26178/*! exports provided: UpdateTemplateActiveVersionCommand */
26179/***/ (function(module, __webpack_exports__, __webpack_require__) {
26180
26181"use strict";
26182__webpack_require__.r(__webpack_exports__);
26183/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionCommand", function() { return UpdateTemplateActiveVersionCommand; });
26184/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26185/* 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");
26186/* 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");
26187/* 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");
26188/* 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");
26189
26190
26191
26192
26193
26194/**
26195 * <p>Changes the status of a specific version of a message template to <i>active</i>.</p>
26196 */
26197var UpdateTemplateActiveVersionCommand = /** @class */ (function (_super) {
26198 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateTemplateActiveVersionCommand, _super);
26199 // Start section: command_properties
26200 // End section: command_properties
26201 function UpdateTemplateActiveVersionCommand(input) {
26202 var _this =
26203 // Start section: command_constructor
26204 _super.call(this) || this;
26205 _this.input = input;
26206 return _this;
26207 // End section: command_constructor
26208 }
26209 /**
26210 * @internal
26211 */
26212 UpdateTemplateActiveVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26213 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26214 var stack = clientStack.concat(this.middlewareStack);
26215 var logger = configuration.logger;
26216 var clientName = "PinpointClient";
26217 var commandName = "UpdateTemplateActiveVersionCommand";
26218 var handlerExecutionContext = {
26219 logger: logger,
26220 clientName: clientName,
26221 commandName: commandName,
26222 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionRequest"].filterSensitiveLog,
26223 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionResponse"].filterSensitiveLog,
26224 };
26225 var requestHandler = configuration.requestHandler;
26226 return stack.resolve(function (request) {
26227 return requestHandler.handle(request.request, options || {});
26228 }, handlerExecutionContext);
26229 };
26230 UpdateTemplateActiveVersionCommand.prototype.serialize = function (input, context) {
26231 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateTemplateActiveVersionCommand"])(input, context);
26232 };
26233 UpdateTemplateActiveVersionCommand.prototype.deserialize = function (output, context) {
26234 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateTemplateActiveVersionCommand"])(output, context);
26235 };
26236 return UpdateTemplateActiveVersionCommand;
26237}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26238
26239//# sourceMappingURL=UpdateTemplateActiveVersionCommand.js.map
26240
26241/***/ }),
26242
26243/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js":
26244/*!************************************************************************************************************!*\
26245 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js ***!
26246 \************************************************************************************************************/
26247/*! exports provided: UpdateVoiceChannelCommand */
26248/***/ (function(module, __webpack_exports__, __webpack_require__) {
26249
26250"use strict";
26251__webpack_require__.r(__webpack_exports__);
26252/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelCommand", function() { return UpdateVoiceChannelCommand; });
26253/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26254/* 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");
26255/* 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");
26256/* 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");
26257/* 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");
26258
26259
26260
26261
26262
26263/**
26264 * <p>Enables the voice channel for an application or updates the status and settings of the voice channel for an application.</p>
26265 */
26266var UpdateVoiceChannelCommand = /** @class */ (function (_super) {
26267 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateVoiceChannelCommand, _super);
26268 // Start section: command_properties
26269 // End section: command_properties
26270 function UpdateVoiceChannelCommand(input) {
26271 var _this =
26272 // Start section: command_constructor
26273 _super.call(this) || this;
26274 _this.input = input;
26275 return _this;
26276 // End section: command_constructor
26277 }
26278 /**
26279 * @internal
26280 */
26281 UpdateVoiceChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26282 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26283 var stack = clientStack.concat(this.middlewareStack);
26284 var logger = configuration.logger;
26285 var clientName = "PinpointClient";
26286 var commandName = "UpdateVoiceChannelCommand";
26287 var handlerExecutionContext = {
26288 logger: logger,
26289 clientName: clientName,
26290 commandName: commandName,
26291 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelRequest"].filterSensitiveLog,
26292 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelResponse"].filterSensitiveLog,
26293 };
26294 var requestHandler = configuration.requestHandler;
26295 return stack.resolve(function (request) {
26296 return requestHandler.handle(request.request, options || {});
26297 }, handlerExecutionContext);
26298 };
26299 UpdateVoiceChannelCommand.prototype.serialize = function (input, context) {
26300 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateVoiceChannelCommand"])(input, context);
26301 };
26302 UpdateVoiceChannelCommand.prototype.deserialize = function (output, context) {
26303 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateVoiceChannelCommand"])(output, context);
26304 };
26305 return UpdateVoiceChannelCommand;
26306}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26307
26308//# sourceMappingURL=UpdateVoiceChannelCommand.js.map
26309
26310/***/ }),
26311
26312/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js":
26313/*!*************************************************************************************************************!*\
26314 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js ***!
26315 \*************************************************************************************************************/
26316/*! exports provided: UpdateVoiceTemplateCommand */
26317/***/ (function(module, __webpack_exports__, __webpack_require__) {
26318
26319"use strict";
26320__webpack_require__.r(__webpack_exports__);
26321/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateCommand", function() { return UpdateVoiceTemplateCommand; });
26322/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26323/* 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");
26324/* 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");
26325/* 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");
26326/* 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");
26327
26328
26329
26330
26331
26332/**
26333 * <p>Updates an existing message template for messages that are sent through the voice channel.</p>
26334 */
26335var UpdateVoiceTemplateCommand = /** @class */ (function (_super) {
26336 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateVoiceTemplateCommand, _super);
26337 // Start section: command_properties
26338 // End section: command_properties
26339 function UpdateVoiceTemplateCommand(input) {
26340 var _this =
26341 // Start section: command_constructor
26342 _super.call(this) || this;
26343 _this.input = input;
26344 return _this;
26345 // End section: command_constructor
26346 }
26347 /**
26348 * @internal
26349 */
26350 UpdateVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26351 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26352 var stack = clientStack.concat(this.middlewareStack);
26353 var logger = configuration.logger;
26354 var clientName = "PinpointClient";
26355 var commandName = "UpdateVoiceTemplateCommand";
26356 var handlerExecutionContext = {
26357 logger: logger,
26358 clientName: clientName,
26359 commandName: commandName,
26360 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateRequest"].filterSensitiveLog,
26361 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateResponse"].filterSensitiveLog,
26362 };
26363 var requestHandler = configuration.requestHandler;
26364 return stack.resolve(function (request) {
26365 return requestHandler.handle(request.request, options || {});
26366 }, handlerExecutionContext);
26367 };
26368 UpdateVoiceTemplateCommand.prototype.serialize = function (input, context) {
26369 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateVoiceTemplateCommand"])(input, context);
26370 };
26371 UpdateVoiceTemplateCommand.prototype.deserialize = function (output, context) {
26372 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateVoiceTemplateCommand"])(output, context);
26373 };
26374 return UpdateVoiceTemplateCommand;
26375}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26376
26377//# sourceMappingURL=UpdateVoiceTemplateCommand.js.map
26378
26379/***/ }),
26380
26381/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/endpoints.js":
26382/*!***********************************************************************************!*\
26383 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/endpoints.js ***!
26384 \***********************************************************************************/
26385/*! exports provided: defaultRegionInfoProvider */
26386/***/ (function(module, __webpack_exports__, __webpack_require__) {
26387
26388"use strict";
26389__webpack_require__.r(__webpack_exports__);
26390/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
26391/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26392
26393// Partition default templates
26394var AWS_TEMPLATE = "pinpoint.{region}.amazonaws.com";
26395var AWS_CN_TEMPLATE = "pinpoint.{region}.amazonaws.com.cn";
26396var AWS_ISO_TEMPLATE = "pinpoint.{region}.c2s.ic.gov";
26397var AWS_ISO_B_TEMPLATE = "pinpoint.{region}.sc2s.sgov.gov";
26398var AWS_US_GOV_TEMPLATE = "pinpoint.{region}.amazonaws.com";
26399// Partition regions
26400var AWS_REGIONS = new Set([
26401 "af-south-1",
26402 "ap-east-1",
26403 "ap-northeast-1",
26404 "ap-northeast-2",
26405 "ap-south-1",
26406 "ap-southeast-1",
26407 "ap-southeast-2",
26408 "ca-central-1",
26409 "eu-central-1",
26410 "eu-north-1",
26411 "eu-south-1",
26412 "eu-west-1",
26413 "eu-west-2",
26414 "eu-west-3",
26415 "me-south-1",
26416 "sa-east-1",
26417 "us-east-1",
26418 "us-east-2",
26419 "us-west-1",
26420 "us-west-2",
26421]);
26422var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
26423var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
26424var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
26425var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
26426var defaultRegionInfoProvider = function (region, options) {
26427 var regionInfo = undefined;
26428 switch (region) {
26429 // First, try to match exact region names.
26430 case "ap-northeast-1":
26431 regionInfo = {
26432 hostname: "pinpoint.ap-northeast-1.amazonaws.com",
26433 partition: "aws",
26434 signingService: "mobiletargeting",
26435 };
26436 break;
26437 case "ap-northeast-2":
26438 regionInfo = {
26439 hostname: "pinpoint.ap-northeast-2.amazonaws.com",
26440 partition: "aws",
26441 signingService: "mobiletargeting",
26442 };
26443 break;
26444 case "ap-south-1":
26445 regionInfo = {
26446 hostname: "pinpoint.ap-south-1.amazonaws.com",
26447 partition: "aws",
26448 signingService: "mobiletargeting",
26449 };
26450 break;
26451 case "ap-southeast-1":
26452 regionInfo = {
26453 hostname: "pinpoint.ap-southeast-1.amazonaws.com",
26454 partition: "aws",
26455 signingService: "mobiletargeting",
26456 };
26457 break;
26458 case "ap-southeast-2":
26459 regionInfo = {
26460 hostname: "pinpoint.ap-southeast-2.amazonaws.com",
26461 partition: "aws",
26462 signingService: "mobiletargeting",
26463 };
26464 break;
26465 case "ca-central-1":
26466 regionInfo = {
26467 hostname: "pinpoint.ca-central-1.amazonaws.com",
26468 partition: "aws",
26469 signingService: "mobiletargeting",
26470 };
26471 break;
26472 case "eu-central-1":
26473 regionInfo = {
26474 hostname: "pinpoint.eu-central-1.amazonaws.com",
26475 partition: "aws",
26476 signingService: "mobiletargeting",
26477 };
26478 break;
26479 case "eu-west-1":
26480 regionInfo = {
26481 hostname: "pinpoint.eu-west-1.amazonaws.com",
26482 partition: "aws",
26483 signingService: "mobiletargeting",
26484 };
26485 break;
26486 case "eu-west-2":
26487 regionInfo = {
26488 hostname: "pinpoint.eu-west-2.amazonaws.com",
26489 partition: "aws",
26490 signingService: "mobiletargeting",
26491 };
26492 break;
26493 case "fips-us-east-1":
26494 regionInfo = {
26495 hostname: "pinpoint-fips.us-east-1.amazonaws.com",
26496 partition: "aws",
26497 signingRegion: "us-east-1",
26498 };
26499 break;
26500 case "fips-us-gov-west-1":
26501 regionInfo = {
26502 hostname: "pinpoint-fips.us-gov-west-1.amazonaws.com",
26503 partition: "aws-us-gov",
26504 signingRegion: "us-gov-west-1",
26505 };
26506 break;
26507 case "fips-us-west-2":
26508 regionInfo = {
26509 hostname: "pinpoint-fips.us-west-2.amazonaws.com",
26510 partition: "aws",
26511 signingRegion: "us-west-2",
26512 };
26513 break;
26514 case "us-east-1":
26515 regionInfo = {
26516 hostname: "pinpoint.us-east-1.amazonaws.com",
26517 partition: "aws",
26518 signingRegion: "us-east-1",
26519 };
26520 break;
26521 case "us-gov-west-1":
26522 regionInfo = {
26523 hostname: "pinpoint.us-gov-west-1.amazonaws.com",
26524 partition: "aws-us-gov",
26525 signingRegion: "us-gov-west-1",
26526 };
26527 break;
26528 case "us-west-2":
26529 regionInfo = {
26530 hostname: "pinpoint.us-west-2.amazonaws.com",
26531 partition: "aws",
26532 signingRegion: "us-west-2",
26533 };
26534 break;
26535 // Next, try to match partition endpoints.
26536 default:
26537 if (AWS_REGIONS.has(region)) {
26538 regionInfo = {
26539 hostname: AWS_TEMPLATE.replace("{region}", region),
26540 partition: "aws",
26541 signingService: "mobiletargeting",
26542 };
26543 }
26544 if (AWS_CN_REGIONS.has(region)) {
26545 regionInfo = {
26546 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
26547 partition: "aws-cn",
26548 };
26549 }
26550 if (AWS_ISO_REGIONS.has(region)) {
26551 regionInfo = {
26552 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
26553 partition: "aws-iso",
26554 };
26555 }
26556 if (AWS_ISO_B_REGIONS.has(region)) {
26557 regionInfo = {
26558 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
26559 partition: "aws-iso-b",
26560 };
26561 }
26562 if (AWS_US_GOV_REGIONS.has(region)) {
26563 regionInfo = {
26564 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
26565 partition: "aws-us-gov",
26566 signingService: "mobiletargeting",
26567 };
26568 }
26569 // Finally, assume it's an AWS partition endpoint.
26570 if (regionInfo === undefined) {
26571 regionInfo = {
26572 hostname: AWS_TEMPLATE.replace("{region}", region),
26573 partition: "aws",
26574 signingService: "mobiletargeting",
26575 };
26576 }
26577 }
26578 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "mobiletargeting" }, regionInfo));
26579};
26580//# sourceMappingURL=endpoints.js.map
26581
26582/***/ }),
26583
26584/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/index.js":
26585/*!*******************************************************************************!*\
26586 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/index.js ***!
26587 \*******************************************************************************/
26588/*! 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 */
26589/***/ (function(module, __webpack_exports__, __webpack_require__) {
26590
26591"use strict";
26592__webpack_require__.r(__webpack_exports__);
26593/* harmony import */ var _PinpointClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PinpointClient */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js");
26594/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PinpointClient", function() { return _PinpointClient__WEBPACK_IMPORTED_MODULE_0__["PinpointClient"]; });
26595
26596/* harmony import */ var _Pinpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Pinpoint */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/Pinpoint.js");
26597/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pinpoint", function() { return _Pinpoint__WEBPACK_IMPORTED_MODULE_1__["Pinpoint"]; });
26598
26599/* harmony import */ var _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js");
26600/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppCommand", function() { return _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__["CreateAppCommand"]; });
26601
26602/* harmony import */ var _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js");
26603/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignCommand", function() { return _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCampaignCommand"]; });
26604
26605/* harmony import */ var _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js");
26606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateCommand", function() { return _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__["CreateEmailTemplateCommand"]; });
26607
26608/* harmony import */ var _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js");
26609/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobCommand", function() { return _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__["CreateExportJobCommand"]; });
26610
26611/* harmony import */ var _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js");
26612/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobCommand", function() { return _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__["CreateImportJobCommand"]; });
26613
26614/* harmony import */ var _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/CreateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js");
26615/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyCommand", function() { return _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__["CreateJourneyCommand"]; });
26616
26617/* harmony import */ var _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/CreatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js");
26618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateCommand", function() { return _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__["CreatePushTemplateCommand"]; });
26619
26620/* harmony import */ var _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/CreateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js");
26621/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationCommand", function() { return _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__["CreateRecommenderConfigurationCommand"]; });
26622
26623/* harmony import */ var _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/CreateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js");
26624/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentCommand", function() { return _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__["CreateSegmentCommand"]; });
26625
26626/* harmony import */ var _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/CreateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js");
26627/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateCommand", function() { return _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__["CreateSmsTemplateCommand"]; });
26628
26629/* harmony import */ var _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/CreateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js");
26630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateCommand", function() { return _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__["CreateVoiceTemplateCommand"]; });
26631
26632/* harmony import */ var _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js");
26633/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelCommand", function() { return _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteAdmChannelCommand"]; });
26634
26635/* harmony import */ var _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DeleteApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js");
26636/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelCommand", function() { return _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__["DeleteApnsChannelCommand"]; });
26637
26638/* harmony import */ var _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DeleteApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js");
26639/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelCommand", function() { return _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__["DeleteApnsSandboxChannelCommand"]; });
26640
26641/* harmony import */ var _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DeleteApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js");
26642/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelCommand", function() { return _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__["DeleteApnsVoipChannelCommand"]; });
26643
26644/* harmony import */ var _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DeleteApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js");
26645/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelCommand", function() { return _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__["DeleteApnsVoipSandboxChannelCommand"]; });
26646
26647/* harmony import */ var _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DeleteAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js");
26648/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppCommand", function() { return _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__["DeleteAppCommand"]; });
26649
26650/* harmony import */ var _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DeleteBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js");
26651/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelCommand", function() { return _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__["DeleteBaiduChannelCommand"]; });
26652
26653/* harmony import */ var _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DeleteCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js");
26654/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignCommand", function() { return _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__["DeleteCampaignCommand"]; });
26655
26656/* harmony import */ var _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DeleteEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js");
26657/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelCommand", function() { return _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__["DeleteEmailChannelCommand"]; });
26658
26659/* harmony import */ var _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DeleteEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js");
26660/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateCommand", function() { return _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__["DeleteEmailTemplateCommand"]; });
26661
26662/* harmony import */ var _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/DeleteEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js");
26663/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointCommand", function() { return _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__["DeleteEndpointCommand"]; });
26664
26665/* harmony import */ var _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/DeleteEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js");
26666/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamCommand", function() { return _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__["DeleteEventStreamCommand"]; });
26667
26668/* harmony import */ var _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/DeleteGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js");
26669/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelCommand", function() { return _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__["DeleteGcmChannelCommand"]; });
26670
26671/* harmony import */ var _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/DeleteJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js");
26672/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyCommand", function() { return _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__["DeleteJourneyCommand"]; });
26673
26674/* harmony import */ var _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/DeletePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js");
26675/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateCommand", function() { return _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__["DeletePushTemplateCommand"]; });
26676
26677/* harmony import */ var _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/DeleteRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js");
26678/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationCommand", function() { return _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__["DeleteRecommenderConfigurationCommand"]; });
26679
26680/* harmony import */ var _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/DeleteSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js");
26681/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentCommand", function() { return _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__["DeleteSegmentCommand"]; });
26682
26683/* harmony import */ var _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/DeleteSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js");
26684/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelCommand", function() { return _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__["DeleteSmsChannelCommand"]; });
26685
26686/* harmony import */ var _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/DeleteSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js");
26687/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateCommand", function() { return _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__["DeleteSmsTemplateCommand"]; });
26688
26689/* harmony import */ var _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/DeleteUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js");
26690/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsCommand", function() { return _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__["DeleteUserEndpointsCommand"]; });
26691
26692/* harmony import */ var _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/DeleteVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js");
26693/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelCommand", function() { return _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__["DeleteVoiceChannelCommand"]; });
26694
26695/* harmony import */ var _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/DeleteVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js");
26696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateCommand", function() { return _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__["DeleteVoiceTemplateCommand"]; });
26697
26698/* harmony import */ var _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/GetAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js");
26699/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelCommand", function() { return _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__["GetAdmChannelCommand"]; });
26700
26701/* harmony import */ var _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js");
26702/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelCommand", function() { return _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__["GetApnsChannelCommand"]; });
26703
26704/* harmony import */ var _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/GetApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js");
26705/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelCommand", function() { return _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__["GetApnsSandboxChannelCommand"]; });
26706
26707/* harmony import */ var _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js");
26708/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelCommand", function() { return _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__["GetApnsVoipChannelCommand"]; });
26709
26710/* harmony import */ var _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/GetApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js");
26711/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelCommand", function() { return _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__["GetApnsVoipSandboxChannelCommand"]; });
26712
26713/* harmony import */ var _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/GetAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js");
26714/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppCommand", function() { return _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__["GetAppCommand"]; });
26715
26716/* harmony import */ var _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/GetApplicationDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js");
26717/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiCommand", function() { return _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__["GetApplicationDateRangeKpiCommand"]; });
26718
26719/* harmony import */ var _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/GetApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js");
26720/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsCommand", function() { return _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__["GetApplicationSettingsCommand"]; });
26721
26722/* harmony import */ var _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/GetAppsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js");
26723/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsCommand", function() { return _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__["GetAppsCommand"]; });
26724
26725/* harmony import */ var _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/GetBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js");
26726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelCommand", function() { return _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__["GetBaiduChannelCommand"]; });
26727
26728/* harmony import */ var _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/GetCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js");
26729/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignCommand", function() { return _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_45__["GetCampaignCommand"]; });
26730
26731/* harmony import */ var _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/GetCampaignActivitiesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js");
26732/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesCommand", function() { return _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_46__["GetCampaignActivitiesCommand"]; });
26733
26734/* harmony import */ var _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/GetCampaignDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js");
26735/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiCommand", function() { return _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__["GetCampaignDateRangeKpiCommand"]; });
26736
26737/* harmony import */ var _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/GetCampaignsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js");
26738/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsCommand", function() { return _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_48__["GetCampaignsCommand"]; });
26739
26740/* harmony import */ var _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/GetCampaignVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js");
26741/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionCommand", function() { return _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_49__["GetCampaignVersionCommand"]; });
26742
26743/* harmony import */ var _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/GetCampaignVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js");
26744/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsCommand", function() { return _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_50__["GetCampaignVersionsCommand"]; });
26745
26746/* harmony import */ var _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/GetChannelsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js");
26747/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsCommand", function() { return _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__["GetChannelsCommand"]; });
26748
26749/* harmony import */ var _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/GetEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js");
26750/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelCommand", function() { return _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__["GetEmailChannelCommand"]; });
26751
26752/* harmony import */ var _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/GetEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js");
26753/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateCommand", function() { return _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__["GetEmailTemplateCommand"]; });
26754
26755/* harmony import */ var _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/GetEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js");
26756/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointCommand", function() { return _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__["GetEndpointCommand"]; });
26757
26758/* harmony import */ var _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/GetEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js");
26759/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamCommand", function() { return _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__["GetEventStreamCommand"]; });
26760
26761/* harmony import */ var _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/GetExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js");
26762/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobCommand", function() { return _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__["GetExportJobCommand"]; });
26763
26764/* harmony import */ var _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./commands/GetExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js");
26765/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsCommand", function() { return _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__["GetExportJobsCommand"]; });
26766
26767/* harmony import */ var _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/GetGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js");
26768/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelCommand", function() { return _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__["GetGcmChannelCommand"]; });
26769
26770/* harmony import */ var _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/GetImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js");
26771/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobCommand", function() { return _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__["GetImportJobCommand"]; });
26772
26773/* harmony import */ var _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/GetImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js");
26774/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsCommand", function() { return _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__["GetImportJobsCommand"]; });
26775
26776/* harmony import */ var _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/GetJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js");
26777/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyCommand", function() { return _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__["GetJourneyCommand"]; });
26778
26779/* harmony import */ var _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./commands/GetJourneyDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js");
26780/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiCommand", function() { return _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__["GetJourneyDateRangeKpiCommand"]; });
26781
26782/* harmony import */ var _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./commands/GetJourneyExecutionActivityMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js");
26783/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsCommand", function() { return _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__["GetJourneyExecutionActivityMetricsCommand"]; });
26784
26785/* harmony import */ var _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./commands/GetJourneyExecutionMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js");
26786/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsCommand", function() { return _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__["GetJourneyExecutionMetricsCommand"]; });
26787
26788/* harmony import */ var _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./commands/GetPushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js");
26789/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateCommand", function() { return _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__["GetPushTemplateCommand"]; });
26790
26791/* harmony import */ var _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js");
26792/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationCommand", function() { return _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__["GetRecommenderConfigurationCommand"]; });
26793
26794/* harmony import */ var _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js");
26795/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsCommand", function() { return _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__["GetRecommenderConfigurationsCommand"]; });
26796
26797/* harmony import */ var _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./commands/GetSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js");
26798/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentCommand", function() { return _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__["GetSegmentCommand"]; });
26799
26800/* harmony import */ var _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./commands/GetSegmentExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js");
26801/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsCommand", function() { return _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__["GetSegmentExportJobsCommand"]; });
26802
26803/* harmony import */ var _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./commands/GetSegmentImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js");
26804/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsCommand", function() { return _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__["GetSegmentImportJobsCommand"]; });
26805
26806/* harmony import */ var _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./commands/GetSegmentsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js");
26807/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsCommand", function() { return _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_71__["GetSegmentsCommand"]; });
26808
26809/* harmony import */ var _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./commands/GetSegmentVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js");
26810/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionCommand", function() { return _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_72__["GetSegmentVersionCommand"]; });
26811
26812/* harmony import */ var _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./commands/GetSegmentVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js");
26813/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsCommand", function() { return _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_73__["GetSegmentVersionsCommand"]; });
26814
26815/* harmony import */ var _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./commands/GetSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js");
26816/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelCommand", function() { return _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__["GetSmsChannelCommand"]; });
26817
26818/* harmony import */ var _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./commands/GetSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js");
26819/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateCommand", function() { return _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__["GetSmsTemplateCommand"]; });
26820
26821/* harmony import */ var _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./commands/GetUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js");
26822/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsCommand", function() { return _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__["GetUserEndpointsCommand"]; });
26823
26824/* harmony import */ var _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./commands/GetVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js");
26825/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelCommand", function() { return _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__["GetVoiceChannelCommand"]; });
26826
26827/* harmony import */ var _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./commands/GetVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js");
26828/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateCommand", function() { return _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__["GetVoiceTemplateCommand"]; });
26829
26830/* harmony import */ var _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./commands/ListJourneysCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js");
26831/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysCommand", function() { return _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__["ListJourneysCommand"]; });
26832
26833/* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js");
26834/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__["ListTagsForResourceCommand"]; });
26835
26836/* harmony import */ var _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./commands/ListTemplatesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js");
26837/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesCommand", function() { return _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_81__["ListTemplatesCommand"]; });
26838
26839/* harmony import */ var _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./commands/ListTemplateVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js");
26840/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsCommand", function() { return _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_82__["ListTemplateVersionsCommand"]; });
26841
26842/* harmony import */ var _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./commands/PhoneNumberValidateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js");
26843/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateCommand", function() { return _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__["PhoneNumberValidateCommand"]; });
26844
26845/* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js");
26846/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_84__["PutEventsCommand"]; });
26847
26848/* harmony import */ var _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./commands/PutEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js");
26849/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamCommand", function() { return _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_85__["PutEventStreamCommand"]; });
26850
26851/* harmony import */ var _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./commands/RemoveAttributesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js");
26852/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesCommand", function() { return _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__["RemoveAttributesCommand"]; });
26853
26854/* harmony import */ var _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./commands/SendMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js");
26855/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesCommand", function() { return _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__["SendMessagesCommand"]; });
26856
26857/* harmony import */ var _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./commands/SendUsersMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js");
26858/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesCommand", function() { return _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__["SendUsersMessagesCommand"]; });
26859
26860/* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js");
26861/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__["TagResourceCommand"]; });
26862
26863/* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js");
26864/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__["UntagResourceCommand"]; });
26865
26866/* harmony import */ var _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./commands/UpdateAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js");
26867/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelCommand", function() { return _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__["UpdateAdmChannelCommand"]; });
26868
26869/* harmony import */ var _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./commands/UpdateApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js");
26870/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelCommand", function() { return _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__["UpdateApnsChannelCommand"]; });
26871
26872/* harmony import */ var _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./commands/UpdateApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js");
26873/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelCommand", function() { return _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__["UpdateApnsSandboxChannelCommand"]; });
26874
26875/* harmony import */ var _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./commands/UpdateApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js");
26876/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelCommand", function() { return _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__["UpdateApnsVoipChannelCommand"]; });
26877
26878/* harmony import */ var _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./commands/UpdateApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js");
26879/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelCommand", function() { return _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__["UpdateApnsVoipSandboxChannelCommand"]; });
26880
26881/* harmony import */ var _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./commands/UpdateApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js");
26882/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsCommand", function() { return _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__["UpdateApplicationSettingsCommand"]; });
26883
26884/* harmony import */ var _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./commands/UpdateBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js");
26885/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelCommand", function() { return _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__["UpdateBaiduChannelCommand"]; });
26886
26887/* harmony import */ var _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./commands/UpdateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js");
26888/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignCommand", function() { return _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__["UpdateCampaignCommand"]; });
26889
26890/* harmony import */ var _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./commands/UpdateEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js");
26891/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelCommand", function() { return _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__["UpdateEmailChannelCommand"]; });
26892
26893/* harmony import */ var _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./commands/UpdateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js");
26894/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateCommand", function() { return _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__["UpdateEmailTemplateCommand"]; });
26895
26896/* harmony import */ var _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./commands/UpdateEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js");
26897/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointCommand", function() { return _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__["UpdateEndpointCommand"]; });
26898
26899/* harmony import */ var _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./commands/UpdateEndpointsBatchCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js");
26900/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchCommand", function() { return _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__["UpdateEndpointsBatchCommand"]; });
26901
26902/* harmony import */ var _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./commands/UpdateGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js");
26903/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelCommand", function() { return _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__["UpdateGcmChannelCommand"]; });
26904
26905/* harmony import */ var _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./commands/UpdateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js");
26906/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyCommand", function() { return _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__["UpdateJourneyCommand"]; });
26907
26908/* harmony import */ var _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./commands/UpdateJourneyStateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js");
26909/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateCommand", function() { return _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__["UpdateJourneyStateCommand"]; });
26910
26911/* harmony import */ var _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./commands/UpdatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js");
26912/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateCommand", function() { return _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__["UpdatePushTemplateCommand"]; });
26913
26914/* harmony import */ var _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./commands/UpdateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js");
26915/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationCommand", function() { return _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__["UpdateRecommenderConfigurationCommand"]; });
26916
26917/* harmony import */ var _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./commands/UpdateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js");
26918/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentCommand", function() { return _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__["UpdateSegmentCommand"]; });
26919
26920/* harmony import */ var _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./commands/UpdateSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js");
26921/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelCommand", function() { return _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__["UpdateSmsChannelCommand"]; });
26922
26923/* harmony import */ var _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./commands/UpdateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js");
26924/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateCommand", function() { return _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__["UpdateSmsTemplateCommand"]; });
26925
26926/* harmony import */ var _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./commands/UpdateTemplateActiveVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js");
26927/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionCommand", function() { return _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__["UpdateTemplateActiveVersionCommand"]; });
26928
26929/* harmony import */ var _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./commands/UpdateVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js");
26930/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelCommand", function() { return _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__["UpdateVoiceChannelCommand"]; });
26931
26932/* harmony import */ var _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./commands/UpdateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js");
26933/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateCommand", function() { return _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__["UpdateVoiceTemplateCommand"]; });
26934
26935/* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./models/index */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/index.js");
26936/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__EndpointTypesElement", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["__EndpointTypesElement"]; });
26937
26938/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Action"]; });
26939
26940/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivityResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ActivityResponse"]; });
26941
26942/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ActivitiesResponse"]; });
26943
26944/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributeType"]; });
26945
26946/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributeDimension"]; });
26947
26948/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DimensionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DimensionType"]; });
26949
26950/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SetDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SetDimension"]; });
26951
26952/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MetricDimension"]; });
26953
26954/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventDimensions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventDimensions"]; });
26955
26956/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventCondition"]; });
26957
26958/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentCondition"]; });
26959
26960/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Duration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Duration"]; });
26961
26962/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecencyType"]; });
26963
26964/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecencyDimension"]; });
26965
26966/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentBehaviors", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentBehaviors"]; });
26967
26968/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDemographics", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentDemographics"]; });
26969
26970/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSCoordinates", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GPSCoordinates"]; });
26971
26972/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSPointDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GPSPointDimension"]; });
26973
26974/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentLocation"]; });
26975
26976/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDimensions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentDimensions"]; });
26977
26978/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleCondition"]; });
26979
26980/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Operator"]; });
26981
26982/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Condition"]; });
26983
26984/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitTime", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WaitTime"]; });
26985
26986/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConditionalSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ConditionalSplitActivity"]; });
26987
26988/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyCustomMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyCustomMessage"]; });
26989
26990/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CustomMessageActivity"]; });
26991
26992/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyEmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyEmailMessage"]; });
26993
26994/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailMessageActivity"]; });
26995
26996/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoldoutActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["HoldoutActivity"]; });
26997
26998/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalBranch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MultiConditionalBranch"]; });
26999
27000/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MultiConditionalSplitActivity"]; });
27001
27002/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyPushMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyPushMessage"]; });
27003
27004/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushMessageActivity"]; });
27005
27006/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RandomSplitEntry"]; });
27007
27008/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RandomSplitActivity"]; });
27009
27010/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageType"]; });
27011
27012/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySMSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneySMSMessage"]; });
27013
27014/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSMessageActivity"]; });
27015
27016/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WaitActivity"]; });
27017
27018/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Activity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Activity"]; });
27019
27020/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelType"]; });
27021
27022/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddressConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AddressConfiguration"]; });
27023
27024/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMChannelRequest"]; });
27025
27026/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMChannelResponse"]; });
27027
27028/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMMessage"]; });
27029
27030/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AndroidPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AndroidPushNotificationTemplate"]; });
27031
27032/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSChannelRequest"]; });
27033
27034/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSChannelResponse"]; });
27035
27036/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSMessage"]; });
27037
27038/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSPushNotificationTemplate"]; });
27039
27040/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSSandboxChannelRequest"]; });
27041
27042/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSSandboxChannelResponse"]; });
27043
27044/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipChannelRequest"]; });
27045
27046/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipChannelResponse"]; });
27047
27048/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipSandboxChannelRequest"]; });
27049
27050/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipSandboxChannelResponse"]; });
27051
27052/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRowValue", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ResultRowValue"]; });
27053
27054/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRow", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ResultRow"]; });
27055
27056/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseKpiResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaseKpiResult"]; });
27057
27058/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationDateRangeKpiResponse"]; });
27059
27060/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationResponse"]; });
27061
27062/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mode", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Mode"]; });
27063
27064/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignHook", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignHook"]; });
27065
27066/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignLimits", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignLimits"]; });
27067
27068/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuietTime", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["QuietTime"]; });
27069
27070/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationSettingsResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationSettingsResource"]; });
27071
27072/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationsResponse"]; });
27073
27074/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributesResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributesResource"]; });
27075
27076/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BadRequestException"]; });
27077
27078/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduChannelRequest"]; });
27079
27080/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduChannelResponse"]; });
27081
27082/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduMessage"]; });
27083
27084/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignCustomMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignCustomMessage"]; });
27085
27086/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignDateRangeKpiResponse"]; });
27087
27088/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignEmailMessage"]; });
27089
27090/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["FilterType"]; });
27091
27092/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEventFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignEventFilter"]; });
27093
27094/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomDeliveryConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CustomDeliveryConfiguration"]; });
27095
27096/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Message"]; });
27097
27098/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignSmsMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignSmsMessage"]; });
27099
27100/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageConfiguration"]; });
27101
27102/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Frequency", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Frequency"]; });
27103
27104/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Schedule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Schedule"]; });
27105
27106/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignStatus"]; });
27107
27108/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignState", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignState"]; });
27109
27110/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Template", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Template"]; });
27111
27112/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateConfiguration"]; });
27113
27114/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreatmentResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TreatmentResource"]; });
27115
27116/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignResponse"]; });
27117
27118/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignsResponse"]; });
27119
27120/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelResponse"]; });
27121
27122/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelsResponse"]; });
27123
27124/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ConflictException"]; });
27125
27126/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateApplicationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateApplicationRequest"]; });
27127
27128/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateAppRequest"]; });
27129
27130/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateAppResponse"]; });
27131
27132/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ForbiddenException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ForbiddenException"]; });
27133
27134/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerErrorException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["InternalServerErrorException"]; });
27135
27136/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MethodNotAllowedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MethodNotAllowedException"]; });
27137
27138/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NotFoundException"]; });
27139
27140/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PayloadTooLargeException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PayloadTooLargeException"]; });
27141
27142/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TooManyRequestsException"]; });
27143
27144/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteTreatmentResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteTreatmentResource"]; });
27145
27146/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteCampaignRequest"]; });
27147
27148/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateCampaignRequest"]; });
27149
27150/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateCampaignResponse"]; });
27151
27152/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailTemplateRequest"]; });
27153
27154/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateEmailTemplateRequest"]; });
27155
27156/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateTemplateMessageBody", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateTemplateMessageBody"]; });
27157
27158/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateEmailTemplateResponse"]; });
27159
27160/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobRequest"]; });
27161
27162/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateExportJobRequest"]; });
27163
27164/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobResource"]; });
27165
27166/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JobStatus"]; });
27167
27168/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobResponse"]; });
27169
27170/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateExportJobResponse"]; });
27171
27172/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Format", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Format"]; });
27173
27174/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobRequest"]; });
27175
27176/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateImportJobRequest"]; });
27177
27178/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobResource"]; });
27179
27180/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobResponse"]; });
27181
27182/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateImportJobResponse"]; });
27183
27184/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyLimits", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyLimits"]; });
27185
27186/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySchedule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneySchedule"]; });
27187
27188/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventFilter"]; });
27189
27190/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStartCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventStartCondition"]; });
27191
27192/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["StartCondition"]; });
27193
27194/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "State", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["State"]; });
27195
27196/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteJourneyRequest"]; });
27197
27198/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateJourneyRequest"]; });
27199
27200/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyResponse"]; });
27201
27202/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateJourneyResponse"]; });
27203
27204/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultPushNotificationTemplate"]; });
27205
27206/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushNotificationTemplateRequest"]; });
27207
27208/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreatePushTemplateRequest"]; });
27209
27210/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreatePushTemplateResponse"]; });
27211
27212/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationShape", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationShape"]; });
27213
27214/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationRequest"]; });
27215
27216/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecommenderConfigurationResponse"]; });
27217
27218/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationResponse"]; });
27219
27220/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentReference", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentReference"]; });
27221
27222/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SourceType"]; });
27223
27224/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Type"]; });
27225
27226/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentGroup"]; });
27227
27228/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Include", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Include"]; });
27229
27230/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroupList", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentGroupList"]; });
27231
27232/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteSegmentRequest"]; });
27233
27234/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSegmentRequest"]; });
27235
27236/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentImportResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentImportResource"]; });
27237
27238/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentType"]; });
27239
27240/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentResponse"]; });
27241
27242/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSegmentResponse"]; });
27243
27244/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSTemplateRequest"]; });
27245
27246/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSmsTemplateRequest"]; });
27247
27248/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSmsTemplateResponse"]; });
27249
27250/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceTemplateRequest"]; });
27251
27252/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateVoiceTemplateRequest"]; });
27253
27254/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateVoiceTemplateResponse"]; });
27255
27256/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultMessage"]; });
27257
27258/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultPushNotificationMessage"]; });
27259
27260/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAdmChannelRequest"]; });
27261
27262/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAdmChannelResponse"]; });
27263
27264/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsChannelRequest"]; });
27265
27266/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsChannelResponse"]; });
27267
27268/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsSandboxChannelRequest"]; });
27269
27270/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsSandboxChannelResponse"]; });
27271
27272/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipChannelRequest"]; });
27273
27274/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipChannelResponse"]; });
27275
27276/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipSandboxChannelRequest"]; });
27277
27278/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipSandboxChannelResponse"]; });
27279
27280/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAppRequest"]; });
27281
27282/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAppResponse"]; });
27283
27284/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteBaiduChannelRequest"]; });
27285
27286/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteBaiduChannelResponse"]; });
27287
27288/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteCampaignRequest"]; });
27289
27290/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteCampaignResponse"]; });
27291
27292/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailChannelRequest"]; });
27293
27294/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailChannelResponse"]; });
27295
27296/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailChannelResponse"]; });
27297
27298/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailTemplateRequest"]; });
27299
27300/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBody", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageBody"]; });
27301
27302/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailTemplateResponse"]; });
27303
27304/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEndpointRequest"]; });
27305
27306/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointDemographic", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointDemographic"]; });
27307
27308/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointLocation"]; });
27309
27310/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointUser", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointUser"]; });
27311
27312/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointResponse"]; });
27313
27314/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEndpointResponse"]; });
27315
27316/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEventStreamRequest"]; });
27317
27318/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventStream"]; });
27319
27320/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEventStreamResponse"]; });
27321
27322/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteGcmChannelRequest"]; });
27323
27324/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMChannelResponse"]; });
27325
27326/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteGcmChannelResponse"]; });
27327
27328/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteJourneyRequest"]; });
27329
27330/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteJourneyResponse"]; });
27331
27332/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeletePushTemplateRequest"]; });
27333
27334/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeletePushTemplateResponse"]; });
27335
27336/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteRecommenderConfigurationRequest"]; });
27337
27338/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteRecommenderConfigurationResponse"]; });
27339
27340/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSegmentRequest"]; });
27341
27342/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSegmentResponse"]; });
27343
27344/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsChannelRequest"]; });
27345
27346/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSChannelResponse"]; });
27347
27348/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsChannelResponse"]; });
27349
27350/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsTemplateRequest"]; });
27351
27352/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsTemplateResponse"]; });
27353
27354/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteUserEndpointsRequest"]; });
27355
27356/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointsResponse"]; });
27357
27358/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteUserEndpointsResponse"]; });
27359
27360/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceChannelRequest"]; });
27361
27362/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceChannelResponse"]; });
27363
27364/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceChannelResponse"]; });
27365
27366/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceTemplateRequest"]; });
27367
27368/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceTemplateResponse"]; });
27369
27370/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeliveryStatus"]; });
27371
27372/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RawEmail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RawEmail"]; });
27373
27374/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmailPart", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleEmailPart"]; });
27375
27376/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleEmail"]; });
27377
27378/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailMessage"]; });
27379
27380/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMMessage"]; });
27381
27382/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSMessage"]; });
27383
27384/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceMessage"]; });
27385
27386/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectMessageConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DirectMessageConfiguration"]; });
27387
27388/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailChannelRequest"]; });
27389
27390/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateType"]; });
27391
27392/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailTemplateResponse"]; });
27393
27394/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchItem", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointBatchItem"]; });
27395
27396/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointBatchRequest"]; });
27397
27398/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointItemResponse"]; });
27399
27400/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointMessageResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointMessageResult"]; });
27401
27402/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointRequest"]; });
27403
27404/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointSendConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointSendConfiguration"]; });
27405
27406/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Session", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Session"]; });
27407
27408/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Event"]; });
27409
27410/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventItemResponse"]; });
27411
27412/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PublicEndpoint", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PublicEndpoint"]; });
27413
27414/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsBatch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsBatch"]; });
27415
27416/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsRequest"]; });
27417
27418/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ItemResponse"]; });
27419
27420/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsResponse"]; });
27421
27422/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobsResponse"]; });
27423
27424/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMChannelRequest"]; });
27425
27426/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAdmChannelRequest"]; });
27427
27428/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAdmChannelResponse"]; });
27429
27430/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsChannelRequest"]; });
27431
27432/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsChannelResponse"]; });
27433
27434/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsSandboxChannelRequest"]; });
27435
27436/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsSandboxChannelResponse"]; });
27437
27438/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipChannelRequest"]; });
27439
27440/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipChannelResponse"]; });
27441
27442/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipSandboxChannelRequest"]; });
27443
27444/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipSandboxChannelResponse"]; });
27445
27446/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppRequest"]; });
27447
27448/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppResponse"]; });
27449
27450/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationDateRangeKpiRequest"]; });
27451
27452/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationDateRangeKpiResponse"]; });
27453
27454/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationSettingsRequest"]; });
27455
27456/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationSettingsResponse"]; });
27457
27458/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppsRequest"]; });
27459
27460/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppsResponse"]; });
27461
27462/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetBaiduChannelRequest"]; });
27463
27464/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetBaiduChannelResponse"]; });
27465
27466/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignRequest"]; });
27467
27468/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignResponse"]; });
27469
27470/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignActivitiesRequest"]; });
27471
27472/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignActivitiesResponse"]; });
27473
27474/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignDateRangeKpiRequest"]; });
27475
27476/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignDateRangeKpiResponse"]; });
27477
27478/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignsRequest"]; });
27479
27480/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignsResponse"]; });
27481
27482/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionRequest"]; });
27483
27484/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionResponse"]; });
27485
27486/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionsRequest"]; });
27487
27488/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionsResponse"]; });
27489
27490/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetChannelsRequest"]; });
27491
27492/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetChannelsResponse"]; });
27493
27494/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailChannelRequest"]; });
27495
27496/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailChannelResponse"]; });
27497
27498/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailTemplateRequest"]; });
27499
27500/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailTemplateResponse"]; });
27501
27502/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEndpointRequest"]; });
27503
27504/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEndpointResponse"]; });
27505
27506/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEventStreamRequest"]; });
27507
27508/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEventStreamResponse"]; });
27509
27510/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobRequest"]; });
27511
27512/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobResponse"]; });
27513
27514/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobsRequest"]; });
27515
27516/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobsResponse"]; });
27517
27518/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetGcmChannelRequest"]; });
27519
27520/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetGcmChannelResponse"]; });
27521
27522/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobRequest"]; });
27523
27524/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobResponse"]; });
27525
27526/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobsRequest"]; });
27527
27528/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobsResponse"]; });
27529
27530/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobsResponse"]; });
27531
27532/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyRequest"]; });
27533
27534/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyResponse"]; });
27535
27536/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyDateRangeKpiRequest"]; });
27537
27538/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyDateRangeKpiResponse"]; });
27539
27540/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyDateRangeKpiResponse"]; });
27541
27542/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionActivityMetricsRequest"]; });
27543
27544/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionActivityMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyExecutionActivityMetricsResponse"]; });
27545
27546/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionActivityMetricsResponse"]; });
27547
27548/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionMetricsRequest"]; });
27549
27550/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyExecutionMetricsResponse"]; });
27551
27552/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionMetricsResponse"]; });
27553
27554/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetPushTemplateRequest"]; });
27555
27556/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushNotificationTemplateResponse"]; });
27557
27558/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetPushTemplateResponse"]; });
27559
27560/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationRequest"]; });
27561
27562/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationResponse"]; });
27563
27564/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationsRequest"]; });
27565
27566/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListRecommenderConfigurationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListRecommenderConfigurationsResponse"]; });
27567
27568/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationsResponse"]; });
27569
27570/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentRequest"]; });
27571
27572/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentResponse"]; });
27573
27574/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentExportJobsRequest"]; });
27575
27576/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentExportJobsResponse"]; });
27577
27578/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentImportJobsRequest"]; });
27579
27580/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentImportJobsResponse"]; });
27581
27582/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentsRequest"]; });
27583
27584/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentsResponse"]; });
27585
27586/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentsResponse"]; });
27587
27588/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionRequest"]; });
27589
27590/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionResponse"]; });
27591
27592/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionsRequest"]; });
27593
27594/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionsResponse"]; });
27595
27596/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsChannelRequest"]; });
27597
27598/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsChannelResponse"]; });
27599
27600/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsTemplateRequest"]; });
27601
27602/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSTemplateResponse"]; });
27603
27604/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsTemplateResponse"]; });
27605
27606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetUserEndpointsRequest"]; });
27607
27608/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetUserEndpointsResponse"]; });
27609
27610/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceChannelRequest"]; });
27611
27612/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceChannelResponse"]; });
27613
27614/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceTemplateRequest"]; });
27615
27616/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceTemplateResponse"]; });
27617
27618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceTemplateResponse"]; });
27619
27620/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneysResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneysResponse"]; });
27621
27622/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyStateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyStateRequest"]; });
27623
27624/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListJourneysRequest"]; });
27625
27626/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListJourneysResponse"]; });
27627
27628/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateResponse"]; });
27629
27630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateVersionResponse"]; });
27631
27632/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTagsForResourceRequest"]; });
27633
27634/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagsModel", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TagsModel"]; });
27635
27636/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTagsForResourceResponse"]; });
27637
27638/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplatesRequest"]; });
27639
27640/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplatesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplatesResponse"]; });
27641
27642/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplatesResponse"]; });
27643
27644/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplateVersionsRequest"]; });
27645
27646/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateVersionsResponse"]; });
27647
27648/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplateVersionsResponse"]; });
27649
27650/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageResult"]; });
27651
27652/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageRequest"]; });
27653
27654/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageResponse"]; });
27655
27656/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NumberValidateRequest"]; });
27657
27658/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NumberValidateResponse"]; });
27659
27660/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PhoneNumberValidateRequest"]; });
27661
27662/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PhoneNumberValidateResponse"]; });
27663
27664/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventsRequest"]; });
27665
27666/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventsResponse"]; });
27667
27668/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteEventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteEventStream"]; });
27669
27670/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventStreamRequest"]; });
27671
27672/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventStreamResponse"]; });
27673
27674/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAttributesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAttributesRequest"]; });
27675
27676/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RemoveAttributesRequest"]; });
27677
27678/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RemoveAttributesResponse"]; });
27679
27680/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendMessagesRequest"]; });
27681
27682/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendMessagesResponse"]; });
27683
27684/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessageRequest"]; });
27685
27686/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessagesRequest"]; });
27687
27688/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessageResponse"]; });
27689
27690/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessagesResponse"]; });
27691
27692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TagResourceRequest"]; });
27693
27694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UntagResourceRequest"]; });
27695
27696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAdmChannelRequest"]; });
27697
27698/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAdmChannelResponse"]; });
27699
27700/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsChannelRequest"]; });
27701
27702/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsChannelResponse"]; });
27703
27704/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsSandboxChannelRequest"]; });
27705
27706/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsSandboxChannelResponse"]; });
27707
27708/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipChannelRequest"]; });
27709
27710/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipChannelResponse"]; });
27711
27712/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipSandboxChannelRequest"]; });
27713
27714/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipSandboxChannelResponse"]; });
27715
27716/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteApplicationSettingsRequest"]; });
27717
27718/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApplicationSettingsRequest"]; });
27719
27720/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApplicationSettingsResponse"]; });
27721
27722/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateBaiduChannelRequest"]; });
27723
27724/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateBaiduChannelResponse"]; });
27725
27726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateCampaignRequest"]; });
27727
27728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateCampaignResponse"]; });
27729
27730/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailChannelRequest"]; });
27731
27732/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailChannelResponse"]; });
27733
27734/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailTemplateRequest"]; });
27735
27736/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailTemplateResponse"]; });
27737
27738/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointRequest"]; });
27739
27740/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointResponse"]; });
27741
27742/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointsBatchRequest"]; });
27743
27744/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointsBatchResponse"]; });
27745
27746/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateGcmChannelRequest"]; });
27747
27748/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateGcmChannelResponse"]; });
27749
27750/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyRequest"]; });
27751
27752/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyResponse"]; });
27753
27754/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyStateRequest"]; });
27755
27756/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyStateResponse"]; });
27757
27758/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdatePushTemplateRequest"]; });
27759
27760/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdatePushTemplateResponse"]; });
27761
27762/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationShape", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationShape"]; });
27763
27764/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationRequest"]; });
27765
27766/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationResponse"]; });
27767
27768/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSegmentRequest"]; });
27769
27770/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSegmentResponse"]; });
27771
27772/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSChannelRequest"]; });
27773
27774/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsChannelRequest"]; });
27775
27776/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsChannelResponse"]; });
27777
27778/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsTemplateRequest"]; });
27779
27780/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsTemplateResponse"]; });
27781
27782/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateActiveVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateActiveVersionRequest"]; });
27783
27784/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateTemplateActiveVersionRequest"]; });
27785
27786/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateTemplateActiveVersionResponse"]; });
27787
27788/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceChannelRequest"]; });
27789
27790/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceChannelRequest"]; });
27791
27792/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceChannelResponse"]; });
27793
27794/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceTemplateRequest"]; });
27795
27796/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceTemplateResponse"]; });
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
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//# sourceMappingURL=index.js.map
27914
27915/***/ }),
27916
27917/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/index.js":
27918/*!**************************************************************************************!*\
27919 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/models/index.js ***!
27920 \**************************************************************************************/
27921/*! 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 */
27922/***/ (function(module, __webpack_exports__, __webpack_require__) {
27923
27924"use strict";
27925__webpack_require__.r(__webpack_exports__);
27926/* 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");
27927/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__EndpointTypesElement", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["__EndpointTypesElement"]; });
27928
27929/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Action"]; });
27930
27931/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivityResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ActivityResponse"]; });
27932
27933/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivitiesResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ActivitiesResponse"]; });
27934
27935/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AttributeType"]; });
27936
27937/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AttributeDimension"]; });
27938
27939/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DimensionType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DimensionType"]; });
27940
27941/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SetDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SetDimension"]; });
27942
27943/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MetricDimension"]; });
27944
27945/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventDimensions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventDimensions"]; });
27946
27947/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventCondition"]; });
27948
27949/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentCondition"]; });
27950
27951/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Duration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Duration"]; });
27952
27953/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RecencyType"]; });
27954
27955/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RecencyDimension"]; });
27956
27957/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentBehaviors", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentBehaviors"]; });
27958
27959/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDemographics", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentDemographics"]; });
27960
27961/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSCoordinates", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GPSCoordinates"]; });
27962
27963/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSPointDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GPSPointDimension"]; });
27964
27965/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentLocation", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentLocation"]; });
27966
27967/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDimensions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentDimensions"]; });
27968
27969/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SimpleCondition"]; });
27970
27971/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Operator"]; });
27972
27973/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Condition"]; });
27974
27975/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitTime", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WaitTime"]; });
27976
27977/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConditionalSplitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConditionalSplitActivity"]; });
27978
27979/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyCustomMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyCustomMessage"]; });
27980
27981/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CustomMessageActivity"]; });
27982
27983/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyEmailMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyEmailMessage"]; });
27984
27985/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailMessageActivity"]; });
27986
27987/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoldoutActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HoldoutActivity"]; });
27988
27989/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalBranch", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MultiConditionalBranch"]; });
27990
27991/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalSplitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MultiConditionalSplitActivity"]; });
27992
27993/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyPushMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyPushMessage"]; });
27994
27995/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PushMessageActivity"]; });
27996
27997/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RandomSplitEntry"]; });
27998
27999/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RandomSplitActivity"]; });
28000
28001/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MessageType"]; });
28002
28003/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySMSMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneySMSMessage"]; });
28004
28005/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSMessageActivity"]; });
28006
28007/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WaitActivity"]; });
28008
28009/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Activity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Activity"]; });
28010
28011/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChannelType"]; });
28012
28013/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddressConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AddressConfiguration"]; });
28014
28015/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ADMChannelRequest"]; });
28016
28017/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ADMChannelResponse"]; });
28018
28019/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ADMMessage"]; });
28020
28021/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AndroidPushNotificationTemplate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AndroidPushNotificationTemplate"]; });
28022
28023/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSChannelRequest"]; });
28024
28025/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSChannelResponse"]; });
28026
28027/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSMessage"]; });
28028
28029/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSPushNotificationTemplate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSPushNotificationTemplate"]; });
28030
28031/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSSandboxChannelRequest"]; });
28032
28033/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSSandboxChannelResponse"]; });
28034
28035/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipChannelRequest"]; });
28036
28037/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipChannelResponse"]; });
28038
28039/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipSandboxChannelRequest"]; });
28040
28041/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipSandboxChannelResponse"]; });
28042
28043/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRowValue", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResultRowValue"]; });
28044
28045/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRow", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResultRow"]; });
28046
28047/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseKpiResult", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaseKpiResult"]; });
28048
28049/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationDateRangeKpiResponse"]; });
28050
28051/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationResponse"]; });
28052
28053/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mode", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Mode"]; });
28054
28055/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignHook", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignHook"]; });
28056
28057/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignLimits", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignLimits"]; });
28058
28059/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuietTime", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["QuietTime"]; });
28060
28061/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationSettingsResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationSettingsResource"]; });
28062
28063/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationsResponse"]; });
28064
28065/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributesResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AttributesResource"]; });
28066
28067/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BadRequestException"]; });
28068
28069/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaiduChannelRequest"]; });
28070
28071/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaiduChannelResponse"]; });
28072
28073/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaiduMessage"]; });
28074
28075/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignCustomMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignCustomMessage"]; });
28076
28077/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignDateRangeKpiResponse"]; });
28078
28079/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEmailMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignEmailMessage"]; });
28080
28081/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["FilterType"]; });
28082
28083/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEventFilter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignEventFilter"]; });
28084
28085/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomDeliveryConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CustomDeliveryConfiguration"]; });
28086
28087/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Message"]; });
28088
28089/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignSmsMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignSmsMessage"]; });
28090
28091/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MessageConfiguration"]; });
28092
28093/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Frequency", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Frequency"]; });
28094
28095/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Schedule", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Schedule"]; });
28096
28097/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignStatus"]; });
28098
28099/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignState", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignState"]; });
28100
28101/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Template", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Template"]; });
28102
28103/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TemplateConfiguration"]; });
28104
28105/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreatmentResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TreatmentResource"]; });
28106
28107/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignResponse"]; });
28108
28109/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignsResponse"]; });
28110
28111/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChannelResponse"]; });
28112
28113/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChannelsResponse"]; });
28114
28115/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConflictException"]; });
28116
28117/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateApplicationRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateApplicationRequest"]; });
28118
28119/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateAppRequest"]; });
28120
28121/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateAppResponse"]; });
28122
28123/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ForbiddenException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ForbiddenException"]; });
28124
28125/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerErrorException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InternalServerErrorException"]; });
28126
28127/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MethodNotAllowedException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MethodNotAllowedException"]; });
28128
28129/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["NotFoundException"]; });
28130
28131/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PayloadTooLargeException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PayloadTooLargeException"]; });
28132
28133/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TooManyRequestsException"]; });
28134
28135/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteTreatmentResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteTreatmentResource"]; });
28136
28137/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteCampaignRequest"]; });
28138
28139/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateCampaignRequest"]; });
28140
28141/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateCampaignResponse"]; });
28142
28143/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailTemplateRequest"]; });
28144
28145/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateEmailTemplateRequest"]; });
28146
28147/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateTemplateMessageBody", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateTemplateMessageBody"]; });
28148
28149/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateEmailTemplateResponse"]; });
28150
28151/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobRequest"]; });
28152
28153/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateExportJobRequest"]; });
28154
28155/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobResource"]; });
28156
28157/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JobStatus"]; });
28158
28159/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobResponse"]; });
28160
28161/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateExportJobResponse"]; });
28162
28163/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Format", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Format"]; });
28164
28165/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobRequest"]; });
28166
28167/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateImportJobRequest"]; });
28168
28169/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobResource"]; });
28170
28171/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobResponse"]; });
28172
28173/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateImportJobResponse"]; });
28174
28175/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyLimits", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyLimits"]; });
28176
28177/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySchedule", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneySchedule"]; });
28178
28179/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventFilter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventFilter"]; });
28180
28181/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStartCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventStartCondition"]; });
28182
28183/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartCondition"]; });
28184
28185/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "State", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["State"]; });
28186
28187/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteJourneyRequest"]; });
28188
28189/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateJourneyRequest"]; });
28190
28191/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyResponse"]; });
28192
28193/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateJourneyResponse"]; });
28194
28195/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationTemplate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DefaultPushNotificationTemplate"]; });
28196
28197/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PushNotificationTemplateRequest"]; });
28198
28199/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreatePushTemplateRequest"]; });
28200
28201/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreatePushTemplateResponse"]; });
28202
28203/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationShape", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateRecommenderConfigurationShape"]; });
28204
28205/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateRecommenderConfigurationRequest"]; });
28206
28207/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecommenderConfigurationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RecommenderConfigurationResponse"]; });
28208
28209/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateRecommenderConfigurationResponse"]; });
28210
28211/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentReference", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentReference"]; });
28212
28213/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SourceType"]; });
28214
28215/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Type"]; });
28216
28217/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentGroup"]; });
28218
28219/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Include", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Include"]; });
28220
28221/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroupList", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentGroupList"]; });
28222
28223/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteSegmentRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteSegmentRequest"]; });
28224
28225/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSegmentRequest"]; });
28226
28227/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentImportResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentImportResource"]; });
28228
28229/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentType"]; });
28230
28231/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentResponse"]; });
28232
28233/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSegmentResponse"]; });
28234
28235/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSTemplateRequest"]; });
28236
28237/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSmsTemplateRequest"]; });
28238
28239/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSmsTemplateResponse"]; });
28240
28241/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VoiceTemplateRequest"]; });
28242
28243/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateVoiceTemplateRequest"]; });
28244
28245/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateVoiceTemplateResponse"]; });
28246
28247/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DefaultMessage"]; });
28248
28249/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DefaultPushNotificationMessage"]; });
28250
28251/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAdmChannelRequest"]; });
28252
28253/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAdmChannelResponse"]; });
28254
28255/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsChannelRequest"]; });
28256
28257/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsChannelResponse"]; });
28258
28259/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsSandboxChannelRequest"]; });
28260
28261/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsSandboxChannelResponse"]; });
28262
28263/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipChannelRequest"]; });
28264
28265/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipChannelResponse"]; });
28266
28267/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipSandboxChannelRequest"]; });
28268
28269/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipSandboxChannelResponse"]; });
28270
28271/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAppRequest"]; });
28272
28273/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAppResponse"]; });
28274
28275/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteBaiduChannelRequest"]; });
28276
28277/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteBaiduChannelResponse"]; });
28278
28279/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteCampaignRequest"]; });
28280
28281/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteCampaignResponse"]; });
28282
28283/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailChannelRequest"]; });
28284
28285/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailChannelResponse"]; });
28286
28287/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailChannelResponse"]; });
28288
28289/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailTemplateRequest"]; });
28290
28291/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBody", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MessageBody"]; });
28292
28293/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailTemplateResponse"]; });
28294
28295/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEndpointRequest"]; });
28296
28297/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointDemographic", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointDemographic"]; });
28298
28299/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointLocation", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointLocation"]; });
28300
28301/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointUser", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointUser"]; });
28302
28303/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointResponse"]; });
28304
28305/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEndpointResponse"]; });
28306
28307/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEventStreamRequest"]; });
28308
28309/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStream", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventStream"]; });
28310
28311/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEventStreamResponse"]; });
28312
28313/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteGcmChannelRequest"]; });
28314
28315/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GCMChannelResponse"]; });
28316
28317/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteGcmChannelResponse"]; });
28318
28319/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteJourneyRequest"]; });
28320
28321/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteJourneyResponse"]; });
28322
28323/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeletePushTemplateRequest"]; });
28324
28325/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeletePushTemplateResponse"]; });
28326
28327/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteRecommenderConfigurationRequest"]; });
28328
28329/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteRecommenderConfigurationResponse"]; });
28330
28331/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSegmentRequest"]; });
28332
28333/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSegmentResponse"]; });
28334
28335/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsChannelRequest"]; });
28336
28337/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSChannelResponse"]; });
28338
28339/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsChannelResponse"]; });
28340
28341/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsTemplateRequest"]; });
28342
28343/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsTemplateResponse"]; });
28344
28345/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteUserEndpointsRequest"]; });
28346
28347/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointsResponse"]; });
28348
28349/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteUserEndpointsResponse"]; });
28350
28351/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceChannelRequest"]; });
28352
28353/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VoiceChannelResponse"]; });
28354
28355/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceChannelResponse"]; });
28356
28357/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceTemplateRequest"]; });
28358
28359/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceTemplateResponse"]; });
28360
28361/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStatus"]; });
28362
28363/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RawEmail", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RawEmail"]; });
28364
28365/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmailPart", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SimpleEmailPart"]; });
28366
28367/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmail", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SimpleEmail"]; });
28368
28369/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailMessage"]; });
28370
28371/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GCMMessage"]; });
28372
28373/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSMessage"]; });
28374
28375/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VoiceMessage"]; });
28376
28377/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectMessageConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DirectMessageConfiguration"]; });
28378
28379/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailChannelRequest"]; });
28380
28381/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TemplateType"]; });
28382
28383/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailTemplateResponse"]; });
28384
28385/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchItem", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointBatchItem"]; });
28386
28387/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointBatchRequest"]; });
28388
28389/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointItemResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointItemResponse"]; });
28390
28391/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointMessageResult", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointMessageResult"]; });
28392
28393/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointRequest"]; });
28394
28395/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointSendConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointSendConfiguration"]; });
28396
28397/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Session", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Session"]; });
28398
28399/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Event"]; });
28400
28401/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventItemResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventItemResponse"]; });
28402
28403/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PublicEndpoint", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PublicEndpoint"]; });
28404
28405/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsBatch", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventsBatch"]; });
28406
28407/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventsRequest"]; });
28408
28409/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ItemResponse"]; });
28410
28411/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventsResponse"]; });
28412
28413/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobsResponse"]; });
28414
28415/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GCMChannelRequest"]; });
28416
28417/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAdmChannelRequest"]; });
28418
28419/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAdmChannelResponse"]; });
28420
28421/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsChannelRequest"]; });
28422
28423/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsChannelResponse"]; });
28424
28425/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsSandboxChannelRequest"]; });
28426
28427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsSandboxChannelResponse"]; });
28428
28429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipChannelRequest"]; });
28430
28431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipChannelResponse"]; });
28432
28433/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipSandboxChannelRequest"]; });
28434
28435/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipSandboxChannelResponse"]; });
28436
28437/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppRequest"]; });
28438
28439/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppResponse"]; });
28440
28441/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationDateRangeKpiRequest"]; });
28442
28443/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationDateRangeKpiResponse"]; });
28444
28445/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationSettingsRequest"]; });
28446
28447/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationSettingsResponse"]; });
28448
28449/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppsRequest"]; });
28450
28451/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppsResponse"]; });
28452
28453/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetBaiduChannelRequest"]; });
28454
28455/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetBaiduChannelResponse"]; });
28456
28457/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignRequest"]; });
28458
28459/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignResponse"]; });
28460
28461/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignActivitiesRequest"]; });
28462
28463/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignActivitiesResponse"]; });
28464
28465/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignDateRangeKpiRequest"]; });
28466
28467/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignDateRangeKpiResponse"]; });
28468
28469/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignsRequest"]; });
28470
28471/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignsResponse"]; });
28472
28473/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionRequest"]; });
28474
28475/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionResponse"]; });
28476
28477/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionsRequest"]; });
28478
28479/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionsResponse"]; });
28480
28481/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetChannelsRequest"]; });
28482
28483/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetChannelsResponse"]; });
28484
28485/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailChannelRequest"]; });
28486
28487/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailChannelResponse"]; });
28488
28489/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailTemplateRequest"]; });
28490
28491/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailTemplateResponse"]; });
28492
28493/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEndpointRequest"]; });
28494
28495/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEndpointResponse"]; });
28496
28497/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEventStreamRequest"]; });
28498
28499/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEventStreamResponse"]; });
28500
28501/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobRequest"]; });
28502
28503/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobResponse"]; });
28504
28505/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobsRequest"]; });
28506
28507/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobsResponse"]; });
28508
28509/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetGcmChannelRequest"]; });
28510
28511/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetGcmChannelResponse"]; });
28512
28513/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobRequest"]; });
28514
28515/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobResponse"]; });
28516
28517/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobsRequest"]; });
28518
28519/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobsResponse"]; });
28520
28521/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobsResponse"]; });
28522
28523/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetJourneyRequest"]; });
28524
28525/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetJourneyResponse"]; });
28526
28527/* 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");
28528/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiRequest"]; });
28529
28530/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyDateRangeKpiResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyDateRangeKpiResponse"]; });
28531
28532/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiResponse"]; });
28533
28534/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsRequest"]; });
28535
28536/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionActivityMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyExecutionActivityMetricsResponse"]; });
28537
28538/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsResponse"]; });
28539
28540/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsRequest"]; });
28541
28542/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyExecutionMetricsResponse"]; });
28543
28544/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsResponse"]; });
28545
28546/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateRequest"]; });
28547
28548/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PushNotificationTemplateResponse"]; });
28549
28550/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateResponse"]; });
28551
28552/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationRequest"]; });
28553
28554/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationResponse"]; });
28555
28556/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsRequest"]; });
28557
28558/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListRecommenderConfigurationsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListRecommenderConfigurationsResponse"]; });
28559
28560/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsResponse"]; });
28561
28562/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentRequest"]; });
28563
28564/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentResponse"]; });
28565
28566/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsRequest"]; });
28567
28568/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsResponse"]; });
28569
28570/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsRequest"]; });
28571
28572/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsResponse"]; });
28573
28574/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsRequest"]; });
28575
28576/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SegmentsResponse"]; });
28577
28578/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsResponse"]; });
28579
28580/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionRequest"]; });
28581
28582/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionResponse"]; });
28583
28584/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsRequest"]; });
28585
28586/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsResponse"]; });
28587
28588/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelRequest"]; });
28589
28590/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelResponse"]; });
28591
28592/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateRequest"]; });
28593
28594/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SMSTemplateResponse"]; });
28595
28596/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateResponse"]; });
28597
28598/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsRequest"]; });
28599
28600/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsResponse"]; });
28601
28602/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelRequest"]; });
28603
28604/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelResponse"]; });
28605
28606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateRequest"]; });
28607
28608/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["VoiceTemplateResponse"]; });
28609
28610/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateResponse"]; });
28611
28612/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneysResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneysResponse"]; });
28613
28614/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyStateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyStateRequest"]; });
28615
28616/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysRequest"]; });
28617
28618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysResponse"]; });
28619
28620/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateResponse"]; });
28621
28622/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateVersionResponse"]; });
28623
28624/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceRequest"]; });
28625
28626/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagsModel", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TagsModel"]; });
28627
28628/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceResponse"]; });
28629
28630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesRequest"]; });
28631
28632/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplatesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplatesResponse"]; });
28633
28634/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesResponse"]; });
28635
28636/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsRequest"]; });
28637
28638/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateVersionsResponse"]; });
28639
28640/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsResponse"]; });
28641
28642/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResult", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["MessageResult"]; });
28643
28644/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["MessageRequest"]; });
28645
28646/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["MessageResponse"]; });
28647
28648/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["NumberValidateRequest"]; });
28649
28650/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["NumberValidateResponse"]; });
28651
28652/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateRequest"]; });
28653
28654/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateResponse"]; });
28655
28656/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"]; });
28657
28658/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsResponse"]; });
28659
28660/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteEventStream", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["WriteEventStream"]; });
28661
28662/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamRequest"]; });
28663
28664/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamResponse"]; });
28665
28666/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAttributesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAttributesRequest"]; });
28667
28668/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesRequest"]; });
28669
28670/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesResponse"]; });
28671
28672/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesRequest"]; });
28673
28674/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesResponse"]; });
28675
28676/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessageRequest"]; });
28677
28678/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesRequest"]; });
28679
28680/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessageResponse"]; });
28681
28682/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesResponse"]; });
28683
28684/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TagResourceRequest"]; });
28685
28686/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UntagResourceRequest"]; });
28687
28688/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelRequest"]; });
28689
28690/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelResponse"]; });
28691
28692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelRequest"]; });
28693
28694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelResponse"]; });
28695
28696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelRequest"]; });
28697
28698/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelResponse"]; });
28699
28700/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelRequest"]; });
28701
28702/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelResponse"]; });
28703
28704/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelRequest"]; });
28705
28706/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelResponse"]; });
28707
28708/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteApplicationSettingsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["WriteApplicationSettingsRequest"]; });
28709
28710/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsRequest"]; });
28711
28712/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsResponse"]; });
28713
28714/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelRequest"]; });
28715
28716/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelResponse"]; });
28717
28718/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignRequest"]; });
28719
28720/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignResponse"]; });
28721
28722/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelRequest"]; });
28723
28724/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelResponse"]; });
28725
28726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateRequest"]; });
28727
28728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateResponse"]; });
28729
28730/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointRequest"]; });
28731
28732/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointResponse"]; });
28733
28734/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchRequest"]; });
28735
28736/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchResponse"]; });
28737
28738/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelRequest"]; });
28739
28740/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelResponse"]; });
28741
28742/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyRequest"]; });
28743
28744/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyResponse"]; });
28745
28746/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateRequest"]; });
28747
28748/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateResponse"]; });
28749
28750/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateRequest"]; });
28751
28752/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateResponse"]; });
28753
28754/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationShape", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationShape"]; });
28755
28756/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationRequest"]; });
28757
28758/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationResponse"]; });
28759
28760/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentRequest"]; });
28761
28762/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentResponse"]; });
28763
28764/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SMSChannelRequest"]; });
28765
28766/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelRequest"]; });
28767
28768/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelResponse"]; });
28769
28770/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateRequest"]; });
28771
28772/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateResponse"]; });
28773
28774/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateActiveVersionRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateActiveVersionRequest"]; });
28775
28776/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionRequest"]; });
28777
28778/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionResponse"]; });
28779
28780/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["VoiceChannelRequest"]; });
28781
28782/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelRequest"]; });
28783
28784/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelResponse"]; });
28785
28786/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateRequest"]; });
28787
28788/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateResponse"]; });
28789
28790
28791
28792//# sourceMappingURL=index.js.map
28793
28794/***/ }),
28795
28796/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js":
28797/*!*****************************************************************************************!*\
28798 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js ***!
28799 \*****************************************************************************************/
28800/*! 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 */
28801/***/ (function(module, __webpack_exports__, __webpack_require__) {
28802
28803"use strict";
28804__webpack_require__.r(__webpack_exports__);
28805/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__EndpointTypesElement", function() { return __EndpointTypesElement; });
28806/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return Action; });
28807/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivityResponse", function() { return ActivityResponse; });
28808/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivitiesResponse", function() { return ActivitiesResponse; });
28809/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributeType", function() { return AttributeType; });
28810/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributeDimension", function() { return AttributeDimension; });
28811/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DimensionType", function() { return DimensionType; });
28812/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetDimension", function() { return SetDimension; });
28813/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MetricDimension", function() { return MetricDimension; });
28814/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventDimensions", function() { return EventDimensions; });
28815/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventCondition", function() { return EventCondition; });
28816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentCondition", function() { return SegmentCondition; });
28817/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Duration", function() { return Duration; });
28818/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecencyType", function() { return RecencyType; });
28819/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecencyDimension", function() { return RecencyDimension; });
28820/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentBehaviors", function() { return SegmentBehaviors; });
28821/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentDemographics", function() { return SegmentDemographics; });
28822/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GPSCoordinates", function() { return GPSCoordinates; });
28823/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GPSPointDimension", function() { return GPSPointDimension; });
28824/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentLocation", function() { return SegmentLocation; });
28825/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentDimensions", function() { return SegmentDimensions; });
28826/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleCondition", function() { return SimpleCondition; });
28827/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return Operator; });
28828/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return Condition; });
28829/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaitTime", function() { return WaitTime; });
28830/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConditionalSplitActivity", function() { return ConditionalSplitActivity; });
28831/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyCustomMessage", function() { return JourneyCustomMessage; });
28832/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomMessageActivity", function() { return CustomMessageActivity; });
28833/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyEmailMessage", function() { return JourneyEmailMessage; });
28834/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailMessageActivity", function() { return EmailMessageActivity; });
28835/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoldoutActivity", function() { return HoldoutActivity; });
28836/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalBranch", function() { return MultiConditionalBranch; });
28837/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalSplitActivity", function() { return MultiConditionalSplitActivity; });
28838/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyPushMessage", function() { return JourneyPushMessage; });
28839/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PushMessageActivity", function() { return PushMessageActivity; });
28840/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RandomSplitEntry", function() { return RandomSplitEntry; });
28841/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RandomSplitActivity", function() { return RandomSplitActivity; });
28842/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageType", function() { return MessageType; });
28843/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneySMSMessage", function() { return JourneySMSMessage; });
28844/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSMessageActivity", function() { return SMSMessageActivity; });
28845/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaitActivity", function() { return WaitActivity; });
28846/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Activity", function() { return Activity; });
28847/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelType", function() { return ChannelType; });
28848/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddressConfiguration", function() { return AddressConfiguration; });
28849/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADMChannelRequest", function() { return ADMChannelRequest; });
28850/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADMChannelResponse", function() { return ADMChannelResponse; });
28851/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADMMessage", function() { return ADMMessage; });
28852/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AndroidPushNotificationTemplate", function() { return AndroidPushNotificationTemplate; });
28853/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSChannelRequest", function() { return APNSChannelRequest; });
28854/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSChannelResponse", function() { return APNSChannelResponse; });
28855/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSMessage", function() { return APNSMessage; });
28856/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSPushNotificationTemplate", function() { return APNSPushNotificationTemplate; });
28857/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelRequest", function() { return APNSSandboxChannelRequest; });
28858/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelResponse", function() { return APNSSandboxChannelResponse; });
28859/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelRequest", function() { return APNSVoipChannelRequest; });
28860/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelResponse", function() { return APNSVoipChannelResponse; });
28861/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelRequest", function() { return APNSVoipSandboxChannelRequest; });
28862/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelResponse", function() { return APNSVoipSandboxChannelResponse; });
28863/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultRowValue", function() { return ResultRowValue; });
28864/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultRow", function() { return ResultRow; });
28865/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseKpiResult", function() { return BaseKpiResult; });
28866/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationDateRangeKpiResponse", function() { return ApplicationDateRangeKpiResponse; });
28867/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationResponse", function() { return ApplicationResponse; });
28868/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mode", function() { return Mode; });
28869/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignHook", function() { return CampaignHook; });
28870/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignLimits", function() { return CampaignLimits; });
28871/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuietTime", function() { return QuietTime; });
28872/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationSettingsResource", function() { return ApplicationSettingsResource; });
28873/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationsResponse", function() { return ApplicationsResponse; });
28874/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributesResource", function() { return AttributesResource; });
28875/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return BadRequestException; });
28876/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelRequest", function() { return BaiduChannelRequest; });
28877/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelResponse", function() { return BaiduChannelResponse; });
28878/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaiduMessage", function() { return BaiduMessage; });
28879/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignCustomMessage", function() { return CampaignCustomMessage; });
28880/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignDateRangeKpiResponse", function() { return CampaignDateRangeKpiResponse; });
28881/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignEmailMessage", function() { return CampaignEmailMessage; });
28882/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilterType", function() { return FilterType; });
28883/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignEventFilter", function() { return CampaignEventFilter; });
28884/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDeliveryConfiguration", function() { return CustomDeliveryConfiguration; });
28885/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return Message; });
28886/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignSmsMessage", function() { return CampaignSmsMessage; });
28887/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageConfiguration", function() { return MessageConfiguration; });
28888/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Frequency", function() { return Frequency; });
28889/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Schedule", function() { return Schedule; });
28890/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignStatus", function() { return CampaignStatus; });
28891/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignState", function() { return CampaignState; });
28892/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Template", function() { return Template; });
28893/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateConfiguration", function() { return TemplateConfiguration; });
28894/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreatmentResource", function() { return TreatmentResource; });
28895/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignResponse", function() { return CampaignResponse; });
28896/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignsResponse", function() { return CampaignsResponse; });
28897/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelResponse", function() { return ChannelResponse; });
28898/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelsResponse", function() { return ChannelsResponse; });
28899/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return ConflictException; });
28900/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateApplicationRequest", function() { return CreateApplicationRequest; });
28901/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateAppRequest", function() { return CreateAppRequest; });
28902/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateAppResponse", function() { return CreateAppResponse; });
28903/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ForbiddenException", function() { return ForbiddenException; });
28904/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalServerErrorException", function() { return InternalServerErrorException; });
28905/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MethodNotAllowedException", function() { return MethodNotAllowedException; });
28906/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return NotFoundException; });
28907/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PayloadTooLargeException", function() { return PayloadTooLargeException; });
28908/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return TooManyRequestsException; });
28909/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteTreatmentResource", function() { return WriteTreatmentResource; });
28910/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteCampaignRequest", function() { return WriteCampaignRequest; });
28911/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignRequest", function() { return CreateCampaignRequest; });
28912/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignResponse", function() { return CreateCampaignResponse; });
28913/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateRequest", function() { return EmailTemplateRequest; });
28914/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateRequest", function() { return CreateEmailTemplateRequest; });
28915/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateTemplateMessageBody", function() { return CreateTemplateMessageBody; });
28916/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateResponse", function() { return CreateEmailTemplateResponse; });
28917/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobRequest", function() { return ExportJobRequest; });
28918/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobRequest", function() { return CreateExportJobRequest; });
28919/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobResource", function() { return ExportJobResource; });
28920/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return JobStatus; });
28921/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobResponse", function() { return ExportJobResponse; });
28922/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobResponse", function() { return CreateExportJobResponse; });
28923/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Format", function() { return Format; });
28924/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobRequest", function() { return ImportJobRequest; });
28925/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobRequest", function() { return CreateImportJobRequest; });
28926/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobResource", function() { return ImportJobResource; });
28927/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobResponse", function() { return ImportJobResponse; });
28928/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobResponse", function() { return CreateImportJobResponse; });
28929/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyLimits", function() { return JourneyLimits; });
28930/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneySchedule", function() { return JourneySchedule; });
28931/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventFilter", function() { return EventFilter; });
28932/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStartCondition", function() { return EventStartCondition; });
28933/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartCondition", function() { return StartCondition; });
28934/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "State", function() { return State; });
28935/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteJourneyRequest", function() { return WriteJourneyRequest; });
28936/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyRequest", function() { return CreateJourneyRequest; });
28937/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyResponse", function() { return JourneyResponse; });
28938/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyResponse", function() { return CreateJourneyResponse; });
28939/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationTemplate", function() { return DefaultPushNotificationTemplate; });
28940/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateRequest", function() { return PushNotificationTemplateRequest; });
28941/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateRequest", function() { return CreatePushTemplateRequest; });
28942/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateResponse", function() { return CreatePushTemplateResponse; });
28943/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationShape", function() { return CreateRecommenderConfigurationShape; });
28944/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationRequest", function() { return CreateRecommenderConfigurationRequest; });
28945/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecommenderConfigurationResponse", function() { return RecommenderConfigurationResponse; });
28946/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationResponse", function() { return CreateRecommenderConfigurationResponse; });
28947/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentReference", function() { return SegmentReference; });
28948/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SourceType", function() { return SourceType; });
28949/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return Type; });
28950/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function() { return SegmentGroup; });
28951/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Include", function() { return Include; });
28952/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentGroupList", function() { return SegmentGroupList; });
28953/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteSegmentRequest", function() { return WriteSegmentRequest; });
28954/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentRequest", function() { return CreateSegmentRequest; });
28955/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentImportResource", function() { return SegmentImportResource; });
28956/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return SegmentType; });
28957/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentResponse", function() { return SegmentResponse; });
28958/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentResponse", function() { return CreateSegmentResponse; });
28959/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateRequest", function() { return SMSTemplateRequest; });
28960/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateRequest", function() { return CreateSmsTemplateRequest; });
28961/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateResponse", function() { return CreateSmsTemplateResponse; });
28962/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateRequest", function() { return VoiceTemplateRequest; });
28963/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateRequest", function() { return CreateVoiceTemplateRequest; });
28964/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateResponse", function() { return CreateVoiceTemplateResponse; });
28965/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultMessage", function() { return DefaultMessage; });
28966/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationMessage", function() { return DefaultPushNotificationMessage; });
28967/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelRequest", function() { return DeleteAdmChannelRequest; });
28968/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelResponse", function() { return DeleteAdmChannelResponse; });
28969/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelRequest", function() { return DeleteApnsChannelRequest; });
28970/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelResponse", function() { return DeleteApnsChannelResponse; });
28971/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelRequest", function() { return DeleteApnsSandboxChannelRequest; });
28972/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelResponse", function() { return DeleteApnsSandboxChannelResponse; });
28973/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelRequest", function() { return DeleteApnsVoipChannelRequest; });
28974/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelResponse", function() { return DeleteApnsVoipChannelResponse; });
28975/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelRequest", function() { return DeleteApnsVoipSandboxChannelRequest; });
28976/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelResponse", function() { return DeleteApnsVoipSandboxChannelResponse; });
28977/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAppRequest", function() { return DeleteAppRequest; });
28978/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAppResponse", function() { return DeleteAppResponse; });
28979/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelRequest", function() { return DeleteBaiduChannelRequest; });
28980/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelResponse", function() { return DeleteBaiduChannelResponse; });
28981/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignRequest", function() { return DeleteCampaignRequest; });
28982/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignResponse", function() { return DeleteCampaignResponse; });
28983/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelRequest", function() { return DeleteEmailChannelRequest; });
28984/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailChannelResponse", function() { return EmailChannelResponse; });
28985/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelResponse", function() { return DeleteEmailChannelResponse; });
28986/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateRequest", function() { return DeleteEmailTemplateRequest; });
28987/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageBody", function() { return MessageBody; });
28988/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateResponse", function() { return DeleteEmailTemplateResponse; });
28989/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return DeleteEndpointRequest; });
28990/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointDemographic", function() { return EndpointDemographic; });
28991/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointLocation", function() { return EndpointLocation; });
28992/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointUser", function() { return EndpointUser; });
28993/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointResponse", function() { return EndpointResponse; });
28994/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return DeleteEndpointResponse; });
28995/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamRequest", function() { return DeleteEventStreamRequest; });
28996/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStream", function() { return EventStream; });
28997/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamResponse", function() { return DeleteEventStreamResponse; });
28998/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelRequest", function() { return DeleteGcmChannelRequest; });
28999/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GCMChannelResponse", function() { return GCMChannelResponse; });
29000/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelResponse", function() { return DeleteGcmChannelResponse; });
29001/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyRequest", function() { return DeleteJourneyRequest; });
29002/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyResponse", function() { return DeleteJourneyResponse; });
29003/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateRequest", function() { return DeletePushTemplateRequest; });
29004/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateResponse", function() { return DeletePushTemplateResponse; });
29005/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationRequest", function() { return DeleteRecommenderConfigurationRequest; });
29006/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationResponse", function() { return DeleteRecommenderConfigurationResponse; });
29007/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentRequest", function() { return DeleteSegmentRequest; });
29008/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentResponse", function() { return DeleteSegmentResponse; });
29009/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelRequest", function() { return DeleteSmsChannelRequest; });
29010/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSChannelResponse", function() { return SMSChannelResponse; });
29011/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelResponse", function() { return DeleteSmsChannelResponse; });
29012/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateRequest", function() { return DeleteSmsTemplateRequest; });
29013/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateResponse", function() { return DeleteSmsTemplateResponse; });
29014/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsRequest", function() { return DeleteUserEndpointsRequest; });
29015/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointsResponse", function() { return EndpointsResponse; });
29016/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsResponse", function() { return DeleteUserEndpointsResponse; });
29017/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelRequest", function() { return DeleteVoiceChannelRequest; });
29018/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelResponse", function() { return VoiceChannelResponse; });
29019/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelResponse", function() { return DeleteVoiceChannelResponse; });
29020/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateRequest", function() { return DeleteVoiceTemplateRequest; });
29021/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateResponse", function() { return DeleteVoiceTemplateResponse; });
29022/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStatus", function() { return DeliveryStatus; });
29023/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RawEmail", function() { return RawEmail; });
29024/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleEmailPart", function() { return SimpleEmailPart; });
29025/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleEmail", function() { return SimpleEmail; });
29026/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailMessage", function() { return EmailMessage; });
29027/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GCMMessage", function() { return GCMMessage; });
29028/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSMessage", function() { return SMSMessage; });
29029/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceMessage", function() { return VoiceMessage; });
29030/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectMessageConfiguration", function() { return DirectMessageConfiguration; });
29031/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailChannelRequest", function() { return EmailChannelRequest; });
29032/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateType", function() { return TemplateType; });
29033/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateResponse", function() { return EmailTemplateResponse; });
29034/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchItem", function() { return EndpointBatchItem; });
29035/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchRequest", function() { return EndpointBatchRequest; });
29036/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointItemResponse", function() { return EndpointItemResponse; });
29037/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointMessageResult", function() { return EndpointMessageResult; });
29038/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointRequest", function() { return EndpointRequest; });
29039/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointSendConfiguration", function() { return EndpointSendConfiguration; });
29040/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Session", function() { return Session; });
29041/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return Event; });
29042/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventItemResponse", function() { return EventItemResponse; });
29043/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PublicEndpoint", function() { return PublicEndpoint; });
29044/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsBatch", function() { return EventsBatch; });
29045/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsRequest", function() { return EventsRequest; });
29046/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItemResponse", function() { return ItemResponse; });
29047/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsResponse", function() { return EventsResponse; });
29048/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobsResponse", function() { return ExportJobsResponse; });
29049/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GCMChannelRequest", function() { return GCMChannelRequest; });
29050/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelRequest", function() { return GetAdmChannelRequest; });
29051/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelResponse", function() { return GetAdmChannelResponse; });
29052/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelRequest", function() { return GetApnsChannelRequest; });
29053/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelResponse", function() { return GetApnsChannelResponse; });
29054/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelRequest", function() { return GetApnsSandboxChannelRequest; });
29055/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelResponse", function() { return GetApnsSandboxChannelResponse; });
29056/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelRequest", function() { return GetApnsVoipChannelRequest; });
29057/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelResponse", function() { return GetApnsVoipChannelResponse; });
29058/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelRequest", function() { return GetApnsVoipSandboxChannelRequest; });
29059/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelResponse", function() { return GetApnsVoipSandboxChannelResponse; });
29060/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppRequest", function() { return GetAppRequest; });
29061/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppResponse", function() { return GetAppResponse; });
29062/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiRequest", function() { return GetApplicationDateRangeKpiRequest; });
29063/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiResponse", function() { return GetApplicationDateRangeKpiResponse; });
29064/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsRequest", function() { return GetApplicationSettingsRequest; });
29065/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsResponse", function() { return GetApplicationSettingsResponse; });
29066/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppsRequest", function() { return GetAppsRequest; });
29067/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppsResponse", function() { return GetAppsResponse; });
29068/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelRequest", function() { return GetBaiduChannelRequest; });
29069/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelResponse", function() { return GetBaiduChannelResponse; });
29070/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignRequest", function() { return GetCampaignRequest; });
29071/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignResponse", function() { return GetCampaignResponse; });
29072/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesRequest", function() { return GetCampaignActivitiesRequest; });
29073/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesResponse", function() { return GetCampaignActivitiesResponse; });
29074/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiRequest", function() { return GetCampaignDateRangeKpiRequest; });
29075/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiResponse", function() { return GetCampaignDateRangeKpiResponse; });
29076/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsRequest", function() { return GetCampaignsRequest; });
29077/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsResponse", function() { return GetCampaignsResponse; });
29078/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionRequest", function() { return GetCampaignVersionRequest; });
29079/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionResponse", function() { return GetCampaignVersionResponse; });
29080/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsRequest", function() { return GetCampaignVersionsRequest; });
29081/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsResponse", function() { return GetCampaignVersionsResponse; });
29082/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetChannelsRequest", function() { return GetChannelsRequest; });
29083/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetChannelsResponse", function() { return GetChannelsResponse; });
29084/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelRequest", function() { return GetEmailChannelRequest; });
29085/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelResponse", function() { return GetEmailChannelResponse; });
29086/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateRequest", function() { return GetEmailTemplateRequest; });
29087/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateResponse", function() { return GetEmailTemplateResponse; });
29088/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEndpointRequest", function() { return GetEndpointRequest; });
29089/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEndpointResponse", function() { return GetEndpointResponse; });
29090/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamRequest", function() { return GetEventStreamRequest; });
29091/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamResponse", function() { return GetEventStreamResponse; });
29092/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobRequest", function() { return GetExportJobRequest; });
29093/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobResponse", function() { return GetExportJobResponse; });
29094/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsRequest", function() { return GetExportJobsRequest; });
29095/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsResponse", function() { return GetExportJobsResponse; });
29096/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelRequest", function() { return GetGcmChannelRequest; });
29097/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelResponse", function() { return GetGcmChannelResponse; });
29098/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobRequest", function() { return GetImportJobRequest; });
29099/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobResponse", function() { return GetImportJobResponse; });
29100/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsRequest", function() { return GetImportJobsRequest; });
29101/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobsResponse", function() { return ImportJobsResponse; });
29102/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsResponse", function() { return GetImportJobsResponse; });
29103/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyRequest", function() { return GetJourneyRequest; });
29104/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyResponse", function() { return GetJourneyResponse; });
29105/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
29106
29107var __EndpointTypesElement;
29108(function (__EndpointTypesElement) {
29109 __EndpointTypesElement["ADM"] = "ADM";
29110 __EndpointTypesElement["APNS"] = "APNS";
29111 __EndpointTypesElement["APNS_SANDBOX"] = "APNS_SANDBOX";
29112 __EndpointTypesElement["APNS_VOIP"] = "APNS_VOIP";
29113 __EndpointTypesElement["APNS_VOIP_SANDBOX"] = "APNS_VOIP_SANDBOX";
29114 __EndpointTypesElement["BAIDU"] = "BAIDU";
29115 __EndpointTypesElement["CUSTOM"] = "CUSTOM";
29116 __EndpointTypesElement["EMAIL"] = "EMAIL";
29117 __EndpointTypesElement["GCM"] = "GCM";
29118 __EndpointTypesElement["PUSH"] = "PUSH";
29119 __EndpointTypesElement["SMS"] = "SMS";
29120 __EndpointTypesElement["VOICE"] = "VOICE";
29121})(__EndpointTypesElement || (__EndpointTypesElement = {}));
29122var Action;
29123(function (Action) {
29124 Action["DEEP_LINK"] = "DEEP_LINK";
29125 Action["OPEN_APP"] = "OPEN_APP";
29126 Action["URL"] = "URL";
29127})(Action || (Action = {}));
29128var ActivityResponse;
29129(function (ActivityResponse) {
29130 ActivityResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29131})(ActivityResponse || (ActivityResponse = {}));
29132var ActivitiesResponse;
29133(function (ActivitiesResponse) {
29134 ActivitiesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29135})(ActivitiesResponse || (ActivitiesResponse = {}));
29136var AttributeType;
29137(function (AttributeType) {
29138 AttributeType["EXCLUSIVE"] = "EXCLUSIVE";
29139 AttributeType["INCLUSIVE"] = "INCLUSIVE";
29140})(AttributeType || (AttributeType = {}));
29141var AttributeDimension;
29142(function (AttributeDimension) {
29143 AttributeDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29144})(AttributeDimension || (AttributeDimension = {}));
29145var DimensionType;
29146(function (DimensionType) {
29147 DimensionType["EXCLUSIVE"] = "EXCLUSIVE";
29148 DimensionType["INCLUSIVE"] = "INCLUSIVE";
29149})(DimensionType || (DimensionType = {}));
29150var SetDimension;
29151(function (SetDimension) {
29152 SetDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29153})(SetDimension || (SetDimension = {}));
29154var MetricDimension;
29155(function (MetricDimension) {
29156 MetricDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29157})(MetricDimension || (MetricDimension = {}));
29158var EventDimensions;
29159(function (EventDimensions) {
29160 EventDimensions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29161})(EventDimensions || (EventDimensions = {}));
29162var EventCondition;
29163(function (EventCondition) {
29164 EventCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29165})(EventCondition || (EventCondition = {}));
29166var SegmentCondition;
29167(function (SegmentCondition) {
29168 SegmentCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29169})(SegmentCondition || (SegmentCondition = {}));
29170var Duration;
29171(function (Duration) {
29172 Duration["DAY_14"] = "DAY_14";
29173 Duration["DAY_30"] = "DAY_30";
29174 Duration["DAY_7"] = "DAY_7";
29175 Duration["HR_24"] = "HR_24";
29176})(Duration || (Duration = {}));
29177var RecencyType;
29178(function (RecencyType) {
29179 RecencyType["ACTIVE"] = "ACTIVE";
29180 RecencyType["INACTIVE"] = "INACTIVE";
29181})(RecencyType || (RecencyType = {}));
29182var RecencyDimension;
29183(function (RecencyDimension) {
29184 RecencyDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29185})(RecencyDimension || (RecencyDimension = {}));
29186var SegmentBehaviors;
29187(function (SegmentBehaviors) {
29188 SegmentBehaviors.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29189})(SegmentBehaviors || (SegmentBehaviors = {}));
29190var SegmentDemographics;
29191(function (SegmentDemographics) {
29192 SegmentDemographics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29193})(SegmentDemographics || (SegmentDemographics = {}));
29194var GPSCoordinates;
29195(function (GPSCoordinates) {
29196 GPSCoordinates.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29197})(GPSCoordinates || (GPSCoordinates = {}));
29198var GPSPointDimension;
29199(function (GPSPointDimension) {
29200 GPSPointDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29201})(GPSPointDimension || (GPSPointDimension = {}));
29202var SegmentLocation;
29203(function (SegmentLocation) {
29204 SegmentLocation.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29205})(SegmentLocation || (SegmentLocation = {}));
29206var SegmentDimensions;
29207(function (SegmentDimensions) {
29208 SegmentDimensions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29209})(SegmentDimensions || (SegmentDimensions = {}));
29210var SimpleCondition;
29211(function (SimpleCondition) {
29212 SimpleCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29213})(SimpleCondition || (SimpleCondition = {}));
29214var Operator;
29215(function (Operator) {
29216 Operator["ALL"] = "ALL";
29217 Operator["ANY"] = "ANY";
29218})(Operator || (Operator = {}));
29219var Condition;
29220(function (Condition) {
29221 Condition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29222})(Condition || (Condition = {}));
29223var WaitTime;
29224(function (WaitTime) {
29225 WaitTime.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29226})(WaitTime || (WaitTime = {}));
29227var ConditionalSplitActivity;
29228(function (ConditionalSplitActivity) {
29229 ConditionalSplitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29230})(ConditionalSplitActivity || (ConditionalSplitActivity = {}));
29231var JourneyCustomMessage;
29232(function (JourneyCustomMessage) {
29233 JourneyCustomMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29234})(JourneyCustomMessage || (JourneyCustomMessage = {}));
29235var CustomMessageActivity;
29236(function (CustomMessageActivity) {
29237 CustomMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29238})(CustomMessageActivity || (CustomMessageActivity = {}));
29239var JourneyEmailMessage;
29240(function (JourneyEmailMessage) {
29241 JourneyEmailMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29242})(JourneyEmailMessage || (JourneyEmailMessage = {}));
29243var EmailMessageActivity;
29244(function (EmailMessageActivity) {
29245 EmailMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29246})(EmailMessageActivity || (EmailMessageActivity = {}));
29247var HoldoutActivity;
29248(function (HoldoutActivity) {
29249 HoldoutActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29250})(HoldoutActivity || (HoldoutActivity = {}));
29251var MultiConditionalBranch;
29252(function (MultiConditionalBranch) {
29253 MultiConditionalBranch.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29254})(MultiConditionalBranch || (MultiConditionalBranch = {}));
29255var MultiConditionalSplitActivity;
29256(function (MultiConditionalSplitActivity) {
29257 MultiConditionalSplitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29258})(MultiConditionalSplitActivity || (MultiConditionalSplitActivity = {}));
29259var JourneyPushMessage;
29260(function (JourneyPushMessage) {
29261 JourneyPushMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29262})(JourneyPushMessage || (JourneyPushMessage = {}));
29263var PushMessageActivity;
29264(function (PushMessageActivity) {
29265 PushMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29266})(PushMessageActivity || (PushMessageActivity = {}));
29267var RandomSplitEntry;
29268(function (RandomSplitEntry) {
29269 RandomSplitEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29270})(RandomSplitEntry || (RandomSplitEntry = {}));
29271var RandomSplitActivity;
29272(function (RandomSplitActivity) {
29273 RandomSplitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29274})(RandomSplitActivity || (RandomSplitActivity = {}));
29275var MessageType;
29276(function (MessageType) {
29277 MessageType["PROMOTIONAL"] = "PROMOTIONAL";
29278 MessageType["TRANSACTIONAL"] = "TRANSACTIONAL";
29279})(MessageType || (MessageType = {}));
29280var JourneySMSMessage;
29281(function (JourneySMSMessage) {
29282 JourneySMSMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29283})(JourneySMSMessage || (JourneySMSMessage = {}));
29284var SMSMessageActivity;
29285(function (SMSMessageActivity) {
29286 SMSMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29287})(SMSMessageActivity || (SMSMessageActivity = {}));
29288var WaitActivity;
29289(function (WaitActivity) {
29290 WaitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29291})(WaitActivity || (WaitActivity = {}));
29292var Activity;
29293(function (Activity) {
29294 Activity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29295})(Activity || (Activity = {}));
29296var ChannelType;
29297(function (ChannelType) {
29298 ChannelType["ADM"] = "ADM";
29299 ChannelType["APNS"] = "APNS";
29300 ChannelType["APNS_SANDBOX"] = "APNS_SANDBOX";
29301 ChannelType["APNS_VOIP"] = "APNS_VOIP";
29302 ChannelType["APNS_VOIP_SANDBOX"] = "APNS_VOIP_SANDBOX";
29303 ChannelType["BAIDU"] = "BAIDU";
29304 ChannelType["CUSTOM"] = "CUSTOM";
29305 ChannelType["EMAIL"] = "EMAIL";
29306 ChannelType["GCM"] = "GCM";
29307 ChannelType["PUSH"] = "PUSH";
29308 ChannelType["SMS"] = "SMS";
29309 ChannelType["VOICE"] = "VOICE";
29310})(ChannelType || (ChannelType = {}));
29311var AddressConfiguration;
29312(function (AddressConfiguration) {
29313 AddressConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29314})(AddressConfiguration || (AddressConfiguration = {}));
29315var ADMChannelRequest;
29316(function (ADMChannelRequest) {
29317 ADMChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29318})(ADMChannelRequest || (ADMChannelRequest = {}));
29319var ADMChannelResponse;
29320(function (ADMChannelResponse) {
29321 ADMChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29322})(ADMChannelResponse || (ADMChannelResponse = {}));
29323var ADMMessage;
29324(function (ADMMessage) {
29325 ADMMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29326})(ADMMessage || (ADMMessage = {}));
29327var AndroidPushNotificationTemplate;
29328(function (AndroidPushNotificationTemplate) {
29329 AndroidPushNotificationTemplate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29330})(AndroidPushNotificationTemplate || (AndroidPushNotificationTemplate = {}));
29331var APNSChannelRequest;
29332(function (APNSChannelRequest) {
29333 APNSChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29334})(APNSChannelRequest || (APNSChannelRequest = {}));
29335var APNSChannelResponse;
29336(function (APNSChannelResponse) {
29337 APNSChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29338})(APNSChannelResponse || (APNSChannelResponse = {}));
29339var APNSMessage;
29340(function (APNSMessage) {
29341 APNSMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29342})(APNSMessage || (APNSMessage = {}));
29343var APNSPushNotificationTemplate;
29344(function (APNSPushNotificationTemplate) {
29345 APNSPushNotificationTemplate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29346})(APNSPushNotificationTemplate || (APNSPushNotificationTemplate = {}));
29347var APNSSandboxChannelRequest;
29348(function (APNSSandboxChannelRequest) {
29349 APNSSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29350})(APNSSandboxChannelRequest || (APNSSandboxChannelRequest = {}));
29351var APNSSandboxChannelResponse;
29352(function (APNSSandboxChannelResponse) {
29353 APNSSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29354})(APNSSandboxChannelResponse || (APNSSandboxChannelResponse = {}));
29355var APNSVoipChannelRequest;
29356(function (APNSVoipChannelRequest) {
29357 APNSVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29358})(APNSVoipChannelRequest || (APNSVoipChannelRequest = {}));
29359var APNSVoipChannelResponse;
29360(function (APNSVoipChannelResponse) {
29361 APNSVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29362})(APNSVoipChannelResponse || (APNSVoipChannelResponse = {}));
29363var APNSVoipSandboxChannelRequest;
29364(function (APNSVoipSandboxChannelRequest) {
29365 APNSVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29366})(APNSVoipSandboxChannelRequest || (APNSVoipSandboxChannelRequest = {}));
29367var APNSVoipSandboxChannelResponse;
29368(function (APNSVoipSandboxChannelResponse) {
29369 APNSVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29370})(APNSVoipSandboxChannelResponse || (APNSVoipSandboxChannelResponse = {}));
29371var ResultRowValue;
29372(function (ResultRowValue) {
29373 ResultRowValue.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29374})(ResultRowValue || (ResultRowValue = {}));
29375var ResultRow;
29376(function (ResultRow) {
29377 ResultRow.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29378})(ResultRow || (ResultRow = {}));
29379var BaseKpiResult;
29380(function (BaseKpiResult) {
29381 BaseKpiResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29382})(BaseKpiResult || (BaseKpiResult = {}));
29383var ApplicationDateRangeKpiResponse;
29384(function (ApplicationDateRangeKpiResponse) {
29385 ApplicationDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29386})(ApplicationDateRangeKpiResponse || (ApplicationDateRangeKpiResponse = {}));
29387var ApplicationResponse;
29388(function (ApplicationResponse) {
29389 ApplicationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29390})(ApplicationResponse || (ApplicationResponse = {}));
29391var Mode;
29392(function (Mode) {
29393 Mode["DELIVERY"] = "DELIVERY";
29394 Mode["FILTER"] = "FILTER";
29395})(Mode || (Mode = {}));
29396var CampaignHook;
29397(function (CampaignHook) {
29398 CampaignHook.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29399})(CampaignHook || (CampaignHook = {}));
29400var CampaignLimits;
29401(function (CampaignLimits) {
29402 CampaignLimits.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29403})(CampaignLimits || (CampaignLimits = {}));
29404var QuietTime;
29405(function (QuietTime) {
29406 QuietTime.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29407})(QuietTime || (QuietTime = {}));
29408var ApplicationSettingsResource;
29409(function (ApplicationSettingsResource) {
29410 ApplicationSettingsResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29411})(ApplicationSettingsResource || (ApplicationSettingsResource = {}));
29412var ApplicationsResponse;
29413(function (ApplicationsResponse) {
29414 ApplicationsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29415})(ApplicationsResponse || (ApplicationsResponse = {}));
29416var AttributesResource;
29417(function (AttributesResource) {
29418 AttributesResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29419})(AttributesResource || (AttributesResource = {}));
29420var BadRequestException;
29421(function (BadRequestException) {
29422 BadRequestException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29423})(BadRequestException || (BadRequestException = {}));
29424var BaiduChannelRequest;
29425(function (BaiduChannelRequest) {
29426 BaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29427})(BaiduChannelRequest || (BaiduChannelRequest = {}));
29428var BaiduChannelResponse;
29429(function (BaiduChannelResponse) {
29430 BaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29431})(BaiduChannelResponse || (BaiduChannelResponse = {}));
29432var BaiduMessage;
29433(function (BaiduMessage) {
29434 BaiduMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29435})(BaiduMessage || (BaiduMessage = {}));
29436var CampaignCustomMessage;
29437(function (CampaignCustomMessage) {
29438 CampaignCustomMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29439})(CampaignCustomMessage || (CampaignCustomMessage = {}));
29440var CampaignDateRangeKpiResponse;
29441(function (CampaignDateRangeKpiResponse) {
29442 CampaignDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29443})(CampaignDateRangeKpiResponse || (CampaignDateRangeKpiResponse = {}));
29444var CampaignEmailMessage;
29445(function (CampaignEmailMessage) {
29446 CampaignEmailMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29447})(CampaignEmailMessage || (CampaignEmailMessage = {}));
29448var FilterType;
29449(function (FilterType) {
29450 FilterType["ENDPOINT"] = "ENDPOINT";
29451 FilterType["SYSTEM"] = "SYSTEM";
29452})(FilterType || (FilterType = {}));
29453var CampaignEventFilter;
29454(function (CampaignEventFilter) {
29455 CampaignEventFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29456})(CampaignEventFilter || (CampaignEventFilter = {}));
29457var CustomDeliveryConfiguration;
29458(function (CustomDeliveryConfiguration) {
29459 CustomDeliveryConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29460})(CustomDeliveryConfiguration || (CustomDeliveryConfiguration = {}));
29461var Message;
29462(function (Message) {
29463 Message.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29464})(Message || (Message = {}));
29465var CampaignSmsMessage;
29466(function (CampaignSmsMessage) {
29467 CampaignSmsMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29468})(CampaignSmsMessage || (CampaignSmsMessage = {}));
29469var MessageConfiguration;
29470(function (MessageConfiguration) {
29471 MessageConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29472})(MessageConfiguration || (MessageConfiguration = {}));
29473var Frequency;
29474(function (Frequency) {
29475 Frequency["DAILY"] = "DAILY";
29476 Frequency["EVENT"] = "EVENT";
29477 Frequency["HOURLY"] = "HOURLY";
29478 Frequency["MONTHLY"] = "MONTHLY";
29479 Frequency["ONCE"] = "ONCE";
29480 Frequency["WEEKLY"] = "WEEKLY";
29481})(Frequency || (Frequency = {}));
29482var Schedule;
29483(function (Schedule) {
29484 Schedule.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29485})(Schedule || (Schedule = {}));
29486var CampaignStatus;
29487(function (CampaignStatus) {
29488 CampaignStatus["COMPLETED"] = "COMPLETED";
29489 CampaignStatus["DELETED"] = "DELETED";
29490 CampaignStatus["EXECUTING"] = "EXECUTING";
29491 CampaignStatus["INVALID"] = "INVALID";
29492 CampaignStatus["PAUSED"] = "PAUSED";
29493 CampaignStatus["PENDING_NEXT_RUN"] = "PENDING_NEXT_RUN";
29494 CampaignStatus["SCHEDULED"] = "SCHEDULED";
29495})(CampaignStatus || (CampaignStatus = {}));
29496var CampaignState;
29497(function (CampaignState) {
29498 CampaignState.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29499})(CampaignState || (CampaignState = {}));
29500var Template;
29501(function (Template) {
29502 Template.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29503})(Template || (Template = {}));
29504var TemplateConfiguration;
29505(function (TemplateConfiguration) {
29506 TemplateConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29507})(TemplateConfiguration || (TemplateConfiguration = {}));
29508var TreatmentResource;
29509(function (TreatmentResource) {
29510 TreatmentResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29511})(TreatmentResource || (TreatmentResource = {}));
29512var CampaignResponse;
29513(function (CampaignResponse) {
29514 CampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29515})(CampaignResponse || (CampaignResponse = {}));
29516var CampaignsResponse;
29517(function (CampaignsResponse) {
29518 CampaignsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29519})(CampaignsResponse || (CampaignsResponse = {}));
29520var ChannelResponse;
29521(function (ChannelResponse) {
29522 ChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29523})(ChannelResponse || (ChannelResponse = {}));
29524var ChannelsResponse;
29525(function (ChannelsResponse) {
29526 ChannelsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29527})(ChannelsResponse || (ChannelsResponse = {}));
29528var ConflictException;
29529(function (ConflictException) {
29530 ConflictException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29531})(ConflictException || (ConflictException = {}));
29532var CreateApplicationRequest;
29533(function (CreateApplicationRequest) {
29534 CreateApplicationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29535})(CreateApplicationRequest || (CreateApplicationRequest = {}));
29536var CreateAppRequest;
29537(function (CreateAppRequest) {
29538 CreateAppRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29539})(CreateAppRequest || (CreateAppRequest = {}));
29540var CreateAppResponse;
29541(function (CreateAppResponse) {
29542 CreateAppResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29543})(CreateAppResponse || (CreateAppResponse = {}));
29544var ForbiddenException;
29545(function (ForbiddenException) {
29546 ForbiddenException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29547})(ForbiddenException || (ForbiddenException = {}));
29548var InternalServerErrorException;
29549(function (InternalServerErrorException) {
29550 InternalServerErrorException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29551})(InternalServerErrorException || (InternalServerErrorException = {}));
29552var MethodNotAllowedException;
29553(function (MethodNotAllowedException) {
29554 MethodNotAllowedException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29555})(MethodNotAllowedException || (MethodNotAllowedException = {}));
29556var NotFoundException;
29557(function (NotFoundException) {
29558 NotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29559})(NotFoundException || (NotFoundException = {}));
29560var PayloadTooLargeException;
29561(function (PayloadTooLargeException) {
29562 PayloadTooLargeException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29563})(PayloadTooLargeException || (PayloadTooLargeException = {}));
29564var TooManyRequestsException;
29565(function (TooManyRequestsException) {
29566 TooManyRequestsException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29567})(TooManyRequestsException || (TooManyRequestsException = {}));
29568var WriteTreatmentResource;
29569(function (WriteTreatmentResource) {
29570 WriteTreatmentResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29571})(WriteTreatmentResource || (WriteTreatmentResource = {}));
29572var WriteCampaignRequest;
29573(function (WriteCampaignRequest) {
29574 WriteCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29575})(WriteCampaignRequest || (WriteCampaignRequest = {}));
29576var CreateCampaignRequest;
29577(function (CreateCampaignRequest) {
29578 CreateCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29579})(CreateCampaignRequest || (CreateCampaignRequest = {}));
29580var CreateCampaignResponse;
29581(function (CreateCampaignResponse) {
29582 CreateCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29583})(CreateCampaignResponse || (CreateCampaignResponse = {}));
29584var EmailTemplateRequest;
29585(function (EmailTemplateRequest) {
29586 EmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29587})(EmailTemplateRequest || (EmailTemplateRequest = {}));
29588var CreateEmailTemplateRequest;
29589(function (CreateEmailTemplateRequest) {
29590 CreateEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29591})(CreateEmailTemplateRequest || (CreateEmailTemplateRequest = {}));
29592var CreateTemplateMessageBody;
29593(function (CreateTemplateMessageBody) {
29594 CreateTemplateMessageBody.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29595})(CreateTemplateMessageBody || (CreateTemplateMessageBody = {}));
29596var CreateEmailTemplateResponse;
29597(function (CreateEmailTemplateResponse) {
29598 CreateEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29599})(CreateEmailTemplateResponse || (CreateEmailTemplateResponse = {}));
29600var ExportJobRequest;
29601(function (ExportJobRequest) {
29602 ExportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29603})(ExportJobRequest || (ExportJobRequest = {}));
29604var CreateExportJobRequest;
29605(function (CreateExportJobRequest) {
29606 CreateExportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29607})(CreateExportJobRequest || (CreateExportJobRequest = {}));
29608var ExportJobResource;
29609(function (ExportJobResource) {
29610 ExportJobResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29611})(ExportJobResource || (ExportJobResource = {}));
29612var JobStatus;
29613(function (JobStatus) {
29614 JobStatus["COMPLETED"] = "COMPLETED";
29615 JobStatus["COMPLETING"] = "COMPLETING";
29616 JobStatus["CREATED"] = "CREATED";
29617 JobStatus["FAILED"] = "FAILED";
29618 JobStatus["FAILING"] = "FAILING";
29619 JobStatus["INITIALIZING"] = "INITIALIZING";
29620 JobStatus["PENDING_JOB"] = "PENDING_JOB";
29621 JobStatus["PREPARING_FOR_INITIALIZATION"] = "PREPARING_FOR_INITIALIZATION";
29622 JobStatus["PROCESSING"] = "PROCESSING";
29623})(JobStatus || (JobStatus = {}));
29624var ExportJobResponse;
29625(function (ExportJobResponse) {
29626 ExportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29627})(ExportJobResponse || (ExportJobResponse = {}));
29628var CreateExportJobResponse;
29629(function (CreateExportJobResponse) {
29630 CreateExportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29631})(CreateExportJobResponse || (CreateExportJobResponse = {}));
29632var Format;
29633(function (Format) {
29634 Format["CSV"] = "CSV";
29635 Format["JSON"] = "JSON";
29636})(Format || (Format = {}));
29637var ImportJobRequest;
29638(function (ImportJobRequest) {
29639 ImportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29640})(ImportJobRequest || (ImportJobRequest = {}));
29641var CreateImportJobRequest;
29642(function (CreateImportJobRequest) {
29643 CreateImportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29644})(CreateImportJobRequest || (CreateImportJobRequest = {}));
29645var ImportJobResource;
29646(function (ImportJobResource) {
29647 ImportJobResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29648})(ImportJobResource || (ImportJobResource = {}));
29649var ImportJobResponse;
29650(function (ImportJobResponse) {
29651 ImportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29652})(ImportJobResponse || (ImportJobResponse = {}));
29653var CreateImportJobResponse;
29654(function (CreateImportJobResponse) {
29655 CreateImportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29656})(CreateImportJobResponse || (CreateImportJobResponse = {}));
29657var JourneyLimits;
29658(function (JourneyLimits) {
29659 JourneyLimits.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29660})(JourneyLimits || (JourneyLimits = {}));
29661var JourneySchedule;
29662(function (JourneySchedule) {
29663 JourneySchedule.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29664})(JourneySchedule || (JourneySchedule = {}));
29665var EventFilter;
29666(function (EventFilter) {
29667 EventFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29668})(EventFilter || (EventFilter = {}));
29669var EventStartCondition;
29670(function (EventStartCondition) {
29671 EventStartCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29672})(EventStartCondition || (EventStartCondition = {}));
29673var StartCondition;
29674(function (StartCondition) {
29675 StartCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29676})(StartCondition || (StartCondition = {}));
29677var State;
29678(function (State) {
29679 State["ACTIVE"] = "ACTIVE";
29680 State["CANCELLED"] = "CANCELLED";
29681 State["CLOSED"] = "CLOSED";
29682 State["COMPLETED"] = "COMPLETED";
29683 State["DRAFT"] = "DRAFT";
29684})(State || (State = {}));
29685var WriteJourneyRequest;
29686(function (WriteJourneyRequest) {
29687 WriteJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29688})(WriteJourneyRequest || (WriteJourneyRequest = {}));
29689var CreateJourneyRequest;
29690(function (CreateJourneyRequest) {
29691 CreateJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29692})(CreateJourneyRequest || (CreateJourneyRequest = {}));
29693var JourneyResponse;
29694(function (JourneyResponse) {
29695 JourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29696})(JourneyResponse || (JourneyResponse = {}));
29697var CreateJourneyResponse;
29698(function (CreateJourneyResponse) {
29699 CreateJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29700})(CreateJourneyResponse || (CreateJourneyResponse = {}));
29701var DefaultPushNotificationTemplate;
29702(function (DefaultPushNotificationTemplate) {
29703 DefaultPushNotificationTemplate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29704})(DefaultPushNotificationTemplate || (DefaultPushNotificationTemplate = {}));
29705var PushNotificationTemplateRequest;
29706(function (PushNotificationTemplateRequest) {
29707 PushNotificationTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29708})(PushNotificationTemplateRequest || (PushNotificationTemplateRequest = {}));
29709var CreatePushTemplateRequest;
29710(function (CreatePushTemplateRequest) {
29711 CreatePushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29712})(CreatePushTemplateRequest || (CreatePushTemplateRequest = {}));
29713var CreatePushTemplateResponse;
29714(function (CreatePushTemplateResponse) {
29715 CreatePushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29716})(CreatePushTemplateResponse || (CreatePushTemplateResponse = {}));
29717var CreateRecommenderConfigurationShape;
29718(function (CreateRecommenderConfigurationShape) {
29719 CreateRecommenderConfigurationShape.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29720})(CreateRecommenderConfigurationShape || (CreateRecommenderConfigurationShape = {}));
29721var CreateRecommenderConfigurationRequest;
29722(function (CreateRecommenderConfigurationRequest) {
29723 CreateRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29724})(CreateRecommenderConfigurationRequest || (CreateRecommenderConfigurationRequest = {}));
29725var RecommenderConfigurationResponse;
29726(function (RecommenderConfigurationResponse) {
29727 RecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29728})(RecommenderConfigurationResponse || (RecommenderConfigurationResponse = {}));
29729var CreateRecommenderConfigurationResponse;
29730(function (CreateRecommenderConfigurationResponse) {
29731 CreateRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29732})(CreateRecommenderConfigurationResponse || (CreateRecommenderConfigurationResponse = {}));
29733var SegmentReference;
29734(function (SegmentReference) {
29735 SegmentReference.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29736})(SegmentReference || (SegmentReference = {}));
29737var SourceType;
29738(function (SourceType) {
29739 SourceType["ALL"] = "ALL";
29740 SourceType["ANY"] = "ANY";
29741 SourceType["NONE"] = "NONE";
29742})(SourceType || (SourceType = {}));
29743var Type;
29744(function (Type) {
29745 Type["ALL"] = "ALL";
29746 Type["ANY"] = "ANY";
29747 Type["NONE"] = "NONE";
29748})(Type || (Type = {}));
29749var SegmentGroup;
29750(function (SegmentGroup) {
29751 SegmentGroup.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29752})(SegmentGroup || (SegmentGroup = {}));
29753var Include;
29754(function (Include) {
29755 Include["ALL"] = "ALL";
29756 Include["ANY"] = "ANY";
29757 Include["NONE"] = "NONE";
29758})(Include || (Include = {}));
29759var SegmentGroupList;
29760(function (SegmentGroupList) {
29761 SegmentGroupList.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29762})(SegmentGroupList || (SegmentGroupList = {}));
29763var WriteSegmentRequest;
29764(function (WriteSegmentRequest) {
29765 WriteSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29766})(WriteSegmentRequest || (WriteSegmentRequest = {}));
29767var CreateSegmentRequest;
29768(function (CreateSegmentRequest) {
29769 CreateSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29770})(CreateSegmentRequest || (CreateSegmentRequest = {}));
29771var SegmentImportResource;
29772(function (SegmentImportResource) {
29773 SegmentImportResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29774})(SegmentImportResource || (SegmentImportResource = {}));
29775var SegmentType;
29776(function (SegmentType) {
29777 SegmentType["DIMENSIONAL"] = "DIMENSIONAL";
29778 SegmentType["IMPORT"] = "IMPORT";
29779})(SegmentType || (SegmentType = {}));
29780var SegmentResponse;
29781(function (SegmentResponse) {
29782 SegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29783})(SegmentResponse || (SegmentResponse = {}));
29784var CreateSegmentResponse;
29785(function (CreateSegmentResponse) {
29786 CreateSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29787})(CreateSegmentResponse || (CreateSegmentResponse = {}));
29788var SMSTemplateRequest;
29789(function (SMSTemplateRequest) {
29790 SMSTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29791})(SMSTemplateRequest || (SMSTemplateRequest = {}));
29792var CreateSmsTemplateRequest;
29793(function (CreateSmsTemplateRequest) {
29794 CreateSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29795})(CreateSmsTemplateRequest || (CreateSmsTemplateRequest = {}));
29796var CreateSmsTemplateResponse;
29797(function (CreateSmsTemplateResponse) {
29798 CreateSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29799})(CreateSmsTemplateResponse || (CreateSmsTemplateResponse = {}));
29800var VoiceTemplateRequest;
29801(function (VoiceTemplateRequest) {
29802 VoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29803})(VoiceTemplateRequest || (VoiceTemplateRequest = {}));
29804var CreateVoiceTemplateRequest;
29805(function (CreateVoiceTemplateRequest) {
29806 CreateVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29807})(CreateVoiceTemplateRequest || (CreateVoiceTemplateRequest = {}));
29808var CreateVoiceTemplateResponse;
29809(function (CreateVoiceTemplateResponse) {
29810 CreateVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29811})(CreateVoiceTemplateResponse || (CreateVoiceTemplateResponse = {}));
29812var DefaultMessage;
29813(function (DefaultMessage) {
29814 DefaultMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29815})(DefaultMessage || (DefaultMessage = {}));
29816var DefaultPushNotificationMessage;
29817(function (DefaultPushNotificationMessage) {
29818 DefaultPushNotificationMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29819})(DefaultPushNotificationMessage || (DefaultPushNotificationMessage = {}));
29820var DeleteAdmChannelRequest;
29821(function (DeleteAdmChannelRequest) {
29822 DeleteAdmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29823})(DeleteAdmChannelRequest || (DeleteAdmChannelRequest = {}));
29824var DeleteAdmChannelResponse;
29825(function (DeleteAdmChannelResponse) {
29826 DeleteAdmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29827})(DeleteAdmChannelResponse || (DeleteAdmChannelResponse = {}));
29828var DeleteApnsChannelRequest;
29829(function (DeleteApnsChannelRequest) {
29830 DeleteApnsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29831})(DeleteApnsChannelRequest || (DeleteApnsChannelRequest = {}));
29832var DeleteApnsChannelResponse;
29833(function (DeleteApnsChannelResponse) {
29834 DeleteApnsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29835})(DeleteApnsChannelResponse || (DeleteApnsChannelResponse = {}));
29836var DeleteApnsSandboxChannelRequest;
29837(function (DeleteApnsSandboxChannelRequest) {
29838 DeleteApnsSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29839})(DeleteApnsSandboxChannelRequest || (DeleteApnsSandboxChannelRequest = {}));
29840var DeleteApnsSandboxChannelResponse;
29841(function (DeleteApnsSandboxChannelResponse) {
29842 DeleteApnsSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29843})(DeleteApnsSandboxChannelResponse || (DeleteApnsSandboxChannelResponse = {}));
29844var DeleteApnsVoipChannelRequest;
29845(function (DeleteApnsVoipChannelRequest) {
29846 DeleteApnsVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29847})(DeleteApnsVoipChannelRequest || (DeleteApnsVoipChannelRequest = {}));
29848var DeleteApnsVoipChannelResponse;
29849(function (DeleteApnsVoipChannelResponse) {
29850 DeleteApnsVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29851})(DeleteApnsVoipChannelResponse || (DeleteApnsVoipChannelResponse = {}));
29852var DeleteApnsVoipSandboxChannelRequest;
29853(function (DeleteApnsVoipSandboxChannelRequest) {
29854 DeleteApnsVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29855})(DeleteApnsVoipSandboxChannelRequest || (DeleteApnsVoipSandboxChannelRequest = {}));
29856var DeleteApnsVoipSandboxChannelResponse;
29857(function (DeleteApnsVoipSandboxChannelResponse) {
29858 DeleteApnsVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29859})(DeleteApnsVoipSandboxChannelResponse || (DeleteApnsVoipSandboxChannelResponse = {}));
29860var DeleteAppRequest;
29861(function (DeleteAppRequest) {
29862 DeleteAppRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29863})(DeleteAppRequest || (DeleteAppRequest = {}));
29864var DeleteAppResponse;
29865(function (DeleteAppResponse) {
29866 DeleteAppResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29867})(DeleteAppResponse || (DeleteAppResponse = {}));
29868var DeleteBaiduChannelRequest;
29869(function (DeleteBaiduChannelRequest) {
29870 DeleteBaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29871})(DeleteBaiduChannelRequest || (DeleteBaiduChannelRequest = {}));
29872var DeleteBaiduChannelResponse;
29873(function (DeleteBaiduChannelResponse) {
29874 DeleteBaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29875})(DeleteBaiduChannelResponse || (DeleteBaiduChannelResponse = {}));
29876var DeleteCampaignRequest;
29877(function (DeleteCampaignRequest) {
29878 DeleteCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29879})(DeleteCampaignRequest || (DeleteCampaignRequest = {}));
29880var DeleteCampaignResponse;
29881(function (DeleteCampaignResponse) {
29882 DeleteCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29883})(DeleteCampaignResponse || (DeleteCampaignResponse = {}));
29884var DeleteEmailChannelRequest;
29885(function (DeleteEmailChannelRequest) {
29886 DeleteEmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29887})(DeleteEmailChannelRequest || (DeleteEmailChannelRequest = {}));
29888var EmailChannelResponse;
29889(function (EmailChannelResponse) {
29890 EmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29891})(EmailChannelResponse || (EmailChannelResponse = {}));
29892var DeleteEmailChannelResponse;
29893(function (DeleteEmailChannelResponse) {
29894 DeleteEmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29895})(DeleteEmailChannelResponse || (DeleteEmailChannelResponse = {}));
29896var DeleteEmailTemplateRequest;
29897(function (DeleteEmailTemplateRequest) {
29898 DeleteEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29899})(DeleteEmailTemplateRequest || (DeleteEmailTemplateRequest = {}));
29900var MessageBody;
29901(function (MessageBody) {
29902 MessageBody.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29903})(MessageBody || (MessageBody = {}));
29904var DeleteEmailTemplateResponse;
29905(function (DeleteEmailTemplateResponse) {
29906 DeleteEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29907})(DeleteEmailTemplateResponse || (DeleteEmailTemplateResponse = {}));
29908var DeleteEndpointRequest;
29909(function (DeleteEndpointRequest) {
29910 DeleteEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29911})(DeleteEndpointRequest || (DeleteEndpointRequest = {}));
29912var EndpointDemographic;
29913(function (EndpointDemographic) {
29914 EndpointDemographic.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29915})(EndpointDemographic || (EndpointDemographic = {}));
29916var EndpointLocation;
29917(function (EndpointLocation) {
29918 EndpointLocation.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29919})(EndpointLocation || (EndpointLocation = {}));
29920var EndpointUser;
29921(function (EndpointUser) {
29922 EndpointUser.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29923})(EndpointUser || (EndpointUser = {}));
29924var EndpointResponse;
29925(function (EndpointResponse) {
29926 EndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29927})(EndpointResponse || (EndpointResponse = {}));
29928var DeleteEndpointResponse;
29929(function (DeleteEndpointResponse) {
29930 DeleteEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29931})(DeleteEndpointResponse || (DeleteEndpointResponse = {}));
29932var DeleteEventStreamRequest;
29933(function (DeleteEventStreamRequest) {
29934 DeleteEventStreamRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29935})(DeleteEventStreamRequest || (DeleteEventStreamRequest = {}));
29936var EventStream;
29937(function (EventStream) {
29938 EventStream.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29939})(EventStream || (EventStream = {}));
29940var DeleteEventStreamResponse;
29941(function (DeleteEventStreamResponse) {
29942 DeleteEventStreamResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29943})(DeleteEventStreamResponse || (DeleteEventStreamResponse = {}));
29944var DeleteGcmChannelRequest;
29945(function (DeleteGcmChannelRequest) {
29946 DeleteGcmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29947})(DeleteGcmChannelRequest || (DeleteGcmChannelRequest = {}));
29948var GCMChannelResponse;
29949(function (GCMChannelResponse) {
29950 GCMChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29951})(GCMChannelResponse || (GCMChannelResponse = {}));
29952var DeleteGcmChannelResponse;
29953(function (DeleteGcmChannelResponse) {
29954 DeleteGcmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29955})(DeleteGcmChannelResponse || (DeleteGcmChannelResponse = {}));
29956var DeleteJourneyRequest;
29957(function (DeleteJourneyRequest) {
29958 DeleteJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29959})(DeleteJourneyRequest || (DeleteJourneyRequest = {}));
29960var DeleteJourneyResponse;
29961(function (DeleteJourneyResponse) {
29962 DeleteJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29963})(DeleteJourneyResponse || (DeleteJourneyResponse = {}));
29964var DeletePushTemplateRequest;
29965(function (DeletePushTemplateRequest) {
29966 DeletePushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29967})(DeletePushTemplateRequest || (DeletePushTemplateRequest = {}));
29968var DeletePushTemplateResponse;
29969(function (DeletePushTemplateResponse) {
29970 DeletePushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29971})(DeletePushTemplateResponse || (DeletePushTemplateResponse = {}));
29972var DeleteRecommenderConfigurationRequest;
29973(function (DeleteRecommenderConfigurationRequest) {
29974 DeleteRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29975})(DeleteRecommenderConfigurationRequest || (DeleteRecommenderConfigurationRequest = {}));
29976var DeleteRecommenderConfigurationResponse;
29977(function (DeleteRecommenderConfigurationResponse) {
29978 DeleteRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29979})(DeleteRecommenderConfigurationResponse || (DeleteRecommenderConfigurationResponse = {}));
29980var DeleteSegmentRequest;
29981(function (DeleteSegmentRequest) {
29982 DeleteSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29983})(DeleteSegmentRequest || (DeleteSegmentRequest = {}));
29984var DeleteSegmentResponse;
29985(function (DeleteSegmentResponse) {
29986 DeleteSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29987})(DeleteSegmentResponse || (DeleteSegmentResponse = {}));
29988var DeleteSmsChannelRequest;
29989(function (DeleteSmsChannelRequest) {
29990 DeleteSmsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29991})(DeleteSmsChannelRequest || (DeleteSmsChannelRequest = {}));
29992var SMSChannelResponse;
29993(function (SMSChannelResponse) {
29994 SMSChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29995})(SMSChannelResponse || (SMSChannelResponse = {}));
29996var DeleteSmsChannelResponse;
29997(function (DeleteSmsChannelResponse) {
29998 DeleteSmsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29999})(DeleteSmsChannelResponse || (DeleteSmsChannelResponse = {}));
30000var DeleteSmsTemplateRequest;
30001(function (DeleteSmsTemplateRequest) {
30002 DeleteSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30003})(DeleteSmsTemplateRequest || (DeleteSmsTemplateRequest = {}));
30004var DeleteSmsTemplateResponse;
30005(function (DeleteSmsTemplateResponse) {
30006 DeleteSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30007})(DeleteSmsTemplateResponse || (DeleteSmsTemplateResponse = {}));
30008var DeleteUserEndpointsRequest;
30009(function (DeleteUserEndpointsRequest) {
30010 DeleteUserEndpointsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30011})(DeleteUserEndpointsRequest || (DeleteUserEndpointsRequest = {}));
30012var EndpointsResponse;
30013(function (EndpointsResponse) {
30014 EndpointsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30015})(EndpointsResponse || (EndpointsResponse = {}));
30016var DeleteUserEndpointsResponse;
30017(function (DeleteUserEndpointsResponse) {
30018 DeleteUserEndpointsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30019})(DeleteUserEndpointsResponse || (DeleteUserEndpointsResponse = {}));
30020var DeleteVoiceChannelRequest;
30021(function (DeleteVoiceChannelRequest) {
30022 DeleteVoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30023})(DeleteVoiceChannelRequest || (DeleteVoiceChannelRequest = {}));
30024var VoiceChannelResponse;
30025(function (VoiceChannelResponse) {
30026 VoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30027})(VoiceChannelResponse || (VoiceChannelResponse = {}));
30028var DeleteVoiceChannelResponse;
30029(function (DeleteVoiceChannelResponse) {
30030 DeleteVoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30031})(DeleteVoiceChannelResponse || (DeleteVoiceChannelResponse = {}));
30032var DeleteVoiceTemplateRequest;
30033(function (DeleteVoiceTemplateRequest) {
30034 DeleteVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30035})(DeleteVoiceTemplateRequest || (DeleteVoiceTemplateRequest = {}));
30036var DeleteVoiceTemplateResponse;
30037(function (DeleteVoiceTemplateResponse) {
30038 DeleteVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30039})(DeleteVoiceTemplateResponse || (DeleteVoiceTemplateResponse = {}));
30040var DeliveryStatus;
30041(function (DeliveryStatus) {
30042 DeliveryStatus["DUPLICATE"] = "DUPLICATE";
30043 DeliveryStatus["OPT_OUT"] = "OPT_OUT";
30044 DeliveryStatus["PERMANENT_FAILURE"] = "PERMANENT_FAILURE";
30045 DeliveryStatus["SUCCESSFUL"] = "SUCCESSFUL";
30046 DeliveryStatus["TEMPORARY_FAILURE"] = "TEMPORARY_FAILURE";
30047 DeliveryStatus["THROTTLED"] = "THROTTLED";
30048 DeliveryStatus["UNKNOWN_FAILURE"] = "UNKNOWN_FAILURE";
30049})(DeliveryStatus || (DeliveryStatus = {}));
30050var RawEmail;
30051(function (RawEmail) {
30052 RawEmail.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30053})(RawEmail || (RawEmail = {}));
30054var SimpleEmailPart;
30055(function (SimpleEmailPart) {
30056 SimpleEmailPart.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30057})(SimpleEmailPart || (SimpleEmailPart = {}));
30058var SimpleEmail;
30059(function (SimpleEmail) {
30060 SimpleEmail.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30061})(SimpleEmail || (SimpleEmail = {}));
30062var EmailMessage;
30063(function (EmailMessage) {
30064 EmailMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30065})(EmailMessage || (EmailMessage = {}));
30066var GCMMessage;
30067(function (GCMMessage) {
30068 GCMMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30069})(GCMMessage || (GCMMessage = {}));
30070var SMSMessage;
30071(function (SMSMessage) {
30072 SMSMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30073})(SMSMessage || (SMSMessage = {}));
30074var VoiceMessage;
30075(function (VoiceMessage) {
30076 VoiceMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30077})(VoiceMessage || (VoiceMessage = {}));
30078var DirectMessageConfiguration;
30079(function (DirectMessageConfiguration) {
30080 DirectMessageConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30081})(DirectMessageConfiguration || (DirectMessageConfiguration = {}));
30082var EmailChannelRequest;
30083(function (EmailChannelRequest) {
30084 EmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30085})(EmailChannelRequest || (EmailChannelRequest = {}));
30086var TemplateType;
30087(function (TemplateType) {
30088 TemplateType["EMAIL"] = "EMAIL";
30089 TemplateType["PUSH"] = "PUSH";
30090 TemplateType["SMS"] = "SMS";
30091 TemplateType["VOICE"] = "VOICE";
30092})(TemplateType || (TemplateType = {}));
30093var EmailTemplateResponse;
30094(function (EmailTemplateResponse) {
30095 EmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30096})(EmailTemplateResponse || (EmailTemplateResponse = {}));
30097var EndpointBatchItem;
30098(function (EndpointBatchItem) {
30099 EndpointBatchItem.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30100})(EndpointBatchItem || (EndpointBatchItem = {}));
30101var EndpointBatchRequest;
30102(function (EndpointBatchRequest) {
30103 EndpointBatchRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30104})(EndpointBatchRequest || (EndpointBatchRequest = {}));
30105var EndpointItemResponse;
30106(function (EndpointItemResponse) {
30107 EndpointItemResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30108})(EndpointItemResponse || (EndpointItemResponse = {}));
30109var EndpointMessageResult;
30110(function (EndpointMessageResult) {
30111 EndpointMessageResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30112})(EndpointMessageResult || (EndpointMessageResult = {}));
30113var EndpointRequest;
30114(function (EndpointRequest) {
30115 EndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30116})(EndpointRequest || (EndpointRequest = {}));
30117var EndpointSendConfiguration;
30118(function (EndpointSendConfiguration) {
30119 EndpointSendConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30120})(EndpointSendConfiguration || (EndpointSendConfiguration = {}));
30121var Session;
30122(function (Session) {
30123 Session.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30124})(Session || (Session = {}));
30125var Event;
30126(function (Event) {
30127 Event.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30128})(Event || (Event = {}));
30129var EventItemResponse;
30130(function (EventItemResponse) {
30131 EventItemResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30132})(EventItemResponse || (EventItemResponse = {}));
30133var PublicEndpoint;
30134(function (PublicEndpoint) {
30135 PublicEndpoint.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30136})(PublicEndpoint || (PublicEndpoint = {}));
30137var EventsBatch;
30138(function (EventsBatch) {
30139 EventsBatch.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30140})(EventsBatch || (EventsBatch = {}));
30141var EventsRequest;
30142(function (EventsRequest) {
30143 EventsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30144})(EventsRequest || (EventsRequest = {}));
30145var ItemResponse;
30146(function (ItemResponse) {
30147 ItemResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30148})(ItemResponse || (ItemResponse = {}));
30149var EventsResponse;
30150(function (EventsResponse) {
30151 EventsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30152})(EventsResponse || (EventsResponse = {}));
30153var ExportJobsResponse;
30154(function (ExportJobsResponse) {
30155 ExportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30156})(ExportJobsResponse || (ExportJobsResponse = {}));
30157var GCMChannelRequest;
30158(function (GCMChannelRequest) {
30159 GCMChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30160})(GCMChannelRequest || (GCMChannelRequest = {}));
30161var GetAdmChannelRequest;
30162(function (GetAdmChannelRequest) {
30163 GetAdmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30164})(GetAdmChannelRequest || (GetAdmChannelRequest = {}));
30165var GetAdmChannelResponse;
30166(function (GetAdmChannelResponse) {
30167 GetAdmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30168})(GetAdmChannelResponse || (GetAdmChannelResponse = {}));
30169var GetApnsChannelRequest;
30170(function (GetApnsChannelRequest) {
30171 GetApnsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30172})(GetApnsChannelRequest || (GetApnsChannelRequest = {}));
30173var GetApnsChannelResponse;
30174(function (GetApnsChannelResponse) {
30175 GetApnsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30176})(GetApnsChannelResponse || (GetApnsChannelResponse = {}));
30177var GetApnsSandboxChannelRequest;
30178(function (GetApnsSandboxChannelRequest) {
30179 GetApnsSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30180})(GetApnsSandboxChannelRequest || (GetApnsSandboxChannelRequest = {}));
30181var GetApnsSandboxChannelResponse;
30182(function (GetApnsSandboxChannelResponse) {
30183 GetApnsSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30184})(GetApnsSandboxChannelResponse || (GetApnsSandboxChannelResponse = {}));
30185var GetApnsVoipChannelRequest;
30186(function (GetApnsVoipChannelRequest) {
30187 GetApnsVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30188})(GetApnsVoipChannelRequest || (GetApnsVoipChannelRequest = {}));
30189var GetApnsVoipChannelResponse;
30190(function (GetApnsVoipChannelResponse) {
30191 GetApnsVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30192})(GetApnsVoipChannelResponse || (GetApnsVoipChannelResponse = {}));
30193var GetApnsVoipSandboxChannelRequest;
30194(function (GetApnsVoipSandboxChannelRequest) {
30195 GetApnsVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30196})(GetApnsVoipSandboxChannelRequest || (GetApnsVoipSandboxChannelRequest = {}));
30197var GetApnsVoipSandboxChannelResponse;
30198(function (GetApnsVoipSandboxChannelResponse) {
30199 GetApnsVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30200})(GetApnsVoipSandboxChannelResponse || (GetApnsVoipSandboxChannelResponse = {}));
30201var GetAppRequest;
30202(function (GetAppRequest) {
30203 GetAppRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30204})(GetAppRequest || (GetAppRequest = {}));
30205var GetAppResponse;
30206(function (GetAppResponse) {
30207 GetAppResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30208})(GetAppResponse || (GetAppResponse = {}));
30209var GetApplicationDateRangeKpiRequest;
30210(function (GetApplicationDateRangeKpiRequest) {
30211 GetApplicationDateRangeKpiRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30212})(GetApplicationDateRangeKpiRequest || (GetApplicationDateRangeKpiRequest = {}));
30213var GetApplicationDateRangeKpiResponse;
30214(function (GetApplicationDateRangeKpiResponse) {
30215 GetApplicationDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30216})(GetApplicationDateRangeKpiResponse || (GetApplicationDateRangeKpiResponse = {}));
30217var GetApplicationSettingsRequest;
30218(function (GetApplicationSettingsRequest) {
30219 GetApplicationSettingsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30220})(GetApplicationSettingsRequest || (GetApplicationSettingsRequest = {}));
30221var GetApplicationSettingsResponse;
30222(function (GetApplicationSettingsResponse) {
30223 GetApplicationSettingsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30224})(GetApplicationSettingsResponse || (GetApplicationSettingsResponse = {}));
30225var GetAppsRequest;
30226(function (GetAppsRequest) {
30227 GetAppsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30228})(GetAppsRequest || (GetAppsRequest = {}));
30229var GetAppsResponse;
30230(function (GetAppsResponse) {
30231 GetAppsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30232})(GetAppsResponse || (GetAppsResponse = {}));
30233var GetBaiduChannelRequest;
30234(function (GetBaiduChannelRequest) {
30235 GetBaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30236})(GetBaiduChannelRequest || (GetBaiduChannelRequest = {}));
30237var GetBaiduChannelResponse;
30238(function (GetBaiduChannelResponse) {
30239 GetBaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30240})(GetBaiduChannelResponse || (GetBaiduChannelResponse = {}));
30241var GetCampaignRequest;
30242(function (GetCampaignRequest) {
30243 GetCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30244})(GetCampaignRequest || (GetCampaignRequest = {}));
30245var GetCampaignResponse;
30246(function (GetCampaignResponse) {
30247 GetCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30248})(GetCampaignResponse || (GetCampaignResponse = {}));
30249var GetCampaignActivitiesRequest;
30250(function (GetCampaignActivitiesRequest) {
30251 GetCampaignActivitiesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30252})(GetCampaignActivitiesRequest || (GetCampaignActivitiesRequest = {}));
30253var GetCampaignActivitiesResponse;
30254(function (GetCampaignActivitiesResponse) {
30255 GetCampaignActivitiesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30256})(GetCampaignActivitiesResponse || (GetCampaignActivitiesResponse = {}));
30257var GetCampaignDateRangeKpiRequest;
30258(function (GetCampaignDateRangeKpiRequest) {
30259 GetCampaignDateRangeKpiRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30260})(GetCampaignDateRangeKpiRequest || (GetCampaignDateRangeKpiRequest = {}));
30261var GetCampaignDateRangeKpiResponse;
30262(function (GetCampaignDateRangeKpiResponse) {
30263 GetCampaignDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30264})(GetCampaignDateRangeKpiResponse || (GetCampaignDateRangeKpiResponse = {}));
30265var GetCampaignsRequest;
30266(function (GetCampaignsRequest) {
30267 GetCampaignsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30268})(GetCampaignsRequest || (GetCampaignsRequest = {}));
30269var GetCampaignsResponse;
30270(function (GetCampaignsResponse) {
30271 GetCampaignsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30272})(GetCampaignsResponse || (GetCampaignsResponse = {}));
30273var GetCampaignVersionRequest;
30274(function (GetCampaignVersionRequest) {
30275 GetCampaignVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30276})(GetCampaignVersionRequest || (GetCampaignVersionRequest = {}));
30277var GetCampaignVersionResponse;
30278(function (GetCampaignVersionResponse) {
30279 GetCampaignVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30280})(GetCampaignVersionResponse || (GetCampaignVersionResponse = {}));
30281var GetCampaignVersionsRequest;
30282(function (GetCampaignVersionsRequest) {
30283 GetCampaignVersionsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30284})(GetCampaignVersionsRequest || (GetCampaignVersionsRequest = {}));
30285var GetCampaignVersionsResponse;
30286(function (GetCampaignVersionsResponse) {
30287 GetCampaignVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30288})(GetCampaignVersionsResponse || (GetCampaignVersionsResponse = {}));
30289var GetChannelsRequest;
30290(function (GetChannelsRequest) {
30291 GetChannelsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30292})(GetChannelsRequest || (GetChannelsRequest = {}));
30293var GetChannelsResponse;
30294(function (GetChannelsResponse) {
30295 GetChannelsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30296})(GetChannelsResponse || (GetChannelsResponse = {}));
30297var GetEmailChannelRequest;
30298(function (GetEmailChannelRequest) {
30299 GetEmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30300})(GetEmailChannelRequest || (GetEmailChannelRequest = {}));
30301var GetEmailChannelResponse;
30302(function (GetEmailChannelResponse) {
30303 GetEmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30304})(GetEmailChannelResponse || (GetEmailChannelResponse = {}));
30305var GetEmailTemplateRequest;
30306(function (GetEmailTemplateRequest) {
30307 GetEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30308})(GetEmailTemplateRequest || (GetEmailTemplateRequest = {}));
30309var GetEmailTemplateResponse;
30310(function (GetEmailTemplateResponse) {
30311 GetEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30312})(GetEmailTemplateResponse || (GetEmailTemplateResponse = {}));
30313var GetEndpointRequest;
30314(function (GetEndpointRequest) {
30315 GetEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30316})(GetEndpointRequest || (GetEndpointRequest = {}));
30317var GetEndpointResponse;
30318(function (GetEndpointResponse) {
30319 GetEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30320})(GetEndpointResponse || (GetEndpointResponse = {}));
30321var GetEventStreamRequest;
30322(function (GetEventStreamRequest) {
30323 GetEventStreamRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30324})(GetEventStreamRequest || (GetEventStreamRequest = {}));
30325var GetEventStreamResponse;
30326(function (GetEventStreamResponse) {
30327 GetEventStreamResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30328})(GetEventStreamResponse || (GetEventStreamResponse = {}));
30329var GetExportJobRequest;
30330(function (GetExportJobRequest) {
30331 GetExportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30332})(GetExportJobRequest || (GetExportJobRequest = {}));
30333var GetExportJobResponse;
30334(function (GetExportJobResponse) {
30335 GetExportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30336})(GetExportJobResponse || (GetExportJobResponse = {}));
30337var GetExportJobsRequest;
30338(function (GetExportJobsRequest) {
30339 GetExportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30340})(GetExportJobsRequest || (GetExportJobsRequest = {}));
30341var GetExportJobsResponse;
30342(function (GetExportJobsResponse) {
30343 GetExportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30344})(GetExportJobsResponse || (GetExportJobsResponse = {}));
30345var GetGcmChannelRequest;
30346(function (GetGcmChannelRequest) {
30347 GetGcmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30348})(GetGcmChannelRequest || (GetGcmChannelRequest = {}));
30349var GetGcmChannelResponse;
30350(function (GetGcmChannelResponse) {
30351 GetGcmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30352})(GetGcmChannelResponse || (GetGcmChannelResponse = {}));
30353var GetImportJobRequest;
30354(function (GetImportJobRequest) {
30355 GetImportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30356})(GetImportJobRequest || (GetImportJobRequest = {}));
30357var GetImportJobResponse;
30358(function (GetImportJobResponse) {
30359 GetImportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30360})(GetImportJobResponse || (GetImportJobResponse = {}));
30361var GetImportJobsRequest;
30362(function (GetImportJobsRequest) {
30363 GetImportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30364})(GetImportJobsRequest || (GetImportJobsRequest = {}));
30365var ImportJobsResponse;
30366(function (ImportJobsResponse) {
30367 ImportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30368})(ImportJobsResponse || (ImportJobsResponse = {}));
30369var GetImportJobsResponse;
30370(function (GetImportJobsResponse) {
30371 GetImportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30372})(GetImportJobsResponse || (GetImportJobsResponse = {}));
30373var GetJourneyRequest;
30374(function (GetJourneyRequest) {
30375 GetJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30376})(GetJourneyRequest || (GetJourneyRequest = {}));
30377var GetJourneyResponse;
30378(function (GetJourneyResponse) {
30379 GetJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30380})(GetJourneyResponse || (GetJourneyResponse = {}));
30381//# sourceMappingURL=models_0.js.map
30382
30383/***/ }),
30384
30385/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js":
30386/*!*****************************************************************************************!*\
30387 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js ***!
30388 \*****************************************************************************************/
30389/*! 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 */
30390/***/ (function(module, __webpack_exports__, __webpack_require__) {
30391
30392"use strict";
30393__webpack_require__.r(__webpack_exports__);
30394/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiRequest", function() { return GetJourneyDateRangeKpiRequest; });
30395/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyDateRangeKpiResponse", function() { return JourneyDateRangeKpiResponse; });
30396/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiResponse", function() { return GetJourneyDateRangeKpiResponse; });
30397/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsRequest", function() { return GetJourneyExecutionActivityMetricsRequest; });
30398/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionActivityMetricsResponse", function() { return JourneyExecutionActivityMetricsResponse; });
30399/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsResponse", function() { return GetJourneyExecutionActivityMetricsResponse; });
30400/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsRequest", function() { return GetJourneyExecutionMetricsRequest; });
30401/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionMetricsResponse", function() { return JourneyExecutionMetricsResponse; });
30402/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsResponse", function() { return GetJourneyExecutionMetricsResponse; });
30403/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateRequest", function() { return GetPushTemplateRequest; });
30404/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateResponse", function() { return PushNotificationTemplateResponse; });
30405/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateResponse", function() { return GetPushTemplateResponse; });
30406/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationRequest", function() { return GetRecommenderConfigurationRequest; });
30407/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationResponse", function() { return GetRecommenderConfigurationResponse; });
30408/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsRequest", function() { return GetRecommenderConfigurationsRequest; });
30409/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListRecommenderConfigurationsResponse", function() { return ListRecommenderConfigurationsResponse; });
30410/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsResponse", function() { return GetRecommenderConfigurationsResponse; });
30411/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentRequest", function() { return GetSegmentRequest; });
30412/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentResponse", function() { return GetSegmentResponse; });
30413/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsRequest", function() { return GetSegmentExportJobsRequest; });
30414/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsResponse", function() { return GetSegmentExportJobsResponse; });
30415/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsRequest", function() { return GetSegmentImportJobsRequest; });
30416/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsResponse", function() { return GetSegmentImportJobsResponse; });
30417/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsRequest", function() { return GetSegmentsRequest; });
30418/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentsResponse", function() { return SegmentsResponse; });
30419/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsResponse", function() { return GetSegmentsResponse; });
30420/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionRequest", function() { return GetSegmentVersionRequest; });
30421/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionResponse", function() { return GetSegmentVersionResponse; });
30422/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsRequest", function() { return GetSegmentVersionsRequest; });
30423/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsResponse", function() { return GetSegmentVersionsResponse; });
30424/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelRequest", function() { return GetSmsChannelRequest; });
30425/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelResponse", function() { return GetSmsChannelResponse; });
30426/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateRequest", function() { return GetSmsTemplateRequest; });
30427/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateResponse", function() { return SMSTemplateResponse; });
30428/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateResponse", function() { return GetSmsTemplateResponse; });
30429/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsRequest", function() { return GetUserEndpointsRequest; });
30430/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsResponse", function() { return GetUserEndpointsResponse; });
30431/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelRequest", function() { return GetVoiceChannelRequest; });
30432/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelResponse", function() { return GetVoiceChannelResponse; });
30433/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateRequest", function() { return GetVoiceTemplateRequest; });
30434/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateResponse", function() { return VoiceTemplateResponse; });
30435/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateResponse", function() { return GetVoiceTemplateResponse; });
30436/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneysResponse", function() { return JourneysResponse; });
30437/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyStateRequest", function() { return JourneyStateRequest; });
30438/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListJourneysRequest", function() { return ListJourneysRequest; });
30439/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListJourneysResponse", function() { return ListJourneysResponse; });
30440/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateResponse", function() { return TemplateResponse; });
30441/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionResponse", function() { return TemplateVersionResponse; });
30442/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return ListTagsForResourceRequest; });
30443/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagsModel", function() { return TagsModel; });
30444/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return ListTagsForResourceResponse; });
30445/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesRequest", function() { return ListTemplatesRequest; });
30446/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplatesResponse", function() { return TemplatesResponse; });
30447/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesResponse", function() { return ListTemplatesResponse; });
30448/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsRequest", function() { return ListTemplateVersionsRequest; });
30449/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionsResponse", function() { return TemplateVersionsResponse; });
30450/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsResponse", function() { return ListTemplateVersionsResponse; });
30451/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageResult", function() { return MessageResult; });
30452/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageRequest", function() { return MessageRequest; });
30453/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageResponse", function() { return MessageResponse; });
30454/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberValidateRequest", function() { return NumberValidateRequest; });
30455/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberValidateResponse", function() { return NumberValidateResponse; });
30456/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateRequest", function() { return PhoneNumberValidateRequest; });
30457/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateResponse", function() { return PhoneNumberValidateResponse; });
30458/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return PutEventsRequest; });
30459/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsResponse", function() { return PutEventsResponse; });
30460/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteEventStream", function() { return WriteEventStream; });
30461/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamRequest", function() { return PutEventStreamRequest; });
30462/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamResponse", function() { return PutEventStreamResponse; });
30463/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAttributesRequest", function() { return UpdateAttributesRequest; });
30464/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesRequest", function() { return RemoveAttributesRequest; });
30465/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesResponse", function() { return RemoveAttributesResponse; });
30466/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendMessagesRequest", function() { return SendMessagesRequest; });
30467/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendMessagesResponse", function() { return SendMessagesResponse; });
30468/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageRequest", function() { return SendUsersMessageRequest; });
30469/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesRequest", function() { return SendUsersMessagesRequest; });
30470/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageResponse", function() { return SendUsersMessageResponse; });
30471/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesResponse", function() { return SendUsersMessagesResponse; });
30472/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return TagResourceRequest; });
30473/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return UntagResourceRequest; });
30474/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelRequest", function() { return UpdateAdmChannelRequest; });
30475/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelResponse", function() { return UpdateAdmChannelResponse; });
30476/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelRequest", function() { return UpdateApnsChannelRequest; });
30477/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelResponse", function() { return UpdateApnsChannelResponse; });
30478/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelRequest", function() { return UpdateApnsSandboxChannelRequest; });
30479/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelResponse", function() { return UpdateApnsSandboxChannelResponse; });
30480/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelRequest", function() { return UpdateApnsVoipChannelRequest; });
30481/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelResponse", function() { return UpdateApnsVoipChannelResponse; });
30482/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelRequest", function() { return UpdateApnsVoipSandboxChannelRequest; });
30483/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelResponse", function() { return UpdateApnsVoipSandboxChannelResponse; });
30484/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteApplicationSettingsRequest", function() { return WriteApplicationSettingsRequest; });
30485/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsRequest", function() { return UpdateApplicationSettingsRequest; });
30486/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsResponse", function() { return UpdateApplicationSettingsResponse; });
30487/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelRequest", function() { return UpdateBaiduChannelRequest; });
30488/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelResponse", function() { return UpdateBaiduChannelResponse; });
30489/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignRequest", function() { return UpdateCampaignRequest; });
30490/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignResponse", function() { return UpdateCampaignResponse; });
30491/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelRequest", function() { return UpdateEmailChannelRequest; });
30492/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelResponse", function() { return UpdateEmailChannelResponse; });
30493/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateRequest", function() { return UpdateEmailTemplateRequest; });
30494/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateResponse", function() { return UpdateEmailTemplateResponse; });
30495/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return UpdateEndpointRequest; });
30496/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return UpdateEndpointResponse; });
30497/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchRequest", function() { return UpdateEndpointsBatchRequest; });
30498/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchResponse", function() { return UpdateEndpointsBatchResponse; });
30499/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelRequest", function() { return UpdateGcmChannelRequest; });
30500/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelResponse", function() { return UpdateGcmChannelResponse; });
30501/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyRequest", function() { return UpdateJourneyRequest; });
30502/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyResponse", function() { return UpdateJourneyResponse; });
30503/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateRequest", function() { return UpdateJourneyStateRequest; });
30504/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateResponse", function() { return UpdateJourneyStateResponse; });
30505/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateRequest", function() { return UpdatePushTemplateRequest; });
30506/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateResponse", function() { return UpdatePushTemplateResponse; });
30507/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationShape", function() { return UpdateRecommenderConfigurationShape; });
30508/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationRequest", function() { return UpdateRecommenderConfigurationRequest; });
30509/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationResponse", function() { return UpdateRecommenderConfigurationResponse; });
30510/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentRequest", function() { return UpdateSegmentRequest; });
30511/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentResponse", function() { return UpdateSegmentResponse; });
30512/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSChannelRequest", function() { return SMSChannelRequest; });
30513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelRequest", function() { return UpdateSmsChannelRequest; });
30514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelResponse", function() { return UpdateSmsChannelResponse; });
30515/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateRequest", function() { return UpdateSmsTemplateRequest; });
30516/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateResponse", function() { return UpdateSmsTemplateResponse; });
30517/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateActiveVersionRequest", function() { return TemplateActiveVersionRequest; });
30518/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionRequest", function() { return UpdateTemplateActiveVersionRequest; });
30519/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionResponse", function() { return UpdateTemplateActiveVersionResponse; });
30520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelRequest", function() { return VoiceChannelRequest; });
30521/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelRequest", function() { return UpdateVoiceChannelRequest; });
30522/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelResponse", function() { return UpdateVoiceChannelResponse; });
30523/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateRequest", function() { return UpdateVoiceTemplateRequest; });
30524/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateResponse", function() { return UpdateVoiceTemplateResponse; });
30525/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
30526
30527var GetJourneyDateRangeKpiRequest;
30528(function (GetJourneyDateRangeKpiRequest) {
30529 GetJourneyDateRangeKpiRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30530})(GetJourneyDateRangeKpiRequest || (GetJourneyDateRangeKpiRequest = {}));
30531var JourneyDateRangeKpiResponse;
30532(function (JourneyDateRangeKpiResponse) {
30533 JourneyDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30534})(JourneyDateRangeKpiResponse || (JourneyDateRangeKpiResponse = {}));
30535var GetJourneyDateRangeKpiResponse;
30536(function (GetJourneyDateRangeKpiResponse) {
30537 GetJourneyDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30538})(GetJourneyDateRangeKpiResponse || (GetJourneyDateRangeKpiResponse = {}));
30539var GetJourneyExecutionActivityMetricsRequest;
30540(function (GetJourneyExecutionActivityMetricsRequest) {
30541 GetJourneyExecutionActivityMetricsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30542})(GetJourneyExecutionActivityMetricsRequest || (GetJourneyExecutionActivityMetricsRequest = {}));
30543var JourneyExecutionActivityMetricsResponse;
30544(function (JourneyExecutionActivityMetricsResponse) {
30545 JourneyExecutionActivityMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30546})(JourneyExecutionActivityMetricsResponse || (JourneyExecutionActivityMetricsResponse = {}));
30547var GetJourneyExecutionActivityMetricsResponse;
30548(function (GetJourneyExecutionActivityMetricsResponse) {
30549 GetJourneyExecutionActivityMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30550})(GetJourneyExecutionActivityMetricsResponse || (GetJourneyExecutionActivityMetricsResponse = {}));
30551var GetJourneyExecutionMetricsRequest;
30552(function (GetJourneyExecutionMetricsRequest) {
30553 GetJourneyExecutionMetricsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30554})(GetJourneyExecutionMetricsRequest || (GetJourneyExecutionMetricsRequest = {}));
30555var JourneyExecutionMetricsResponse;
30556(function (JourneyExecutionMetricsResponse) {
30557 JourneyExecutionMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30558})(JourneyExecutionMetricsResponse || (JourneyExecutionMetricsResponse = {}));
30559var GetJourneyExecutionMetricsResponse;
30560(function (GetJourneyExecutionMetricsResponse) {
30561 GetJourneyExecutionMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30562})(GetJourneyExecutionMetricsResponse || (GetJourneyExecutionMetricsResponse = {}));
30563var GetPushTemplateRequest;
30564(function (GetPushTemplateRequest) {
30565 GetPushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30566})(GetPushTemplateRequest || (GetPushTemplateRequest = {}));
30567var PushNotificationTemplateResponse;
30568(function (PushNotificationTemplateResponse) {
30569 PushNotificationTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30570})(PushNotificationTemplateResponse || (PushNotificationTemplateResponse = {}));
30571var GetPushTemplateResponse;
30572(function (GetPushTemplateResponse) {
30573 GetPushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30574})(GetPushTemplateResponse || (GetPushTemplateResponse = {}));
30575var GetRecommenderConfigurationRequest;
30576(function (GetRecommenderConfigurationRequest) {
30577 GetRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30578})(GetRecommenderConfigurationRequest || (GetRecommenderConfigurationRequest = {}));
30579var GetRecommenderConfigurationResponse;
30580(function (GetRecommenderConfigurationResponse) {
30581 GetRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30582})(GetRecommenderConfigurationResponse || (GetRecommenderConfigurationResponse = {}));
30583var GetRecommenderConfigurationsRequest;
30584(function (GetRecommenderConfigurationsRequest) {
30585 GetRecommenderConfigurationsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30586})(GetRecommenderConfigurationsRequest || (GetRecommenderConfigurationsRequest = {}));
30587var ListRecommenderConfigurationsResponse;
30588(function (ListRecommenderConfigurationsResponse) {
30589 ListRecommenderConfigurationsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30590})(ListRecommenderConfigurationsResponse || (ListRecommenderConfigurationsResponse = {}));
30591var GetRecommenderConfigurationsResponse;
30592(function (GetRecommenderConfigurationsResponse) {
30593 GetRecommenderConfigurationsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30594})(GetRecommenderConfigurationsResponse || (GetRecommenderConfigurationsResponse = {}));
30595var GetSegmentRequest;
30596(function (GetSegmentRequest) {
30597 GetSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30598})(GetSegmentRequest || (GetSegmentRequest = {}));
30599var GetSegmentResponse;
30600(function (GetSegmentResponse) {
30601 GetSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30602})(GetSegmentResponse || (GetSegmentResponse = {}));
30603var GetSegmentExportJobsRequest;
30604(function (GetSegmentExportJobsRequest) {
30605 GetSegmentExportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30606})(GetSegmentExportJobsRequest || (GetSegmentExportJobsRequest = {}));
30607var GetSegmentExportJobsResponse;
30608(function (GetSegmentExportJobsResponse) {
30609 GetSegmentExportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30610})(GetSegmentExportJobsResponse || (GetSegmentExportJobsResponse = {}));
30611var GetSegmentImportJobsRequest;
30612(function (GetSegmentImportJobsRequest) {
30613 GetSegmentImportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30614})(GetSegmentImportJobsRequest || (GetSegmentImportJobsRequest = {}));
30615var GetSegmentImportJobsResponse;
30616(function (GetSegmentImportJobsResponse) {
30617 GetSegmentImportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30618})(GetSegmentImportJobsResponse || (GetSegmentImportJobsResponse = {}));
30619var GetSegmentsRequest;
30620(function (GetSegmentsRequest) {
30621 GetSegmentsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30622})(GetSegmentsRequest || (GetSegmentsRequest = {}));
30623var SegmentsResponse;
30624(function (SegmentsResponse) {
30625 SegmentsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30626})(SegmentsResponse || (SegmentsResponse = {}));
30627var GetSegmentsResponse;
30628(function (GetSegmentsResponse) {
30629 GetSegmentsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30630})(GetSegmentsResponse || (GetSegmentsResponse = {}));
30631var GetSegmentVersionRequest;
30632(function (GetSegmentVersionRequest) {
30633 GetSegmentVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30634})(GetSegmentVersionRequest || (GetSegmentVersionRequest = {}));
30635var GetSegmentVersionResponse;
30636(function (GetSegmentVersionResponse) {
30637 GetSegmentVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30638})(GetSegmentVersionResponse || (GetSegmentVersionResponse = {}));
30639var GetSegmentVersionsRequest;
30640(function (GetSegmentVersionsRequest) {
30641 GetSegmentVersionsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30642})(GetSegmentVersionsRequest || (GetSegmentVersionsRequest = {}));
30643var GetSegmentVersionsResponse;
30644(function (GetSegmentVersionsResponse) {
30645 GetSegmentVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30646})(GetSegmentVersionsResponse || (GetSegmentVersionsResponse = {}));
30647var GetSmsChannelRequest;
30648(function (GetSmsChannelRequest) {
30649 GetSmsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30650})(GetSmsChannelRequest || (GetSmsChannelRequest = {}));
30651var GetSmsChannelResponse;
30652(function (GetSmsChannelResponse) {
30653 GetSmsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30654})(GetSmsChannelResponse || (GetSmsChannelResponse = {}));
30655var GetSmsTemplateRequest;
30656(function (GetSmsTemplateRequest) {
30657 GetSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30658})(GetSmsTemplateRequest || (GetSmsTemplateRequest = {}));
30659var SMSTemplateResponse;
30660(function (SMSTemplateResponse) {
30661 SMSTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30662})(SMSTemplateResponse || (SMSTemplateResponse = {}));
30663var GetSmsTemplateResponse;
30664(function (GetSmsTemplateResponse) {
30665 GetSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30666})(GetSmsTemplateResponse || (GetSmsTemplateResponse = {}));
30667var GetUserEndpointsRequest;
30668(function (GetUserEndpointsRequest) {
30669 GetUserEndpointsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30670})(GetUserEndpointsRequest || (GetUserEndpointsRequest = {}));
30671var GetUserEndpointsResponse;
30672(function (GetUserEndpointsResponse) {
30673 GetUserEndpointsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30674})(GetUserEndpointsResponse || (GetUserEndpointsResponse = {}));
30675var GetVoiceChannelRequest;
30676(function (GetVoiceChannelRequest) {
30677 GetVoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30678})(GetVoiceChannelRequest || (GetVoiceChannelRequest = {}));
30679var GetVoiceChannelResponse;
30680(function (GetVoiceChannelResponse) {
30681 GetVoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30682})(GetVoiceChannelResponse || (GetVoiceChannelResponse = {}));
30683var GetVoiceTemplateRequest;
30684(function (GetVoiceTemplateRequest) {
30685 GetVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30686})(GetVoiceTemplateRequest || (GetVoiceTemplateRequest = {}));
30687var VoiceTemplateResponse;
30688(function (VoiceTemplateResponse) {
30689 VoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30690})(VoiceTemplateResponse || (VoiceTemplateResponse = {}));
30691var GetVoiceTemplateResponse;
30692(function (GetVoiceTemplateResponse) {
30693 GetVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30694})(GetVoiceTemplateResponse || (GetVoiceTemplateResponse = {}));
30695var JourneysResponse;
30696(function (JourneysResponse) {
30697 JourneysResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30698})(JourneysResponse || (JourneysResponse = {}));
30699var JourneyStateRequest;
30700(function (JourneyStateRequest) {
30701 JourneyStateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30702})(JourneyStateRequest || (JourneyStateRequest = {}));
30703var ListJourneysRequest;
30704(function (ListJourneysRequest) {
30705 ListJourneysRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30706})(ListJourneysRequest || (ListJourneysRequest = {}));
30707var ListJourneysResponse;
30708(function (ListJourneysResponse) {
30709 ListJourneysResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30710})(ListJourneysResponse || (ListJourneysResponse = {}));
30711var TemplateResponse;
30712(function (TemplateResponse) {
30713 TemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30714})(TemplateResponse || (TemplateResponse = {}));
30715var TemplateVersionResponse;
30716(function (TemplateVersionResponse) {
30717 TemplateVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30718})(TemplateVersionResponse || (TemplateVersionResponse = {}));
30719var ListTagsForResourceRequest;
30720(function (ListTagsForResourceRequest) {
30721 ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30722})(ListTagsForResourceRequest || (ListTagsForResourceRequest = {}));
30723var TagsModel;
30724(function (TagsModel) {
30725 TagsModel.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30726})(TagsModel || (TagsModel = {}));
30727var ListTagsForResourceResponse;
30728(function (ListTagsForResourceResponse) {
30729 ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30730})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
30731var ListTemplatesRequest;
30732(function (ListTemplatesRequest) {
30733 ListTemplatesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30734})(ListTemplatesRequest || (ListTemplatesRequest = {}));
30735var TemplatesResponse;
30736(function (TemplatesResponse) {
30737 TemplatesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30738})(TemplatesResponse || (TemplatesResponse = {}));
30739var ListTemplatesResponse;
30740(function (ListTemplatesResponse) {
30741 ListTemplatesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30742})(ListTemplatesResponse || (ListTemplatesResponse = {}));
30743var ListTemplateVersionsRequest;
30744(function (ListTemplateVersionsRequest) {
30745 ListTemplateVersionsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30746})(ListTemplateVersionsRequest || (ListTemplateVersionsRequest = {}));
30747var TemplateVersionsResponse;
30748(function (TemplateVersionsResponse) {
30749 TemplateVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30750})(TemplateVersionsResponse || (TemplateVersionsResponse = {}));
30751var ListTemplateVersionsResponse;
30752(function (ListTemplateVersionsResponse) {
30753 ListTemplateVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30754})(ListTemplateVersionsResponse || (ListTemplateVersionsResponse = {}));
30755var MessageResult;
30756(function (MessageResult) {
30757 MessageResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30758})(MessageResult || (MessageResult = {}));
30759var MessageRequest;
30760(function (MessageRequest) {
30761 MessageRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30762})(MessageRequest || (MessageRequest = {}));
30763var MessageResponse;
30764(function (MessageResponse) {
30765 MessageResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30766})(MessageResponse || (MessageResponse = {}));
30767var NumberValidateRequest;
30768(function (NumberValidateRequest) {
30769 NumberValidateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30770})(NumberValidateRequest || (NumberValidateRequest = {}));
30771var NumberValidateResponse;
30772(function (NumberValidateResponse) {
30773 NumberValidateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30774})(NumberValidateResponse || (NumberValidateResponse = {}));
30775var PhoneNumberValidateRequest;
30776(function (PhoneNumberValidateRequest) {
30777 PhoneNumberValidateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30778})(PhoneNumberValidateRequest || (PhoneNumberValidateRequest = {}));
30779var PhoneNumberValidateResponse;
30780(function (PhoneNumberValidateResponse) {
30781 PhoneNumberValidateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30782})(PhoneNumberValidateResponse || (PhoneNumberValidateResponse = {}));
30783var PutEventsRequest;
30784(function (PutEventsRequest) {
30785 PutEventsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30786})(PutEventsRequest || (PutEventsRequest = {}));
30787var PutEventsResponse;
30788(function (PutEventsResponse) {
30789 PutEventsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30790})(PutEventsResponse || (PutEventsResponse = {}));
30791var WriteEventStream;
30792(function (WriteEventStream) {
30793 WriteEventStream.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30794})(WriteEventStream || (WriteEventStream = {}));
30795var PutEventStreamRequest;
30796(function (PutEventStreamRequest) {
30797 PutEventStreamRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30798})(PutEventStreamRequest || (PutEventStreamRequest = {}));
30799var PutEventStreamResponse;
30800(function (PutEventStreamResponse) {
30801 PutEventStreamResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30802})(PutEventStreamResponse || (PutEventStreamResponse = {}));
30803var UpdateAttributesRequest;
30804(function (UpdateAttributesRequest) {
30805 UpdateAttributesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30806})(UpdateAttributesRequest || (UpdateAttributesRequest = {}));
30807var RemoveAttributesRequest;
30808(function (RemoveAttributesRequest) {
30809 RemoveAttributesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30810})(RemoveAttributesRequest || (RemoveAttributesRequest = {}));
30811var RemoveAttributesResponse;
30812(function (RemoveAttributesResponse) {
30813 RemoveAttributesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30814})(RemoveAttributesResponse || (RemoveAttributesResponse = {}));
30815var SendMessagesRequest;
30816(function (SendMessagesRequest) {
30817 SendMessagesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30818})(SendMessagesRequest || (SendMessagesRequest = {}));
30819var SendMessagesResponse;
30820(function (SendMessagesResponse) {
30821 SendMessagesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30822})(SendMessagesResponse || (SendMessagesResponse = {}));
30823var SendUsersMessageRequest;
30824(function (SendUsersMessageRequest) {
30825 SendUsersMessageRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30826})(SendUsersMessageRequest || (SendUsersMessageRequest = {}));
30827var SendUsersMessagesRequest;
30828(function (SendUsersMessagesRequest) {
30829 SendUsersMessagesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30830})(SendUsersMessagesRequest || (SendUsersMessagesRequest = {}));
30831var SendUsersMessageResponse;
30832(function (SendUsersMessageResponse) {
30833 SendUsersMessageResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30834})(SendUsersMessageResponse || (SendUsersMessageResponse = {}));
30835var SendUsersMessagesResponse;
30836(function (SendUsersMessagesResponse) {
30837 SendUsersMessagesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30838})(SendUsersMessagesResponse || (SendUsersMessagesResponse = {}));
30839var TagResourceRequest;
30840(function (TagResourceRequest) {
30841 TagResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30842})(TagResourceRequest || (TagResourceRequest = {}));
30843var UntagResourceRequest;
30844(function (UntagResourceRequest) {
30845 UntagResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30846})(UntagResourceRequest || (UntagResourceRequest = {}));
30847var UpdateAdmChannelRequest;
30848(function (UpdateAdmChannelRequest) {
30849 UpdateAdmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30850})(UpdateAdmChannelRequest || (UpdateAdmChannelRequest = {}));
30851var UpdateAdmChannelResponse;
30852(function (UpdateAdmChannelResponse) {
30853 UpdateAdmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30854})(UpdateAdmChannelResponse || (UpdateAdmChannelResponse = {}));
30855var UpdateApnsChannelRequest;
30856(function (UpdateApnsChannelRequest) {
30857 UpdateApnsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30858})(UpdateApnsChannelRequest || (UpdateApnsChannelRequest = {}));
30859var UpdateApnsChannelResponse;
30860(function (UpdateApnsChannelResponse) {
30861 UpdateApnsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30862})(UpdateApnsChannelResponse || (UpdateApnsChannelResponse = {}));
30863var UpdateApnsSandboxChannelRequest;
30864(function (UpdateApnsSandboxChannelRequest) {
30865 UpdateApnsSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30866})(UpdateApnsSandboxChannelRequest || (UpdateApnsSandboxChannelRequest = {}));
30867var UpdateApnsSandboxChannelResponse;
30868(function (UpdateApnsSandboxChannelResponse) {
30869 UpdateApnsSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30870})(UpdateApnsSandboxChannelResponse || (UpdateApnsSandboxChannelResponse = {}));
30871var UpdateApnsVoipChannelRequest;
30872(function (UpdateApnsVoipChannelRequest) {
30873 UpdateApnsVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30874})(UpdateApnsVoipChannelRequest || (UpdateApnsVoipChannelRequest = {}));
30875var UpdateApnsVoipChannelResponse;
30876(function (UpdateApnsVoipChannelResponse) {
30877 UpdateApnsVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30878})(UpdateApnsVoipChannelResponse || (UpdateApnsVoipChannelResponse = {}));
30879var UpdateApnsVoipSandboxChannelRequest;
30880(function (UpdateApnsVoipSandboxChannelRequest) {
30881 UpdateApnsVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30882})(UpdateApnsVoipSandboxChannelRequest || (UpdateApnsVoipSandboxChannelRequest = {}));
30883var UpdateApnsVoipSandboxChannelResponse;
30884(function (UpdateApnsVoipSandboxChannelResponse) {
30885 UpdateApnsVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30886})(UpdateApnsVoipSandboxChannelResponse || (UpdateApnsVoipSandboxChannelResponse = {}));
30887var WriteApplicationSettingsRequest;
30888(function (WriteApplicationSettingsRequest) {
30889 WriteApplicationSettingsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30890})(WriteApplicationSettingsRequest || (WriteApplicationSettingsRequest = {}));
30891var UpdateApplicationSettingsRequest;
30892(function (UpdateApplicationSettingsRequest) {
30893 UpdateApplicationSettingsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30894})(UpdateApplicationSettingsRequest || (UpdateApplicationSettingsRequest = {}));
30895var UpdateApplicationSettingsResponse;
30896(function (UpdateApplicationSettingsResponse) {
30897 UpdateApplicationSettingsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30898})(UpdateApplicationSettingsResponse || (UpdateApplicationSettingsResponse = {}));
30899var UpdateBaiduChannelRequest;
30900(function (UpdateBaiduChannelRequest) {
30901 UpdateBaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30902})(UpdateBaiduChannelRequest || (UpdateBaiduChannelRequest = {}));
30903var UpdateBaiduChannelResponse;
30904(function (UpdateBaiduChannelResponse) {
30905 UpdateBaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30906})(UpdateBaiduChannelResponse || (UpdateBaiduChannelResponse = {}));
30907var UpdateCampaignRequest;
30908(function (UpdateCampaignRequest) {
30909 UpdateCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30910})(UpdateCampaignRequest || (UpdateCampaignRequest = {}));
30911var UpdateCampaignResponse;
30912(function (UpdateCampaignResponse) {
30913 UpdateCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30914})(UpdateCampaignResponse || (UpdateCampaignResponse = {}));
30915var UpdateEmailChannelRequest;
30916(function (UpdateEmailChannelRequest) {
30917 UpdateEmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30918})(UpdateEmailChannelRequest || (UpdateEmailChannelRequest = {}));
30919var UpdateEmailChannelResponse;
30920(function (UpdateEmailChannelResponse) {
30921 UpdateEmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30922})(UpdateEmailChannelResponse || (UpdateEmailChannelResponse = {}));
30923var UpdateEmailTemplateRequest;
30924(function (UpdateEmailTemplateRequest) {
30925 UpdateEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30926})(UpdateEmailTemplateRequest || (UpdateEmailTemplateRequest = {}));
30927var UpdateEmailTemplateResponse;
30928(function (UpdateEmailTemplateResponse) {
30929 UpdateEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30930})(UpdateEmailTemplateResponse || (UpdateEmailTemplateResponse = {}));
30931var UpdateEndpointRequest;
30932(function (UpdateEndpointRequest) {
30933 UpdateEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30934})(UpdateEndpointRequest || (UpdateEndpointRequest = {}));
30935var UpdateEndpointResponse;
30936(function (UpdateEndpointResponse) {
30937 UpdateEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30938})(UpdateEndpointResponse || (UpdateEndpointResponse = {}));
30939var UpdateEndpointsBatchRequest;
30940(function (UpdateEndpointsBatchRequest) {
30941 UpdateEndpointsBatchRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30942})(UpdateEndpointsBatchRequest || (UpdateEndpointsBatchRequest = {}));
30943var UpdateEndpointsBatchResponse;
30944(function (UpdateEndpointsBatchResponse) {
30945 UpdateEndpointsBatchResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30946})(UpdateEndpointsBatchResponse || (UpdateEndpointsBatchResponse = {}));
30947var UpdateGcmChannelRequest;
30948(function (UpdateGcmChannelRequest) {
30949 UpdateGcmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30950})(UpdateGcmChannelRequest || (UpdateGcmChannelRequest = {}));
30951var UpdateGcmChannelResponse;
30952(function (UpdateGcmChannelResponse) {
30953 UpdateGcmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30954})(UpdateGcmChannelResponse || (UpdateGcmChannelResponse = {}));
30955var UpdateJourneyRequest;
30956(function (UpdateJourneyRequest) {
30957 UpdateJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30958})(UpdateJourneyRequest || (UpdateJourneyRequest = {}));
30959var UpdateJourneyResponse;
30960(function (UpdateJourneyResponse) {
30961 UpdateJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30962})(UpdateJourneyResponse || (UpdateJourneyResponse = {}));
30963var UpdateJourneyStateRequest;
30964(function (UpdateJourneyStateRequest) {
30965 UpdateJourneyStateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30966})(UpdateJourneyStateRequest || (UpdateJourneyStateRequest = {}));
30967var UpdateJourneyStateResponse;
30968(function (UpdateJourneyStateResponse) {
30969 UpdateJourneyStateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30970})(UpdateJourneyStateResponse || (UpdateJourneyStateResponse = {}));
30971var UpdatePushTemplateRequest;
30972(function (UpdatePushTemplateRequest) {
30973 UpdatePushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30974})(UpdatePushTemplateRequest || (UpdatePushTemplateRequest = {}));
30975var UpdatePushTemplateResponse;
30976(function (UpdatePushTemplateResponse) {
30977 UpdatePushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30978})(UpdatePushTemplateResponse || (UpdatePushTemplateResponse = {}));
30979var UpdateRecommenderConfigurationShape;
30980(function (UpdateRecommenderConfigurationShape) {
30981 UpdateRecommenderConfigurationShape.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30982})(UpdateRecommenderConfigurationShape || (UpdateRecommenderConfigurationShape = {}));
30983var UpdateRecommenderConfigurationRequest;
30984(function (UpdateRecommenderConfigurationRequest) {
30985 UpdateRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30986})(UpdateRecommenderConfigurationRequest || (UpdateRecommenderConfigurationRequest = {}));
30987var UpdateRecommenderConfigurationResponse;
30988(function (UpdateRecommenderConfigurationResponse) {
30989 UpdateRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30990})(UpdateRecommenderConfigurationResponse || (UpdateRecommenderConfigurationResponse = {}));
30991var UpdateSegmentRequest;
30992(function (UpdateSegmentRequest) {
30993 UpdateSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30994})(UpdateSegmentRequest || (UpdateSegmentRequest = {}));
30995var UpdateSegmentResponse;
30996(function (UpdateSegmentResponse) {
30997 UpdateSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30998})(UpdateSegmentResponse || (UpdateSegmentResponse = {}));
30999var SMSChannelRequest;
31000(function (SMSChannelRequest) {
31001 SMSChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31002})(SMSChannelRequest || (SMSChannelRequest = {}));
31003var UpdateSmsChannelRequest;
31004(function (UpdateSmsChannelRequest) {
31005 UpdateSmsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31006})(UpdateSmsChannelRequest || (UpdateSmsChannelRequest = {}));
31007var UpdateSmsChannelResponse;
31008(function (UpdateSmsChannelResponse) {
31009 UpdateSmsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31010})(UpdateSmsChannelResponse || (UpdateSmsChannelResponse = {}));
31011var UpdateSmsTemplateRequest;
31012(function (UpdateSmsTemplateRequest) {
31013 UpdateSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31014})(UpdateSmsTemplateRequest || (UpdateSmsTemplateRequest = {}));
31015var UpdateSmsTemplateResponse;
31016(function (UpdateSmsTemplateResponse) {
31017 UpdateSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31018})(UpdateSmsTemplateResponse || (UpdateSmsTemplateResponse = {}));
31019var TemplateActiveVersionRequest;
31020(function (TemplateActiveVersionRequest) {
31021 TemplateActiveVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31022})(TemplateActiveVersionRequest || (TemplateActiveVersionRequest = {}));
31023var UpdateTemplateActiveVersionRequest;
31024(function (UpdateTemplateActiveVersionRequest) {
31025 UpdateTemplateActiveVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31026})(UpdateTemplateActiveVersionRequest || (UpdateTemplateActiveVersionRequest = {}));
31027var UpdateTemplateActiveVersionResponse;
31028(function (UpdateTemplateActiveVersionResponse) {
31029 UpdateTemplateActiveVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31030})(UpdateTemplateActiveVersionResponse || (UpdateTemplateActiveVersionResponse = {}));
31031var VoiceChannelRequest;
31032(function (VoiceChannelRequest) {
31033 VoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31034})(VoiceChannelRequest || (VoiceChannelRequest = {}));
31035var UpdateVoiceChannelRequest;
31036(function (UpdateVoiceChannelRequest) {
31037 UpdateVoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31038})(UpdateVoiceChannelRequest || (UpdateVoiceChannelRequest = {}));
31039var UpdateVoiceChannelResponse;
31040(function (UpdateVoiceChannelResponse) {
31041 UpdateVoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31042})(UpdateVoiceChannelResponse || (UpdateVoiceChannelResponse = {}));
31043var UpdateVoiceTemplateRequest;
31044(function (UpdateVoiceTemplateRequest) {
31045 UpdateVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31046})(UpdateVoiceTemplateRequest || (UpdateVoiceTemplateRequest = {}));
31047var UpdateVoiceTemplateResponse;
31048(function (UpdateVoiceTemplateResponse) {
31049 UpdateVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31050})(UpdateVoiceTemplateResponse || (UpdateVoiceTemplateResponse = {}));
31051//# sourceMappingURL=models_1.js.map
31052
31053/***/ }),
31054
31055/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/package.json":
31056/*!***********************************************************************************!*\
31057 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/package.json ***!
31058 \***********************************************************************************/
31059/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
31060/***/ (function(module) {
31061
31062module.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\"}}");
31063
31064/***/ }),
31065
31066/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js":
31067/*!*************************************************************************************************!*\
31068 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js ***!
31069 \*************************************************************************************************/
31070/*! 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 */
31071/***/ (function(module, __webpack_exports__, __webpack_require__) {
31072
31073"use strict";
31074__webpack_require__.r(__webpack_exports__);
31075/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateAppCommand", function() { return serializeAws_restJson1CreateAppCommand; });
31076/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateCampaignCommand", function() { return serializeAws_restJson1CreateCampaignCommand; });
31077/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateEmailTemplateCommand", function() { return serializeAws_restJson1CreateEmailTemplateCommand; });
31078/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateExportJobCommand", function() { return serializeAws_restJson1CreateExportJobCommand; });
31079/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateImportJobCommand", function() { return serializeAws_restJson1CreateImportJobCommand; });
31080/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateJourneyCommand", function() { return serializeAws_restJson1CreateJourneyCommand; });
31081/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreatePushTemplateCommand", function() { return serializeAws_restJson1CreatePushTemplateCommand; });
31082/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateRecommenderConfigurationCommand", function() { return serializeAws_restJson1CreateRecommenderConfigurationCommand; });
31083/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateSegmentCommand", function() { return serializeAws_restJson1CreateSegmentCommand; });
31084/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateSmsTemplateCommand", function() { return serializeAws_restJson1CreateSmsTemplateCommand; });
31085/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateVoiceTemplateCommand", function() { return serializeAws_restJson1CreateVoiceTemplateCommand; });
31086/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteAdmChannelCommand", function() { return serializeAws_restJson1DeleteAdmChannelCommand; });
31087/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsChannelCommand", function() { return serializeAws_restJson1DeleteApnsChannelCommand; });
31088/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsSandboxChannelCommand", function() { return serializeAws_restJson1DeleteApnsSandboxChannelCommand; });
31089/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsVoipChannelCommand", function() { return serializeAws_restJson1DeleteApnsVoipChannelCommand; });
31090/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand; });
31091/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteAppCommand", function() { return serializeAws_restJson1DeleteAppCommand; });
31092/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteBaiduChannelCommand", function() { return serializeAws_restJson1DeleteBaiduChannelCommand; });
31093/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteCampaignCommand", function() { return serializeAws_restJson1DeleteCampaignCommand; });
31094/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEmailChannelCommand", function() { return serializeAws_restJson1DeleteEmailChannelCommand; });
31095/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEmailTemplateCommand", function() { return serializeAws_restJson1DeleteEmailTemplateCommand; });
31096/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEndpointCommand", function() { return serializeAws_restJson1DeleteEndpointCommand; });
31097/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEventStreamCommand", function() { return serializeAws_restJson1DeleteEventStreamCommand; });
31098/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteGcmChannelCommand", function() { return serializeAws_restJson1DeleteGcmChannelCommand; });
31099/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteJourneyCommand", function() { return serializeAws_restJson1DeleteJourneyCommand; });
31100/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeletePushTemplateCommand", function() { return serializeAws_restJson1DeletePushTemplateCommand; });
31101/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteRecommenderConfigurationCommand", function() { return serializeAws_restJson1DeleteRecommenderConfigurationCommand; });
31102/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSegmentCommand", function() { return serializeAws_restJson1DeleteSegmentCommand; });
31103/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSmsChannelCommand", function() { return serializeAws_restJson1DeleteSmsChannelCommand; });
31104/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSmsTemplateCommand", function() { return serializeAws_restJson1DeleteSmsTemplateCommand; });
31105/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteUserEndpointsCommand", function() { return serializeAws_restJson1DeleteUserEndpointsCommand; });
31106/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteVoiceChannelCommand", function() { return serializeAws_restJson1DeleteVoiceChannelCommand; });
31107/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteVoiceTemplateCommand", function() { return serializeAws_restJson1DeleteVoiceTemplateCommand; });
31108/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAdmChannelCommand", function() { return serializeAws_restJson1GetAdmChannelCommand; });
31109/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsChannelCommand", function() { return serializeAws_restJson1GetApnsChannelCommand; });
31110/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsSandboxChannelCommand", function() { return serializeAws_restJson1GetApnsSandboxChannelCommand; });
31111/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsVoipChannelCommand", function() { return serializeAws_restJson1GetApnsVoipChannelCommand; });
31112/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1GetApnsVoipSandboxChannelCommand; });
31113/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAppCommand", function() { return serializeAws_restJson1GetAppCommand; });
31114/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApplicationDateRangeKpiCommand", function() { return serializeAws_restJson1GetApplicationDateRangeKpiCommand; });
31115/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApplicationSettingsCommand", function() { return serializeAws_restJson1GetApplicationSettingsCommand; });
31116/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAppsCommand", function() { return serializeAws_restJson1GetAppsCommand; });
31117/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetBaiduChannelCommand", function() { return serializeAws_restJson1GetBaiduChannelCommand; });
31118/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignCommand", function() { return serializeAws_restJson1GetCampaignCommand; });
31119/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignActivitiesCommand", function() { return serializeAws_restJson1GetCampaignActivitiesCommand; });
31120/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignDateRangeKpiCommand", function() { return serializeAws_restJson1GetCampaignDateRangeKpiCommand; });
31121/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignsCommand", function() { return serializeAws_restJson1GetCampaignsCommand; });
31122/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignVersionCommand", function() { return serializeAws_restJson1GetCampaignVersionCommand; });
31123/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignVersionsCommand", function() { return serializeAws_restJson1GetCampaignVersionsCommand; });
31124/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetChannelsCommand", function() { return serializeAws_restJson1GetChannelsCommand; });
31125/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEmailChannelCommand", function() { return serializeAws_restJson1GetEmailChannelCommand; });
31126/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEmailTemplateCommand", function() { return serializeAws_restJson1GetEmailTemplateCommand; });
31127/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEndpointCommand", function() { return serializeAws_restJson1GetEndpointCommand; });
31128/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEventStreamCommand", function() { return serializeAws_restJson1GetEventStreamCommand; });
31129/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetExportJobCommand", function() { return serializeAws_restJson1GetExportJobCommand; });
31130/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetExportJobsCommand", function() { return serializeAws_restJson1GetExportJobsCommand; });
31131/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetGcmChannelCommand", function() { return serializeAws_restJson1GetGcmChannelCommand; });
31132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetImportJobCommand", function() { return serializeAws_restJson1GetImportJobCommand; });
31133/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetImportJobsCommand", function() { return serializeAws_restJson1GetImportJobsCommand; });
31134/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyCommand", function() { return serializeAws_restJson1GetJourneyCommand; });
31135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyDateRangeKpiCommand", function() { return serializeAws_restJson1GetJourneyDateRangeKpiCommand; });
31136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand", function() { return serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand; });
31137/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyExecutionMetricsCommand", function() { return serializeAws_restJson1GetJourneyExecutionMetricsCommand; });
31138/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetPushTemplateCommand", function() { return serializeAws_restJson1GetPushTemplateCommand; });
31139/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetRecommenderConfigurationCommand", function() { return serializeAws_restJson1GetRecommenderConfigurationCommand; });
31140/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetRecommenderConfigurationsCommand", function() { return serializeAws_restJson1GetRecommenderConfigurationsCommand; });
31141/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentCommand", function() { return serializeAws_restJson1GetSegmentCommand; });
31142/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentExportJobsCommand", function() { return serializeAws_restJson1GetSegmentExportJobsCommand; });
31143/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentImportJobsCommand", function() { return serializeAws_restJson1GetSegmentImportJobsCommand; });
31144/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentsCommand", function() { return serializeAws_restJson1GetSegmentsCommand; });
31145/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentVersionCommand", function() { return serializeAws_restJson1GetSegmentVersionCommand; });
31146/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentVersionsCommand", function() { return serializeAws_restJson1GetSegmentVersionsCommand; });
31147/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSmsChannelCommand", function() { return serializeAws_restJson1GetSmsChannelCommand; });
31148/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSmsTemplateCommand", function() { return serializeAws_restJson1GetSmsTemplateCommand; });
31149/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetUserEndpointsCommand", function() { return serializeAws_restJson1GetUserEndpointsCommand; });
31150/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetVoiceChannelCommand", function() { return serializeAws_restJson1GetVoiceChannelCommand; });
31151/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetVoiceTemplateCommand", function() { return serializeAws_restJson1GetVoiceTemplateCommand; });
31152/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListJourneysCommand", function() { return serializeAws_restJson1ListJourneysCommand; });
31153/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTagsForResourceCommand", function() { return serializeAws_restJson1ListTagsForResourceCommand; });
31154/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTemplatesCommand", function() { return serializeAws_restJson1ListTemplatesCommand; });
31155/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTemplateVersionsCommand", function() { return serializeAws_restJson1ListTemplateVersionsCommand; });
31156/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PhoneNumberValidateCommand", function() { return serializeAws_restJson1PhoneNumberValidateCommand; });
31157/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventsCommand", function() { return serializeAws_restJson1PutEventsCommand; });
31158/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventStreamCommand", function() { return serializeAws_restJson1PutEventStreamCommand; });
31159/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1RemoveAttributesCommand", function() { return serializeAws_restJson1RemoveAttributesCommand; });
31160/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1SendMessagesCommand", function() { return serializeAws_restJson1SendMessagesCommand; });
31161/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1SendUsersMessagesCommand", function() { return serializeAws_restJson1SendUsersMessagesCommand; });
31162/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1TagResourceCommand", function() { return serializeAws_restJson1TagResourceCommand; });
31163/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UntagResourceCommand", function() { return serializeAws_restJson1UntagResourceCommand; });
31164/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateAdmChannelCommand", function() { return serializeAws_restJson1UpdateAdmChannelCommand; });
31165/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsChannelCommand", function() { return serializeAws_restJson1UpdateApnsChannelCommand; });
31166/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsSandboxChannelCommand", function() { return serializeAws_restJson1UpdateApnsSandboxChannelCommand; });
31167/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsVoipChannelCommand", function() { return serializeAws_restJson1UpdateApnsVoipChannelCommand; });
31168/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand; });
31169/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApplicationSettingsCommand", function() { return serializeAws_restJson1UpdateApplicationSettingsCommand; });
31170/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateBaiduChannelCommand", function() { return serializeAws_restJson1UpdateBaiduChannelCommand; });
31171/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateCampaignCommand", function() { return serializeAws_restJson1UpdateCampaignCommand; });
31172/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEmailChannelCommand", function() { return serializeAws_restJson1UpdateEmailChannelCommand; });
31173/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEmailTemplateCommand", function() { return serializeAws_restJson1UpdateEmailTemplateCommand; });
31174/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEndpointCommand", function() { return serializeAws_restJson1UpdateEndpointCommand; });
31175/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEndpointsBatchCommand", function() { return serializeAws_restJson1UpdateEndpointsBatchCommand; });
31176/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateGcmChannelCommand", function() { return serializeAws_restJson1UpdateGcmChannelCommand; });
31177/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateJourneyCommand", function() { return serializeAws_restJson1UpdateJourneyCommand; });
31178/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateJourneyStateCommand", function() { return serializeAws_restJson1UpdateJourneyStateCommand; });
31179/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdatePushTemplateCommand", function() { return serializeAws_restJson1UpdatePushTemplateCommand; });
31180/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateRecommenderConfigurationCommand", function() { return serializeAws_restJson1UpdateRecommenderConfigurationCommand; });
31181/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSegmentCommand", function() { return serializeAws_restJson1UpdateSegmentCommand; });
31182/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSmsChannelCommand", function() { return serializeAws_restJson1UpdateSmsChannelCommand; });
31183/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSmsTemplateCommand", function() { return serializeAws_restJson1UpdateSmsTemplateCommand; });
31184/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateTemplateActiveVersionCommand", function() { return serializeAws_restJson1UpdateTemplateActiveVersionCommand; });
31185/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateVoiceChannelCommand", function() { return serializeAws_restJson1UpdateVoiceChannelCommand; });
31186/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateVoiceTemplateCommand", function() { return serializeAws_restJson1UpdateVoiceTemplateCommand; });
31187/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateAppCommand", function() { return deserializeAws_restJson1CreateAppCommand; });
31188/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateCampaignCommand", function() { return deserializeAws_restJson1CreateCampaignCommand; });
31189/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateEmailTemplateCommand", function() { return deserializeAws_restJson1CreateEmailTemplateCommand; });
31190/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateExportJobCommand", function() { return deserializeAws_restJson1CreateExportJobCommand; });
31191/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateImportJobCommand", function() { return deserializeAws_restJson1CreateImportJobCommand; });
31192/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateJourneyCommand", function() { return deserializeAws_restJson1CreateJourneyCommand; });
31193/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreatePushTemplateCommand", function() { return deserializeAws_restJson1CreatePushTemplateCommand; });
31194/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateRecommenderConfigurationCommand", function() { return deserializeAws_restJson1CreateRecommenderConfigurationCommand; });
31195/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateSegmentCommand", function() { return deserializeAws_restJson1CreateSegmentCommand; });
31196/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateSmsTemplateCommand", function() { return deserializeAws_restJson1CreateSmsTemplateCommand; });
31197/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateVoiceTemplateCommand", function() { return deserializeAws_restJson1CreateVoiceTemplateCommand; });
31198/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteAdmChannelCommand", function() { return deserializeAws_restJson1DeleteAdmChannelCommand; });
31199/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsChannelCommand", function() { return deserializeAws_restJson1DeleteApnsChannelCommand; });
31200/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsSandboxChannelCommand", function() { return deserializeAws_restJson1DeleteApnsSandboxChannelCommand; });
31201/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsVoipChannelCommand", function() { return deserializeAws_restJson1DeleteApnsVoipChannelCommand; });
31202/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand; });
31203/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteAppCommand", function() { return deserializeAws_restJson1DeleteAppCommand; });
31204/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteBaiduChannelCommand", function() { return deserializeAws_restJson1DeleteBaiduChannelCommand; });
31205/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteCampaignCommand", function() { return deserializeAws_restJson1DeleteCampaignCommand; });
31206/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEmailChannelCommand", function() { return deserializeAws_restJson1DeleteEmailChannelCommand; });
31207/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEmailTemplateCommand", function() { return deserializeAws_restJson1DeleteEmailTemplateCommand; });
31208/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEndpointCommand", function() { return deserializeAws_restJson1DeleteEndpointCommand; });
31209/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEventStreamCommand", function() { return deserializeAws_restJson1DeleteEventStreamCommand; });
31210/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteGcmChannelCommand", function() { return deserializeAws_restJson1DeleteGcmChannelCommand; });
31211/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteJourneyCommand", function() { return deserializeAws_restJson1DeleteJourneyCommand; });
31212/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeletePushTemplateCommand", function() { return deserializeAws_restJson1DeletePushTemplateCommand; });
31213/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteRecommenderConfigurationCommand", function() { return deserializeAws_restJson1DeleteRecommenderConfigurationCommand; });
31214/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSegmentCommand", function() { return deserializeAws_restJson1DeleteSegmentCommand; });
31215/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSmsChannelCommand", function() { return deserializeAws_restJson1DeleteSmsChannelCommand; });
31216/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSmsTemplateCommand", function() { return deserializeAws_restJson1DeleteSmsTemplateCommand; });
31217/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteUserEndpointsCommand", function() { return deserializeAws_restJson1DeleteUserEndpointsCommand; });
31218/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteVoiceChannelCommand", function() { return deserializeAws_restJson1DeleteVoiceChannelCommand; });
31219/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteVoiceTemplateCommand", function() { return deserializeAws_restJson1DeleteVoiceTemplateCommand; });
31220/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAdmChannelCommand", function() { return deserializeAws_restJson1GetAdmChannelCommand; });
31221/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsChannelCommand", function() { return deserializeAws_restJson1GetApnsChannelCommand; });
31222/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsSandboxChannelCommand", function() { return deserializeAws_restJson1GetApnsSandboxChannelCommand; });
31223/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsVoipChannelCommand", function() { return deserializeAws_restJson1GetApnsVoipChannelCommand; });
31224/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1GetApnsVoipSandboxChannelCommand; });
31225/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAppCommand", function() { return deserializeAws_restJson1GetAppCommand; });
31226/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApplicationDateRangeKpiCommand", function() { return deserializeAws_restJson1GetApplicationDateRangeKpiCommand; });
31227/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApplicationSettingsCommand", function() { return deserializeAws_restJson1GetApplicationSettingsCommand; });
31228/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAppsCommand", function() { return deserializeAws_restJson1GetAppsCommand; });
31229/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetBaiduChannelCommand", function() { return deserializeAws_restJson1GetBaiduChannelCommand; });
31230/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignCommand", function() { return deserializeAws_restJson1GetCampaignCommand; });
31231/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignActivitiesCommand", function() { return deserializeAws_restJson1GetCampaignActivitiesCommand; });
31232/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignDateRangeKpiCommand", function() { return deserializeAws_restJson1GetCampaignDateRangeKpiCommand; });
31233/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignsCommand", function() { return deserializeAws_restJson1GetCampaignsCommand; });
31234/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignVersionCommand", function() { return deserializeAws_restJson1GetCampaignVersionCommand; });
31235/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignVersionsCommand", function() { return deserializeAws_restJson1GetCampaignVersionsCommand; });
31236/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetChannelsCommand", function() { return deserializeAws_restJson1GetChannelsCommand; });
31237/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEmailChannelCommand", function() { return deserializeAws_restJson1GetEmailChannelCommand; });
31238/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEmailTemplateCommand", function() { return deserializeAws_restJson1GetEmailTemplateCommand; });
31239/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEndpointCommand", function() { return deserializeAws_restJson1GetEndpointCommand; });
31240/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEventStreamCommand", function() { return deserializeAws_restJson1GetEventStreamCommand; });
31241/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetExportJobCommand", function() { return deserializeAws_restJson1GetExportJobCommand; });
31242/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetExportJobsCommand", function() { return deserializeAws_restJson1GetExportJobsCommand; });
31243/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetGcmChannelCommand", function() { return deserializeAws_restJson1GetGcmChannelCommand; });
31244/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetImportJobCommand", function() { return deserializeAws_restJson1GetImportJobCommand; });
31245/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetImportJobsCommand", function() { return deserializeAws_restJson1GetImportJobsCommand; });
31246/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyCommand", function() { return deserializeAws_restJson1GetJourneyCommand; });
31247/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyDateRangeKpiCommand", function() { return deserializeAws_restJson1GetJourneyDateRangeKpiCommand; });
31248/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand", function() { return deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand; });
31249/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyExecutionMetricsCommand", function() { return deserializeAws_restJson1GetJourneyExecutionMetricsCommand; });
31250/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetPushTemplateCommand", function() { return deserializeAws_restJson1GetPushTemplateCommand; });
31251/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetRecommenderConfigurationCommand", function() { return deserializeAws_restJson1GetRecommenderConfigurationCommand; });
31252/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetRecommenderConfigurationsCommand", function() { return deserializeAws_restJson1GetRecommenderConfigurationsCommand; });
31253/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentCommand", function() { return deserializeAws_restJson1GetSegmentCommand; });
31254/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentExportJobsCommand", function() { return deserializeAws_restJson1GetSegmentExportJobsCommand; });
31255/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentImportJobsCommand", function() { return deserializeAws_restJson1GetSegmentImportJobsCommand; });
31256/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentsCommand", function() { return deserializeAws_restJson1GetSegmentsCommand; });
31257/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentVersionCommand", function() { return deserializeAws_restJson1GetSegmentVersionCommand; });
31258/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentVersionsCommand", function() { return deserializeAws_restJson1GetSegmentVersionsCommand; });
31259/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSmsChannelCommand", function() { return deserializeAws_restJson1GetSmsChannelCommand; });
31260/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSmsTemplateCommand", function() { return deserializeAws_restJson1GetSmsTemplateCommand; });
31261/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetUserEndpointsCommand", function() { return deserializeAws_restJson1GetUserEndpointsCommand; });
31262/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetVoiceChannelCommand", function() { return deserializeAws_restJson1GetVoiceChannelCommand; });
31263/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetVoiceTemplateCommand", function() { return deserializeAws_restJson1GetVoiceTemplateCommand; });
31264/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListJourneysCommand", function() { return deserializeAws_restJson1ListJourneysCommand; });
31265/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTagsForResourceCommand", function() { return deserializeAws_restJson1ListTagsForResourceCommand; });
31266/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTemplatesCommand", function() { return deserializeAws_restJson1ListTemplatesCommand; });
31267/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTemplateVersionsCommand", function() { return deserializeAws_restJson1ListTemplateVersionsCommand; });
31268/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PhoneNumberValidateCommand", function() { return deserializeAws_restJson1PhoneNumberValidateCommand; });
31269/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventsCommand", function() { return deserializeAws_restJson1PutEventsCommand; });
31270/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventStreamCommand", function() { return deserializeAws_restJson1PutEventStreamCommand; });
31271/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1RemoveAttributesCommand", function() { return deserializeAws_restJson1RemoveAttributesCommand; });
31272/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1SendMessagesCommand", function() { return deserializeAws_restJson1SendMessagesCommand; });
31273/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1SendUsersMessagesCommand", function() { return deserializeAws_restJson1SendUsersMessagesCommand; });
31274/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1TagResourceCommand", function() { return deserializeAws_restJson1TagResourceCommand; });
31275/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UntagResourceCommand", function() { return deserializeAws_restJson1UntagResourceCommand; });
31276/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateAdmChannelCommand", function() { return deserializeAws_restJson1UpdateAdmChannelCommand; });
31277/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsChannelCommand", function() { return deserializeAws_restJson1UpdateApnsChannelCommand; });
31278/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsSandboxChannelCommand", function() { return deserializeAws_restJson1UpdateApnsSandboxChannelCommand; });
31279/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsVoipChannelCommand", function() { return deserializeAws_restJson1UpdateApnsVoipChannelCommand; });
31280/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand; });
31281/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApplicationSettingsCommand", function() { return deserializeAws_restJson1UpdateApplicationSettingsCommand; });
31282/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateBaiduChannelCommand", function() { return deserializeAws_restJson1UpdateBaiduChannelCommand; });
31283/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateCampaignCommand", function() { return deserializeAws_restJson1UpdateCampaignCommand; });
31284/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEmailChannelCommand", function() { return deserializeAws_restJson1UpdateEmailChannelCommand; });
31285/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEmailTemplateCommand", function() { return deserializeAws_restJson1UpdateEmailTemplateCommand; });
31286/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEndpointCommand", function() { return deserializeAws_restJson1UpdateEndpointCommand; });
31287/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEndpointsBatchCommand", function() { return deserializeAws_restJson1UpdateEndpointsBatchCommand; });
31288/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateGcmChannelCommand", function() { return deserializeAws_restJson1UpdateGcmChannelCommand; });
31289/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateJourneyCommand", function() { return deserializeAws_restJson1UpdateJourneyCommand; });
31290/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateJourneyStateCommand", function() { return deserializeAws_restJson1UpdateJourneyStateCommand; });
31291/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdatePushTemplateCommand", function() { return deserializeAws_restJson1UpdatePushTemplateCommand; });
31292/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateRecommenderConfigurationCommand", function() { return deserializeAws_restJson1UpdateRecommenderConfigurationCommand; });
31293/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSegmentCommand", function() { return deserializeAws_restJson1UpdateSegmentCommand; });
31294/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSmsChannelCommand", function() { return deserializeAws_restJson1UpdateSmsChannelCommand; });
31295/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSmsTemplateCommand", function() { return deserializeAws_restJson1UpdateSmsTemplateCommand; });
31296/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateTemplateActiveVersionCommand", function() { return deserializeAws_restJson1UpdateTemplateActiveVersionCommand; });
31297/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateVoiceChannelCommand", function() { return deserializeAws_restJson1UpdateVoiceChannelCommand; });
31298/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateVoiceTemplateCommand", function() { return deserializeAws_restJson1UpdateVoiceTemplateCommand; });
31299/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
31300/* 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");
31301/* 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");
31302
31303
31304
31305var serializeAws_restJson1CreateAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31306 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
31307 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31308 switch (_c.label) {
31309 case 0:
31310 headers = {
31311 "content-type": "application/json",
31312 };
31313 resolvedPath = "/v1/apps";
31314 if (input.CreateApplicationRequest !== undefined) {
31315 body = serializeAws_restJson1CreateApplicationRequest(input.CreateApplicationRequest, context);
31316 }
31317 if (body === undefined) {
31318 body = {};
31319 }
31320 body = JSON.stringify(body);
31321 return [4 /*yield*/, context.endpoint()];
31322 case 1:
31323 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31324 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31325 protocol: protocol,
31326 hostname: hostname,
31327 port: port,
31328 method: "POST",
31329 headers: headers,
31330 path: resolvedPath,
31331 body: body,
31332 })];
31333 }
31334 });
31335}); };
31336var serializeAws_restJson1CreateCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31337 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31338 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31339 switch (_c.label) {
31340 case 0:
31341 headers = {
31342 "content-type": "application/json",
31343 };
31344 resolvedPath = "/v1/apps/{ApplicationId}/campaigns";
31345 if (input.ApplicationId !== undefined) {
31346 labelValue = input.ApplicationId;
31347 if (labelValue.length <= 0) {
31348 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31349 }
31350 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31351 }
31352 else {
31353 throw new Error("No value provided for input HTTP label: ApplicationId.");
31354 }
31355 if (input.WriteCampaignRequest !== undefined) {
31356 body = serializeAws_restJson1WriteCampaignRequest(input.WriteCampaignRequest, context);
31357 }
31358 if (body === undefined) {
31359 body = {};
31360 }
31361 body = JSON.stringify(body);
31362 return [4 /*yield*/, context.endpoint()];
31363 case 1:
31364 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31365 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31366 protocol: protocol,
31367 hostname: hostname,
31368 port: port,
31369 method: "POST",
31370 headers: headers,
31371 path: resolvedPath,
31372 body: body,
31373 })];
31374 }
31375 });
31376}); };
31377var serializeAws_restJson1CreateEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31378 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31379 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31380 switch (_c.label) {
31381 case 0:
31382 headers = {
31383 "content-type": "application/json",
31384 };
31385 resolvedPath = "/v1/templates/{TemplateName}/email";
31386 if (input.TemplateName !== undefined) {
31387 labelValue = input.TemplateName;
31388 if (labelValue.length <= 0) {
31389 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31390 }
31391 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31392 }
31393 else {
31394 throw new Error("No value provided for input HTTP label: TemplateName.");
31395 }
31396 if (input.EmailTemplateRequest !== undefined) {
31397 body = serializeAws_restJson1EmailTemplateRequest(input.EmailTemplateRequest, context);
31398 }
31399 if (body === undefined) {
31400 body = {};
31401 }
31402 body = JSON.stringify(body);
31403 return [4 /*yield*/, context.endpoint()];
31404 case 1:
31405 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31406 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31407 protocol: protocol,
31408 hostname: hostname,
31409 port: port,
31410 method: "POST",
31411 headers: headers,
31412 path: resolvedPath,
31413 body: body,
31414 })];
31415 }
31416 });
31417}); };
31418var serializeAws_restJson1CreateExportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31419 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31420 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31421 switch (_c.label) {
31422 case 0:
31423 headers = {
31424 "content-type": "application/json",
31425 };
31426 resolvedPath = "/v1/apps/{ApplicationId}/jobs/export";
31427 if (input.ApplicationId !== undefined) {
31428 labelValue = input.ApplicationId;
31429 if (labelValue.length <= 0) {
31430 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31431 }
31432 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31433 }
31434 else {
31435 throw new Error("No value provided for input HTTP label: ApplicationId.");
31436 }
31437 if (input.ExportJobRequest !== undefined) {
31438 body = serializeAws_restJson1ExportJobRequest(input.ExportJobRequest, context);
31439 }
31440 if (body === undefined) {
31441 body = {};
31442 }
31443 body = JSON.stringify(body);
31444 return [4 /*yield*/, context.endpoint()];
31445 case 1:
31446 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31447 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31448 protocol: protocol,
31449 hostname: hostname,
31450 port: port,
31451 method: "POST",
31452 headers: headers,
31453 path: resolvedPath,
31454 body: body,
31455 })];
31456 }
31457 });
31458}); };
31459var serializeAws_restJson1CreateImportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31460 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31461 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31462 switch (_c.label) {
31463 case 0:
31464 headers = {
31465 "content-type": "application/json",
31466 };
31467 resolvedPath = "/v1/apps/{ApplicationId}/jobs/import";
31468 if (input.ApplicationId !== undefined) {
31469 labelValue = input.ApplicationId;
31470 if (labelValue.length <= 0) {
31471 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31472 }
31473 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31474 }
31475 else {
31476 throw new Error("No value provided for input HTTP label: ApplicationId.");
31477 }
31478 if (input.ImportJobRequest !== undefined) {
31479 body = serializeAws_restJson1ImportJobRequest(input.ImportJobRequest, context);
31480 }
31481 if (body === undefined) {
31482 body = {};
31483 }
31484 body = JSON.stringify(body);
31485 return [4 /*yield*/, context.endpoint()];
31486 case 1:
31487 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31488 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31489 protocol: protocol,
31490 hostname: hostname,
31491 port: port,
31492 method: "POST",
31493 headers: headers,
31494 path: resolvedPath,
31495 body: body,
31496 })];
31497 }
31498 });
31499}); };
31500var serializeAws_restJson1CreateJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31501 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31502 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31503 switch (_c.label) {
31504 case 0:
31505 headers = {
31506 "content-type": "application/json",
31507 };
31508 resolvedPath = "/v1/apps/{ApplicationId}/journeys";
31509 if (input.ApplicationId !== undefined) {
31510 labelValue = input.ApplicationId;
31511 if (labelValue.length <= 0) {
31512 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31513 }
31514 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31515 }
31516 else {
31517 throw new Error("No value provided for input HTTP label: ApplicationId.");
31518 }
31519 if (input.WriteJourneyRequest !== undefined) {
31520 body = serializeAws_restJson1WriteJourneyRequest(input.WriteJourneyRequest, context);
31521 }
31522 if (body === undefined) {
31523 body = {};
31524 }
31525 body = JSON.stringify(body);
31526 return [4 /*yield*/, context.endpoint()];
31527 case 1:
31528 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31529 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31530 protocol: protocol,
31531 hostname: hostname,
31532 port: port,
31533 method: "POST",
31534 headers: headers,
31535 path: resolvedPath,
31536 body: body,
31537 })];
31538 }
31539 });
31540}); };
31541var serializeAws_restJson1CreatePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31542 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31543 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31544 switch (_c.label) {
31545 case 0:
31546 headers = {
31547 "content-type": "application/json",
31548 };
31549 resolvedPath = "/v1/templates/{TemplateName}/push";
31550 if (input.TemplateName !== undefined) {
31551 labelValue = input.TemplateName;
31552 if (labelValue.length <= 0) {
31553 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31554 }
31555 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31556 }
31557 else {
31558 throw new Error("No value provided for input HTTP label: TemplateName.");
31559 }
31560 if (input.PushNotificationTemplateRequest !== undefined) {
31561 body = serializeAws_restJson1PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context);
31562 }
31563 if (body === undefined) {
31564 body = {};
31565 }
31566 body = JSON.stringify(body);
31567 return [4 /*yield*/, context.endpoint()];
31568 case 1:
31569 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31570 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31571 protocol: protocol,
31572 hostname: hostname,
31573 port: port,
31574 method: "POST",
31575 headers: headers,
31576 path: resolvedPath,
31577 body: body,
31578 })];
31579 }
31580 });
31581}); };
31582var serializeAws_restJson1CreateRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31583 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
31584 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31585 switch (_c.label) {
31586 case 0:
31587 headers = {
31588 "content-type": "application/json",
31589 };
31590 resolvedPath = "/v1/recommenders";
31591 if (input.CreateRecommenderConfiguration !== undefined) {
31592 body = serializeAws_restJson1CreateRecommenderConfigurationShape(input.CreateRecommenderConfiguration, context);
31593 }
31594 if (body === undefined) {
31595 body = {};
31596 }
31597 body = JSON.stringify(body);
31598 return [4 /*yield*/, context.endpoint()];
31599 case 1:
31600 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31601 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31602 protocol: protocol,
31603 hostname: hostname,
31604 port: port,
31605 method: "POST",
31606 headers: headers,
31607 path: resolvedPath,
31608 body: body,
31609 })];
31610 }
31611 });
31612}); };
31613var serializeAws_restJson1CreateSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31614 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31615 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31616 switch (_c.label) {
31617 case 0:
31618 headers = {
31619 "content-type": "application/json",
31620 };
31621 resolvedPath = "/v1/apps/{ApplicationId}/segments";
31622 if (input.ApplicationId !== undefined) {
31623 labelValue = input.ApplicationId;
31624 if (labelValue.length <= 0) {
31625 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31626 }
31627 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31628 }
31629 else {
31630 throw new Error("No value provided for input HTTP label: ApplicationId.");
31631 }
31632 if (input.WriteSegmentRequest !== undefined) {
31633 body = serializeAws_restJson1WriteSegmentRequest(input.WriteSegmentRequest, context);
31634 }
31635 if (body === undefined) {
31636 body = {};
31637 }
31638 body = JSON.stringify(body);
31639 return [4 /*yield*/, context.endpoint()];
31640 case 1:
31641 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31642 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31643 protocol: protocol,
31644 hostname: hostname,
31645 port: port,
31646 method: "POST",
31647 headers: headers,
31648 path: resolvedPath,
31649 body: body,
31650 })];
31651 }
31652 });
31653}); };
31654var serializeAws_restJson1CreateSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31655 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31656 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31657 switch (_c.label) {
31658 case 0:
31659 headers = {
31660 "content-type": "application/json",
31661 };
31662 resolvedPath = "/v1/templates/{TemplateName}/sms";
31663 if (input.TemplateName !== undefined) {
31664 labelValue = input.TemplateName;
31665 if (labelValue.length <= 0) {
31666 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31667 }
31668 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31669 }
31670 else {
31671 throw new Error("No value provided for input HTTP label: TemplateName.");
31672 }
31673 if (input.SMSTemplateRequest !== undefined) {
31674 body = serializeAws_restJson1SMSTemplateRequest(input.SMSTemplateRequest, context);
31675 }
31676 if (body === undefined) {
31677 body = {};
31678 }
31679 body = JSON.stringify(body);
31680 return [4 /*yield*/, context.endpoint()];
31681 case 1:
31682 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31683 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31684 protocol: protocol,
31685 hostname: hostname,
31686 port: port,
31687 method: "POST",
31688 headers: headers,
31689 path: resolvedPath,
31690 body: body,
31691 })];
31692 }
31693 });
31694}); };
31695var serializeAws_restJson1CreateVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31696 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31697 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31698 switch (_c.label) {
31699 case 0:
31700 headers = {
31701 "content-type": "application/json",
31702 };
31703 resolvedPath = "/v1/templates/{TemplateName}/voice";
31704 if (input.TemplateName !== undefined) {
31705 labelValue = input.TemplateName;
31706 if (labelValue.length <= 0) {
31707 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31708 }
31709 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31710 }
31711 else {
31712 throw new Error("No value provided for input HTTP label: TemplateName.");
31713 }
31714 if (input.VoiceTemplateRequest !== undefined) {
31715 body = serializeAws_restJson1VoiceTemplateRequest(input.VoiceTemplateRequest, context);
31716 }
31717 if (body === undefined) {
31718 body = {};
31719 }
31720 body = JSON.stringify(body);
31721 return [4 /*yield*/, context.endpoint()];
31722 case 1:
31723 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31724 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31725 protocol: protocol,
31726 hostname: hostname,
31727 port: port,
31728 method: "POST",
31729 headers: headers,
31730 path: resolvedPath,
31731 body: body,
31732 })];
31733 }
31734 });
31735}); };
31736var serializeAws_restJson1DeleteAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31737 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31738 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31739 switch (_c.label) {
31740 case 0:
31741 headers = {};
31742 resolvedPath = "/v1/apps/{ApplicationId}/channels/adm";
31743 if (input.ApplicationId !== undefined) {
31744 labelValue = input.ApplicationId;
31745 if (labelValue.length <= 0) {
31746 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31747 }
31748 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31749 }
31750 else {
31751 throw new Error("No value provided for input HTTP label: ApplicationId.");
31752 }
31753 return [4 /*yield*/, context.endpoint()];
31754 case 1:
31755 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31756 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31757 protocol: protocol,
31758 hostname: hostname,
31759 port: port,
31760 method: "DELETE",
31761 headers: headers,
31762 path: resolvedPath,
31763 body: body,
31764 })];
31765 }
31766 });
31767}); };
31768var serializeAws_restJson1DeleteApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31769 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31770 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31771 switch (_c.label) {
31772 case 0:
31773 headers = {};
31774 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns";
31775 if (input.ApplicationId !== undefined) {
31776 labelValue = input.ApplicationId;
31777 if (labelValue.length <= 0) {
31778 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31779 }
31780 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31781 }
31782 else {
31783 throw new Error("No value provided for input HTTP label: ApplicationId.");
31784 }
31785 return [4 /*yield*/, context.endpoint()];
31786 case 1:
31787 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31788 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31789 protocol: protocol,
31790 hostname: hostname,
31791 port: port,
31792 method: "DELETE",
31793 headers: headers,
31794 path: resolvedPath,
31795 body: body,
31796 })];
31797 }
31798 });
31799}); };
31800var serializeAws_restJson1DeleteApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31801 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31802 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31803 switch (_c.label) {
31804 case 0:
31805 headers = {};
31806 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox";
31807 if (input.ApplicationId !== undefined) {
31808 labelValue = input.ApplicationId;
31809 if (labelValue.length <= 0) {
31810 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31811 }
31812 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31813 }
31814 else {
31815 throw new Error("No value provided for input HTTP label: ApplicationId.");
31816 }
31817 return [4 /*yield*/, context.endpoint()];
31818 case 1:
31819 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31820 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31821 protocol: protocol,
31822 hostname: hostname,
31823 port: port,
31824 method: "DELETE",
31825 headers: headers,
31826 path: resolvedPath,
31827 body: body,
31828 })];
31829 }
31830 });
31831}); };
31832var serializeAws_restJson1DeleteApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31833 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31834 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31835 switch (_c.label) {
31836 case 0:
31837 headers = {};
31838 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip";
31839 if (input.ApplicationId !== undefined) {
31840 labelValue = input.ApplicationId;
31841 if (labelValue.length <= 0) {
31842 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31843 }
31844 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31845 }
31846 else {
31847 throw new Error("No value provided for input HTTP label: ApplicationId.");
31848 }
31849 return [4 /*yield*/, context.endpoint()];
31850 case 1:
31851 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31852 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31853 protocol: protocol,
31854 hostname: hostname,
31855 port: port,
31856 method: "DELETE",
31857 headers: headers,
31858 path: resolvedPath,
31859 body: body,
31860 })];
31861 }
31862 });
31863}); };
31864var serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31865 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31866 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31867 switch (_c.label) {
31868 case 0:
31869 headers = {};
31870 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
31871 if (input.ApplicationId !== undefined) {
31872 labelValue = input.ApplicationId;
31873 if (labelValue.length <= 0) {
31874 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31875 }
31876 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31877 }
31878 else {
31879 throw new Error("No value provided for input HTTP label: ApplicationId.");
31880 }
31881 return [4 /*yield*/, context.endpoint()];
31882 case 1:
31883 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31884 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31885 protocol: protocol,
31886 hostname: hostname,
31887 port: port,
31888 method: "DELETE",
31889 headers: headers,
31890 path: resolvedPath,
31891 body: body,
31892 })];
31893 }
31894 });
31895}); };
31896var serializeAws_restJson1DeleteAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31897 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31898 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31899 switch (_c.label) {
31900 case 0:
31901 headers = {};
31902 resolvedPath = "/v1/apps/{ApplicationId}";
31903 if (input.ApplicationId !== undefined) {
31904 labelValue = input.ApplicationId;
31905 if (labelValue.length <= 0) {
31906 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31907 }
31908 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31909 }
31910 else {
31911 throw new Error("No value provided for input HTTP label: ApplicationId.");
31912 }
31913 return [4 /*yield*/, context.endpoint()];
31914 case 1:
31915 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31916 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31917 protocol: protocol,
31918 hostname: hostname,
31919 port: port,
31920 method: "DELETE",
31921 headers: headers,
31922 path: resolvedPath,
31923 body: body,
31924 })];
31925 }
31926 });
31927}); };
31928var serializeAws_restJson1DeleteBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31929 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31930 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31931 switch (_c.label) {
31932 case 0:
31933 headers = {};
31934 resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu";
31935 if (input.ApplicationId !== undefined) {
31936 labelValue = input.ApplicationId;
31937 if (labelValue.length <= 0) {
31938 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31939 }
31940 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31941 }
31942 else {
31943 throw new Error("No value provided for input HTTP label: ApplicationId.");
31944 }
31945 return [4 /*yield*/, context.endpoint()];
31946 case 1:
31947 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31948 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31949 protocol: protocol,
31950 hostname: hostname,
31951 port: port,
31952 method: "DELETE",
31953 headers: headers,
31954 path: resolvedPath,
31955 body: body,
31956 })];
31957 }
31958 });
31959}); };
31960var serializeAws_restJson1DeleteCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31961 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
31962 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31963 switch (_c.label) {
31964 case 0:
31965 headers = {};
31966 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
31967 if (input.ApplicationId !== undefined) {
31968 labelValue = input.ApplicationId;
31969 if (labelValue.length <= 0) {
31970 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31971 }
31972 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31973 }
31974 else {
31975 throw new Error("No value provided for input HTTP label: ApplicationId.");
31976 }
31977 if (input.CampaignId !== undefined) {
31978 labelValue = input.CampaignId;
31979 if (labelValue.length <= 0) {
31980 throw new Error("Empty value provided for input HTTP label: CampaignId.");
31981 }
31982 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31983 }
31984 else {
31985 throw new Error("No value provided for input HTTP label: CampaignId.");
31986 }
31987 return [4 /*yield*/, context.endpoint()];
31988 case 1:
31989 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31990 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31991 protocol: protocol,
31992 hostname: hostname,
31993 port: port,
31994 method: "DELETE",
31995 headers: headers,
31996 path: resolvedPath,
31997 body: body,
31998 })];
31999 }
32000 });
32001}); };
32002var serializeAws_restJson1DeleteEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32003 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32004 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32005 switch (_c.label) {
32006 case 0:
32007 headers = {};
32008 resolvedPath = "/v1/apps/{ApplicationId}/channels/email";
32009 if (input.ApplicationId !== undefined) {
32010 labelValue = input.ApplicationId;
32011 if (labelValue.length <= 0) {
32012 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32013 }
32014 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32015 }
32016 else {
32017 throw new Error("No value provided for input HTTP label: ApplicationId.");
32018 }
32019 return [4 /*yield*/, context.endpoint()];
32020 case 1:
32021 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32022 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32023 protocol: protocol,
32024 hostname: hostname,
32025 port: port,
32026 method: "DELETE",
32027 headers: headers,
32028 path: resolvedPath,
32029 body: body,
32030 })];
32031 }
32032 });
32033}); };
32034var serializeAws_restJson1DeleteEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32035 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32036 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32037 switch (_c.label) {
32038 case 0:
32039 headers = {};
32040 resolvedPath = "/v1/templates/{TemplateName}/email";
32041 if (input.TemplateName !== undefined) {
32042 labelValue = input.TemplateName;
32043 if (labelValue.length <= 0) {
32044 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32045 }
32046 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32047 }
32048 else {
32049 throw new Error("No value provided for input HTTP label: TemplateName.");
32050 }
32051 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32052 return [4 /*yield*/, context.endpoint()];
32053 case 1:
32054 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32055 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32056 protocol: protocol,
32057 hostname: hostname,
32058 port: port,
32059 method: "DELETE",
32060 headers: headers,
32061 path: resolvedPath,
32062 query: query,
32063 body: body,
32064 })];
32065 }
32066 });
32067}); };
32068var serializeAws_restJson1DeleteEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32069 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32070 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32071 switch (_c.label) {
32072 case 0:
32073 headers = {};
32074 resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
32075 if (input.ApplicationId !== undefined) {
32076 labelValue = input.ApplicationId;
32077 if (labelValue.length <= 0) {
32078 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32079 }
32080 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32081 }
32082 else {
32083 throw new Error("No value provided for input HTTP label: ApplicationId.");
32084 }
32085 if (input.EndpointId !== undefined) {
32086 labelValue = input.EndpointId;
32087 if (labelValue.length <= 0) {
32088 throw new Error("Empty value provided for input HTTP label: EndpointId.");
32089 }
32090 resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32091 }
32092 else {
32093 throw new Error("No value provided for input HTTP label: EndpointId.");
32094 }
32095 return [4 /*yield*/, context.endpoint()];
32096 case 1:
32097 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32098 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32099 protocol: protocol,
32100 hostname: hostname,
32101 port: port,
32102 method: "DELETE",
32103 headers: headers,
32104 path: resolvedPath,
32105 body: body,
32106 })];
32107 }
32108 });
32109}); };
32110var serializeAws_restJson1DeleteEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32111 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32112 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32113 switch (_c.label) {
32114 case 0:
32115 headers = {};
32116 resolvedPath = "/v1/apps/{ApplicationId}/eventstream";
32117 if (input.ApplicationId !== undefined) {
32118 labelValue = input.ApplicationId;
32119 if (labelValue.length <= 0) {
32120 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32121 }
32122 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32123 }
32124 else {
32125 throw new Error("No value provided for input HTTP label: ApplicationId.");
32126 }
32127 return [4 /*yield*/, context.endpoint()];
32128 case 1:
32129 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32130 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32131 protocol: protocol,
32132 hostname: hostname,
32133 port: port,
32134 method: "DELETE",
32135 headers: headers,
32136 path: resolvedPath,
32137 body: body,
32138 })];
32139 }
32140 });
32141}); };
32142var serializeAws_restJson1DeleteGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32143 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32144 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32145 switch (_c.label) {
32146 case 0:
32147 headers = {};
32148 resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm";
32149 if (input.ApplicationId !== undefined) {
32150 labelValue = input.ApplicationId;
32151 if (labelValue.length <= 0) {
32152 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32153 }
32154 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32155 }
32156 else {
32157 throw new Error("No value provided for input HTTP label: ApplicationId.");
32158 }
32159 return [4 /*yield*/, context.endpoint()];
32160 case 1:
32161 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32162 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32163 protocol: protocol,
32164 hostname: hostname,
32165 port: port,
32166 method: "DELETE",
32167 headers: headers,
32168 path: resolvedPath,
32169 body: body,
32170 })];
32171 }
32172 });
32173}); };
32174var serializeAws_restJson1DeleteJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32175 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32176 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32177 switch (_c.label) {
32178 case 0:
32179 headers = {};
32180 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}";
32181 if (input.ApplicationId !== undefined) {
32182 labelValue = input.ApplicationId;
32183 if (labelValue.length <= 0) {
32184 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32185 }
32186 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32187 }
32188 else {
32189 throw new Error("No value provided for input HTTP label: ApplicationId.");
32190 }
32191 if (input.JourneyId !== undefined) {
32192 labelValue = input.JourneyId;
32193 if (labelValue.length <= 0) {
32194 throw new Error("Empty value provided for input HTTP label: JourneyId.");
32195 }
32196 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32197 }
32198 else {
32199 throw new Error("No value provided for input HTTP label: JourneyId.");
32200 }
32201 return [4 /*yield*/, context.endpoint()];
32202 case 1:
32203 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32204 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32205 protocol: protocol,
32206 hostname: hostname,
32207 port: port,
32208 method: "DELETE",
32209 headers: headers,
32210 path: resolvedPath,
32211 body: body,
32212 })];
32213 }
32214 });
32215}); };
32216var serializeAws_restJson1DeletePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32217 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32218 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32219 switch (_c.label) {
32220 case 0:
32221 headers = {};
32222 resolvedPath = "/v1/templates/{TemplateName}/push";
32223 if (input.TemplateName !== undefined) {
32224 labelValue = input.TemplateName;
32225 if (labelValue.length <= 0) {
32226 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32227 }
32228 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32229 }
32230 else {
32231 throw new Error("No value provided for input HTTP label: TemplateName.");
32232 }
32233 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32234 return [4 /*yield*/, context.endpoint()];
32235 case 1:
32236 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32237 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32238 protocol: protocol,
32239 hostname: hostname,
32240 port: port,
32241 method: "DELETE",
32242 headers: headers,
32243 path: resolvedPath,
32244 query: query,
32245 body: body,
32246 })];
32247 }
32248 });
32249}); };
32250var serializeAws_restJson1DeleteRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32251 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32252 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32253 switch (_c.label) {
32254 case 0:
32255 headers = {};
32256 resolvedPath = "/v1/recommenders/{RecommenderId}";
32257 if (input.RecommenderId !== undefined) {
32258 labelValue = input.RecommenderId;
32259 if (labelValue.length <= 0) {
32260 throw new Error("Empty value provided for input HTTP label: RecommenderId.");
32261 }
32262 resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32263 }
32264 else {
32265 throw new Error("No value provided for input HTTP label: RecommenderId.");
32266 }
32267 return [4 /*yield*/, context.endpoint()];
32268 case 1:
32269 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32270 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32271 protocol: protocol,
32272 hostname: hostname,
32273 port: port,
32274 method: "DELETE",
32275 headers: headers,
32276 path: resolvedPath,
32277 body: body,
32278 })];
32279 }
32280 });
32281}); };
32282var serializeAws_restJson1DeleteSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32283 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32284 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32285 switch (_c.label) {
32286 case 0:
32287 headers = {};
32288 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}";
32289 if (input.ApplicationId !== undefined) {
32290 labelValue = input.ApplicationId;
32291 if (labelValue.length <= 0) {
32292 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32293 }
32294 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32295 }
32296 else {
32297 throw new Error("No value provided for input HTTP label: ApplicationId.");
32298 }
32299 if (input.SegmentId !== undefined) {
32300 labelValue = input.SegmentId;
32301 if (labelValue.length <= 0) {
32302 throw new Error("Empty value provided for input HTTP label: SegmentId.");
32303 }
32304 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32305 }
32306 else {
32307 throw new Error("No value provided for input HTTP label: SegmentId.");
32308 }
32309 return [4 /*yield*/, context.endpoint()];
32310 case 1:
32311 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32312 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32313 protocol: protocol,
32314 hostname: hostname,
32315 port: port,
32316 method: "DELETE",
32317 headers: headers,
32318 path: resolvedPath,
32319 body: body,
32320 })];
32321 }
32322 });
32323}); };
32324var serializeAws_restJson1DeleteSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32325 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32326 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32327 switch (_c.label) {
32328 case 0:
32329 headers = {};
32330 resolvedPath = "/v1/apps/{ApplicationId}/channels/sms";
32331 if (input.ApplicationId !== undefined) {
32332 labelValue = input.ApplicationId;
32333 if (labelValue.length <= 0) {
32334 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32335 }
32336 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32337 }
32338 else {
32339 throw new Error("No value provided for input HTTP label: ApplicationId.");
32340 }
32341 return [4 /*yield*/, context.endpoint()];
32342 case 1:
32343 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32344 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32345 protocol: protocol,
32346 hostname: hostname,
32347 port: port,
32348 method: "DELETE",
32349 headers: headers,
32350 path: resolvedPath,
32351 body: body,
32352 })];
32353 }
32354 });
32355}); };
32356var serializeAws_restJson1DeleteSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32357 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32358 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32359 switch (_c.label) {
32360 case 0:
32361 headers = {};
32362 resolvedPath = "/v1/templates/{TemplateName}/sms";
32363 if (input.TemplateName !== undefined) {
32364 labelValue = input.TemplateName;
32365 if (labelValue.length <= 0) {
32366 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32367 }
32368 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32369 }
32370 else {
32371 throw new Error("No value provided for input HTTP label: TemplateName.");
32372 }
32373 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32374 return [4 /*yield*/, context.endpoint()];
32375 case 1:
32376 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32377 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32378 protocol: protocol,
32379 hostname: hostname,
32380 port: port,
32381 method: "DELETE",
32382 headers: headers,
32383 path: resolvedPath,
32384 query: query,
32385 body: body,
32386 })];
32387 }
32388 });
32389}); };
32390var serializeAws_restJson1DeleteUserEndpointsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32391 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32392 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32393 switch (_c.label) {
32394 case 0:
32395 headers = {};
32396 resolvedPath = "/v1/apps/{ApplicationId}/users/{UserId}";
32397 if (input.ApplicationId !== undefined) {
32398 labelValue = input.ApplicationId;
32399 if (labelValue.length <= 0) {
32400 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32401 }
32402 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32403 }
32404 else {
32405 throw new Error("No value provided for input HTTP label: ApplicationId.");
32406 }
32407 if (input.UserId !== undefined) {
32408 labelValue = input.UserId;
32409 if (labelValue.length <= 0) {
32410 throw new Error("Empty value provided for input HTTP label: UserId.");
32411 }
32412 resolvedPath = resolvedPath.replace("{UserId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32413 }
32414 else {
32415 throw new Error("No value provided for input HTTP label: UserId.");
32416 }
32417 return [4 /*yield*/, context.endpoint()];
32418 case 1:
32419 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32420 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32421 protocol: protocol,
32422 hostname: hostname,
32423 port: port,
32424 method: "DELETE",
32425 headers: headers,
32426 path: resolvedPath,
32427 body: body,
32428 })];
32429 }
32430 });
32431}); };
32432var serializeAws_restJson1DeleteVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32433 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32434 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32435 switch (_c.label) {
32436 case 0:
32437 headers = {};
32438 resolvedPath = "/v1/apps/{ApplicationId}/channels/voice";
32439 if (input.ApplicationId !== undefined) {
32440 labelValue = input.ApplicationId;
32441 if (labelValue.length <= 0) {
32442 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32443 }
32444 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32445 }
32446 else {
32447 throw new Error("No value provided for input HTTP label: ApplicationId.");
32448 }
32449 return [4 /*yield*/, context.endpoint()];
32450 case 1:
32451 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32452 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32453 protocol: protocol,
32454 hostname: hostname,
32455 port: port,
32456 method: "DELETE",
32457 headers: headers,
32458 path: resolvedPath,
32459 body: body,
32460 })];
32461 }
32462 });
32463}); };
32464var serializeAws_restJson1DeleteVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32465 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32466 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32467 switch (_c.label) {
32468 case 0:
32469 headers = {};
32470 resolvedPath = "/v1/templates/{TemplateName}/voice";
32471 if (input.TemplateName !== undefined) {
32472 labelValue = input.TemplateName;
32473 if (labelValue.length <= 0) {
32474 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32475 }
32476 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32477 }
32478 else {
32479 throw new Error("No value provided for input HTTP label: TemplateName.");
32480 }
32481 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32482 return [4 /*yield*/, context.endpoint()];
32483 case 1:
32484 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32485 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32486 protocol: protocol,
32487 hostname: hostname,
32488 port: port,
32489 method: "DELETE",
32490 headers: headers,
32491 path: resolvedPath,
32492 query: query,
32493 body: body,
32494 })];
32495 }
32496 });
32497}); };
32498var serializeAws_restJson1GetAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32499 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32500 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32501 switch (_c.label) {
32502 case 0:
32503 headers = {};
32504 resolvedPath = "/v1/apps/{ApplicationId}/channels/adm";
32505 if (input.ApplicationId !== undefined) {
32506 labelValue = input.ApplicationId;
32507 if (labelValue.length <= 0) {
32508 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32509 }
32510 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32511 }
32512 else {
32513 throw new Error("No value provided for input HTTP label: ApplicationId.");
32514 }
32515 return [4 /*yield*/, context.endpoint()];
32516 case 1:
32517 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32518 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32519 protocol: protocol,
32520 hostname: hostname,
32521 port: port,
32522 method: "GET",
32523 headers: headers,
32524 path: resolvedPath,
32525 body: body,
32526 })];
32527 }
32528 });
32529}); };
32530var serializeAws_restJson1GetApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32531 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32532 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32533 switch (_c.label) {
32534 case 0:
32535 headers = {};
32536 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns";
32537 if (input.ApplicationId !== undefined) {
32538 labelValue = input.ApplicationId;
32539 if (labelValue.length <= 0) {
32540 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32541 }
32542 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32543 }
32544 else {
32545 throw new Error("No value provided for input HTTP label: ApplicationId.");
32546 }
32547 return [4 /*yield*/, context.endpoint()];
32548 case 1:
32549 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32550 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32551 protocol: protocol,
32552 hostname: hostname,
32553 port: port,
32554 method: "GET",
32555 headers: headers,
32556 path: resolvedPath,
32557 body: body,
32558 })];
32559 }
32560 });
32561}); };
32562var serializeAws_restJson1GetApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32563 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32564 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32565 switch (_c.label) {
32566 case 0:
32567 headers = {};
32568 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox";
32569 if (input.ApplicationId !== undefined) {
32570 labelValue = input.ApplicationId;
32571 if (labelValue.length <= 0) {
32572 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32573 }
32574 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32575 }
32576 else {
32577 throw new Error("No value provided for input HTTP label: ApplicationId.");
32578 }
32579 return [4 /*yield*/, context.endpoint()];
32580 case 1:
32581 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32582 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32583 protocol: protocol,
32584 hostname: hostname,
32585 port: port,
32586 method: "GET",
32587 headers: headers,
32588 path: resolvedPath,
32589 body: body,
32590 })];
32591 }
32592 });
32593}); };
32594var serializeAws_restJson1GetApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32595 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32596 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32597 switch (_c.label) {
32598 case 0:
32599 headers = {};
32600 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip";
32601 if (input.ApplicationId !== undefined) {
32602 labelValue = input.ApplicationId;
32603 if (labelValue.length <= 0) {
32604 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32605 }
32606 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32607 }
32608 else {
32609 throw new Error("No value provided for input HTTP label: ApplicationId.");
32610 }
32611 return [4 /*yield*/, context.endpoint()];
32612 case 1:
32613 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32614 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32615 protocol: protocol,
32616 hostname: hostname,
32617 port: port,
32618 method: "GET",
32619 headers: headers,
32620 path: resolvedPath,
32621 body: body,
32622 })];
32623 }
32624 });
32625}); };
32626var serializeAws_restJson1GetApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32627 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32628 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32629 switch (_c.label) {
32630 case 0:
32631 headers = {};
32632 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
32633 if (input.ApplicationId !== undefined) {
32634 labelValue = input.ApplicationId;
32635 if (labelValue.length <= 0) {
32636 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32637 }
32638 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32639 }
32640 else {
32641 throw new Error("No value provided for input HTTP label: ApplicationId.");
32642 }
32643 return [4 /*yield*/, context.endpoint()];
32644 case 1:
32645 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32646 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32647 protocol: protocol,
32648 hostname: hostname,
32649 port: port,
32650 method: "GET",
32651 headers: headers,
32652 path: resolvedPath,
32653 body: body,
32654 })];
32655 }
32656 });
32657}); };
32658var serializeAws_restJson1GetAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32659 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32660 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32661 switch (_c.label) {
32662 case 0:
32663 headers = {};
32664 resolvedPath = "/v1/apps/{ApplicationId}";
32665 if (input.ApplicationId !== undefined) {
32666 labelValue = input.ApplicationId;
32667 if (labelValue.length <= 0) {
32668 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32669 }
32670 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32671 }
32672 else {
32673 throw new Error("No value provided for input HTTP label: ApplicationId.");
32674 }
32675 return [4 /*yield*/, context.endpoint()];
32676 case 1:
32677 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32678 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32679 protocol: protocol,
32680 hostname: hostname,
32681 port: port,
32682 method: "GET",
32683 headers: headers,
32684 path: resolvedPath,
32685 body: body,
32686 })];
32687 }
32688 });
32689}); };
32690var serializeAws_restJson1GetApplicationDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32691 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
32692 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32693 switch (_c.label) {
32694 case 0:
32695 headers = {};
32696 resolvedPath = "/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}";
32697 if (input.ApplicationId !== undefined) {
32698 labelValue = input.ApplicationId;
32699 if (labelValue.length <= 0) {
32700 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32701 }
32702 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32703 }
32704 else {
32705 throw new Error("No value provided for input HTTP label: ApplicationId.");
32706 }
32707 if (input.KpiName !== undefined) {
32708 labelValue = input.KpiName;
32709 if (labelValue.length <= 0) {
32710 throw new Error("Empty value provided for input HTTP label: KpiName.");
32711 }
32712 resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32713 }
32714 else {
32715 throw new Error("No value provided for input HTTP label: KpiName.");
32716 }
32717 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 && {
32718 "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
32719 }));
32720 return [4 /*yield*/, context.endpoint()];
32721 case 1:
32722 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32723 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32724 protocol: protocol,
32725 hostname: hostname,
32726 port: port,
32727 method: "GET",
32728 headers: headers,
32729 path: resolvedPath,
32730 query: query,
32731 body: body,
32732 })];
32733 }
32734 });
32735}); };
32736var serializeAws_restJson1GetApplicationSettingsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32737 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32738 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32739 switch (_c.label) {
32740 case 0:
32741 headers = {};
32742 resolvedPath = "/v1/apps/{ApplicationId}/settings";
32743 if (input.ApplicationId !== undefined) {
32744 labelValue = input.ApplicationId;
32745 if (labelValue.length <= 0) {
32746 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32747 }
32748 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32749 }
32750 else {
32751 throw new Error("No value provided for input HTTP label: ApplicationId.");
32752 }
32753 return [4 /*yield*/, context.endpoint()];
32754 case 1:
32755 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32756 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32757 protocol: protocol,
32758 hostname: hostname,
32759 port: port,
32760 method: "GET",
32761 headers: headers,
32762 path: resolvedPath,
32763 body: body,
32764 })];
32765 }
32766 });
32767}); };
32768var serializeAws_restJson1GetAppsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32769 var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port;
32770 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32771 switch (_c.label) {
32772 case 0:
32773 headers = {};
32774 resolvedPath = "/v1/apps";
32775 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 }));
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_restJson1GetBaiduChannelCommand = 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}/channels/baidu";
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_restJson1GetCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32825 var headers, resolvedPath, labelValue, labelValue, 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/{ApplicationId}/campaigns/{CampaignId}";
32831 if (input.ApplicationId !== undefined) {
32832 labelValue = input.ApplicationId;
32833 if (labelValue.length <= 0) {
32834 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32835 }
32836 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32837 }
32838 else {
32839 throw new Error("No value provided for input HTTP label: ApplicationId.");
32840 }
32841 if (input.CampaignId !== undefined) {
32842 labelValue = input.CampaignId;
32843 if (labelValue.length <= 0) {
32844 throw new Error("Empty value provided for input HTTP label: CampaignId.");
32845 }
32846 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32847 }
32848 else {
32849 throw new Error("No value provided for input HTTP label: CampaignId.");
32850 }
32851 return [4 /*yield*/, context.endpoint()];
32852 case 1:
32853 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32854 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32855 protocol: protocol,
32856 hostname: hostname,
32857 port: port,
32858 method: "GET",
32859 headers: headers,
32860 path: resolvedPath,
32861 body: body,
32862 })];
32863 }
32864 });
32865}); };
32866var serializeAws_restJson1GetCampaignActivitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32867 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
32868 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32869 switch (_c.label) {
32870 case 0:
32871 headers = {};
32872 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities";
32873 if (input.ApplicationId !== undefined) {
32874 labelValue = input.ApplicationId;
32875 if (labelValue.length <= 0) {
32876 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32877 }
32878 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32879 }
32880 else {
32881 throw new Error("No value provided for input HTTP label: ApplicationId.");
32882 }
32883 if (input.CampaignId !== undefined) {
32884 labelValue = input.CampaignId;
32885 if (labelValue.length <= 0) {
32886 throw new Error("Empty value provided for input HTTP label: CampaignId.");
32887 }
32888 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32889 }
32890 else {
32891 throw new Error("No value provided for input HTTP label: CampaignId.");
32892 }
32893 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 }));
32894 return [4 /*yield*/, context.endpoint()];
32895 case 1:
32896 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32897 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32898 protocol: protocol,
32899 hostname: hostname,
32900 port: port,
32901 method: "GET",
32902 headers: headers,
32903 path: resolvedPath,
32904 query: query,
32905 body: body,
32906 })];
32907 }
32908 });
32909}); };
32910var serializeAws_restJson1GetCampaignDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32911 var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
32912 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32913 switch (_c.label) {
32914 case 0:
32915 headers = {};
32916 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}";
32917 if (input.ApplicationId !== undefined) {
32918 labelValue = input.ApplicationId;
32919 if (labelValue.length <= 0) {
32920 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32921 }
32922 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32923 }
32924 else {
32925 throw new Error("No value provided for input HTTP label: ApplicationId.");
32926 }
32927 if (input.CampaignId !== undefined) {
32928 labelValue = input.CampaignId;
32929 if (labelValue.length <= 0) {
32930 throw new Error("Empty value provided for input HTTP label: CampaignId.");
32931 }
32932 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32933 }
32934 else {
32935 throw new Error("No value provided for input HTTP label: CampaignId.");
32936 }
32937 if (input.KpiName !== undefined) {
32938 labelValue = input.KpiName;
32939 if (labelValue.length <= 0) {
32940 throw new Error("Empty value provided for input HTTP label: KpiName.");
32941 }
32942 resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32943 }
32944 else {
32945 throw new Error("No value provided for input HTTP label: KpiName.");
32946 }
32947 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 && {
32948 "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
32949 }));
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_restJson1GetCampaignsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32967 var headers, resolvedPath, 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";
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 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 }));
32984 return [4 /*yield*/, context.endpoint()];
32985 case 1:
32986 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32987 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32988 protocol: protocol,
32989 hostname: hostname,
32990 port: port,
32991 method: "GET",
32992 headers: headers,
32993 path: resolvedPath,
32994 query: query,
32995 body: body,
32996 })];
32997 }
32998 });
32999}); };
33000var serializeAws_restJson1GetCampaignVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33001 var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33002 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33003 switch (_c.label) {
33004 case 0:
33005 headers = {};
33006 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}";
33007 if (input.ApplicationId !== undefined) {
33008 labelValue = input.ApplicationId;
33009 if (labelValue.length <= 0) {
33010 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33011 }
33012 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33013 }
33014 else {
33015 throw new Error("No value provided for input HTTP label: ApplicationId.");
33016 }
33017 if (input.CampaignId !== undefined) {
33018 labelValue = input.CampaignId;
33019 if (labelValue.length <= 0) {
33020 throw new Error("Empty value provided for input HTTP label: CampaignId.");
33021 }
33022 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33023 }
33024 else {
33025 throw new Error("No value provided for input HTTP label: CampaignId.");
33026 }
33027 if (input.Version !== undefined) {
33028 labelValue = input.Version;
33029 if (labelValue.length <= 0) {
33030 throw new Error("Empty value provided for input HTTP label: Version.");
33031 }
33032 resolvedPath = resolvedPath.replace("{Version}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33033 }
33034 else {
33035 throw new Error("No value provided for input HTTP label: Version.");
33036 }
33037 return [4 /*yield*/, context.endpoint()];
33038 case 1:
33039 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33040 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33041 protocol: protocol,
33042 hostname: hostname,
33043 port: port,
33044 method: "GET",
33045 headers: headers,
33046 path: resolvedPath,
33047 body: body,
33048 })];
33049 }
33050 });
33051}); };
33052var serializeAws_restJson1GetCampaignVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33053 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33054 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33055 switch (_c.label) {
33056 case 0:
33057 headers = {};
33058 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions";
33059 if (input.ApplicationId !== undefined) {
33060 labelValue = input.ApplicationId;
33061 if (labelValue.length <= 0) {
33062 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33063 }
33064 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33065 }
33066 else {
33067 throw new Error("No value provided for input HTTP label: ApplicationId.");
33068 }
33069 if (input.CampaignId !== undefined) {
33070 labelValue = input.CampaignId;
33071 if (labelValue.length <= 0) {
33072 throw new Error("Empty value provided for input HTTP label: CampaignId.");
33073 }
33074 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33075 }
33076 else {
33077 throw new Error("No value provided for input HTTP label: CampaignId.");
33078 }
33079 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 }));
33080 return [4 /*yield*/, context.endpoint()];
33081 case 1:
33082 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33083 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33084 protocol: protocol,
33085 hostname: hostname,
33086 port: port,
33087 method: "GET",
33088 headers: headers,
33089 path: resolvedPath,
33090 query: query,
33091 body: body,
33092 })];
33093 }
33094 });
33095}); };
33096var serializeAws_restJson1GetChannelsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33097 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33098 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33099 switch (_c.label) {
33100 case 0:
33101 headers = {};
33102 resolvedPath = "/v1/apps/{ApplicationId}/channels";
33103 if (input.ApplicationId !== undefined) {
33104 labelValue = input.ApplicationId;
33105 if (labelValue.length <= 0) {
33106 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33107 }
33108 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33109 }
33110 else {
33111 throw new Error("No value provided for input HTTP label: ApplicationId.");
33112 }
33113 return [4 /*yield*/, context.endpoint()];
33114 case 1:
33115 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33116 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33117 protocol: protocol,
33118 hostname: hostname,
33119 port: port,
33120 method: "GET",
33121 headers: headers,
33122 path: resolvedPath,
33123 body: body,
33124 })];
33125 }
33126 });
33127}); };
33128var serializeAws_restJson1GetEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33129 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33130 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33131 switch (_c.label) {
33132 case 0:
33133 headers = {};
33134 resolvedPath = "/v1/apps/{ApplicationId}/channels/email";
33135 if (input.ApplicationId !== undefined) {
33136 labelValue = input.ApplicationId;
33137 if (labelValue.length <= 0) {
33138 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33139 }
33140 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33141 }
33142 else {
33143 throw new Error("No value provided for input HTTP label: ApplicationId.");
33144 }
33145 return [4 /*yield*/, context.endpoint()];
33146 case 1:
33147 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33148 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33149 protocol: protocol,
33150 hostname: hostname,
33151 port: port,
33152 method: "GET",
33153 headers: headers,
33154 path: resolvedPath,
33155 body: body,
33156 })];
33157 }
33158 });
33159}); };
33160var serializeAws_restJson1GetEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33161 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33162 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33163 switch (_c.label) {
33164 case 0:
33165 headers = {};
33166 resolvedPath = "/v1/templates/{TemplateName}/email";
33167 if (input.TemplateName !== undefined) {
33168 labelValue = input.TemplateName;
33169 if (labelValue.length <= 0) {
33170 throw new Error("Empty value provided for input HTTP label: TemplateName.");
33171 }
33172 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33173 }
33174 else {
33175 throw new Error("No value provided for input HTTP label: TemplateName.");
33176 }
33177 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
33178 return [4 /*yield*/, context.endpoint()];
33179 case 1:
33180 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33181 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33182 protocol: protocol,
33183 hostname: hostname,
33184 port: port,
33185 method: "GET",
33186 headers: headers,
33187 path: resolvedPath,
33188 query: query,
33189 body: body,
33190 })];
33191 }
33192 });
33193}); };
33194var serializeAws_restJson1GetEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33195 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33196 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33197 switch (_c.label) {
33198 case 0:
33199 headers = {};
33200 resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
33201 if (input.ApplicationId !== undefined) {
33202 labelValue = input.ApplicationId;
33203 if (labelValue.length <= 0) {
33204 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33205 }
33206 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33207 }
33208 else {
33209 throw new Error("No value provided for input HTTP label: ApplicationId.");
33210 }
33211 if (input.EndpointId !== undefined) {
33212 labelValue = input.EndpointId;
33213 if (labelValue.length <= 0) {
33214 throw new Error("Empty value provided for input HTTP label: EndpointId.");
33215 }
33216 resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33217 }
33218 else {
33219 throw new Error("No value provided for input HTTP label: EndpointId.");
33220 }
33221 return [4 /*yield*/, context.endpoint()];
33222 case 1:
33223 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33224 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33225 protocol: protocol,
33226 hostname: hostname,
33227 port: port,
33228 method: "GET",
33229 headers: headers,
33230 path: resolvedPath,
33231 body: body,
33232 })];
33233 }
33234 });
33235}); };
33236var serializeAws_restJson1GetEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33237 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33238 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33239 switch (_c.label) {
33240 case 0:
33241 headers = {};
33242 resolvedPath = "/v1/apps/{ApplicationId}/eventstream";
33243 if (input.ApplicationId !== undefined) {
33244 labelValue = input.ApplicationId;
33245 if (labelValue.length <= 0) {
33246 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33247 }
33248 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33249 }
33250 else {
33251 throw new Error("No value provided for input HTTP label: ApplicationId.");
33252 }
33253 return [4 /*yield*/, context.endpoint()];
33254 case 1:
33255 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33256 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33257 protocol: protocol,
33258 hostname: hostname,
33259 port: port,
33260 method: "GET",
33261 headers: headers,
33262 path: resolvedPath,
33263 body: body,
33264 })];
33265 }
33266 });
33267}); };
33268var serializeAws_restJson1GetExportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33269 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33270 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33271 switch (_c.label) {
33272 case 0:
33273 headers = {};
33274 resolvedPath = "/v1/apps/{ApplicationId}/jobs/export/{JobId}";
33275 if (input.ApplicationId !== undefined) {
33276 labelValue = input.ApplicationId;
33277 if (labelValue.length <= 0) {
33278 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33279 }
33280 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33281 }
33282 else {
33283 throw new Error("No value provided for input HTTP label: ApplicationId.");
33284 }
33285 if (input.JobId !== undefined) {
33286 labelValue = input.JobId;
33287 if (labelValue.length <= 0) {
33288 throw new Error("Empty value provided for input HTTP label: JobId.");
33289 }
33290 resolvedPath = resolvedPath.replace("{JobId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33291 }
33292 else {
33293 throw new Error("No value provided for input HTTP label: JobId.");
33294 }
33295 return [4 /*yield*/, context.endpoint()];
33296 case 1:
33297 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33298 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33299 protocol: protocol,
33300 hostname: hostname,
33301 port: port,
33302 method: "GET",
33303 headers: headers,
33304 path: resolvedPath,
33305 body: body,
33306 })];
33307 }
33308 });
33309}); };
33310var serializeAws_restJson1GetExportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33311 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33312 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33313 switch (_c.label) {
33314 case 0:
33315 headers = {};
33316 resolvedPath = "/v1/apps/{ApplicationId}/jobs/export";
33317 if (input.ApplicationId !== undefined) {
33318 labelValue = input.ApplicationId;
33319 if (labelValue.length <= 0) {
33320 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33321 }
33322 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33323 }
33324 else {
33325 throw new Error("No value provided for input HTTP label: ApplicationId.");
33326 }
33327 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 }));
33328 return [4 /*yield*/, context.endpoint()];
33329 case 1:
33330 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33331 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33332 protocol: protocol,
33333 hostname: hostname,
33334 port: port,
33335 method: "GET",
33336 headers: headers,
33337 path: resolvedPath,
33338 query: query,
33339 body: body,
33340 })];
33341 }
33342 });
33343}); };
33344var serializeAws_restJson1GetGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33345 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33346 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33347 switch (_c.label) {
33348 case 0:
33349 headers = {};
33350 resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm";
33351 if (input.ApplicationId !== undefined) {
33352 labelValue = input.ApplicationId;
33353 if (labelValue.length <= 0) {
33354 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33355 }
33356 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33357 }
33358 else {
33359 throw new Error("No value provided for input HTTP label: ApplicationId.");
33360 }
33361 return [4 /*yield*/, context.endpoint()];
33362 case 1:
33363 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33364 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33365 protocol: protocol,
33366 hostname: hostname,
33367 port: port,
33368 method: "GET",
33369 headers: headers,
33370 path: resolvedPath,
33371 body: body,
33372 })];
33373 }
33374 });
33375}); };
33376var serializeAws_restJson1GetImportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33377 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33378 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33379 switch (_c.label) {
33380 case 0:
33381 headers = {};
33382 resolvedPath = "/v1/apps/{ApplicationId}/jobs/import/{JobId}";
33383 if (input.ApplicationId !== undefined) {
33384 labelValue = input.ApplicationId;
33385 if (labelValue.length <= 0) {
33386 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33387 }
33388 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33389 }
33390 else {
33391 throw new Error("No value provided for input HTTP label: ApplicationId.");
33392 }
33393 if (input.JobId !== undefined) {
33394 labelValue = input.JobId;
33395 if (labelValue.length <= 0) {
33396 throw new Error("Empty value provided for input HTTP label: JobId.");
33397 }
33398 resolvedPath = resolvedPath.replace("{JobId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33399 }
33400 else {
33401 throw new Error("No value provided for input HTTP label: JobId.");
33402 }
33403 return [4 /*yield*/, context.endpoint()];
33404 case 1:
33405 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33406 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33407 protocol: protocol,
33408 hostname: hostname,
33409 port: port,
33410 method: "GET",
33411 headers: headers,
33412 path: resolvedPath,
33413 body: body,
33414 })];
33415 }
33416 });
33417}); };
33418var serializeAws_restJson1GetImportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33419 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33420 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33421 switch (_c.label) {
33422 case 0:
33423 headers = {};
33424 resolvedPath = "/v1/apps/{ApplicationId}/jobs/import";
33425 if (input.ApplicationId !== undefined) {
33426 labelValue = input.ApplicationId;
33427 if (labelValue.length <= 0) {
33428 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33429 }
33430 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33431 }
33432 else {
33433 throw new Error("No value provided for input HTTP label: ApplicationId.");
33434 }
33435 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 }));
33436 return [4 /*yield*/, context.endpoint()];
33437 case 1:
33438 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33439 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33440 protocol: protocol,
33441 hostname: hostname,
33442 port: port,
33443 method: "GET",
33444 headers: headers,
33445 path: resolvedPath,
33446 query: query,
33447 body: body,
33448 })];
33449 }
33450 });
33451}); };
33452var serializeAws_restJson1GetJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33453 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33454 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33455 switch (_c.label) {
33456 case 0:
33457 headers = {};
33458 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}";
33459 if (input.ApplicationId !== undefined) {
33460 labelValue = input.ApplicationId;
33461 if (labelValue.length <= 0) {
33462 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33463 }
33464 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33465 }
33466 else {
33467 throw new Error("No value provided for input HTTP label: ApplicationId.");
33468 }
33469 if (input.JourneyId !== undefined) {
33470 labelValue = input.JourneyId;
33471 if (labelValue.length <= 0) {
33472 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33473 }
33474 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33475 }
33476 else {
33477 throw new Error("No value provided for input HTTP label: JourneyId.");
33478 }
33479 return [4 /*yield*/, context.endpoint()];
33480 case 1:
33481 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33482 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33483 protocol: protocol,
33484 hostname: hostname,
33485 port: port,
33486 method: "GET",
33487 headers: headers,
33488 path: resolvedPath,
33489 body: body,
33490 })];
33491 }
33492 });
33493}); };
33494var serializeAws_restJson1GetJourneyDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33495 var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33496 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33497 switch (_c.label) {
33498 case 0:
33499 headers = {};
33500 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}";
33501 if (input.ApplicationId !== undefined) {
33502 labelValue = input.ApplicationId;
33503 if (labelValue.length <= 0) {
33504 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33505 }
33506 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33507 }
33508 else {
33509 throw new Error("No value provided for input HTTP label: ApplicationId.");
33510 }
33511 if (input.JourneyId !== undefined) {
33512 labelValue = input.JourneyId;
33513 if (labelValue.length <= 0) {
33514 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33515 }
33516 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33517 }
33518 else {
33519 throw new Error("No value provided for input HTTP label: JourneyId.");
33520 }
33521 if (input.KpiName !== undefined) {
33522 labelValue = input.KpiName;
33523 if (labelValue.length <= 0) {
33524 throw new Error("Empty value provided for input HTTP label: KpiName.");
33525 }
33526 resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33527 }
33528 else {
33529 throw new Error("No value provided for input HTTP label: KpiName.");
33530 }
33531 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 && {
33532 "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
33533 }));
33534 return [4 /*yield*/, context.endpoint()];
33535 case 1:
33536 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33537 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33538 protocol: protocol,
33539 hostname: hostname,
33540 port: port,
33541 method: "GET",
33542 headers: headers,
33543 path: resolvedPath,
33544 query: query,
33545 body: body,
33546 })];
33547 }
33548 });
33549}); };
33550var serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = 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}/activities/{JourneyActivityId}/execution-metrics";
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.JourneyActivityId !== undefined) {
33568 labelValue = input.JourneyActivityId;
33569 if (labelValue.length <= 0) {
33570 throw new Error("Empty value provided for input HTTP label: JourneyActivityId.");
33571 }
33572 resolvedPath = resolvedPath.replace("{JourneyActivityId}", 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: JourneyActivityId.");
33576 }
33577 if (input.JourneyId !== undefined) {
33578 labelValue = input.JourneyId;
33579 if (labelValue.length <= 0) {
33580 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33581 }
33582 resolvedPath = resolvedPath.replace("{JourneyId}", 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: JourneyId.");
33586 }
33587 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 }));
33588 return [4 /*yield*/, context.endpoint()];
33589 case 1:
33590 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33591 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33592 protocol: protocol,
33593 hostname: hostname,
33594 port: port,
33595 method: "GET",
33596 headers: headers,
33597 path: resolvedPath,
33598 query: query,
33599 body: body,
33600 })];
33601 }
33602 });
33603}); };
33604var serializeAws_restJson1GetJourneyExecutionMetricsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33605 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33606 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33607 switch (_c.label) {
33608 case 0:
33609 headers = {};
33610 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics";
33611 if (input.ApplicationId !== undefined) {
33612 labelValue = input.ApplicationId;
33613 if (labelValue.length <= 0) {
33614 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33615 }
33616 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33617 }
33618 else {
33619 throw new Error("No value provided for input HTTP label: ApplicationId.");
33620 }
33621 if (input.JourneyId !== undefined) {
33622 labelValue = input.JourneyId;
33623 if (labelValue.length <= 0) {
33624 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33625 }
33626 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33627 }
33628 else {
33629 throw new Error("No value provided for input HTTP label: JourneyId.");
33630 }
33631 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 }));
33632 return [4 /*yield*/, context.endpoint()];
33633 case 1:
33634 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33635 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33636 protocol: protocol,
33637 hostname: hostname,
33638 port: port,
33639 method: "GET",
33640 headers: headers,
33641 path: resolvedPath,
33642 query: query,
33643 body: body,
33644 })];
33645 }
33646 });
33647}); };
33648var serializeAws_restJson1GetPushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33649 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33650 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33651 switch (_c.label) {
33652 case 0:
33653 headers = {};
33654 resolvedPath = "/v1/templates/{TemplateName}/push";
33655 if (input.TemplateName !== undefined) {
33656 labelValue = input.TemplateName;
33657 if (labelValue.length <= 0) {
33658 throw new Error("Empty value provided for input HTTP label: TemplateName.");
33659 }
33660 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33661 }
33662 else {
33663 throw new Error("No value provided for input HTTP label: TemplateName.");
33664 }
33665 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
33666 return [4 /*yield*/, context.endpoint()];
33667 case 1:
33668 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33669 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33670 protocol: protocol,
33671 hostname: hostname,
33672 port: port,
33673 method: "GET",
33674 headers: headers,
33675 path: resolvedPath,
33676 query: query,
33677 body: body,
33678 })];
33679 }
33680 });
33681}); };
33682var serializeAws_restJson1GetRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33683 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33684 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33685 switch (_c.label) {
33686 case 0:
33687 headers = {};
33688 resolvedPath = "/v1/recommenders/{RecommenderId}";
33689 if (input.RecommenderId !== undefined) {
33690 labelValue = input.RecommenderId;
33691 if (labelValue.length <= 0) {
33692 throw new Error("Empty value provided for input HTTP label: RecommenderId.");
33693 }
33694 resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33695 }
33696 else {
33697 throw new Error("No value provided for input HTTP label: RecommenderId.");
33698 }
33699 return [4 /*yield*/, context.endpoint()];
33700 case 1:
33701 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33702 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33703 protocol: protocol,
33704 hostname: hostname,
33705 port: port,
33706 method: "GET",
33707 headers: headers,
33708 path: resolvedPath,
33709 body: body,
33710 })];
33711 }
33712 });
33713}); };
33714var serializeAws_restJson1GetRecommenderConfigurationsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33715 var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port;
33716 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33717 switch (_c.label) {
33718 case 0:
33719 headers = {};
33720 resolvedPath = "/v1/recommenders";
33721 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 }));
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_restJson1GetSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33739 var headers, resolvedPath, labelValue, 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/apps/{ApplicationId}/segments/{SegmentId}";
33745 if (input.ApplicationId !== undefined) {
33746 labelValue = input.ApplicationId;
33747 if (labelValue.length <= 0) {
33748 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33749 }
33750 resolvedPath = resolvedPath.replace("{ApplicationId}", 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: ApplicationId.");
33754 }
33755 if (input.SegmentId !== undefined) {
33756 labelValue = input.SegmentId;
33757 if (labelValue.length <= 0) {
33758 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33759 }
33760 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33761 }
33762 else {
33763 throw new Error("No value provided for input HTTP label: SegmentId.");
33764 }
33765 return [4 /*yield*/, context.endpoint()];
33766 case 1:
33767 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33768 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33769 protocol: protocol,
33770 hostname: hostname,
33771 port: port,
33772 method: "GET",
33773 headers: headers,
33774 path: resolvedPath,
33775 body: body,
33776 })];
33777 }
33778 });
33779}); };
33780var serializeAws_restJson1GetSegmentExportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33781 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33782 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33783 switch (_c.label) {
33784 case 0:
33785 headers = {};
33786 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export";
33787 if (input.ApplicationId !== undefined) {
33788 labelValue = input.ApplicationId;
33789 if (labelValue.length <= 0) {
33790 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33791 }
33792 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33793 }
33794 else {
33795 throw new Error("No value provided for input HTTP label: ApplicationId.");
33796 }
33797 if (input.SegmentId !== undefined) {
33798 labelValue = input.SegmentId;
33799 if (labelValue.length <= 0) {
33800 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33801 }
33802 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33803 }
33804 else {
33805 throw new Error("No value provided for input HTTP label: SegmentId.");
33806 }
33807 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 }));
33808 return [4 /*yield*/, context.endpoint()];
33809 case 1:
33810 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33811 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33812 protocol: protocol,
33813 hostname: hostname,
33814 port: port,
33815 method: "GET",
33816 headers: headers,
33817 path: resolvedPath,
33818 query: query,
33819 body: body,
33820 })];
33821 }
33822 });
33823}); };
33824var serializeAws_restJson1GetSegmentImportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33825 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33826 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33827 switch (_c.label) {
33828 case 0:
33829 headers = {};
33830 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import";
33831 if (input.ApplicationId !== undefined) {
33832 labelValue = input.ApplicationId;
33833 if (labelValue.length <= 0) {
33834 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33835 }
33836 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33837 }
33838 else {
33839 throw new Error("No value provided for input HTTP label: ApplicationId.");
33840 }
33841 if (input.SegmentId !== undefined) {
33842 labelValue = input.SegmentId;
33843 if (labelValue.length <= 0) {
33844 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33845 }
33846 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33847 }
33848 else {
33849 throw new Error("No value provided for input HTTP label: SegmentId.");
33850 }
33851 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 }));
33852 return [4 /*yield*/, context.endpoint()];
33853 case 1:
33854 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33855 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33856 protocol: protocol,
33857 hostname: hostname,
33858 port: port,
33859 method: "GET",
33860 headers: headers,
33861 path: resolvedPath,
33862 query: query,
33863 body: body,
33864 })];
33865 }
33866 });
33867}); };
33868var serializeAws_restJson1GetSegmentsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33869 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33870 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33871 switch (_c.label) {
33872 case 0:
33873 headers = {};
33874 resolvedPath = "/v1/apps/{ApplicationId}/segments";
33875 if (input.ApplicationId !== undefined) {
33876 labelValue = input.ApplicationId;
33877 if (labelValue.length <= 0) {
33878 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33879 }
33880 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33881 }
33882 else {
33883 throw new Error("No value provided for input HTTP label: ApplicationId.");
33884 }
33885 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 }));
33886 return [4 /*yield*/, context.endpoint()];
33887 case 1:
33888 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33889 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33890 protocol: protocol,
33891 hostname: hostname,
33892 port: port,
33893 method: "GET",
33894 headers: headers,
33895 path: resolvedPath,
33896 query: query,
33897 body: body,
33898 })];
33899 }
33900 });
33901}); };
33902var serializeAws_restJson1GetSegmentVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33903 var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33904 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33905 switch (_c.label) {
33906 case 0:
33907 headers = {};
33908 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}";
33909 if (input.ApplicationId !== undefined) {
33910 labelValue = input.ApplicationId;
33911 if (labelValue.length <= 0) {
33912 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33913 }
33914 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33915 }
33916 else {
33917 throw new Error("No value provided for input HTTP label: ApplicationId.");
33918 }
33919 if (input.SegmentId !== undefined) {
33920 labelValue = input.SegmentId;
33921 if (labelValue.length <= 0) {
33922 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33923 }
33924 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33925 }
33926 else {
33927 throw new Error("No value provided for input HTTP label: SegmentId.");
33928 }
33929 if (input.Version !== undefined) {
33930 labelValue = input.Version;
33931 if (labelValue.length <= 0) {
33932 throw new Error("Empty value provided for input HTTP label: Version.");
33933 }
33934 resolvedPath = resolvedPath.replace("{Version}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33935 }
33936 else {
33937 throw new Error("No value provided for input HTTP label: Version.");
33938 }
33939 return [4 /*yield*/, context.endpoint()];
33940 case 1:
33941 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33942 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33943 protocol: protocol,
33944 hostname: hostname,
33945 port: port,
33946 method: "GET",
33947 headers: headers,
33948 path: resolvedPath,
33949 body: body,
33950 })];
33951 }
33952 });
33953}); };
33954var serializeAws_restJson1GetSegmentVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33955 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33956 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33957 switch (_c.label) {
33958 case 0:
33959 headers = {};
33960 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions";
33961 if (input.ApplicationId !== undefined) {
33962 labelValue = input.ApplicationId;
33963 if (labelValue.length <= 0) {
33964 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33965 }
33966 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33967 }
33968 else {
33969 throw new Error("No value provided for input HTTP label: ApplicationId.");
33970 }
33971 if (input.SegmentId !== undefined) {
33972 labelValue = input.SegmentId;
33973 if (labelValue.length <= 0) {
33974 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33975 }
33976 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33977 }
33978 else {
33979 throw new Error("No value provided for input HTTP label: SegmentId.");
33980 }
33981 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 }));
33982 return [4 /*yield*/, context.endpoint()];
33983 case 1:
33984 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33985 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33986 protocol: protocol,
33987 hostname: hostname,
33988 port: port,
33989 method: "GET",
33990 headers: headers,
33991 path: resolvedPath,
33992 query: query,
33993 body: body,
33994 })];
33995 }
33996 });
33997}); };
33998var serializeAws_restJson1GetSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33999 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34000 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34001 switch (_c.label) {
34002 case 0:
34003 headers = {};
34004 resolvedPath = "/v1/apps/{ApplicationId}/channels/sms";
34005 if (input.ApplicationId !== undefined) {
34006 labelValue = input.ApplicationId;
34007 if (labelValue.length <= 0) {
34008 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34009 }
34010 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34011 }
34012 else {
34013 throw new Error("No value provided for input HTTP label: ApplicationId.");
34014 }
34015 return [4 /*yield*/, context.endpoint()];
34016 case 1:
34017 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34018 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34019 protocol: protocol,
34020 hostname: hostname,
34021 port: port,
34022 method: "GET",
34023 headers: headers,
34024 path: resolvedPath,
34025 body: body,
34026 })];
34027 }
34028 });
34029}); };
34030var serializeAws_restJson1GetSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34031 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34032 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34033 switch (_c.label) {
34034 case 0:
34035 headers = {};
34036 resolvedPath = "/v1/templates/{TemplateName}/sms";
34037 if (input.TemplateName !== undefined) {
34038 labelValue = input.TemplateName;
34039 if (labelValue.length <= 0) {
34040 throw new Error("Empty value provided for input HTTP label: TemplateName.");
34041 }
34042 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34043 }
34044 else {
34045 throw new Error("No value provided for input HTTP label: TemplateName.");
34046 }
34047 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
34048 return [4 /*yield*/, context.endpoint()];
34049 case 1:
34050 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34051 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34052 protocol: protocol,
34053 hostname: hostname,
34054 port: port,
34055 method: "GET",
34056 headers: headers,
34057 path: resolvedPath,
34058 query: query,
34059 body: body,
34060 })];
34061 }
34062 });
34063}); };
34064var serializeAws_restJson1GetUserEndpointsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34065 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
34066 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34067 switch (_c.label) {
34068 case 0:
34069 headers = {};
34070 resolvedPath = "/v1/apps/{ApplicationId}/users/{UserId}";
34071 if (input.ApplicationId !== undefined) {
34072 labelValue = input.ApplicationId;
34073 if (labelValue.length <= 0) {
34074 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34075 }
34076 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34077 }
34078 else {
34079 throw new Error("No value provided for input HTTP label: ApplicationId.");
34080 }
34081 if (input.UserId !== undefined) {
34082 labelValue = input.UserId;
34083 if (labelValue.length <= 0) {
34084 throw new Error("Empty value provided for input HTTP label: UserId.");
34085 }
34086 resolvedPath = resolvedPath.replace("{UserId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34087 }
34088 else {
34089 throw new Error("No value provided for input HTTP label: UserId.");
34090 }
34091 return [4 /*yield*/, context.endpoint()];
34092 case 1:
34093 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34094 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34095 protocol: protocol,
34096 hostname: hostname,
34097 port: port,
34098 method: "GET",
34099 headers: headers,
34100 path: resolvedPath,
34101 body: body,
34102 })];
34103 }
34104 });
34105}); };
34106var serializeAws_restJson1GetVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34107 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34108 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34109 switch (_c.label) {
34110 case 0:
34111 headers = {};
34112 resolvedPath = "/v1/apps/{ApplicationId}/channels/voice";
34113 if (input.ApplicationId !== undefined) {
34114 labelValue = input.ApplicationId;
34115 if (labelValue.length <= 0) {
34116 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34117 }
34118 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34119 }
34120 else {
34121 throw new Error("No value provided for input HTTP label: ApplicationId.");
34122 }
34123 return [4 /*yield*/, context.endpoint()];
34124 case 1:
34125 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34126 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34127 protocol: protocol,
34128 hostname: hostname,
34129 port: port,
34130 method: "GET",
34131 headers: headers,
34132 path: resolvedPath,
34133 body: body,
34134 })];
34135 }
34136 });
34137}); };
34138var serializeAws_restJson1GetVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34139 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34140 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34141 switch (_c.label) {
34142 case 0:
34143 headers = {};
34144 resolvedPath = "/v1/templates/{TemplateName}/voice";
34145 if (input.TemplateName !== undefined) {
34146 labelValue = input.TemplateName;
34147 if (labelValue.length <= 0) {
34148 throw new Error("Empty value provided for input HTTP label: TemplateName.");
34149 }
34150 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34151 }
34152 else {
34153 throw new Error("No value provided for input HTTP label: TemplateName.");
34154 }
34155 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
34156 return [4 /*yield*/, context.endpoint()];
34157 case 1:
34158 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34159 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34160 protocol: protocol,
34161 hostname: hostname,
34162 port: port,
34163 method: "GET",
34164 headers: headers,
34165 path: resolvedPath,
34166 query: query,
34167 body: body,
34168 })];
34169 }
34170 });
34171}); };
34172var serializeAws_restJson1ListJourneysCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34173 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34174 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34175 switch (_c.label) {
34176 case 0:
34177 headers = {};
34178 resolvedPath = "/v1/apps/{ApplicationId}/journeys";
34179 if (input.ApplicationId !== undefined) {
34180 labelValue = input.ApplicationId;
34181 if (labelValue.length <= 0) {
34182 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34183 }
34184 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34185 }
34186 else {
34187 throw new Error("No value provided for input HTTP label: ApplicationId.");
34188 }
34189 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 }));
34190 return [4 /*yield*/, context.endpoint()];
34191 case 1:
34192 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34193 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34194 protocol: protocol,
34195 hostname: hostname,
34196 port: port,
34197 method: "GET",
34198 headers: headers,
34199 path: resolvedPath,
34200 query: query,
34201 body: body,
34202 })];
34203 }
34204 });
34205}); };
34206var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34207 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34208 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34209 switch (_c.label) {
34210 case 0:
34211 headers = {};
34212 resolvedPath = "/v1/tags/{ResourceArn}";
34213 if (input.ResourceArn !== undefined) {
34214 labelValue = input.ResourceArn;
34215 if (labelValue.length <= 0) {
34216 throw new Error("Empty value provided for input HTTP label: ResourceArn.");
34217 }
34218 resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34219 }
34220 else {
34221 throw new Error("No value provided for input HTTP label: ResourceArn.");
34222 }
34223 return [4 /*yield*/, context.endpoint()];
34224 case 1:
34225 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34226 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34227 protocol: protocol,
34228 hostname: hostname,
34229 port: port,
34230 method: "GET",
34231 headers: headers,
34232 path: resolvedPath,
34233 body: body,
34234 })];
34235 }
34236 });
34237}); };
34238var serializeAws_restJson1ListTemplatesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34239 var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port;
34240 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34241 switch (_c.label) {
34242 case 0:
34243 headers = {};
34244 resolvedPath = "/v1/templates";
34245 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 }));
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_restJson1ListTemplateVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34263 var headers, resolvedPath, labelValue, labelValue, query, 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/templates/{TemplateName}/{TemplateType}/versions";
34269 if (input.TemplateName !== undefined) {
34270 labelValue = input.TemplateName;
34271 if (labelValue.length <= 0) {
34272 throw new Error("Empty value provided for input HTTP label: TemplateName.");
34273 }
34274 resolvedPath = resolvedPath.replace("{TemplateName}", 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: TemplateName.");
34278 }
34279 if (input.TemplateType !== undefined) {
34280 labelValue = input.TemplateType;
34281 if (labelValue.length <= 0) {
34282 throw new Error("Empty value provided for input HTTP label: TemplateType.");
34283 }
34284 resolvedPath = resolvedPath.replace("{TemplateType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34285 }
34286 else {
34287 throw new Error("No value provided for input HTTP label: TemplateType.");
34288 }
34289 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 }));
34290 return [4 /*yield*/, context.endpoint()];
34291 case 1:
34292 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34293 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34294 protocol: protocol,
34295 hostname: hostname,
34296 port: port,
34297 method: "GET",
34298 headers: headers,
34299 path: resolvedPath,
34300 query: query,
34301 body: body,
34302 })];
34303 }
34304 });
34305}); };
34306var serializeAws_restJson1PhoneNumberValidateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34307 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
34308 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34309 switch (_c.label) {
34310 case 0:
34311 headers = {
34312 "content-type": "application/json",
34313 };
34314 resolvedPath = "/v1/phone/number/validate";
34315 if (input.NumberValidateRequest !== undefined) {
34316 body = serializeAws_restJson1NumberValidateRequest(input.NumberValidateRequest, context);
34317 }
34318 if (body === undefined) {
34319 body = {};
34320 }
34321 body = JSON.stringify(body);
34322 return [4 /*yield*/, context.endpoint()];
34323 case 1:
34324 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34325 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34326 protocol: protocol,
34327 hostname: hostname,
34328 port: port,
34329 method: "POST",
34330 headers: headers,
34331 path: resolvedPath,
34332 body: body,
34333 })];
34334 }
34335 });
34336}); };
34337var serializeAws_restJson1PutEventsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34338 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34339 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34340 switch (_c.label) {
34341 case 0:
34342 headers = {
34343 "content-type": "application/json",
34344 };
34345 resolvedPath = "/v1/apps/{ApplicationId}/events";
34346 if (input.ApplicationId !== undefined) {
34347 labelValue = input.ApplicationId;
34348 if (labelValue.length <= 0) {
34349 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34350 }
34351 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34352 }
34353 else {
34354 throw new Error("No value provided for input HTTP label: ApplicationId.");
34355 }
34356 if (input.EventsRequest !== undefined) {
34357 body = serializeAws_restJson1EventsRequest(input.EventsRequest, context);
34358 }
34359 if (body === undefined) {
34360 body = {};
34361 }
34362 body = JSON.stringify(body);
34363 return [4 /*yield*/, context.endpoint()];
34364 case 1:
34365 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34366 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34367 protocol: protocol,
34368 hostname: hostname,
34369 port: port,
34370 method: "POST",
34371 headers: headers,
34372 path: resolvedPath,
34373 body: body,
34374 })];
34375 }
34376 });
34377}); };
34378var serializeAws_restJson1PutEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34379 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34380 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34381 switch (_c.label) {
34382 case 0:
34383 headers = {
34384 "content-type": "application/json",
34385 };
34386 resolvedPath = "/v1/apps/{ApplicationId}/eventstream";
34387 if (input.ApplicationId !== undefined) {
34388 labelValue = input.ApplicationId;
34389 if (labelValue.length <= 0) {
34390 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34391 }
34392 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34393 }
34394 else {
34395 throw new Error("No value provided for input HTTP label: ApplicationId.");
34396 }
34397 if (input.WriteEventStream !== undefined) {
34398 body = serializeAws_restJson1WriteEventStream(input.WriteEventStream, context);
34399 }
34400 if (body === undefined) {
34401 body = {};
34402 }
34403 body = JSON.stringify(body);
34404 return [4 /*yield*/, context.endpoint()];
34405 case 1:
34406 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34407 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34408 protocol: protocol,
34409 hostname: hostname,
34410 port: port,
34411 method: "POST",
34412 headers: headers,
34413 path: resolvedPath,
34414 body: body,
34415 })];
34416 }
34417 });
34418}); };
34419var serializeAws_restJson1RemoveAttributesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34420 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
34421 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34422 switch (_c.label) {
34423 case 0:
34424 headers = {
34425 "content-type": "application/json",
34426 };
34427 resolvedPath = "/v1/apps/{ApplicationId}/attributes/{AttributeType}";
34428 if (input.ApplicationId !== undefined) {
34429 labelValue = input.ApplicationId;
34430 if (labelValue.length <= 0) {
34431 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34432 }
34433 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34434 }
34435 else {
34436 throw new Error("No value provided for input HTTP label: ApplicationId.");
34437 }
34438 if (input.AttributeType !== undefined) {
34439 labelValue = input.AttributeType;
34440 if (labelValue.length <= 0) {
34441 throw new Error("Empty value provided for input HTTP label: AttributeType.");
34442 }
34443 resolvedPath = resolvedPath.replace("{AttributeType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34444 }
34445 else {
34446 throw new Error("No value provided for input HTTP label: AttributeType.");
34447 }
34448 if (input.UpdateAttributesRequest !== undefined) {
34449 body = serializeAws_restJson1UpdateAttributesRequest(input.UpdateAttributesRequest, context);
34450 }
34451 if (body === undefined) {
34452 body = {};
34453 }
34454 body = JSON.stringify(body);
34455 return [4 /*yield*/, context.endpoint()];
34456 case 1:
34457 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34458 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34459 protocol: protocol,
34460 hostname: hostname,
34461 port: port,
34462 method: "PUT",
34463 headers: headers,
34464 path: resolvedPath,
34465 body: body,
34466 })];
34467 }
34468 });
34469}); };
34470var serializeAws_restJson1SendMessagesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34471 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34472 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34473 switch (_c.label) {
34474 case 0:
34475 headers = {
34476 "content-type": "application/json",
34477 };
34478 resolvedPath = "/v1/apps/{ApplicationId}/messages";
34479 if (input.ApplicationId !== undefined) {
34480 labelValue = input.ApplicationId;
34481 if (labelValue.length <= 0) {
34482 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34483 }
34484 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34485 }
34486 else {
34487 throw new Error("No value provided for input HTTP label: ApplicationId.");
34488 }
34489 if (input.MessageRequest !== undefined) {
34490 body = serializeAws_restJson1MessageRequest(input.MessageRequest, context);
34491 }
34492 if (body === undefined) {
34493 body = {};
34494 }
34495 body = JSON.stringify(body);
34496 return [4 /*yield*/, context.endpoint()];
34497 case 1:
34498 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34499 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34500 protocol: protocol,
34501 hostname: hostname,
34502 port: port,
34503 method: "POST",
34504 headers: headers,
34505 path: resolvedPath,
34506 body: body,
34507 })];
34508 }
34509 });
34510}); };
34511var serializeAws_restJson1SendUsersMessagesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34512 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34513 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34514 switch (_c.label) {
34515 case 0:
34516 headers = {
34517 "content-type": "application/json",
34518 };
34519 resolvedPath = "/v1/apps/{ApplicationId}/users-messages";
34520 if (input.ApplicationId !== undefined) {
34521 labelValue = input.ApplicationId;
34522 if (labelValue.length <= 0) {
34523 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34524 }
34525 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34526 }
34527 else {
34528 throw new Error("No value provided for input HTTP label: ApplicationId.");
34529 }
34530 if (input.SendUsersMessageRequest !== undefined) {
34531 body = serializeAws_restJson1SendUsersMessageRequest(input.SendUsersMessageRequest, context);
34532 }
34533 if (body === undefined) {
34534 body = {};
34535 }
34536 body = JSON.stringify(body);
34537 return [4 /*yield*/, context.endpoint()];
34538 case 1:
34539 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34540 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34541 protocol: protocol,
34542 hostname: hostname,
34543 port: port,
34544 method: "POST",
34545 headers: headers,
34546 path: resolvedPath,
34547 body: body,
34548 })];
34549 }
34550 });
34551}); };
34552var serializeAws_restJson1TagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34553 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34554 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34555 switch (_c.label) {
34556 case 0:
34557 headers = {
34558 "content-type": "application/json",
34559 };
34560 resolvedPath = "/v1/tags/{ResourceArn}";
34561 if (input.ResourceArn !== undefined) {
34562 labelValue = input.ResourceArn;
34563 if (labelValue.length <= 0) {
34564 throw new Error("Empty value provided for input HTTP label: ResourceArn.");
34565 }
34566 resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34567 }
34568 else {
34569 throw new Error("No value provided for input HTTP label: ResourceArn.");
34570 }
34571 if (input.TagsModel !== undefined) {
34572 body = serializeAws_restJson1TagsModel(input.TagsModel, context);
34573 }
34574 if (body === undefined) {
34575 body = {};
34576 }
34577 body = JSON.stringify(body);
34578 return [4 /*yield*/, context.endpoint()];
34579 case 1:
34580 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34581 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34582 protocol: protocol,
34583 hostname: hostname,
34584 port: port,
34585 method: "POST",
34586 headers: headers,
34587 path: resolvedPath,
34588 body: body,
34589 })];
34590 }
34591 });
34592}); };
34593var serializeAws_restJson1UntagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34594 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34595 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34596 switch (_c.label) {
34597 case 0:
34598 headers = {};
34599 resolvedPath = "/v1/tags/{ResourceArn}";
34600 if (input.ResourceArn !== undefined) {
34601 labelValue = input.ResourceArn;
34602 if (labelValue.length <= 0) {
34603 throw new Error("Empty value provided for input HTTP label: ResourceArn.");
34604 }
34605 resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34606 }
34607 else {
34608 throw new Error("No value provided for input HTTP label: ResourceArn.");
34609 }
34610 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
34611 return [4 /*yield*/, context.endpoint()];
34612 case 1:
34613 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34614 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34615 protocol: protocol,
34616 hostname: hostname,
34617 port: port,
34618 method: "DELETE",
34619 headers: headers,
34620 path: resolvedPath,
34621 query: query,
34622 body: body,
34623 })];
34624 }
34625 });
34626}); };
34627var serializeAws_restJson1UpdateAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34628 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34629 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34630 switch (_c.label) {
34631 case 0:
34632 headers = {
34633 "content-type": "application/json",
34634 };
34635 resolvedPath = "/v1/apps/{ApplicationId}/channels/adm";
34636 if (input.ApplicationId !== undefined) {
34637 labelValue = input.ApplicationId;
34638 if (labelValue.length <= 0) {
34639 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34640 }
34641 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34642 }
34643 else {
34644 throw new Error("No value provided for input HTTP label: ApplicationId.");
34645 }
34646 if (input.ADMChannelRequest !== undefined) {
34647 body = serializeAws_restJson1ADMChannelRequest(input.ADMChannelRequest, context);
34648 }
34649 if (body === undefined) {
34650 body = {};
34651 }
34652 body = JSON.stringify(body);
34653 return [4 /*yield*/, context.endpoint()];
34654 case 1:
34655 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34656 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34657 protocol: protocol,
34658 hostname: hostname,
34659 port: port,
34660 method: "PUT",
34661 headers: headers,
34662 path: resolvedPath,
34663 body: body,
34664 })];
34665 }
34666 });
34667}); };
34668var serializeAws_restJson1UpdateApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34669 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34670 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34671 switch (_c.label) {
34672 case 0:
34673 headers = {
34674 "content-type": "application/json",
34675 };
34676 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns";
34677 if (input.ApplicationId !== undefined) {
34678 labelValue = input.ApplicationId;
34679 if (labelValue.length <= 0) {
34680 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34681 }
34682 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34683 }
34684 else {
34685 throw new Error("No value provided for input HTTP label: ApplicationId.");
34686 }
34687 if (input.APNSChannelRequest !== undefined) {
34688 body = serializeAws_restJson1APNSChannelRequest(input.APNSChannelRequest, context);
34689 }
34690 if (body === undefined) {
34691 body = {};
34692 }
34693 body = JSON.stringify(body);
34694 return [4 /*yield*/, context.endpoint()];
34695 case 1:
34696 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34697 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34698 protocol: protocol,
34699 hostname: hostname,
34700 port: port,
34701 method: "PUT",
34702 headers: headers,
34703 path: resolvedPath,
34704 body: body,
34705 })];
34706 }
34707 });
34708}); };
34709var serializeAws_restJson1UpdateApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34710 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34711 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34712 switch (_c.label) {
34713 case 0:
34714 headers = {
34715 "content-type": "application/json",
34716 };
34717 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox";
34718 if (input.ApplicationId !== undefined) {
34719 labelValue = input.ApplicationId;
34720 if (labelValue.length <= 0) {
34721 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34722 }
34723 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34724 }
34725 else {
34726 throw new Error("No value provided for input HTTP label: ApplicationId.");
34727 }
34728 if (input.APNSSandboxChannelRequest !== undefined) {
34729 body = serializeAws_restJson1APNSSandboxChannelRequest(input.APNSSandboxChannelRequest, context);
34730 }
34731 if (body === undefined) {
34732 body = {};
34733 }
34734 body = JSON.stringify(body);
34735 return [4 /*yield*/, context.endpoint()];
34736 case 1:
34737 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34738 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34739 protocol: protocol,
34740 hostname: hostname,
34741 port: port,
34742 method: "PUT",
34743 headers: headers,
34744 path: resolvedPath,
34745 body: body,
34746 })];
34747 }
34748 });
34749}); };
34750var serializeAws_restJson1UpdateApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34751 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34752 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34753 switch (_c.label) {
34754 case 0:
34755 headers = {
34756 "content-type": "application/json",
34757 };
34758 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip";
34759 if (input.ApplicationId !== undefined) {
34760 labelValue = input.ApplicationId;
34761 if (labelValue.length <= 0) {
34762 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34763 }
34764 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34765 }
34766 else {
34767 throw new Error("No value provided for input HTTP label: ApplicationId.");
34768 }
34769 if (input.APNSVoipChannelRequest !== undefined) {
34770 body = serializeAws_restJson1APNSVoipChannelRequest(input.APNSVoipChannelRequest, context);
34771 }
34772 if (body === undefined) {
34773 body = {};
34774 }
34775 body = JSON.stringify(body);
34776 return [4 /*yield*/, context.endpoint()];
34777 case 1:
34778 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34779 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34780 protocol: protocol,
34781 hostname: hostname,
34782 port: port,
34783 method: "PUT",
34784 headers: headers,
34785 path: resolvedPath,
34786 body: body,
34787 })];
34788 }
34789 });
34790}); };
34791var serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34792 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34793 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34794 switch (_c.label) {
34795 case 0:
34796 headers = {
34797 "content-type": "application/json",
34798 };
34799 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
34800 if (input.ApplicationId !== undefined) {
34801 labelValue = input.ApplicationId;
34802 if (labelValue.length <= 0) {
34803 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34804 }
34805 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34806 }
34807 else {
34808 throw new Error("No value provided for input HTTP label: ApplicationId.");
34809 }
34810 if (input.APNSVoipSandboxChannelRequest !== undefined) {
34811 body = serializeAws_restJson1APNSVoipSandboxChannelRequest(input.APNSVoipSandboxChannelRequest, context);
34812 }
34813 if (body === undefined) {
34814 body = {};
34815 }
34816 body = JSON.stringify(body);
34817 return [4 /*yield*/, context.endpoint()];
34818 case 1:
34819 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34820 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34821 protocol: protocol,
34822 hostname: hostname,
34823 port: port,
34824 method: "PUT",
34825 headers: headers,
34826 path: resolvedPath,
34827 body: body,
34828 })];
34829 }
34830 });
34831}); };
34832var serializeAws_restJson1UpdateApplicationSettingsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34833 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34834 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34835 switch (_c.label) {
34836 case 0:
34837 headers = {
34838 "content-type": "application/json",
34839 };
34840 resolvedPath = "/v1/apps/{ApplicationId}/settings";
34841 if (input.ApplicationId !== undefined) {
34842 labelValue = input.ApplicationId;
34843 if (labelValue.length <= 0) {
34844 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34845 }
34846 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34847 }
34848 else {
34849 throw new Error("No value provided for input HTTP label: ApplicationId.");
34850 }
34851 if (input.WriteApplicationSettingsRequest !== undefined) {
34852 body = serializeAws_restJson1WriteApplicationSettingsRequest(input.WriteApplicationSettingsRequest, context);
34853 }
34854 if (body === undefined) {
34855 body = {};
34856 }
34857 body = JSON.stringify(body);
34858 return [4 /*yield*/, context.endpoint()];
34859 case 1:
34860 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34861 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34862 protocol: protocol,
34863 hostname: hostname,
34864 port: port,
34865 method: "PUT",
34866 headers: headers,
34867 path: resolvedPath,
34868 body: body,
34869 })];
34870 }
34871 });
34872}); };
34873var serializeAws_restJson1UpdateBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34874 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34875 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34876 switch (_c.label) {
34877 case 0:
34878 headers = {
34879 "content-type": "application/json",
34880 };
34881 resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu";
34882 if (input.ApplicationId !== undefined) {
34883 labelValue = input.ApplicationId;
34884 if (labelValue.length <= 0) {
34885 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34886 }
34887 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34888 }
34889 else {
34890 throw new Error("No value provided for input HTTP label: ApplicationId.");
34891 }
34892 if (input.BaiduChannelRequest !== undefined) {
34893 body = serializeAws_restJson1BaiduChannelRequest(input.BaiduChannelRequest, context);
34894 }
34895 if (body === undefined) {
34896 body = {};
34897 }
34898 body = JSON.stringify(body);
34899 return [4 /*yield*/, context.endpoint()];
34900 case 1:
34901 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34902 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34903 protocol: protocol,
34904 hostname: hostname,
34905 port: port,
34906 method: "PUT",
34907 headers: headers,
34908 path: resolvedPath,
34909 body: body,
34910 })];
34911 }
34912 });
34913}); };
34914var serializeAws_restJson1UpdateCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34915 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
34916 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34917 switch (_c.label) {
34918 case 0:
34919 headers = {
34920 "content-type": "application/json",
34921 };
34922 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
34923 if (input.ApplicationId !== undefined) {
34924 labelValue = input.ApplicationId;
34925 if (labelValue.length <= 0) {
34926 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34927 }
34928 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34929 }
34930 else {
34931 throw new Error("No value provided for input HTTP label: ApplicationId.");
34932 }
34933 if (input.CampaignId !== undefined) {
34934 labelValue = input.CampaignId;
34935 if (labelValue.length <= 0) {
34936 throw new Error("Empty value provided for input HTTP label: CampaignId.");
34937 }
34938 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34939 }
34940 else {
34941 throw new Error("No value provided for input HTTP label: CampaignId.");
34942 }
34943 if (input.WriteCampaignRequest !== undefined) {
34944 body = serializeAws_restJson1WriteCampaignRequest(input.WriteCampaignRequest, context);
34945 }
34946 if (body === undefined) {
34947 body = {};
34948 }
34949 body = JSON.stringify(body);
34950 return [4 /*yield*/, context.endpoint()];
34951 case 1:
34952 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34953 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34954 protocol: protocol,
34955 hostname: hostname,
34956 port: port,
34957 method: "PUT",
34958 headers: headers,
34959 path: resolvedPath,
34960 body: body,
34961 })];
34962 }
34963 });
34964}); };
34965var serializeAws_restJson1UpdateEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34966 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34967 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34968 switch (_c.label) {
34969 case 0:
34970 headers = {
34971 "content-type": "application/json",
34972 };
34973 resolvedPath = "/v1/apps/{ApplicationId}/channels/email";
34974 if (input.ApplicationId !== undefined) {
34975 labelValue = input.ApplicationId;
34976 if (labelValue.length <= 0) {
34977 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34978 }
34979 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34980 }
34981 else {
34982 throw new Error("No value provided for input HTTP label: ApplicationId.");
34983 }
34984 if (input.EmailChannelRequest !== undefined) {
34985 body = serializeAws_restJson1EmailChannelRequest(input.EmailChannelRequest, context);
34986 }
34987 if (body === undefined) {
34988 body = {};
34989 }
34990 body = JSON.stringify(body);
34991 return [4 /*yield*/, context.endpoint()];
34992 case 1:
34993 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34994 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34995 protocol: protocol,
34996 hostname: hostname,
34997 port: port,
34998 method: "PUT",
34999 headers: headers,
35000 path: resolvedPath,
35001 body: body,
35002 })];
35003 }
35004 });
35005}); };
35006var serializeAws_restJson1UpdateEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35007 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35008 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35009 switch (_c.label) {
35010 case 0:
35011 headers = {
35012 "content-type": "application/json",
35013 };
35014 resolvedPath = "/v1/templates/{TemplateName}/email";
35015 if (input.TemplateName !== undefined) {
35016 labelValue = input.TemplateName;
35017 if (labelValue.length <= 0) {
35018 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35019 }
35020 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35021 }
35022 else {
35023 throw new Error("No value provided for input HTTP label: TemplateName.");
35024 }
35025 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 }));
35026 if (input.EmailTemplateRequest !== undefined) {
35027 body = serializeAws_restJson1EmailTemplateRequest(input.EmailTemplateRequest, context);
35028 }
35029 if (body === undefined) {
35030 body = {};
35031 }
35032 body = JSON.stringify(body);
35033 return [4 /*yield*/, context.endpoint()];
35034 case 1:
35035 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35036 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35037 protocol: protocol,
35038 hostname: hostname,
35039 port: port,
35040 method: "PUT",
35041 headers: headers,
35042 path: resolvedPath,
35043 query: query,
35044 body: body,
35045 })];
35046 }
35047 });
35048}); };
35049var serializeAws_restJson1UpdateEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35050 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35051 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35052 switch (_c.label) {
35053 case 0:
35054 headers = {
35055 "content-type": "application/json",
35056 };
35057 resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
35058 if (input.ApplicationId !== undefined) {
35059 labelValue = input.ApplicationId;
35060 if (labelValue.length <= 0) {
35061 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35062 }
35063 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35064 }
35065 else {
35066 throw new Error("No value provided for input HTTP label: ApplicationId.");
35067 }
35068 if (input.EndpointId !== undefined) {
35069 labelValue = input.EndpointId;
35070 if (labelValue.length <= 0) {
35071 throw new Error("Empty value provided for input HTTP label: EndpointId.");
35072 }
35073 resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35074 }
35075 else {
35076 throw new Error("No value provided for input HTTP label: EndpointId.");
35077 }
35078 if (input.EndpointRequest !== undefined) {
35079 body = serializeAws_restJson1EndpointRequest(input.EndpointRequest, context);
35080 }
35081 if (body === undefined) {
35082 body = {};
35083 }
35084 body = JSON.stringify(body);
35085 return [4 /*yield*/, context.endpoint()];
35086 case 1:
35087 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35088 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35089 protocol: protocol,
35090 hostname: hostname,
35091 port: port,
35092 method: "PUT",
35093 headers: headers,
35094 path: resolvedPath,
35095 body: body,
35096 })];
35097 }
35098 });
35099}); };
35100var serializeAws_restJson1UpdateEndpointsBatchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35101 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35102 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35103 switch (_c.label) {
35104 case 0:
35105 headers = {
35106 "content-type": "application/json",
35107 };
35108 resolvedPath = "/v1/apps/{ApplicationId}/endpoints";
35109 if (input.ApplicationId !== undefined) {
35110 labelValue = input.ApplicationId;
35111 if (labelValue.length <= 0) {
35112 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35113 }
35114 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35115 }
35116 else {
35117 throw new Error("No value provided for input HTTP label: ApplicationId.");
35118 }
35119 if (input.EndpointBatchRequest !== undefined) {
35120 body = serializeAws_restJson1EndpointBatchRequest(input.EndpointBatchRequest, context);
35121 }
35122 if (body === undefined) {
35123 body = {};
35124 }
35125 body = JSON.stringify(body);
35126 return [4 /*yield*/, context.endpoint()];
35127 case 1:
35128 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35129 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35130 protocol: protocol,
35131 hostname: hostname,
35132 port: port,
35133 method: "PUT",
35134 headers: headers,
35135 path: resolvedPath,
35136 body: body,
35137 })];
35138 }
35139 });
35140}); };
35141var serializeAws_restJson1UpdateGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35142 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35143 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35144 switch (_c.label) {
35145 case 0:
35146 headers = {
35147 "content-type": "application/json",
35148 };
35149 resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm";
35150 if (input.ApplicationId !== undefined) {
35151 labelValue = input.ApplicationId;
35152 if (labelValue.length <= 0) {
35153 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35154 }
35155 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35156 }
35157 else {
35158 throw new Error("No value provided for input HTTP label: ApplicationId.");
35159 }
35160 if (input.GCMChannelRequest !== undefined) {
35161 body = serializeAws_restJson1GCMChannelRequest(input.GCMChannelRequest, context);
35162 }
35163 if (body === undefined) {
35164 body = {};
35165 }
35166 body = JSON.stringify(body);
35167 return [4 /*yield*/, context.endpoint()];
35168 case 1:
35169 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35170 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35171 protocol: protocol,
35172 hostname: hostname,
35173 port: port,
35174 method: "PUT",
35175 headers: headers,
35176 path: resolvedPath,
35177 body: body,
35178 })];
35179 }
35180 });
35181}); };
35182var serializeAws_restJson1UpdateJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35183 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35184 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35185 switch (_c.label) {
35186 case 0:
35187 headers = {
35188 "content-type": "application/json",
35189 };
35190 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}";
35191 if (input.ApplicationId !== undefined) {
35192 labelValue = input.ApplicationId;
35193 if (labelValue.length <= 0) {
35194 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35195 }
35196 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35197 }
35198 else {
35199 throw new Error("No value provided for input HTTP label: ApplicationId.");
35200 }
35201 if (input.JourneyId !== undefined) {
35202 labelValue = input.JourneyId;
35203 if (labelValue.length <= 0) {
35204 throw new Error("Empty value provided for input HTTP label: JourneyId.");
35205 }
35206 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35207 }
35208 else {
35209 throw new Error("No value provided for input HTTP label: JourneyId.");
35210 }
35211 if (input.WriteJourneyRequest !== undefined) {
35212 body = serializeAws_restJson1WriteJourneyRequest(input.WriteJourneyRequest, context);
35213 }
35214 if (body === undefined) {
35215 body = {};
35216 }
35217 body = JSON.stringify(body);
35218 return [4 /*yield*/, context.endpoint()];
35219 case 1:
35220 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35221 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35222 protocol: protocol,
35223 hostname: hostname,
35224 port: port,
35225 method: "PUT",
35226 headers: headers,
35227 path: resolvedPath,
35228 body: body,
35229 })];
35230 }
35231 });
35232}); };
35233var serializeAws_restJson1UpdateJourneyStateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35234 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35235 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35236 switch (_c.label) {
35237 case 0:
35238 headers = {
35239 "content-type": "application/json",
35240 };
35241 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/state";
35242 if (input.ApplicationId !== undefined) {
35243 labelValue = input.ApplicationId;
35244 if (labelValue.length <= 0) {
35245 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35246 }
35247 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35248 }
35249 else {
35250 throw new Error("No value provided for input HTTP label: ApplicationId.");
35251 }
35252 if (input.JourneyId !== undefined) {
35253 labelValue = input.JourneyId;
35254 if (labelValue.length <= 0) {
35255 throw new Error("Empty value provided for input HTTP label: JourneyId.");
35256 }
35257 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35258 }
35259 else {
35260 throw new Error("No value provided for input HTTP label: JourneyId.");
35261 }
35262 if (input.JourneyStateRequest !== undefined) {
35263 body = serializeAws_restJson1JourneyStateRequest(input.JourneyStateRequest, context);
35264 }
35265 if (body === undefined) {
35266 body = {};
35267 }
35268 body = JSON.stringify(body);
35269 return [4 /*yield*/, context.endpoint()];
35270 case 1:
35271 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35272 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35273 protocol: protocol,
35274 hostname: hostname,
35275 port: port,
35276 method: "PUT",
35277 headers: headers,
35278 path: resolvedPath,
35279 body: body,
35280 })];
35281 }
35282 });
35283}); };
35284var serializeAws_restJson1UpdatePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35285 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35286 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35287 switch (_c.label) {
35288 case 0:
35289 headers = {
35290 "content-type": "application/json",
35291 };
35292 resolvedPath = "/v1/templates/{TemplateName}/push";
35293 if (input.TemplateName !== undefined) {
35294 labelValue = input.TemplateName;
35295 if (labelValue.length <= 0) {
35296 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35297 }
35298 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35299 }
35300 else {
35301 throw new Error("No value provided for input HTTP label: TemplateName.");
35302 }
35303 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 }));
35304 if (input.PushNotificationTemplateRequest !== undefined) {
35305 body = serializeAws_restJson1PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context);
35306 }
35307 if (body === undefined) {
35308 body = {};
35309 }
35310 body = JSON.stringify(body);
35311 return [4 /*yield*/, context.endpoint()];
35312 case 1:
35313 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35314 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35315 protocol: protocol,
35316 hostname: hostname,
35317 port: port,
35318 method: "PUT",
35319 headers: headers,
35320 path: resolvedPath,
35321 query: query,
35322 body: body,
35323 })];
35324 }
35325 });
35326}); };
35327var serializeAws_restJson1UpdateRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35328 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35329 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35330 switch (_c.label) {
35331 case 0:
35332 headers = {
35333 "content-type": "application/json",
35334 };
35335 resolvedPath = "/v1/recommenders/{RecommenderId}";
35336 if (input.RecommenderId !== undefined) {
35337 labelValue = input.RecommenderId;
35338 if (labelValue.length <= 0) {
35339 throw new Error("Empty value provided for input HTTP label: RecommenderId.");
35340 }
35341 resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35342 }
35343 else {
35344 throw new Error("No value provided for input HTTP label: RecommenderId.");
35345 }
35346 if (input.UpdateRecommenderConfiguration !== undefined) {
35347 body = serializeAws_restJson1UpdateRecommenderConfigurationShape(input.UpdateRecommenderConfiguration, context);
35348 }
35349 if (body === undefined) {
35350 body = {};
35351 }
35352 body = JSON.stringify(body);
35353 return [4 /*yield*/, context.endpoint()];
35354 case 1:
35355 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35356 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35357 protocol: protocol,
35358 hostname: hostname,
35359 port: port,
35360 method: "PUT",
35361 headers: headers,
35362 path: resolvedPath,
35363 body: body,
35364 })];
35365 }
35366 });
35367}); };
35368var serializeAws_restJson1UpdateSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35369 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35370 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35371 switch (_c.label) {
35372 case 0:
35373 headers = {
35374 "content-type": "application/json",
35375 };
35376 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}";
35377 if (input.ApplicationId !== undefined) {
35378 labelValue = input.ApplicationId;
35379 if (labelValue.length <= 0) {
35380 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35381 }
35382 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35383 }
35384 else {
35385 throw new Error("No value provided for input HTTP label: ApplicationId.");
35386 }
35387 if (input.SegmentId !== undefined) {
35388 labelValue = input.SegmentId;
35389 if (labelValue.length <= 0) {
35390 throw new Error("Empty value provided for input HTTP label: SegmentId.");
35391 }
35392 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35393 }
35394 else {
35395 throw new Error("No value provided for input HTTP label: SegmentId.");
35396 }
35397 if (input.WriteSegmentRequest !== undefined) {
35398 body = serializeAws_restJson1WriteSegmentRequest(input.WriteSegmentRequest, context);
35399 }
35400 if (body === undefined) {
35401 body = {};
35402 }
35403 body = JSON.stringify(body);
35404 return [4 /*yield*/, context.endpoint()];
35405 case 1:
35406 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35407 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35408 protocol: protocol,
35409 hostname: hostname,
35410 port: port,
35411 method: "PUT",
35412 headers: headers,
35413 path: resolvedPath,
35414 body: body,
35415 })];
35416 }
35417 });
35418}); };
35419var serializeAws_restJson1UpdateSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35420 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35421 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35422 switch (_c.label) {
35423 case 0:
35424 headers = {
35425 "content-type": "application/json",
35426 };
35427 resolvedPath = "/v1/apps/{ApplicationId}/channels/sms";
35428 if (input.ApplicationId !== undefined) {
35429 labelValue = input.ApplicationId;
35430 if (labelValue.length <= 0) {
35431 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35432 }
35433 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35434 }
35435 else {
35436 throw new Error("No value provided for input HTTP label: ApplicationId.");
35437 }
35438 if (input.SMSChannelRequest !== undefined) {
35439 body = serializeAws_restJson1SMSChannelRequest(input.SMSChannelRequest, context);
35440 }
35441 if (body === undefined) {
35442 body = {};
35443 }
35444 body = JSON.stringify(body);
35445 return [4 /*yield*/, context.endpoint()];
35446 case 1:
35447 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35448 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35449 protocol: protocol,
35450 hostname: hostname,
35451 port: port,
35452 method: "PUT",
35453 headers: headers,
35454 path: resolvedPath,
35455 body: body,
35456 })];
35457 }
35458 });
35459}); };
35460var serializeAws_restJson1UpdateSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35461 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35462 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35463 switch (_c.label) {
35464 case 0:
35465 headers = {
35466 "content-type": "application/json",
35467 };
35468 resolvedPath = "/v1/templates/{TemplateName}/sms";
35469 if (input.TemplateName !== undefined) {
35470 labelValue = input.TemplateName;
35471 if (labelValue.length <= 0) {
35472 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35473 }
35474 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35475 }
35476 else {
35477 throw new Error("No value provided for input HTTP label: TemplateName.");
35478 }
35479 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 }));
35480 if (input.SMSTemplateRequest !== undefined) {
35481 body = serializeAws_restJson1SMSTemplateRequest(input.SMSTemplateRequest, context);
35482 }
35483 if (body === undefined) {
35484 body = {};
35485 }
35486 body = JSON.stringify(body);
35487 return [4 /*yield*/, context.endpoint()];
35488 case 1:
35489 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35490 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35491 protocol: protocol,
35492 hostname: hostname,
35493 port: port,
35494 method: "PUT",
35495 headers: headers,
35496 path: resolvedPath,
35497 query: query,
35498 body: body,
35499 })];
35500 }
35501 });
35502}); };
35503var serializeAws_restJson1UpdateTemplateActiveVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35504 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35505 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35506 switch (_c.label) {
35507 case 0:
35508 headers = {
35509 "content-type": "application/json",
35510 };
35511 resolvedPath = "/v1/templates/{TemplateName}/{TemplateType}/active-version";
35512 if (input.TemplateName !== undefined) {
35513 labelValue = input.TemplateName;
35514 if (labelValue.length <= 0) {
35515 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35516 }
35517 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35518 }
35519 else {
35520 throw new Error("No value provided for input HTTP label: TemplateName.");
35521 }
35522 if (input.TemplateType !== undefined) {
35523 labelValue = input.TemplateType;
35524 if (labelValue.length <= 0) {
35525 throw new Error("Empty value provided for input HTTP label: TemplateType.");
35526 }
35527 resolvedPath = resolvedPath.replace("{TemplateType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35528 }
35529 else {
35530 throw new Error("No value provided for input HTTP label: TemplateType.");
35531 }
35532 if (input.TemplateActiveVersionRequest !== undefined) {
35533 body = serializeAws_restJson1TemplateActiveVersionRequest(input.TemplateActiveVersionRequest, context);
35534 }
35535 if (body === undefined) {
35536 body = {};
35537 }
35538 body = JSON.stringify(body);
35539 return [4 /*yield*/, context.endpoint()];
35540 case 1:
35541 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35542 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35543 protocol: protocol,
35544 hostname: hostname,
35545 port: port,
35546 method: "PUT",
35547 headers: headers,
35548 path: resolvedPath,
35549 body: body,
35550 })];
35551 }
35552 });
35553}); };
35554var serializeAws_restJson1UpdateVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35555 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35556 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35557 switch (_c.label) {
35558 case 0:
35559 headers = {
35560 "content-type": "application/json",
35561 };
35562 resolvedPath = "/v1/apps/{ApplicationId}/channels/voice";
35563 if (input.ApplicationId !== undefined) {
35564 labelValue = input.ApplicationId;
35565 if (labelValue.length <= 0) {
35566 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35567 }
35568 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35569 }
35570 else {
35571 throw new Error("No value provided for input HTTP label: ApplicationId.");
35572 }
35573 if (input.VoiceChannelRequest !== undefined) {
35574 body = serializeAws_restJson1VoiceChannelRequest(input.VoiceChannelRequest, context);
35575 }
35576 if (body === undefined) {
35577 body = {};
35578 }
35579 body = JSON.stringify(body);
35580 return [4 /*yield*/, context.endpoint()];
35581 case 1:
35582 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35583 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35584 protocol: protocol,
35585 hostname: hostname,
35586 port: port,
35587 method: "PUT",
35588 headers: headers,
35589 path: resolvedPath,
35590 body: body,
35591 })];
35592 }
35593 });
35594}); };
35595var serializeAws_restJson1UpdateVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35596 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35597 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35598 switch (_c.label) {
35599 case 0:
35600 headers = {
35601 "content-type": "application/json",
35602 };
35603 resolvedPath = "/v1/templates/{TemplateName}/voice";
35604 if (input.TemplateName !== undefined) {
35605 labelValue = input.TemplateName;
35606 if (labelValue.length <= 0) {
35607 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35608 }
35609 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35610 }
35611 else {
35612 throw new Error("No value provided for input HTTP label: TemplateName.");
35613 }
35614 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 }));
35615 if (input.VoiceTemplateRequest !== undefined) {
35616 body = serializeAws_restJson1VoiceTemplateRequest(input.VoiceTemplateRequest, context);
35617 }
35618 if (body === undefined) {
35619 body = {};
35620 }
35621 body = JSON.stringify(body);
35622 return [4 /*yield*/, context.endpoint()];
35623 case 1:
35624 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35625 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35626 protocol: protocol,
35627 hostname: hostname,
35628 port: port,
35629 method: "PUT",
35630 headers: headers,
35631 path: resolvedPath,
35632 query: query,
35633 body: body,
35634 })];
35635 }
35636 });
35637}); };
35638var deserializeAws_restJson1CreateAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35639 var contents, data;
35640 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35641 switch (_a.label) {
35642 case 0:
35643 if (output.statusCode !== 201 && output.statusCode >= 300) {
35644 return [2 /*return*/, deserializeAws_restJson1CreateAppCommandError(output, context)];
35645 }
35646 contents = {
35647 $metadata: deserializeMetadata(output),
35648 ApplicationResponse: undefined,
35649 };
35650 return [4 /*yield*/, parseBody(output.body, context)];
35651 case 1:
35652 data = _a.sent();
35653 contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context);
35654 return [2 /*return*/, Promise.resolve(contents)];
35655 }
35656 });
35657}); };
35658var deserializeAws_restJson1CreateAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35659 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
35660 var _k;
35661 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
35662 switch (_l.label) {
35663 case 0:
35664 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
35665 _k = {};
35666 return [4 /*yield*/, parseBody(output.body, context)];
35667 case 1:
35668 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
35669 errorCode = "UnknownError";
35670 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
35671 _b = errorCode;
35672 switch (_b) {
35673 case "BadRequestException": return [3 /*break*/, 2];
35674 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
35675 case "ForbiddenException": return [3 /*break*/, 4];
35676 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
35677 case "InternalServerErrorException": return [3 /*break*/, 6];
35678 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
35679 case "MethodNotAllowedException": return [3 /*break*/, 8];
35680 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
35681 case "NotFoundException": return [3 /*break*/, 10];
35682 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
35683 case "PayloadTooLargeException": return [3 /*break*/, 12];
35684 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
35685 case "TooManyRequestsException": return [3 /*break*/, 14];
35686 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
35687 }
35688 return [3 /*break*/, 16];
35689 case 2:
35690 _c = [{}];
35691 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
35692 case 3:
35693 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) }]);
35694 return [3 /*break*/, 17];
35695 case 4:
35696 _d = [{}];
35697 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
35698 case 5:
35699 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) }]);
35700 return [3 /*break*/, 17];
35701 case 6:
35702 _e = [{}];
35703 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
35704 case 7:
35705 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) }]);
35706 return [3 /*break*/, 17];
35707 case 8:
35708 _f = [{}];
35709 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
35710 case 9:
35711 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) }]);
35712 return [3 /*break*/, 17];
35713 case 10:
35714 _g = [{}];
35715 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
35716 case 11:
35717 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) }]);
35718 return [3 /*break*/, 17];
35719 case 12:
35720 _h = [{}];
35721 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
35722 case 13:
35723 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) }]);
35724 return [3 /*break*/, 17];
35725 case 14:
35726 _j = [{}];
35727 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
35728 case 15:
35729 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) }]);
35730 return [3 /*break*/, 17];
35731 case 16:
35732 parsedBody = parsedOutput.body;
35733 errorCode = parsedBody.code || parsedBody.Code || errorCode;
35734 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) });
35735 _l.label = 17;
35736 case 17:
35737 message = response.message || response.Message || errorCode;
35738 response.message = message;
35739 delete response.Message;
35740 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
35741 }
35742 });
35743}); };
35744var deserializeAws_restJson1CreateCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35745 var contents, data;
35746 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35747 switch (_a.label) {
35748 case 0:
35749 if (output.statusCode !== 201 && output.statusCode >= 300) {
35750 return [2 /*return*/, deserializeAws_restJson1CreateCampaignCommandError(output, context)];
35751 }
35752 contents = {
35753 $metadata: deserializeMetadata(output),
35754 CampaignResponse: undefined,
35755 };
35756 return [4 /*yield*/, parseBody(output.body, context)];
35757 case 1:
35758 data = _a.sent();
35759 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
35760 return [2 /*return*/, Promise.resolve(contents)];
35761 }
35762 });
35763}); };
35764var deserializeAws_restJson1CreateCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35765 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
35766 var _k;
35767 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
35768 switch (_l.label) {
35769 case 0:
35770 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
35771 _k = {};
35772 return [4 /*yield*/, parseBody(output.body, context)];
35773 case 1:
35774 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
35775 errorCode = "UnknownError";
35776 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
35777 _b = errorCode;
35778 switch (_b) {
35779 case "BadRequestException": return [3 /*break*/, 2];
35780 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
35781 case "ForbiddenException": return [3 /*break*/, 4];
35782 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
35783 case "InternalServerErrorException": return [3 /*break*/, 6];
35784 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
35785 case "MethodNotAllowedException": return [3 /*break*/, 8];
35786 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
35787 case "NotFoundException": return [3 /*break*/, 10];
35788 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
35789 case "PayloadTooLargeException": return [3 /*break*/, 12];
35790 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
35791 case "TooManyRequestsException": return [3 /*break*/, 14];
35792 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
35793 }
35794 return [3 /*break*/, 16];
35795 case 2:
35796 _c = [{}];
35797 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
35798 case 3:
35799 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) }]);
35800 return [3 /*break*/, 17];
35801 case 4:
35802 _d = [{}];
35803 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
35804 case 5:
35805 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) }]);
35806 return [3 /*break*/, 17];
35807 case 6:
35808 _e = [{}];
35809 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
35810 case 7:
35811 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) }]);
35812 return [3 /*break*/, 17];
35813 case 8:
35814 _f = [{}];
35815 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
35816 case 9:
35817 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) }]);
35818 return [3 /*break*/, 17];
35819 case 10:
35820 _g = [{}];
35821 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
35822 case 11:
35823 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) }]);
35824 return [3 /*break*/, 17];
35825 case 12:
35826 _h = [{}];
35827 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
35828 case 13:
35829 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) }]);
35830 return [3 /*break*/, 17];
35831 case 14:
35832 _j = [{}];
35833 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
35834 case 15:
35835 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) }]);
35836 return [3 /*break*/, 17];
35837 case 16:
35838 parsedBody = parsedOutput.body;
35839 errorCode = parsedBody.code || parsedBody.Code || errorCode;
35840 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) });
35841 _l.label = 17;
35842 case 17:
35843 message = response.message || response.Message || errorCode;
35844 response.message = message;
35845 delete response.Message;
35846 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
35847 }
35848 });
35849}); };
35850var deserializeAws_restJson1CreateEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35851 var contents, data;
35852 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35853 switch (_a.label) {
35854 case 0:
35855 if (output.statusCode !== 201 && output.statusCode >= 300) {
35856 return [2 /*return*/, deserializeAws_restJson1CreateEmailTemplateCommandError(output, context)];
35857 }
35858 contents = {
35859 $metadata: deserializeMetadata(output),
35860 CreateTemplateMessageBody: undefined,
35861 };
35862 return [4 /*yield*/, parseBody(output.body, context)];
35863 case 1:
35864 data = _a.sent();
35865 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
35866 return [2 /*return*/, Promise.resolve(contents)];
35867 }
35868 });
35869}); };
35870var deserializeAws_restJson1CreateEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35871 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
35872 var _h;
35873 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
35874 switch (_j.label) {
35875 case 0:
35876 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
35877 _h = {};
35878 return [4 /*yield*/, parseBody(output.body, context)];
35879 case 1:
35880 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
35881 errorCode = "UnknownError";
35882 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
35883 _b = errorCode;
35884 switch (_b) {
35885 case "BadRequestException": return [3 /*break*/, 2];
35886 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
35887 case "ForbiddenException": return [3 /*break*/, 4];
35888 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
35889 case "InternalServerErrorException": return [3 /*break*/, 6];
35890 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
35891 case "MethodNotAllowedException": return [3 /*break*/, 8];
35892 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
35893 case "TooManyRequestsException": return [3 /*break*/, 10];
35894 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
35895 }
35896 return [3 /*break*/, 12];
35897 case 2:
35898 _c = [{}];
35899 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
35900 case 3:
35901 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) }]);
35902 return [3 /*break*/, 13];
35903 case 4:
35904 _d = [{}];
35905 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
35906 case 5:
35907 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) }]);
35908 return [3 /*break*/, 13];
35909 case 6:
35910 _e = [{}];
35911 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
35912 case 7:
35913 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) }]);
35914 return [3 /*break*/, 13];
35915 case 8:
35916 _f = [{}];
35917 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
35918 case 9:
35919 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) }]);
35920 return [3 /*break*/, 13];
35921 case 10:
35922 _g = [{}];
35923 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
35924 case 11:
35925 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) }]);
35926 return [3 /*break*/, 13];
35927 case 12:
35928 parsedBody = parsedOutput.body;
35929 errorCode = parsedBody.code || parsedBody.Code || errorCode;
35930 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) });
35931 _j.label = 13;
35932 case 13:
35933 message = response.message || response.Message || errorCode;
35934 response.message = message;
35935 delete response.Message;
35936 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
35937 }
35938 });
35939}); };
35940var deserializeAws_restJson1CreateExportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35941 var contents, data;
35942 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35943 switch (_a.label) {
35944 case 0:
35945 if (output.statusCode !== 202 && output.statusCode >= 300) {
35946 return [2 /*return*/, deserializeAws_restJson1CreateExportJobCommandError(output, context)];
35947 }
35948 contents = {
35949 $metadata: deserializeMetadata(output),
35950 ExportJobResponse: undefined,
35951 };
35952 return [4 /*yield*/, parseBody(output.body, context)];
35953 case 1:
35954 data = _a.sent();
35955 contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context);
35956 return [2 /*return*/, Promise.resolve(contents)];
35957 }
35958 });
35959}); };
35960var deserializeAws_restJson1CreateExportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35961 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
35962 var _k;
35963 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
35964 switch (_l.label) {
35965 case 0:
35966 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
35967 _k = {};
35968 return [4 /*yield*/, parseBody(output.body, context)];
35969 case 1:
35970 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
35971 errorCode = "UnknownError";
35972 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
35973 _b = errorCode;
35974 switch (_b) {
35975 case "BadRequestException": return [3 /*break*/, 2];
35976 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
35977 case "ForbiddenException": return [3 /*break*/, 4];
35978 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
35979 case "InternalServerErrorException": return [3 /*break*/, 6];
35980 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
35981 case "MethodNotAllowedException": return [3 /*break*/, 8];
35982 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
35983 case "NotFoundException": return [3 /*break*/, 10];
35984 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
35985 case "PayloadTooLargeException": return [3 /*break*/, 12];
35986 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
35987 case "TooManyRequestsException": return [3 /*break*/, 14];
35988 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
35989 }
35990 return [3 /*break*/, 16];
35991 case 2:
35992 _c = [{}];
35993 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
35994 case 3:
35995 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) }]);
35996 return [3 /*break*/, 17];
35997 case 4:
35998 _d = [{}];
35999 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36000 case 5:
36001 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) }]);
36002 return [3 /*break*/, 17];
36003 case 6:
36004 _e = [{}];
36005 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36006 case 7:
36007 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) }]);
36008 return [3 /*break*/, 17];
36009 case 8:
36010 _f = [{}];
36011 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36012 case 9:
36013 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) }]);
36014 return [3 /*break*/, 17];
36015 case 10:
36016 _g = [{}];
36017 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36018 case 11:
36019 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) }]);
36020 return [3 /*break*/, 17];
36021 case 12:
36022 _h = [{}];
36023 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36024 case 13:
36025 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) }]);
36026 return [3 /*break*/, 17];
36027 case 14:
36028 _j = [{}];
36029 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36030 case 15:
36031 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) }]);
36032 return [3 /*break*/, 17];
36033 case 16:
36034 parsedBody = parsedOutput.body;
36035 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36036 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) });
36037 _l.label = 17;
36038 case 17:
36039 message = response.message || response.Message || errorCode;
36040 response.message = message;
36041 delete response.Message;
36042 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36043 }
36044 });
36045}); };
36046var deserializeAws_restJson1CreateImportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36047 var contents, data;
36048 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36049 switch (_a.label) {
36050 case 0:
36051 if (output.statusCode !== 201 && output.statusCode >= 300) {
36052 return [2 /*return*/, deserializeAws_restJson1CreateImportJobCommandError(output, context)];
36053 }
36054 contents = {
36055 $metadata: deserializeMetadata(output),
36056 ImportJobResponse: undefined,
36057 };
36058 return [4 /*yield*/, parseBody(output.body, context)];
36059 case 1:
36060 data = _a.sent();
36061 contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context);
36062 return [2 /*return*/, Promise.resolve(contents)];
36063 }
36064 });
36065}); };
36066var deserializeAws_restJson1CreateImportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36067 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36068 var _k;
36069 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36070 switch (_l.label) {
36071 case 0:
36072 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36073 _k = {};
36074 return [4 /*yield*/, parseBody(output.body, context)];
36075 case 1:
36076 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36077 errorCode = "UnknownError";
36078 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36079 _b = errorCode;
36080 switch (_b) {
36081 case "BadRequestException": return [3 /*break*/, 2];
36082 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36083 case "ForbiddenException": return [3 /*break*/, 4];
36084 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36085 case "InternalServerErrorException": return [3 /*break*/, 6];
36086 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36087 case "MethodNotAllowedException": return [3 /*break*/, 8];
36088 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36089 case "NotFoundException": return [3 /*break*/, 10];
36090 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36091 case "PayloadTooLargeException": return [3 /*break*/, 12];
36092 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36093 case "TooManyRequestsException": return [3 /*break*/, 14];
36094 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36095 }
36096 return [3 /*break*/, 16];
36097 case 2:
36098 _c = [{}];
36099 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36100 case 3:
36101 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) }]);
36102 return [3 /*break*/, 17];
36103 case 4:
36104 _d = [{}];
36105 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36106 case 5:
36107 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) }]);
36108 return [3 /*break*/, 17];
36109 case 6:
36110 _e = [{}];
36111 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36112 case 7:
36113 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) }]);
36114 return [3 /*break*/, 17];
36115 case 8:
36116 _f = [{}];
36117 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36118 case 9:
36119 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) }]);
36120 return [3 /*break*/, 17];
36121 case 10:
36122 _g = [{}];
36123 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36124 case 11:
36125 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) }]);
36126 return [3 /*break*/, 17];
36127 case 12:
36128 _h = [{}];
36129 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36130 case 13:
36131 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) }]);
36132 return [3 /*break*/, 17];
36133 case 14:
36134 _j = [{}];
36135 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36136 case 15:
36137 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) }]);
36138 return [3 /*break*/, 17];
36139 case 16:
36140 parsedBody = parsedOutput.body;
36141 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36142 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) });
36143 _l.label = 17;
36144 case 17:
36145 message = response.message || response.Message || errorCode;
36146 response.message = message;
36147 delete response.Message;
36148 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36149 }
36150 });
36151}); };
36152var deserializeAws_restJson1CreateJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36153 var contents, data;
36154 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36155 switch (_a.label) {
36156 case 0:
36157 if (output.statusCode !== 201 && output.statusCode >= 300) {
36158 return [2 /*return*/, deserializeAws_restJson1CreateJourneyCommandError(output, context)];
36159 }
36160 contents = {
36161 $metadata: deserializeMetadata(output),
36162 JourneyResponse: undefined,
36163 };
36164 return [4 /*yield*/, parseBody(output.body, context)];
36165 case 1:
36166 data = _a.sent();
36167 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
36168 return [2 /*return*/, Promise.resolve(contents)];
36169 }
36170 });
36171}); };
36172var deserializeAws_restJson1CreateJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36173 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36174 var _k;
36175 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36176 switch (_l.label) {
36177 case 0:
36178 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36179 _k = {};
36180 return [4 /*yield*/, parseBody(output.body, context)];
36181 case 1:
36182 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36183 errorCode = "UnknownError";
36184 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36185 _b = errorCode;
36186 switch (_b) {
36187 case "BadRequestException": return [3 /*break*/, 2];
36188 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36189 case "ForbiddenException": return [3 /*break*/, 4];
36190 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36191 case "InternalServerErrorException": return [3 /*break*/, 6];
36192 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36193 case "MethodNotAllowedException": return [3 /*break*/, 8];
36194 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36195 case "NotFoundException": return [3 /*break*/, 10];
36196 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36197 case "PayloadTooLargeException": return [3 /*break*/, 12];
36198 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36199 case "TooManyRequestsException": return [3 /*break*/, 14];
36200 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36201 }
36202 return [3 /*break*/, 16];
36203 case 2:
36204 _c = [{}];
36205 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36206 case 3:
36207 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) }]);
36208 return [3 /*break*/, 17];
36209 case 4:
36210 _d = [{}];
36211 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36212 case 5:
36213 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) }]);
36214 return [3 /*break*/, 17];
36215 case 6:
36216 _e = [{}];
36217 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36218 case 7:
36219 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) }]);
36220 return [3 /*break*/, 17];
36221 case 8:
36222 _f = [{}];
36223 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36224 case 9:
36225 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) }]);
36226 return [3 /*break*/, 17];
36227 case 10:
36228 _g = [{}];
36229 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36230 case 11:
36231 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) }]);
36232 return [3 /*break*/, 17];
36233 case 12:
36234 _h = [{}];
36235 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36236 case 13:
36237 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) }]);
36238 return [3 /*break*/, 17];
36239 case 14:
36240 _j = [{}];
36241 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36242 case 15:
36243 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) }]);
36244 return [3 /*break*/, 17];
36245 case 16:
36246 parsedBody = parsedOutput.body;
36247 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36248 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) });
36249 _l.label = 17;
36250 case 17:
36251 message = response.message || response.Message || errorCode;
36252 response.message = message;
36253 delete response.Message;
36254 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36255 }
36256 });
36257}); };
36258var deserializeAws_restJson1CreatePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36259 var contents, data;
36260 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36261 switch (_a.label) {
36262 case 0:
36263 if (output.statusCode !== 201 && output.statusCode >= 300) {
36264 return [2 /*return*/, deserializeAws_restJson1CreatePushTemplateCommandError(output, context)];
36265 }
36266 contents = {
36267 $metadata: deserializeMetadata(output),
36268 CreateTemplateMessageBody: undefined,
36269 };
36270 return [4 /*yield*/, parseBody(output.body, context)];
36271 case 1:
36272 data = _a.sent();
36273 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
36274 return [2 /*return*/, Promise.resolve(contents)];
36275 }
36276 });
36277}); };
36278var deserializeAws_restJson1CreatePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36279 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
36280 var _h;
36281 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
36282 switch (_j.label) {
36283 case 0:
36284 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36285 _h = {};
36286 return [4 /*yield*/, parseBody(output.body, context)];
36287 case 1:
36288 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
36289 errorCode = "UnknownError";
36290 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36291 _b = errorCode;
36292 switch (_b) {
36293 case "BadRequestException": return [3 /*break*/, 2];
36294 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36295 case "ForbiddenException": return [3 /*break*/, 4];
36296 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36297 case "InternalServerErrorException": return [3 /*break*/, 6];
36298 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36299 case "MethodNotAllowedException": return [3 /*break*/, 8];
36300 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36301 case "TooManyRequestsException": return [3 /*break*/, 10];
36302 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
36303 }
36304 return [3 /*break*/, 12];
36305 case 2:
36306 _c = [{}];
36307 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36308 case 3:
36309 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) }]);
36310 return [3 /*break*/, 13];
36311 case 4:
36312 _d = [{}];
36313 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36314 case 5:
36315 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) }]);
36316 return [3 /*break*/, 13];
36317 case 6:
36318 _e = [{}];
36319 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36320 case 7:
36321 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) }]);
36322 return [3 /*break*/, 13];
36323 case 8:
36324 _f = [{}];
36325 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36326 case 9:
36327 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) }]);
36328 return [3 /*break*/, 13];
36329 case 10:
36330 _g = [{}];
36331 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36332 case 11:
36333 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) }]);
36334 return [3 /*break*/, 13];
36335 case 12:
36336 parsedBody = parsedOutput.body;
36337 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36338 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) });
36339 _j.label = 13;
36340 case 13:
36341 message = response.message || response.Message || errorCode;
36342 response.message = message;
36343 delete response.Message;
36344 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36345 }
36346 });
36347}); };
36348var deserializeAws_restJson1CreateRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36349 var contents, data;
36350 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36351 switch (_a.label) {
36352 case 0:
36353 if (output.statusCode !== 201 && output.statusCode >= 300) {
36354 return [2 /*return*/, deserializeAws_restJson1CreateRecommenderConfigurationCommandError(output, context)];
36355 }
36356 contents = {
36357 $metadata: deserializeMetadata(output),
36358 RecommenderConfigurationResponse: undefined,
36359 };
36360 return [4 /*yield*/, parseBody(output.body, context)];
36361 case 1:
36362 data = _a.sent();
36363 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
36364 return [2 /*return*/, Promise.resolve(contents)];
36365 }
36366 });
36367}); };
36368var deserializeAws_restJson1CreateRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36369 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36370 var _k;
36371 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36372 switch (_l.label) {
36373 case 0:
36374 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36375 _k = {};
36376 return [4 /*yield*/, parseBody(output.body, context)];
36377 case 1:
36378 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36379 errorCode = "UnknownError";
36380 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36381 _b = errorCode;
36382 switch (_b) {
36383 case "BadRequestException": return [3 /*break*/, 2];
36384 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36385 case "ForbiddenException": return [3 /*break*/, 4];
36386 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36387 case "InternalServerErrorException": return [3 /*break*/, 6];
36388 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36389 case "MethodNotAllowedException": return [3 /*break*/, 8];
36390 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36391 case "NotFoundException": return [3 /*break*/, 10];
36392 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36393 case "PayloadTooLargeException": return [3 /*break*/, 12];
36394 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36395 case "TooManyRequestsException": return [3 /*break*/, 14];
36396 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36397 }
36398 return [3 /*break*/, 16];
36399 case 2:
36400 _c = [{}];
36401 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36402 case 3:
36403 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) }]);
36404 return [3 /*break*/, 17];
36405 case 4:
36406 _d = [{}];
36407 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36408 case 5:
36409 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) }]);
36410 return [3 /*break*/, 17];
36411 case 6:
36412 _e = [{}];
36413 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36414 case 7:
36415 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) }]);
36416 return [3 /*break*/, 17];
36417 case 8:
36418 _f = [{}];
36419 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36420 case 9:
36421 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) }]);
36422 return [3 /*break*/, 17];
36423 case 10:
36424 _g = [{}];
36425 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36426 case 11:
36427 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) }]);
36428 return [3 /*break*/, 17];
36429 case 12:
36430 _h = [{}];
36431 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36432 case 13:
36433 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) }]);
36434 return [3 /*break*/, 17];
36435 case 14:
36436 _j = [{}];
36437 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36438 case 15:
36439 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) }]);
36440 return [3 /*break*/, 17];
36441 case 16:
36442 parsedBody = parsedOutput.body;
36443 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36444 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) });
36445 _l.label = 17;
36446 case 17:
36447 message = response.message || response.Message || errorCode;
36448 response.message = message;
36449 delete response.Message;
36450 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36451 }
36452 });
36453}); };
36454var deserializeAws_restJson1CreateSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36455 var contents, data;
36456 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36457 switch (_a.label) {
36458 case 0:
36459 if (output.statusCode !== 201 && output.statusCode >= 300) {
36460 return [2 /*return*/, deserializeAws_restJson1CreateSegmentCommandError(output, context)];
36461 }
36462 contents = {
36463 $metadata: deserializeMetadata(output),
36464 SegmentResponse: undefined,
36465 };
36466 return [4 /*yield*/, parseBody(output.body, context)];
36467 case 1:
36468 data = _a.sent();
36469 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
36470 return [2 /*return*/, Promise.resolve(contents)];
36471 }
36472 });
36473}); };
36474var deserializeAws_restJson1CreateSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36475 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36476 var _k;
36477 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36478 switch (_l.label) {
36479 case 0:
36480 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36481 _k = {};
36482 return [4 /*yield*/, parseBody(output.body, context)];
36483 case 1:
36484 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36485 errorCode = "UnknownError";
36486 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36487 _b = errorCode;
36488 switch (_b) {
36489 case "BadRequestException": return [3 /*break*/, 2];
36490 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36491 case "ForbiddenException": return [3 /*break*/, 4];
36492 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36493 case "InternalServerErrorException": return [3 /*break*/, 6];
36494 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36495 case "MethodNotAllowedException": return [3 /*break*/, 8];
36496 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36497 case "NotFoundException": return [3 /*break*/, 10];
36498 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36499 case "PayloadTooLargeException": return [3 /*break*/, 12];
36500 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36501 case "TooManyRequestsException": return [3 /*break*/, 14];
36502 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36503 }
36504 return [3 /*break*/, 16];
36505 case 2:
36506 _c = [{}];
36507 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36508 case 3:
36509 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) }]);
36510 return [3 /*break*/, 17];
36511 case 4:
36512 _d = [{}];
36513 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36514 case 5:
36515 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) }]);
36516 return [3 /*break*/, 17];
36517 case 6:
36518 _e = [{}];
36519 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36520 case 7:
36521 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) }]);
36522 return [3 /*break*/, 17];
36523 case 8:
36524 _f = [{}];
36525 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36526 case 9:
36527 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) }]);
36528 return [3 /*break*/, 17];
36529 case 10:
36530 _g = [{}];
36531 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36532 case 11:
36533 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) }]);
36534 return [3 /*break*/, 17];
36535 case 12:
36536 _h = [{}];
36537 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36538 case 13:
36539 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) }]);
36540 return [3 /*break*/, 17];
36541 case 14:
36542 _j = [{}];
36543 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36544 case 15:
36545 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) }]);
36546 return [3 /*break*/, 17];
36547 case 16:
36548 parsedBody = parsedOutput.body;
36549 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36550 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) });
36551 _l.label = 17;
36552 case 17:
36553 message = response.message || response.Message || errorCode;
36554 response.message = message;
36555 delete response.Message;
36556 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36557 }
36558 });
36559}); };
36560var deserializeAws_restJson1CreateSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36561 var contents, data;
36562 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36563 switch (_a.label) {
36564 case 0:
36565 if (output.statusCode !== 201 && output.statusCode >= 300) {
36566 return [2 /*return*/, deserializeAws_restJson1CreateSmsTemplateCommandError(output, context)];
36567 }
36568 contents = {
36569 $metadata: deserializeMetadata(output),
36570 CreateTemplateMessageBody: undefined,
36571 };
36572 return [4 /*yield*/, parseBody(output.body, context)];
36573 case 1:
36574 data = _a.sent();
36575 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
36576 return [2 /*return*/, Promise.resolve(contents)];
36577 }
36578 });
36579}); };
36580var deserializeAws_restJson1CreateSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36581 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
36582 var _h;
36583 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
36584 switch (_j.label) {
36585 case 0:
36586 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36587 _h = {};
36588 return [4 /*yield*/, parseBody(output.body, context)];
36589 case 1:
36590 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
36591 errorCode = "UnknownError";
36592 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36593 _b = errorCode;
36594 switch (_b) {
36595 case "BadRequestException": return [3 /*break*/, 2];
36596 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36597 case "ForbiddenException": return [3 /*break*/, 4];
36598 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36599 case "InternalServerErrorException": return [3 /*break*/, 6];
36600 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36601 case "MethodNotAllowedException": return [3 /*break*/, 8];
36602 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36603 case "TooManyRequestsException": return [3 /*break*/, 10];
36604 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
36605 }
36606 return [3 /*break*/, 12];
36607 case 2:
36608 _c = [{}];
36609 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36610 case 3:
36611 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) }]);
36612 return [3 /*break*/, 13];
36613 case 4:
36614 _d = [{}];
36615 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36616 case 5:
36617 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) }]);
36618 return [3 /*break*/, 13];
36619 case 6:
36620 _e = [{}];
36621 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36622 case 7:
36623 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) }]);
36624 return [3 /*break*/, 13];
36625 case 8:
36626 _f = [{}];
36627 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36628 case 9:
36629 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) }]);
36630 return [3 /*break*/, 13];
36631 case 10:
36632 _g = [{}];
36633 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36634 case 11:
36635 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) }]);
36636 return [3 /*break*/, 13];
36637 case 12:
36638 parsedBody = parsedOutput.body;
36639 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36640 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) });
36641 _j.label = 13;
36642 case 13:
36643 message = response.message || response.Message || errorCode;
36644 response.message = message;
36645 delete response.Message;
36646 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36647 }
36648 });
36649}); };
36650var deserializeAws_restJson1CreateVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36651 var contents, data;
36652 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36653 switch (_a.label) {
36654 case 0:
36655 if (output.statusCode !== 201 && output.statusCode >= 300) {
36656 return [2 /*return*/, deserializeAws_restJson1CreateVoiceTemplateCommandError(output, context)];
36657 }
36658 contents = {
36659 $metadata: deserializeMetadata(output),
36660 CreateTemplateMessageBody: undefined,
36661 };
36662 return [4 /*yield*/, parseBody(output.body, context)];
36663 case 1:
36664 data = _a.sent();
36665 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
36666 return [2 /*return*/, Promise.resolve(contents)];
36667 }
36668 });
36669}); };
36670var deserializeAws_restJson1CreateVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36671 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
36672 var _h;
36673 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
36674 switch (_j.label) {
36675 case 0:
36676 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36677 _h = {};
36678 return [4 /*yield*/, parseBody(output.body, context)];
36679 case 1:
36680 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
36681 errorCode = "UnknownError";
36682 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36683 _b = errorCode;
36684 switch (_b) {
36685 case "BadRequestException": return [3 /*break*/, 2];
36686 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36687 case "ForbiddenException": return [3 /*break*/, 4];
36688 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36689 case "InternalServerErrorException": return [3 /*break*/, 6];
36690 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36691 case "MethodNotAllowedException": return [3 /*break*/, 8];
36692 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36693 case "TooManyRequestsException": return [3 /*break*/, 10];
36694 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
36695 }
36696 return [3 /*break*/, 12];
36697 case 2:
36698 _c = [{}];
36699 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36700 case 3:
36701 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) }]);
36702 return [3 /*break*/, 13];
36703 case 4:
36704 _d = [{}];
36705 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36706 case 5:
36707 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) }]);
36708 return [3 /*break*/, 13];
36709 case 6:
36710 _e = [{}];
36711 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36712 case 7:
36713 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) }]);
36714 return [3 /*break*/, 13];
36715 case 8:
36716 _f = [{}];
36717 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36718 case 9:
36719 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) }]);
36720 return [3 /*break*/, 13];
36721 case 10:
36722 _g = [{}];
36723 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36724 case 11:
36725 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) }]);
36726 return [3 /*break*/, 13];
36727 case 12:
36728 parsedBody = parsedOutput.body;
36729 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36730 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) });
36731 _j.label = 13;
36732 case 13:
36733 message = response.message || response.Message || errorCode;
36734 response.message = message;
36735 delete response.Message;
36736 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36737 }
36738 });
36739}); };
36740var deserializeAws_restJson1DeleteAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36741 var contents, data;
36742 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36743 switch (_a.label) {
36744 case 0:
36745 if (output.statusCode !== 200 && output.statusCode >= 300) {
36746 return [2 /*return*/, deserializeAws_restJson1DeleteAdmChannelCommandError(output, context)];
36747 }
36748 contents = {
36749 $metadata: deserializeMetadata(output),
36750 ADMChannelResponse: undefined,
36751 };
36752 return [4 /*yield*/, parseBody(output.body, context)];
36753 case 1:
36754 data = _a.sent();
36755 contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context);
36756 return [2 /*return*/, Promise.resolve(contents)];
36757 }
36758 });
36759}); };
36760var deserializeAws_restJson1DeleteAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36761 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36762 var _k;
36763 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36764 switch (_l.label) {
36765 case 0:
36766 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36767 _k = {};
36768 return [4 /*yield*/, parseBody(output.body, context)];
36769 case 1:
36770 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36771 errorCode = "UnknownError";
36772 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36773 _b = errorCode;
36774 switch (_b) {
36775 case "BadRequestException": return [3 /*break*/, 2];
36776 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36777 case "ForbiddenException": return [3 /*break*/, 4];
36778 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36779 case "InternalServerErrorException": return [3 /*break*/, 6];
36780 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36781 case "MethodNotAllowedException": return [3 /*break*/, 8];
36782 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36783 case "NotFoundException": return [3 /*break*/, 10];
36784 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36785 case "PayloadTooLargeException": return [3 /*break*/, 12];
36786 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36787 case "TooManyRequestsException": return [3 /*break*/, 14];
36788 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36789 }
36790 return [3 /*break*/, 16];
36791 case 2:
36792 _c = [{}];
36793 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36794 case 3:
36795 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) }]);
36796 return [3 /*break*/, 17];
36797 case 4:
36798 _d = [{}];
36799 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36800 case 5:
36801 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) }]);
36802 return [3 /*break*/, 17];
36803 case 6:
36804 _e = [{}];
36805 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36806 case 7:
36807 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) }]);
36808 return [3 /*break*/, 17];
36809 case 8:
36810 _f = [{}];
36811 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36812 case 9:
36813 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) }]);
36814 return [3 /*break*/, 17];
36815 case 10:
36816 _g = [{}];
36817 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36818 case 11:
36819 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) }]);
36820 return [3 /*break*/, 17];
36821 case 12:
36822 _h = [{}];
36823 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36824 case 13:
36825 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) }]);
36826 return [3 /*break*/, 17];
36827 case 14:
36828 _j = [{}];
36829 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36830 case 15:
36831 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) }]);
36832 return [3 /*break*/, 17];
36833 case 16:
36834 parsedBody = parsedOutput.body;
36835 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36836 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) });
36837 _l.label = 17;
36838 case 17:
36839 message = response.message || response.Message || errorCode;
36840 response.message = message;
36841 delete response.Message;
36842 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36843 }
36844 });
36845}); };
36846var deserializeAws_restJson1DeleteApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36847 var contents, data;
36848 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36849 switch (_a.label) {
36850 case 0:
36851 if (output.statusCode !== 200 && output.statusCode >= 300) {
36852 return [2 /*return*/, deserializeAws_restJson1DeleteApnsChannelCommandError(output, context)];
36853 }
36854 contents = {
36855 $metadata: deserializeMetadata(output),
36856 APNSChannelResponse: undefined,
36857 };
36858 return [4 /*yield*/, parseBody(output.body, context)];
36859 case 1:
36860 data = _a.sent();
36861 contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context);
36862 return [2 /*return*/, Promise.resolve(contents)];
36863 }
36864 });
36865}); };
36866var deserializeAws_restJson1DeleteApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36867 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36868 var _k;
36869 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36870 switch (_l.label) {
36871 case 0:
36872 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36873 _k = {};
36874 return [4 /*yield*/, parseBody(output.body, context)];
36875 case 1:
36876 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36877 errorCode = "UnknownError";
36878 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36879 _b = errorCode;
36880 switch (_b) {
36881 case "BadRequestException": return [3 /*break*/, 2];
36882 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36883 case "ForbiddenException": return [3 /*break*/, 4];
36884 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36885 case "InternalServerErrorException": return [3 /*break*/, 6];
36886 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36887 case "MethodNotAllowedException": return [3 /*break*/, 8];
36888 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36889 case "NotFoundException": return [3 /*break*/, 10];
36890 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36891 case "PayloadTooLargeException": return [3 /*break*/, 12];
36892 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36893 case "TooManyRequestsException": return [3 /*break*/, 14];
36894 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36895 }
36896 return [3 /*break*/, 16];
36897 case 2:
36898 _c = [{}];
36899 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36900 case 3:
36901 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) }]);
36902 return [3 /*break*/, 17];
36903 case 4:
36904 _d = [{}];
36905 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36906 case 5:
36907 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) }]);
36908 return [3 /*break*/, 17];
36909 case 6:
36910 _e = [{}];
36911 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36912 case 7:
36913 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) }]);
36914 return [3 /*break*/, 17];
36915 case 8:
36916 _f = [{}];
36917 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36918 case 9:
36919 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) }]);
36920 return [3 /*break*/, 17];
36921 case 10:
36922 _g = [{}];
36923 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36924 case 11:
36925 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) }]);
36926 return [3 /*break*/, 17];
36927 case 12:
36928 _h = [{}];
36929 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36930 case 13:
36931 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) }]);
36932 return [3 /*break*/, 17];
36933 case 14:
36934 _j = [{}];
36935 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36936 case 15:
36937 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) }]);
36938 return [3 /*break*/, 17];
36939 case 16:
36940 parsedBody = parsedOutput.body;
36941 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36942 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) });
36943 _l.label = 17;
36944 case 17:
36945 message = response.message || response.Message || errorCode;
36946 response.message = message;
36947 delete response.Message;
36948 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36949 }
36950 });
36951}); };
36952var deserializeAws_restJson1DeleteApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36953 var contents, data;
36954 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36955 switch (_a.label) {
36956 case 0:
36957 if (output.statusCode !== 200 && output.statusCode >= 300) {
36958 return [2 /*return*/, deserializeAws_restJson1DeleteApnsSandboxChannelCommandError(output, context)];
36959 }
36960 contents = {
36961 $metadata: deserializeMetadata(output),
36962 APNSSandboxChannelResponse: undefined,
36963 };
36964 return [4 /*yield*/, parseBody(output.body, context)];
36965 case 1:
36966 data = _a.sent();
36967 contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context);
36968 return [2 /*return*/, Promise.resolve(contents)];
36969 }
36970 });
36971}); };
36972var deserializeAws_restJson1DeleteApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36973 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36974 var _k;
36975 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36976 switch (_l.label) {
36977 case 0:
36978 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36979 _k = {};
36980 return [4 /*yield*/, parseBody(output.body, context)];
36981 case 1:
36982 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36983 errorCode = "UnknownError";
36984 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36985 _b = errorCode;
36986 switch (_b) {
36987 case "BadRequestException": return [3 /*break*/, 2];
36988 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36989 case "ForbiddenException": return [3 /*break*/, 4];
36990 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36991 case "InternalServerErrorException": return [3 /*break*/, 6];
36992 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36993 case "MethodNotAllowedException": return [3 /*break*/, 8];
36994 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36995 case "NotFoundException": return [3 /*break*/, 10];
36996 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36997 case "PayloadTooLargeException": return [3 /*break*/, 12];
36998 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36999 case "TooManyRequestsException": return [3 /*break*/, 14];
37000 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37001 }
37002 return [3 /*break*/, 16];
37003 case 2:
37004 _c = [{}];
37005 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37006 case 3:
37007 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) }]);
37008 return [3 /*break*/, 17];
37009 case 4:
37010 _d = [{}];
37011 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37012 case 5:
37013 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) }]);
37014 return [3 /*break*/, 17];
37015 case 6:
37016 _e = [{}];
37017 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37018 case 7:
37019 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) }]);
37020 return [3 /*break*/, 17];
37021 case 8:
37022 _f = [{}];
37023 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37024 case 9:
37025 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) }]);
37026 return [3 /*break*/, 17];
37027 case 10:
37028 _g = [{}];
37029 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37030 case 11:
37031 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) }]);
37032 return [3 /*break*/, 17];
37033 case 12:
37034 _h = [{}];
37035 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37036 case 13:
37037 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) }]);
37038 return [3 /*break*/, 17];
37039 case 14:
37040 _j = [{}];
37041 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37042 case 15:
37043 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) }]);
37044 return [3 /*break*/, 17];
37045 case 16:
37046 parsedBody = parsedOutput.body;
37047 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37048 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) });
37049 _l.label = 17;
37050 case 17:
37051 message = response.message || response.Message || errorCode;
37052 response.message = message;
37053 delete response.Message;
37054 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37055 }
37056 });
37057}); };
37058var deserializeAws_restJson1DeleteApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37059 var contents, data;
37060 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37061 switch (_a.label) {
37062 case 0:
37063 if (output.statusCode !== 200 && output.statusCode >= 300) {
37064 return [2 /*return*/, deserializeAws_restJson1DeleteApnsVoipChannelCommandError(output, context)];
37065 }
37066 contents = {
37067 $metadata: deserializeMetadata(output),
37068 APNSVoipChannelResponse: undefined,
37069 };
37070 return [4 /*yield*/, parseBody(output.body, context)];
37071 case 1:
37072 data = _a.sent();
37073 contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context);
37074 return [2 /*return*/, Promise.resolve(contents)];
37075 }
37076 });
37077}); };
37078var deserializeAws_restJson1DeleteApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37079 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37080 var _k;
37081 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37082 switch (_l.label) {
37083 case 0:
37084 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37085 _k = {};
37086 return [4 /*yield*/, parseBody(output.body, context)];
37087 case 1:
37088 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37089 errorCode = "UnknownError";
37090 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37091 _b = errorCode;
37092 switch (_b) {
37093 case "BadRequestException": return [3 /*break*/, 2];
37094 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37095 case "ForbiddenException": return [3 /*break*/, 4];
37096 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37097 case "InternalServerErrorException": return [3 /*break*/, 6];
37098 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37099 case "MethodNotAllowedException": return [3 /*break*/, 8];
37100 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37101 case "NotFoundException": return [3 /*break*/, 10];
37102 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37103 case "PayloadTooLargeException": return [3 /*break*/, 12];
37104 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37105 case "TooManyRequestsException": return [3 /*break*/, 14];
37106 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37107 }
37108 return [3 /*break*/, 16];
37109 case 2:
37110 _c = [{}];
37111 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37112 case 3:
37113 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) }]);
37114 return [3 /*break*/, 17];
37115 case 4:
37116 _d = [{}];
37117 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37118 case 5:
37119 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) }]);
37120 return [3 /*break*/, 17];
37121 case 6:
37122 _e = [{}];
37123 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37124 case 7:
37125 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) }]);
37126 return [3 /*break*/, 17];
37127 case 8:
37128 _f = [{}];
37129 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37130 case 9:
37131 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) }]);
37132 return [3 /*break*/, 17];
37133 case 10:
37134 _g = [{}];
37135 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37136 case 11:
37137 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) }]);
37138 return [3 /*break*/, 17];
37139 case 12:
37140 _h = [{}];
37141 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37142 case 13:
37143 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) }]);
37144 return [3 /*break*/, 17];
37145 case 14:
37146 _j = [{}];
37147 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37148 case 15:
37149 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) }]);
37150 return [3 /*break*/, 17];
37151 case 16:
37152 parsedBody = parsedOutput.body;
37153 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37154 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) });
37155 _l.label = 17;
37156 case 17:
37157 message = response.message || response.Message || errorCode;
37158 response.message = message;
37159 delete response.Message;
37160 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37161 }
37162 });
37163}); };
37164var deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37165 var contents, data;
37166 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37167 switch (_a.label) {
37168 case 0:
37169 if (output.statusCode !== 200 && output.statusCode >= 300) {
37170 return [2 /*return*/, deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommandError(output, context)];
37171 }
37172 contents = {
37173 $metadata: deserializeMetadata(output),
37174 APNSVoipSandboxChannelResponse: undefined,
37175 };
37176 return [4 /*yield*/, parseBody(output.body, context)];
37177 case 1:
37178 data = _a.sent();
37179 contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context);
37180 return [2 /*return*/, Promise.resolve(contents)];
37181 }
37182 });
37183}); };
37184var deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37185 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37186 var _k;
37187 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37188 switch (_l.label) {
37189 case 0:
37190 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37191 _k = {};
37192 return [4 /*yield*/, parseBody(output.body, context)];
37193 case 1:
37194 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37195 errorCode = "UnknownError";
37196 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37197 _b = errorCode;
37198 switch (_b) {
37199 case "BadRequestException": return [3 /*break*/, 2];
37200 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37201 case "ForbiddenException": return [3 /*break*/, 4];
37202 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37203 case "InternalServerErrorException": return [3 /*break*/, 6];
37204 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37205 case "MethodNotAllowedException": return [3 /*break*/, 8];
37206 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37207 case "NotFoundException": return [3 /*break*/, 10];
37208 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37209 case "PayloadTooLargeException": return [3 /*break*/, 12];
37210 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37211 case "TooManyRequestsException": return [3 /*break*/, 14];
37212 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37213 }
37214 return [3 /*break*/, 16];
37215 case 2:
37216 _c = [{}];
37217 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37218 case 3:
37219 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) }]);
37220 return [3 /*break*/, 17];
37221 case 4:
37222 _d = [{}];
37223 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37224 case 5:
37225 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) }]);
37226 return [3 /*break*/, 17];
37227 case 6:
37228 _e = [{}];
37229 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37230 case 7:
37231 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) }]);
37232 return [3 /*break*/, 17];
37233 case 8:
37234 _f = [{}];
37235 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37236 case 9:
37237 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) }]);
37238 return [3 /*break*/, 17];
37239 case 10:
37240 _g = [{}];
37241 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37242 case 11:
37243 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) }]);
37244 return [3 /*break*/, 17];
37245 case 12:
37246 _h = [{}];
37247 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37248 case 13:
37249 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) }]);
37250 return [3 /*break*/, 17];
37251 case 14:
37252 _j = [{}];
37253 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37254 case 15:
37255 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) }]);
37256 return [3 /*break*/, 17];
37257 case 16:
37258 parsedBody = parsedOutput.body;
37259 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37260 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) });
37261 _l.label = 17;
37262 case 17:
37263 message = response.message || response.Message || errorCode;
37264 response.message = message;
37265 delete response.Message;
37266 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37267 }
37268 });
37269}); };
37270var deserializeAws_restJson1DeleteAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37271 var contents, data;
37272 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37273 switch (_a.label) {
37274 case 0:
37275 if (output.statusCode !== 200 && output.statusCode >= 300) {
37276 return [2 /*return*/, deserializeAws_restJson1DeleteAppCommandError(output, context)];
37277 }
37278 contents = {
37279 $metadata: deserializeMetadata(output),
37280 ApplicationResponse: undefined,
37281 };
37282 return [4 /*yield*/, parseBody(output.body, context)];
37283 case 1:
37284 data = _a.sent();
37285 contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context);
37286 return [2 /*return*/, Promise.resolve(contents)];
37287 }
37288 });
37289}); };
37290var deserializeAws_restJson1DeleteAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37291 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37292 var _k;
37293 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37294 switch (_l.label) {
37295 case 0:
37296 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37297 _k = {};
37298 return [4 /*yield*/, parseBody(output.body, context)];
37299 case 1:
37300 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37301 errorCode = "UnknownError";
37302 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37303 _b = errorCode;
37304 switch (_b) {
37305 case "BadRequestException": return [3 /*break*/, 2];
37306 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37307 case "ForbiddenException": return [3 /*break*/, 4];
37308 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37309 case "InternalServerErrorException": return [3 /*break*/, 6];
37310 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37311 case "MethodNotAllowedException": return [3 /*break*/, 8];
37312 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37313 case "NotFoundException": return [3 /*break*/, 10];
37314 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37315 case "PayloadTooLargeException": return [3 /*break*/, 12];
37316 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37317 case "TooManyRequestsException": return [3 /*break*/, 14];
37318 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37319 }
37320 return [3 /*break*/, 16];
37321 case 2:
37322 _c = [{}];
37323 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37324 case 3:
37325 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) }]);
37326 return [3 /*break*/, 17];
37327 case 4:
37328 _d = [{}];
37329 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37330 case 5:
37331 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) }]);
37332 return [3 /*break*/, 17];
37333 case 6:
37334 _e = [{}];
37335 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37336 case 7:
37337 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) }]);
37338 return [3 /*break*/, 17];
37339 case 8:
37340 _f = [{}];
37341 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37342 case 9:
37343 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) }]);
37344 return [3 /*break*/, 17];
37345 case 10:
37346 _g = [{}];
37347 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37348 case 11:
37349 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) }]);
37350 return [3 /*break*/, 17];
37351 case 12:
37352 _h = [{}];
37353 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37354 case 13:
37355 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) }]);
37356 return [3 /*break*/, 17];
37357 case 14:
37358 _j = [{}];
37359 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37360 case 15:
37361 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) }]);
37362 return [3 /*break*/, 17];
37363 case 16:
37364 parsedBody = parsedOutput.body;
37365 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37366 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) });
37367 _l.label = 17;
37368 case 17:
37369 message = response.message || response.Message || errorCode;
37370 response.message = message;
37371 delete response.Message;
37372 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37373 }
37374 });
37375}); };
37376var deserializeAws_restJson1DeleteBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37377 var contents, data;
37378 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37379 switch (_a.label) {
37380 case 0:
37381 if (output.statusCode !== 200 && output.statusCode >= 300) {
37382 return [2 /*return*/, deserializeAws_restJson1DeleteBaiduChannelCommandError(output, context)];
37383 }
37384 contents = {
37385 $metadata: deserializeMetadata(output),
37386 BaiduChannelResponse: undefined,
37387 };
37388 return [4 /*yield*/, parseBody(output.body, context)];
37389 case 1:
37390 data = _a.sent();
37391 contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context);
37392 return [2 /*return*/, Promise.resolve(contents)];
37393 }
37394 });
37395}); };
37396var deserializeAws_restJson1DeleteBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37397 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37398 var _k;
37399 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37400 switch (_l.label) {
37401 case 0:
37402 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37403 _k = {};
37404 return [4 /*yield*/, parseBody(output.body, context)];
37405 case 1:
37406 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37407 errorCode = "UnknownError";
37408 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37409 _b = errorCode;
37410 switch (_b) {
37411 case "BadRequestException": return [3 /*break*/, 2];
37412 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37413 case "ForbiddenException": return [3 /*break*/, 4];
37414 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37415 case "InternalServerErrorException": return [3 /*break*/, 6];
37416 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37417 case "MethodNotAllowedException": return [3 /*break*/, 8];
37418 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37419 case "NotFoundException": return [3 /*break*/, 10];
37420 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37421 case "PayloadTooLargeException": return [3 /*break*/, 12];
37422 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37423 case "TooManyRequestsException": return [3 /*break*/, 14];
37424 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37425 }
37426 return [3 /*break*/, 16];
37427 case 2:
37428 _c = [{}];
37429 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37430 case 3:
37431 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) }]);
37432 return [3 /*break*/, 17];
37433 case 4:
37434 _d = [{}];
37435 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37436 case 5:
37437 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) }]);
37438 return [3 /*break*/, 17];
37439 case 6:
37440 _e = [{}];
37441 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37442 case 7:
37443 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) }]);
37444 return [3 /*break*/, 17];
37445 case 8:
37446 _f = [{}];
37447 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37448 case 9:
37449 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) }]);
37450 return [3 /*break*/, 17];
37451 case 10:
37452 _g = [{}];
37453 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37454 case 11:
37455 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) }]);
37456 return [3 /*break*/, 17];
37457 case 12:
37458 _h = [{}];
37459 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37460 case 13:
37461 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) }]);
37462 return [3 /*break*/, 17];
37463 case 14:
37464 _j = [{}];
37465 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37466 case 15:
37467 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) }]);
37468 return [3 /*break*/, 17];
37469 case 16:
37470 parsedBody = parsedOutput.body;
37471 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37472 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) });
37473 _l.label = 17;
37474 case 17:
37475 message = response.message || response.Message || errorCode;
37476 response.message = message;
37477 delete response.Message;
37478 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37479 }
37480 });
37481}); };
37482var deserializeAws_restJson1DeleteCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37483 var contents, data;
37484 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37485 switch (_a.label) {
37486 case 0:
37487 if (output.statusCode !== 200 && output.statusCode >= 300) {
37488 return [2 /*return*/, deserializeAws_restJson1DeleteCampaignCommandError(output, context)];
37489 }
37490 contents = {
37491 $metadata: deserializeMetadata(output),
37492 CampaignResponse: undefined,
37493 };
37494 return [4 /*yield*/, parseBody(output.body, context)];
37495 case 1:
37496 data = _a.sent();
37497 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
37498 return [2 /*return*/, Promise.resolve(contents)];
37499 }
37500 });
37501}); };
37502var deserializeAws_restJson1DeleteCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37503 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37504 var _k;
37505 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37506 switch (_l.label) {
37507 case 0:
37508 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37509 _k = {};
37510 return [4 /*yield*/, parseBody(output.body, context)];
37511 case 1:
37512 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37513 errorCode = "UnknownError";
37514 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37515 _b = errorCode;
37516 switch (_b) {
37517 case "BadRequestException": return [3 /*break*/, 2];
37518 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37519 case "ForbiddenException": return [3 /*break*/, 4];
37520 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37521 case "InternalServerErrorException": return [3 /*break*/, 6];
37522 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37523 case "MethodNotAllowedException": return [3 /*break*/, 8];
37524 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37525 case "NotFoundException": return [3 /*break*/, 10];
37526 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37527 case "PayloadTooLargeException": return [3 /*break*/, 12];
37528 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37529 case "TooManyRequestsException": return [3 /*break*/, 14];
37530 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37531 }
37532 return [3 /*break*/, 16];
37533 case 2:
37534 _c = [{}];
37535 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37536 case 3:
37537 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) }]);
37538 return [3 /*break*/, 17];
37539 case 4:
37540 _d = [{}];
37541 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37542 case 5:
37543 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) }]);
37544 return [3 /*break*/, 17];
37545 case 6:
37546 _e = [{}];
37547 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37548 case 7:
37549 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) }]);
37550 return [3 /*break*/, 17];
37551 case 8:
37552 _f = [{}];
37553 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37554 case 9:
37555 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) }]);
37556 return [3 /*break*/, 17];
37557 case 10:
37558 _g = [{}];
37559 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37560 case 11:
37561 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) }]);
37562 return [3 /*break*/, 17];
37563 case 12:
37564 _h = [{}];
37565 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37566 case 13:
37567 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) }]);
37568 return [3 /*break*/, 17];
37569 case 14:
37570 _j = [{}];
37571 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37572 case 15:
37573 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) }]);
37574 return [3 /*break*/, 17];
37575 case 16:
37576 parsedBody = parsedOutput.body;
37577 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37578 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) });
37579 _l.label = 17;
37580 case 17:
37581 message = response.message || response.Message || errorCode;
37582 response.message = message;
37583 delete response.Message;
37584 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37585 }
37586 });
37587}); };
37588var deserializeAws_restJson1DeleteEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37589 var contents, data;
37590 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37591 switch (_a.label) {
37592 case 0:
37593 if (output.statusCode !== 200 && output.statusCode >= 300) {
37594 return [2 /*return*/, deserializeAws_restJson1DeleteEmailChannelCommandError(output, context)];
37595 }
37596 contents = {
37597 $metadata: deserializeMetadata(output),
37598 EmailChannelResponse: undefined,
37599 };
37600 return [4 /*yield*/, parseBody(output.body, context)];
37601 case 1:
37602 data = _a.sent();
37603 contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context);
37604 return [2 /*return*/, Promise.resolve(contents)];
37605 }
37606 });
37607}); };
37608var deserializeAws_restJson1DeleteEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37609 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37610 var _k;
37611 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37612 switch (_l.label) {
37613 case 0:
37614 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37615 _k = {};
37616 return [4 /*yield*/, parseBody(output.body, context)];
37617 case 1:
37618 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37619 errorCode = "UnknownError";
37620 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37621 _b = errorCode;
37622 switch (_b) {
37623 case "BadRequestException": return [3 /*break*/, 2];
37624 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37625 case "ForbiddenException": return [3 /*break*/, 4];
37626 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37627 case "InternalServerErrorException": return [3 /*break*/, 6];
37628 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37629 case "MethodNotAllowedException": return [3 /*break*/, 8];
37630 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37631 case "NotFoundException": return [3 /*break*/, 10];
37632 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37633 case "PayloadTooLargeException": return [3 /*break*/, 12];
37634 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37635 case "TooManyRequestsException": return [3 /*break*/, 14];
37636 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37637 }
37638 return [3 /*break*/, 16];
37639 case 2:
37640 _c = [{}];
37641 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37642 case 3:
37643 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) }]);
37644 return [3 /*break*/, 17];
37645 case 4:
37646 _d = [{}];
37647 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37648 case 5:
37649 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) }]);
37650 return [3 /*break*/, 17];
37651 case 6:
37652 _e = [{}];
37653 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37654 case 7:
37655 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) }]);
37656 return [3 /*break*/, 17];
37657 case 8:
37658 _f = [{}];
37659 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37660 case 9:
37661 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) }]);
37662 return [3 /*break*/, 17];
37663 case 10:
37664 _g = [{}];
37665 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37666 case 11:
37667 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) }]);
37668 return [3 /*break*/, 17];
37669 case 12:
37670 _h = [{}];
37671 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37672 case 13:
37673 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) }]);
37674 return [3 /*break*/, 17];
37675 case 14:
37676 _j = [{}];
37677 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37678 case 15:
37679 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) }]);
37680 return [3 /*break*/, 17];
37681 case 16:
37682 parsedBody = parsedOutput.body;
37683 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37684 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) });
37685 _l.label = 17;
37686 case 17:
37687 message = response.message || response.Message || errorCode;
37688 response.message = message;
37689 delete response.Message;
37690 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37691 }
37692 });
37693}); };
37694var deserializeAws_restJson1DeleteEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37695 var contents, data;
37696 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37697 switch (_a.label) {
37698 case 0:
37699 if (output.statusCode !== 202 && output.statusCode >= 300) {
37700 return [2 /*return*/, deserializeAws_restJson1DeleteEmailTemplateCommandError(output, context)];
37701 }
37702 contents = {
37703 $metadata: deserializeMetadata(output),
37704 MessageBody: undefined,
37705 };
37706 return [4 /*yield*/, parseBody(output.body, context)];
37707 case 1:
37708 data = _a.sent();
37709 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
37710 return [2 /*return*/, Promise.resolve(contents)];
37711 }
37712 });
37713}); };
37714var deserializeAws_restJson1DeleteEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37715 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37716 var _k;
37717 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37718 switch (_l.label) {
37719 case 0:
37720 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37721 _k = {};
37722 return [4 /*yield*/, parseBody(output.body, context)];
37723 case 1:
37724 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37725 errorCode = "UnknownError";
37726 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37727 _b = errorCode;
37728 switch (_b) {
37729 case "BadRequestException": return [3 /*break*/, 2];
37730 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37731 case "ForbiddenException": return [3 /*break*/, 4];
37732 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37733 case "InternalServerErrorException": return [3 /*break*/, 6];
37734 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37735 case "MethodNotAllowedException": return [3 /*break*/, 8];
37736 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37737 case "NotFoundException": return [3 /*break*/, 10];
37738 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37739 case "PayloadTooLargeException": return [3 /*break*/, 12];
37740 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37741 case "TooManyRequestsException": return [3 /*break*/, 14];
37742 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37743 }
37744 return [3 /*break*/, 16];
37745 case 2:
37746 _c = [{}];
37747 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37748 case 3:
37749 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) }]);
37750 return [3 /*break*/, 17];
37751 case 4:
37752 _d = [{}];
37753 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37754 case 5:
37755 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) }]);
37756 return [3 /*break*/, 17];
37757 case 6:
37758 _e = [{}];
37759 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37760 case 7:
37761 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) }]);
37762 return [3 /*break*/, 17];
37763 case 8:
37764 _f = [{}];
37765 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37766 case 9:
37767 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) }]);
37768 return [3 /*break*/, 17];
37769 case 10:
37770 _g = [{}];
37771 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37772 case 11:
37773 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) }]);
37774 return [3 /*break*/, 17];
37775 case 12:
37776 _h = [{}];
37777 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37778 case 13:
37779 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) }]);
37780 return [3 /*break*/, 17];
37781 case 14:
37782 _j = [{}];
37783 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37784 case 15:
37785 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) }]);
37786 return [3 /*break*/, 17];
37787 case 16:
37788 parsedBody = parsedOutput.body;
37789 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37790 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) });
37791 _l.label = 17;
37792 case 17:
37793 message = response.message || response.Message || errorCode;
37794 response.message = message;
37795 delete response.Message;
37796 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37797 }
37798 });
37799}); };
37800var deserializeAws_restJson1DeleteEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37801 var contents, data;
37802 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37803 switch (_a.label) {
37804 case 0:
37805 if (output.statusCode !== 202 && output.statusCode >= 300) {
37806 return [2 /*return*/, deserializeAws_restJson1DeleteEndpointCommandError(output, context)];
37807 }
37808 contents = {
37809 $metadata: deserializeMetadata(output),
37810 EndpointResponse: undefined,
37811 };
37812 return [4 /*yield*/, parseBody(output.body, context)];
37813 case 1:
37814 data = _a.sent();
37815 contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context);
37816 return [2 /*return*/, Promise.resolve(contents)];
37817 }
37818 });
37819}); };
37820var deserializeAws_restJson1DeleteEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37821 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37822 var _k;
37823 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37824 switch (_l.label) {
37825 case 0:
37826 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37827 _k = {};
37828 return [4 /*yield*/, parseBody(output.body, context)];
37829 case 1:
37830 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37831 errorCode = "UnknownError";
37832 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37833 _b = errorCode;
37834 switch (_b) {
37835 case "BadRequestException": return [3 /*break*/, 2];
37836 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37837 case "ForbiddenException": return [3 /*break*/, 4];
37838 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37839 case "InternalServerErrorException": return [3 /*break*/, 6];
37840 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37841 case "MethodNotAllowedException": return [3 /*break*/, 8];
37842 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37843 case "NotFoundException": return [3 /*break*/, 10];
37844 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37845 case "PayloadTooLargeException": return [3 /*break*/, 12];
37846 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37847 case "TooManyRequestsException": return [3 /*break*/, 14];
37848 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37849 }
37850 return [3 /*break*/, 16];
37851 case 2:
37852 _c = [{}];
37853 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37854 case 3:
37855 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) }]);
37856 return [3 /*break*/, 17];
37857 case 4:
37858 _d = [{}];
37859 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37860 case 5:
37861 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) }]);
37862 return [3 /*break*/, 17];
37863 case 6:
37864 _e = [{}];
37865 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37866 case 7:
37867 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) }]);
37868 return [3 /*break*/, 17];
37869 case 8:
37870 _f = [{}];
37871 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37872 case 9:
37873 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) }]);
37874 return [3 /*break*/, 17];
37875 case 10:
37876 _g = [{}];
37877 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37878 case 11:
37879 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) }]);
37880 return [3 /*break*/, 17];
37881 case 12:
37882 _h = [{}];
37883 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37884 case 13:
37885 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) }]);
37886 return [3 /*break*/, 17];
37887 case 14:
37888 _j = [{}];
37889 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37890 case 15:
37891 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) }]);
37892 return [3 /*break*/, 17];
37893 case 16:
37894 parsedBody = parsedOutput.body;
37895 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37896 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) });
37897 _l.label = 17;
37898 case 17:
37899 message = response.message || response.Message || errorCode;
37900 response.message = message;
37901 delete response.Message;
37902 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37903 }
37904 });
37905}); };
37906var deserializeAws_restJson1DeleteEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37907 var contents, data;
37908 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37909 switch (_a.label) {
37910 case 0:
37911 if (output.statusCode !== 200 && output.statusCode >= 300) {
37912 return [2 /*return*/, deserializeAws_restJson1DeleteEventStreamCommandError(output, context)];
37913 }
37914 contents = {
37915 $metadata: deserializeMetadata(output),
37916 EventStream: undefined,
37917 };
37918 return [4 /*yield*/, parseBody(output.body, context)];
37919 case 1:
37920 data = _a.sent();
37921 contents.EventStream = deserializeAws_restJson1EventStream(data, context);
37922 return [2 /*return*/, Promise.resolve(contents)];
37923 }
37924 });
37925}); };
37926var deserializeAws_restJson1DeleteEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37927 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37928 var _k;
37929 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37930 switch (_l.label) {
37931 case 0:
37932 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37933 _k = {};
37934 return [4 /*yield*/, parseBody(output.body, context)];
37935 case 1:
37936 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37937 errorCode = "UnknownError";
37938 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37939 _b = errorCode;
37940 switch (_b) {
37941 case "BadRequestException": return [3 /*break*/, 2];
37942 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37943 case "ForbiddenException": return [3 /*break*/, 4];
37944 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37945 case "InternalServerErrorException": return [3 /*break*/, 6];
37946 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37947 case "MethodNotAllowedException": return [3 /*break*/, 8];
37948 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37949 case "NotFoundException": return [3 /*break*/, 10];
37950 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37951 case "PayloadTooLargeException": return [3 /*break*/, 12];
37952 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37953 case "TooManyRequestsException": return [3 /*break*/, 14];
37954 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37955 }
37956 return [3 /*break*/, 16];
37957 case 2:
37958 _c = [{}];
37959 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37960 case 3:
37961 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) }]);
37962 return [3 /*break*/, 17];
37963 case 4:
37964 _d = [{}];
37965 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37966 case 5:
37967 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) }]);
37968 return [3 /*break*/, 17];
37969 case 6:
37970 _e = [{}];
37971 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37972 case 7:
37973 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) }]);
37974 return [3 /*break*/, 17];
37975 case 8:
37976 _f = [{}];
37977 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37978 case 9:
37979 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) }]);
37980 return [3 /*break*/, 17];
37981 case 10:
37982 _g = [{}];
37983 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37984 case 11:
37985 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) }]);
37986 return [3 /*break*/, 17];
37987 case 12:
37988 _h = [{}];
37989 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37990 case 13:
37991 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) }]);
37992 return [3 /*break*/, 17];
37993 case 14:
37994 _j = [{}];
37995 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37996 case 15:
37997 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) }]);
37998 return [3 /*break*/, 17];
37999 case 16:
38000 parsedBody = parsedOutput.body;
38001 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38002 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) });
38003 _l.label = 17;
38004 case 17:
38005 message = response.message || response.Message || errorCode;
38006 response.message = message;
38007 delete response.Message;
38008 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38009 }
38010 });
38011}); };
38012var deserializeAws_restJson1DeleteGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38013 var contents, data;
38014 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38015 switch (_a.label) {
38016 case 0:
38017 if (output.statusCode !== 200 && output.statusCode >= 300) {
38018 return [2 /*return*/, deserializeAws_restJson1DeleteGcmChannelCommandError(output, context)];
38019 }
38020 contents = {
38021 $metadata: deserializeMetadata(output),
38022 GCMChannelResponse: undefined,
38023 };
38024 return [4 /*yield*/, parseBody(output.body, context)];
38025 case 1:
38026 data = _a.sent();
38027 contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context);
38028 return [2 /*return*/, Promise.resolve(contents)];
38029 }
38030 });
38031}); };
38032var deserializeAws_restJson1DeleteGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38033 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38034 var _k;
38035 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38036 switch (_l.label) {
38037 case 0:
38038 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38039 _k = {};
38040 return [4 /*yield*/, parseBody(output.body, context)];
38041 case 1:
38042 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38043 errorCode = "UnknownError";
38044 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38045 _b = errorCode;
38046 switch (_b) {
38047 case "BadRequestException": return [3 /*break*/, 2];
38048 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38049 case "ForbiddenException": return [3 /*break*/, 4];
38050 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38051 case "InternalServerErrorException": return [3 /*break*/, 6];
38052 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38053 case "MethodNotAllowedException": return [3 /*break*/, 8];
38054 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38055 case "NotFoundException": return [3 /*break*/, 10];
38056 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38057 case "PayloadTooLargeException": return [3 /*break*/, 12];
38058 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38059 case "TooManyRequestsException": return [3 /*break*/, 14];
38060 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38061 }
38062 return [3 /*break*/, 16];
38063 case 2:
38064 _c = [{}];
38065 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38066 case 3:
38067 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) }]);
38068 return [3 /*break*/, 17];
38069 case 4:
38070 _d = [{}];
38071 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38072 case 5:
38073 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) }]);
38074 return [3 /*break*/, 17];
38075 case 6:
38076 _e = [{}];
38077 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38078 case 7:
38079 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) }]);
38080 return [3 /*break*/, 17];
38081 case 8:
38082 _f = [{}];
38083 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38084 case 9:
38085 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) }]);
38086 return [3 /*break*/, 17];
38087 case 10:
38088 _g = [{}];
38089 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38090 case 11:
38091 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) }]);
38092 return [3 /*break*/, 17];
38093 case 12:
38094 _h = [{}];
38095 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38096 case 13:
38097 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) }]);
38098 return [3 /*break*/, 17];
38099 case 14:
38100 _j = [{}];
38101 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38102 case 15:
38103 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) }]);
38104 return [3 /*break*/, 17];
38105 case 16:
38106 parsedBody = parsedOutput.body;
38107 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38108 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) });
38109 _l.label = 17;
38110 case 17:
38111 message = response.message || response.Message || errorCode;
38112 response.message = message;
38113 delete response.Message;
38114 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38115 }
38116 });
38117}); };
38118var deserializeAws_restJson1DeleteJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38119 var contents, data;
38120 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38121 switch (_a.label) {
38122 case 0:
38123 if (output.statusCode !== 200 && output.statusCode >= 300) {
38124 return [2 /*return*/, deserializeAws_restJson1DeleteJourneyCommandError(output, context)];
38125 }
38126 contents = {
38127 $metadata: deserializeMetadata(output),
38128 JourneyResponse: undefined,
38129 };
38130 return [4 /*yield*/, parseBody(output.body, context)];
38131 case 1:
38132 data = _a.sent();
38133 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
38134 return [2 /*return*/, Promise.resolve(contents)];
38135 }
38136 });
38137}); };
38138var deserializeAws_restJson1DeleteJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38139 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38140 var _k;
38141 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38142 switch (_l.label) {
38143 case 0:
38144 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38145 _k = {};
38146 return [4 /*yield*/, parseBody(output.body, context)];
38147 case 1:
38148 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38149 errorCode = "UnknownError";
38150 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38151 _b = errorCode;
38152 switch (_b) {
38153 case "BadRequestException": return [3 /*break*/, 2];
38154 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38155 case "ForbiddenException": return [3 /*break*/, 4];
38156 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38157 case "InternalServerErrorException": return [3 /*break*/, 6];
38158 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38159 case "MethodNotAllowedException": return [3 /*break*/, 8];
38160 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38161 case "NotFoundException": return [3 /*break*/, 10];
38162 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38163 case "PayloadTooLargeException": return [3 /*break*/, 12];
38164 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38165 case "TooManyRequestsException": return [3 /*break*/, 14];
38166 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38167 }
38168 return [3 /*break*/, 16];
38169 case 2:
38170 _c = [{}];
38171 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38172 case 3:
38173 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) }]);
38174 return [3 /*break*/, 17];
38175 case 4:
38176 _d = [{}];
38177 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38178 case 5:
38179 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) }]);
38180 return [3 /*break*/, 17];
38181 case 6:
38182 _e = [{}];
38183 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38184 case 7:
38185 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) }]);
38186 return [3 /*break*/, 17];
38187 case 8:
38188 _f = [{}];
38189 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38190 case 9:
38191 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) }]);
38192 return [3 /*break*/, 17];
38193 case 10:
38194 _g = [{}];
38195 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38196 case 11:
38197 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) }]);
38198 return [3 /*break*/, 17];
38199 case 12:
38200 _h = [{}];
38201 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38202 case 13:
38203 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) }]);
38204 return [3 /*break*/, 17];
38205 case 14:
38206 _j = [{}];
38207 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38208 case 15:
38209 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) }]);
38210 return [3 /*break*/, 17];
38211 case 16:
38212 parsedBody = parsedOutput.body;
38213 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38214 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) });
38215 _l.label = 17;
38216 case 17:
38217 message = response.message || response.Message || errorCode;
38218 response.message = message;
38219 delete response.Message;
38220 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38221 }
38222 });
38223}); };
38224var deserializeAws_restJson1DeletePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38225 var contents, data;
38226 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38227 switch (_a.label) {
38228 case 0:
38229 if (output.statusCode !== 202 && output.statusCode >= 300) {
38230 return [2 /*return*/, deserializeAws_restJson1DeletePushTemplateCommandError(output, context)];
38231 }
38232 contents = {
38233 $metadata: deserializeMetadata(output),
38234 MessageBody: undefined,
38235 };
38236 return [4 /*yield*/, parseBody(output.body, context)];
38237 case 1:
38238 data = _a.sent();
38239 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
38240 return [2 /*return*/, Promise.resolve(contents)];
38241 }
38242 });
38243}); };
38244var deserializeAws_restJson1DeletePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38245 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38246 var _k;
38247 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38248 switch (_l.label) {
38249 case 0:
38250 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38251 _k = {};
38252 return [4 /*yield*/, parseBody(output.body, context)];
38253 case 1:
38254 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38255 errorCode = "UnknownError";
38256 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38257 _b = errorCode;
38258 switch (_b) {
38259 case "BadRequestException": return [3 /*break*/, 2];
38260 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38261 case "ForbiddenException": return [3 /*break*/, 4];
38262 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38263 case "InternalServerErrorException": return [3 /*break*/, 6];
38264 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38265 case "MethodNotAllowedException": return [3 /*break*/, 8];
38266 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38267 case "NotFoundException": return [3 /*break*/, 10];
38268 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38269 case "PayloadTooLargeException": return [3 /*break*/, 12];
38270 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38271 case "TooManyRequestsException": return [3 /*break*/, 14];
38272 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38273 }
38274 return [3 /*break*/, 16];
38275 case 2:
38276 _c = [{}];
38277 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38278 case 3:
38279 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) }]);
38280 return [3 /*break*/, 17];
38281 case 4:
38282 _d = [{}];
38283 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38284 case 5:
38285 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) }]);
38286 return [3 /*break*/, 17];
38287 case 6:
38288 _e = [{}];
38289 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38290 case 7:
38291 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) }]);
38292 return [3 /*break*/, 17];
38293 case 8:
38294 _f = [{}];
38295 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38296 case 9:
38297 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) }]);
38298 return [3 /*break*/, 17];
38299 case 10:
38300 _g = [{}];
38301 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38302 case 11:
38303 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) }]);
38304 return [3 /*break*/, 17];
38305 case 12:
38306 _h = [{}];
38307 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38308 case 13:
38309 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) }]);
38310 return [3 /*break*/, 17];
38311 case 14:
38312 _j = [{}];
38313 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38314 case 15:
38315 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) }]);
38316 return [3 /*break*/, 17];
38317 case 16:
38318 parsedBody = parsedOutput.body;
38319 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38320 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) });
38321 _l.label = 17;
38322 case 17:
38323 message = response.message || response.Message || errorCode;
38324 response.message = message;
38325 delete response.Message;
38326 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38327 }
38328 });
38329}); };
38330var deserializeAws_restJson1DeleteRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38331 var contents, data;
38332 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38333 switch (_a.label) {
38334 case 0:
38335 if (output.statusCode !== 200 && output.statusCode >= 300) {
38336 return [2 /*return*/, deserializeAws_restJson1DeleteRecommenderConfigurationCommandError(output, context)];
38337 }
38338 contents = {
38339 $metadata: deserializeMetadata(output),
38340 RecommenderConfigurationResponse: undefined,
38341 };
38342 return [4 /*yield*/, parseBody(output.body, context)];
38343 case 1:
38344 data = _a.sent();
38345 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
38346 return [2 /*return*/, Promise.resolve(contents)];
38347 }
38348 });
38349}); };
38350var deserializeAws_restJson1DeleteRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38351 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38352 var _k;
38353 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38354 switch (_l.label) {
38355 case 0:
38356 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38357 _k = {};
38358 return [4 /*yield*/, parseBody(output.body, context)];
38359 case 1:
38360 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38361 errorCode = "UnknownError";
38362 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38363 _b = errorCode;
38364 switch (_b) {
38365 case "BadRequestException": return [3 /*break*/, 2];
38366 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38367 case "ForbiddenException": return [3 /*break*/, 4];
38368 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38369 case "InternalServerErrorException": return [3 /*break*/, 6];
38370 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38371 case "MethodNotAllowedException": return [3 /*break*/, 8];
38372 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38373 case "NotFoundException": return [3 /*break*/, 10];
38374 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38375 case "PayloadTooLargeException": return [3 /*break*/, 12];
38376 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38377 case "TooManyRequestsException": return [3 /*break*/, 14];
38378 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38379 }
38380 return [3 /*break*/, 16];
38381 case 2:
38382 _c = [{}];
38383 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38384 case 3:
38385 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) }]);
38386 return [3 /*break*/, 17];
38387 case 4:
38388 _d = [{}];
38389 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38390 case 5:
38391 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) }]);
38392 return [3 /*break*/, 17];
38393 case 6:
38394 _e = [{}];
38395 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38396 case 7:
38397 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) }]);
38398 return [3 /*break*/, 17];
38399 case 8:
38400 _f = [{}];
38401 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38402 case 9:
38403 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) }]);
38404 return [3 /*break*/, 17];
38405 case 10:
38406 _g = [{}];
38407 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38408 case 11:
38409 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) }]);
38410 return [3 /*break*/, 17];
38411 case 12:
38412 _h = [{}];
38413 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38414 case 13:
38415 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) }]);
38416 return [3 /*break*/, 17];
38417 case 14:
38418 _j = [{}];
38419 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38420 case 15:
38421 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) }]);
38422 return [3 /*break*/, 17];
38423 case 16:
38424 parsedBody = parsedOutput.body;
38425 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38426 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) });
38427 _l.label = 17;
38428 case 17:
38429 message = response.message || response.Message || errorCode;
38430 response.message = message;
38431 delete response.Message;
38432 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38433 }
38434 });
38435}); };
38436var deserializeAws_restJson1DeleteSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38437 var contents, data;
38438 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38439 switch (_a.label) {
38440 case 0:
38441 if (output.statusCode !== 200 && output.statusCode >= 300) {
38442 return [2 /*return*/, deserializeAws_restJson1DeleteSegmentCommandError(output, context)];
38443 }
38444 contents = {
38445 $metadata: deserializeMetadata(output),
38446 SegmentResponse: undefined,
38447 };
38448 return [4 /*yield*/, parseBody(output.body, context)];
38449 case 1:
38450 data = _a.sent();
38451 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
38452 return [2 /*return*/, Promise.resolve(contents)];
38453 }
38454 });
38455}); };
38456var deserializeAws_restJson1DeleteSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38457 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38458 var _k;
38459 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38460 switch (_l.label) {
38461 case 0:
38462 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38463 _k = {};
38464 return [4 /*yield*/, parseBody(output.body, context)];
38465 case 1:
38466 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38467 errorCode = "UnknownError";
38468 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38469 _b = errorCode;
38470 switch (_b) {
38471 case "BadRequestException": return [3 /*break*/, 2];
38472 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38473 case "ForbiddenException": return [3 /*break*/, 4];
38474 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38475 case "InternalServerErrorException": return [3 /*break*/, 6];
38476 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38477 case "MethodNotAllowedException": return [3 /*break*/, 8];
38478 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38479 case "NotFoundException": return [3 /*break*/, 10];
38480 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38481 case "PayloadTooLargeException": return [3 /*break*/, 12];
38482 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38483 case "TooManyRequestsException": return [3 /*break*/, 14];
38484 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38485 }
38486 return [3 /*break*/, 16];
38487 case 2:
38488 _c = [{}];
38489 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38490 case 3:
38491 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) }]);
38492 return [3 /*break*/, 17];
38493 case 4:
38494 _d = [{}];
38495 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38496 case 5:
38497 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) }]);
38498 return [3 /*break*/, 17];
38499 case 6:
38500 _e = [{}];
38501 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38502 case 7:
38503 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) }]);
38504 return [3 /*break*/, 17];
38505 case 8:
38506 _f = [{}];
38507 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38508 case 9:
38509 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) }]);
38510 return [3 /*break*/, 17];
38511 case 10:
38512 _g = [{}];
38513 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38514 case 11:
38515 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) }]);
38516 return [3 /*break*/, 17];
38517 case 12:
38518 _h = [{}];
38519 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38520 case 13:
38521 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) }]);
38522 return [3 /*break*/, 17];
38523 case 14:
38524 _j = [{}];
38525 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38526 case 15:
38527 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) }]);
38528 return [3 /*break*/, 17];
38529 case 16:
38530 parsedBody = parsedOutput.body;
38531 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38532 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) });
38533 _l.label = 17;
38534 case 17:
38535 message = response.message || response.Message || errorCode;
38536 response.message = message;
38537 delete response.Message;
38538 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38539 }
38540 });
38541}); };
38542var deserializeAws_restJson1DeleteSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38543 var contents, data;
38544 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38545 switch (_a.label) {
38546 case 0:
38547 if (output.statusCode !== 200 && output.statusCode >= 300) {
38548 return [2 /*return*/, deserializeAws_restJson1DeleteSmsChannelCommandError(output, context)];
38549 }
38550 contents = {
38551 $metadata: deserializeMetadata(output),
38552 SMSChannelResponse: undefined,
38553 };
38554 return [4 /*yield*/, parseBody(output.body, context)];
38555 case 1:
38556 data = _a.sent();
38557 contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context);
38558 return [2 /*return*/, Promise.resolve(contents)];
38559 }
38560 });
38561}); };
38562var deserializeAws_restJson1DeleteSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38563 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38564 var _k;
38565 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38566 switch (_l.label) {
38567 case 0:
38568 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38569 _k = {};
38570 return [4 /*yield*/, parseBody(output.body, context)];
38571 case 1:
38572 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38573 errorCode = "UnknownError";
38574 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38575 _b = errorCode;
38576 switch (_b) {
38577 case "BadRequestException": return [3 /*break*/, 2];
38578 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38579 case "ForbiddenException": return [3 /*break*/, 4];
38580 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38581 case "InternalServerErrorException": return [3 /*break*/, 6];
38582 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38583 case "MethodNotAllowedException": return [3 /*break*/, 8];
38584 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38585 case "NotFoundException": return [3 /*break*/, 10];
38586 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38587 case "PayloadTooLargeException": return [3 /*break*/, 12];
38588 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38589 case "TooManyRequestsException": return [3 /*break*/, 14];
38590 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38591 }
38592 return [3 /*break*/, 16];
38593 case 2:
38594 _c = [{}];
38595 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38596 case 3:
38597 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) }]);
38598 return [3 /*break*/, 17];
38599 case 4:
38600 _d = [{}];
38601 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38602 case 5:
38603 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) }]);
38604 return [3 /*break*/, 17];
38605 case 6:
38606 _e = [{}];
38607 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38608 case 7:
38609 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) }]);
38610 return [3 /*break*/, 17];
38611 case 8:
38612 _f = [{}];
38613 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38614 case 9:
38615 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) }]);
38616 return [3 /*break*/, 17];
38617 case 10:
38618 _g = [{}];
38619 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38620 case 11:
38621 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) }]);
38622 return [3 /*break*/, 17];
38623 case 12:
38624 _h = [{}];
38625 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38626 case 13:
38627 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) }]);
38628 return [3 /*break*/, 17];
38629 case 14:
38630 _j = [{}];
38631 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38632 case 15:
38633 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) }]);
38634 return [3 /*break*/, 17];
38635 case 16:
38636 parsedBody = parsedOutput.body;
38637 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38638 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) });
38639 _l.label = 17;
38640 case 17:
38641 message = response.message || response.Message || errorCode;
38642 response.message = message;
38643 delete response.Message;
38644 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38645 }
38646 });
38647}); };
38648var deserializeAws_restJson1DeleteSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38649 var contents, data;
38650 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38651 switch (_a.label) {
38652 case 0:
38653 if (output.statusCode !== 202 && output.statusCode >= 300) {
38654 return [2 /*return*/, deserializeAws_restJson1DeleteSmsTemplateCommandError(output, context)];
38655 }
38656 contents = {
38657 $metadata: deserializeMetadata(output),
38658 MessageBody: undefined,
38659 };
38660 return [4 /*yield*/, parseBody(output.body, context)];
38661 case 1:
38662 data = _a.sent();
38663 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
38664 return [2 /*return*/, Promise.resolve(contents)];
38665 }
38666 });
38667}); };
38668var deserializeAws_restJson1DeleteSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38669 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38670 var _k;
38671 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38672 switch (_l.label) {
38673 case 0:
38674 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38675 _k = {};
38676 return [4 /*yield*/, parseBody(output.body, context)];
38677 case 1:
38678 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38679 errorCode = "UnknownError";
38680 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38681 _b = errorCode;
38682 switch (_b) {
38683 case "BadRequestException": return [3 /*break*/, 2];
38684 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38685 case "ForbiddenException": return [3 /*break*/, 4];
38686 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38687 case "InternalServerErrorException": return [3 /*break*/, 6];
38688 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38689 case "MethodNotAllowedException": return [3 /*break*/, 8];
38690 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38691 case "NotFoundException": return [3 /*break*/, 10];
38692 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38693 case "PayloadTooLargeException": return [3 /*break*/, 12];
38694 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38695 case "TooManyRequestsException": return [3 /*break*/, 14];
38696 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38697 }
38698 return [3 /*break*/, 16];
38699 case 2:
38700 _c = [{}];
38701 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38702 case 3:
38703 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) }]);
38704 return [3 /*break*/, 17];
38705 case 4:
38706 _d = [{}];
38707 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38708 case 5:
38709 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) }]);
38710 return [3 /*break*/, 17];
38711 case 6:
38712 _e = [{}];
38713 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38714 case 7:
38715 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) }]);
38716 return [3 /*break*/, 17];
38717 case 8:
38718 _f = [{}];
38719 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38720 case 9:
38721 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) }]);
38722 return [3 /*break*/, 17];
38723 case 10:
38724 _g = [{}];
38725 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38726 case 11:
38727 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) }]);
38728 return [3 /*break*/, 17];
38729 case 12:
38730 _h = [{}];
38731 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38732 case 13:
38733 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) }]);
38734 return [3 /*break*/, 17];
38735 case 14:
38736 _j = [{}];
38737 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38738 case 15:
38739 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) }]);
38740 return [3 /*break*/, 17];
38741 case 16:
38742 parsedBody = parsedOutput.body;
38743 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38744 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) });
38745 _l.label = 17;
38746 case 17:
38747 message = response.message || response.Message || errorCode;
38748 response.message = message;
38749 delete response.Message;
38750 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38751 }
38752 });
38753}); };
38754var deserializeAws_restJson1DeleteUserEndpointsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38755 var contents, data;
38756 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38757 switch (_a.label) {
38758 case 0:
38759 if (output.statusCode !== 202 && output.statusCode >= 300) {
38760 return [2 /*return*/, deserializeAws_restJson1DeleteUserEndpointsCommandError(output, context)];
38761 }
38762 contents = {
38763 $metadata: deserializeMetadata(output),
38764 EndpointsResponse: undefined,
38765 };
38766 return [4 /*yield*/, parseBody(output.body, context)];
38767 case 1:
38768 data = _a.sent();
38769 contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context);
38770 return [2 /*return*/, Promise.resolve(contents)];
38771 }
38772 });
38773}); };
38774var deserializeAws_restJson1DeleteUserEndpointsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38775 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38776 var _k;
38777 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38778 switch (_l.label) {
38779 case 0:
38780 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38781 _k = {};
38782 return [4 /*yield*/, parseBody(output.body, context)];
38783 case 1:
38784 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38785 errorCode = "UnknownError";
38786 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38787 _b = errorCode;
38788 switch (_b) {
38789 case "BadRequestException": return [3 /*break*/, 2];
38790 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38791 case "ForbiddenException": return [3 /*break*/, 4];
38792 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38793 case "InternalServerErrorException": return [3 /*break*/, 6];
38794 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38795 case "MethodNotAllowedException": return [3 /*break*/, 8];
38796 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38797 case "NotFoundException": return [3 /*break*/, 10];
38798 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38799 case "PayloadTooLargeException": return [3 /*break*/, 12];
38800 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38801 case "TooManyRequestsException": return [3 /*break*/, 14];
38802 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38803 }
38804 return [3 /*break*/, 16];
38805 case 2:
38806 _c = [{}];
38807 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38808 case 3:
38809 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) }]);
38810 return [3 /*break*/, 17];
38811 case 4:
38812 _d = [{}];
38813 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38814 case 5:
38815 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) }]);
38816 return [3 /*break*/, 17];
38817 case 6:
38818 _e = [{}];
38819 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38820 case 7:
38821 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) }]);
38822 return [3 /*break*/, 17];
38823 case 8:
38824 _f = [{}];
38825 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38826 case 9:
38827 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) }]);
38828 return [3 /*break*/, 17];
38829 case 10:
38830 _g = [{}];
38831 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38832 case 11:
38833 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) }]);
38834 return [3 /*break*/, 17];
38835 case 12:
38836 _h = [{}];
38837 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38838 case 13:
38839 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) }]);
38840 return [3 /*break*/, 17];
38841 case 14:
38842 _j = [{}];
38843 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38844 case 15:
38845 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) }]);
38846 return [3 /*break*/, 17];
38847 case 16:
38848 parsedBody = parsedOutput.body;
38849 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38850 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) });
38851 _l.label = 17;
38852 case 17:
38853 message = response.message || response.Message || errorCode;
38854 response.message = message;
38855 delete response.Message;
38856 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38857 }
38858 });
38859}); };
38860var deserializeAws_restJson1DeleteVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38861 var contents, data;
38862 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38863 switch (_a.label) {
38864 case 0:
38865 if (output.statusCode !== 200 && output.statusCode >= 300) {
38866 return [2 /*return*/, deserializeAws_restJson1DeleteVoiceChannelCommandError(output, context)];
38867 }
38868 contents = {
38869 $metadata: deserializeMetadata(output),
38870 VoiceChannelResponse: undefined,
38871 };
38872 return [4 /*yield*/, parseBody(output.body, context)];
38873 case 1:
38874 data = _a.sent();
38875 contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context);
38876 return [2 /*return*/, Promise.resolve(contents)];
38877 }
38878 });
38879}); };
38880var deserializeAws_restJson1DeleteVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38881 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38882 var _k;
38883 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38884 switch (_l.label) {
38885 case 0:
38886 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38887 _k = {};
38888 return [4 /*yield*/, parseBody(output.body, context)];
38889 case 1:
38890 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38891 errorCode = "UnknownError";
38892 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38893 _b = errorCode;
38894 switch (_b) {
38895 case "BadRequestException": return [3 /*break*/, 2];
38896 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38897 case "ForbiddenException": return [3 /*break*/, 4];
38898 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38899 case "InternalServerErrorException": return [3 /*break*/, 6];
38900 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38901 case "MethodNotAllowedException": return [3 /*break*/, 8];
38902 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38903 case "NotFoundException": return [3 /*break*/, 10];
38904 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38905 case "PayloadTooLargeException": return [3 /*break*/, 12];
38906 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38907 case "TooManyRequestsException": return [3 /*break*/, 14];
38908 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38909 }
38910 return [3 /*break*/, 16];
38911 case 2:
38912 _c = [{}];
38913 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38914 case 3:
38915 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) }]);
38916 return [3 /*break*/, 17];
38917 case 4:
38918 _d = [{}];
38919 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38920 case 5:
38921 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) }]);
38922 return [3 /*break*/, 17];
38923 case 6:
38924 _e = [{}];
38925 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38926 case 7:
38927 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) }]);
38928 return [3 /*break*/, 17];
38929 case 8:
38930 _f = [{}];
38931 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38932 case 9:
38933 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) }]);
38934 return [3 /*break*/, 17];
38935 case 10:
38936 _g = [{}];
38937 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38938 case 11:
38939 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) }]);
38940 return [3 /*break*/, 17];
38941 case 12:
38942 _h = [{}];
38943 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38944 case 13:
38945 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) }]);
38946 return [3 /*break*/, 17];
38947 case 14:
38948 _j = [{}];
38949 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38950 case 15:
38951 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) }]);
38952 return [3 /*break*/, 17];
38953 case 16:
38954 parsedBody = parsedOutput.body;
38955 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38956 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) });
38957 _l.label = 17;
38958 case 17:
38959 message = response.message || response.Message || errorCode;
38960 response.message = message;
38961 delete response.Message;
38962 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38963 }
38964 });
38965}); };
38966var deserializeAws_restJson1DeleteVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38967 var contents, data;
38968 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38969 switch (_a.label) {
38970 case 0:
38971 if (output.statusCode !== 202 && output.statusCode >= 300) {
38972 return [2 /*return*/, deserializeAws_restJson1DeleteVoiceTemplateCommandError(output, context)];
38973 }
38974 contents = {
38975 $metadata: deserializeMetadata(output),
38976 MessageBody: undefined,
38977 };
38978 return [4 /*yield*/, parseBody(output.body, context)];
38979 case 1:
38980 data = _a.sent();
38981 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
38982 return [2 /*return*/, Promise.resolve(contents)];
38983 }
38984 });
38985}); };
38986var deserializeAws_restJson1DeleteVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38987 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38988 var _k;
38989 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38990 switch (_l.label) {
38991 case 0:
38992 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38993 _k = {};
38994 return [4 /*yield*/, parseBody(output.body, context)];
38995 case 1:
38996 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38997 errorCode = "UnknownError";
38998 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38999 _b = errorCode;
39000 switch (_b) {
39001 case "BadRequestException": return [3 /*break*/, 2];
39002 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39003 case "ForbiddenException": return [3 /*break*/, 4];
39004 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39005 case "InternalServerErrorException": return [3 /*break*/, 6];
39006 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39007 case "MethodNotAllowedException": return [3 /*break*/, 8];
39008 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39009 case "NotFoundException": return [3 /*break*/, 10];
39010 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39011 case "PayloadTooLargeException": return [3 /*break*/, 12];
39012 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39013 case "TooManyRequestsException": return [3 /*break*/, 14];
39014 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39015 }
39016 return [3 /*break*/, 16];
39017 case 2:
39018 _c = [{}];
39019 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39020 case 3:
39021 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) }]);
39022 return [3 /*break*/, 17];
39023 case 4:
39024 _d = [{}];
39025 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39026 case 5:
39027 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) }]);
39028 return [3 /*break*/, 17];
39029 case 6:
39030 _e = [{}];
39031 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39032 case 7:
39033 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) }]);
39034 return [3 /*break*/, 17];
39035 case 8:
39036 _f = [{}];
39037 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39038 case 9:
39039 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) }]);
39040 return [3 /*break*/, 17];
39041 case 10:
39042 _g = [{}];
39043 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39044 case 11:
39045 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) }]);
39046 return [3 /*break*/, 17];
39047 case 12:
39048 _h = [{}];
39049 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39050 case 13:
39051 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) }]);
39052 return [3 /*break*/, 17];
39053 case 14:
39054 _j = [{}];
39055 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39056 case 15:
39057 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) }]);
39058 return [3 /*break*/, 17];
39059 case 16:
39060 parsedBody = parsedOutput.body;
39061 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39062 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) });
39063 _l.label = 17;
39064 case 17:
39065 message = response.message || response.Message || errorCode;
39066 response.message = message;
39067 delete response.Message;
39068 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39069 }
39070 });
39071}); };
39072var deserializeAws_restJson1GetAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39073 var contents, data;
39074 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39075 switch (_a.label) {
39076 case 0:
39077 if (output.statusCode !== 200 && output.statusCode >= 300) {
39078 return [2 /*return*/, deserializeAws_restJson1GetAdmChannelCommandError(output, context)];
39079 }
39080 contents = {
39081 $metadata: deserializeMetadata(output),
39082 ADMChannelResponse: undefined,
39083 };
39084 return [4 /*yield*/, parseBody(output.body, context)];
39085 case 1:
39086 data = _a.sent();
39087 contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context);
39088 return [2 /*return*/, Promise.resolve(contents)];
39089 }
39090 });
39091}); };
39092var deserializeAws_restJson1GetAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39093 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39094 var _k;
39095 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39096 switch (_l.label) {
39097 case 0:
39098 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39099 _k = {};
39100 return [4 /*yield*/, parseBody(output.body, context)];
39101 case 1:
39102 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39103 errorCode = "UnknownError";
39104 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39105 _b = errorCode;
39106 switch (_b) {
39107 case "BadRequestException": return [3 /*break*/, 2];
39108 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39109 case "ForbiddenException": return [3 /*break*/, 4];
39110 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39111 case "InternalServerErrorException": return [3 /*break*/, 6];
39112 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39113 case "MethodNotAllowedException": return [3 /*break*/, 8];
39114 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39115 case "NotFoundException": return [3 /*break*/, 10];
39116 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39117 case "PayloadTooLargeException": return [3 /*break*/, 12];
39118 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39119 case "TooManyRequestsException": return [3 /*break*/, 14];
39120 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39121 }
39122 return [3 /*break*/, 16];
39123 case 2:
39124 _c = [{}];
39125 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39126 case 3:
39127 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) }]);
39128 return [3 /*break*/, 17];
39129 case 4:
39130 _d = [{}];
39131 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39132 case 5:
39133 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) }]);
39134 return [3 /*break*/, 17];
39135 case 6:
39136 _e = [{}];
39137 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39138 case 7:
39139 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) }]);
39140 return [3 /*break*/, 17];
39141 case 8:
39142 _f = [{}];
39143 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39144 case 9:
39145 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) }]);
39146 return [3 /*break*/, 17];
39147 case 10:
39148 _g = [{}];
39149 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39150 case 11:
39151 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) }]);
39152 return [3 /*break*/, 17];
39153 case 12:
39154 _h = [{}];
39155 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39156 case 13:
39157 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) }]);
39158 return [3 /*break*/, 17];
39159 case 14:
39160 _j = [{}];
39161 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39162 case 15:
39163 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) }]);
39164 return [3 /*break*/, 17];
39165 case 16:
39166 parsedBody = parsedOutput.body;
39167 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39168 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) });
39169 _l.label = 17;
39170 case 17:
39171 message = response.message || response.Message || errorCode;
39172 response.message = message;
39173 delete response.Message;
39174 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39175 }
39176 });
39177}); };
39178var deserializeAws_restJson1GetApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39179 var contents, data;
39180 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39181 switch (_a.label) {
39182 case 0:
39183 if (output.statusCode !== 200 && output.statusCode >= 300) {
39184 return [2 /*return*/, deserializeAws_restJson1GetApnsChannelCommandError(output, context)];
39185 }
39186 contents = {
39187 $metadata: deserializeMetadata(output),
39188 APNSChannelResponse: undefined,
39189 };
39190 return [4 /*yield*/, parseBody(output.body, context)];
39191 case 1:
39192 data = _a.sent();
39193 contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context);
39194 return [2 /*return*/, Promise.resolve(contents)];
39195 }
39196 });
39197}); };
39198var deserializeAws_restJson1GetApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39199 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39200 var _k;
39201 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39202 switch (_l.label) {
39203 case 0:
39204 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39205 _k = {};
39206 return [4 /*yield*/, parseBody(output.body, context)];
39207 case 1:
39208 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39209 errorCode = "UnknownError";
39210 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39211 _b = errorCode;
39212 switch (_b) {
39213 case "BadRequestException": return [3 /*break*/, 2];
39214 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39215 case "ForbiddenException": return [3 /*break*/, 4];
39216 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39217 case "InternalServerErrorException": return [3 /*break*/, 6];
39218 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39219 case "MethodNotAllowedException": return [3 /*break*/, 8];
39220 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39221 case "NotFoundException": return [3 /*break*/, 10];
39222 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39223 case "PayloadTooLargeException": return [3 /*break*/, 12];
39224 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39225 case "TooManyRequestsException": return [3 /*break*/, 14];
39226 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39227 }
39228 return [3 /*break*/, 16];
39229 case 2:
39230 _c = [{}];
39231 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39232 case 3:
39233 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) }]);
39234 return [3 /*break*/, 17];
39235 case 4:
39236 _d = [{}];
39237 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39238 case 5:
39239 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) }]);
39240 return [3 /*break*/, 17];
39241 case 6:
39242 _e = [{}];
39243 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39244 case 7:
39245 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) }]);
39246 return [3 /*break*/, 17];
39247 case 8:
39248 _f = [{}];
39249 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39250 case 9:
39251 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) }]);
39252 return [3 /*break*/, 17];
39253 case 10:
39254 _g = [{}];
39255 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39256 case 11:
39257 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) }]);
39258 return [3 /*break*/, 17];
39259 case 12:
39260 _h = [{}];
39261 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39262 case 13:
39263 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) }]);
39264 return [3 /*break*/, 17];
39265 case 14:
39266 _j = [{}];
39267 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39268 case 15:
39269 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) }]);
39270 return [3 /*break*/, 17];
39271 case 16:
39272 parsedBody = parsedOutput.body;
39273 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39274 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) });
39275 _l.label = 17;
39276 case 17:
39277 message = response.message || response.Message || errorCode;
39278 response.message = message;
39279 delete response.Message;
39280 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39281 }
39282 });
39283}); };
39284var deserializeAws_restJson1GetApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39285 var contents, data;
39286 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39287 switch (_a.label) {
39288 case 0:
39289 if (output.statusCode !== 200 && output.statusCode >= 300) {
39290 return [2 /*return*/, deserializeAws_restJson1GetApnsSandboxChannelCommandError(output, context)];
39291 }
39292 contents = {
39293 $metadata: deserializeMetadata(output),
39294 APNSSandboxChannelResponse: undefined,
39295 };
39296 return [4 /*yield*/, parseBody(output.body, context)];
39297 case 1:
39298 data = _a.sent();
39299 contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context);
39300 return [2 /*return*/, Promise.resolve(contents)];
39301 }
39302 });
39303}); };
39304var deserializeAws_restJson1GetApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39305 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39306 var _k;
39307 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39308 switch (_l.label) {
39309 case 0:
39310 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39311 _k = {};
39312 return [4 /*yield*/, parseBody(output.body, context)];
39313 case 1:
39314 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39315 errorCode = "UnknownError";
39316 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39317 _b = errorCode;
39318 switch (_b) {
39319 case "BadRequestException": return [3 /*break*/, 2];
39320 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39321 case "ForbiddenException": return [3 /*break*/, 4];
39322 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39323 case "InternalServerErrorException": return [3 /*break*/, 6];
39324 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39325 case "MethodNotAllowedException": return [3 /*break*/, 8];
39326 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39327 case "NotFoundException": return [3 /*break*/, 10];
39328 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39329 case "PayloadTooLargeException": return [3 /*break*/, 12];
39330 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39331 case "TooManyRequestsException": return [3 /*break*/, 14];
39332 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39333 }
39334 return [3 /*break*/, 16];
39335 case 2:
39336 _c = [{}];
39337 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39338 case 3:
39339 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) }]);
39340 return [3 /*break*/, 17];
39341 case 4:
39342 _d = [{}];
39343 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39344 case 5:
39345 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) }]);
39346 return [3 /*break*/, 17];
39347 case 6:
39348 _e = [{}];
39349 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39350 case 7:
39351 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) }]);
39352 return [3 /*break*/, 17];
39353 case 8:
39354 _f = [{}];
39355 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39356 case 9:
39357 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) }]);
39358 return [3 /*break*/, 17];
39359 case 10:
39360 _g = [{}];
39361 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39362 case 11:
39363 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) }]);
39364 return [3 /*break*/, 17];
39365 case 12:
39366 _h = [{}];
39367 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39368 case 13:
39369 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) }]);
39370 return [3 /*break*/, 17];
39371 case 14:
39372 _j = [{}];
39373 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39374 case 15:
39375 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) }]);
39376 return [3 /*break*/, 17];
39377 case 16:
39378 parsedBody = parsedOutput.body;
39379 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39380 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) });
39381 _l.label = 17;
39382 case 17:
39383 message = response.message || response.Message || errorCode;
39384 response.message = message;
39385 delete response.Message;
39386 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39387 }
39388 });
39389}); };
39390var deserializeAws_restJson1GetApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39391 var contents, data;
39392 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39393 switch (_a.label) {
39394 case 0:
39395 if (output.statusCode !== 200 && output.statusCode >= 300) {
39396 return [2 /*return*/, deserializeAws_restJson1GetApnsVoipChannelCommandError(output, context)];
39397 }
39398 contents = {
39399 $metadata: deserializeMetadata(output),
39400 APNSVoipChannelResponse: undefined,
39401 };
39402 return [4 /*yield*/, parseBody(output.body, context)];
39403 case 1:
39404 data = _a.sent();
39405 contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context);
39406 return [2 /*return*/, Promise.resolve(contents)];
39407 }
39408 });
39409}); };
39410var deserializeAws_restJson1GetApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39411 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39412 var _k;
39413 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39414 switch (_l.label) {
39415 case 0:
39416 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39417 _k = {};
39418 return [4 /*yield*/, parseBody(output.body, context)];
39419 case 1:
39420 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39421 errorCode = "UnknownError";
39422 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39423 _b = errorCode;
39424 switch (_b) {
39425 case "BadRequestException": return [3 /*break*/, 2];
39426 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39427 case "ForbiddenException": return [3 /*break*/, 4];
39428 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39429 case "InternalServerErrorException": return [3 /*break*/, 6];
39430 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39431 case "MethodNotAllowedException": return [3 /*break*/, 8];
39432 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39433 case "NotFoundException": return [3 /*break*/, 10];
39434 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39435 case "PayloadTooLargeException": return [3 /*break*/, 12];
39436 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39437 case "TooManyRequestsException": return [3 /*break*/, 14];
39438 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39439 }
39440 return [3 /*break*/, 16];
39441 case 2:
39442 _c = [{}];
39443 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39444 case 3:
39445 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) }]);
39446 return [3 /*break*/, 17];
39447 case 4:
39448 _d = [{}];
39449 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39450 case 5:
39451 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) }]);
39452 return [3 /*break*/, 17];
39453 case 6:
39454 _e = [{}];
39455 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39456 case 7:
39457 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) }]);
39458 return [3 /*break*/, 17];
39459 case 8:
39460 _f = [{}];
39461 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39462 case 9:
39463 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) }]);
39464 return [3 /*break*/, 17];
39465 case 10:
39466 _g = [{}];
39467 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39468 case 11:
39469 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) }]);
39470 return [3 /*break*/, 17];
39471 case 12:
39472 _h = [{}];
39473 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39474 case 13:
39475 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) }]);
39476 return [3 /*break*/, 17];
39477 case 14:
39478 _j = [{}];
39479 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39480 case 15:
39481 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) }]);
39482 return [3 /*break*/, 17];
39483 case 16:
39484 parsedBody = parsedOutput.body;
39485 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39486 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) });
39487 _l.label = 17;
39488 case 17:
39489 message = response.message || response.Message || errorCode;
39490 response.message = message;
39491 delete response.Message;
39492 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39493 }
39494 });
39495}); };
39496var deserializeAws_restJson1GetApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39497 var contents, data;
39498 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39499 switch (_a.label) {
39500 case 0:
39501 if (output.statusCode !== 200 && output.statusCode >= 300) {
39502 return [2 /*return*/, deserializeAws_restJson1GetApnsVoipSandboxChannelCommandError(output, context)];
39503 }
39504 contents = {
39505 $metadata: deserializeMetadata(output),
39506 APNSVoipSandboxChannelResponse: undefined,
39507 };
39508 return [4 /*yield*/, parseBody(output.body, context)];
39509 case 1:
39510 data = _a.sent();
39511 contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context);
39512 return [2 /*return*/, Promise.resolve(contents)];
39513 }
39514 });
39515}); };
39516var deserializeAws_restJson1GetApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39517 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39518 var _k;
39519 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39520 switch (_l.label) {
39521 case 0:
39522 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39523 _k = {};
39524 return [4 /*yield*/, parseBody(output.body, context)];
39525 case 1:
39526 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39527 errorCode = "UnknownError";
39528 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39529 _b = errorCode;
39530 switch (_b) {
39531 case "BadRequestException": return [3 /*break*/, 2];
39532 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39533 case "ForbiddenException": return [3 /*break*/, 4];
39534 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39535 case "InternalServerErrorException": return [3 /*break*/, 6];
39536 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39537 case "MethodNotAllowedException": return [3 /*break*/, 8];
39538 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39539 case "NotFoundException": return [3 /*break*/, 10];
39540 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39541 case "PayloadTooLargeException": return [3 /*break*/, 12];
39542 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39543 case "TooManyRequestsException": return [3 /*break*/, 14];
39544 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39545 }
39546 return [3 /*break*/, 16];
39547 case 2:
39548 _c = [{}];
39549 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39550 case 3:
39551 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) }]);
39552 return [3 /*break*/, 17];
39553 case 4:
39554 _d = [{}];
39555 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39556 case 5:
39557 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) }]);
39558 return [3 /*break*/, 17];
39559 case 6:
39560 _e = [{}];
39561 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39562 case 7:
39563 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) }]);
39564 return [3 /*break*/, 17];
39565 case 8:
39566 _f = [{}];
39567 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39568 case 9:
39569 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) }]);
39570 return [3 /*break*/, 17];
39571 case 10:
39572 _g = [{}];
39573 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39574 case 11:
39575 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) }]);
39576 return [3 /*break*/, 17];
39577 case 12:
39578 _h = [{}];
39579 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39580 case 13:
39581 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) }]);
39582 return [3 /*break*/, 17];
39583 case 14:
39584 _j = [{}];
39585 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39586 case 15:
39587 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) }]);
39588 return [3 /*break*/, 17];
39589 case 16:
39590 parsedBody = parsedOutput.body;
39591 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39592 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) });
39593 _l.label = 17;
39594 case 17:
39595 message = response.message || response.Message || errorCode;
39596 response.message = message;
39597 delete response.Message;
39598 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39599 }
39600 });
39601}); };
39602var deserializeAws_restJson1GetAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39603 var contents, data;
39604 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39605 switch (_a.label) {
39606 case 0:
39607 if (output.statusCode !== 200 && output.statusCode >= 300) {
39608 return [2 /*return*/, deserializeAws_restJson1GetAppCommandError(output, context)];
39609 }
39610 contents = {
39611 $metadata: deserializeMetadata(output),
39612 ApplicationResponse: undefined,
39613 };
39614 return [4 /*yield*/, parseBody(output.body, context)];
39615 case 1:
39616 data = _a.sent();
39617 contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context);
39618 return [2 /*return*/, Promise.resolve(contents)];
39619 }
39620 });
39621}); };
39622var deserializeAws_restJson1GetAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39623 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39624 var _k;
39625 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39626 switch (_l.label) {
39627 case 0:
39628 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39629 _k = {};
39630 return [4 /*yield*/, parseBody(output.body, context)];
39631 case 1:
39632 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39633 errorCode = "UnknownError";
39634 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39635 _b = errorCode;
39636 switch (_b) {
39637 case "BadRequestException": return [3 /*break*/, 2];
39638 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39639 case "ForbiddenException": return [3 /*break*/, 4];
39640 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39641 case "InternalServerErrorException": return [3 /*break*/, 6];
39642 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39643 case "MethodNotAllowedException": return [3 /*break*/, 8];
39644 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39645 case "NotFoundException": return [3 /*break*/, 10];
39646 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39647 case "PayloadTooLargeException": return [3 /*break*/, 12];
39648 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39649 case "TooManyRequestsException": return [3 /*break*/, 14];
39650 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39651 }
39652 return [3 /*break*/, 16];
39653 case 2:
39654 _c = [{}];
39655 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39656 case 3:
39657 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) }]);
39658 return [3 /*break*/, 17];
39659 case 4:
39660 _d = [{}];
39661 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39662 case 5:
39663 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) }]);
39664 return [3 /*break*/, 17];
39665 case 6:
39666 _e = [{}];
39667 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39668 case 7:
39669 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) }]);
39670 return [3 /*break*/, 17];
39671 case 8:
39672 _f = [{}];
39673 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39674 case 9:
39675 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) }]);
39676 return [3 /*break*/, 17];
39677 case 10:
39678 _g = [{}];
39679 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39680 case 11:
39681 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) }]);
39682 return [3 /*break*/, 17];
39683 case 12:
39684 _h = [{}];
39685 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39686 case 13:
39687 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) }]);
39688 return [3 /*break*/, 17];
39689 case 14:
39690 _j = [{}];
39691 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39692 case 15:
39693 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) }]);
39694 return [3 /*break*/, 17];
39695 case 16:
39696 parsedBody = parsedOutput.body;
39697 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39698 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) });
39699 _l.label = 17;
39700 case 17:
39701 message = response.message || response.Message || errorCode;
39702 response.message = message;
39703 delete response.Message;
39704 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39705 }
39706 });
39707}); };
39708var deserializeAws_restJson1GetApplicationDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39709 var contents, data;
39710 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39711 switch (_a.label) {
39712 case 0:
39713 if (output.statusCode !== 200 && output.statusCode >= 300) {
39714 return [2 /*return*/, deserializeAws_restJson1GetApplicationDateRangeKpiCommandError(output, context)];
39715 }
39716 contents = {
39717 $metadata: deserializeMetadata(output),
39718 ApplicationDateRangeKpiResponse: undefined,
39719 };
39720 return [4 /*yield*/, parseBody(output.body, context)];
39721 case 1:
39722 data = _a.sent();
39723 contents.ApplicationDateRangeKpiResponse = deserializeAws_restJson1ApplicationDateRangeKpiResponse(data, context);
39724 return [2 /*return*/, Promise.resolve(contents)];
39725 }
39726 });
39727}); };
39728var deserializeAws_restJson1GetApplicationDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39729 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39730 var _k;
39731 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39732 switch (_l.label) {
39733 case 0:
39734 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39735 _k = {};
39736 return [4 /*yield*/, parseBody(output.body, context)];
39737 case 1:
39738 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39739 errorCode = "UnknownError";
39740 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39741 _b = errorCode;
39742 switch (_b) {
39743 case "BadRequestException": return [3 /*break*/, 2];
39744 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39745 case "ForbiddenException": return [3 /*break*/, 4];
39746 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39747 case "InternalServerErrorException": return [3 /*break*/, 6];
39748 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39749 case "MethodNotAllowedException": return [3 /*break*/, 8];
39750 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39751 case "NotFoundException": return [3 /*break*/, 10];
39752 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39753 case "PayloadTooLargeException": return [3 /*break*/, 12];
39754 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39755 case "TooManyRequestsException": return [3 /*break*/, 14];
39756 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39757 }
39758 return [3 /*break*/, 16];
39759 case 2:
39760 _c = [{}];
39761 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39762 case 3:
39763 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) }]);
39764 return [3 /*break*/, 17];
39765 case 4:
39766 _d = [{}];
39767 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39768 case 5:
39769 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) }]);
39770 return [3 /*break*/, 17];
39771 case 6:
39772 _e = [{}];
39773 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39774 case 7:
39775 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) }]);
39776 return [3 /*break*/, 17];
39777 case 8:
39778 _f = [{}];
39779 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39780 case 9:
39781 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) }]);
39782 return [3 /*break*/, 17];
39783 case 10:
39784 _g = [{}];
39785 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39786 case 11:
39787 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) }]);
39788 return [3 /*break*/, 17];
39789 case 12:
39790 _h = [{}];
39791 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39792 case 13:
39793 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) }]);
39794 return [3 /*break*/, 17];
39795 case 14:
39796 _j = [{}];
39797 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39798 case 15:
39799 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) }]);
39800 return [3 /*break*/, 17];
39801 case 16:
39802 parsedBody = parsedOutput.body;
39803 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39804 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) });
39805 _l.label = 17;
39806 case 17:
39807 message = response.message || response.Message || errorCode;
39808 response.message = message;
39809 delete response.Message;
39810 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39811 }
39812 });
39813}); };
39814var deserializeAws_restJson1GetApplicationSettingsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39815 var contents, data;
39816 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39817 switch (_a.label) {
39818 case 0:
39819 if (output.statusCode !== 200 && output.statusCode >= 300) {
39820 return [2 /*return*/, deserializeAws_restJson1GetApplicationSettingsCommandError(output, context)];
39821 }
39822 contents = {
39823 $metadata: deserializeMetadata(output),
39824 ApplicationSettingsResource: undefined,
39825 };
39826 return [4 /*yield*/, parseBody(output.body, context)];
39827 case 1:
39828 data = _a.sent();
39829 contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context);
39830 return [2 /*return*/, Promise.resolve(contents)];
39831 }
39832 });
39833}); };
39834var deserializeAws_restJson1GetApplicationSettingsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39835 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39836 var _k;
39837 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39838 switch (_l.label) {
39839 case 0:
39840 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39841 _k = {};
39842 return [4 /*yield*/, parseBody(output.body, context)];
39843 case 1:
39844 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39845 errorCode = "UnknownError";
39846 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39847 _b = errorCode;
39848 switch (_b) {
39849 case "BadRequestException": return [3 /*break*/, 2];
39850 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39851 case "ForbiddenException": return [3 /*break*/, 4];
39852 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39853 case "InternalServerErrorException": return [3 /*break*/, 6];
39854 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39855 case "MethodNotAllowedException": return [3 /*break*/, 8];
39856 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39857 case "NotFoundException": return [3 /*break*/, 10];
39858 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39859 case "PayloadTooLargeException": return [3 /*break*/, 12];
39860 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39861 case "TooManyRequestsException": return [3 /*break*/, 14];
39862 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39863 }
39864 return [3 /*break*/, 16];
39865 case 2:
39866 _c = [{}];
39867 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39868 case 3:
39869 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) }]);
39870 return [3 /*break*/, 17];
39871 case 4:
39872 _d = [{}];
39873 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39874 case 5:
39875 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) }]);
39876 return [3 /*break*/, 17];
39877 case 6:
39878 _e = [{}];
39879 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39880 case 7:
39881 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) }]);
39882 return [3 /*break*/, 17];
39883 case 8:
39884 _f = [{}];
39885 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39886 case 9:
39887 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) }]);
39888 return [3 /*break*/, 17];
39889 case 10:
39890 _g = [{}];
39891 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39892 case 11:
39893 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) }]);
39894 return [3 /*break*/, 17];
39895 case 12:
39896 _h = [{}];
39897 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39898 case 13:
39899 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) }]);
39900 return [3 /*break*/, 17];
39901 case 14:
39902 _j = [{}];
39903 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39904 case 15:
39905 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) }]);
39906 return [3 /*break*/, 17];
39907 case 16:
39908 parsedBody = parsedOutput.body;
39909 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39910 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) });
39911 _l.label = 17;
39912 case 17:
39913 message = response.message || response.Message || errorCode;
39914 response.message = message;
39915 delete response.Message;
39916 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39917 }
39918 });
39919}); };
39920var deserializeAws_restJson1GetAppsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39921 var contents, data;
39922 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39923 switch (_a.label) {
39924 case 0:
39925 if (output.statusCode !== 200 && output.statusCode >= 300) {
39926 return [2 /*return*/, deserializeAws_restJson1GetAppsCommandError(output, context)];
39927 }
39928 contents = {
39929 $metadata: deserializeMetadata(output),
39930 ApplicationsResponse: undefined,
39931 };
39932 return [4 /*yield*/, parseBody(output.body, context)];
39933 case 1:
39934 data = _a.sent();
39935 contents.ApplicationsResponse = deserializeAws_restJson1ApplicationsResponse(data, context);
39936 return [2 /*return*/, Promise.resolve(contents)];
39937 }
39938 });
39939}); };
39940var deserializeAws_restJson1GetAppsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39941 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39942 var _k;
39943 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39944 switch (_l.label) {
39945 case 0:
39946 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39947 _k = {};
39948 return [4 /*yield*/, parseBody(output.body, context)];
39949 case 1:
39950 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39951 errorCode = "UnknownError";
39952 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39953 _b = errorCode;
39954 switch (_b) {
39955 case "BadRequestException": return [3 /*break*/, 2];
39956 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39957 case "ForbiddenException": return [3 /*break*/, 4];
39958 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39959 case "InternalServerErrorException": return [3 /*break*/, 6];
39960 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39961 case "MethodNotAllowedException": return [3 /*break*/, 8];
39962 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39963 case "NotFoundException": return [3 /*break*/, 10];
39964 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39965 case "PayloadTooLargeException": return [3 /*break*/, 12];
39966 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39967 case "TooManyRequestsException": return [3 /*break*/, 14];
39968 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39969 }
39970 return [3 /*break*/, 16];
39971 case 2:
39972 _c = [{}];
39973 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39974 case 3:
39975 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) }]);
39976 return [3 /*break*/, 17];
39977 case 4:
39978 _d = [{}];
39979 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39980 case 5:
39981 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) }]);
39982 return [3 /*break*/, 17];
39983 case 6:
39984 _e = [{}];
39985 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39986 case 7:
39987 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) }]);
39988 return [3 /*break*/, 17];
39989 case 8:
39990 _f = [{}];
39991 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39992 case 9:
39993 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) }]);
39994 return [3 /*break*/, 17];
39995 case 10:
39996 _g = [{}];
39997 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39998 case 11:
39999 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) }]);
40000 return [3 /*break*/, 17];
40001 case 12:
40002 _h = [{}];
40003 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40004 case 13:
40005 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) }]);
40006 return [3 /*break*/, 17];
40007 case 14:
40008 _j = [{}];
40009 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40010 case 15:
40011 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) }]);
40012 return [3 /*break*/, 17];
40013 case 16:
40014 parsedBody = parsedOutput.body;
40015 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40016 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) });
40017 _l.label = 17;
40018 case 17:
40019 message = response.message || response.Message || errorCode;
40020 response.message = message;
40021 delete response.Message;
40022 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40023 }
40024 });
40025}); };
40026var deserializeAws_restJson1GetBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40027 var contents, data;
40028 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40029 switch (_a.label) {
40030 case 0:
40031 if (output.statusCode !== 200 && output.statusCode >= 300) {
40032 return [2 /*return*/, deserializeAws_restJson1GetBaiduChannelCommandError(output, context)];
40033 }
40034 contents = {
40035 $metadata: deserializeMetadata(output),
40036 BaiduChannelResponse: undefined,
40037 };
40038 return [4 /*yield*/, parseBody(output.body, context)];
40039 case 1:
40040 data = _a.sent();
40041 contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context);
40042 return [2 /*return*/, Promise.resolve(contents)];
40043 }
40044 });
40045}); };
40046var deserializeAws_restJson1GetBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40047 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40048 var _k;
40049 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40050 switch (_l.label) {
40051 case 0:
40052 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40053 _k = {};
40054 return [4 /*yield*/, parseBody(output.body, context)];
40055 case 1:
40056 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40057 errorCode = "UnknownError";
40058 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40059 _b = errorCode;
40060 switch (_b) {
40061 case "BadRequestException": return [3 /*break*/, 2];
40062 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40063 case "ForbiddenException": return [3 /*break*/, 4];
40064 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40065 case "InternalServerErrorException": return [3 /*break*/, 6];
40066 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40067 case "MethodNotAllowedException": return [3 /*break*/, 8];
40068 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40069 case "NotFoundException": return [3 /*break*/, 10];
40070 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40071 case "PayloadTooLargeException": return [3 /*break*/, 12];
40072 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40073 case "TooManyRequestsException": return [3 /*break*/, 14];
40074 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40075 }
40076 return [3 /*break*/, 16];
40077 case 2:
40078 _c = [{}];
40079 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40080 case 3:
40081 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) }]);
40082 return [3 /*break*/, 17];
40083 case 4:
40084 _d = [{}];
40085 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40086 case 5:
40087 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) }]);
40088 return [3 /*break*/, 17];
40089 case 6:
40090 _e = [{}];
40091 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40092 case 7:
40093 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) }]);
40094 return [3 /*break*/, 17];
40095 case 8:
40096 _f = [{}];
40097 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40098 case 9:
40099 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) }]);
40100 return [3 /*break*/, 17];
40101 case 10:
40102 _g = [{}];
40103 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40104 case 11:
40105 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) }]);
40106 return [3 /*break*/, 17];
40107 case 12:
40108 _h = [{}];
40109 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40110 case 13:
40111 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) }]);
40112 return [3 /*break*/, 17];
40113 case 14:
40114 _j = [{}];
40115 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40116 case 15:
40117 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) }]);
40118 return [3 /*break*/, 17];
40119 case 16:
40120 parsedBody = parsedOutput.body;
40121 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40122 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) });
40123 _l.label = 17;
40124 case 17:
40125 message = response.message || response.Message || errorCode;
40126 response.message = message;
40127 delete response.Message;
40128 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40129 }
40130 });
40131}); };
40132var deserializeAws_restJson1GetCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40133 var contents, data;
40134 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40135 switch (_a.label) {
40136 case 0:
40137 if (output.statusCode !== 200 && output.statusCode >= 300) {
40138 return [2 /*return*/, deserializeAws_restJson1GetCampaignCommandError(output, context)];
40139 }
40140 contents = {
40141 $metadata: deserializeMetadata(output),
40142 CampaignResponse: undefined,
40143 };
40144 return [4 /*yield*/, parseBody(output.body, context)];
40145 case 1:
40146 data = _a.sent();
40147 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
40148 return [2 /*return*/, Promise.resolve(contents)];
40149 }
40150 });
40151}); };
40152var deserializeAws_restJson1GetCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40153 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40154 var _k;
40155 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40156 switch (_l.label) {
40157 case 0:
40158 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40159 _k = {};
40160 return [4 /*yield*/, parseBody(output.body, context)];
40161 case 1:
40162 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40163 errorCode = "UnknownError";
40164 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40165 _b = errorCode;
40166 switch (_b) {
40167 case "BadRequestException": return [3 /*break*/, 2];
40168 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40169 case "ForbiddenException": return [3 /*break*/, 4];
40170 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40171 case "InternalServerErrorException": return [3 /*break*/, 6];
40172 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40173 case "MethodNotAllowedException": return [3 /*break*/, 8];
40174 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40175 case "NotFoundException": return [3 /*break*/, 10];
40176 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40177 case "PayloadTooLargeException": return [3 /*break*/, 12];
40178 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40179 case "TooManyRequestsException": return [3 /*break*/, 14];
40180 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40181 }
40182 return [3 /*break*/, 16];
40183 case 2:
40184 _c = [{}];
40185 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40186 case 3:
40187 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) }]);
40188 return [3 /*break*/, 17];
40189 case 4:
40190 _d = [{}];
40191 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40192 case 5:
40193 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) }]);
40194 return [3 /*break*/, 17];
40195 case 6:
40196 _e = [{}];
40197 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40198 case 7:
40199 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) }]);
40200 return [3 /*break*/, 17];
40201 case 8:
40202 _f = [{}];
40203 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40204 case 9:
40205 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) }]);
40206 return [3 /*break*/, 17];
40207 case 10:
40208 _g = [{}];
40209 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40210 case 11:
40211 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) }]);
40212 return [3 /*break*/, 17];
40213 case 12:
40214 _h = [{}];
40215 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40216 case 13:
40217 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) }]);
40218 return [3 /*break*/, 17];
40219 case 14:
40220 _j = [{}];
40221 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40222 case 15:
40223 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) }]);
40224 return [3 /*break*/, 17];
40225 case 16:
40226 parsedBody = parsedOutput.body;
40227 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40228 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) });
40229 _l.label = 17;
40230 case 17:
40231 message = response.message || response.Message || errorCode;
40232 response.message = message;
40233 delete response.Message;
40234 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40235 }
40236 });
40237}); };
40238var deserializeAws_restJson1GetCampaignActivitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40239 var contents, data;
40240 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40241 switch (_a.label) {
40242 case 0:
40243 if (output.statusCode !== 200 && output.statusCode >= 300) {
40244 return [2 /*return*/, deserializeAws_restJson1GetCampaignActivitiesCommandError(output, context)];
40245 }
40246 contents = {
40247 $metadata: deserializeMetadata(output),
40248 ActivitiesResponse: undefined,
40249 };
40250 return [4 /*yield*/, parseBody(output.body, context)];
40251 case 1:
40252 data = _a.sent();
40253 contents.ActivitiesResponse = deserializeAws_restJson1ActivitiesResponse(data, context);
40254 return [2 /*return*/, Promise.resolve(contents)];
40255 }
40256 });
40257}); };
40258var deserializeAws_restJson1GetCampaignActivitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40259 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40260 var _k;
40261 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40262 switch (_l.label) {
40263 case 0:
40264 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40265 _k = {};
40266 return [4 /*yield*/, parseBody(output.body, context)];
40267 case 1:
40268 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40269 errorCode = "UnknownError";
40270 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40271 _b = errorCode;
40272 switch (_b) {
40273 case "BadRequestException": return [3 /*break*/, 2];
40274 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40275 case "ForbiddenException": return [3 /*break*/, 4];
40276 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40277 case "InternalServerErrorException": return [3 /*break*/, 6];
40278 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40279 case "MethodNotAllowedException": return [3 /*break*/, 8];
40280 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40281 case "NotFoundException": return [3 /*break*/, 10];
40282 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40283 case "PayloadTooLargeException": return [3 /*break*/, 12];
40284 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40285 case "TooManyRequestsException": return [3 /*break*/, 14];
40286 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40287 }
40288 return [3 /*break*/, 16];
40289 case 2:
40290 _c = [{}];
40291 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40292 case 3:
40293 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) }]);
40294 return [3 /*break*/, 17];
40295 case 4:
40296 _d = [{}];
40297 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40298 case 5:
40299 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) }]);
40300 return [3 /*break*/, 17];
40301 case 6:
40302 _e = [{}];
40303 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40304 case 7:
40305 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) }]);
40306 return [3 /*break*/, 17];
40307 case 8:
40308 _f = [{}];
40309 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40310 case 9:
40311 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) }]);
40312 return [3 /*break*/, 17];
40313 case 10:
40314 _g = [{}];
40315 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40316 case 11:
40317 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) }]);
40318 return [3 /*break*/, 17];
40319 case 12:
40320 _h = [{}];
40321 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40322 case 13:
40323 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) }]);
40324 return [3 /*break*/, 17];
40325 case 14:
40326 _j = [{}];
40327 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40328 case 15:
40329 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) }]);
40330 return [3 /*break*/, 17];
40331 case 16:
40332 parsedBody = parsedOutput.body;
40333 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40334 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) });
40335 _l.label = 17;
40336 case 17:
40337 message = response.message || response.Message || errorCode;
40338 response.message = message;
40339 delete response.Message;
40340 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40341 }
40342 });
40343}); };
40344var deserializeAws_restJson1GetCampaignDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40345 var contents, data;
40346 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40347 switch (_a.label) {
40348 case 0:
40349 if (output.statusCode !== 200 && output.statusCode >= 300) {
40350 return [2 /*return*/, deserializeAws_restJson1GetCampaignDateRangeKpiCommandError(output, context)];
40351 }
40352 contents = {
40353 $metadata: deserializeMetadata(output),
40354 CampaignDateRangeKpiResponse: undefined,
40355 };
40356 return [4 /*yield*/, parseBody(output.body, context)];
40357 case 1:
40358 data = _a.sent();
40359 contents.CampaignDateRangeKpiResponse = deserializeAws_restJson1CampaignDateRangeKpiResponse(data, context);
40360 return [2 /*return*/, Promise.resolve(contents)];
40361 }
40362 });
40363}); };
40364var deserializeAws_restJson1GetCampaignDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40365 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40366 var _k;
40367 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40368 switch (_l.label) {
40369 case 0:
40370 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40371 _k = {};
40372 return [4 /*yield*/, parseBody(output.body, context)];
40373 case 1:
40374 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40375 errorCode = "UnknownError";
40376 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40377 _b = errorCode;
40378 switch (_b) {
40379 case "BadRequestException": return [3 /*break*/, 2];
40380 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40381 case "ForbiddenException": return [3 /*break*/, 4];
40382 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40383 case "InternalServerErrorException": return [3 /*break*/, 6];
40384 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40385 case "MethodNotAllowedException": return [3 /*break*/, 8];
40386 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40387 case "NotFoundException": return [3 /*break*/, 10];
40388 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40389 case "PayloadTooLargeException": return [3 /*break*/, 12];
40390 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40391 case "TooManyRequestsException": return [3 /*break*/, 14];
40392 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40393 }
40394 return [3 /*break*/, 16];
40395 case 2:
40396 _c = [{}];
40397 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40398 case 3:
40399 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) }]);
40400 return [3 /*break*/, 17];
40401 case 4:
40402 _d = [{}];
40403 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40404 case 5:
40405 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) }]);
40406 return [3 /*break*/, 17];
40407 case 6:
40408 _e = [{}];
40409 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40410 case 7:
40411 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) }]);
40412 return [3 /*break*/, 17];
40413 case 8:
40414 _f = [{}];
40415 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40416 case 9:
40417 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) }]);
40418 return [3 /*break*/, 17];
40419 case 10:
40420 _g = [{}];
40421 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40422 case 11:
40423 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) }]);
40424 return [3 /*break*/, 17];
40425 case 12:
40426 _h = [{}];
40427 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40428 case 13:
40429 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) }]);
40430 return [3 /*break*/, 17];
40431 case 14:
40432 _j = [{}];
40433 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40434 case 15:
40435 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) }]);
40436 return [3 /*break*/, 17];
40437 case 16:
40438 parsedBody = parsedOutput.body;
40439 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40440 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) });
40441 _l.label = 17;
40442 case 17:
40443 message = response.message || response.Message || errorCode;
40444 response.message = message;
40445 delete response.Message;
40446 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40447 }
40448 });
40449}); };
40450var deserializeAws_restJson1GetCampaignsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40451 var contents, data;
40452 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40453 switch (_a.label) {
40454 case 0:
40455 if (output.statusCode !== 200 && output.statusCode >= 300) {
40456 return [2 /*return*/, deserializeAws_restJson1GetCampaignsCommandError(output, context)];
40457 }
40458 contents = {
40459 $metadata: deserializeMetadata(output),
40460 CampaignsResponse: undefined,
40461 };
40462 return [4 /*yield*/, parseBody(output.body, context)];
40463 case 1:
40464 data = _a.sent();
40465 contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context);
40466 return [2 /*return*/, Promise.resolve(contents)];
40467 }
40468 });
40469}); };
40470var deserializeAws_restJson1GetCampaignsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40471 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40472 var _k;
40473 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40474 switch (_l.label) {
40475 case 0:
40476 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40477 _k = {};
40478 return [4 /*yield*/, parseBody(output.body, context)];
40479 case 1:
40480 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40481 errorCode = "UnknownError";
40482 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40483 _b = errorCode;
40484 switch (_b) {
40485 case "BadRequestException": return [3 /*break*/, 2];
40486 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40487 case "ForbiddenException": return [3 /*break*/, 4];
40488 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40489 case "InternalServerErrorException": return [3 /*break*/, 6];
40490 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40491 case "MethodNotAllowedException": return [3 /*break*/, 8];
40492 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40493 case "NotFoundException": return [3 /*break*/, 10];
40494 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40495 case "PayloadTooLargeException": return [3 /*break*/, 12];
40496 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40497 case "TooManyRequestsException": return [3 /*break*/, 14];
40498 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40499 }
40500 return [3 /*break*/, 16];
40501 case 2:
40502 _c = [{}];
40503 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40504 case 3:
40505 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) }]);
40506 return [3 /*break*/, 17];
40507 case 4:
40508 _d = [{}];
40509 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40510 case 5:
40511 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) }]);
40512 return [3 /*break*/, 17];
40513 case 6:
40514 _e = [{}];
40515 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40516 case 7:
40517 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) }]);
40518 return [3 /*break*/, 17];
40519 case 8:
40520 _f = [{}];
40521 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40522 case 9:
40523 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) }]);
40524 return [3 /*break*/, 17];
40525 case 10:
40526 _g = [{}];
40527 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40528 case 11:
40529 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) }]);
40530 return [3 /*break*/, 17];
40531 case 12:
40532 _h = [{}];
40533 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40534 case 13:
40535 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) }]);
40536 return [3 /*break*/, 17];
40537 case 14:
40538 _j = [{}];
40539 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40540 case 15:
40541 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) }]);
40542 return [3 /*break*/, 17];
40543 case 16:
40544 parsedBody = parsedOutput.body;
40545 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40546 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) });
40547 _l.label = 17;
40548 case 17:
40549 message = response.message || response.Message || errorCode;
40550 response.message = message;
40551 delete response.Message;
40552 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40553 }
40554 });
40555}); };
40556var deserializeAws_restJson1GetCampaignVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40557 var contents, data;
40558 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40559 switch (_a.label) {
40560 case 0:
40561 if (output.statusCode !== 200 && output.statusCode >= 300) {
40562 return [2 /*return*/, deserializeAws_restJson1GetCampaignVersionCommandError(output, context)];
40563 }
40564 contents = {
40565 $metadata: deserializeMetadata(output),
40566 CampaignResponse: undefined,
40567 };
40568 return [4 /*yield*/, parseBody(output.body, context)];
40569 case 1:
40570 data = _a.sent();
40571 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
40572 return [2 /*return*/, Promise.resolve(contents)];
40573 }
40574 });
40575}); };
40576var deserializeAws_restJson1GetCampaignVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40577 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40578 var _k;
40579 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40580 switch (_l.label) {
40581 case 0:
40582 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40583 _k = {};
40584 return [4 /*yield*/, parseBody(output.body, context)];
40585 case 1:
40586 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40587 errorCode = "UnknownError";
40588 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40589 _b = errorCode;
40590 switch (_b) {
40591 case "BadRequestException": return [3 /*break*/, 2];
40592 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40593 case "ForbiddenException": return [3 /*break*/, 4];
40594 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40595 case "InternalServerErrorException": return [3 /*break*/, 6];
40596 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40597 case "MethodNotAllowedException": return [3 /*break*/, 8];
40598 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40599 case "NotFoundException": return [3 /*break*/, 10];
40600 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40601 case "PayloadTooLargeException": return [3 /*break*/, 12];
40602 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40603 case "TooManyRequestsException": return [3 /*break*/, 14];
40604 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40605 }
40606 return [3 /*break*/, 16];
40607 case 2:
40608 _c = [{}];
40609 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40610 case 3:
40611 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) }]);
40612 return [3 /*break*/, 17];
40613 case 4:
40614 _d = [{}];
40615 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40616 case 5:
40617 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) }]);
40618 return [3 /*break*/, 17];
40619 case 6:
40620 _e = [{}];
40621 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40622 case 7:
40623 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) }]);
40624 return [3 /*break*/, 17];
40625 case 8:
40626 _f = [{}];
40627 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40628 case 9:
40629 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) }]);
40630 return [3 /*break*/, 17];
40631 case 10:
40632 _g = [{}];
40633 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40634 case 11:
40635 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) }]);
40636 return [3 /*break*/, 17];
40637 case 12:
40638 _h = [{}];
40639 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40640 case 13:
40641 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) }]);
40642 return [3 /*break*/, 17];
40643 case 14:
40644 _j = [{}];
40645 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40646 case 15:
40647 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) }]);
40648 return [3 /*break*/, 17];
40649 case 16:
40650 parsedBody = parsedOutput.body;
40651 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40652 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) });
40653 _l.label = 17;
40654 case 17:
40655 message = response.message || response.Message || errorCode;
40656 response.message = message;
40657 delete response.Message;
40658 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40659 }
40660 });
40661}); };
40662var deserializeAws_restJson1GetCampaignVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40663 var contents, data;
40664 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40665 switch (_a.label) {
40666 case 0:
40667 if (output.statusCode !== 200 && output.statusCode >= 300) {
40668 return [2 /*return*/, deserializeAws_restJson1GetCampaignVersionsCommandError(output, context)];
40669 }
40670 contents = {
40671 $metadata: deserializeMetadata(output),
40672 CampaignsResponse: undefined,
40673 };
40674 return [4 /*yield*/, parseBody(output.body, context)];
40675 case 1:
40676 data = _a.sent();
40677 contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context);
40678 return [2 /*return*/, Promise.resolve(contents)];
40679 }
40680 });
40681}); };
40682var deserializeAws_restJson1GetCampaignVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40683 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40684 var _k;
40685 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40686 switch (_l.label) {
40687 case 0:
40688 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40689 _k = {};
40690 return [4 /*yield*/, parseBody(output.body, context)];
40691 case 1:
40692 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40693 errorCode = "UnknownError";
40694 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40695 _b = errorCode;
40696 switch (_b) {
40697 case "BadRequestException": return [3 /*break*/, 2];
40698 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40699 case "ForbiddenException": return [3 /*break*/, 4];
40700 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40701 case "InternalServerErrorException": return [3 /*break*/, 6];
40702 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40703 case "MethodNotAllowedException": return [3 /*break*/, 8];
40704 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40705 case "NotFoundException": return [3 /*break*/, 10];
40706 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40707 case "PayloadTooLargeException": return [3 /*break*/, 12];
40708 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40709 case "TooManyRequestsException": return [3 /*break*/, 14];
40710 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40711 }
40712 return [3 /*break*/, 16];
40713 case 2:
40714 _c = [{}];
40715 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40716 case 3:
40717 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) }]);
40718 return [3 /*break*/, 17];
40719 case 4:
40720 _d = [{}];
40721 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40722 case 5:
40723 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) }]);
40724 return [3 /*break*/, 17];
40725 case 6:
40726 _e = [{}];
40727 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40728 case 7:
40729 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) }]);
40730 return [3 /*break*/, 17];
40731 case 8:
40732 _f = [{}];
40733 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40734 case 9:
40735 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) }]);
40736 return [3 /*break*/, 17];
40737 case 10:
40738 _g = [{}];
40739 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40740 case 11:
40741 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) }]);
40742 return [3 /*break*/, 17];
40743 case 12:
40744 _h = [{}];
40745 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40746 case 13:
40747 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) }]);
40748 return [3 /*break*/, 17];
40749 case 14:
40750 _j = [{}];
40751 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40752 case 15:
40753 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) }]);
40754 return [3 /*break*/, 17];
40755 case 16:
40756 parsedBody = parsedOutput.body;
40757 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40758 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) });
40759 _l.label = 17;
40760 case 17:
40761 message = response.message || response.Message || errorCode;
40762 response.message = message;
40763 delete response.Message;
40764 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40765 }
40766 });
40767}); };
40768var deserializeAws_restJson1GetChannelsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40769 var contents, data;
40770 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40771 switch (_a.label) {
40772 case 0:
40773 if (output.statusCode !== 200 && output.statusCode >= 300) {
40774 return [2 /*return*/, deserializeAws_restJson1GetChannelsCommandError(output, context)];
40775 }
40776 contents = {
40777 $metadata: deserializeMetadata(output),
40778 ChannelsResponse: undefined,
40779 };
40780 return [4 /*yield*/, parseBody(output.body, context)];
40781 case 1:
40782 data = _a.sent();
40783 contents.ChannelsResponse = deserializeAws_restJson1ChannelsResponse(data, context);
40784 return [2 /*return*/, Promise.resolve(contents)];
40785 }
40786 });
40787}); };
40788var deserializeAws_restJson1GetChannelsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40789 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40790 var _k;
40791 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40792 switch (_l.label) {
40793 case 0:
40794 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40795 _k = {};
40796 return [4 /*yield*/, parseBody(output.body, context)];
40797 case 1:
40798 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40799 errorCode = "UnknownError";
40800 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40801 _b = errorCode;
40802 switch (_b) {
40803 case "BadRequestException": return [3 /*break*/, 2];
40804 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40805 case "ForbiddenException": return [3 /*break*/, 4];
40806 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40807 case "InternalServerErrorException": return [3 /*break*/, 6];
40808 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40809 case "MethodNotAllowedException": return [3 /*break*/, 8];
40810 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40811 case "NotFoundException": return [3 /*break*/, 10];
40812 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40813 case "PayloadTooLargeException": return [3 /*break*/, 12];
40814 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40815 case "TooManyRequestsException": return [3 /*break*/, 14];
40816 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40817 }
40818 return [3 /*break*/, 16];
40819 case 2:
40820 _c = [{}];
40821 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40822 case 3:
40823 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) }]);
40824 return [3 /*break*/, 17];
40825 case 4:
40826 _d = [{}];
40827 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40828 case 5:
40829 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) }]);
40830 return [3 /*break*/, 17];
40831 case 6:
40832 _e = [{}];
40833 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40834 case 7:
40835 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) }]);
40836 return [3 /*break*/, 17];
40837 case 8:
40838 _f = [{}];
40839 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40840 case 9:
40841 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) }]);
40842 return [3 /*break*/, 17];
40843 case 10:
40844 _g = [{}];
40845 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40846 case 11:
40847 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) }]);
40848 return [3 /*break*/, 17];
40849 case 12:
40850 _h = [{}];
40851 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40852 case 13:
40853 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) }]);
40854 return [3 /*break*/, 17];
40855 case 14:
40856 _j = [{}];
40857 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40858 case 15:
40859 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) }]);
40860 return [3 /*break*/, 17];
40861 case 16:
40862 parsedBody = parsedOutput.body;
40863 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40864 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) });
40865 _l.label = 17;
40866 case 17:
40867 message = response.message || response.Message || errorCode;
40868 response.message = message;
40869 delete response.Message;
40870 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40871 }
40872 });
40873}); };
40874var deserializeAws_restJson1GetEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40875 var contents, data;
40876 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40877 switch (_a.label) {
40878 case 0:
40879 if (output.statusCode !== 200 && output.statusCode >= 300) {
40880 return [2 /*return*/, deserializeAws_restJson1GetEmailChannelCommandError(output, context)];
40881 }
40882 contents = {
40883 $metadata: deserializeMetadata(output),
40884 EmailChannelResponse: undefined,
40885 };
40886 return [4 /*yield*/, parseBody(output.body, context)];
40887 case 1:
40888 data = _a.sent();
40889 contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context);
40890 return [2 /*return*/, Promise.resolve(contents)];
40891 }
40892 });
40893}); };
40894var deserializeAws_restJson1GetEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40895 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40896 var _k;
40897 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40898 switch (_l.label) {
40899 case 0:
40900 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40901 _k = {};
40902 return [4 /*yield*/, parseBody(output.body, context)];
40903 case 1:
40904 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40905 errorCode = "UnknownError";
40906 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40907 _b = errorCode;
40908 switch (_b) {
40909 case "BadRequestException": return [3 /*break*/, 2];
40910 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40911 case "ForbiddenException": return [3 /*break*/, 4];
40912 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40913 case "InternalServerErrorException": return [3 /*break*/, 6];
40914 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40915 case "MethodNotAllowedException": return [3 /*break*/, 8];
40916 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40917 case "NotFoundException": return [3 /*break*/, 10];
40918 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40919 case "PayloadTooLargeException": return [3 /*break*/, 12];
40920 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40921 case "TooManyRequestsException": return [3 /*break*/, 14];
40922 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40923 }
40924 return [3 /*break*/, 16];
40925 case 2:
40926 _c = [{}];
40927 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40928 case 3:
40929 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) }]);
40930 return [3 /*break*/, 17];
40931 case 4:
40932 _d = [{}];
40933 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40934 case 5:
40935 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) }]);
40936 return [3 /*break*/, 17];
40937 case 6:
40938 _e = [{}];
40939 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40940 case 7:
40941 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) }]);
40942 return [3 /*break*/, 17];
40943 case 8:
40944 _f = [{}];
40945 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40946 case 9:
40947 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) }]);
40948 return [3 /*break*/, 17];
40949 case 10:
40950 _g = [{}];
40951 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40952 case 11:
40953 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) }]);
40954 return [3 /*break*/, 17];
40955 case 12:
40956 _h = [{}];
40957 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40958 case 13:
40959 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) }]);
40960 return [3 /*break*/, 17];
40961 case 14:
40962 _j = [{}];
40963 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40964 case 15:
40965 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) }]);
40966 return [3 /*break*/, 17];
40967 case 16:
40968 parsedBody = parsedOutput.body;
40969 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40970 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) });
40971 _l.label = 17;
40972 case 17:
40973 message = response.message || response.Message || errorCode;
40974 response.message = message;
40975 delete response.Message;
40976 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40977 }
40978 });
40979}); };
40980var deserializeAws_restJson1GetEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40981 var contents, data;
40982 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40983 switch (_a.label) {
40984 case 0:
40985 if (output.statusCode !== 200 && output.statusCode >= 300) {
40986 return [2 /*return*/, deserializeAws_restJson1GetEmailTemplateCommandError(output, context)];
40987 }
40988 contents = {
40989 $metadata: deserializeMetadata(output),
40990 EmailTemplateResponse: undefined,
40991 };
40992 return [4 /*yield*/, parseBody(output.body, context)];
40993 case 1:
40994 data = _a.sent();
40995 contents.EmailTemplateResponse = deserializeAws_restJson1EmailTemplateResponse(data, context);
40996 return [2 /*return*/, Promise.resolve(contents)];
40997 }
40998 });
40999}); };
41000var deserializeAws_restJson1GetEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41001 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41002 var _k;
41003 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41004 switch (_l.label) {
41005 case 0:
41006 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41007 _k = {};
41008 return [4 /*yield*/, parseBody(output.body, context)];
41009 case 1:
41010 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41011 errorCode = "UnknownError";
41012 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41013 _b = errorCode;
41014 switch (_b) {
41015 case "BadRequestException": return [3 /*break*/, 2];
41016 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41017 case "ForbiddenException": return [3 /*break*/, 4];
41018 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41019 case "InternalServerErrorException": return [3 /*break*/, 6];
41020 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41021 case "MethodNotAllowedException": return [3 /*break*/, 8];
41022 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41023 case "NotFoundException": return [3 /*break*/, 10];
41024 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41025 case "PayloadTooLargeException": return [3 /*break*/, 12];
41026 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41027 case "TooManyRequestsException": return [3 /*break*/, 14];
41028 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41029 }
41030 return [3 /*break*/, 16];
41031 case 2:
41032 _c = [{}];
41033 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41034 case 3:
41035 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) }]);
41036 return [3 /*break*/, 17];
41037 case 4:
41038 _d = [{}];
41039 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41040 case 5:
41041 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) }]);
41042 return [3 /*break*/, 17];
41043 case 6:
41044 _e = [{}];
41045 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41046 case 7:
41047 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) }]);
41048 return [3 /*break*/, 17];
41049 case 8:
41050 _f = [{}];
41051 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41052 case 9:
41053 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) }]);
41054 return [3 /*break*/, 17];
41055 case 10:
41056 _g = [{}];
41057 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41058 case 11:
41059 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) }]);
41060 return [3 /*break*/, 17];
41061 case 12:
41062 _h = [{}];
41063 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41064 case 13:
41065 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) }]);
41066 return [3 /*break*/, 17];
41067 case 14:
41068 _j = [{}];
41069 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41070 case 15:
41071 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) }]);
41072 return [3 /*break*/, 17];
41073 case 16:
41074 parsedBody = parsedOutput.body;
41075 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41076 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) });
41077 _l.label = 17;
41078 case 17:
41079 message = response.message || response.Message || errorCode;
41080 response.message = message;
41081 delete response.Message;
41082 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41083 }
41084 });
41085}); };
41086var deserializeAws_restJson1GetEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41087 var contents, data;
41088 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41089 switch (_a.label) {
41090 case 0:
41091 if (output.statusCode !== 200 && output.statusCode >= 300) {
41092 return [2 /*return*/, deserializeAws_restJson1GetEndpointCommandError(output, context)];
41093 }
41094 contents = {
41095 $metadata: deserializeMetadata(output),
41096 EndpointResponse: undefined,
41097 };
41098 return [4 /*yield*/, parseBody(output.body, context)];
41099 case 1:
41100 data = _a.sent();
41101 contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context);
41102 return [2 /*return*/, Promise.resolve(contents)];
41103 }
41104 });
41105}); };
41106var deserializeAws_restJson1GetEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41107 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41108 var _k;
41109 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41110 switch (_l.label) {
41111 case 0:
41112 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41113 _k = {};
41114 return [4 /*yield*/, parseBody(output.body, context)];
41115 case 1:
41116 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41117 errorCode = "UnknownError";
41118 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41119 _b = errorCode;
41120 switch (_b) {
41121 case "BadRequestException": return [3 /*break*/, 2];
41122 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41123 case "ForbiddenException": return [3 /*break*/, 4];
41124 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41125 case "InternalServerErrorException": return [3 /*break*/, 6];
41126 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41127 case "MethodNotAllowedException": return [3 /*break*/, 8];
41128 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41129 case "NotFoundException": return [3 /*break*/, 10];
41130 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41131 case "PayloadTooLargeException": return [3 /*break*/, 12];
41132 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41133 case "TooManyRequestsException": return [3 /*break*/, 14];
41134 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41135 }
41136 return [3 /*break*/, 16];
41137 case 2:
41138 _c = [{}];
41139 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41140 case 3:
41141 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) }]);
41142 return [3 /*break*/, 17];
41143 case 4:
41144 _d = [{}];
41145 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41146 case 5:
41147 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) }]);
41148 return [3 /*break*/, 17];
41149 case 6:
41150 _e = [{}];
41151 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41152 case 7:
41153 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) }]);
41154 return [3 /*break*/, 17];
41155 case 8:
41156 _f = [{}];
41157 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41158 case 9:
41159 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) }]);
41160 return [3 /*break*/, 17];
41161 case 10:
41162 _g = [{}];
41163 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41164 case 11:
41165 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) }]);
41166 return [3 /*break*/, 17];
41167 case 12:
41168 _h = [{}];
41169 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41170 case 13:
41171 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) }]);
41172 return [3 /*break*/, 17];
41173 case 14:
41174 _j = [{}];
41175 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41176 case 15:
41177 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) }]);
41178 return [3 /*break*/, 17];
41179 case 16:
41180 parsedBody = parsedOutput.body;
41181 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41182 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) });
41183 _l.label = 17;
41184 case 17:
41185 message = response.message || response.Message || errorCode;
41186 response.message = message;
41187 delete response.Message;
41188 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41189 }
41190 });
41191}); };
41192var deserializeAws_restJson1GetEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41193 var contents, data;
41194 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41195 switch (_a.label) {
41196 case 0:
41197 if (output.statusCode !== 200 && output.statusCode >= 300) {
41198 return [2 /*return*/, deserializeAws_restJson1GetEventStreamCommandError(output, context)];
41199 }
41200 contents = {
41201 $metadata: deserializeMetadata(output),
41202 EventStream: undefined,
41203 };
41204 return [4 /*yield*/, parseBody(output.body, context)];
41205 case 1:
41206 data = _a.sent();
41207 contents.EventStream = deserializeAws_restJson1EventStream(data, context);
41208 return [2 /*return*/, Promise.resolve(contents)];
41209 }
41210 });
41211}); };
41212var deserializeAws_restJson1GetEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41213 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41214 var _k;
41215 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41216 switch (_l.label) {
41217 case 0:
41218 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41219 _k = {};
41220 return [4 /*yield*/, parseBody(output.body, context)];
41221 case 1:
41222 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41223 errorCode = "UnknownError";
41224 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41225 _b = errorCode;
41226 switch (_b) {
41227 case "BadRequestException": return [3 /*break*/, 2];
41228 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41229 case "ForbiddenException": return [3 /*break*/, 4];
41230 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41231 case "InternalServerErrorException": return [3 /*break*/, 6];
41232 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41233 case "MethodNotAllowedException": return [3 /*break*/, 8];
41234 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41235 case "NotFoundException": return [3 /*break*/, 10];
41236 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41237 case "PayloadTooLargeException": return [3 /*break*/, 12];
41238 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41239 case "TooManyRequestsException": return [3 /*break*/, 14];
41240 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41241 }
41242 return [3 /*break*/, 16];
41243 case 2:
41244 _c = [{}];
41245 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41246 case 3:
41247 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) }]);
41248 return [3 /*break*/, 17];
41249 case 4:
41250 _d = [{}];
41251 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41252 case 5:
41253 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) }]);
41254 return [3 /*break*/, 17];
41255 case 6:
41256 _e = [{}];
41257 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41258 case 7:
41259 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) }]);
41260 return [3 /*break*/, 17];
41261 case 8:
41262 _f = [{}];
41263 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41264 case 9:
41265 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) }]);
41266 return [3 /*break*/, 17];
41267 case 10:
41268 _g = [{}];
41269 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41270 case 11:
41271 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) }]);
41272 return [3 /*break*/, 17];
41273 case 12:
41274 _h = [{}];
41275 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41276 case 13:
41277 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) }]);
41278 return [3 /*break*/, 17];
41279 case 14:
41280 _j = [{}];
41281 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41282 case 15:
41283 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) }]);
41284 return [3 /*break*/, 17];
41285 case 16:
41286 parsedBody = parsedOutput.body;
41287 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41288 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) });
41289 _l.label = 17;
41290 case 17:
41291 message = response.message || response.Message || errorCode;
41292 response.message = message;
41293 delete response.Message;
41294 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41295 }
41296 });
41297}); };
41298var deserializeAws_restJson1GetExportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41299 var contents, data;
41300 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41301 switch (_a.label) {
41302 case 0:
41303 if (output.statusCode !== 200 && output.statusCode >= 300) {
41304 return [2 /*return*/, deserializeAws_restJson1GetExportJobCommandError(output, context)];
41305 }
41306 contents = {
41307 $metadata: deserializeMetadata(output),
41308 ExportJobResponse: undefined,
41309 };
41310 return [4 /*yield*/, parseBody(output.body, context)];
41311 case 1:
41312 data = _a.sent();
41313 contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context);
41314 return [2 /*return*/, Promise.resolve(contents)];
41315 }
41316 });
41317}); };
41318var deserializeAws_restJson1GetExportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41319 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41320 var _k;
41321 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41322 switch (_l.label) {
41323 case 0:
41324 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41325 _k = {};
41326 return [4 /*yield*/, parseBody(output.body, context)];
41327 case 1:
41328 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41329 errorCode = "UnknownError";
41330 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41331 _b = errorCode;
41332 switch (_b) {
41333 case "BadRequestException": return [3 /*break*/, 2];
41334 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41335 case "ForbiddenException": return [3 /*break*/, 4];
41336 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41337 case "InternalServerErrorException": return [3 /*break*/, 6];
41338 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41339 case "MethodNotAllowedException": return [3 /*break*/, 8];
41340 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41341 case "NotFoundException": return [3 /*break*/, 10];
41342 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41343 case "PayloadTooLargeException": return [3 /*break*/, 12];
41344 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41345 case "TooManyRequestsException": return [3 /*break*/, 14];
41346 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41347 }
41348 return [3 /*break*/, 16];
41349 case 2:
41350 _c = [{}];
41351 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41352 case 3:
41353 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) }]);
41354 return [3 /*break*/, 17];
41355 case 4:
41356 _d = [{}];
41357 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41358 case 5:
41359 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) }]);
41360 return [3 /*break*/, 17];
41361 case 6:
41362 _e = [{}];
41363 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41364 case 7:
41365 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) }]);
41366 return [3 /*break*/, 17];
41367 case 8:
41368 _f = [{}];
41369 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41370 case 9:
41371 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) }]);
41372 return [3 /*break*/, 17];
41373 case 10:
41374 _g = [{}];
41375 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41376 case 11:
41377 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) }]);
41378 return [3 /*break*/, 17];
41379 case 12:
41380 _h = [{}];
41381 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41382 case 13:
41383 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) }]);
41384 return [3 /*break*/, 17];
41385 case 14:
41386 _j = [{}];
41387 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41388 case 15:
41389 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) }]);
41390 return [3 /*break*/, 17];
41391 case 16:
41392 parsedBody = parsedOutput.body;
41393 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41394 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) });
41395 _l.label = 17;
41396 case 17:
41397 message = response.message || response.Message || errorCode;
41398 response.message = message;
41399 delete response.Message;
41400 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41401 }
41402 });
41403}); };
41404var deserializeAws_restJson1GetExportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41405 var contents, data;
41406 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41407 switch (_a.label) {
41408 case 0:
41409 if (output.statusCode !== 200 && output.statusCode >= 300) {
41410 return [2 /*return*/, deserializeAws_restJson1GetExportJobsCommandError(output, context)];
41411 }
41412 contents = {
41413 $metadata: deserializeMetadata(output),
41414 ExportJobsResponse: undefined,
41415 };
41416 return [4 /*yield*/, parseBody(output.body, context)];
41417 case 1:
41418 data = _a.sent();
41419 contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context);
41420 return [2 /*return*/, Promise.resolve(contents)];
41421 }
41422 });
41423}); };
41424var deserializeAws_restJson1GetExportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41425 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41426 var _k;
41427 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41428 switch (_l.label) {
41429 case 0:
41430 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41431 _k = {};
41432 return [4 /*yield*/, parseBody(output.body, context)];
41433 case 1:
41434 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41435 errorCode = "UnknownError";
41436 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41437 _b = errorCode;
41438 switch (_b) {
41439 case "BadRequestException": return [3 /*break*/, 2];
41440 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41441 case "ForbiddenException": return [3 /*break*/, 4];
41442 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41443 case "InternalServerErrorException": return [3 /*break*/, 6];
41444 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41445 case "MethodNotAllowedException": return [3 /*break*/, 8];
41446 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41447 case "NotFoundException": return [3 /*break*/, 10];
41448 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41449 case "PayloadTooLargeException": return [3 /*break*/, 12];
41450 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41451 case "TooManyRequestsException": return [3 /*break*/, 14];
41452 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41453 }
41454 return [3 /*break*/, 16];
41455 case 2:
41456 _c = [{}];
41457 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41458 case 3:
41459 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) }]);
41460 return [3 /*break*/, 17];
41461 case 4:
41462 _d = [{}];
41463 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41464 case 5:
41465 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) }]);
41466 return [3 /*break*/, 17];
41467 case 6:
41468 _e = [{}];
41469 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41470 case 7:
41471 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) }]);
41472 return [3 /*break*/, 17];
41473 case 8:
41474 _f = [{}];
41475 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41476 case 9:
41477 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) }]);
41478 return [3 /*break*/, 17];
41479 case 10:
41480 _g = [{}];
41481 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41482 case 11:
41483 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) }]);
41484 return [3 /*break*/, 17];
41485 case 12:
41486 _h = [{}];
41487 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41488 case 13:
41489 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) }]);
41490 return [3 /*break*/, 17];
41491 case 14:
41492 _j = [{}];
41493 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41494 case 15:
41495 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) }]);
41496 return [3 /*break*/, 17];
41497 case 16:
41498 parsedBody = parsedOutput.body;
41499 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41500 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) });
41501 _l.label = 17;
41502 case 17:
41503 message = response.message || response.Message || errorCode;
41504 response.message = message;
41505 delete response.Message;
41506 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41507 }
41508 });
41509}); };
41510var deserializeAws_restJson1GetGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41511 var contents, data;
41512 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41513 switch (_a.label) {
41514 case 0:
41515 if (output.statusCode !== 200 && output.statusCode >= 300) {
41516 return [2 /*return*/, deserializeAws_restJson1GetGcmChannelCommandError(output, context)];
41517 }
41518 contents = {
41519 $metadata: deserializeMetadata(output),
41520 GCMChannelResponse: undefined,
41521 };
41522 return [4 /*yield*/, parseBody(output.body, context)];
41523 case 1:
41524 data = _a.sent();
41525 contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context);
41526 return [2 /*return*/, Promise.resolve(contents)];
41527 }
41528 });
41529}); };
41530var deserializeAws_restJson1GetGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41531 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41532 var _k;
41533 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41534 switch (_l.label) {
41535 case 0:
41536 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41537 _k = {};
41538 return [4 /*yield*/, parseBody(output.body, context)];
41539 case 1:
41540 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41541 errorCode = "UnknownError";
41542 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41543 _b = errorCode;
41544 switch (_b) {
41545 case "BadRequestException": return [3 /*break*/, 2];
41546 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41547 case "ForbiddenException": return [3 /*break*/, 4];
41548 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41549 case "InternalServerErrorException": return [3 /*break*/, 6];
41550 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41551 case "MethodNotAllowedException": return [3 /*break*/, 8];
41552 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41553 case "NotFoundException": return [3 /*break*/, 10];
41554 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41555 case "PayloadTooLargeException": return [3 /*break*/, 12];
41556 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41557 case "TooManyRequestsException": return [3 /*break*/, 14];
41558 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41559 }
41560 return [3 /*break*/, 16];
41561 case 2:
41562 _c = [{}];
41563 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41564 case 3:
41565 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) }]);
41566 return [3 /*break*/, 17];
41567 case 4:
41568 _d = [{}];
41569 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41570 case 5:
41571 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) }]);
41572 return [3 /*break*/, 17];
41573 case 6:
41574 _e = [{}];
41575 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41576 case 7:
41577 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) }]);
41578 return [3 /*break*/, 17];
41579 case 8:
41580 _f = [{}];
41581 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41582 case 9:
41583 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) }]);
41584 return [3 /*break*/, 17];
41585 case 10:
41586 _g = [{}];
41587 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41588 case 11:
41589 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) }]);
41590 return [3 /*break*/, 17];
41591 case 12:
41592 _h = [{}];
41593 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41594 case 13:
41595 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) }]);
41596 return [3 /*break*/, 17];
41597 case 14:
41598 _j = [{}];
41599 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41600 case 15:
41601 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) }]);
41602 return [3 /*break*/, 17];
41603 case 16:
41604 parsedBody = parsedOutput.body;
41605 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41606 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) });
41607 _l.label = 17;
41608 case 17:
41609 message = response.message || response.Message || errorCode;
41610 response.message = message;
41611 delete response.Message;
41612 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41613 }
41614 });
41615}); };
41616var deserializeAws_restJson1GetImportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41617 var contents, data;
41618 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41619 switch (_a.label) {
41620 case 0:
41621 if (output.statusCode !== 200 && output.statusCode >= 300) {
41622 return [2 /*return*/, deserializeAws_restJson1GetImportJobCommandError(output, context)];
41623 }
41624 contents = {
41625 $metadata: deserializeMetadata(output),
41626 ImportJobResponse: undefined,
41627 };
41628 return [4 /*yield*/, parseBody(output.body, context)];
41629 case 1:
41630 data = _a.sent();
41631 contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context);
41632 return [2 /*return*/, Promise.resolve(contents)];
41633 }
41634 });
41635}); };
41636var deserializeAws_restJson1GetImportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41637 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41638 var _k;
41639 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41640 switch (_l.label) {
41641 case 0:
41642 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41643 _k = {};
41644 return [4 /*yield*/, parseBody(output.body, context)];
41645 case 1:
41646 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41647 errorCode = "UnknownError";
41648 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41649 _b = errorCode;
41650 switch (_b) {
41651 case "BadRequestException": return [3 /*break*/, 2];
41652 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41653 case "ForbiddenException": return [3 /*break*/, 4];
41654 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41655 case "InternalServerErrorException": return [3 /*break*/, 6];
41656 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41657 case "MethodNotAllowedException": return [3 /*break*/, 8];
41658 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41659 case "NotFoundException": return [3 /*break*/, 10];
41660 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41661 case "PayloadTooLargeException": return [3 /*break*/, 12];
41662 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41663 case "TooManyRequestsException": return [3 /*break*/, 14];
41664 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41665 }
41666 return [3 /*break*/, 16];
41667 case 2:
41668 _c = [{}];
41669 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41670 case 3:
41671 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) }]);
41672 return [3 /*break*/, 17];
41673 case 4:
41674 _d = [{}];
41675 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41676 case 5:
41677 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) }]);
41678 return [3 /*break*/, 17];
41679 case 6:
41680 _e = [{}];
41681 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41682 case 7:
41683 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) }]);
41684 return [3 /*break*/, 17];
41685 case 8:
41686 _f = [{}];
41687 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41688 case 9:
41689 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) }]);
41690 return [3 /*break*/, 17];
41691 case 10:
41692 _g = [{}];
41693 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41694 case 11:
41695 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) }]);
41696 return [3 /*break*/, 17];
41697 case 12:
41698 _h = [{}];
41699 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41700 case 13:
41701 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) }]);
41702 return [3 /*break*/, 17];
41703 case 14:
41704 _j = [{}];
41705 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41706 case 15:
41707 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) }]);
41708 return [3 /*break*/, 17];
41709 case 16:
41710 parsedBody = parsedOutput.body;
41711 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41712 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) });
41713 _l.label = 17;
41714 case 17:
41715 message = response.message || response.Message || errorCode;
41716 response.message = message;
41717 delete response.Message;
41718 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41719 }
41720 });
41721}); };
41722var deserializeAws_restJson1GetImportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41723 var contents, data;
41724 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41725 switch (_a.label) {
41726 case 0:
41727 if (output.statusCode !== 200 && output.statusCode >= 300) {
41728 return [2 /*return*/, deserializeAws_restJson1GetImportJobsCommandError(output, context)];
41729 }
41730 contents = {
41731 $metadata: deserializeMetadata(output),
41732 ImportJobsResponse: undefined,
41733 };
41734 return [4 /*yield*/, parseBody(output.body, context)];
41735 case 1:
41736 data = _a.sent();
41737 contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context);
41738 return [2 /*return*/, Promise.resolve(contents)];
41739 }
41740 });
41741}); };
41742var deserializeAws_restJson1GetImportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41743 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41744 var _k;
41745 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41746 switch (_l.label) {
41747 case 0:
41748 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41749 _k = {};
41750 return [4 /*yield*/, parseBody(output.body, context)];
41751 case 1:
41752 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41753 errorCode = "UnknownError";
41754 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41755 _b = errorCode;
41756 switch (_b) {
41757 case "BadRequestException": return [3 /*break*/, 2];
41758 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41759 case "ForbiddenException": return [3 /*break*/, 4];
41760 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41761 case "InternalServerErrorException": return [3 /*break*/, 6];
41762 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41763 case "MethodNotAllowedException": return [3 /*break*/, 8];
41764 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41765 case "NotFoundException": return [3 /*break*/, 10];
41766 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41767 case "PayloadTooLargeException": return [3 /*break*/, 12];
41768 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41769 case "TooManyRequestsException": return [3 /*break*/, 14];
41770 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41771 }
41772 return [3 /*break*/, 16];
41773 case 2:
41774 _c = [{}];
41775 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41776 case 3:
41777 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) }]);
41778 return [3 /*break*/, 17];
41779 case 4:
41780 _d = [{}];
41781 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41782 case 5:
41783 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) }]);
41784 return [3 /*break*/, 17];
41785 case 6:
41786 _e = [{}];
41787 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41788 case 7:
41789 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) }]);
41790 return [3 /*break*/, 17];
41791 case 8:
41792 _f = [{}];
41793 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41794 case 9:
41795 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) }]);
41796 return [3 /*break*/, 17];
41797 case 10:
41798 _g = [{}];
41799 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41800 case 11:
41801 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) }]);
41802 return [3 /*break*/, 17];
41803 case 12:
41804 _h = [{}];
41805 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41806 case 13:
41807 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) }]);
41808 return [3 /*break*/, 17];
41809 case 14:
41810 _j = [{}];
41811 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41812 case 15:
41813 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) }]);
41814 return [3 /*break*/, 17];
41815 case 16:
41816 parsedBody = parsedOutput.body;
41817 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41818 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) });
41819 _l.label = 17;
41820 case 17:
41821 message = response.message || response.Message || errorCode;
41822 response.message = message;
41823 delete response.Message;
41824 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41825 }
41826 });
41827}); };
41828var deserializeAws_restJson1GetJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41829 var contents, data;
41830 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41831 switch (_a.label) {
41832 case 0:
41833 if (output.statusCode !== 200 && output.statusCode >= 300) {
41834 return [2 /*return*/, deserializeAws_restJson1GetJourneyCommandError(output, context)];
41835 }
41836 contents = {
41837 $metadata: deserializeMetadata(output),
41838 JourneyResponse: undefined,
41839 };
41840 return [4 /*yield*/, parseBody(output.body, context)];
41841 case 1:
41842 data = _a.sent();
41843 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
41844 return [2 /*return*/, Promise.resolve(contents)];
41845 }
41846 });
41847}); };
41848var deserializeAws_restJson1GetJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41849 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41850 var _k;
41851 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41852 switch (_l.label) {
41853 case 0:
41854 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41855 _k = {};
41856 return [4 /*yield*/, parseBody(output.body, context)];
41857 case 1:
41858 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41859 errorCode = "UnknownError";
41860 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41861 _b = errorCode;
41862 switch (_b) {
41863 case "BadRequestException": return [3 /*break*/, 2];
41864 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41865 case "ForbiddenException": return [3 /*break*/, 4];
41866 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41867 case "InternalServerErrorException": return [3 /*break*/, 6];
41868 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41869 case "MethodNotAllowedException": return [3 /*break*/, 8];
41870 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41871 case "NotFoundException": return [3 /*break*/, 10];
41872 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41873 case "PayloadTooLargeException": return [3 /*break*/, 12];
41874 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41875 case "TooManyRequestsException": return [3 /*break*/, 14];
41876 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41877 }
41878 return [3 /*break*/, 16];
41879 case 2:
41880 _c = [{}];
41881 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41882 case 3:
41883 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) }]);
41884 return [3 /*break*/, 17];
41885 case 4:
41886 _d = [{}];
41887 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41888 case 5:
41889 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) }]);
41890 return [3 /*break*/, 17];
41891 case 6:
41892 _e = [{}];
41893 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41894 case 7:
41895 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) }]);
41896 return [3 /*break*/, 17];
41897 case 8:
41898 _f = [{}];
41899 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41900 case 9:
41901 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) }]);
41902 return [3 /*break*/, 17];
41903 case 10:
41904 _g = [{}];
41905 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41906 case 11:
41907 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) }]);
41908 return [3 /*break*/, 17];
41909 case 12:
41910 _h = [{}];
41911 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41912 case 13:
41913 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) }]);
41914 return [3 /*break*/, 17];
41915 case 14:
41916 _j = [{}];
41917 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41918 case 15:
41919 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) }]);
41920 return [3 /*break*/, 17];
41921 case 16:
41922 parsedBody = parsedOutput.body;
41923 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41924 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) });
41925 _l.label = 17;
41926 case 17:
41927 message = response.message || response.Message || errorCode;
41928 response.message = message;
41929 delete response.Message;
41930 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41931 }
41932 });
41933}); };
41934var deserializeAws_restJson1GetJourneyDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41935 var contents, data;
41936 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41937 switch (_a.label) {
41938 case 0:
41939 if (output.statusCode !== 200 && output.statusCode >= 300) {
41940 return [2 /*return*/, deserializeAws_restJson1GetJourneyDateRangeKpiCommandError(output, context)];
41941 }
41942 contents = {
41943 $metadata: deserializeMetadata(output),
41944 JourneyDateRangeKpiResponse: undefined,
41945 };
41946 return [4 /*yield*/, parseBody(output.body, context)];
41947 case 1:
41948 data = _a.sent();
41949 contents.JourneyDateRangeKpiResponse = deserializeAws_restJson1JourneyDateRangeKpiResponse(data, context);
41950 return [2 /*return*/, Promise.resolve(contents)];
41951 }
41952 });
41953}); };
41954var deserializeAws_restJson1GetJourneyDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41955 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41956 var _k;
41957 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41958 switch (_l.label) {
41959 case 0:
41960 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41961 _k = {};
41962 return [4 /*yield*/, parseBody(output.body, context)];
41963 case 1:
41964 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41965 errorCode = "UnknownError";
41966 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41967 _b = errorCode;
41968 switch (_b) {
41969 case "BadRequestException": return [3 /*break*/, 2];
41970 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41971 case "ForbiddenException": return [3 /*break*/, 4];
41972 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41973 case "InternalServerErrorException": return [3 /*break*/, 6];
41974 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41975 case "MethodNotAllowedException": return [3 /*break*/, 8];
41976 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41977 case "NotFoundException": return [3 /*break*/, 10];
41978 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41979 case "PayloadTooLargeException": return [3 /*break*/, 12];
41980 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41981 case "TooManyRequestsException": return [3 /*break*/, 14];
41982 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41983 }
41984 return [3 /*break*/, 16];
41985 case 2:
41986 _c = [{}];
41987 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41988 case 3:
41989 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) }]);
41990 return [3 /*break*/, 17];
41991 case 4:
41992 _d = [{}];
41993 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41994 case 5:
41995 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) }]);
41996 return [3 /*break*/, 17];
41997 case 6:
41998 _e = [{}];
41999 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42000 case 7:
42001 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) }]);
42002 return [3 /*break*/, 17];
42003 case 8:
42004 _f = [{}];
42005 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42006 case 9:
42007 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) }]);
42008 return [3 /*break*/, 17];
42009 case 10:
42010 _g = [{}];
42011 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42012 case 11:
42013 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) }]);
42014 return [3 /*break*/, 17];
42015 case 12:
42016 _h = [{}];
42017 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42018 case 13:
42019 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) }]);
42020 return [3 /*break*/, 17];
42021 case 14:
42022 _j = [{}];
42023 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42024 case 15:
42025 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) }]);
42026 return [3 /*break*/, 17];
42027 case 16:
42028 parsedBody = parsedOutput.body;
42029 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42030 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) });
42031 _l.label = 17;
42032 case 17:
42033 message = response.message || response.Message || errorCode;
42034 response.message = message;
42035 delete response.Message;
42036 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42037 }
42038 });
42039}); };
42040var deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42041 var contents, data;
42042 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42043 switch (_a.label) {
42044 case 0:
42045 if (output.statusCode !== 200 && output.statusCode >= 300) {
42046 return [2 /*return*/, deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommandError(output, context)];
42047 }
42048 contents = {
42049 $metadata: deserializeMetadata(output),
42050 JourneyExecutionActivityMetricsResponse: undefined,
42051 };
42052 return [4 /*yield*/, parseBody(output.body, context)];
42053 case 1:
42054 data = _a.sent();
42055 contents.JourneyExecutionActivityMetricsResponse = deserializeAws_restJson1JourneyExecutionActivityMetricsResponse(data, context);
42056 return [2 /*return*/, Promise.resolve(contents)];
42057 }
42058 });
42059}); };
42060var deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42061 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42062 var _k;
42063 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42064 switch (_l.label) {
42065 case 0:
42066 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42067 _k = {};
42068 return [4 /*yield*/, parseBody(output.body, context)];
42069 case 1:
42070 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42071 errorCode = "UnknownError";
42072 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42073 _b = errorCode;
42074 switch (_b) {
42075 case "BadRequestException": return [3 /*break*/, 2];
42076 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42077 case "ForbiddenException": return [3 /*break*/, 4];
42078 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42079 case "InternalServerErrorException": return [3 /*break*/, 6];
42080 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42081 case "MethodNotAllowedException": return [3 /*break*/, 8];
42082 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42083 case "NotFoundException": return [3 /*break*/, 10];
42084 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42085 case "PayloadTooLargeException": return [3 /*break*/, 12];
42086 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42087 case "TooManyRequestsException": return [3 /*break*/, 14];
42088 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42089 }
42090 return [3 /*break*/, 16];
42091 case 2:
42092 _c = [{}];
42093 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42094 case 3:
42095 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) }]);
42096 return [3 /*break*/, 17];
42097 case 4:
42098 _d = [{}];
42099 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42100 case 5:
42101 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) }]);
42102 return [3 /*break*/, 17];
42103 case 6:
42104 _e = [{}];
42105 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42106 case 7:
42107 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) }]);
42108 return [3 /*break*/, 17];
42109 case 8:
42110 _f = [{}];
42111 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42112 case 9:
42113 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) }]);
42114 return [3 /*break*/, 17];
42115 case 10:
42116 _g = [{}];
42117 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42118 case 11:
42119 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) }]);
42120 return [3 /*break*/, 17];
42121 case 12:
42122 _h = [{}];
42123 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42124 case 13:
42125 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) }]);
42126 return [3 /*break*/, 17];
42127 case 14:
42128 _j = [{}];
42129 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42130 case 15:
42131 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) }]);
42132 return [3 /*break*/, 17];
42133 case 16:
42134 parsedBody = parsedOutput.body;
42135 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42136 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) });
42137 _l.label = 17;
42138 case 17:
42139 message = response.message || response.Message || errorCode;
42140 response.message = message;
42141 delete response.Message;
42142 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42143 }
42144 });
42145}); };
42146var deserializeAws_restJson1GetJourneyExecutionMetricsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42147 var contents, data;
42148 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42149 switch (_a.label) {
42150 case 0:
42151 if (output.statusCode !== 200 && output.statusCode >= 300) {
42152 return [2 /*return*/, deserializeAws_restJson1GetJourneyExecutionMetricsCommandError(output, context)];
42153 }
42154 contents = {
42155 $metadata: deserializeMetadata(output),
42156 JourneyExecutionMetricsResponse: undefined,
42157 };
42158 return [4 /*yield*/, parseBody(output.body, context)];
42159 case 1:
42160 data = _a.sent();
42161 contents.JourneyExecutionMetricsResponse = deserializeAws_restJson1JourneyExecutionMetricsResponse(data, context);
42162 return [2 /*return*/, Promise.resolve(contents)];
42163 }
42164 });
42165}); };
42166var deserializeAws_restJson1GetJourneyExecutionMetricsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42167 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42168 var _k;
42169 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42170 switch (_l.label) {
42171 case 0:
42172 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42173 _k = {};
42174 return [4 /*yield*/, parseBody(output.body, context)];
42175 case 1:
42176 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42177 errorCode = "UnknownError";
42178 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42179 _b = errorCode;
42180 switch (_b) {
42181 case "BadRequestException": return [3 /*break*/, 2];
42182 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42183 case "ForbiddenException": return [3 /*break*/, 4];
42184 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42185 case "InternalServerErrorException": return [3 /*break*/, 6];
42186 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42187 case "MethodNotAllowedException": return [3 /*break*/, 8];
42188 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42189 case "NotFoundException": return [3 /*break*/, 10];
42190 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42191 case "PayloadTooLargeException": return [3 /*break*/, 12];
42192 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42193 case "TooManyRequestsException": return [3 /*break*/, 14];
42194 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42195 }
42196 return [3 /*break*/, 16];
42197 case 2:
42198 _c = [{}];
42199 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42200 case 3:
42201 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) }]);
42202 return [3 /*break*/, 17];
42203 case 4:
42204 _d = [{}];
42205 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42206 case 5:
42207 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) }]);
42208 return [3 /*break*/, 17];
42209 case 6:
42210 _e = [{}];
42211 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42212 case 7:
42213 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) }]);
42214 return [3 /*break*/, 17];
42215 case 8:
42216 _f = [{}];
42217 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42218 case 9:
42219 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) }]);
42220 return [3 /*break*/, 17];
42221 case 10:
42222 _g = [{}];
42223 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42224 case 11:
42225 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) }]);
42226 return [3 /*break*/, 17];
42227 case 12:
42228 _h = [{}];
42229 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42230 case 13:
42231 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) }]);
42232 return [3 /*break*/, 17];
42233 case 14:
42234 _j = [{}];
42235 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42236 case 15:
42237 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) }]);
42238 return [3 /*break*/, 17];
42239 case 16:
42240 parsedBody = parsedOutput.body;
42241 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42242 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) });
42243 _l.label = 17;
42244 case 17:
42245 message = response.message || response.Message || errorCode;
42246 response.message = message;
42247 delete response.Message;
42248 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42249 }
42250 });
42251}); };
42252var deserializeAws_restJson1GetPushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42253 var contents, data;
42254 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42255 switch (_a.label) {
42256 case 0:
42257 if (output.statusCode !== 200 && output.statusCode >= 300) {
42258 return [2 /*return*/, deserializeAws_restJson1GetPushTemplateCommandError(output, context)];
42259 }
42260 contents = {
42261 $metadata: deserializeMetadata(output),
42262 PushNotificationTemplateResponse: undefined,
42263 };
42264 return [4 /*yield*/, parseBody(output.body, context)];
42265 case 1:
42266 data = _a.sent();
42267 contents.PushNotificationTemplateResponse = deserializeAws_restJson1PushNotificationTemplateResponse(data, context);
42268 return [2 /*return*/, Promise.resolve(contents)];
42269 }
42270 });
42271}); };
42272var deserializeAws_restJson1GetPushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42273 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42274 var _k;
42275 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42276 switch (_l.label) {
42277 case 0:
42278 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42279 _k = {};
42280 return [4 /*yield*/, parseBody(output.body, context)];
42281 case 1:
42282 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42283 errorCode = "UnknownError";
42284 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42285 _b = errorCode;
42286 switch (_b) {
42287 case "BadRequestException": return [3 /*break*/, 2];
42288 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42289 case "ForbiddenException": return [3 /*break*/, 4];
42290 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42291 case "InternalServerErrorException": return [3 /*break*/, 6];
42292 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42293 case "MethodNotAllowedException": return [3 /*break*/, 8];
42294 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42295 case "NotFoundException": return [3 /*break*/, 10];
42296 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42297 case "PayloadTooLargeException": return [3 /*break*/, 12];
42298 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42299 case "TooManyRequestsException": return [3 /*break*/, 14];
42300 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42301 }
42302 return [3 /*break*/, 16];
42303 case 2:
42304 _c = [{}];
42305 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42306 case 3:
42307 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) }]);
42308 return [3 /*break*/, 17];
42309 case 4:
42310 _d = [{}];
42311 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42312 case 5:
42313 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) }]);
42314 return [3 /*break*/, 17];
42315 case 6:
42316 _e = [{}];
42317 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42318 case 7:
42319 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) }]);
42320 return [3 /*break*/, 17];
42321 case 8:
42322 _f = [{}];
42323 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42324 case 9:
42325 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) }]);
42326 return [3 /*break*/, 17];
42327 case 10:
42328 _g = [{}];
42329 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42330 case 11:
42331 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) }]);
42332 return [3 /*break*/, 17];
42333 case 12:
42334 _h = [{}];
42335 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42336 case 13:
42337 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) }]);
42338 return [3 /*break*/, 17];
42339 case 14:
42340 _j = [{}];
42341 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42342 case 15:
42343 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) }]);
42344 return [3 /*break*/, 17];
42345 case 16:
42346 parsedBody = parsedOutput.body;
42347 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42348 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) });
42349 _l.label = 17;
42350 case 17:
42351 message = response.message || response.Message || errorCode;
42352 response.message = message;
42353 delete response.Message;
42354 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42355 }
42356 });
42357}); };
42358var deserializeAws_restJson1GetRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42359 var contents, data;
42360 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42361 switch (_a.label) {
42362 case 0:
42363 if (output.statusCode !== 200 && output.statusCode >= 300) {
42364 return [2 /*return*/, deserializeAws_restJson1GetRecommenderConfigurationCommandError(output, context)];
42365 }
42366 contents = {
42367 $metadata: deserializeMetadata(output),
42368 RecommenderConfigurationResponse: undefined,
42369 };
42370 return [4 /*yield*/, parseBody(output.body, context)];
42371 case 1:
42372 data = _a.sent();
42373 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
42374 return [2 /*return*/, Promise.resolve(contents)];
42375 }
42376 });
42377}); };
42378var deserializeAws_restJson1GetRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42379 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42380 var _k;
42381 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42382 switch (_l.label) {
42383 case 0:
42384 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42385 _k = {};
42386 return [4 /*yield*/, parseBody(output.body, context)];
42387 case 1:
42388 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42389 errorCode = "UnknownError";
42390 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42391 _b = errorCode;
42392 switch (_b) {
42393 case "BadRequestException": return [3 /*break*/, 2];
42394 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42395 case "ForbiddenException": return [3 /*break*/, 4];
42396 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42397 case "InternalServerErrorException": return [3 /*break*/, 6];
42398 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42399 case "MethodNotAllowedException": return [3 /*break*/, 8];
42400 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42401 case "NotFoundException": return [3 /*break*/, 10];
42402 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42403 case "PayloadTooLargeException": return [3 /*break*/, 12];
42404 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42405 case "TooManyRequestsException": return [3 /*break*/, 14];
42406 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42407 }
42408 return [3 /*break*/, 16];
42409 case 2:
42410 _c = [{}];
42411 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42412 case 3:
42413 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) }]);
42414 return [3 /*break*/, 17];
42415 case 4:
42416 _d = [{}];
42417 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42418 case 5:
42419 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) }]);
42420 return [3 /*break*/, 17];
42421 case 6:
42422 _e = [{}];
42423 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42424 case 7:
42425 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) }]);
42426 return [3 /*break*/, 17];
42427 case 8:
42428 _f = [{}];
42429 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42430 case 9:
42431 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) }]);
42432 return [3 /*break*/, 17];
42433 case 10:
42434 _g = [{}];
42435 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42436 case 11:
42437 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) }]);
42438 return [3 /*break*/, 17];
42439 case 12:
42440 _h = [{}];
42441 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42442 case 13:
42443 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) }]);
42444 return [3 /*break*/, 17];
42445 case 14:
42446 _j = [{}];
42447 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42448 case 15:
42449 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) }]);
42450 return [3 /*break*/, 17];
42451 case 16:
42452 parsedBody = parsedOutput.body;
42453 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42454 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) });
42455 _l.label = 17;
42456 case 17:
42457 message = response.message || response.Message || errorCode;
42458 response.message = message;
42459 delete response.Message;
42460 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42461 }
42462 });
42463}); };
42464var deserializeAws_restJson1GetRecommenderConfigurationsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42465 var contents, data;
42466 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42467 switch (_a.label) {
42468 case 0:
42469 if (output.statusCode !== 200 && output.statusCode >= 300) {
42470 return [2 /*return*/, deserializeAws_restJson1GetRecommenderConfigurationsCommandError(output, context)];
42471 }
42472 contents = {
42473 $metadata: deserializeMetadata(output),
42474 ListRecommenderConfigurationsResponse: undefined,
42475 };
42476 return [4 /*yield*/, parseBody(output.body, context)];
42477 case 1:
42478 data = _a.sent();
42479 contents.ListRecommenderConfigurationsResponse = deserializeAws_restJson1ListRecommenderConfigurationsResponse(data, context);
42480 return [2 /*return*/, Promise.resolve(contents)];
42481 }
42482 });
42483}); };
42484var deserializeAws_restJson1GetRecommenderConfigurationsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42485 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42486 var _k;
42487 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42488 switch (_l.label) {
42489 case 0:
42490 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42491 _k = {};
42492 return [4 /*yield*/, parseBody(output.body, context)];
42493 case 1:
42494 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42495 errorCode = "UnknownError";
42496 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42497 _b = errorCode;
42498 switch (_b) {
42499 case "BadRequestException": return [3 /*break*/, 2];
42500 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42501 case "ForbiddenException": return [3 /*break*/, 4];
42502 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42503 case "InternalServerErrorException": return [3 /*break*/, 6];
42504 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42505 case "MethodNotAllowedException": return [3 /*break*/, 8];
42506 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42507 case "NotFoundException": return [3 /*break*/, 10];
42508 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42509 case "PayloadTooLargeException": return [3 /*break*/, 12];
42510 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42511 case "TooManyRequestsException": return [3 /*break*/, 14];
42512 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42513 }
42514 return [3 /*break*/, 16];
42515 case 2:
42516 _c = [{}];
42517 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42518 case 3:
42519 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) }]);
42520 return [3 /*break*/, 17];
42521 case 4:
42522 _d = [{}];
42523 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42524 case 5:
42525 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) }]);
42526 return [3 /*break*/, 17];
42527 case 6:
42528 _e = [{}];
42529 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42530 case 7:
42531 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) }]);
42532 return [3 /*break*/, 17];
42533 case 8:
42534 _f = [{}];
42535 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42536 case 9:
42537 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) }]);
42538 return [3 /*break*/, 17];
42539 case 10:
42540 _g = [{}];
42541 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42542 case 11:
42543 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) }]);
42544 return [3 /*break*/, 17];
42545 case 12:
42546 _h = [{}];
42547 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42548 case 13:
42549 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) }]);
42550 return [3 /*break*/, 17];
42551 case 14:
42552 _j = [{}];
42553 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42554 case 15:
42555 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) }]);
42556 return [3 /*break*/, 17];
42557 case 16:
42558 parsedBody = parsedOutput.body;
42559 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42560 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) });
42561 _l.label = 17;
42562 case 17:
42563 message = response.message || response.Message || errorCode;
42564 response.message = message;
42565 delete response.Message;
42566 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42567 }
42568 });
42569}); };
42570var deserializeAws_restJson1GetSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42571 var contents, data;
42572 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42573 switch (_a.label) {
42574 case 0:
42575 if (output.statusCode !== 200 && output.statusCode >= 300) {
42576 return [2 /*return*/, deserializeAws_restJson1GetSegmentCommandError(output, context)];
42577 }
42578 contents = {
42579 $metadata: deserializeMetadata(output),
42580 SegmentResponse: undefined,
42581 };
42582 return [4 /*yield*/, parseBody(output.body, context)];
42583 case 1:
42584 data = _a.sent();
42585 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
42586 return [2 /*return*/, Promise.resolve(contents)];
42587 }
42588 });
42589}); };
42590var deserializeAws_restJson1GetSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42591 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42592 var _k;
42593 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42594 switch (_l.label) {
42595 case 0:
42596 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42597 _k = {};
42598 return [4 /*yield*/, parseBody(output.body, context)];
42599 case 1:
42600 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42601 errorCode = "UnknownError";
42602 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42603 _b = errorCode;
42604 switch (_b) {
42605 case "BadRequestException": return [3 /*break*/, 2];
42606 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42607 case "ForbiddenException": return [3 /*break*/, 4];
42608 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42609 case "InternalServerErrorException": return [3 /*break*/, 6];
42610 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42611 case "MethodNotAllowedException": return [3 /*break*/, 8];
42612 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42613 case "NotFoundException": return [3 /*break*/, 10];
42614 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42615 case "PayloadTooLargeException": return [3 /*break*/, 12];
42616 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42617 case "TooManyRequestsException": return [3 /*break*/, 14];
42618 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42619 }
42620 return [3 /*break*/, 16];
42621 case 2:
42622 _c = [{}];
42623 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42624 case 3:
42625 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) }]);
42626 return [3 /*break*/, 17];
42627 case 4:
42628 _d = [{}];
42629 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42630 case 5:
42631 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) }]);
42632 return [3 /*break*/, 17];
42633 case 6:
42634 _e = [{}];
42635 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42636 case 7:
42637 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) }]);
42638 return [3 /*break*/, 17];
42639 case 8:
42640 _f = [{}];
42641 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42642 case 9:
42643 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) }]);
42644 return [3 /*break*/, 17];
42645 case 10:
42646 _g = [{}];
42647 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42648 case 11:
42649 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) }]);
42650 return [3 /*break*/, 17];
42651 case 12:
42652 _h = [{}];
42653 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42654 case 13:
42655 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) }]);
42656 return [3 /*break*/, 17];
42657 case 14:
42658 _j = [{}];
42659 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42660 case 15:
42661 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) }]);
42662 return [3 /*break*/, 17];
42663 case 16:
42664 parsedBody = parsedOutput.body;
42665 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42666 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) });
42667 _l.label = 17;
42668 case 17:
42669 message = response.message || response.Message || errorCode;
42670 response.message = message;
42671 delete response.Message;
42672 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42673 }
42674 });
42675}); };
42676var deserializeAws_restJson1GetSegmentExportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42677 var contents, data;
42678 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42679 switch (_a.label) {
42680 case 0:
42681 if (output.statusCode !== 200 && output.statusCode >= 300) {
42682 return [2 /*return*/, deserializeAws_restJson1GetSegmentExportJobsCommandError(output, context)];
42683 }
42684 contents = {
42685 $metadata: deserializeMetadata(output),
42686 ExportJobsResponse: undefined,
42687 };
42688 return [4 /*yield*/, parseBody(output.body, context)];
42689 case 1:
42690 data = _a.sent();
42691 contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context);
42692 return [2 /*return*/, Promise.resolve(contents)];
42693 }
42694 });
42695}); };
42696var deserializeAws_restJson1GetSegmentExportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42697 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42698 var _k;
42699 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42700 switch (_l.label) {
42701 case 0:
42702 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42703 _k = {};
42704 return [4 /*yield*/, parseBody(output.body, context)];
42705 case 1:
42706 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42707 errorCode = "UnknownError";
42708 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42709 _b = errorCode;
42710 switch (_b) {
42711 case "BadRequestException": return [3 /*break*/, 2];
42712 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42713 case "ForbiddenException": return [3 /*break*/, 4];
42714 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42715 case "InternalServerErrorException": return [3 /*break*/, 6];
42716 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42717 case "MethodNotAllowedException": return [3 /*break*/, 8];
42718 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42719 case "NotFoundException": return [3 /*break*/, 10];
42720 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42721 case "PayloadTooLargeException": return [3 /*break*/, 12];
42722 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42723 case "TooManyRequestsException": return [3 /*break*/, 14];
42724 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42725 }
42726 return [3 /*break*/, 16];
42727 case 2:
42728 _c = [{}];
42729 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42730 case 3:
42731 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) }]);
42732 return [3 /*break*/, 17];
42733 case 4:
42734 _d = [{}];
42735 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42736 case 5:
42737 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) }]);
42738 return [3 /*break*/, 17];
42739 case 6:
42740 _e = [{}];
42741 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42742 case 7:
42743 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) }]);
42744 return [3 /*break*/, 17];
42745 case 8:
42746 _f = [{}];
42747 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42748 case 9:
42749 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) }]);
42750 return [3 /*break*/, 17];
42751 case 10:
42752 _g = [{}];
42753 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42754 case 11:
42755 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) }]);
42756 return [3 /*break*/, 17];
42757 case 12:
42758 _h = [{}];
42759 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42760 case 13:
42761 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) }]);
42762 return [3 /*break*/, 17];
42763 case 14:
42764 _j = [{}];
42765 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42766 case 15:
42767 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) }]);
42768 return [3 /*break*/, 17];
42769 case 16:
42770 parsedBody = parsedOutput.body;
42771 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42772 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) });
42773 _l.label = 17;
42774 case 17:
42775 message = response.message || response.Message || errorCode;
42776 response.message = message;
42777 delete response.Message;
42778 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42779 }
42780 });
42781}); };
42782var deserializeAws_restJson1GetSegmentImportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42783 var contents, data;
42784 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42785 switch (_a.label) {
42786 case 0:
42787 if (output.statusCode !== 200 && output.statusCode >= 300) {
42788 return [2 /*return*/, deserializeAws_restJson1GetSegmentImportJobsCommandError(output, context)];
42789 }
42790 contents = {
42791 $metadata: deserializeMetadata(output),
42792 ImportJobsResponse: undefined,
42793 };
42794 return [4 /*yield*/, parseBody(output.body, context)];
42795 case 1:
42796 data = _a.sent();
42797 contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context);
42798 return [2 /*return*/, Promise.resolve(contents)];
42799 }
42800 });
42801}); };
42802var deserializeAws_restJson1GetSegmentImportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42803 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42804 var _k;
42805 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42806 switch (_l.label) {
42807 case 0:
42808 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42809 _k = {};
42810 return [4 /*yield*/, parseBody(output.body, context)];
42811 case 1:
42812 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42813 errorCode = "UnknownError";
42814 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42815 _b = errorCode;
42816 switch (_b) {
42817 case "BadRequestException": return [3 /*break*/, 2];
42818 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42819 case "ForbiddenException": return [3 /*break*/, 4];
42820 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42821 case "InternalServerErrorException": return [3 /*break*/, 6];
42822 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42823 case "MethodNotAllowedException": return [3 /*break*/, 8];
42824 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42825 case "NotFoundException": return [3 /*break*/, 10];
42826 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42827 case "PayloadTooLargeException": return [3 /*break*/, 12];
42828 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42829 case "TooManyRequestsException": return [3 /*break*/, 14];
42830 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42831 }
42832 return [3 /*break*/, 16];
42833 case 2:
42834 _c = [{}];
42835 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42836 case 3:
42837 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) }]);
42838 return [3 /*break*/, 17];
42839 case 4:
42840 _d = [{}];
42841 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42842 case 5:
42843 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) }]);
42844 return [3 /*break*/, 17];
42845 case 6:
42846 _e = [{}];
42847 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42848 case 7:
42849 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) }]);
42850 return [3 /*break*/, 17];
42851 case 8:
42852 _f = [{}];
42853 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42854 case 9:
42855 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) }]);
42856 return [3 /*break*/, 17];
42857 case 10:
42858 _g = [{}];
42859 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42860 case 11:
42861 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) }]);
42862 return [3 /*break*/, 17];
42863 case 12:
42864 _h = [{}];
42865 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42866 case 13:
42867 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) }]);
42868 return [3 /*break*/, 17];
42869 case 14:
42870 _j = [{}];
42871 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42872 case 15:
42873 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) }]);
42874 return [3 /*break*/, 17];
42875 case 16:
42876 parsedBody = parsedOutput.body;
42877 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42878 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) });
42879 _l.label = 17;
42880 case 17:
42881 message = response.message || response.Message || errorCode;
42882 response.message = message;
42883 delete response.Message;
42884 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42885 }
42886 });
42887}); };
42888var deserializeAws_restJson1GetSegmentsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42889 var contents, data;
42890 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42891 switch (_a.label) {
42892 case 0:
42893 if (output.statusCode !== 200 && output.statusCode >= 300) {
42894 return [2 /*return*/, deserializeAws_restJson1GetSegmentsCommandError(output, context)];
42895 }
42896 contents = {
42897 $metadata: deserializeMetadata(output),
42898 SegmentsResponse: undefined,
42899 };
42900 return [4 /*yield*/, parseBody(output.body, context)];
42901 case 1:
42902 data = _a.sent();
42903 contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context);
42904 return [2 /*return*/, Promise.resolve(contents)];
42905 }
42906 });
42907}); };
42908var deserializeAws_restJson1GetSegmentsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42909 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42910 var _k;
42911 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42912 switch (_l.label) {
42913 case 0:
42914 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42915 _k = {};
42916 return [4 /*yield*/, parseBody(output.body, context)];
42917 case 1:
42918 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42919 errorCode = "UnknownError";
42920 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42921 _b = errorCode;
42922 switch (_b) {
42923 case "BadRequestException": return [3 /*break*/, 2];
42924 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42925 case "ForbiddenException": return [3 /*break*/, 4];
42926 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42927 case "InternalServerErrorException": return [3 /*break*/, 6];
42928 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42929 case "MethodNotAllowedException": return [3 /*break*/, 8];
42930 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42931 case "NotFoundException": return [3 /*break*/, 10];
42932 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42933 case "PayloadTooLargeException": return [3 /*break*/, 12];
42934 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42935 case "TooManyRequestsException": return [3 /*break*/, 14];
42936 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42937 }
42938 return [3 /*break*/, 16];
42939 case 2:
42940 _c = [{}];
42941 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42942 case 3:
42943 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) }]);
42944 return [3 /*break*/, 17];
42945 case 4:
42946 _d = [{}];
42947 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42948 case 5:
42949 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) }]);
42950 return [3 /*break*/, 17];
42951 case 6:
42952 _e = [{}];
42953 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42954 case 7:
42955 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) }]);
42956 return [3 /*break*/, 17];
42957 case 8:
42958 _f = [{}];
42959 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42960 case 9:
42961 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) }]);
42962 return [3 /*break*/, 17];
42963 case 10:
42964 _g = [{}];
42965 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42966 case 11:
42967 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) }]);
42968 return [3 /*break*/, 17];
42969 case 12:
42970 _h = [{}];
42971 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42972 case 13:
42973 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) }]);
42974 return [3 /*break*/, 17];
42975 case 14:
42976 _j = [{}];
42977 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42978 case 15:
42979 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) }]);
42980 return [3 /*break*/, 17];
42981 case 16:
42982 parsedBody = parsedOutput.body;
42983 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42984 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) });
42985 _l.label = 17;
42986 case 17:
42987 message = response.message || response.Message || errorCode;
42988 response.message = message;
42989 delete response.Message;
42990 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42991 }
42992 });
42993}); };
42994var deserializeAws_restJson1GetSegmentVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42995 var contents, data;
42996 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42997 switch (_a.label) {
42998 case 0:
42999 if (output.statusCode !== 200 && output.statusCode >= 300) {
43000 return [2 /*return*/, deserializeAws_restJson1GetSegmentVersionCommandError(output, context)];
43001 }
43002 contents = {
43003 $metadata: deserializeMetadata(output),
43004 SegmentResponse: undefined,
43005 };
43006 return [4 /*yield*/, parseBody(output.body, context)];
43007 case 1:
43008 data = _a.sent();
43009 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
43010 return [2 /*return*/, Promise.resolve(contents)];
43011 }
43012 });
43013}); };
43014var deserializeAws_restJson1GetSegmentVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43015 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43016 var _k;
43017 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43018 switch (_l.label) {
43019 case 0:
43020 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43021 _k = {};
43022 return [4 /*yield*/, parseBody(output.body, context)];
43023 case 1:
43024 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43025 errorCode = "UnknownError";
43026 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43027 _b = errorCode;
43028 switch (_b) {
43029 case "BadRequestException": return [3 /*break*/, 2];
43030 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43031 case "ForbiddenException": return [3 /*break*/, 4];
43032 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43033 case "InternalServerErrorException": return [3 /*break*/, 6];
43034 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43035 case "MethodNotAllowedException": return [3 /*break*/, 8];
43036 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43037 case "NotFoundException": return [3 /*break*/, 10];
43038 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43039 case "PayloadTooLargeException": return [3 /*break*/, 12];
43040 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43041 case "TooManyRequestsException": return [3 /*break*/, 14];
43042 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43043 }
43044 return [3 /*break*/, 16];
43045 case 2:
43046 _c = [{}];
43047 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43048 case 3:
43049 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) }]);
43050 return [3 /*break*/, 17];
43051 case 4:
43052 _d = [{}];
43053 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43054 case 5:
43055 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) }]);
43056 return [3 /*break*/, 17];
43057 case 6:
43058 _e = [{}];
43059 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43060 case 7:
43061 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) }]);
43062 return [3 /*break*/, 17];
43063 case 8:
43064 _f = [{}];
43065 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43066 case 9:
43067 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) }]);
43068 return [3 /*break*/, 17];
43069 case 10:
43070 _g = [{}];
43071 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43072 case 11:
43073 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) }]);
43074 return [3 /*break*/, 17];
43075 case 12:
43076 _h = [{}];
43077 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43078 case 13:
43079 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) }]);
43080 return [3 /*break*/, 17];
43081 case 14:
43082 _j = [{}];
43083 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43084 case 15:
43085 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) }]);
43086 return [3 /*break*/, 17];
43087 case 16:
43088 parsedBody = parsedOutput.body;
43089 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43090 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) });
43091 _l.label = 17;
43092 case 17:
43093 message = response.message || response.Message || errorCode;
43094 response.message = message;
43095 delete response.Message;
43096 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43097 }
43098 });
43099}); };
43100var deserializeAws_restJson1GetSegmentVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43101 var contents, data;
43102 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43103 switch (_a.label) {
43104 case 0:
43105 if (output.statusCode !== 200 && output.statusCode >= 300) {
43106 return [2 /*return*/, deserializeAws_restJson1GetSegmentVersionsCommandError(output, context)];
43107 }
43108 contents = {
43109 $metadata: deserializeMetadata(output),
43110 SegmentsResponse: undefined,
43111 };
43112 return [4 /*yield*/, parseBody(output.body, context)];
43113 case 1:
43114 data = _a.sent();
43115 contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context);
43116 return [2 /*return*/, Promise.resolve(contents)];
43117 }
43118 });
43119}); };
43120var deserializeAws_restJson1GetSegmentVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43121 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43122 var _k;
43123 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43124 switch (_l.label) {
43125 case 0:
43126 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43127 _k = {};
43128 return [4 /*yield*/, parseBody(output.body, context)];
43129 case 1:
43130 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43131 errorCode = "UnknownError";
43132 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43133 _b = errorCode;
43134 switch (_b) {
43135 case "BadRequestException": return [3 /*break*/, 2];
43136 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43137 case "ForbiddenException": return [3 /*break*/, 4];
43138 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43139 case "InternalServerErrorException": return [3 /*break*/, 6];
43140 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43141 case "MethodNotAllowedException": return [3 /*break*/, 8];
43142 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43143 case "NotFoundException": return [3 /*break*/, 10];
43144 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43145 case "PayloadTooLargeException": return [3 /*break*/, 12];
43146 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43147 case "TooManyRequestsException": return [3 /*break*/, 14];
43148 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43149 }
43150 return [3 /*break*/, 16];
43151 case 2:
43152 _c = [{}];
43153 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43154 case 3:
43155 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) }]);
43156 return [3 /*break*/, 17];
43157 case 4:
43158 _d = [{}];
43159 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43160 case 5:
43161 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) }]);
43162 return [3 /*break*/, 17];
43163 case 6:
43164 _e = [{}];
43165 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43166 case 7:
43167 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) }]);
43168 return [3 /*break*/, 17];
43169 case 8:
43170 _f = [{}];
43171 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43172 case 9:
43173 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) }]);
43174 return [3 /*break*/, 17];
43175 case 10:
43176 _g = [{}];
43177 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43178 case 11:
43179 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) }]);
43180 return [3 /*break*/, 17];
43181 case 12:
43182 _h = [{}];
43183 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43184 case 13:
43185 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) }]);
43186 return [3 /*break*/, 17];
43187 case 14:
43188 _j = [{}];
43189 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43190 case 15:
43191 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) }]);
43192 return [3 /*break*/, 17];
43193 case 16:
43194 parsedBody = parsedOutput.body;
43195 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43196 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) });
43197 _l.label = 17;
43198 case 17:
43199 message = response.message || response.Message || errorCode;
43200 response.message = message;
43201 delete response.Message;
43202 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43203 }
43204 });
43205}); };
43206var deserializeAws_restJson1GetSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43207 var contents, data;
43208 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43209 switch (_a.label) {
43210 case 0:
43211 if (output.statusCode !== 200 && output.statusCode >= 300) {
43212 return [2 /*return*/, deserializeAws_restJson1GetSmsChannelCommandError(output, context)];
43213 }
43214 contents = {
43215 $metadata: deserializeMetadata(output),
43216 SMSChannelResponse: undefined,
43217 };
43218 return [4 /*yield*/, parseBody(output.body, context)];
43219 case 1:
43220 data = _a.sent();
43221 contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context);
43222 return [2 /*return*/, Promise.resolve(contents)];
43223 }
43224 });
43225}); };
43226var deserializeAws_restJson1GetSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43227 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43228 var _k;
43229 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43230 switch (_l.label) {
43231 case 0:
43232 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43233 _k = {};
43234 return [4 /*yield*/, parseBody(output.body, context)];
43235 case 1:
43236 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43237 errorCode = "UnknownError";
43238 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43239 _b = errorCode;
43240 switch (_b) {
43241 case "BadRequestException": return [3 /*break*/, 2];
43242 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43243 case "ForbiddenException": return [3 /*break*/, 4];
43244 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43245 case "InternalServerErrorException": return [3 /*break*/, 6];
43246 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43247 case "MethodNotAllowedException": return [3 /*break*/, 8];
43248 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43249 case "NotFoundException": return [3 /*break*/, 10];
43250 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43251 case "PayloadTooLargeException": return [3 /*break*/, 12];
43252 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43253 case "TooManyRequestsException": return [3 /*break*/, 14];
43254 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43255 }
43256 return [3 /*break*/, 16];
43257 case 2:
43258 _c = [{}];
43259 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43260 case 3:
43261 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) }]);
43262 return [3 /*break*/, 17];
43263 case 4:
43264 _d = [{}];
43265 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43266 case 5:
43267 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) }]);
43268 return [3 /*break*/, 17];
43269 case 6:
43270 _e = [{}];
43271 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43272 case 7:
43273 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) }]);
43274 return [3 /*break*/, 17];
43275 case 8:
43276 _f = [{}];
43277 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43278 case 9:
43279 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) }]);
43280 return [3 /*break*/, 17];
43281 case 10:
43282 _g = [{}];
43283 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43284 case 11:
43285 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) }]);
43286 return [3 /*break*/, 17];
43287 case 12:
43288 _h = [{}];
43289 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43290 case 13:
43291 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) }]);
43292 return [3 /*break*/, 17];
43293 case 14:
43294 _j = [{}];
43295 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43296 case 15:
43297 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) }]);
43298 return [3 /*break*/, 17];
43299 case 16:
43300 parsedBody = parsedOutput.body;
43301 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43302 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) });
43303 _l.label = 17;
43304 case 17:
43305 message = response.message || response.Message || errorCode;
43306 response.message = message;
43307 delete response.Message;
43308 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43309 }
43310 });
43311}); };
43312var deserializeAws_restJson1GetSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43313 var contents, data;
43314 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43315 switch (_a.label) {
43316 case 0:
43317 if (output.statusCode !== 200 && output.statusCode >= 300) {
43318 return [2 /*return*/, deserializeAws_restJson1GetSmsTemplateCommandError(output, context)];
43319 }
43320 contents = {
43321 $metadata: deserializeMetadata(output),
43322 SMSTemplateResponse: undefined,
43323 };
43324 return [4 /*yield*/, parseBody(output.body, context)];
43325 case 1:
43326 data = _a.sent();
43327 contents.SMSTemplateResponse = deserializeAws_restJson1SMSTemplateResponse(data, context);
43328 return [2 /*return*/, Promise.resolve(contents)];
43329 }
43330 });
43331}); };
43332var deserializeAws_restJson1GetSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43333 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43334 var _k;
43335 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43336 switch (_l.label) {
43337 case 0:
43338 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43339 _k = {};
43340 return [4 /*yield*/, parseBody(output.body, context)];
43341 case 1:
43342 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43343 errorCode = "UnknownError";
43344 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43345 _b = errorCode;
43346 switch (_b) {
43347 case "BadRequestException": return [3 /*break*/, 2];
43348 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43349 case "ForbiddenException": return [3 /*break*/, 4];
43350 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43351 case "InternalServerErrorException": return [3 /*break*/, 6];
43352 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43353 case "MethodNotAllowedException": return [3 /*break*/, 8];
43354 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43355 case "NotFoundException": return [3 /*break*/, 10];
43356 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43357 case "PayloadTooLargeException": return [3 /*break*/, 12];
43358 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43359 case "TooManyRequestsException": return [3 /*break*/, 14];
43360 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43361 }
43362 return [3 /*break*/, 16];
43363 case 2:
43364 _c = [{}];
43365 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43366 case 3:
43367 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) }]);
43368 return [3 /*break*/, 17];
43369 case 4:
43370 _d = [{}];
43371 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43372 case 5:
43373 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) }]);
43374 return [3 /*break*/, 17];
43375 case 6:
43376 _e = [{}];
43377 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43378 case 7:
43379 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) }]);
43380 return [3 /*break*/, 17];
43381 case 8:
43382 _f = [{}];
43383 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43384 case 9:
43385 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) }]);
43386 return [3 /*break*/, 17];
43387 case 10:
43388 _g = [{}];
43389 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43390 case 11:
43391 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) }]);
43392 return [3 /*break*/, 17];
43393 case 12:
43394 _h = [{}];
43395 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43396 case 13:
43397 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) }]);
43398 return [3 /*break*/, 17];
43399 case 14:
43400 _j = [{}];
43401 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43402 case 15:
43403 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) }]);
43404 return [3 /*break*/, 17];
43405 case 16:
43406 parsedBody = parsedOutput.body;
43407 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43408 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) });
43409 _l.label = 17;
43410 case 17:
43411 message = response.message || response.Message || errorCode;
43412 response.message = message;
43413 delete response.Message;
43414 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43415 }
43416 });
43417}); };
43418var deserializeAws_restJson1GetUserEndpointsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43419 var contents, data;
43420 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43421 switch (_a.label) {
43422 case 0:
43423 if (output.statusCode !== 200 && output.statusCode >= 300) {
43424 return [2 /*return*/, deserializeAws_restJson1GetUserEndpointsCommandError(output, context)];
43425 }
43426 contents = {
43427 $metadata: deserializeMetadata(output),
43428 EndpointsResponse: undefined,
43429 };
43430 return [4 /*yield*/, parseBody(output.body, context)];
43431 case 1:
43432 data = _a.sent();
43433 contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context);
43434 return [2 /*return*/, Promise.resolve(contents)];
43435 }
43436 });
43437}); };
43438var deserializeAws_restJson1GetUserEndpointsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43439 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43440 var _k;
43441 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43442 switch (_l.label) {
43443 case 0:
43444 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43445 _k = {};
43446 return [4 /*yield*/, parseBody(output.body, context)];
43447 case 1:
43448 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43449 errorCode = "UnknownError";
43450 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43451 _b = errorCode;
43452 switch (_b) {
43453 case "BadRequestException": return [3 /*break*/, 2];
43454 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43455 case "ForbiddenException": return [3 /*break*/, 4];
43456 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43457 case "InternalServerErrorException": return [3 /*break*/, 6];
43458 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43459 case "MethodNotAllowedException": return [3 /*break*/, 8];
43460 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43461 case "NotFoundException": return [3 /*break*/, 10];
43462 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43463 case "PayloadTooLargeException": return [3 /*break*/, 12];
43464 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43465 case "TooManyRequestsException": return [3 /*break*/, 14];
43466 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43467 }
43468 return [3 /*break*/, 16];
43469 case 2:
43470 _c = [{}];
43471 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43472 case 3:
43473 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) }]);
43474 return [3 /*break*/, 17];
43475 case 4:
43476 _d = [{}];
43477 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43478 case 5:
43479 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) }]);
43480 return [3 /*break*/, 17];
43481 case 6:
43482 _e = [{}];
43483 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43484 case 7:
43485 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) }]);
43486 return [3 /*break*/, 17];
43487 case 8:
43488 _f = [{}];
43489 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43490 case 9:
43491 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) }]);
43492 return [3 /*break*/, 17];
43493 case 10:
43494 _g = [{}];
43495 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43496 case 11:
43497 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) }]);
43498 return [3 /*break*/, 17];
43499 case 12:
43500 _h = [{}];
43501 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43502 case 13:
43503 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) }]);
43504 return [3 /*break*/, 17];
43505 case 14:
43506 _j = [{}];
43507 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43508 case 15:
43509 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) }]);
43510 return [3 /*break*/, 17];
43511 case 16:
43512 parsedBody = parsedOutput.body;
43513 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43514 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) });
43515 _l.label = 17;
43516 case 17:
43517 message = response.message || response.Message || errorCode;
43518 response.message = message;
43519 delete response.Message;
43520 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43521 }
43522 });
43523}); };
43524var deserializeAws_restJson1GetVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43525 var contents, data;
43526 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43527 switch (_a.label) {
43528 case 0:
43529 if (output.statusCode !== 200 && output.statusCode >= 300) {
43530 return [2 /*return*/, deserializeAws_restJson1GetVoiceChannelCommandError(output, context)];
43531 }
43532 contents = {
43533 $metadata: deserializeMetadata(output),
43534 VoiceChannelResponse: undefined,
43535 };
43536 return [4 /*yield*/, parseBody(output.body, context)];
43537 case 1:
43538 data = _a.sent();
43539 contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context);
43540 return [2 /*return*/, Promise.resolve(contents)];
43541 }
43542 });
43543}); };
43544var deserializeAws_restJson1GetVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43545 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43546 var _k;
43547 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43548 switch (_l.label) {
43549 case 0:
43550 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43551 _k = {};
43552 return [4 /*yield*/, parseBody(output.body, context)];
43553 case 1:
43554 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43555 errorCode = "UnknownError";
43556 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43557 _b = errorCode;
43558 switch (_b) {
43559 case "BadRequestException": return [3 /*break*/, 2];
43560 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43561 case "ForbiddenException": return [3 /*break*/, 4];
43562 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43563 case "InternalServerErrorException": return [3 /*break*/, 6];
43564 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43565 case "MethodNotAllowedException": return [3 /*break*/, 8];
43566 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43567 case "NotFoundException": return [3 /*break*/, 10];
43568 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43569 case "PayloadTooLargeException": return [3 /*break*/, 12];
43570 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43571 case "TooManyRequestsException": return [3 /*break*/, 14];
43572 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43573 }
43574 return [3 /*break*/, 16];
43575 case 2:
43576 _c = [{}];
43577 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43578 case 3:
43579 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) }]);
43580 return [3 /*break*/, 17];
43581 case 4:
43582 _d = [{}];
43583 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43584 case 5:
43585 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) }]);
43586 return [3 /*break*/, 17];
43587 case 6:
43588 _e = [{}];
43589 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43590 case 7:
43591 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) }]);
43592 return [3 /*break*/, 17];
43593 case 8:
43594 _f = [{}];
43595 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43596 case 9:
43597 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) }]);
43598 return [3 /*break*/, 17];
43599 case 10:
43600 _g = [{}];
43601 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43602 case 11:
43603 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) }]);
43604 return [3 /*break*/, 17];
43605 case 12:
43606 _h = [{}];
43607 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43608 case 13:
43609 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) }]);
43610 return [3 /*break*/, 17];
43611 case 14:
43612 _j = [{}];
43613 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43614 case 15:
43615 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) }]);
43616 return [3 /*break*/, 17];
43617 case 16:
43618 parsedBody = parsedOutput.body;
43619 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43620 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) });
43621 _l.label = 17;
43622 case 17:
43623 message = response.message || response.Message || errorCode;
43624 response.message = message;
43625 delete response.Message;
43626 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43627 }
43628 });
43629}); };
43630var deserializeAws_restJson1GetVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43631 var contents, data;
43632 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43633 switch (_a.label) {
43634 case 0:
43635 if (output.statusCode !== 200 && output.statusCode >= 300) {
43636 return [2 /*return*/, deserializeAws_restJson1GetVoiceTemplateCommandError(output, context)];
43637 }
43638 contents = {
43639 $metadata: deserializeMetadata(output),
43640 VoiceTemplateResponse: undefined,
43641 };
43642 return [4 /*yield*/, parseBody(output.body, context)];
43643 case 1:
43644 data = _a.sent();
43645 contents.VoiceTemplateResponse = deserializeAws_restJson1VoiceTemplateResponse(data, context);
43646 return [2 /*return*/, Promise.resolve(contents)];
43647 }
43648 });
43649}); };
43650var deserializeAws_restJson1GetVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43651 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43652 var _k;
43653 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43654 switch (_l.label) {
43655 case 0:
43656 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43657 _k = {};
43658 return [4 /*yield*/, parseBody(output.body, context)];
43659 case 1:
43660 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43661 errorCode = "UnknownError";
43662 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43663 _b = errorCode;
43664 switch (_b) {
43665 case "BadRequestException": return [3 /*break*/, 2];
43666 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43667 case "ForbiddenException": return [3 /*break*/, 4];
43668 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43669 case "InternalServerErrorException": return [3 /*break*/, 6];
43670 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43671 case "MethodNotAllowedException": return [3 /*break*/, 8];
43672 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43673 case "NotFoundException": return [3 /*break*/, 10];
43674 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43675 case "PayloadTooLargeException": return [3 /*break*/, 12];
43676 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43677 case "TooManyRequestsException": return [3 /*break*/, 14];
43678 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43679 }
43680 return [3 /*break*/, 16];
43681 case 2:
43682 _c = [{}];
43683 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43684 case 3:
43685 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) }]);
43686 return [3 /*break*/, 17];
43687 case 4:
43688 _d = [{}];
43689 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43690 case 5:
43691 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) }]);
43692 return [3 /*break*/, 17];
43693 case 6:
43694 _e = [{}];
43695 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43696 case 7:
43697 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) }]);
43698 return [3 /*break*/, 17];
43699 case 8:
43700 _f = [{}];
43701 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43702 case 9:
43703 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) }]);
43704 return [3 /*break*/, 17];
43705 case 10:
43706 _g = [{}];
43707 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43708 case 11:
43709 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) }]);
43710 return [3 /*break*/, 17];
43711 case 12:
43712 _h = [{}];
43713 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43714 case 13:
43715 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) }]);
43716 return [3 /*break*/, 17];
43717 case 14:
43718 _j = [{}];
43719 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43720 case 15:
43721 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) }]);
43722 return [3 /*break*/, 17];
43723 case 16:
43724 parsedBody = parsedOutput.body;
43725 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43726 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) });
43727 _l.label = 17;
43728 case 17:
43729 message = response.message || response.Message || errorCode;
43730 response.message = message;
43731 delete response.Message;
43732 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43733 }
43734 });
43735}); };
43736var deserializeAws_restJson1ListJourneysCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43737 var contents, data;
43738 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43739 switch (_a.label) {
43740 case 0:
43741 if (output.statusCode !== 200 && output.statusCode >= 300) {
43742 return [2 /*return*/, deserializeAws_restJson1ListJourneysCommandError(output, context)];
43743 }
43744 contents = {
43745 $metadata: deserializeMetadata(output),
43746 JourneysResponse: undefined,
43747 };
43748 return [4 /*yield*/, parseBody(output.body, context)];
43749 case 1:
43750 data = _a.sent();
43751 contents.JourneysResponse = deserializeAws_restJson1JourneysResponse(data, context);
43752 return [2 /*return*/, Promise.resolve(contents)];
43753 }
43754 });
43755}); };
43756var deserializeAws_restJson1ListJourneysCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43757 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43758 var _k;
43759 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43760 switch (_l.label) {
43761 case 0:
43762 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43763 _k = {};
43764 return [4 /*yield*/, parseBody(output.body, context)];
43765 case 1:
43766 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43767 errorCode = "UnknownError";
43768 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43769 _b = errorCode;
43770 switch (_b) {
43771 case "BadRequestException": return [3 /*break*/, 2];
43772 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43773 case "ForbiddenException": return [3 /*break*/, 4];
43774 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43775 case "InternalServerErrorException": return [3 /*break*/, 6];
43776 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43777 case "MethodNotAllowedException": return [3 /*break*/, 8];
43778 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43779 case "NotFoundException": return [3 /*break*/, 10];
43780 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43781 case "PayloadTooLargeException": return [3 /*break*/, 12];
43782 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43783 case "TooManyRequestsException": return [3 /*break*/, 14];
43784 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43785 }
43786 return [3 /*break*/, 16];
43787 case 2:
43788 _c = [{}];
43789 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43790 case 3:
43791 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) }]);
43792 return [3 /*break*/, 17];
43793 case 4:
43794 _d = [{}];
43795 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43796 case 5:
43797 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) }]);
43798 return [3 /*break*/, 17];
43799 case 6:
43800 _e = [{}];
43801 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43802 case 7:
43803 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) }]);
43804 return [3 /*break*/, 17];
43805 case 8:
43806 _f = [{}];
43807 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43808 case 9:
43809 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) }]);
43810 return [3 /*break*/, 17];
43811 case 10:
43812 _g = [{}];
43813 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43814 case 11:
43815 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) }]);
43816 return [3 /*break*/, 17];
43817 case 12:
43818 _h = [{}];
43819 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43820 case 13:
43821 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) }]);
43822 return [3 /*break*/, 17];
43823 case 14:
43824 _j = [{}];
43825 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43826 case 15:
43827 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) }]);
43828 return [3 /*break*/, 17];
43829 case 16:
43830 parsedBody = parsedOutput.body;
43831 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43832 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) });
43833 _l.label = 17;
43834 case 17:
43835 message = response.message || response.Message || errorCode;
43836 response.message = message;
43837 delete response.Message;
43838 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43839 }
43840 });
43841}); };
43842var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43843 var contents, data;
43844 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43845 switch (_a.label) {
43846 case 0:
43847 if (output.statusCode !== 200 && output.statusCode >= 300) {
43848 return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
43849 }
43850 contents = {
43851 $metadata: deserializeMetadata(output),
43852 TagsModel: undefined,
43853 };
43854 return [4 /*yield*/, parseBody(output.body, context)];
43855 case 1:
43856 data = _a.sent();
43857 contents.TagsModel = deserializeAws_restJson1TagsModel(data, context);
43858 return [2 /*return*/, Promise.resolve(contents)];
43859 }
43860 });
43861}); };
43862var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43863 var parsedOutput, _a, response, errorCode, parsedBody, message;
43864 var _b;
43865 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
43866 switch (_c.label) {
43867 case 0:
43868 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43869 _b = {};
43870 return [4 /*yield*/, parseBody(output.body, context)];
43871 case 1:
43872 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
43873 errorCode = "UnknownError";
43874 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43875 switch (errorCode) {
43876 default:
43877 parsedBody = parsedOutput.body;
43878 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43879 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) });
43880 }
43881 message = response.message || response.Message || errorCode;
43882 response.message = message;
43883 delete response.Message;
43884 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43885 }
43886 });
43887}); };
43888var deserializeAws_restJson1ListTemplatesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43889 var contents, data;
43890 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43891 switch (_a.label) {
43892 case 0:
43893 if (output.statusCode !== 200 && output.statusCode >= 300) {
43894 return [2 /*return*/, deserializeAws_restJson1ListTemplatesCommandError(output, context)];
43895 }
43896 contents = {
43897 $metadata: deserializeMetadata(output),
43898 TemplatesResponse: undefined,
43899 };
43900 return [4 /*yield*/, parseBody(output.body, context)];
43901 case 1:
43902 data = _a.sent();
43903 contents.TemplatesResponse = deserializeAws_restJson1TemplatesResponse(data, context);
43904 return [2 /*return*/, Promise.resolve(contents)];
43905 }
43906 });
43907}); };
43908var deserializeAws_restJson1ListTemplatesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43909 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
43910 var _h;
43911 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
43912 switch (_j.label) {
43913 case 0:
43914 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43915 _h = {};
43916 return [4 /*yield*/, parseBody(output.body, context)];
43917 case 1:
43918 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
43919 errorCode = "UnknownError";
43920 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43921 _b = errorCode;
43922 switch (_b) {
43923 case "BadRequestException": return [3 /*break*/, 2];
43924 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43925 case "ForbiddenException": return [3 /*break*/, 4];
43926 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43927 case "InternalServerErrorException": return [3 /*break*/, 6];
43928 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43929 case "MethodNotAllowedException": return [3 /*break*/, 8];
43930 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43931 case "TooManyRequestsException": return [3 /*break*/, 10];
43932 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
43933 }
43934 return [3 /*break*/, 12];
43935 case 2:
43936 _c = [{}];
43937 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43938 case 3:
43939 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) }]);
43940 return [3 /*break*/, 13];
43941 case 4:
43942 _d = [{}];
43943 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43944 case 5:
43945 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) }]);
43946 return [3 /*break*/, 13];
43947 case 6:
43948 _e = [{}];
43949 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43950 case 7:
43951 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) }]);
43952 return [3 /*break*/, 13];
43953 case 8:
43954 _f = [{}];
43955 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43956 case 9:
43957 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) }]);
43958 return [3 /*break*/, 13];
43959 case 10:
43960 _g = [{}];
43961 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43962 case 11:
43963 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) }]);
43964 return [3 /*break*/, 13];
43965 case 12:
43966 parsedBody = parsedOutput.body;
43967 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43968 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) });
43969 _j.label = 13;
43970 case 13:
43971 message = response.message || response.Message || errorCode;
43972 response.message = message;
43973 delete response.Message;
43974 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43975 }
43976 });
43977}); };
43978var deserializeAws_restJson1ListTemplateVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43979 var contents, data;
43980 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43981 switch (_a.label) {
43982 case 0:
43983 if (output.statusCode !== 200 && output.statusCode >= 300) {
43984 return [2 /*return*/, deserializeAws_restJson1ListTemplateVersionsCommandError(output, context)];
43985 }
43986 contents = {
43987 $metadata: deserializeMetadata(output),
43988 TemplateVersionsResponse: undefined,
43989 };
43990 return [4 /*yield*/, parseBody(output.body, context)];
43991 case 1:
43992 data = _a.sent();
43993 contents.TemplateVersionsResponse = deserializeAws_restJson1TemplateVersionsResponse(data, context);
43994 return [2 /*return*/, Promise.resolve(contents)];
43995 }
43996 });
43997}); };
43998var deserializeAws_restJson1ListTemplateVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43999 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44000 var _k;
44001 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44002 switch (_l.label) {
44003 case 0:
44004 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44005 _k = {};
44006 return [4 /*yield*/, parseBody(output.body, context)];
44007 case 1:
44008 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44009 errorCode = "UnknownError";
44010 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44011 _b = errorCode;
44012 switch (_b) {
44013 case "BadRequestException": return [3 /*break*/, 2];
44014 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44015 case "ForbiddenException": return [3 /*break*/, 4];
44016 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44017 case "InternalServerErrorException": return [3 /*break*/, 6];
44018 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44019 case "MethodNotAllowedException": return [3 /*break*/, 8];
44020 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44021 case "NotFoundException": return [3 /*break*/, 10];
44022 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44023 case "PayloadTooLargeException": return [3 /*break*/, 12];
44024 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44025 case "TooManyRequestsException": return [3 /*break*/, 14];
44026 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44027 }
44028 return [3 /*break*/, 16];
44029 case 2:
44030 _c = [{}];
44031 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44032 case 3:
44033 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) }]);
44034 return [3 /*break*/, 17];
44035 case 4:
44036 _d = [{}];
44037 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44038 case 5:
44039 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) }]);
44040 return [3 /*break*/, 17];
44041 case 6:
44042 _e = [{}];
44043 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44044 case 7:
44045 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) }]);
44046 return [3 /*break*/, 17];
44047 case 8:
44048 _f = [{}];
44049 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44050 case 9:
44051 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) }]);
44052 return [3 /*break*/, 17];
44053 case 10:
44054 _g = [{}];
44055 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44056 case 11:
44057 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) }]);
44058 return [3 /*break*/, 17];
44059 case 12:
44060 _h = [{}];
44061 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44062 case 13:
44063 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) }]);
44064 return [3 /*break*/, 17];
44065 case 14:
44066 _j = [{}];
44067 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44068 case 15:
44069 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) }]);
44070 return [3 /*break*/, 17];
44071 case 16:
44072 parsedBody = parsedOutput.body;
44073 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44074 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) });
44075 _l.label = 17;
44076 case 17:
44077 message = response.message || response.Message || errorCode;
44078 response.message = message;
44079 delete response.Message;
44080 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44081 }
44082 });
44083}); };
44084var deserializeAws_restJson1PhoneNumberValidateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44085 var contents, data;
44086 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44087 switch (_a.label) {
44088 case 0:
44089 if (output.statusCode !== 200 && output.statusCode >= 300) {
44090 return [2 /*return*/, deserializeAws_restJson1PhoneNumberValidateCommandError(output, context)];
44091 }
44092 contents = {
44093 $metadata: deserializeMetadata(output),
44094 NumberValidateResponse: undefined,
44095 };
44096 return [4 /*yield*/, parseBody(output.body, context)];
44097 case 1:
44098 data = _a.sent();
44099 contents.NumberValidateResponse = deserializeAws_restJson1NumberValidateResponse(data, context);
44100 return [2 /*return*/, Promise.resolve(contents)];
44101 }
44102 });
44103}); };
44104var deserializeAws_restJson1PhoneNumberValidateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44105 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44106 var _k;
44107 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44108 switch (_l.label) {
44109 case 0:
44110 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44111 _k = {};
44112 return [4 /*yield*/, parseBody(output.body, context)];
44113 case 1:
44114 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44115 errorCode = "UnknownError";
44116 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44117 _b = errorCode;
44118 switch (_b) {
44119 case "BadRequestException": return [3 /*break*/, 2];
44120 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44121 case "ForbiddenException": return [3 /*break*/, 4];
44122 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44123 case "InternalServerErrorException": return [3 /*break*/, 6];
44124 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44125 case "MethodNotAllowedException": return [3 /*break*/, 8];
44126 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44127 case "NotFoundException": return [3 /*break*/, 10];
44128 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44129 case "PayloadTooLargeException": return [3 /*break*/, 12];
44130 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44131 case "TooManyRequestsException": return [3 /*break*/, 14];
44132 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44133 }
44134 return [3 /*break*/, 16];
44135 case 2:
44136 _c = [{}];
44137 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44138 case 3:
44139 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) }]);
44140 return [3 /*break*/, 17];
44141 case 4:
44142 _d = [{}];
44143 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44144 case 5:
44145 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) }]);
44146 return [3 /*break*/, 17];
44147 case 6:
44148 _e = [{}];
44149 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44150 case 7:
44151 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) }]);
44152 return [3 /*break*/, 17];
44153 case 8:
44154 _f = [{}];
44155 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44156 case 9:
44157 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) }]);
44158 return [3 /*break*/, 17];
44159 case 10:
44160 _g = [{}];
44161 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44162 case 11:
44163 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) }]);
44164 return [3 /*break*/, 17];
44165 case 12:
44166 _h = [{}];
44167 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44168 case 13:
44169 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) }]);
44170 return [3 /*break*/, 17];
44171 case 14:
44172 _j = [{}];
44173 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44174 case 15:
44175 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) }]);
44176 return [3 /*break*/, 17];
44177 case 16:
44178 parsedBody = parsedOutput.body;
44179 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44180 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) });
44181 _l.label = 17;
44182 case 17:
44183 message = response.message || response.Message || errorCode;
44184 response.message = message;
44185 delete response.Message;
44186 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44187 }
44188 });
44189}); };
44190var deserializeAws_restJson1PutEventsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44191 var contents, data;
44192 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44193 switch (_a.label) {
44194 case 0:
44195 if (output.statusCode !== 202 && output.statusCode >= 300) {
44196 return [2 /*return*/, deserializeAws_restJson1PutEventsCommandError(output, context)];
44197 }
44198 contents = {
44199 $metadata: deserializeMetadata(output),
44200 EventsResponse: undefined,
44201 };
44202 return [4 /*yield*/, parseBody(output.body, context)];
44203 case 1:
44204 data = _a.sent();
44205 contents.EventsResponse = deserializeAws_restJson1EventsResponse(data, context);
44206 return [2 /*return*/, Promise.resolve(contents)];
44207 }
44208 });
44209}); };
44210var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44211 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44212 var _k;
44213 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44214 switch (_l.label) {
44215 case 0:
44216 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44217 _k = {};
44218 return [4 /*yield*/, parseBody(output.body, context)];
44219 case 1:
44220 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44221 errorCode = "UnknownError";
44222 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44223 _b = errorCode;
44224 switch (_b) {
44225 case "BadRequestException": return [3 /*break*/, 2];
44226 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44227 case "ForbiddenException": return [3 /*break*/, 4];
44228 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44229 case "InternalServerErrorException": return [3 /*break*/, 6];
44230 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44231 case "MethodNotAllowedException": return [3 /*break*/, 8];
44232 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44233 case "NotFoundException": return [3 /*break*/, 10];
44234 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44235 case "PayloadTooLargeException": return [3 /*break*/, 12];
44236 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44237 case "TooManyRequestsException": return [3 /*break*/, 14];
44238 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44239 }
44240 return [3 /*break*/, 16];
44241 case 2:
44242 _c = [{}];
44243 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44244 case 3:
44245 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) }]);
44246 return [3 /*break*/, 17];
44247 case 4:
44248 _d = [{}];
44249 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44250 case 5:
44251 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) }]);
44252 return [3 /*break*/, 17];
44253 case 6:
44254 _e = [{}];
44255 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44256 case 7:
44257 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) }]);
44258 return [3 /*break*/, 17];
44259 case 8:
44260 _f = [{}];
44261 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44262 case 9:
44263 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) }]);
44264 return [3 /*break*/, 17];
44265 case 10:
44266 _g = [{}];
44267 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44268 case 11:
44269 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) }]);
44270 return [3 /*break*/, 17];
44271 case 12:
44272 _h = [{}];
44273 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44274 case 13:
44275 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) }]);
44276 return [3 /*break*/, 17];
44277 case 14:
44278 _j = [{}];
44279 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44280 case 15:
44281 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) }]);
44282 return [3 /*break*/, 17];
44283 case 16:
44284 parsedBody = parsedOutput.body;
44285 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44286 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) });
44287 _l.label = 17;
44288 case 17:
44289 message = response.message || response.Message || errorCode;
44290 response.message = message;
44291 delete response.Message;
44292 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44293 }
44294 });
44295}); };
44296var deserializeAws_restJson1PutEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44297 var contents, data;
44298 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44299 switch (_a.label) {
44300 case 0:
44301 if (output.statusCode !== 200 && output.statusCode >= 300) {
44302 return [2 /*return*/, deserializeAws_restJson1PutEventStreamCommandError(output, context)];
44303 }
44304 contents = {
44305 $metadata: deserializeMetadata(output),
44306 EventStream: undefined,
44307 };
44308 return [4 /*yield*/, parseBody(output.body, context)];
44309 case 1:
44310 data = _a.sent();
44311 contents.EventStream = deserializeAws_restJson1EventStream(data, context);
44312 return [2 /*return*/, Promise.resolve(contents)];
44313 }
44314 });
44315}); };
44316var deserializeAws_restJson1PutEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44317 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44318 var _k;
44319 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44320 switch (_l.label) {
44321 case 0:
44322 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44323 _k = {};
44324 return [4 /*yield*/, parseBody(output.body, context)];
44325 case 1:
44326 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44327 errorCode = "UnknownError";
44328 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44329 _b = errorCode;
44330 switch (_b) {
44331 case "BadRequestException": return [3 /*break*/, 2];
44332 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44333 case "ForbiddenException": return [3 /*break*/, 4];
44334 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44335 case "InternalServerErrorException": return [3 /*break*/, 6];
44336 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44337 case "MethodNotAllowedException": return [3 /*break*/, 8];
44338 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44339 case "NotFoundException": return [3 /*break*/, 10];
44340 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44341 case "PayloadTooLargeException": return [3 /*break*/, 12];
44342 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44343 case "TooManyRequestsException": return [3 /*break*/, 14];
44344 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44345 }
44346 return [3 /*break*/, 16];
44347 case 2:
44348 _c = [{}];
44349 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44350 case 3:
44351 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) }]);
44352 return [3 /*break*/, 17];
44353 case 4:
44354 _d = [{}];
44355 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44356 case 5:
44357 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) }]);
44358 return [3 /*break*/, 17];
44359 case 6:
44360 _e = [{}];
44361 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44362 case 7:
44363 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) }]);
44364 return [3 /*break*/, 17];
44365 case 8:
44366 _f = [{}];
44367 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44368 case 9:
44369 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) }]);
44370 return [3 /*break*/, 17];
44371 case 10:
44372 _g = [{}];
44373 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44374 case 11:
44375 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) }]);
44376 return [3 /*break*/, 17];
44377 case 12:
44378 _h = [{}];
44379 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44380 case 13:
44381 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) }]);
44382 return [3 /*break*/, 17];
44383 case 14:
44384 _j = [{}];
44385 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44386 case 15:
44387 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) }]);
44388 return [3 /*break*/, 17];
44389 case 16:
44390 parsedBody = parsedOutput.body;
44391 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44392 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) });
44393 _l.label = 17;
44394 case 17:
44395 message = response.message || response.Message || errorCode;
44396 response.message = message;
44397 delete response.Message;
44398 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44399 }
44400 });
44401}); };
44402var deserializeAws_restJson1RemoveAttributesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44403 var contents, data;
44404 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44405 switch (_a.label) {
44406 case 0:
44407 if (output.statusCode !== 200 && output.statusCode >= 300) {
44408 return [2 /*return*/, deserializeAws_restJson1RemoveAttributesCommandError(output, context)];
44409 }
44410 contents = {
44411 $metadata: deserializeMetadata(output),
44412 AttributesResource: undefined,
44413 };
44414 return [4 /*yield*/, parseBody(output.body, context)];
44415 case 1:
44416 data = _a.sent();
44417 contents.AttributesResource = deserializeAws_restJson1AttributesResource(data, context);
44418 return [2 /*return*/, Promise.resolve(contents)];
44419 }
44420 });
44421}); };
44422var deserializeAws_restJson1RemoveAttributesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44423 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44424 var _k;
44425 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44426 switch (_l.label) {
44427 case 0:
44428 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44429 _k = {};
44430 return [4 /*yield*/, parseBody(output.body, context)];
44431 case 1:
44432 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44433 errorCode = "UnknownError";
44434 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44435 _b = errorCode;
44436 switch (_b) {
44437 case "BadRequestException": return [3 /*break*/, 2];
44438 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44439 case "ForbiddenException": return [3 /*break*/, 4];
44440 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44441 case "InternalServerErrorException": return [3 /*break*/, 6];
44442 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44443 case "MethodNotAllowedException": return [3 /*break*/, 8];
44444 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44445 case "NotFoundException": return [3 /*break*/, 10];
44446 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44447 case "PayloadTooLargeException": return [3 /*break*/, 12];
44448 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44449 case "TooManyRequestsException": return [3 /*break*/, 14];
44450 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44451 }
44452 return [3 /*break*/, 16];
44453 case 2:
44454 _c = [{}];
44455 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44456 case 3:
44457 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) }]);
44458 return [3 /*break*/, 17];
44459 case 4:
44460 _d = [{}];
44461 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44462 case 5:
44463 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) }]);
44464 return [3 /*break*/, 17];
44465 case 6:
44466 _e = [{}];
44467 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44468 case 7:
44469 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) }]);
44470 return [3 /*break*/, 17];
44471 case 8:
44472 _f = [{}];
44473 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44474 case 9:
44475 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) }]);
44476 return [3 /*break*/, 17];
44477 case 10:
44478 _g = [{}];
44479 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44480 case 11:
44481 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) }]);
44482 return [3 /*break*/, 17];
44483 case 12:
44484 _h = [{}];
44485 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44486 case 13:
44487 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) }]);
44488 return [3 /*break*/, 17];
44489 case 14:
44490 _j = [{}];
44491 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44492 case 15:
44493 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) }]);
44494 return [3 /*break*/, 17];
44495 case 16:
44496 parsedBody = parsedOutput.body;
44497 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44498 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) });
44499 _l.label = 17;
44500 case 17:
44501 message = response.message || response.Message || errorCode;
44502 response.message = message;
44503 delete response.Message;
44504 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44505 }
44506 });
44507}); };
44508var deserializeAws_restJson1SendMessagesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44509 var contents, data;
44510 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44511 switch (_a.label) {
44512 case 0:
44513 if (output.statusCode !== 200 && output.statusCode >= 300) {
44514 return [2 /*return*/, deserializeAws_restJson1SendMessagesCommandError(output, context)];
44515 }
44516 contents = {
44517 $metadata: deserializeMetadata(output),
44518 MessageResponse: undefined,
44519 };
44520 return [4 /*yield*/, parseBody(output.body, context)];
44521 case 1:
44522 data = _a.sent();
44523 contents.MessageResponse = deserializeAws_restJson1MessageResponse(data, context);
44524 return [2 /*return*/, Promise.resolve(contents)];
44525 }
44526 });
44527}); };
44528var deserializeAws_restJson1SendMessagesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44529 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44530 var _k;
44531 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44532 switch (_l.label) {
44533 case 0:
44534 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44535 _k = {};
44536 return [4 /*yield*/, parseBody(output.body, context)];
44537 case 1:
44538 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44539 errorCode = "UnknownError";
44540 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44541 _b = errorCode;
44542 switch (_b) {
44543 case "BadRequestException": return [3 /*break*/, 2];
44544 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44545 case "ForbiddenException": return [3 /*break*/, 4];
44546 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44547 case "InternalServerErrorException": return [3 /*break*/, 6];
44548 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44549 case "MethodNotAllowedException": return [3 /*break*/, 8];
44550 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44551 case "NotFoundException": return [3 /*break*/, 10];
44552 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44553 case "PayloadTooLargeException": return [3 /*break*/, 12];
44554 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44555 case "TooManyRequestsException": return [3 /*break*/, 14];
44556 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44557 }
44558 return [3 /*break*/, 16];
44559 case 2:
44560 _c = [{}];
44561 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44562 case 3:
44563 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) }]);
44564 return [3 /*break*/, 17];
44565 case 4:
44566 _d = [{}];
44567 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44568 case 5:
44569 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) }]);
44570 return [3 /*break*/, 17];
44571 case 6:
44572 _e = [{}];
44573 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44574 case 7:
44575 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) }]);
44576 return [3 /*break*/, 17];
44577 case 8:
44578 _f = [{}];
44579 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44580 case 9:
44581 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) }]);
44582 return [3 /*break*/, 17];
44583 case 10:
44584 _g = [{}];
44585 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44586 case 11:
44587 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) }]);
44588 return [3 /*break*/, 17];
44589 case 12:
44590 _h = [{}];
44591 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44592 case 13:
44593 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) }]);
44594 return [3 /*break*/, 17];
44595 case 14:
44596 _j = [{}];
44597 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44598 case 15:
44599 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) }]);
44600 return [3 /*break*/, 17];
44601 case 16:
44602 parsedBody = parsedOutput.body;
44603 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44604 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) });
44605 _l.label = 17;
44606 case 17:
44607 message = response.message || response.Message || errorCode;
44608 response.message = message;
44609 delete response.Message;
44610 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44611 }
44612 });
44613}); };
44614var deserializeAws_restJson1SendUsersMessagesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44615 var contents, data;
44616 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44617 switch (_a.label) {
44618 case 0:
44619 if (output.statusCode !== 200 && output.statusCode >= 300) {
44620 return [2 /*return*/, deserializeAws_restJson1SendUsersMessagesCommandError(output, context)];
44621 }
44622 contents = {
44623 $metadata: deserializeMetadata(output),
44624 SendUsersMessageResponse: undefined,
44625 };
44626 return [4 /*yield*/, parseBody(output.body, context)];
44627 case 1:
44628 data = _a.sent();
44629 contents.SendUsersMessageResponse = deserializeAws_restJson1SendUsersMessageResponse(data, context);
44630 return [2 /*return*/, Promise.resolve(contents)];
44631 }
44632 });
44633}); };
44634var deserializeAws_restJson1SendUsersMessagesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44635 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44636 var _k;
44637 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44638 switch (_l.label) {
44639 case 0:
44640 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44641 _k = {};
44642 return [4 /*yield*/, parseBody(output.body, context)];
44643 case 1:
44644 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44645 errorCode = "UnknownError";
44646 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44647 _b = errorCode;
44648 switch (_b) {
44649 case "BadRequestException": return [3 /*break*/, 2];
44650 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44651 case "ForbiddenException": return [3 /*break*/, 4];
44652 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44653 case "InternalServerErrorException": return [3 /*break*/, 6];
44654 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44655 case "MethodNotAllowedException": return [3 /*break*/, 8];
44656 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44657 case "NotFoundException": return [3 /*break*/, 10];
44658 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44659 case "PayloadTooLargeException": return [3 /*break*/, 12];
44660 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44661 case "TooManyRequestsException": return [3 /*break*/, 14];
44662 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44663 }
44664 return [3 /*break*/, 16];
44665 case 2:
44666 _c = [{}];
44667 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44668 case 3:
44669 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) }]);
44670 return [3 /*break*/, 17];
44671 case 4:
44672 _d = [{}];
44673 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44674 case 5:
44675 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) }]);
44676 return [3 /*break*/, 17];
44677 case 6:
44678 _e = [{}];
44679 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44680 case 7:
44681 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) }]);
44682 return [3 /*break*/, 17];
44683 case 8:
44684 _f = [{}];
44685 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44686 case 9:
44687 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) }]);
44688 return [3 /*break*/, 17];
44689 case 10:
44690 _g = [{}];
44691 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44692 case 11:
44693 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) }]);
44694 return [3 /*break*/, 17];
44695 case 12:
44696 _h = [{}];
44697 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44698 case 13:
44699 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) }]);
44700 return [3 /*break*/, 17];
44701 case 14:
44702 _j = [{}];
44703 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44704 case 15:
44705 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) }]);
44706 return [3 /*break*/, 17];
44707 case 16:
44708 parsedBody = parsedOutput.body;
44709 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44710 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) });
44711 _l.label = 17;
44712 case 17:
44713 message = response.message || response.Message || errorCode;
44714 response.message = message;
44715 delete response.Message;
44716 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44717 }
44718 });
44719}); };
44720var deserializeAws_restJson1TagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44721 var contents;
44722 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44723 switch (_a.label) {
44724 case 0:
44725 if (output.statusCode !== 204 && output.statusCode >= 300) {
44726 return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
44727 }
44728 contents = {
44729 $metadata: deserializeMetadata(output),
44730 };
44731 return [4 /*yield*/, collectBody(output.body, context)];
44732 case 1:
44733 _a.sent();
44734 return [2 /*return*/, Promise.resolve(contents)];
44735 }
44736 });
44737}); };
44738var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44739 var parsedOutput, _a, response, errorCode, parsedBody, message;
44740 var _b;
44741 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
44742 switch (_c.label) {
44743 case 0:
44744 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44745 _b = {};
44746 return [4 /*yield*/, parseBody(output.body, context)];
44747 case 1:
44748 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
44749 errorCode = "UnknownError";
44750 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44751 switch (errorCode) {
44752 default:
44753 parsedBody = parsedOutput.body;
44754 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44755 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) });
44756 }
44757 message = response.message || response.Message || errorCode;
44758 response.message = message;
44759 delete response.Message;
44760 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44761 }
44762 });
44763}); };
44764var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44765 var contents;
44766 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44767 switch (_a.label) {
44768 case 0:
44769 if (output.statusCode !== 204 && output.statusCode >= 300) {
44770 return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
44771 }
44772 contents = {
44773 $metadata: deserializeMetadata(output),
44774 };
44775 return [4 /*yield*/, collectBody(output.body, context)];
44776 case 1:
44777 _a.sent();
44778 return [2 /*return*/, Promise.resolve(contents)];
44779 }
44780 });
44781}); };
44782var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44783 var parsedOutput, _a, response, errorCode, parsedBody, message;
44784 var _b;
44785 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
44786 switch (_c.label) {
44787 case 0:
44788 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44789 _b = {};
44790 return [4 /*yield*/, parseBody(output.body, context)];
44791 case 1:
44792 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
44793 errorCode = "UnknownError";
44794 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44795 switch (errorCode) {
44796 default:
44797 parsedBody = parsedOutput.body;
44798 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44799 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) });
44800 }
44801 message = response.message || response.Message || errorCode;
44802 response.message = message;
44803 delete response.Message;
44804 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44805 }
44806 });
44807}); };
44808var deserializeAws_restJson1UpdateAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44809 var contents, data;
44810 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44811 switch (_a.label) {
44812 case 0:
44813 if (output.statusCode !== 200 && output.statusCode >= 300) {
44814 return [2 /*return*/, deserializeAws_restJson1UpdateAdmChannelCommandError(output, context)];
44815 }
44816 contents = {
44817 $metadata: deserializeMetadata(output),
44818 ADMChannelResponse: undefined,
44819 };
44820 return [4 /*yield*/, parseBody(output.body, context)];
44821 case 1:
44822 data = _a.sent();
44823 contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context);
44824 return [2 /*return*/, Promise.resolve(contents)];
44825 }
44826 });
44827}); };
44828var deserializeAws_restJson1UpdateAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44829 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44830 var _k;
44831 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44832 switch (_l.label) {
44833 case 0:
44834 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44835 _k = {};
44836 return [4 /*yield*/, parseBody(output.body, context)];
44837 case 1:
44838 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44839 errorCode = "UnknownError";
44840 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44841 _b = errorCode;
44842 switch (_b) {
44843 case "BadRequestException": return [3 /*break*/, 2];
44844 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44845 case "ForbiddenException": return [3 /*break*/, 4];
44846 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44847 case "InternalServerErrorException": return [3 /*break*/, 6];
44848 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44849 case "MethodNotAllowedException": return [3 /*break*/, 8];
44850 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44851 case "NotFoundException": return [3 /*break*/, 10];
44852 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44853 case "PayloadTooLargeException": return [3 /*break*/, 12];
44854 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44855 case "TooManyRequestsException": return [3 /*break*/, 14];
44856 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44857 }
44858 return [3 /*break*/, 16];
44859 case 2:
44860 _c = [{}];
44861 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44862 case 3:
44863 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) }]);
44864 return [3 /*break*/, 17];
44865 case 4:
44866 _d = [{}];
44867 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44868 case 5:
44869 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) }]);
44870 return [3 /*break*/, 17];
44871 case 6:
44872 _e = [{}];
44873 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44874 case 7:
44875 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) }]);
44876 return [3 /*break*/, 17];
44877 case 8:
44878 _f = [{}];
44879 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44880 case 9:
44881 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) }]);
44882 return [3 /*break*/, 17];
44883 case 10:
44884 _g = [{}];
44885 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44886 case 11:
44887 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) }]);
44888 return [3 /*break*/, 17];
44889 case 12:
44890 _h = [{}];
44891 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44892 case 13:
44893 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) }]);
44894 return [3 /*break*/, 17];
44895 case 14:
44896 _j = [{}];
44897 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44898 case 15:
44899 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) }]);
44900 return [3 /*break*/, 17];
44901 case 16:
44902 parsedBody = parsedOutput.body;
44903 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44904 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) });
44905 _l.label = 17;
44906 case 17:
44907 message = response.message || response.Message || errorCode;
44908 response.message = message;
44909 delete response.Message;
44910 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44911 }
44912 });
44913}); };
44914var deserializeAws_restJson1UpdateApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44915 var contents, data;
44916 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44917 switch (_a.label) {
44918 case 0:
44919 if (output.statusCode !== 200 && output.statusCode >= 300) {
44920 return [2 /*return*/, deserializeAws_restJson1UpdateApnsChannelCommandError(output, context)];
44921 }
44922 contents = {
44923 $metadata: deserializeMetadata(output),
44924 APNSChannelResponse: undefined,
44925 };
44926 return [4 /*yield*/, parseBody(output.body, context)];
44927 case 1:
44928 data = _a.sent();
44929 contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context);
44930 return [2 /*return*/, Promise.resolve(contents)];
44931 }
44932 });
44933}); };
44934var deserializeAws_restJson1UpdateApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44935 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44936 var _k;
44937 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44938 switch (_l.label) {
44939 case 0:
44940 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44941 _k = {};
44942 return [4 /*yield*/, parseBody(output.body, context)];
44943 case 1:
44944 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44945 errorCode = "UnknownError";
44946 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44947 _b = errorCode;
44948 switch (_b) {
44949 case "BadRequestException": return [3 /*break*/, 2];
44950 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44951 case "ForbiddenException": return [3 /*break*/, 4];
44952 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44953 case "InternalServerErrorException": return [3 /*break*/, 6];
44954 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44955 case "MethodNotAllowedException": return [3 /*break*/, 8];
44956 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44957 case "NotFoundException": return [3 /*break*/, 10];
44958 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44959 case "PayloadTooLargeException": return [3 /*break*/, 12];
44960 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44961 case "TooManyRequestsException": return [3 /*break*/, 14];
44962 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44963 }
44964 return [3 /*break*/, 16];
44965 case 2:
44966 _c = [{}];
44967 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44968 case 3:
44969 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) }]);
44970 return [3 /*break*/, 17];
44971 case 4:
44972 _d = [{}];
44973 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44974 case 5:
44975 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) }]);
44976 return [3 /*break*/, 17];
44977 case 6:
44978 _e = [{}];
44979 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44980 case 7:
44981 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) }]);
44982 return [3 /*break*/, 17];
44983 case 8:
44984 _f = [{}];
44985 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44986 case 9:
44987 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) }]);
44988 return [3 /*break*/, 17];
44989 case 10:
44990 _g = [{}];
44991 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44992 case 11:
44993 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) }]);
44994 return [3 /*break*/, 17];
44995 case 12:
44996 _h = [{}];
44997 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44998 case 13:
44999 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) }]);
45000 return [3 /*break*/, 17];
45001 case 14:
45002 _j = [{}];
45003 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45004 case 15:
45005 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) }]);
45006 return [3 /*break*/, 17];
45007 case 16:
45008 parsedBody = parsedOutput.body;
45009 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45010 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) });
45011 _l.label = 17;
45012 case 17:
45013 message = response.message || response.Message || errorCode;
45014 response.message = message;
45015 delete response.Message;
45016 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45017 }
45018 });
45019}); };
45020var deserializeAws_restJson1UpdateApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45021 var contents, data;
45022 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45023 switch (_a.label) {
45024 case 0:
45025 if (output.statusCode !== 200 && output.statusCode >= 300) {
45026 return [2 /*return*/, deserializeAws_restJson1UpdateApnsSandboxChannelCommandError(output, context)];
45027 }
45028 contents = {
45029 $metadata: deserializeMetadata(output),
45030 APNSSandboxChannelResponse: undefined,
45031 };
45032 return [4 /*yield*/, parseBody(output.body, context)];
45033 case 1:
45034 data = _a.sent();
45035 contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context);
45036 return [2 /*return*/, Promise.resolve(contents)];
45037 }
45038 });
45039}); };
45040var deserializeAws_restJson1UpdateApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45041 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45042 var _k;
45043 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45044 switch (_l.label) {
45045 case 0:
45046 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45047 _k = {};
45048 return [4 /*yield*/, parseBody(output.body, context)];
45049 case 1:
45050 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45051 errorCode = "UnknownError";
45052 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45053 _b = errorCode;
45054 switch (_b) {
45055 case "BadRequestException": return [3 /*break*/, 2];
45056 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45057 case "ForbiddenException": return [3 /*break*/, 4];
45058 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45059 case "InternalServerErrorException": return [3 /*break*/, 6];
45060 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45061 case "MethodNotAllowedException": return [3 /*break*/, 8];
45062 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45063 case "NotFoundException": return [3 /*break*/, 10];
45064 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45065 case "PayloadTooLargeException": return [3 /*break*/, 12];
45066 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45067 case "TooManyRequestsException": return [3 /*break*/, 14];
45068 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45069 }
45070 return [3 /*break*/, 16];
45071 case 2:
45072 _c = [{}];
45073 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45074 case 3:
45075 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) }]);
45076 return [3 /*break*/, 17];
45077 case 4:
45078 _d = [{}];
45079 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45080 case 5:
45081 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) }]);
45082 return [3 /*break*/, 17];
45083 case 6:
45084 _e = [{}];
45085 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45086 case 7:
45087 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) }]);
45088 return [3 /*break*/, 17];
45089 case 8:
45090 _f = [{}];
45091 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45092 case 9:
45093 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) }]);
45094 return [3 /*break*/, 17];
45095 case 10:
45096 _g = [{}];
45097 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45098 case 11:
45099 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) }]);
45100 return [3 /*break*/, 17];
45101 case 12:
45102 _h = [{}];
45103 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45104 case 13:
45105 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) }]);
45106 return [3 /*break*/, 17];
45107 case 14:
45108 _j = [{}];
45109 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45110 case 15:
45111 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) }]);
45112 return [3 /*break*/, 17];
45113 case 16:
45114 parsedBody = parsedOutput.body;
45115 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45116 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) });
45117 _l.label = 17;
45118 case 17:
45119 message = response.message || response.Message || errorCode;
45120 response.message = message;
45121 delete response.Message;
45122 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45123 }
45124 });
45125}); };
45126var deserializeAws_restJson1UpdateApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45127 var contents, data;
45128 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45129 switch (_a.label) {
45130 case 0:
45131 if (output.statusCode !== 200 && output.statusCode >= 300) {
45132 return [2 /*return*/, deserializeAws_restJson1UpdateApnsVoipChannelCommandError(output, context)];
45133 }
45134 contents = {
45135 $metadata: deserializeMetadata(output),
45136 APNSVoipChannelResponse: undefined,
45137 };
45138 return [4 /*yield*/, parseBody(output.body, context)];
45139 case 1:
45140 data = _a.sent();
45141 contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context);
45142 return [2 /*return*/, Promise.resolve(contents)];
45143 }
45144 });
45145}); };
45146var deserializeAws_restJson1UpdateApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45147 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45148 var _k;
45149 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45150 switch (_l.label) {
45151 case 0:
45152 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45153 _k = {};
45154 return [4 /*yield*/, parseBody(output.body, context)];
45155 case 1:
45156 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45157 errorCode = "UnknownError";
45158 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45159 _b = errorCode;
45160 switch (_b) {
45161 case "BadRequestException": return [3 /*break*/, 2];
45162 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45163 case "ForbiddenException": return [3 /*break*/, 4];
45164 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45165 case "InternalServerErrorException": return [3 /*break*/, 6];
45166 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45167 case "MethodNotAllowedException": return [3 /*break*/, 8];
45168 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45169 case "NotFoundException": return [3 /*break*/, 10];
45170 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45171 case "PayloadTooLargeException": return [3 /*break*/, 12];
45172 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45173 case "TooManyRequestsException": return [3 /*break*/, 14];
45174 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45175 }
45176 return [3 /*break*/, 16];
45177 case 2:
45178 _c = [{}];
45179 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45180 case 3:
45181 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) }]);
45182 return [3 /*break*/, 17];
45183 case 4:
45184 _d = [{}];
45185 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45186 case 5:
45187 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) }]);
45188 return [3 /*break*/, 17];
45189 case 6:
45190 _e = [{}];
45191 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45192 case 7:
45193 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) }]);
45194 return [3 /*break*/, 17];
45195 case 8:
45196 _f = [{}];
45197 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45198 case 9:
45199 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) }]);
45200 return [3 /*break*/, 17];
45201 case 10:
45202 _g = [{}];
45203 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45204 case 11:
45205 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) }]);
45206 return [3 /*break*/, 17];
45207 case 12:
45208 _h = [{}];
45209 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45210 case 13:
45211 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) }]);
45212 return [3 /*break*/, 17];
45213 case 14:
45214 _j = [{}];
45215 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45216 case 15:
45217 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) }]);
45218 return [3 /*break*/, 17];
45219 case 16:
45220 parsedBody = parsedOutput.body;
45221 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45222 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) });
45223 _l.label = 17;
45224 case 17:
45225 message = response.message || response.Message || errorCode;
45226 response.message = message;
45227 delete response.Message;
45228 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45229 }
45230 });
45231}); };
45232var deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45233 var contents, data;
45234 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45235 switch (_a.label) {
45236 case 0:
45237 if (output.statusCode !== 200 && output.statusCode >= 300) {
45238 return [2 /*return*/, deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommandError(output, context)];
45239 }
45240 contents = {
45241 $metadata: deserializeMetadata(output),
45242 APNSVoipSandboxChannelResponse: undefined,
45243 };
45244 return [4 /*yield*/, parseBody(output.body, context)];
45245 case 1:
45246 data = _a.sent();
45247 contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context);
45248 return [2 /*return*/, Promise.resolve(contents)];
45249 }
45250 });
45251}); };
45252var deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45253 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45254 var _k;
45255 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45256 switch (_l.label) {
45257 case 0:
45258 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45259 _k = {};
45260 return [4 /*yield*/, parseBody(output.body, context)];
45261 case 1:
45262 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45263 errorCode = "UnknownError";
45264 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45265 _b = errorCode;
45266 switch (_b) {
45267 case "BadRequestException": return [3 /*break*/, 2];
45268 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45269 case "ForbiddenException": return [3 /*break*/, 4];
45270 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45271 case "InternalServerErrorException": return [3 /*break*/, 6];
45272 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45273 case "MethodNotAllowedException": return [3 /*break*/, 8];
45274 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45275 case "NotFoundException": return [3 /*break*/, 10];
45276 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45277 case "PayloadTooLargeException": return [3 /*break*/, 12];
45278 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45279 case "TooManyRequestsException": return [3 /*break*/, 14];
45280 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45281 }
45282 return [3 /*break*/, 16];
45283 case 2:
45284 _c = [{}];
45285 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45286 case 3:
45287 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) }]);
45288 return [3 /*break*/, 17];
45289 case 4:
45290 _d = [{}];
45291 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45292 case 5:
45293 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) }]);
45294 return [3 /*break*/, 17];
45295 case 6:
45296 _e = [{}];
45297 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45298 case 7:
45299 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) }]);
45300 return [3 /*break*/, 17];
45301 case 8:
45302 _f = [{}];
45303 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45304 case 9:
45305 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) }]);
45306 return [3 /*break*/, 17];
45307 case 10:
45308 _g = [{}];
45309 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45310 case 11:
45311 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) }]);
45312 return [3 /*break*/, 17];
45313 case 12:
45314 _h = [{}];
45315 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45316 case 13:
45317 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) }]);
45318 return [3 /*break*/, 17];
45319 case 14:
45320 _j = [{}];
45321 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45322 case 15:
45323 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) }]);
45324 return [3 /*break*/, 17];
45325 case 16:
45326 parsedBody = parsedOutput.body;
45327 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45328 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) });
45329 _l.label = 17;
45330 case 17:
45331 message = response.message || response.Message || errorCode;
45332 response.message = message;
45333 delete response.Message;
45334 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45335 }
45336 });
45337}); };
45338var deserializeAws_restJson1UpdateApplicationSettingsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45339 var contents, data;
45340 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45341 switch (_a.label) {
45342 case 0:
45343 if (output.statusCode !== 200 && output.statusCode >= 300) {
45344 return [2 /*return*/, deserializeAws_restJson1UpdateApplicationSettingsCommandError(output, context)];
45345 }
45346 contents = {
45347 $metadata: deserializeMetadata(output),
45348 ApplicationSettingsResource: undefined,
45349 };
45350 return [4 /*yield*/, parseBody(output.body, context)];
45351 case 1:
45352 data = _a.sent();
45353 contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context);
45354 return [2 /*return*/, Promise.resolve(contents)];
45355 }
45356 });
45357}); };
45358var deserializeAws_restJson1UpdateApplicationSettingsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45359 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45360 var _k;
45361 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45362 switch (_l.label) {
45363 case 0:
45364 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45365 _k = {};
45366 return [4 /*yield*/, parseBody(output.body, context)];
45367 case 1:
45368 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45369 errorCode = "UnknownError";
45370 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45371 _b = errorCode;
45372 switch (_b) {
45373 case "BadRequestException": return [3 /*break*/, 2];
45374 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45375 case "ForbiddenException": return [3 /*break*/, 4];
45376 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45377 case "InternalServerErrorException": return [3 /*break*/, 6];
45378 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45379 case "MethodNotAllowedException": return [3 /*break*/, 8];
45380 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45381 case "NotFoundException": return [3 /*break*/, 10];
45382 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45383 case "PayloadTooLargeException": return [3 /*break*/, 12];
45384 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45385 case "TooManyRequestsException": return [3 /*break*/, 14];
45386 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45387 }
45388 return [3 /*break*/, 16];
45389 case 2:
45390 _c = [{}];
45391 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45392 case 3:
45393 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) }]);
45394 return [3 /*break*/, 17];
45395 case 4:
45396 _d = [{}];
45397 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45398 case 5:
45399 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) }]);
45400 return [3 /*break*/, 17];
45401 case 6:
45402 _e = [{}];
45403 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45404 case 7:
45405 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) }]);
45406 return [3 /*break*/, 17];
45407 case 8:
45408 _f = [{}];
45409 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45410 case 9:
45411 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) }]);
45412 return [3 /*break*/, 17];
45413 case 10:
45414 _g = [{}];
45415 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45416 case 11:
45417 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) }]);
45418 return [3 /*break*/, 17];
45419 case 12:
45420 _h = [{}];
45421 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45422 case 13:
45423 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) }]);
45424 return [3 /*break*/, 17];
45425 case 14:
45426 _j = [{}];
45427 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45428 case 15:
45429 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) }]);
45430 return [3 /*break*/, 17];
45431 case 16:
45432 parsedBody = parsedOutput.body;
45433 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45434 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) });
45435 _l.label = 17;
45436 case 17:
45437 message = response.message || response.Message || errorCode;
45438 response.message = message;
45439 delete response.Message;
45440 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45441 }
45442 });
45443}); };
45444var deserializeAws_restJson1UpdateBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45445 var contents, data;
45446 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45447 switch (_a.label) {
45448 case 0:
45449 if (output.statusCode !== 200 && output.statusCode >= 300) {
45450 return [2 /*return*/, deserializeAws_restJson1UpdateBaiduChannelCommandError(output, context)];
45451 }
45452 contents = {
45453 $metadata: deserializeMetadata(output),
45454 BaiduChannelResponse: undefined,
45455 };
45456 return [4 /*yield*/, parseBody(output.body, context)];
45457 case 1:
45458 data = _a.sent();
45459 contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context);
45460 return [2 /*return*/, Promise.resolve(contents)];
45461 }
45462 });
45463}); };
45464var deserializeAws_restJson1UpdateBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45465 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45466 var _k;
45467 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45468 switch (_l.label) {
45469 case 0:
45470 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45471 _k = {};
45472 return [4 /*yield*/, parseBody(output.body, context)];
45473 case 1:
45474 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45475 errorCode = "UnknownError";
45476 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45477 _b = errorCode;
45478 switch (_b) {
45479 case "BadRequestException": return [3 /*break*/, 2];
45480 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45481 case "ForbiddenException": return [3 /*break*/, 4];
45482 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45483 case "InternalServerErrorException": return [3 /*break*/, 6];
45484 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45485 case "MethodNotAllowedException": return [3 /*break*/, 8];
45486 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45487 case "NotFoundException": return [3 /*break*/, 10];
45488 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45489 case "PayloadTooLargeException": return [3 /*break*/, 12];
45490 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45491 case "TooManyRequestsException": return [3 /*break*/, 14];
45492 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45493 }
45494 return [3 /*break*/, 16];
45495 case 2:
45496 _c = [{}];
45497 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45498 case 3:
45499 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) }]);
45500 return [3 /*break*/, 17];
45501 case 4:
45502 _d = [{}];
45503 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45504 case 5:
45505 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) }]);
45506 return [3 /*break*/, 17];
45507 case 6:
45508 _e = [{}];
45509 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45510 case 7:
45511 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) }]);
45512 return [3 /*break*/, 17];
45513 case 8:
45514 _f = [{}];
45515 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45516 case 9:
45517 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) }]);
45518 return [3 /*break*/, 17];
45519 case 10:
45520 _g = [{}];
45521 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45522 case 11:
45523 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) }]);
45524 return [3 /*break*/, 17];
45525 case 12:
45526 _h = [{}];
45527 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45528 case 13:
45529 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) }]);
45530 return [3 /*break*/, 17];
45531 case 14:
45532 _j = [{}];
45533 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45534 case 15:
45535 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) }]);
45536 return [3 /*break*/, 17];
45537 case 16:
45538 parsedBody = parsedOutput.body;
45539 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45540 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) });
45541 _l.label = 17;
45542 case 17:
45543 message = response.message || response.Message || errorCode;
45544 response.message = message;
45545 delete response.Message;
45546 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45547 }
45548 });
45549}); };
45550var deserializeAws_restJson1UpdateCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45551 var contents, data;
45552 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45553 switch (_a.label) {
45554 case 0:
45555 if (output.statusCode !== 200 && output.statusCode >= 300) {
45556 return [2 /*return*/, deserializeAws_restJson1UpdateCampaignCommandError(output, context)];
45557 }
45558 contents = {
45559 $metadata: deserializeMetadata(output),
45560 CampaignResponse: undefined,
45561 };
45562 return [4 /*yield*/, parseBody(output.body, context)];
45563 case 1:
45564 data = _a.sent();
45565 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
45566 return [2 /*return*/, Promise.resolve(contents)];
45567 }
45568 });
45569}); };
45570var deserializeAws_restJson1UpdateCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45571 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45572 var _k;
45573 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45574 switch (_l.label) {
45575 case 0:
45576 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45577 _k = {};
45578 return [4 /*yield*/, parseBody(output.body, context)];
45579 case 1:
45580 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45581 errorCode = "UnknownError";
45582 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45583 _b = errorCode;
45584 switch (_b) {
45585 case "BadRequestException": return [3 /*break*/, 2];
45586 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45587 case "ForbiddenException": return [3 /*break*/, 4];
45588 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45589 case "InternalServerErrorException": return [3 /*break*/, 6];
45590 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45591 case "MethodNotAllowedException": return [3 /*break*/, 8];
45592 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45593 case "NotFoundException": return [3 /*break*/, 10];
45594 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45595 case "PayloadTooLargeException": return [3 /*break*/, 12];
45596 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45597 case "TooManyRequestsException": return [3 /*break*/, 14];
45598 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45599 }
45600 return [3 /*break*/, 16];
45601 case 2:
45602 _c = [{}];
45603 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45604 case 3:
45605 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) }]);
45606 return [3 /*break*/, 17];
45607 case 4:
45608 _d = [{}];
45609 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45610 case 5:
45611 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) }]);
45612 return [3 /*break*/, 17];
45613 case 6:
45614 _e = [{}];
45615 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45616 case 7:
45617 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) }]);
45618 return [3 /*break*/, 17];
45619 case 8:
45620 _f = [{}];
45621 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45622 case 9:
45623 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) }]);
45624 return [3 /*break*/, 17];
45625 case 10:
45626 _g = [{}];
45627 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45628 case 11:
45629 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) }]);
45630 return [3 /*break*/, 17];
45631 case 12:
45632 _h = [{}];
45633 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45634 case 13:
45635 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) }]);
45636 return [3 /*break*/, 17];
45637 case 14:
45638 _j = [{}];
45639 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45640 case 15:
45641 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) }]);
45642 return [3 /*break*/, 17];
45643 case 16:
45644 parsedBody = parsedOutput.body;
45645 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45646 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) });
45647 _l.label = 17;
45648 case 17:
45649 message = response.message || response.Message || errorCode;
45650 response.message = message;
45651 delete response.Message;
45652 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45653 }
45654 });
45655}); };
45656var deserializeAws_restJson1UpdateEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45657 var contents, data;
45658 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45659 switch (_a.label) {
45660 case 0:
45661 if (output.statusCode !== 200 && output.statusCode >= 300) {
45662 return [2 /*return*/, deserializeAws_restJson1UpdateEmailChannelCommandError(output, context)];
45663 }
45664 contents = {
45665 $metadata: deserializeMetadata(output),
45666 EmailChannelResponse: undefined,
45667 };
45668 return [4 /*yield*/, parseBody(output.body, context)];
45669 case 1:
45670 data = _a.sent();
45671 contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context);
45672 return [2 /*return*/, Promise.resolve(contents)];
45673 }
45674 });
45675}); };
45676var deserializeAws_restJson1UpdateEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45677 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45678 var _k;
45679 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45680 switch (_l.label) {
45681 case 0:
45682 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45683 _k = {};
45684 return [4 /*yield*/, parseBody(output.body, context)];
45685 case 1:
45686 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45687 errorCode = "UnknownError";
45688 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45689 _b = errorCode;
45690 switch (_b) {
45691 case "BadRequestException": return [3 /*break*/, 2];
45692 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45693 case "ForbiddenException": return [3 /*break*/, 4];
45694 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45695 case "InternalServerErrorException": return [3 /*break*/, 6];
45696 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45697 case "MethodNotAllowedException": return [3 /*break*/, 8];
45698 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45699 case "NotFoundException": return [3 /*break*/, 10];
45700 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45701 case "PayloadTooLargeException": return [3 /*break*/, 12];
45702 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45703 case "TooManyRequestsException": return [3 /*break*/, 14];
45704 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45705 }
45706 return [3 /*break*/, 16];
45707 case 2:
45708 _c = [{}];
45709 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45710 case 3:
45711 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) }]);
45712 return [3 /*break*/, 17];
45713 case 4:
45714 _d = [{}];
45715 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45716 case 5:
45717 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) }]);
45718 return [3 /*break*/, 17];
45719 case 6:
45720 _e = [{}];
45721 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45722 case 7:
45723 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) }]);
45724 return [3 /*break*/, 17];
45725 case 8:
45726 _f = [{}];
45727 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45728 case 9:
45729 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) }]);
45730 return [3 /*break*/, 17];
45731 case 10:
45732 _g = [{}];
45733 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45734 case 11:
45735 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) }]);
45736 return [3 /*break*/, 17];
45737 case 12:
45738 _h = [{}];
45739 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45740 case 13:
45741 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) }]);
45742 return [3 /*break*/, 17];
45743 case 14:
45744 _j = [{}];
45745 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45746 case 15:
45747 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) }]);
45748 return [3 /*break*/, 17];
45749 case 16:
45750 parsedBody = parsedOutput.body;
45751 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45752 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) });
45753 _l.label = 17;
45754 case 17:
45755 message = response.message || response.Message || errorCode;
45756 response.message = message;
45757 delete response.Message;
45758 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45759 }
45760 });
45761}); };
45762var deserializeAws_restJson1UpdateEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45763 var contents, data;
45764 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45765 switch (_a.label) {
45766 case 0:
45767 if (output.statusCode !== 202 && output.statusCode >= 300) {
45768 return [2 /*return*/, deserializeAws_restJson1UpdateEmailTemplateCommandError(output, context)];
45769 }
45770 contents = {
45771 $metadata: deserializeMetadata(output),
45772 MessageBody: undefined,
45773 };
45774 return [4 /*yield*/, parseBody(output.body, context)];
45775 case 1:
45776 data = _a.sent();
45777 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
45778 return [2 /*return*/, Promise.resolve(contents)];
45779 }
45780 });
45781}); };
45782var deserializeAws_restJson1UpdateEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45783 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45784 var _k;
45785 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45786 switch (_l.label) {
45787 case 0:
45788 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45789 _k = {};
45790 return [4 /*yield*/, parseBody(output.body, context)];
45791 case 1:
45792 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45793 errorCode = "UnknownError";
45794 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45795 _b = errorCode;
45796 switch (_b) {
45797 case "BadRequestException": return [3 /*break*/, 2];
45798 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45799 case "ForbiddenException": return [3 /*break*/, 4];
45800 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45801 case "InternalServerErrorException": return [3 /*break*/, 6];
45802 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45803 case "MethodNotAllowedException": return [3 /*break*/, 8];
45804 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45805 case "NotFoundException": return [3 /*break*/, 10];
45806 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45807 case "PayloadTooLargeException": return [3 /*break*/, 12];
45808 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45809 case "TooManyRequestsException": return [3 /*break*/, 14];
45810 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45811 }
45812 return [3 /*break*/, 16];
45813 case 2:
45814 _c = [{}];
45815 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45816 case 3:
45817 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) }]);
45818 return [3 /*break*/, 17];
45819 case 4:
45820 _d = [{}];
45821 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45822 case 5:
45823 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) }]);
45824 return [3 /*break*/, 17];
45825 case 6:
45826 _e = [{}];
45827 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45828 case 7:
45829 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) }]);
45830 return [3 /*break*/, 17];
45831 case 8:
45832 _f = [{}];
45833 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45834 case 9:
45835 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) }]);
45836 return [3 /*break*/, 17];
45837 case 10:
45838 _g = [{}];
45839 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45840 case 11:
45841 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) }]);
45842 return [3 /*break*/, 17];
45843 case 12:
45844 _h = [{}];
45845 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45846 case 13:
45847 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) }]);
45848 return [3 /*break*/, 17];
45849 case 14:
45850 _j = [{}];
45851 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45852 case 15:
45853 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) }]);
45854 return [3 /*break*/, 17];
45855 case 16:
45856 parsedBody = parsedOutput.body;
45857 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45858 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) });
45859 _l.label = 17;
45860 case 17:
45861 message = response.message || response.Message || errorCode;
45862 response.message = message;
45863 delete response.Message;
45864 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45865 }
45866 });
45867}); };
45868var deserializeAws_restJson1UpdateEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45869 var contents, data;
45870 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45871 switch (_a.label) {
45872 case 0:
45873 if (output.statusCode !== 202 && output.statusCode >= 300) {
45874 return [2 /*return*/, deserializeAws_restJson1UpdateEndpointCommandError(output, context)];
45875 }
45876 contents = {
45877 $metadata: deserializeMetadata(output),
45878 MessageBody: undefined,
45879 };
45880 return [4 /*yield*/, parseBody(output.body, context)];
45881 case 1:
45882 data = _a.sent();
45883 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
45884 return [2 /*return*/, Promise.resolve(contents)];
45885 }
45886 });
45887}); };
45888var deserializeAws_restJson1UpdateEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45889 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45890 var _k;
45891 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45892 switch (_l.label) {
45893 case 0:
45894 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45895 _k = {};
45896 return [4 /*yield*/, parseBody(output.body, context)];
45897 case 1:
45898 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45899 errorCode = "UnknownError";
45900 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45901 _b = errorCode;
45902 switch (_b) {
45903 case "BadRequestException": return [3 /*break*/, 2];
45904 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45905 case "ForbiddenException": return [3 /*break*/, 4];
45906 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45907 case "InternalServerErrorException": return [3 /*break*/, 6];
45908 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45909 case "MethodNotAllowedException": return [3 /*break*/, 8];
45910 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45911 case "NotFoundException": return [3 /*break*/, 10];
45912 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45913 case "PayloadTooLargeException": return [3 /*break*/, 12];
45914 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45915 case "TooManyRequestsException": return [3 /*break*/, 14];
45916 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45917 }
45918 return [3 /*break*/, 16];
45919 case 2:
45920 _c = [{}];
45921 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45922 case 3:
45923 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) }]);
45924 return [3 /*break*/, 17];
45925 case 4:
45926 _d = [{}];
45927 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45928 case 5:
45929 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) }]);
45930 return [3 /*break*/, 17];
45931 case 6:
45932 _e = [{}];
45933 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45934 case 7:
45935 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) }]);
45936 return [3 /*break*/, 17];
45937 case 8:
45938 _f = [{}];
45939 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45940 case 9:
45941 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) }]);
45942 return [3 /*break*/, 17];
45943 case 10:
45944 _g = [{}];
45945 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45946 case 11:
45947 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) }]);
45948 return [3 /*break*/, 17];
45949 case 12:
45950 _h = [{}];
45951 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45952 case 13:
45953 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) }]);
45954 return [3 /*break*/, 17];
45955 case 14:
45956 _j = [{}];
45957 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45958 case 15:
45959 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) }]);
45960 return [3 /*break*/, 17];
45961 case 16:
45962 parsedBody = parsedOutput.body;
45963 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45964 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) });
45965 _l.label = 17;
45966 case 17:
45967 message = response.message || response.Message || errorCode;
45968 response.message = message;
45969 delete response.Message;
45970 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45971 }
45972 });
45973}); };
45974var deserializeAws_restJson1UpdateEndpointsBatchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45975 var contents, data;
45976 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45977 switch (_a.label) {
45978 case 0:
45979 if (output.statusCode !== 202 && output.statusCode >= 300) {
45980 return [2 /*return*/, deserializeAws_restJson1UpdateEndpointsBatchCommandError(output, context)];
45981 }
45982 contents = {
45983 $metadata: deserializeMetadata(output),
45984 MessageBody: undefined,
45985 };
45986 return [4 /*yield*/, parseBody(output.body, context)];
45987 case 1:
45988 data = _a.sent();
45989 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
45990 return [2 /*return*/, Promise.resolve(contents)];
45991 }
45992 });
45993}); };
45994var deserializeAws_restJson1UpdateEndpointsBatchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45995 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45996 var _k;
45997 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45998 switch (_l.label) {
45999 case 0:
46000 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46001 _k = {};
46002 return [4 /*yield*/, parseBody(output.body, context)];
46003 case 1:
46004 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46005 errorCode = "UnknownError";
46006 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46007 _b = errorCode;
46008 switch (_b) {
46009 case "BadRequestException": return [3 /*break*/, 2];
46010 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46011 case "ForbiddenException": return [3 /*break*/, 4];
46012 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46013 case "InternalServerErrorException": return [3 /*break*/, 6];
46014 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46015 case "MethodNotAllowedException": return [3 /*break*/, 8];
46016 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46017 case "NotFoundException": return [3 /*break*/, 10];
46018 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46019 case "PayloadTooLargeException": return [3 /*break*/, 12];
46020 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46021 case "TooManyRequestsException": return [3 /*break*/, 14];
46022 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46023 }
46024 return [3 /*break*/, 16];
46025 case 2:
46026 _c = [{}];
46027 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46028 case 3:
46029 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) }]);
46030 return [3 /*break*/, 17];
46031 case 4:
46032 _d = [{}];
46033 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46034 case 5:
46035 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) }]);
46036 return [3 /*break*/, 17];
46037 case 6:
46038 _e = [{}];
46039 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46040 case 7:
46041 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) }]);
46042 return [3 /*break*/, 17];
46043 case 8:
46044 _f = [{}];
46045 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46046 case 9:
46047 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) }]);
46048 return [3 /*break*/, 17];
46049 case 10:
46050 _g = [{}];
46051 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46052 case 11:
46053 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) }]);
46054 return [3 /*break*/, 17];
46055 case 12:
46056 _h = [{}];
46057 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46058 case 13:
46059 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) }]);
46060 return [3 /*break*/, 17];
46061 case 14:
46062 _j = [{}];
46063 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46064 case 15:
46065 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) }]);
46066 return [3 /*break*/, 17];
46067 case 16:
46068 parsedBody = parsedOutput.body;
46069 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46070 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) });
46071 _l.label = 17;
46072 case 17:
46073 message = response.message || response.Message || errorCode;
46074 response.message = message;
46075 delete response.Message;
46076 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46077 }
46078 });
46079}); };
46080var deserializeAws_restJson1UpdateGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46081 var contents, data;
46082 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46083 switch (_a.label) {
46084 case 0:
46085 if (output.statusCode !== 200 && output.statusCode >= 300) {
46086 return [2 /*return*/, deserializeAws_restJson1UpdateGcmChannelCommandError(output, context)];
46087 }
46088 contents = {
46089 $metadata: deserializeMetadata(output),
46090 GCMChannelResponse: undefined,
46091 };
46092 return [4 /*yield*/, parseBody(output.body, context)];
46093 case 1:
46094 data = _a.sent();
46095 contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context);
46096 return [2 /*return*/, Promise.resolve(contents)];
46097 }
46098 });
46099}); };
46100var deserializeAws_restJson1UpdateGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46101 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46102 var _k;
46103 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46104 switch (_l.label) {
46105 case 0:
46106 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46107 _k = {};
46108 return [4 /*yield*/, parseBody(output.body, context)];
46109 case 1:
46110 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46111 errorCode = "UnknownError";
46112 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46113 _b = errorCode;
46114 switch (_b) {
46115 case "BadRequestException": return [3 /*break*/, 2];
46116 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46117 case "ForbiddenException": return [3 /*break*/, 4];
46118 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46119 case "InternalServerErrorException": return [3 /*break*/, 6];
46120 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46121 case "MethodNotAllowedException": return [3 /*break*/, 8];
46122 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46123 case "NotFoundException": return [3 /*break*/, 10];
46124 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46125 case "PayloadTooLargeException": return [3 /*break*/, 12];
46126 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46127 case "TooManyRequestsException": return [3 /*break*/, 14];
46128 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46129 }
46130 return [3 /*break*/, 16];
46131 case 2:
46132 _c = [{}];
46133 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46134 case 3:
46135 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) }]);
46136 return [3 /*break*/, 17];
46137 case 4:
46138 _d = [{}];
46139 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46140 case 5:
46141 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) }]);
46142 return [3 /*break*/, 17];
46143 case 6:
46144 _e = [{}];
46145 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46146 case 7:
46147 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) }]);
46148 return [3 /*break*/, 17];
46149 case 8:
46150 _f = [{}];
46151 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46152 case 9:
46153 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) }]);
46154 return [3 /*break*/, 17];
46155 case 10:
46156 _g = [{}];
46157 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46158 case 11:
46159 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) }]);
46160 return [3 /*break*/, 17];
46161 case 12:
46162 _h = [{}];
46163 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46164 case 13:
46165 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) }]);
46166 return [3 /*break*/, 17];
46167 case 14:
46168 _j = [{}];
46169 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46170 case 15:
46171 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) }]);
46172 return [3 /*break*/, 17];
46173 case 16:
46174 parsedBody = parsedOutput.body;
46175 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46176 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) });
46177 _l.label = 17;
46178 case 17:
46179 message = response.message || response.Message || errorCode;
46180 response.message = message;
46181 delete response.Message;
46182 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46183 }
46184 });
46185}); };
46186var deserializeAws_restJson1UpdateJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46187 var contents, data;
46188 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46189 switch (_a.label) {
46190 case 0:
46191 if (output.statusCode !== 200 && output.statusCode >= 300) {
46192 return [2 /*return*/, deserializeAws_restJson1UpdateJourneyCommandError(output, context)];
46193 }
46194 contents = {
46195 $metadata: deserializeMetadata(output),
46196 JourneyResponse: undefined,
46197 };
46198 return [4 /*yield*/, parseBody(output.body, context)];
46199 case 1:
46200 data = _a.sent();
46201 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
46202 return [2 /*return*/, Promise.resolve(contents)];
46203 }
46204 });
46205}); };
46206var deserializeAws_restJson1UpdateJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46207 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message;
46208 var _l;
46209 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) {
46210 switch (_m.label) {
46211 case 0:
46212 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46213 _l = {};
46214 return [4 /*yield*/, parseBody(output.body, context)];
46215 case 1:
46216 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
46217 errorCode = "UnknownError";
46218 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46219 _b = errorCode;
46220 switch (_b) {
46221 case "BadRequestException": return [3 /*break*/, 2];
46222 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46223 case "ConflictException": return [3 /*break*/, 4];
46224 case "com.amazonaws.pinpoint#ConflictException": return [3 /*break*/, 4];
46225 case "ForbiddenException": return [3 /*break*/, 6];
46226 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 6];
46227 case "InternalServerErrorException": return [3 /*break*/, 8];
46228 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 8];
46229 case "MethodNotAllowedException": return [3 /*break*/, 10];
46230 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 10];
46231 case "NotFoundException": return [3 /*break*/, 12];
46232 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 12];
46233 case "PayloadTooLargeException": return [3 /*break*/, 14];
46234 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 14];
46235 case "TooManyRequestsException": return [3 /*break*/, 16];
46236 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 16];
46237 }
46238 return [3 /*break*/, 18];
46239 case 2:
46240 _c = [{}];
46241 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46242 case 3:
46243 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) }]);
46244 return [3 /*break*/, 19];
46245 case 4:
46246 _d = [{}];
46247 return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
46248 case 5:
46249 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) }]);
46250 return [3 /*break*/, 19];
46251 case 6:
46252 _e = [{}];
46253 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46254 case 7:
46255 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) }]);
46256 return [3 /*break*/, 19];
46257 case 8:
46258 _f = [{}];
46259 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46260 case 9:
46261 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) }]);
46262 return [3 /*break*/, 19];
46263 case 10:
46264 _g = [{}];
46265 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46266 case 11:
46267 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) }]);
46268 return [3 /*break*/, 19];
46269 case 12:
46270 _h = [{}];
46271 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46272 case 13:
46273 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) }]);
46274 return [3 /*break*/, 19];
46275 case 14:
46276 _j = [{}];
46277 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46278 case 15:
46279 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) }]);
46280 return [3 /*break*/, 19];
46281 case 16:
46282 _k = [{}];
46283 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46284 case 17:
46285 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) }]);
46286 return [3 /*break*/, 19];
46287 case 18:
46288 parsedBody = parsedOutput.body;
46289 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46290 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) });
46291 _m.label = 19;
46292 case 19:
46293 message = response.message || response.Message || errorCode;
46294 response.message = message;
46295 delete response.Message;
46296 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46297 }
46298 });
46299}); };
46300var deserializeAws_restJson1UpdateJourneyStateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46301 var contents, data;
46302 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46303 switch (_a.label) {
46304 case 0:
46305 if (output.statusCode !== 200 && output.statusCode >= 300) {
46306 return [2 /*return*/, deserializeAws_restJson1UpdateJourneyStateCommandError(output, context)];
46307 }
46308 contents = {
46309 $metadata: deserializeMetadata(output),
46310 JourneyResponse: undefined,
46311 };
46312 return [4 /*yield*/, parseBody(output.body, context)];
46313 case 1:
46314 data = _a.sent();
46315 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
46316 return [2 /*return*/, Promise.resolve(contents)];
46317 }
46318 });
46319}); };
46320var deserializeAws_restJson1UpdateJourneyStateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46321 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46322 var _k;
46323 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46324 switch (_l.label) {
46325 case 0:
46326 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46327 _k = {};
46328 return [4 /*yield*/, parseBody(output.body, context)];
46329 case 1:
46330 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46331 errorCode = "UnknownError";
46332 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46333 _b = errorCode;
46334 switch (_b) {
46335 case "BadRequestException": return [3 /*break*/, 2];
46336 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46337 case "ForbiddenException": return [3 /*break*/, 4];
46338 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46339 case "InternalServerErrorException": return [3 /*break*/, 6];
46340 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46341 case "MethodNotAllowedException": return [3 /*break*/, 8];
46342 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46343 case "NotFoundException": return [3 /*break*/, 10];
46344 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46345 case "PayloadTooLargeException": return [3 /*break*/, 12];
46346 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46347 case "TooManyRequestsException": return [3 /*break*/, 14];
46348 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46349 }
46350 return [3 /*break*/, 16];
46351 case 2:
46352 _c = [{}];
46353 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46354 case 3:
46355 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) }]);
46356 return [3 /*break*/, 17];
46357 case 4:
46358 _d = [{}];
46359 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46360 case 5:
46361 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) }]);
46362 return [3 /*break*/, 17];
46363 case 6:
46364 _e = [{}];
46365 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46366 case 7:
46367 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) }]);
46368 return [3 /*break*/, 17];
46369 case 8:
46370 _f = [{}];
46371 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46372 case 9:
46373 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) }]);
46374 return [3 /*break*/, 17];
46375 case 10:
46376 _g = [{}];
46377 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46378 case 11:
46379 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) }]);
46380 return [3 /*break*/, 17];
46381 case 12:
46382 _h = [{}];
46383 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46384 case 13:
46385 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) }]);
46386 return [3 /*break*/, 17];
46387 case 14:
46388 _j = [{}];
46389 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46390 case 15:
46391 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) }]);
46392 return [3 /*break*/, 17];
46393 case 16:
46394 parsedBody = parsedOutput.body;
46395 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46396 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) });
46397 _l.label = 17;
46398 case 17:
46399 message = response.message || response.Message || errorCode;
46400 response.message = message;
46401 delete response.Message;
46402 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46403 }
46404 });
46405}); };
46406var deserializeAws_restJson1UpdatePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46407 var contents, data;
46408 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46409 switch (_a.label) {
46410 case 0:
46411 if (output.statusCode !== 202 && output.statusCode >= 300) {
46412 return [2 /*return*/, deserializeAws_restJson1UpdatePushTemplateCommandError(output, context)];
46413 }
46414 contents = {
46415 $metadata: deserializeMetadata(output),
46416 MessageBody: undefined,
46417 };
46418 return [4 /*yield*/, parseBody(output.body, context)];
46419 case 1:
46420 data = _a.sent();
46421 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
46422 return [2 /*return*/, Promise.resolve(contents)];
46423 }
46424 });
46425}); };
46426var deserializeAws_restJson1UpdatePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46427 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46428 var _k;
46429 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46430 switch (_l.label) {
46431 case 0:
46432 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46433 _k = {};
46434 return [4 /*yield*/, parseBody(output.body, context)];
46435 case 1:
46436 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46437 errorCode = "UnknownError";
46438 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46439 _b = errorCode;
46440 switch (_b) {
46441 case "BadRequestException": return [3 /*break*/, 2];
46442 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46443 case "ForbiddenException": return [3 /*break*/, 4];
46444 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46445 case "InternalServerErrorException": return [3 /*break*/, 6];
46446 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46447 case "MethodNotAllowedException": return [3 /*break*/, 8];
46448 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46449 case "NotFoundException": return [3 /*break*/, 10];
46450 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46451 case "PayloadTooLargeException": return [3 /*break*/, 12];
46452 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46453 case "TooManyRequestsException": return [3 /*break*/, 14];
46454 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46455 }
46456 return [3 /*break*/, 16];
46457 case 2:
46458 _c = [{}];
46459 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46460 case 3:
46461 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) }]);
46462 return [3 /*break*/, 17];
46463 case 4:
46464 _d = [{}];
46465 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46466 case 5:
46467 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) }]);
46468 return [3 /*break*/, 17];
46469 case 6:
46470 _e = [{}];
46471 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46472 case 7:
46473 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) }]);
46474 return [3 /*break*/, 17];
46475 case 8:
46476 _f = [{}];
46477 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46478 case 9:
46479 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) }]);
46480 return [3 /*break*/, 17];
46481 case 10:
46482 _g = [{}];
46483 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46484 case 11:
46485 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) }]);
46486 return [3 /*break*/, 17];
46487 case 12:
46488 _h = [{}];
46489 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46490 case 13:
46491 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) }]);
46492 return [3 /*break*/, 17];
46493 case 14:
46494 _j = [{}];
46495 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46496 case 15:
46497 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) }]);
46498 return [3 /*break*/, 17];
46499 case 16:
46500 parsedBody = parsedOutput.body;
46501 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46502 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) });
46503 _l.label = 17;
46504 case 17:
46505 message = response.message || response.Message || errorCode;
46506 response.message = message;
46507 delete response.Message;
46508 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46509 }
46510 });
46511}); };
46512var deserializeAws_restJson1UpdateRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46513 var contents, data;
46514 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46515 switch (_a.label) {
46516 case 0:
46517 if (output.statusCode !== 200 && output.statusCode >= 300) {
46518 return [2 /*return*/, deserializeAws_restJson1UpdateRecommenderConfigurationCommandError(output, context)];
46519 }
46520 contents = {
46521 $metadata: deserializeMetadata(output),
46522 RecommenderConfigurationResponse: undefined,
46523 };
46524 return [4 /*yield*/, parseBody(output.body, context)];
46525 case 1:
46526 data = _a.sent();
46527 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
46528 return [2 /*return*/, Promise.resolve(contents)];
46529 }
46530 });
46531}); };
46532var deserializeAws_restJson1UpdateRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46533 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46534 var _k;
46535 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46536 switch (_l.label) {
46537 case 0:
46538 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46539 _k = {};
46540 return [4 /*yield*/, parseBody(output.body, context)];
46541 case 1:
46542 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46543 errorCode = "UnknownError";
46544 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46545 _b = errorCode;
46546 switch (_b) {
46547 case "BadRequestException": return [3 /*break*/, 2];
46548 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46549 case "ForbiddenException": return [3 /*break*/, 4];
46550 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46551 case "InternalServerErrorException": return [3 /*break*/, 6];
46552 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46553 case "MethodNotAllowedException": return [3 /*break*/, 8];
46554 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46555 case "NotFoundException": return [3 /*break*/, 10];
46556 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46557 case "PayloadTooLargeException": return [3 /*break*/, 12];
46558 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46559 case "TooManyRequestsException": return [3 /*break*/, 14];
46560 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46561 }
46562 return [3 /*break*/, 16];
46563 case 2:
46564 _c = [{}];
46565 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46566 case 3:
46567 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) }]);
46568 return [3 /*break*/, 17];
46569 case 4:
46570 _d = [{}];
46571 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46572 case 5:
46573 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) }]);
46574 return [3 /*break*/, 17];
46575 case 6:
46576 _e = [{}];
46577 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46578 case 7:
46579 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) }]);
46580 return [3 /*break*/, 17];
46581 case 8:
46582 _f = [{}];
46583 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46584 case 9:
46585 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) }]);
46586 return [3 /*break*/, 17];
46587 case 10:
46588 _g = [{}];
46589 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46590 case 11:
46591 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) }]);
46592 return [3 /*break*/, 17];
46593 case 12:
46594 _h = [{}];
46595 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46596 case 13:
46597 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) }]);
46598 return [3 /*break*/, 17];
46599 case 14:
46600 _j = [{}];
46601 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46602 case 15:
46603 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) }]);
46604 return [3 /*break*/, 17];
46605 case 16:
46606 parsedBody = parsedOutput.body;
46607 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46608 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) });
46609 _l.label = 17;
46610 case 17:
46611 message = response.message || response.Message || errorCode;
46612 response.message = message;
46613 delete response.Message;
46614 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46615 }
46616 });
46617}); };
46618var deserializeAws_restJson1UpdateSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46619 var contents, data;
46620 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46621 switch (_a.label) {
46622 case 0:
46623 if (output.statusCode !== 200 && output.statusCode >= 300) {
46624 return [2 /*return*/, deserializeAws_restJson1UpdateSegmentCommandError(output, context)];
46625 }
46626 contents = {
46627 $metadata: deserializeMetadata(output),
46628 SegmentResponse: undefined,
46629 };
46630 return [4 /*yield*/, parseBody(output.body, context)];
46631 case 1:
46632 data = _a.sent();
46633 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
46634 return [2 /*return*/, Promise.resolve(contents)];
46635 }
46636 });
46637}); };
46638var deserializeAws_restJson1UpdateSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46639 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46640 var _k;
46641 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46642 switch (_l.label) {
46643 case 0:
46644 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46645 _k = {};
46646 return [4 /*yield*/, parseBody(output.body, context)];
46647 case 1:
46648 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46649 errorCode = "UnknownError";
46650 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46651 _b = errorCode;
46652 switch (_b) {
46653 case "BadRequestException": return [3 /*break*/, 2];
46654 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46655 case "ForbiddenException": return [3 /*break*/, 4];
46656 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46657 case "InternalServerErrorException": return [3 /*break*/, 6];
46658 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46659 case "MethodNotAllowedException": return [3 /*break*/, 8];
46660 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46661 case "NotFoundException": return [3 /*break*/, 10];
46662 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46663 case "PayloadTooLargeException": return [3 /*break*/, 12];
46664 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46665 case "TooManyRequestsException": return [3 /*break*/, 14];
46666 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46667 }
46668 return [3 /*break*/, 16];
46669 case 2:
46670 _c = [{}];
46671 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46672 case 3:
46673 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) }]);
46674 return [3 /*break*/, 17];
46675 case 4:
46676 _d = [{}];
46677 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46678 case 5:
46679 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) }]);
46680 return [3 /*break*/, 17];
46681 case 6:
46682 _e = [{}];
46683 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46684 case 7:
46685 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) }]);
46686 return [3 /*break*/, 17];
46687 case 8:
46688 _f = [{}];
46689 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46690 case 9:
46691 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) }]);
46692 return [3 /*break*/, 17];
46693 case 10:
46694 _g = [{}];
46695 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46696 case 11:
46697 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) }]);
46698 return [3 /*break*/, 17];
46699 case 12:
46700 _h = [{}];
46701 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46702 case 13:
46703 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) }]);
46704 return [3 /*break*/, 17];
46705 case 14:
46706 _j = [{}];
46707 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46708 case 15:
46709 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) }]);
46710 return [3 /*break*/, 17];
46711 case 16:
46712 parsedBody = parsedOutput.body;
46713 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46714 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) });
46715 _l.label = 17;
46716 case 17:
46717 message = response.message || response.Message || errorCode;
46718 response.message = message;
46719 delete response.Message;
46720 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46721 }
46722 });
46723}); };
46724var deserializeAws_restJson1UpdateSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46725 var contents, data;
46726 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46727 switch (_a.label) {
46728 case 0:
46729 if (output.statusCode !== 200 && output.statusCode >= 300) {
46730 return [2 /*return*/, deserializeAws_restJson1UpdateSmsChannelCommandError(output, context)];
46731 }
46732 contents = {
46733 $metadata: deserializeMetadata(output),
46734 SMSChannelResponse: undefined,
46735 };
46736 return [4 /*yield*/, parseBody(output.body, context)];
46737 case 1:
46738 data = _a.sent();
46739 contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context);
46740 return [2 /*return*/, Promise.resolve(contents)];
46741 }
46742 });
46743}); };
46744var deserializeAws_restJson1UpdateSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46745 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46746 var _k;
46747 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46748 switch (_l.label) {
46749 case 0:
46750 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46751 _k = {};
46752 return [4 /*yield*/, parseBody(output.body, context)];
46753 case 1:
46754 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46755 errorCode = "UnknownError";
46756 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46757 _b = errorCode;
46758 switch (_b) {
46759 case "BadRequestException": return [3 /*break*/, 2];
46760 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46761 case "ForbiddenException": return [3 /*break*/, 4];
46762 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46763 case "InternalServerErrorException": return [3 /*break*/, 6];
46764 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46765 case "MethodNotAllowedException": return [3 /*break*/, 8];
46766 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46767 case "NotFoundException": return [3 /*break*/, 10];
46768 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46769 case "PayloadTooLargeException": return [3 /*break*/, 12];
46770 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46771 case "TooManyRequestsException": return [3 /*break*/, 14];
46772 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46773 }
46774 return [3 /*break*/, 16];
46775 case 2:
46776 _c = [{}];
46777 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46778 case 3:
46779 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) }]);
46780 return [3 /*break*/, 17];
46781 case 4:
46782 _d = [{}];
46783 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46784 case 5:
46785 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) }]);
46786 return [3 /*break*/, 17];
46787 case 6:
46788 _e = [{}];
46789 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46790 case 7:
46791 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) }]);
46792 return [3 /*break*/, 17];
46793 case 8:
46794 _f = [{}];
46795 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46796 case 9:
46797 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) }]);
46798 return [3 /*break*/, 17];
46799 case 10:
46800 _g = [{}];
46801 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46802 case 11:
46803 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) }]);
46804 return [3 /*break*/, 17];
46805 case 12:
46806 _h = [{}];
46807 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46808 case 13:
46809 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) }]);
46810 return [3 /*break*/, 17];
46811 case 14:
46812 _j = [{}];
46813 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46814 case 15:
46815 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) }]);
46816 return [3 /*break*/, 17];
46817 case 16:
46818 parsedBody = parsedOutput.body;
46819 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46820 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) });
46821 _l.label = 17;
46822 case 17:
46823 message = response.message || response.Message || errorCode;
46824 response.message = message;
46825 delete response.Message;
46826 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46827 }
46828 });
46829}); };
46830var deserializeAws_restJson1UpdateSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46831 var contents, data;
46832 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46833 switch (_a.label) {
46834 case 0:
46835 if (output.statusCode !== 202 && output.statusCode >= 300) {
46836 return [2 /*return*/, deserializeAws_restJson1UpdateSmsTemplateCommandError(output, context)];
46837 }
46838 contents = {
46839 $metadata: deserializeMetadata(output),
46840 MessageBody: undefined,
46841 };
46842 return [4 /*yield*/, parseBody(output.body, context)];
46843 case 1:
46844 data = _a.sent();
46845 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
46846 return [2 /*return*/, Promise.resolve(contents)];
46847 }
46848 });
46849}); };
46850var deserializeAws_restJson1UpdateSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46851 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46852 var _k;
46853 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46854 switch (_l.label) {
46855 case 0:
46856 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46857 _k = {};
46858 return [4 /*yield*/, parseBody(output.body, context)];
46859 case 1:
46860 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46861 errorCode = "UnknownError";
46862 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46863 _b = errorCode;
46864 switch (_b) {
46865 case "BadRequestException": return [3 /*break*/, 2];
46866 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46867 case "ForbiddenException": return [3 /*break*/, 4];
46868 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46869 case "InternalServerErrorException": return [3 /*break*/, 6];
46870 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46871 case "MethodNotAllowedException": return [3 /*break*/, 8];
46872 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46873 case "NotFoundException": return [3 /*break*/, 10];
46874 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46875 case "PayloadTooLargeException": return [3 /*break*/, 12];
46876 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46877 case "TooManyRequestsException": return [3 /*break*/, 14];
46878 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46879 }
46880 return [3 /*break*/, 16];
46881 case 2:
46882 _c = [{}];
46883 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46884 case 3:
46885 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) }]);
46886 return [3 /*break*/, 17];
46887 case 4:
46888 _d = [{}];
46889 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46890 case 5:
46891 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) }]);
46892 return [3 /*break*/, 17];
46893 case 6:
46894 _e = [{}];
46895 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46896 case 7:
46897 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) }]);
46898 return [3 /*break*/, 17];
46899 case 8:
46900 _f = [{}];
46901 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46902 case 9:
46903 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) }]);
46904 return [3 /*break*/, 17];
46905 case 10:
46906 _g = [{}];
46907 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46908 case 11:
46909 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) }]);
46910 return [3 /*break*/, 17];
46911 case 12:
46912 _h = [{}];
46913 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46914 case 13:
46915 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) }]);
46916 return [3 /*break*/, 17];
46917 case 14:
46918 _j = [{}];
46919 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46920 case 15:
46921 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) }]);
46922 return [3 /*break*/, 17];
46923 case 16:
46924 parsedBody = parsedOutput.body;
46925 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46926 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) });
46927 _l.label = 17;
46928 case 17:
46929 message = response.message || response.Message || errorCode;
46930 response.message = message;
46931 delete response.Message;
46932 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46933 }
46934 });
46935}); };
46936var deserializeAws_restJson1UpdateTemplateActiveVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46937 var contents, data;
46938 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46939 switch (_a.label) {
46940 case 0:
46941 if (output.statusCode !== 200 && output.statusCode >= 300) {
46942 return [2 /*return*/, deserializeAws_restJson1UpdateTemplateActiveVersionCommandError(output, context)];
46943 }
46944 contents = {
46945 $metadata: deserializeMetadata(output),
46946 MessageBody: undefined,
46947 };
46948 return [4 /*yield*/, parseBody(output.body, context)];
46949 case 1:
46950 data = _a.sent();
46951 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
46952 return [2 /*return*/, Promise.resolve(contents)];
46953 }
46954 });
46955}); };
46956var deserializeAws_restJson1UpdateTemplateActiveVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46957 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46958 var _k;
46959 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46960 switch (_l.label) {
46961 case 0:
46962 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46963 _k = {};
46964 return [4 /*yield*/, parseBody(output.body, context)];
46965 case 1:
46966 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46967 errorCode = "UnknownError";
46968 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46969 _b = errorCode;
46970 switch (_b) {
46971 case "BadRequestException": return [3 /*break*/, 2];
46972 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46973 case "ForbiddenException": return [3 /*break*/, 4];
46974 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46975 case "InternalServerErrorException": return [3 /*break*/, 6];
46976 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46977 case "MethodNotAllowedException": return [3 /*break*/, 8];
46978 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46979 case "NotFoundException": return [3 /*break*/, 10];
46980 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46981 case "PayloadTooLargeException": return [3 /*break*/, 12];
46982 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46983 case "TooManyRequestsException": return [3 /*break*/, 14];
46984 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46985 }
46986 return [3 /*break*/, 16];
46987 case 2:
46988 _c = [{}];
46989 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46990 case 3:
46991 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) }]);
46992 return [3 /*break*/, 17];
46993 case 4:
46994 _d = [{}];
46995 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46996 case 5:
46997 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) }]);
46998 return [3 /*break*/, 17];
46999 case 6:
47000 _e = [{}];
47001 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
47002 case 7:
47003 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) }]);
47004 return [3 /*break*/, 17];
47005 case 8:
47006 _f = [{}];
47007 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
47008 case 9:
47009 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) }]);
47010 return [3 /*break*/, 17];
47011 case 10:
47012 _g = [{}];
47013 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
47014 case 11:
47015 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) }]);
47016 return [3 /*break*/, 17];
47017 case 12:
47018 _h = [{}];
47019 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
47020 case 13:
47021 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) }]);
47022 return [3 /*break*/, 17];
47023 case 14:
47024 _j = [{}];
47025 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
47026 case 15:
47027 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) }]);
47028 return [3 /*break*/, 17];
47029 case 16:
47030 parsedBody = parsedOutput.body;
47031 errorCode = parsedBody.code || parsedBody.Code || errorCode;
47032 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) });
47033 _l.label = 17;
47034 case 17:
47035 message = response.message || response.Message || errorCode;
47036 response.message = message;
47037 delete response.Message;
47038 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
47039 }
47040 });
47041}); };
47042var deserializeAws_restJson1UpdateVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47043 var contents, data;
47044 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47045 switch (_a.label) {
47046 case 0:
47047 if (output.statusCode !== 200 && output.statusCode >= 300) {
47048 return [2 /*return*/, deserializeAws_restJson1UpdateVoiceChannelCommandError(output, context)];
47049 }
47050 contents = {
47051 $metadata: deserializeMetadata(output),
47052 VoiceChannelResponse: undefined,
47053 };
47054 return [4 /*yield*/, parseBody(output.body, context)];
47055 case 1:
47056 data = _a.sent();
47057 contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context);
47058 return [2 /*return*/, Promise.resolve(contents)];
47059 }
47060 });
47061}); };
47062var deserializeAws_restJson1UpdateVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47063 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
47064 var _k;
47065 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
47066 switch (_l.label) {
47067 case 0:
47068 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
47069 _k = {};
47070 return [4 /*yield*/, parseBody(output.body, context)];
47071 case 1:
47072 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
47073 errorCode = "UnknownError";
47074 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
47075 _b = errorCode;
47076 switch (_b) {
47077 case "BadRequestException": return [3 /*break*/, 2];
47078 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
47079 case "ForbiddenException": return [3 /*break*/, 4];
47080 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
47081 case "InternalServerErrorException": return [3 /*break*/, 6];
47082 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
47083 case "MethodNotAllowedException": return [3 /*break*/, 8];
47084 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
47085 case "NotFoundException": return [3 /*break*/, 10];
47086 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
47087 case "PayloadTooLargeException": return [3 /*break*/, 12];
47088 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
47089 case "TooManyRequestsException": return [3 /*break*/, 14];
47090 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
47091 }
47092 return [3 /*break*/, 16];
47093 case 2:
47094 _c = [{}];
47095 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
47096 case 3:
47097 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) }]);
47098 return [3 /*break*/, 17];
47099 case 4:
47100 _d = [{}];
47101 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
47102 case 5:
47103 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) }]);
47104 return [3 /*break*/, 17];
47105 case 6:
47106 _e = [{}];
47107 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
47108 case 7:
47109 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) }]);
47110 return [3 /*break*/, 17];
47111 case 8:
47112 _f = [{}];
47113 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
47114 case 9:
47115 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) }]);
47116 return [3 /*break*/, 17];
47117 case 10:
47118 _g = [{}];
47119 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
47120 case 11:
47121 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) }]);
47122 return [3 /*break*/, 17];
47123 case 12:
47124 _h = [{}];
47125 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
47126 case 13:
47127 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) }]);
47128 return [3 /*break*/, 17];
47129 case 14:
47130 _j = [{}];
47131 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
47132 case 15:
47133 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) }]);
47134 return [3 /*break*/, 17];
47135 case 16:
47136 parsedBody = parsedOutput.body;
47137 errorCode = parsedBody.code || parsedBody.Code || errorCode;
47138 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) });
47139 _l.label = 17;
47140 case 17:
47141 message = response.message || response.Message || errorCode;
47142 response.message = message;
47143 delete response.Message;
47144 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
47145 }
47146 });
47147}); };
47148var deserializeAws_restJson1UpdateVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47149 var contents, data;
47150 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47151 switch (_a.label) {
47152 case 0:
47153 if (output.statusCode !== 202 && output.statusCode >= 300) {
47154 return [2 /*return*/, deserializeAws_restJson1UpdateVoiceTemplateCommandError(output, context)];
47155 }
47156 contents = {
47157 $metadata: deserializeMetadata(output),
47158 MessageBody: undefined,
47159 };
47160 return [4 /*yield*/, parseBody(output.body, context)];
47161 case 1:
47162 data = _a.sent();
47163 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
47164 return [2 /*return*/, Promise.resolve(contents)];
47165 }
47166 });
47167}); };
47168var deserializeAws_restJson1UpdateVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47169 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
47170 var _k;
47171 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
47172 switch (_l.label) {
47173 case 0:
47174 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
47175 _k = {};
47176 return [4 /*yield*/, parseBody(output.body, context)];
47177 case 1:
47178 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
47179 errorCode = "UnknownError";
47180 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
47181 _b = errorCode;
47182 switch (_b) {
47183 case "BadRequestException": return [3 /*break*/, 2];
47184 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
47185 case "ForbiddenException": return [3 /*break*/, 4];
47186 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
47187 case "InternalServerErrorException": return [3 /*break*/, 6];
47188 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
47189 case "MethodNotAllowedException": return [3 /*break*/, 8];
47190 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
47191 case "NotFoundException": return [3 /*break*/, 10];
47192 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
47193 case "PayloadTooLargeException": return [3 /*break*/, 12];
47194 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
47195 case "TooManyRequestsException": return [3 /*break*/, 14];
47196 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
47197 }
47198 return [3 /*break*/, 16];
47199 case 2:
47200 _c = [{}];
47201 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
47202 case 3:
47203 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) }]);
47204 return [3 /*break*/, 17];
47205 case 4:
47206 _d = [{}];
47207 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
47208 case 5:
47209 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) }]);
47210 return [3 /*break*/, 17];
47211 case 6:
47212 _e = [{}];
47213 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
47214 case 7:
47215 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) }]);
47216 return [3 /*break*/, 17];
47217 case 8:
47218 _f = [{}];
47219 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
47220 case 9:
47221 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) }]);
47222 return [3 /*break*/, 17];
47223 case 10:
47224 _g = [{}];
47225 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
47226 case 11:
47227 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) }]);
47228 return [3 /*break*/, 17];
47229 case 12:
47230 _h = [{}];
47231 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
47232 case 13:
47233 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) }]);
47234 return [3 /*break*/, 17];
47235 case 14:
47236 _j = [{}];
47237 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
47238 case 15:
47239 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) }]);
47240 return [3 /*break*/, 17];
47241 case 16:
47242 parsedBody = parsedOutput.body;
47243 errorCode = parsedBody.code || parsedBody.Code || errorCode;
47244 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) });
47245 _l.label = 17;
47246 case 17:
47247 message = response.message || response.Message || errorCode;
47248 response.message = message;
47249 delete response.Message;
47250 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
47251 }
47252 });
47253}); };
47254var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47255 var contents, data;
47256 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47257 contents = {
47258 name: "BadRequestException",
47259 $fault: "client",
47260 $metadata: deserializeMetadata(parsedOutput),
47261 Message: undefined,
47262 RequestID: undefined,
47263 };
47264 data = parsedOutput.body;
47265 if (data.Message !== undefined && data.Message !== null) {
47266 contents.Message = data.Message;
47267 }
47268 if (data.RequestID !== undefined && data.RequestID !== null) {
47269 contents.RequestID = data.RequestID;
47270 }
47271 return [2 /*return*/, contents];
47272 });
47273}); };
47274var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47275 var contents, data;
47276 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47277 contents = {
47278 name: "ConflictException",
47279 $fault: "client",
47280 $metadata: deserializeMetadata(parsedOutput),
47281 Message: undefined,
47282 RequestID: undefined,
47283 };
47284 data = parsedOutput.body;
47285 if (data.Message !== undefined && data.Message !== null) {
47286 contents.Message = data.Message;
47287 }
47288 if (data.RequestID !== undefined && data.RequestID !== null) {
47289 contents.RequestID = data.RequestID;
47290 }
47291 return [2 /*return*/, contents];
47292 });
47293}); };
47294var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47295 var contents, data;
47296 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47297 contents = {
47298 name: "ForbiddenException",
47299 $fault: "client",
47300 $metadata: deserializeMetadata(parsedOutput),
47301 Message: undefined,
47302 RequestID: undefined,
47303 };
47304 data = parsedOutput.body;
47305 if (data.Message !== undefined && data.Message !== null) {
47306 contents.Message = data.Message;
47307 }
47308 if (data.RequestID !== undefined && data.RequestID !== null) {
47309 contents.RequestID = data.RequestID;
47310 }
47311 return [2 /*return*/, contents];
47312 });
47313}); };
47314var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47315 var contents, data;
47316 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47317 contents = {
47318 name: "InternalServerErrorException",
47319 $fault: "server",
47320 $metadata: deserializeMetadata(parsedOutput),
47321 Message: undefined,
47322 RequestID: undefined,
47323 };
47324 data = parsedOutput.body;
47325 if (data.Message !== undefined && data.Message !== null) {
47326 contents.Message = data.Message;
47327 }
47328 if (data.RequestID !== undefined && data.RequestID !== null) {
47329 contents.RequestID = data.RequestID;
47330 }
47331 return [2 /*return*/, contents];
47332 });
47333}); };
47334var deserializeAws_restJson1MethodNotAllowedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47335 var contents, data;
47336 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47337 contents = {
47338 name: "MethodNotAllowedException",
47339 $fault: "client",
47340 $metadata: deserializeMetadata(parsedOutput),
47341 Message: undefined,
47342 RequestID: undefined,
47343 };
47344 data = parsedOutput.body;
47345 if (data.Message !== undefined && data.Message !== null) {
47346 contents.Message = data.Message;
47347 }
47348 if (data.RequestID !== undefined && data.RequestID !== null) {
47349 contents.RequestID = data.RequestID;
47350 }
47351 return [2 /*return*/, contents];
47352 });
47353}); };
47354var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47355 var contents, data;
47356 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47357 contents = {
47358 name: "NotFoundException",
47359 $fault: "client",
47360 $metadata: deserializeMetadata(parsedOutput),
47361 Message: undefined,
47362 RequestID: undefined,
47363 };
47364 data = parsedOutput.body;
47365 if (data.Message !== undefined && data.Message !== null) {
47366 contents.Message = data.Message;
47367 }
47368 if (data.RequestID !== undefined && data.RequestID !== null) {
47369 contents.RequestID = data.RequestID;
47370 }
47371 return [2 /*return*/, contents];
47372 });
47373}); };
47374var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47375 var contents, data;
47376 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47377 contents = {
47378 name: "PayloadTooLargeException",
47379 $fault: "client",
47380 $metadata: deserializeMetadata(parsedOutput),
47381 Message: undefined,
47382 RequestID: undefined,
47383 };
47384 data = parsedOutput.body;
47385 if (data.Message !== undefined && data.Message !== null) {
47386 contents.Message = data.Message;
47387 }
47388 if (data.RequestID !== undefined && data.RequestID !== null) {
47389 contents.RequestID = data.RequestID;
47390 }
47391 return [2 /*return*/, contents];
47392 });
47393}); };
47394var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47395 var contents, data;
47396 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47397 contents = {
47398 name: "TooManyRequestsException",
47399 $fault: "client",
47400 $metadata: deserializeMetadata(parsedOutput),
47401 Message: undefined,
47402 RequestID: undefined,
47403 };
47404 data = parsedOutput.body;
47405 if (data.Message !== undefined && data.Message !== null) {
47406 contents.Message = data.Message;
47407 }
47408 if (data.RequestID !== undefined && data.RequestID !== null) {
47409 contents.RequestID = data.RequestID;
47410 }
47411 return [2 /*return*/, contents];
47412 });
47413}); };
47414var serializeAws_restJson1Activity = function (input, context) {
47415 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 &&
47416 input.CUSTOM !== null && { CUSTOM: serializeAws_restJson1CustomMessageActivity(input.CUSTOM, context) })), (input.ConditionalSplit !== undefined &&
47417 input.ConditionalSplit !== null && {
47418 ConditionalSplit: serializeAws_restJson1ConditionalSplitActivity(input.ConditionalSplit, context),
47419 })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EMAIL !== undefined &&
47420 input.EMAIL !== null && { EMAIL: serializeAws_restJson1EmailMessageActivity(input.EMAIL, context) })), (input.Holdout !== undefined &&
47421 input.Holdout !== null && { Holdout: serializeAws_restJson1HoldoutActivity(input.Holdout, context) })), (input.MultiCondition !== undefined &&
47422 input.MultiCondition !== null && {
47423 MultiCondition: serializeAws_restJson1MultiConditionalSplitActivity(input.MultiCondition, context),
47424 })), (input.PUSH !== undefined &&
47425 input.PUSH !== null && { PUSH: serializeAws_restJson1PushMessageActivity(input.PUSH, context) })), (input.RandomSplit !== undefined &&
47426 input.RandomSplit !== null && {
47427 RandomSplit: serializeAws_restJson1RandomSplitActivity(input.RandomSplit, context),
47428 })), (input.SMS !== undefined &&
47429 input.SMS !== null && { SMS: serializeAws_restJson1SMSMessageActivity(input.SMS, context) })), (input.Wait !== undefined &&
47430 input.Wait !== null && { Wait: serializeAws_restJson1WaitActivity(input.Wait, context) }));
47431};
47432var serializeAws_restJson1AddressConfiguration = function (input, context) {
47433 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 &&
47434 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.Substitutions !== undefined &&
47435 input.Substitutions !== null && {
47436 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47437 })), (input.TitleOverride !== undefined && input.TitleOverride !== null && { TitleOverride: input.TitleOverride }));
47438};
47439var serializeAws_restJson1ADMChannelRequest = function (input, context) {
47440 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 }));
47441};
47442var serializeAws_restJson1ADMMessage = function (input, context) {
47443 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 &&
47444 input.ConsolidationKey !== null && { ConsolidationKey: input.ConsolidationKey })), (input.Data !== undefined &&
47445 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 &&
47446 input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Substitutions !== undefined &&
47447 input.Substitutions !== null && {
47448 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47449 })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47450};
47451var serializeAws_restJson1AndroidPushNotificationTemplate = function (input, context) {
47452 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 &&
47453 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 }));
47454};
47455var serializeAws_restJson1APNSChannelRequest = function (input, context) {
47456 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 &&
47457 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 }));
47458};
47459var serializeAws_restJson1APNSMessage = function (input, context) {
47460 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 &&
47461 input.Data !== null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.MediaUrl !== undefined && input.MediaUrl !== null && { MediaUrl: input.MediaUrl })), (input.PreferredAuthenticationMethod !== undefined &&
47462 input.PreferredAuthenticationMethod !== null && {
47463 PreferredAuthenticationMethod: input.PreferredAuthenticationMethod,
47464 })), (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 &&
47465 input.Substitutions !== null && {
47466 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47467 })), (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 }));
47468};
47469var serializeAws_restJson1APNSPushNotificationTemplate = function (input, context) {
47470 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 }));
47471};
47472var serializeAws_restJson1APNSSandboxChannelRequest = function (input, context) {
47473 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 &&
47474 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 }));
47475};
47476var serializeAws_restJson1APNSVoipChannelRequest = function (input, context) {
47477 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 &&
47478 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 }));
47479};
47480var serializeAws_restJson1APNSVoipSandboxChannelRequest = function (input, context) {
47481 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 &&
47482 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 }));
47483};
47484var serializeAws_restJson1AttributeDimension = function (input, context) {
47485 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 &&
47486 input.Values !== null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }));
47487};
47488var serializeAws_restJson1BaiduChannelRequest = 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"])({}, (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 }));
47490};
47491var serializeAws_restJson1BaiduMessage = function (input, context) {
47492 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 &&
47493 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 &&
47494 input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Substitutions !== undefined &&
47495 input.Substitutions !== null && {
47496 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47497 })), (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 }));
47498};
47499var serializeAws_restJson1CampaignCustomMessage = function (input, context) {
47500 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: input.Data }));
47501};
47502var serializeAws_restJson1CampaignEmailMessage = function (input, context) {
47503 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 }));
47504};
47505var serializeAws_restJson1CampaignEventFilter = function (input, context) {
47506 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
47507 input.Dimensions !== null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) })), (input.FilterType !== undefined && input.FilterType !== null && { FilterType: input.FilterType }));
47508};
47509var serializeAws_restJson1CampaignHook = function (input, context) {
47510 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 &&
47511 input.LambdaFunctionName !== null && { LambdaFunctionName: input.LambdaFunctionName })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.WebUrl !== undefined && input.WebUrl !== null && { WebUrl: input.WebUrl }));
47512};
47513var serializeAws_restJson1CampaignLimits = function (input, context) {
47514 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 &&
47515 input.MaximumDuration !== null && { MaximumDuration: input.MaximumDuration })), (input.MessagesPerSecond !== undefined &&
47516 input.MessagesPerSecond !== null && { MessagesPerSecond: input.MessagesPerSecond })), (input.Total !== undefined && input.Total !== null && { Total: input.Total }));
47517};
47518var serializeAws_restJson1CampaignSmsMessage = function (input, context) {
47519 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 }));
47520};
47521var serializeAws_restJson1Condition = function (input, context) {
47522 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Conditions !== undefined &&
47523 input.Conditions !== null && {
47524 Conditions: serializeAws_restJson1ListOfSimpleCondition(input.Conditions, context),
47525 })), (input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }));
47526};
47527var serializeAws_restJson1ConditionalSplitActivity = function (input, context) {
47528 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 &&
47529 input.Condition !== null && { Condition: serializeAws_restJson1Condition(input.Condition, context) })), (input.EvaluationWaitTime !== undefined &&
47530 input.EvaluationWaitTime !== null && {
47531 EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context),
47532 })), (input.FalseActivity !== undefined && input.FalseActivity !== null && { FalseActivity: input.FalseActivity })), (input.TrueActivity !== undefined && input.TrueActivity !== null && { TrueActivity: input.TrueActivity }));
47533};
47534var serializeAws_restJson1CreateApplicationRequest = function (input, context) {
47535 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 &&
47536 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
47537};
47538var serializeAws_restJson1CreateRecommenderConfigurationShape = function (input, context) {
47539 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 &&
47540 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 &&
47541 input.RecommendationProviderIdType !== null && {
47542 RecommendationProviderIdType: input.RecommendationProviderIdType,
47543 })), (input.RecommendationProviderRoleArn !== undefined &&
47544 input.RecommendationProviderRoleArn !== null && {
47545 RecommendationProviderRoleArn: input.RecommendationProviderRoleArn,
47546 })), (input.RecommendationProviderUri !== undefined &&
47547 input.RecommendationProviderUri !== null && { RecommendationProviderUri: input.RecommendationProviderUri })), (input.RecommendationTransformerUri !== undefined &&
47548 input.RecommendationTransformerUri !== null && {
47549 RecommendationTransformerUri: input.RecommendationTransformerUri,
47550 })), (input.RecommendationsDisplayName !== undefined &&
47551 input.RecommendationsDisplayName !== null && { RecommendationsDisplayName: input.RecommendationsDisplayName })), (input.RecommendationsPerMessage !== undefined &&
47552 input.RecommendationsPerMessage !== null && { RecommendationsPerMessage: input.RecommendationsPerMessage }));
47553};
47554var serializeAws_restJson1CustomDeliveryConfiguration = function (input, context) {
47555 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 &&
47556 input.EndpointTypes !== null && {
47557 EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context),
47558 }));
47559};
47560var serializeAws_restJson1CustomMessageActivity = function (input, context) {
47561 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 &&
47562 input.EndpointTypes !== null && {
47563 EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context),
47564 })), (input.MessageConfig !== undefined &&
47565 input.MessageConfig !== null && {
47566 MessageConfig: serializeAws_restJson1JourneyCustomMessage(input.MessageConfig, context),
47567 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
47568 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
47569};
47570var serializeAws_restJson1DefaultMessage = function (input, context) {
47571 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 &&
47572 input.Substitutions !== null && {
47573 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47574 }));
47575};
47576var serializeAws_restJson1DefaultPushNotificationMessage = function (input, context) {
47577 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 &&
47578 input.Data !== null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.Substitutions !== undefined &&
47579 input.Substitutions !== null && {
47580 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47581 })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47582};
47583var serializeAws_restJson1DefaultPushNotificationTemplate = 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"])(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 }));
47585};
47586var serializeAws_restJson1DirectMessageConfiguration = function (input, context) {
47587 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 &&
47588 input.ADMMessage !== null && { ADMMessage: serializeAws_restJson1ADMMessage(input.ADMMessage, context) })), (input.APNSMessage !== undefined &&
47589 input.APNSMessage !== null && { APNSMessage: serializeAws_restJson1APNSMessage(input.APNSMessage, context) })), (input.BaiduMessage !== undefined &&
47590 input.BaiduMessage !== null && { BaiduMessage: serializeAws_restJson1BaiduMessage(input.BaiduMessage, context) })), (input.DefaultMessage !== undefined &&
47591 input.DefaultMessage !== null && {
47592 DefaultMessage: serializeAws_restJson1DefaultMessage(input.DefaultMessage, context),
47593 })), (input.DefaultPushNotificationMessage !== undefined &&
47594 input.DefaultPushNotificationMessage !== null && {
47595 DefaultPushNotificationMessage: serializeAws_restJson1DefaultPushNotificationMessage(input.DefaultPushNotificationMessage, context),
47596 })), (input.EmailMessage !== undefined &&
47597 input.EmailMessage !== null && { EmailMessage: serializeAws_restJson1EmailMessage(input.EmailMessage, context) })), (input.GCMMessage !== undefined &&
47598 input.GCMMessage !== null && { GCMMessage: serializeAws_restJson1GCMMessage(input.GCMMessage, context) })), (input.SMSMessage !== undefined &&
47599 input.SMSMessage !== null && { SMSMessage: serializeAws_restJson1SMSMessage(input.SMSMessage, context) })), (input.VoiceMessage !== undefined &&
47600 input.VoiceMessage !== null && { VoiceMessage: serializeAws_restJson1VoiceMessage(input.VoiceMessage, context) }));
47601};
47602var serializeAws_restJson1EmailChannelRequest = function (input, context) {
47603 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 &&
47604 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 }));
47605};
47606var serializeAws_restJson1EmailMessage = function (input, context) {
47607 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 &&
47608 input.FeedbackForwardingAddress !== null && { FeedbackForwardingAddress: input.FeedbackForwardingAddress })), (input.FromAddress !== undefined && input.FromAddress !== null && { FromAddress: input.FromAddress })), (input.RawEmail !== undefined &&
47609 input.RawEmail !== null && { RawEmail: serializeAws_restJson1RawEmail(input.RawEmail, context) })), (input.ReplyToAddresses !== undefined &&
47610 input.ReplyToAddresses !== null && {
47611 ReplyToAddresses: serializeAws_restJson1ListOf__string(input.ReplyToAddresses, context),
47612 })), (input.SimpleEmail !== undefined &&
47613 input.SimpleEmail !== null && { SimpleEmail: serializeAws_restJson1SimpleEmail(input.SimpleEmail, context) })), (input.Substitutions !== undefined &&
47614 input.Substitutions !== null && {
47615 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47616 }));
47617};
47618var serializeAws_restJson1EmailMessageActivity = function (input, context) {
47619 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 &&
47620 input.MessageConfig !== null && {
47621 MessageConfig: serializeAws_restJson1JourneyEmailMessage(input.MessageConfig, context),
47622 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
47623 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
47624};
47625var serializeAws_restJson1EmailTemplateRequest = function (input, context) {
47626 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 &&
47627 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 &&
47628 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.TextPart !== undefined && input.TextPart !== null && { TextPart: input.TextPart })), (input.tags !== undefined &&
47629 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
47630};
47631var serializeAws_restJson1EndpointBatchItem = function (input, context) {
47632 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 &&
47633 input.Attributes !== null && {
47634 Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
47635 })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.Demographic !== undefined &&
47636 input.Demographic !== null && {
47637 Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
47638 })), (input.EffectiveDate !== undefined && input.EffectiveDate !== null && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined &&
47639 input.EndpointStatus !== null && { EndpointStatus: input.EndpointStatus })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Location !== undefined &&
47640 input.Location !== null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined &&
47641 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 &&
47642 input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }));
47643};
47644var serializeAws_restJson1EndpointBatchRequest = function (input, context) {
47645 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Item !== undefined &&
47646 input.Item !== null && { Item: serializeAws_restJson1ListOfEndpointBatchItem(input.Item, context) }));
47647};
47648var serializeAws_restJson1EndpointDemographic = function (input, context) {
47649 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 &&
47650 input.PlatformVersion !== null && { PlatformVersion: input.PlatformVersion })), (input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }));
47651};
47652var serializeAws_restJson1EndpointLocation = function (input, context) {
47653 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 }));
47654};
47655var serializeAws_restJson1EndpointRequest = function (input, context) {
47656 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 &&
47657 input.Attributes !== null && {
47658 Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
47659 })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.Demographic !== undefined &&
47660 input.Demographic !== null && {
47661 Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
47662 })), (input.EffectiveDate !== undefined && input.EffectiveDate !== null && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined &&
47663 input.EndpointStatus !== null && { EndpointStatus: input.EndpointStatus })), (input.Location !== undefined &&
47664 input.Location !== null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined &&
47665 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 &&
47666 input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }));
47667};
47668var serializeAws_restJson1EndpointSendConfiguration = function (input, context) {
47669 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 &&
47670 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.Substitutions !== undefined &&
47671 input.Substitutions !== null && {
47672 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47673 })), (input.TitleOverride !== undefined && input.TitleOverride !== null && { TitleOverride: input.TitleOverride }));
47674};
47675var serializeAws_restJson1EndpointUser = function (input, context) {
47676 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.UserAttributes !== undefined &&
47677 input.UserAttributes !== null && {
47678 UserAttributes: serializeAws_restJson1MapOfListOf__string(input.UserAttributes, context),
47679 })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
47680};
47681var serializeAws_restJson1Event = 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"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AppPackageName !== undefined &&
47683 input.AppPackageName !== null && { AppPackageName: input.AppPackageName })), (input.AppTitle !== undefined && input.AppTitle !== null && { AppTitle: input.AppTitle })), (input.AppVersionCode !== undefined &&
47684 input.AppVersionCode !== null && { AppVersionCode: input.AppVersionCode })), (input.Attributes !== undefined &&
47685 input.Attributes !== null && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context) })), (input.ClientSdkVersion !== undefined &&
47686 input.ClientSdkVersion !== null && { ClientSdkVersion: input.ClientSdkVersion })), (input.EventType !== undefined && input.EventType !== null && { EventType: input.EventType })), (input.Metrics !== undefined &&
47687 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.SdkName !== undefined && input.SdkName !== null && { SdkName: input.SdkName })), (input.Session !== undefined &&
47688 input.Session !== null && { Session: serializeAws_restJson1Session(input.Session, context) })), (input.Timestamp !== undefined && input.Timestamp !== null && { Timestamp: input.Timestamp }));
47689};
47690var serializeAws_restJson1EventCondition = function (input, context) {
47691 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
47692 input.Dimensions !== null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) })), (input.MessageActivity !== undefined &&
47693 input.MessageActivity !== null && { MessageActivity: input.MessageActivity }));
47694};
47695var serializeAws_restJson1EventDimensions = function (input, context) {
47696 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 &&
47697 input.Attributes !== null && {
47698 Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context),
47699 })), (input.EventType !== undefined &&
47700 input.EventType !== null && { EventType: serializeAws_restJson1SetDimension(input.EventType, context) })), (input.Metrics !== undefined &&
47701 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) }));
47702};
47703var serializeAws_restJson1EventFilter = function (input, context) {
47704 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
47705 input.Dimensions !== null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) })), (input.FilterType !== undefined && input.FilterType !== null && { FilterType: input.FilterType }));
47706};
47707var serializeAws_restJson1EventsBatch = function (input, context) {
47708 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Endpoint !== undefined &&
47709 input.Endpoint !== null && { Endpoint: serializeAws_restJson1PublicEndpoint(input.Endpoint, context) })), (input.Events !== undefined &&
47710 input.Events !== null && { Events: serializeAws_restJson1MapOfEvent(input.Events, context) }));
47711};
47712var serializeAws_restJson1EventsRequest = function (input, context) {
47713 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BatchItem !== undefined &&
47714 input.BatchItem !== null && { BatchItem: serializeAws_restJson1MapOfEventsBatch(input.BatchItem, context) }));
47715};
47716var serializeAws_restJson1EventStartCondition = function (input, context) {
47717 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EventFilter !== undefined &&
47718 input.EventFilter !== null && { EventFilter: serializeAws_restJson1EventFilter(input.EventFilter, context) })), (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId }));
47719};
47720var serializeAws_restJson1ExportJobRequest = function (input, context) {
47721 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 &&
47722 input.SegmentVersion !== null && { SegmentVersion: input.SegmentVersion }));
47723};
47724var serializeAws_restJson1GCMChannelRequest = function (input, context) {
47725 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 }));
47726};
47727var serializeAws_restJson1GCMMessage = function (input, context) {
47728 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 &&
47729 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 &&
47730 input.RestrictedPackageName !== null && { RestrictedPackageName: input.RestrictedPackageName })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.SmallImageIconUrl !== undefined &&
47731 input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Substitutions !== undefined &&
47732 input.Substitutions !== null && {
47733 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47734 })), (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 }));
47735};
47736var serializeAws_restJson1GPSCoordinates = function (input, context) {
47737 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 }));
47738};
47739var serializeAws_restJson1GPSPointDimension = function (input, context) {
47740 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Coordinates !== undefined &&
47741 input.Coordinates !== null && { Coordinates: serializeAws_restJson1GPSCoordinates(input.Coordinates, context) })), (input.RangeInKilometers !== undefined &&
47742 input.RangeInKilometers !== null && { RangeInKilometers: input.RangeInKilometers }));
47743};
47744var serializeAws_restJson1HoldoutActivity = function (input, context) {
47745 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 }));
47746};
47747var serializeAws_restJson1ImportJobRequest = function (input, context) {
47748 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 &&
47749 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 }));
47750};
47751var serializeAws_restJson1JourneyCustomMessage = function (input, context) {
47752 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: input.Data }));
47753};
47754var serializeAws_restJson1JourneyEmailMessage = function (input, context) {
47755 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.FromAddress !== undefined && input.FromAddress !== null && { FromAddress: input.FromAddress }));
47756};
47757var serializeAws_restJson1JourneyLimits = function (input, context) {
47758 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 &&
47759 input.EndpointReentryCap !== null && { EndpointReentryCap: input.EndpointReentryCap })), (input.MessagesPerSecond !== undefined &&
47760 input.MessagesPerSecond !== null && { MessagesPerSecond: input.MessagesPerSecond }));
47761};
47762var serializeAws_restJson1JourneyPushMessage = function (input, context) {
47763 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TimeToLive !== undefined && input.TimeToLive !== null && { TimeToLive: input.TimeToLive }));
47764};
47765var serializeAws_restJson1JourneySchedule = function (input, context) {
47766 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 &&
47767 input.EndTime !== null && { EndTime: input.EndTime.toISOString().split(".")[0] + "Z" })), (input.StartTime !== undefined &&
47768 input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" })), (input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }));
47769};
47770var serializeAws_restJson1JourneySMSMessage = function (input, context) {
47771 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 }));
47772};
47773var serializeAws_restJson1JourneyStateRequest = function (input, context) {
47774 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.State !== undefined && input.State !== null && { State: input.State }));
47775};
47776var serializeAws_restJson1ListOf__EndpointTypesElement = function (input, context) {
47777 return input
47778 .filter(function (e) { return e != null; })
47779 .map(function (entry) {
47780 if (entry === null) {
47781 return null;
47782 }
47783 return entry;
47784 });
47785};
47786var serializeAws_restJson1ListOf__string = function (input, context) {
47787 return input
47788 .filter(function (e) { return e != null; })
47789 .map(function (entry) {
47790 if (entry === null) {
47791 return null;
47792 }
47793 return entry;
47794 });
47795};
47796var serializeAws_restJson1ListOfEndpointBatchItem = function (input, context) {
47797 return input
47798 .filter(function (e) { return e != null; })
47799 .map(function (entry) {
47800 if (entry === null) {
47801 return null;
47802 }
47803 return serializeAws_restJson1EndpointBatchItem(entry, context);
47804 });
47805};
47806var serializeAws_restJson1ListOfMultiConditionalBranch = function (input, context) {
47807 return input
47808 .filter(function (e) { return e != null; })
47809 .map(function (entry) {
47810 if (entry === null) {
47811 return null;
47812 }
47813 return serializeAws_restJson1MultiConditionalBranch(entry, context);
47814 });
47815};
47816var serializeAws_restJson1ListOfRandomSplitEntry = function (input, context) {
47817 return input
47818 .filter(function (e) { return e != null; })
47819 .map(function (entry) {
47820 if (entry === null) {
47821 return null;
47822 }
47823 return serializeAws_restJson1RandomSplitEntry(entry, context);
47824 });
47825};
47826var serializeAws_restJson1ListOfSegmentDimensions = function (input, context) {
47827 return input
47828 .filter(function (e) { return e != null; })
47829 .map(function (entry) {
47830 if (entry === null) {
47831 return null;
47832 }
47833 return serializeAws_restJson1SegmentDimensions(entry, context);
47834 });
47835};
47836var serializeAws_restJson1ListOfSegmentGroup = function (input, context) {
47837 return input
47838 .filter(function (e) { return e != null; })
47839 .map(function (entry) {
47840 if (entry === null) {
47841 return null;
47842 }
47843 return serializeAws_restJson1SegmentGroup(entry, context);
47844 });
47845};
47846var serializeAws_restJson1ListOfSegmentReference = function (input, context) {
47847 return input
47848 .filter(function (e) { return e != null; })
47849 .map(function (entry) {
47850 if (entry === null) {
47851 return null;
47852 }
47853 return serializeAws_restJson1SegmentReference(entry, context);
47854 });
47855};
47856var serializeAws_restJson1ListOfSimpleCondition = function (input, context) {
47857 return input
47858 .filter(function (e) { return e != null; })
47859 .map(function (entry) {
47860 if (entry === null) {
47861 return null;
47862 }
47863 return serializeAws_restJson1SimpleCondition(entry, context);
47864 });
47865};
47866var serializeAws_restJson1ListOfWriteTreatmentResource = function (input, context) {
47867 return input
47868 .filter(function (e) { return e != null; })
47869 .map(function (entry) {
47870 if (entry === null) {
47871 return null;
47872 }
47873 return serializeAws_restJson1WriteTreatmentResource(entry, context);
47874 });
47875};
47876var serializeAws_restJson1MapOf__double = function (input, context) {
47877 return Object.entries(input).reduce(function (acc, _a) {
47878 var _b;
47879 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47880 if (value === null) {
47881 return acc;
47882 }
47883 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
47884 }, {});
47885};
47886var serializeAws_restJson1MapOf__string = function (input, context) {
47887 return Object.entries(input).reduce(function (acc, _a) {
47888 var _b;
47889 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47890 if (value === null) {
47891 return acc;
47892 }
47893 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
47894 }, {});
47895};
47896var serializeAws_restJson1MapOfActivity = function (input, context) {
47897 return Object.entries(input).reduce(function (acc, _a) {
47898 var _b;
47899 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47900 if (value === null) {
47901 return acc;
47902 }
47903 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Activity(value, context), _b));
47904 }, {});
47905};
47906var serializeAws_restJson1MapOfAddressConfiguration = function (input, context) {
47907 return Object.entries(input).reduce(function (acc, _a) {
47908 var _b;
47909 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47910 if (value === null) {
47911 return acc;
47912 }
47913 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1AddressConfiguration(value, context), _b));
47914 }, {});
47915};
47916var serializeAws_restJson1MapOfAttributeDimension = function (input, context) {
47917 return Object.entries(input).reduce(function (acc, _a) {
47918 var _b;
47919 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47920 if (value === null) {
47921 return acc;
47922 }
47923 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1AttributeDimension(value, context), _b));
47924 }, {});
47925};
47926var serializeAws_restJson1MapOfEndpointSendConfiguration = function (input, context) {
47927 return Object.entries(input).reduce(function (acc, _a) {
47928 var _b;
47929 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47930 if (value === null) {
47931 return acc;
47932 }
47933 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1EndpointSendConfiguration(value, context), _b));
47934 }, {});
47935};
47936var serializeAws_restJson1MapOfEvent = function (input, context) {
47937 return Object.entries(input).reduce(function (acc, _a) {
47938 var _b;
47939 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47940 if (value === null) {
47941 return acc;
47942 }
47943 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Event(value, context), _b));
47944 }, {});
47945};
47946var serializeAws_restJson1MapOfEventsBatch = function (input, context) {
47947 return Object.entries(input).reduce(function (acc, _a) {
47948 var _b;
47949 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47950 if (value === null) {
47951 return acc;
47952 }
47953 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1EventsBatch(value, context), _b));
47954 }, {});
47955};
47956var serializeAws_restJson1MapOfListOf__string = function (input, context) {
47957 return Object.entries(input).reduce(function (acc, _a) {
47958 var _b;
47959 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47960 if (value === null) {
47961 return acc;
47962 }
47963 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));
47964 }, {});
47965};
47966var serializeAws_restJson1MapOfMetricDimension = function (input, context) {
47967 return Object.entries(input).reduce(function (acc, _a) {
47968 var _b;
47969 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47970 if (value === null) {
47971 return acc;
47972 }
47973 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1MetricDimension(value, context), _b));
47974 }, {});
47975};
47976var serializeAws_restJson1Message = function (input, context) {
47977 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 &&
47978 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 }));
47979};
47980var serializeAws_restJson1MessageConfiguration = function (input, context) {
47981 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 &&
47982 input.ADMMessage !== null && { ADMMessage: serializeAws_restJson1Message(input.ADMMessage, context) })), (input.APNSMessage !== undefined &&
47983 input.APNSMessage !== null && { APNSMessage: serializeAws_restJson1Message(input.APNSMessage, context) })), (input.BaiduMessage !== undefined &&
47984 input.BaiduMessage !== null && { BaiduMessage: serializeAws_restJson1Message(input.BaiduMessage, context) })), (input.CustomMessage !== undefined &&
47985 input.CustomMessage !== null && {
47986 CustomMessage: serializeAws_restJson1CampaignCustomMessage(input.CustomMessage, context),
47987 })), (input.DefaultMessage !== undefined &&
47988 input.DefaultMessage !== null && {
47989 DefaultMessage: serializeAws_restJson1Message(input.DefaultMessage, context),
47990 })), (input.EmailMessage !== undefined &&
47991 input.EmailMessage !== null && {
47992 EmailMessage: serializeAws_restJson1CampaignEmailMessage(input.EmailMessage, context),
47993 })), (input.GCMMessage !== undefined &&
47994 input.GCMMessage !== null && { GCMMessage: serializeAws_restJson1Message(input.GCMMessage, context) })), (input.SMSMessage !== undefined &&
47995 input.SMSMessage !== null && { SMSMessage: serializeAws_restJson1CampaignSmsMessage(input.SMSMessage, context) }));
47996};
47997var serializeAws_restJson1MessageRequest = function (input, context) {
47998 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 &&
47999 input.Addresses !== null && {
48000 Addresses: serializeAws_restJson1MapOfAddressConfiguration(input.Addresses, context),
48001 })), (input.Context !== undefined &&
48002 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.Endpoints !== undefined &&
48003 input.Endpoints !== null && {
48004 Endpoints: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Endpoints, context),
48005 })), (input.MessageConfiguration !== undefined &&
48006 input.MessageConfiguration !== null && {
48007 MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context),
48008 })), (input.TemplateConfiguration !== undefined &&
48009 input.TemplateConfiguration !== null && {
48010 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48011 })), (input.TraceId !== undefined && input.TraceId !== null && { TraceId: input.TraceId }));
48012};
48013var serializeAws_restJson1MetricDimension = function (input, context) {
48014 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ComparisonOperator !== undefined &&
48015 input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
48016};
48017var serializeAws_restJson1MultiConditionalBranch = function (input, context) {
48018 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Condition !== undefined &&
48019 input.Condition !== null && { Condition: serializeAws_restJson1SimpleCondition(input.Condition, context) })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity }));
48020};
48021var serializeAws_restJson1MultiConditionalSplitActivity = function (input, context) {
48022 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 &&
48023 input.Branches !== null && {
48024 Branches: serializeAws_restJson1ListOfMultiConditionalBranch(input.Branches, context),
48025 })), (input.DefaultActivity !== undefined &&
48026 input.DefaultActivity !== null && { DefaultActivity: input.DefaultActivity })), (input.EvaluationWaitTime !== undefined &&
48027 input.EvaluationWaitTime !== null && {
48028 EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context),
48029 }));
48030};
48031var serializeAws_restJson1NumberValidateRequest = function (input, context) {
48032 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IsoCountryCode !== undefined &&
48033 input.IsoCountryCode !== null && { IsoCountryCode: input.IsoCountryCode })), (input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }));
48034};
48035var serializeAws_restJson1PublicEndpoint = function (input, context) {
48036 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 &&
48037 input.Attributes !== null && {
48038 Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
48039 })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.Demographic !== undefined &&
48040 input.Demographic !== null && {
48041 Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
48042 })), (input.EffectiveDate !== undefined && input.EffectiveDate !== null && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined &&
48043 input.EndpointStatus !== null && { EndpointStatus: input.EndpointStatus })), (input.Location !== undefined &&
48044 input.Location !== null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined &&
48045 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 &&
48046 input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }));
48047};
48048var serializeAws_restJson1PushMessageActivity = function (input, context) {
48049 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 &&
48050 input.MessageConfig !== null && {
48051 MessageConfig: serializeAws_restJson1JourneyPushMessage(input.MessageConfig, context),
48052 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
48053 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
48054};
48055var serializeAws_restJson1PushNotificationTemplateRequest = function (input, context) {
48056 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 &&
48057 input.ADM !== null && { ADM: serializeAws_restJson1AndroidPushNotificationTemplate(input.ADM, context) })), (input.APNS !== undefined &&
48058 input.APNS !== null && { APNS: serializeAws_restJson1APNSPushNotificationTemplate(input.APNS, context) })), (input.Baidu !== undefined &&
48059 input.Baidu !== null && { Baidu: serializeAws_restJson1AndroidPushNotificationTemplate(input.Baidu, context) })), (input.Default !== undefined &&
48060 input.Default !== null && {
48061 Default: serializeAws_restJson1DefaultPushNotificationTemplate(input.Default, context),
48062 })), (input.DefaultSubstitutions !== undefined &&
48063 input.DefaultSubstitutions !== null && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.GCM !== undefined &&
48064 input.GCM !== null && { GCM: serializeAws_restJson1AndroidPushNotificationTemplate(input.GCM, context) })), (input.RecommenderId !== undefined && input.RecommenderId !== null && { RecommenderId: input.RecommenderId })), (input.TemplateDescription !== undefined &&
48065 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.tags !== undefined &&
48066 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48067};
48068var serializeAws_restJson1QuietTime = function (input, context) {
48069 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 }));
48070};
48071var serializeAws_restJson1RandomSplitActivity = function (input, context) {
48072 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Branches !== undefined &&
48073 input.Branches !== null && { Branches: serializeAws_restJson1ListOfRandomSplitEntry(input.Branches, context) }));
48074};
48075var serializeAws_restJson1RandomSplitEntry = function (input, context) {
48076 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 }));
48077};
48078var serializeAws_restJson1RawEmail = function (input, context) {
48079 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) }));
48080};
48081var serializeAws_restJson1RecencyDimension = function (input, context) {
48082 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 }));
48083};
48084var serializeAws_restJson1Schedule = function (input, context) {
48085 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 &&
48086 input.EventFilter !== null && {
48087 EventFilter: serializeAws_restJson1CampaignEventFilter(input.EventFilter, context),
48088 })), (input.Frequency !== undefined && input.Frequency !== null && { Frequency: input.Frequency })), (input.IsLocalTime !== undefined && input.IsLocalTime !== null && { IsLocalTime: input.IsLocalTime })), (input.QuietTime !== undefined &&
48089 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 }));
48090};
48091var serializeAws_restJson1SegmentBehaviors = function (input, context) {
48092 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Recency !== undefined &&
48093 input.Recency !== null && { Recency: serializeAws_restJson1RecencyDimension(input.Recency, context) }));
48094};
48095var serializeAws_restJson1SegmentCondition = function (input, context) {
48096 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId }));
48097};
48098var serializeAws_restJson1SegmentDemographics = function (input, context) {
48099 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 &&
48100 input.AppVersion !== null && { AppVersion: serializeAws_restJson1SetDimension(input.AppVersion, context) })), (input.Channel !== undefined &&
48101 input.Channel !== null && { Channel: serializeAws_restJson1SetDimension(input.Channel, context) })), (input.DeviceType !== undefined &&
48102 input.DeviceType !== null && { DeviceType: serializeAws_restJson1SetDimension(input.DeviceType, context) })), (input.Make !== undefined &&
48103 input.Make !== null && { Make: serializeAws_restJson1SetDimension(input.Make, context) })), (input.Model !== undefined &&
48104 input.Model !== null && { Model: serializeAws_restJson1SetDimension(input.Model, context) })), (input.Platform !== undefined &&
48105 input.Platform !== null && { Platform: serializeAws_restJson1SetDimension(input.Platform, context) }));
48106};
48107var serializeAws_restJson1SegmentDimensions = function (input, context) {
48108 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 &&
48109 input.Attributes !== null && {
48110 Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context),
48111 })), (input.Behavior !== undefined &&
48112 input.Behavior !== null && { Behavior: serializeAws_restJson1SegmentBehaviors(input.Behavior, context) })), (input.Demographic !== undefined &&
48113 input.Demographic !== null && {
48114 Demographic: serializeAws_restJson1SegmentDemographics(input.Demographic, context),
48115 })), (input.Location !== undefined &&
48116 input.Location !== null && { Location: serializeAws_restJson1SegmentLocation(input.Location, context) })), (input.Metrics !== undefined &&
48117 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) })), (input.UserAttributes !== undefined &&
48118 input.UserAttributes !== null && {
48119 UserAttributes: serializeAws_restJson1MapOfAttributeDimension(input.UserAttributes, context),
48120 }));
48121};
48122var serializeAws_restJson1SegmentGroup = function (input, context) {
48123 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 &&
48124 input.Dimensions !== null && {
48125 Dimensions: serializeAws_restJson1ListOfSegmentDimensions(input.Dimensions, context),
48126 })), (input.SourceSegments !== undefined &&
48127 input.SourceSegments !== null && {
48128 SourceSegments: serializeAws_restJson1ListOfSegmentReference(input.SourceSegments, context),
48129 })), (input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
48130};
48131var serializeAws_restJson1SegmentGroupList = function (input, context) {
48132 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Groups !== undefined &&
48133 input.Groups !== null && { Groups: serializeAws_restJson1ListOfSegmentGroup(input.Groups, context) })), (input.Include !== undefined && input.Include !== null && { Include: input.Include }));
48134};
48135var serializeAws_restJson1SegmentLocation = function (input, context) {
48136 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Country !== undefined &&
48137 input.Country !== null && { Country: serializeAws_restJson1SetDimension(input.Country, context) })), (input.GPSPoint !== undefined &&
48138 input.GPSPoint !== null && { GPSPoint: serializeAws_restJson1GPSPointDimension(input.GPSPoint, context) }));
48139};
48140var serializeAws_restJson1SegmentReference = function (input, context) {
48141 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 }));
48142};
48143var serializeAws_restJson1SendUsersMessageRequest = function (input, context) {
48144 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 &&
48145 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.MessageConfiguration !== undefined &&
48146 input.MessageConfiguration !== null && {
48147 MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context),
48148 })), (input.TemplateConfiguration !== undefined &&
48149 input.TemplateConfiguration !== null && {
48150 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48151 })), (input.TraceId !== undefined && input.TraceId !== null && { TraceId: input.TraceId })), (input.Users !== undefined &&
48152 input.Users !== null && { Users: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Users, context) }));
48153};
48154var serializeAws_restJson1Session = 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"])({}, (input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.StartTimestamp !== undefined &&
48156 input.StartTimestamp !== null && { StartTimestamp: input.StartTimestamp })), (input.StopTimestamp !== undefined && input.StopTimestamp !== null && { StopTimestamp: input.StopTimestamp }));
48157};
48158var serializeAws_restJson1SetDimension = function (input, context) {
48159 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 &&
48160 input.Values !== null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }));
48161};
48162var serializeAws_restJson1SimpleCondition = function (input, context) {
48163 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 &&
48164 input.EventCondition !== null && {
48165 EventCondition: serializeAws_restJson1EventCondition(input.EventCondition, context),
48166 })), (input.SegmentCondition !== undefined &&
48167 input.SegmentCondition !== null && {
48168 SegmentCondition: serializeAws_restJson1SegmentCondition(input.SegmentCondition, context),
48169 })), (input.SegmentDimensions !== undefined &&
48170 input.SegmentDimensions !== null && {
48171 segmentDimensions: serializeAws_restJson1SegmentDimensions(input.SegmentDimensions, context),
48172 }));
48173};
48174var serializeAws_restJson1SimpleEmail = function (input, context) {
48175 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 &&
48176 input.HtmlPart !== null && { HtmlPart: serializeAws_restJson1SimpleEmailPart(input.HtmlPart, context) })), (input.Subject !== undefined &&
48177 input.Subject !== null && { Subject: serializeAws_restJson1SimpleEmailPart(input.Subject, context) })), (input.TextPart !== undefined &&
48178 input.TextPart !== null && { TextPart: serializeAws_restJson1SimpleEmailPart(input.TextPart, context) }));
48179};
48180var serializeAws_restJson1SimpleEmailPart = function (input, context) {
48181 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 }));
48182};
48183var serializeAws_restJson1SMSChannelRequest = function (input, context) {
48184 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 }));
48185};
48186var serializeAws_restJson1SMSMessage = function (input, context) {
48187 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 &&
48188 input.OriginationNumber !== null && { OriginationNumber: input.OriginationNumber })), (input.SenderId !== undefined && input.SenderId !== null && { SenderId: input.SenderId })), (input.Substitutions !== undefined &&
48189 input.Substitutions !== null && {
48190 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
48191 }));
48192};
48193var serializeAws_restJson1SMSMessageActivity = function (input, context) {
48194 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 &&
48195 input.MessageConfig !== null && {
48196 MessageConfig: serializeAws_restJson1JourneySMSMessage(input.MessageConfig, context),
48197 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
48198 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
48199};
48200var serializeAws_restJson1SMSTemplateRequest = function (input, context) {
48201 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 &&
48202 input.DefaultSubstitutions !== null && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.RecommenderId !== undefined && input.RecommenderId !== null && { RecommenderId: input.RecommenderId })), (input.TemplateDescription !== undefined &&
48203 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.tags !== undefined &&
48204 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48205};
48206var serializeAws_restJson1StartCondition = function (input, context) {
48207 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 &&
48208 input.EventStartCondition !== null && {
48209 EventStartCondition: serializeAws_restJson1EventStartCondition(input.EventStartCondition, context),
48210 })), (input.SegmentStartCondition !== undefined &&
48211 input.SegmentStartCondition !== null && {
48212 SegmentStartCondition: serializeAws_restJson1SegmentCondition(input.SegmentStartCondition, context),
48213 }));
48214};
48215var serializeAws_restJson1TagsModel = function (input, context) {
48216 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.tags !== undefined &&
48217 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48218};
48219var serializeAws_restJson1Template = function (input, context) {
48220 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 }));
48221};
48222var serializeAws_restJson1TemplateActiveVersionRequest = function (input, context) {
48223 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
48224};
48225var serializeAws_restJson1TemplateConfiguration = function (input, context) {
48226 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 &&
48227 input.EmailTemplate !== null && { EmailTemplate: serializeAws_restJson1Template(input.EmailTemplate, context) })), (input.PushTemplate !== undefined &&
48228 input.PushTemplate !== null && { PushTemplate: serializeAws_restJson1Template(input.PushTemplate, context) })), (input.SMSTemplate !== undefined &&
48229 input.SMSTemplate !== null && { SMSTemplate: serializeAws_restJson1Template(input.SMSTemplate, context) })), (input.VoiceTemplate !== undefined &&
48230 input.VoiceTemplate !== null && { VoiceTemplate: serializeAws_restJson1Template(input.VoiceTemplate, context) }));
48231};
48232var serializeAws_restJson1UpdateAttributesRequest = function (input, context) {
48233 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Blacklist !== undefined &&
48234 input.Blacklist !== null && { Blacklist: serializeAws_restJson1ListOf__string(input.Blacklist, context) }));
48235};
48236var serializeAws_restJson1UpdateRecommenderConfigurationShape = function (input, context) {
48237 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 &&
48238 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 &&
48239 input.RecommendationProviderIdType !== null && {
48240 RecommendationProviderIdType: input.RecommendationProviderIdType,
48241 })), (input.RecommendationProviderRoleArn !== undefined &&
48242 input.RecommendationProviderRoleArn !== null && {
48243 RecommendationProviderRoleArn: input.RecommendationProviderRoleArn,
48244 })), (input.RecommendationProviderUri !== undefined &&
48245 input.RecommendationProviderUri !== null && { RecommendationProviderUri: input.RecommendationProviderUri })), (input.RecommendationTransformerUri !== undefined &&
48246 input.RecommendationTransformerUri !== null && {
48247 RecommendationTransformerUri: input.RecommendationTransformerUri,
48248 })), (input.RecommendationsDisplayName !== undefined &&
48249 input.RecommendationsDisplayName !== null && { RecommendationsDisplayName: input.RecommendationsDisplayName })), (input.RecommendationsPerMessage !== undefined &&
48250 input.RecommendationsPerMessage !== null && { RecommendationsPerMessage: input.RecommendationsPerMessage }));
48251};
48252var serializeAws_restJson1VoiceChannelRequest = function (input, context) {
48253 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
48254};
48255var serializeAws_restJson1VoiceMessage = function (input, context) {
48256 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 &&
48257 input.OriginationNumber !== null && { OriginationNumber: input.OriginationNumber })), (input.Substitutions !== undefined &&
48258 input.Substitutions !== null && {
48259 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
48260 })), (input.VoiceId !== undefined && input.VoiceId !== null && { VoiceId: input.VoiceId }));
48261};
48262var serializeAws_restJson1VoiceTemplateRequest = 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"])(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 &&
48264 input.DefaultSubstitutions !== null && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.TemplateDescription !== undefined &&
48265 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.VoiceId !== undefined && input.VoiceId !== null && { VoiceId: input.VoiceId })), (input.tags !== undefined &&
48266 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48267};
48268var serializeAws_restJson1WaitActivity = function (input, context) {
48269 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 &&
48270 input.WaitTime !== null && { WaitTime: serializeAws_restJson1WaitTime(input.WaitTime, context) }));
48271};
48272var serializeAws_restJson1WaitTime = function (input, context) {
48273 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 }));
48274};
48275var serializeAws_restJson1WriteApplicationSettingsRequest = function (input, context) {
48276 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 &&
48277 input.CampaignHook !== null && { CampaignHook: serializeAws_restJson1CampaignHook(input.CampaignHook, context) })), (input.CloudWatchMetricsEnabled !== undefined &&
48278 input.CloudWatchMetricsEnabled !== null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled })), (input.EventTaggingEnabled !== undefined &&
48279 input.EventTaggingEnabled !== null && { EventTaggingEnabled: input.EventTaggingEnabled })), (input.Limits !== undefined &&
48280 input.Limits !== null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) })), (input.QuietTime !== undefined &&
48281 input.QuietTime !== null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) }));
48282};
48283var serializeAws_restJson1WriteCampaignRequest = function (input, context) {
48284 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 &&
48285 input.AdditionalTreatments !== null && {
48286 AdditionalTreatments: serializeAws_restJson1ListOfWriteTreatmentResource(input.AdditionalTreatments, context),
48287 })), (input.CustomDeliveryConfiguration !== undefined &&
48288 input.CustomDeliveryConfiguration !== null && {
48289 CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context),
48290 })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.HoldoutPercent !== undefined &&
48291 input.HoldoutPercent !== null && { HoldoutPercent: input.HoldoutPercent })), (input.Hook !== undefined &&
48292 input.Hook !== null && { Hook: serializeAws_restJson1CampaignHook(input.Hook, context) })), (input.IsPaused !== undefined && input.IsPaused !== null && { IsPaused: input.IsPaused })), (input.Limits !== undefined &&
48293 input.Limits !== null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) })), (input.MessageConfiguration !== undefined &&
48294 input.MessageConfiguration !== null && {
48295 MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context),
48296 })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Schedule !== undefined &&
48297 input.Schedule !== null && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) })), (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId })), (input.SegmentVersion !== undefined &&
48298 input.SegmentVersion !== null && { SegmentVersion: input.SegmentVersion })), (input.TemplateConfiguration !== undefined &&
48299 input.TemplateConfiguration !== null && {
48300 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48301 })), (input.TreatmentDescription !== undefined &&
48302 input.TreatmentDescription !== null && { TreatmentDescription: input.TreatmentDescription })), (input.TreatmentName !== undefined && input.TreatmentName !== null && { TreatmentName: input.TreatmentName })), (input.tags !== undefined &&
48303 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48304};
48305var serializeAws_restJson1WriteEventStream = function (input, context) {
48306 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DestinationStreamArn !== undefined &&
48307 input.DestinationStreamArn !== null && { DestinationStreamArn: input.DestinationStreamArn })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
48308};
48309var serializeAws_restJson1WriteJourneyRequest = function (input, context) {
48310 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 &&
48311 input.Activities !== null && { Activities: serializeAws_restJson1MapOfActivity(input.Activities, context) })), (input.CreationDate !== undefined && input.CreationDate !== null && { CreationDate: input.CreationDate })), (input.LastModifiedDate !== undefined &&
48312 input.LastModifiedDate !== null && { LastModifiedDate: input.LastModifiedDate })), (input.Limits !== undefined &&
48313 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 &&
48314 input.QuietTime !== null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })), (input.RefreshFrequency !== undefined &&
48315 input.RefreshFrequency !== null && { RefreshFrequency: input.RefreshFrequency })), (input.Schedule !== undefined &&
48316 input.Schedule !== null && { Schedule: serializeAws_restJson1JourneySchedule(input.Schedule, context) })), (input.StartActivity !== undefined && input.StartActivity !== null && { StartActivity: input.StartActivity })), (input.StartCondition !== undefined &&
48317 input.StartCondition !== null && {
48318 StartCondition: serializeAws_restJson1StartCondition(input.StartCondition, context),
48319 })), (input.State !== undefined && input.State !== null && { State: input.State }));
48320};
48321var serializeAws_restJson1WriteSegmentRequest = function (input, context) {
48322 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 &&
48323 input.Dimensions !== null && { Dimensions: serializeAws_restJson1SegmentDimensions(input.Dimensions, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SegmentGroups !== undefined &&
48324 input.SegmentGroups !== null && {
48325 SegmentGroups: serializeAws_restJson1SegmentGroupList(input.SegmentGroups, context),
48326 })), (input.tags !== undefined &&
48327 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48328};
48329var serializeAws_restJson1WriteTreatmentResource = function (input, context) {
48330 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 &&
48331 input.CustomDeliveryConfiguration !== null && {
48332 CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context),
48333 })), (input.MessageConfiguration !== undefined &&
48334 input.MessageConfiguration !== null && {
48335 MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context),
48336 })), (input.Schedule !== undefined &&
48337 input.Schedule !== null && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) })), (input.SizePercent !== undefined && input.SizePercent !== null && { SizePercent: input.SizePercent })), (input.TemplateConfiguration !== undefined &&
48338 input.TemplateConfiguration !== null && {
48339 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48340 })), (input.TreatmentDescription !== undefined &&
48341 input.TreatmentDescription !== null && { TreatmentDescription: input.TreatmentDescription })), (input.TreatmentName !== undefined && input.TreatmentName !== null && { TreatmentName: input.TreatmentName }));
48342};
48343var deserializeAws_restJson1ActivitiesResponse = function (output, context) {
48344 return {
48345 Item: output.Item !== undefined && output.Item !== null
48346 ? deserializeAws_restJson1ListOfActivityResponse(output.Item, context)
48347 : undefined,
48348 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48349 };
48350};
48351var deserializeAws_restJson1Activity = function (output, context) {
48352 return {
48353 CUSTOM: output.CUSTOM !== undefined && output.CUSTOM !== null
48354 ? deserializeAws_restJson1CustomMessageActivity(output.CUSTOM, context)
48355 : undefined,
48356 ConditionalSplit: output.ConditionalSplit !== undefined && output.ConditionalSplit !== null
48357 ? deserializeAws_restJson1ConditionalSplitActivity(output.ConditionalSplit, context)
48358 : undefined,
48359 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
48360 EMAIL: output.EMAIL !== undefined && output.EMAIL !== null
48361 ? deserializeAws_restJson1EmailMessageActivity(output.EMAIL, context)
48362 : undefined,
48363 Holdout: output.Holdout !== undefined && output.Holdout !== null
48364 ? deserializeAws_restJson1HoldoutActivity(output.Holdout, context)
48365 : undefined,
48366 MultiCondition: output.MultiCondition !== undefined && output.MultiCondition !== null
48367 ? deserializeAws_restJson1MultiConditionalSplitActivity(output.MultiCondition, context)
48368 : undefined,
48369 PUSH: output.PUSH !== undefined && output.PUSH !== null
48370 ? deserializeAws_restJson1PushMessageActivity(output.PUSH, context)
48371 : undefined,
48372 RandomSplit: output.RandomSplit !== undefined && output.RandomSplit !== null
48373 ? deserializeAws_restJson1RandomSplitActivity(output.RandomSplit, context)
48374 : undefined,
48375 SMS: output.SMS !== undefined && output.SMS !== null
48376 ? deserializeAws_restJson1SMSMessageActivity(output.SMS, context)
48377 : undefined,
48378 Wait: output.Wait !== undefined && output.Wait !== null
48379 ? deserializeAws_restJson1WaitActivity(output.Wait, context)
48380 : undefined,
48381 };
48382};
48383var deserializeAws_restJson1ActivityResponse = function (output, context) {
48384 return {
48385 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48386 CampaignId: output.CampaignId !== undefined && output.CampaignId !== null ? output.CampaignId : undefined,
48387 End: output.End !== undefined && output.End !== null ? output.End : undefined,
48388 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48389 Result: output.Result !== undefined && output.Result !== null ? output.Result : undefined,
48390 ScheduledStart: output.ScheduledStart !== undefined && output.ScheduledStart !== null ? output.ScheduledStart : undefined,
48391 Start: output.Start !== undefined && output.Start !== null ? output.Start : undefined,
48392 State: output.State !== undefined && output.State !== null ? output.State : undefined,
48393 SuccessfulEndpointCount: output.SuccessfulEndpointCount !== undefined && output.SuccessfulEndpointCount !== null
48394 ? output.SuccessfulEndpointCount
48395 : undefined,
48396 TimezonesCompletedCount: output.TimezonesCompletedCount !== undefined && output.TimezonesCompletedCount !== null
48397 ? output.TimezonesCompletedCount
48398 : undefined,
48399 TimezonesTotalCount: output.TimezonesTotalCount !== undefined && output.TimezonesTotalCount !== null
48400 ? output.TimezonesTotalCount
48401 : undefined,
48402 TotalEndpointCount: output.TotalEndpointCount !== undefined && output.TotalEndpointCount !== null
48403 ? output.TotalEndpointCount
48404 : undefined,
48405 TreatmentId: output.TreatmentId !== undefined && output.TreatmentId !== null ? output.TreatmentId : undefined,
48406 };
48407};
48408var deserializeAws_restJson1ADMChannelResponse = function (output, context) {
48409 return {
48410 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48411 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48412 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48413 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48414 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48415 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48416 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48417 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48418 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48419 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48420 };
48421};
48422var deserializeAws_restJson1AndroidPushNotificationTemplate = function (output, context) {
48423 return {
48424 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
48425 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48426 ImageIconUrl: output.ImageIconUrl !== undefined && output.ImageIconUrl !== null ? output.ImageIconUrl : undefined,
48427 ImageUrl: output.ImageUrl !== undefined && output.ImageUrl !== null ? output.ImageUrl : undefined,
48428 RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined,
48429 SmallImageIconUrl: output.SmallImageIconUrl !== undefined && output.SmallImageIconUrl !== null
48430 ? output.SmallImageIconUrl
48431 : undefined,
48432 Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined,
48433 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48434 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
48435 };
48436};
48437var deserializeAws_restJson1APNSChannelResponse = function (output, context) {
48438 return {
48439 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48440 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48441 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48442 ? output.DefaultAuthenticationMethod
48443 : undefined,
48444 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48445 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48446 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48447 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48448 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48449 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48450 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48451 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48452 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48453 };
48454};
48455var deserializeAws_restJson1APNSPushNotificationTemplate = function (output, context) {
48456 return {
48457 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
48458 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48459 MediaUrl: output.MediaUrl !== undefined && output.MediaUrl !== null ? output.MediaUrl : undefined,
48460 RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined,
48461 Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined,
48462 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48463 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
48464 };
48465};
48466var deserializeAws_restJson1APNSSandboxChannelResponse = function (output, context) {
48467 return {
48468 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48469 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48470 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48471 ? output.DefaultAuthenticationMethod
48472 : undefined,
48473 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48474 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48475 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48476 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48477 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48478 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48479 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48480 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48481 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48482 };
48483};
48484var deserializeAws_restJson1APNSVoipChannelResponse = function (output, context) {
48485 return {
48486 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48487 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48488 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48489 ? output.DefaultAuthenticationMethod
48490 : undefined,
48491 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48492 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48493 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48494 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48495 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48496 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48497 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48498 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48499 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48500 };
48501};
48502var deserializeAws_restJson1APNSVoipSandboxChannelResponse = function (output, context) {
48503 return {
48504 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48505 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48506 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48507 ? output.DefaultAuthenticationMethod
48508 : undefined,
48509 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48510 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48511 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48512 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48513 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48514 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48515 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48516 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48517 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48518 };
48519};
48520var deserializeAws_restJson1ApplicationDateRangeKpiResponse = function (output, context) {
48521 return {
48522 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48523 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
48524 KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined,
48525 KpiResult: output.KpiResult !== undefined && output.KpiResult !== null
48526 ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
48527 : undefined,
48528 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48529 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
48530 };
48531};
48532var deserializeAws_restJson1ApplicationResponse = function (output, context) {
48533 return {
48534 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48535 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48536 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
48537 tags: output.tags !== undefined && output.tags !== null
48538 ? deserializeAws_restJson1MapOf__string(output.tags, context)
48539 : undefined,
48540 };
48541};
48542var deserializeAws_restJson1ApplicationSettingsResource = function (output, context) {
48543 return {
48544 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48545 CampaignHook: output.CampaignHook !== undefined && output.CampaignHook !== null
48546 ? deserializeAws_restJson1CampaignHook(output.CampaignHook, context)
48547 : undefined,
48548 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48549 Limits: output.Limits !== undefined && output.Limits !== null
48550 ? deserializeAws_restJson1CampaignLimits(output.Limits, context)
48551 : undefined,
48552 QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
48553 ? deserializeAws_restJson1QuietTime(output.QuietTime, context)
48554 : undefined,
48555 };
48556};
48557var deserializeAws_restJson1ApplicationsResponse = function (output, context) {
48558 return {
48559 Item: output.Item !== undefined && output.Item !== null
48560 ? deserializeAws_restJson1ListOfApplicationResponse(output.Item, context)
48561 : undefined,
48562 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48563 };
48564};
48565var deserializeAws_restJson1AttributeDimension = function (output, context) {
48566 return {
48567 AttributeType: output.AttributeType !== undefined && output.AttributeType !== null ? output.AttributeType : undefined,
48568 Values: output.Values !== undefined && output.Values !== null
48569 ? deserializeAws_restJson1ListOf__string(output.Values, context)
48570 : undefined,
48571 };
48572};
48573var deserializeAws_restJson1AttributesResource = function (output, context) {
48574 return {
48575 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48576 AttributeType: output.AttributeType !== undefined && output.AttributeType !== null ? output.AttributeType : undefined,
48577 Attributes: output.Attributes !== undefined && output.Attributes !== null
48578 ? deserializeAws_restJson1ListOf__string(output.Attributes, context)
48579 : undefined,
48580 };
48581};
48582var deserializeAws_restJson1BaiduChannelResponse = function (output, context) {
48583 return {
48584 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48585 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48586 Credential: output.Credential !== undefined && output.Credential !== null ? output.Credential : undefined,
48587 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48588 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48589 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48590 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48591 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48592 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48593 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48594 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48595 };
48596};
48597var deserializeAws_restJson1BaseKpiResult = function (output, context) {
48598 return {
48599 Rows: output.Rows !== undefined && output.Rows !== null
48600 ? deserializeAws_restJson1ListOfResultRow(output.Rows, context)
48601 : undefined,
48602 };
48603};
48604var deserializeAws_restJson1CampaignCustomMessage = function (output, context) {
48605 return {
48606 Data: output.Data !== undefined && output.Data !== null ? output.Data : undefined,
48607 };
48608};
48609var deserializeAws_restJson1CampaignDateRangeKpiResponse = function (output, context) {
48610 return {
48611 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48612 CampaignId: output.CampaignId !== undefined && output.CampaignId !== null ? output.CampaignId : undefined,
48613 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
48614 KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined,
48615 KpiResult: output.KpiResult !== undefined && output.KpiResult !== null
48616 ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
48617 : undefined,
48618 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48619 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
48620 };
48621};
48622var deserializeAws_restJson1CampaignEmailMessage = function (output, context) {
48623 return {
48624 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48625 FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined,
48626 HtmlBody: output.HtmlBody !== undefined && output.HtmlBody !== null ? output.HtmlBody : undefined,
48627 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48628 };
48629};
48630var deserializeAws_restJson1CampaignEventFilter = function (output, context) {
48631 return {
48632 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
48633 ? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
48634 : undefined,
48635 FilterType: output.FilterType !== undefined && output.FilterType !== null ? output.FilterType : undefined,
48636 };
48637};
48638var deserializeAws_restJson1CampaignHook = function (output, context) {
48639 return {
48640 LambdaFunctionName: output.LambdaFunctionName !== undefined && output.LambdaFunctionName !== null
48641 ? output.LambdaFunctionName
48642 : undefined,
48643 Mode: output.Mode !== undefined && output.Mode !== null ? output.Mode : undefined,
48644 WebUrl: output.WebUrl !== undefined && output.WebUrl !== null ? output.WebUrl : undefined,
48645 };
48646};
48647var deserializeAws_restJson1CampaignLimits = function (output, context) {
48648 return {
48649 Daily: output.Daily !== undefined && output.Daily !== null ? output.Daily : undefined,
48650 MaximumDuration: output.MaximumDuration !== undefined && output.MaximumDuration !== null ? output.MaximumDuration : undefined,
48651 MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null
48652 ? output.MessagesPerSecond
48653 : undefined,
48654 Total: output.Total !== undefined && output.Total !== null ? output.Total : undefined,
48655 };
48656};
48657var deserializeAws_restJson1CampaignResponse = function (output, context) {
48658 return {
48659 AdditionalTreatments: output.AdditionalTreatments !== undefined && output.AdditionalTreatments !== null
48660 ? deserializeAws_restJson1ListOfTreatmentResource(output.AdditionalTreatments, context)
48661 : undefined,
48662 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48663 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48664 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48665 CustomDeliveryConfiguration: output.CustomDeliveryConfiguration !== undefined && output.CustomDeliveryConfiguration !== null
48666 ? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context)
48667 : undefined,
48668 DefaultState: output.DefaultState !== undefined && output.DefaultState !== null
48669 ? deserializeAws_restJson1CampaignState(output.DefaultState, context)
48670 : undefined,
48671 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
48672 HoldoutPercent: output.HoldoutPercent !== undefined && output.HoldoutPercent !== null ? output.HoldoutPercent : undefined,
48673 Hook: output.Hook !== undefined && output.Hook !== null
48674 ? deserializeAws_restJson1CampaignHook(output.Hook, context)
48675 : undefined,
48676 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48677 IsPaused: output.IsPaused !== undefined && output.IsPaused !== null ? output.IsPaused : undefined,
48678 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48679 Limits: output.Limits !== undefined && output.Limits !== null
48680 ? deserializeAws_restJson1CampaignLimits(output.Limits, context)
48681 : undefined,
48682 MessageConfiguration: output.MessageConfiguration !== undefined && output.MessageConfiguration !== null
48683 ? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context)
48684 : undefined,
48685 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
48686 Schedule: output.Schedule !== undefined && output.Schedule !== null
48687 ? deserializeAws_restJson1Schedule(output.Schedule, context)
48688 : undefined,
48689 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
48690 SegmentVersion: output.SegmentVersion !== undefined && output.SegmentVersion !== null ? output.SegmentVersion : undefined,
48691 State: output.State !== undefined && output.State !== null
48692 ? deserializeAws_restJson1CampaignState(output.State, context)
48693 : undefined,
48694 TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null
48695 ? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context)
48696 : undefined,
48697 TreatmentDescription: output.TreatmentDescription !== undefined && output.TreatmentDescription !== null
48698 ? output.TreatmentDescription
48699 : undefined,
48700 TreatmentName: output.TreatmentName !== undefined && output.TreatmentName !== null ? output.TreatmentName : undefined,
48701 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48702 tags: output.tags !== undefined && output.tags !== null
48703 ? deserializeAws_restJson1MapOf__string(output.tags, context)
48704 : undefined,
48705 };
48706};
48707var deserializeAws_restJson1CampaignSmsMessage = function (output, context) {
48708 return {
48709 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48710 MessageType: output.MessageType !== undefined && output.MessageType !== null ? output.MessageType : undefined,
48711 SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined,
48712 };
48713};
48714var deserializeAws_restJson1CampaignsResponse = function (output, context) {
48715 return {
48716 Item: output.Item !== undefined && output.Item !== null
48717 ? deserializeAws_restJson1ListOfCampaignResponse(output.Item, context)
48718 : undefined,
48719 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48720 };
48721};
48722var deserializeAws_restJson1CampaignState = function (output, context) {
48723 return {
48724 CampaignStatus: output.CampaignStatus !== undefined && output.CampaignStatus !== null ? output.CampaignStatus : undefined,
48725 };
48726};
48727var deserializeAws_restJson1ChannelResponse = function (output, context) {
48728 return {
48729 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48730 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48731 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48732 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48733 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48734 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48735 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48736 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48737 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48738 };
48739};
48740var deserializeAws_restJson1ChannelsResponse = function (output, context) {
48741 return {
48742 Channels: output.Channels !== undefined && output.Channels !== null
48743 ? deserializeAws_restJson1MapOfChannelResponse(output.Channels, context)
48744 : undefined,
48745 };
48746};
48747var deserializeAws_restJson1Condition = function (output, context) {
48748 return {
48749 Conditions: output.Conditions !== undefined && output.Conditions !== null
48750 ? deserializeAws_restJson1ListOfSimpleCondition(output.Conditions, context)
48751 : undefined,
48752 Operator: output.Operator !== undefined && output.Operator !== null ? output.Operator : undefined,
48753 };
48754};
48755var deserializeAws_restJson1ConditionalSplitActivity = function (output, context) {
48756 return {
48757 Condition: output.Condition !== undefined && output.Condition !== null
48758 ? deserializeAws_restJson1Condition(output.Condition, context)
48759 : undefined,
48760 EvaluationWaitTime: output.EvaluationWaitTime !== undefined && output.EvaluationWaitTime !== null
48761 ? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context)
48762 : undefined,
48763 FalseActivity: output.FalseActivity !== undefined && output.FalseActivity !== null ? output.FalseActivity : undefined,
48764 TrueActivity: output.TrueActivity !== undefined && output.TrueActivity !== null ? output.TrueActivity : undefined,
48765 };
48766};
48767var deserializeAws_restJson1CreateTemplateMessageBody = function (output, context) {
48768 return {
48769 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48770 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
48771 RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined,
48772 };
48773};
48774var deserializeAws_restJson1CustomDeliveryConfiguration = function (output, context) {
48775 return {
48776 DeliveryUri: output.DeliveryUri !== undefined && output.DeliveryUri !== null ? output.DeliveryUri : undefined,
48777 EndpointTypes: output.EndpointTypes !== undefined && output.EndpointTypes !== null
48778 ? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context)
48779 : undefined,
48780 };
48781};
48782var deserializeAws_restJson1CustomMessageActivity = function (output, context) {
48783 return {
48784 DeliveryUri: output.DeliveryUri !== undefined && output.DeliveryUri !== null ? output.DeliveryUri : undefined,
48785 EndpointTypes: output.EndpointTypes !== undefined && output.EndpointTypes !== null
48786 ? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context)
48787 : undefined,
48788 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
48789 ? deserializeAws_restJson1JourneyCustomMessage(output.MessageConfig, context)
48790 : undefined,
48791 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
48792 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
48793 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
48794 };
48795};
48796var deserializeAws_restJson1DefaultPushNotificationTemplate = function (output, context) {
48797 return {
48798 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
48799 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48800 Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined,
48801 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48802 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
48803 };
48804};
48805var deserializeAws_restJson1EmailChannelResponse = function (output, context) {
48806 return {
48807 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48808 ConfigurationSet: output.ConfigurationSet !== undefined && output.ConfigurationSet !== null ? output.ConfigurationSet : undefined,
48809 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48810 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48811 FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined,
48812 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48813 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48814 Identity: output.Identity !== undefined && output.Identity !== null ? output.Identity : undefined,
48815 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48816 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48817 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48818 MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null
48819 ? output.MessagesPerSecond
48820 : undefined,
48821 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48822 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
48823 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48824 };
48825};
48826var deserializeAws_restJson1EmailMessageActivity = function (output, context) {
48827 return {
48828 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
48829 ? deserializeAws_restJson1JourneyEmailMessage(output.MessageConfig, context)
48830 : undefined,
48831 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
48832 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
48833 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
48834 };
48835};
48836var deserializeAws_restJson1EmailTemplateResponse = function (output, context) {
48837 return {
48838 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48839 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48840 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
48841 ? output.DefaultSubstitutions
48842 : undefined,
48843 HtmlPart: output.HtmlPart !== undefined && output.HtmlPart !== null ? output.HtmlPart : undefined,
48844 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48845 RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined,
48846 Subject: output.Subject !== undefined && output.Subject !== null ? output.Subject : undefined,
48847 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
48848 ? output.TemplateDescription
48849 : undefined,
48850 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
48851 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
48852 TextPart: output.TextPart !== undefined && output.TextPart !== null ? output.TextPart : undefined,
48853 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48854 tags: output.tags !== undefined && output.tags !== null
48855 ? deserializeAws_restJson1MapOf__string(output.tags, context)
48856 : undefined,
48857 };
48858};
48859var deserializeAws_restJson1EndpointDemographic = function (output, context) {
48860 return {
48861 AppVersion: output.AppVersion !== undefined && output.AppVersion !== null ? output.AppVersion : undefined,
48862 Locale: output.Locale !== undefined && output.Locale !== null ? output.Locale : undefined,
48863 Make: output.Make !== undefined && output.Make !== null ? output.Make : undefined,
48864 Model: output.Model !== undefined && output.Model !== null ? output.Model : undefined,
48865 ModelVersion: output.ModelVersion !== undefined && output.ModelVersion !== null ? output.ModelVersion : undefined,
48866 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48867 PlatformVersion: output.PlatformVersion !== undefined && output.PlatformVersion !== null ? output.PlatformVersion : undefined,
48868 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
48869 };
48870};
48871var deserializeAws_restJson1EndpointItemResponse = function (output, context) {
48872 return {
48873 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
48874 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
48875 };
48876};
48877var deserializeAws_restJson1EndpointLocation = function (output, context) {
48878 return {
48879 City: output.City !== undefined && output.City !== null ? output.City : undefined,
48880 Country: output.Country !== undefined && output.Country !== null ? output.Country : undefined,
48881 Latitude: output.Latitude !== undefined && output.Latitude !== null ? output.Latitude : undefined,
48882 Longitude: output.Longitude !== undefined && output.Longitude !== null ? output.Longitude : undefined,
48883 PostalCode: output.PostalCode !== undefined && output.PostalCode !== null ? output.PostalCode : undefined,
48884 Region: output.Region !== undefined && output.Region !== null ? output.Region : undefined,
48885 };
48886};
48887var deserializeAws_restJson1EndpointMessageResult = function (output, context) {
48888 return {
48889 Address: output.Address !== undefined && output.Address !== null ? output.Address : undefined,
48890 DeliveryStatus: output.DeliveryStatus !== undefined && output.DeliveryStatus !== null ? output.DeliveryStatus : undefined,
48891 MessageId: output.MessageId !== undefined && output.MessageId !== null ? output.MessageId : undefined,
48892 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
48893 StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined,
48894 UpdatedToken: output.UpdatedToken !== undefined && output.UpdatedToken !== null ? output.UpdatedToken : undefined,
48895 };
48896};
48897var deserializeAws_restJson1EndpointResponse = function (output, context) {
48898 return {
48899 Address: output.Address !== undefined && output.Address !== null ? output.Address : undefined,
48900 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48901 Attributes: output.Attributes !== undefined && output.Attributes !== null
48902 ? deserializeAws_restJson1MapOfListOf__string(output.Attributes, context)
48903 : undefined,
48904 ChannelType: output.ChannelType !== undefined && output.ChannelType !== null ? output.ChannelType : undefined,
48905 CohortId: output.CohortId !== undefined && output.CohortId !== null ? output.CohortId : undefined,
48906 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48907 Demographic: output.Demographic !== undefined && output.Demographic !== null
48908 ? deserializeAws_restJson1EndpointDemographic(output.Demographic, context)
48909 : undefined,
48910 EffectiveDate: output.EffectiveDate !== undefined && output.EffectiveDate !== null ? output.EffectiveDate : undefined,
48911 EndpointStatus: output.EndpointStatus !== undefined && output.EndpointStatus !== null ? output.EndpointStatus : undefined,
48912 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48913 Location: output.Location !== undefined && output.Location !== null
48914 ? deserializeAws_restJson1EndpointLocation(output.Location, context)
48915 : undefined,
48916 Metrics: output.Metrics !== undefined && output.Metrics !== null
48917 ? deserializeAws_restJson1MapOf__double(output.Metrics, context)
48918 : undefined,
48919 OptOut: output.OptOut !== undefined && output.OptOut !== null ? output.OptOut : undefined,
48920 RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined,
48921 User: output.User !== undefined && output.User !== null
48922 ? deserializeAws_restJson1EndpointUser(output.User, context)
48923 : undefined,
48924 };
48925};
48926var deserializeAws_restJson1EndpointsResponse = function (output, context) {
48927 return {
48928 Item: output.Item !== undefined && output.Item !== null
48929 ? deserializeAws_restJson1ListOfEndpointResponse(output.Item, context)
48930 : undefined,
48931 };
48932};
48933var deserializeAws_restJson1EndpointUser = function (output, context) {
48934 return {
48935 UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null
48936 ? deserializeAws_restJson1MapOfListOf__string(output.UserAttributes, context)
48937 : undefined,
48938 UserId: output.UserId !== undefined && output.UserId !== null ? output.UserId : undefined,
48939 };
48940};
48941var deserializeAws_restJson1EventCondition = function (output, context) {
48942 return {
48943 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
48944 ? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
48945 : undefined,
48946 MessageActivity: output.MessageActivity !== undefined && output.MessageActivity !== null ? output.MessageActivity : undefined,
48947 };
48948};
48949var deserializeAws_restJson1EventDimensions = function (output, context) {
48950 return {
48951 Attributes: output.Attributes !== undefined && output.Attributes !== null
48952 ? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context)
48953 : undefined,
48954 EventType: output.EventType !== undefined && output.EventType !== null
48955 ? deserializeAws_restJson1SetDimension(output.EventType, context)
48956 : undefined,
48957 Metrics: output.Metrics !== undefined && output.Metrics !== null
48958 ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context)
48959 : undefined,
48960 };
48961};
48962var deserializeAws_restJson1EventFilter = function (output, context) {
48963 return {
48964 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
48965 ? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
48966 : undefined,
48967 FilterType: output.FilterType !== undefined && output.FilterType !== null ? output.FilterType : undefined,
48968 };
48969};
48970var deserializeAws_restJson1EventItemResponse = function (output, context) {
48971 return {
48972 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
48973 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
48974 };
48975};
48976var deserializeAws_restJson1EventsResponse = function (output, context) {
48977 return {
48978 Results: output.Results !== undefined && output.Results !== null
48979 ? deserializeAws_restJson1MapOfItemResponse(output.Results, context)
48980 : undefined,
48981 };
48982};
48983var deserializeAws_restJson1EventStartCondition = function (output, context) {
48984 return {
48985 EventFilter: output.EventFilter !== undefined && output.EventFilter !== null
48986 ? deserializeAws_restJson1EventFilter(output.EventFilter, context)
48987 : undefined,
48988 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
48989 };
48990};
48991var deserializeAws_restJson1EventStream = function (output, context) {
48992 return {
48993 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48994 DestinationStreamArn: output.DestinationStreamArn !== undefined && output.DestinationStreamArn !== null
48995 ? output.DestinationStreamArn
48996 : undefined,
48997 ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined,
48998 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48999 LastUpdatedBy: output.LastUpdatedBy !== undefined && output.LastUpdatedBy !== null ? output.LastUpdatedBy : undefined,
49000 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
49001 };
49002};
49003var deserializeAws_restJson1ExportJobResource = function (output, context) {
49004 return {
49005 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
49006 S3UrlPrefix: output.S3UrlPrefix !== undefined && output.S3UrlPrefix !== null ? output.S3UrlPrefix : undefined,
49007 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
49008 SegmentVersion: output.SegmentVersion !== undefined && output.SegmentVersion !== null ? output.SegmentVersion : undefined,
49009 };
49010};
49011var deserializeAws_restJson1ExportJobResponse = function (output, context) {
49012 return {
49013 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49014 CompletedPieces: output.CompletedPieces !== undefined && output.CompletedPieces !== null ? output.CompletedPieces : undefined,
49015 CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? output.CompletionDate : undefined,
49016 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49017 Definition: output.Definition !== undefined && output.Definition !== null
49018 ? deserializeAws_restJson1ExportJobResource(output.Definition, context)
49019 : undefined,
49020 FailedPieces: output.FailedPieces !== undefined && output.FailedPieces !== null ? output.FailedPieces : undefined,
49021 Failures: output.Failures !== undefined && output.Failures !== null
49022 ? deserializeAws_restJson1ListOf__string(output.Failures, context)
49023 : undefined,
49024 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49025 JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined,
49026 TotalFailures: output.TotalFailures !== undefined && output.TotalFailures !== null ? output.TotalFailures : undefined,
49027 TotalPieces: output.TotalPieces !== undefined && output.TotalPieces !== null ? output.TotalPieces : undefined,
49028 TotalProcessed: output.TotalProcessed !== undefined && output.TotalProcessed !== null ? output.TotalProcessed : undefined,
49029 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49030 };
49031};
49032var deserializeAws_restJson1ExportJobsResponse = function (output, context) {
49033 return {
49034 Item: output.Item !== undefined && output.Item !== null
49035 ? deserializeAws_restJson1ListOfExportJobResponse(output.Item, context)
49036 : undefined,
49037 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49038 };
49039};
49040var deserializeAws_restJson1GCMChannelResponse = function (output, context) {
49041 return {
49042 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49043 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49044 Credential: output.Credential !== undefined && output.Credential !== null ? output.Credential : undefined,
49045 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
49046 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
49047 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49048 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
49049 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
49050 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49051 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
49052 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
49053 };
49054};
49055var deserializeAws_restJson1GPSCoordinates = function (output, context) {
49056 return {
49057 Latitude: output.Latitude !== undefined && output.Latitude !== null ? output.Latitude : undefined,
49058 Longitude: output.Longitude !== undefined && output.Longitude !== null ? output.Longitude : undefined,
49059 };
49060};
49061var deserializeAws_restJson1GPSPointDimension = function (output, context) {
49062 return {
49063 Coordinates: output.Coordinates !== undefined && output.Coordinates !== null
49064 ? deserializeAws_restJson1GPSCoordinates(output.Coordinates, context)
49065 : undefined,
49066 RangeInKilometers: output.RangeInKilometers !== undefined && output.RangeInKilometers !== null
49067 ? output.RangeInKilometers
49068 : undefined,
49069 };
49070};
49071var deserializeAws_restJson1HoldoutActivity = function (output, context) {
49072 return {
49073 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49074 Percentage: output.Percentage !== undefined && output.Percentage !== null ? output.Percentage : undefined,
49075 };
49076};
49077var deserializeAws_restJson1ImportJobResource = function (output, context) {
49078 return {
49079 DefineSegment: output.DefineSegment !== undefined && output.DefineSegment !== null ? output.DefineSegment : undefined,
49080 ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined,
49081 Format: output.Format !== undefined && output.Format !== null ? output.Format : undefined,
49082 RegisterEndpoints: output.RegisterEndpoints !== undefined && output.RegisterEndpoints !== null
49083 ? output.RegisterEndpoints
49084 : undefined,
49085 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
49086 S3Url: output.S3Url !== undefined && output.S3Url !== null ? output.S3Url : undefined,
49087 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
49088 SegmentName: output.SegmentName !== undefined && output.SegmentName !== null ? output.SegmentName : undefined,
49089 };
49090};
49091var deserializeAws_restJson1ImportJobResponse = function (output, context) {
49092 return {
49093 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49094 CompletedPieces: output.CompletedPieces !== undefined && output.CompletedPieces !== null ? output.CompletedPieces : undefined,
49095 CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? output.CompletionDate : undefined,
49096 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49097 Definition: output.Definition !== undefined && output.Definition !== null
49098 ? deserializeAws_restJson1ImportJobResource(output.Definition, context)
49099 : undefined,
49100 FailedPieces: output.FailedPieces !== undefined && output.FailedPieces !== null ? output.FailedPieces : undefined,
49101 Failures: output.Failures !== undefined && output.Failures !== null
49102 ? deserializeAws_restJson1ListOf__string(output.Failures, context)
49103 : undefined,
49104 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49105 JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined,
49106 TotalFailures: output.TotalFailures !== undefined && output.TotalFailures !== null ? output.TotalFailures : undefined,
49107 TotalPieces: output.TotalPieces !== undefined && output.TotalPieces !== null ? output.TotalPieces : undefined,
49108 TotalProcessed: output.TotalProcessed !== undefined && output.TotalProcessed !== null ? output.TotalProcessed : undefined,
49109 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49110 };
49111};
49112var deserializeAws_restJson1ImportJobsResponse = function (output, context) {
49113 return {
49114 Item: output.Item !== undefined && output.Item !== null
49115 ? deserializeAws_restJson1ListOfImportJobResponse(output.Item, context)
49116 : undefined,
49117 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49118 };
49119};
49120var deserializeAws_restJson1ItemResponse = function (output, context) {
49121 return {
49122 EndpointItemResponse: output.EndpointItemResponse !== undefined && output.EndpointItemResponse !== null
49123 ? deserializeAws_restJson1EndpointItemResponse(output.EndpointItemResponse, context)
49124 : undefined,
49125 EventsItemResponse: output.EventsItemResponse !== undefined && output.EventsItemResponse !== null
49126 ? deserializeAws_restJson1MapOfEventItemResponse(output.EventsItemResponse, context)
49127 : undefined,
49128 };
49129};
49130var deserializeAws_restJson1JourneyCustomMessage = function (output, context) {
49131 return {
49132 Data: output.Data !== undefined && output.Data !== null ? output.Data : undefined,
49133 };
49134};
49135var deserializeAws_restJson1JourneyDateRangeKpiResponse = function (output, context) {
49136 return {
49137 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49138 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
49139 JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined,
49140 KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined,
49141 KpiResult: output.KpiResult !== undefined && output.KpiResult !== null
49142 ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
49143 : undefined,
49144 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49145 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
49146 };
49147};
49148var deserializeAws_restJson1JourneyEmailMessage = function (output, context) {
49149 return {
49150 FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined,
49151 };
49152};
49153var deserializeAws_restJson1JourneyExecutionActivityMetricsResponse = function (output, context) {
49154 return {
49155 ActivityType: output.ActivityType !== undefined && output.ActivityType !== null ? output.ActivityType : undefined,
49156 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49157 JourneyActivityId: output.JourneyActivityId !== undefined && output.JourneyActivityId !== null
49158 ? output.JourneyActivityId
49159 : undefined,
49160 JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined,
49161 LastEvaluatedTime: output.LastEvaluatedTime !== undefined && output.LastEvaluatedTime !== null
49162 ? output.LastEvaluatedTime
49163 : undefined,
49164 Metrics: output.Metrics !== undefined && output.Metrics !== null
49165 ? deserializeAws_restJson1MapOf__string(output.Metrics, context)
49166 : undefined,
49167 };
49168};
49169var deserializeAws_restJson1JourneyExecutionMetricsResponse = function (output, context) {
49170 return {
49171 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49172 JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined,
49173 LastEvaluatedTime: output.LastEvaluatedTime !== undefined && output.LastEvaluatedTime !== null
49174 ? output.LastEvaluatedTime
49175 : undefined,
49176 Metrics: output.Metrics !== undefined && output.Metrics !== null
49177 ? deserializeAws_restJson1MapOf__string(output.Metrics, context)
49178 : undefined,
49179 };
49180};
49181var deserializeAws_restJson1JourneyLimits = function (output, context) {
49182 return {
49183 DailyCap: output.DailyCap !== undefined && output.DailyCap !== null ? output.DailyCap : undefined,
49184 EndpointReentryCap: output.EndpointReentryCap !== undefined && output.EndpointReentryCap !== null
49185 ? output.EndpointReentryCap
49186 : undefined,
49187 MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null
49188 ? output.MessagesPerSecond
49189 : undefined,
49190 };
49191};
49192var deserializeAws_restJson1JourneyPushMessage = function (output, context) {
49193 return {
49194 TimeToLive: output.TimeToLive !== undefined && output.TimeToLive !== null ? output.TimeToLive : undefined,
49195 };
49196};
49197var deserializeAws_restJson1JourneyResponse = function (output, context) {
49198 return {
49199 Activities: output.Activities !== undefined && output.Activities !== null
49200 ? deserializeAws_restJson1MapOfActivity(output.Activities, context)
49201 : undefined,
49202 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49203 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49204 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49205 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49206 Limits: output.Limits !== undefined && output.Limits !== null
49207 ? deserializeAws_restJson1JourneyLimits(output.Limits, context)
49208 : undefined,
49209 LocalTime: output.LocalTime !== undefined && output.LocalTime !== null ? output.LocalTime : undefined,
49210 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
49211 QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
49212 ? deserializeAws_restJson1QuietTime(output.QuietTime, context)
49213 : undefined,
49214 RefreshFrequency: output.RefreshFrequency !== undefined && output.RefreshFrequency !== null ? output.RefreshFrequency : undefined,
49215 Schedule: output.Schedule !== undefined && output.Schedule !== null
49216 ? deserializeAws_restJson1JourneySchedule(output.Schedule, context)
49217 : undefined,
49218 StartActivity: output.StartActivity !== undefined && output.StartActivity !== null ? output.StartActivity : undefined,
49219 StartCondition: output.StartCondition !== undefined && output.StartCondition !== null
49220 ? deserializeAws_restJson1StartCondition(output.StartCondition, context)
49221 : undefined,
49222 State: output.State !== undefined && output.State !== null ? output.State : undefined,
49223 tags: output.tags !== undefined && output.tags !== null
49224 ? deserializeAws_restJson1MapOf__string(output.tags, context)
49225 : undefined,
49226 };
49227};
49228var deserializeAws_restJson1JourneySchedule = function (output, context) {
49229 return {
49230 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
49231 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
49232 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
49233 };
49234};
49235var deserializeAws_restJson1JourneySMSMessage = function (output, context) {
49236 return {
49237 MessageType: output.MessageType !== undefined && output.MessageType !== null ? output.MessageType : undefined,
49238 SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined,
49239 };
49240};
49241var deserializeAws_restJson1JourneysResponse = function (output, context) {
49242 return {
49243 Item: output.Item !== undefined && output.Item !== null
49244 ? deserializeAws_restJson1ListOfJourneyResponse(output.Item, context)
49245 : undefined,
49246 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49247 };
49248};
49249var deserializeAws_restJson1ListOf__EndpointTypesElement = function (output, context) {
49250 return (output || [])
49251 .filter(function (e) { return e != null; })
49252 .map(function (entry) {
49253 if (entry === null) {
49254 return null;
49255 }
49256 return entry;
49257 });
49258};
49259var deserializeAws_restJson1ListOf__string = function (output, context) {
49260 return (output || [])
49261 .filter(function (e) { return e != null; })
49262 .map(function (entry) {
49263 if (entry === null) {
49264 return null;
49265 }
49266 return entry;
49267 });
49268};
49269var deserializeAws_restJson1ListOfActivityResponse = function (output, context) {
49270 return (output || [])
49271 .filter(function (e) { return e != null; })
49272 .map(function (entry) {
49273 if (entry === null) {
49274 return null;
49275 }
49276 return deserializeAws_restJson1ActivityResponse(entry, context);
49277 });
49278};
49279var deserializeAws_restJson1ListOfApplicationResponse = function (output, context) {
49280 return (output || [])
49281 .filter(function (e) { return e != null; })
49282 .map(function (entry) {
49283 if (entry === null) {
49284 return null;
49285 }
49286 return deserializeAws_restJson1ApplicationResponse(entry, context);
49287 });
49288};
49289var deserializeAws_restJson1ListOfCampaignResponse = function (output, context) {
49290 return (output || [])
49291 .filter(function (e) { return e != null; })
49292 .map(function (entry) {
49293 if (entry === null) {
49294 return null;
49295 }
49296 return deserializeAws_restJson1CampaignResponse(entry, context);
49297 });
49298};
49299var deserializeAws_restJson1ListOfEndpointResponse = function (output, context) {
49300 return (output || [])
49301 .filter(function (e) { return e != null; })
49302 .map(function (entry) {
49303 if (entry === null) {
49304 return null;
49305 }
49306 return deserializeAws_restJson1EndpointResponse(entry, context);
49307 });
49308};
49309var deserializeAws_restJson1ListOfExportJobResponse = function (output, context) {
49310 return (output || [])
49311 .filter(function (e) { return e != null; })
49312 .map(function (entry) {
49313 if (entry === null) {
49314 return null;
49315 }
49316 return deserializeAws_restJson1ExportJobResponse(entry, context);
49317 });
49318};
49319var deserializeAws_restJson1ListOfImportJobResponse = function (output, context) {
49320 return (output || [])
49321 .filter(function (e) { return e != null; })
49322 .map(function (entry) {
49323 if (entry === null) {
49324 return null;
49325 }
49326 return deserializeAws_restJson1ImportJobResponse(entry, context);
49327 });
49328};
49329var deserializeAws_restJson1ListOfJourneyResponse = function (output, context) {
49330 return (output || [])
49331 .filter(function (e) { return e != null; })
49332 .map(function (entry) {
49333 if (entry === null) {
49334 return null;
49335 }
49336 return deserializeAws_restJson1JourneyResponse(entry, context);
49337 });
49338};
49339var deserializeAws_restJson1ListOfMultiConditionalBranch = function (output, context) {
49340 return (output || [])
49341 .filter(function (e) { return e != null; })
49342 .map(function (entry) {
49343 if (entry === null) {
49344 return null;
49345 }
49346 return deserializeAws_restJson1MultiConditionalBranch(entry, context);
49347 });
49348};
49349var deserializeAws_restJson1ListOfRandomSplitEntry = function (output, context) {
49350 return (output || [])
49351 .filter(function (e) { return e != null; })
49352 .map(function (entry) {
49353 if (entry === null) {
49354 return null;
49355 }
49356 return deserializeAws_restJson1RandomSplitEntry(entry, context);
49357 });
49358};
49359var deserializeAws_restJson1ListOfRecommenderConfigurationResponse = function (output, context) {
49360 return (output || [])
49361 .filter(function (e) { return e != null; })
49362 .map(function (entry) {
49363 if (entry === null) {
49364 return null;
49365 }
49366 return deserializeAws_restJson1RecommenderConfigurationResponse(entry, context);
49367 });
49368};
49369var deserializeAws_restJson1ListOfResultRow = function (output, context) {
49370 return (output || [])
49371 .filter(function (e) { return e != null; })
49372 .map(function (entry) {
49373 if (entry === null) {
49374 return null;
49375 }
49376 return deserializeAws_restJson1ResultRow(entry, context);
49377 });
49378};
49379var deserializeAws_restJson1ListOfResultRowValue = function (output, context) {
49380 return (output || [])
49381 .filter(function (e) { return e != null; })
49382 .map(function (entry) {
49383 if (entry === null) {
49384 return null;
49385 }
49386 return deserializeAws_restJson1ResultRowValue(entry, context);
49387 });
49388};
49389var deserializeAws_restJson1ListOfSegmentDimensions = function (output, context) {
49390 return (output || [])
49391 .filter(function (e) { return e != null; })
49392 .map(function (entry) {
49393 if (entry === null) {
49394 return null;
49395 }
49396 return deserializeAws_restJson1SegmentDimensions(entry, context);
49397 });
49398};
49399var deserializeAws_restJson1ListOfSegmentGroup = function (output, context) {
49400 return (output || [])
49401 .filter(function (e) { return e != null; })
49402 .map(function (entry) {
49403 if (entry === null) {
49404 return null;
49405 }
49406 return deserializeAws_restJson1SegmentGroup(entry, context);
49407 });
49408};
49409var deserializeAws_restJson1ListOfSegmentReference = function (output, context) {
49410 return (output || [])
49411 .filter(function (e) { return e != null; })
49412 .map(function (entry) {
49413 if (entry === null) {
49414 return null;
49415 }
49416 return deserializeAws_restJson1SegmentReference(entry, context);
49417 });
49418};
49419var deserializeAws_restJson1ListOfSegmentResponse = function (output, context) {
49420 return (output || [])
49421 .filter(function (e) { return e != null; })
49422 .map(function (entry) {
49423 if (entry === null) {
49424 return null;
49425 }
49426 return deserializeAws_restJson1SegmentResponse(entry, context);
49427 });
49428};
49429var deserializeAws_restJson1ListOfSimpleCondition = function (output, context) {
49430 return (output || [])
49431 .filter(function (e) { return e != null; })
49432 .map(function (entry) {
49433 if (entry === null) {
49434 return null;
49435 }
49436 return deserializeAws_restJson1SimpleCondition(entry, context);
49437 });
49438};
49439var deserializeAws_restJson1ListOfTemplateResponse = function (output, context) {
49440 return (output || [])
49441 .filter(function (e) { return e != null; })
49442 .map(function (entry) {
49443 if (entry === null) {
49444 return null;
49445 }
49446 return deserializeAws_restJson1TemplateResponse(entry, context);
49447 });
49448};
49449var deserializeAws_restJson1ListOfTemplateVersionResponse = function (output, context) {
49450 return (output || [])
49451 .filter(function (e) { return e != null; })
49452 .map(function (entry) {
49453 if (entry === null) {
49454 return null;
49455 }
49456 return deserializeAws_restJson1TemplateVersionResponse(entry, context);
49457 });
49458};
49459var deserializeAws_restJson1ListOfTreatmentResource = function (output, context) {
49460 return (output || [])
49461 .filter(function (e) { return e != null; })
49462 .map(function (entry) {
49463 if (entry === null) {
49464 return null;
49465 }
49466 return deserializeAws_restJson1TreatmentResource(entry, context);
49467 });
49468};
49469var deserializeAws_restJson1ListRecommenderConfigurationsResponse = function (output, context) {
49470 return {
49471 Item: output.Item !== undefined && output.Item !== null
49472 ? deserializeAws_restJson1ListOfRecommenderConfigurationResponse(output.Item, context)
49473 : undefined,
49474 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49475 };
49476};
49477var deserializeAws_restJson1MapOf__double = function (output, context) {
49478 return Object.entries(output).reduce(function (acc, _a) {
49479 var _b;
49480 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49481 if (value === null) {
49482 return acc;
49483 }
49484 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
49485 }, {});
49486};
49487var deserializeAws_restJson1MapOf__integer = function (output, context) {
49488 return Object.entries(output).reduce(function (acc, _a) {
49489 var _b;
49490 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49491 if (value === null) {
49492 return acc;
49493 }
49494 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
49495 }, {});
49496};
49497var deserializeAws_restJson1MapOf__string = function (output, context) {
49498 return Object.entries(output).reduce(function (acc, _a) {
49499 var _b;
49500 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49501 if (value === null) {
49502 return acc;
49503 }
49504 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
49505 }, {});
49506};
49507var deserializeAws_restJson1MapOfActivity = function (output, context) {
49508 return Object.entries(output).reduce(function (acc, _a) {
49509 var _b;
49510 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49511 if (value === null) {
49512 return acc;
49513 }
49514 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1Activity(value, context), _b));
49515 }, {});
49516};
49517var deserializeAws_restJson1MapOfAttributeDimension = function (output, context) {
49518 return Object.entries(output).reduce(function (acc, _a) {
49519 var _b;
49520 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49521 if (value === null) {
49522 return acc;
49523 }
49524 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1AttributeDimension(value, context), _b));
49525 }, {});
49526};
49527var deserializeAws_restJson1MapOfChannelResponse = function (output, context) {
49528 return Object.entries(output).reduce(function (acc, _a) {
49529 var _b;
49530 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49531 if (value === null) {
49532 return acc;
49533 }
49534 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ChannelResponse(value, context), _b));
49535 }, {});
49536};
49537var deserializeAws_restJson1MapOfEndpointMessageResult = function (output, context) {
49538 return Object.entries(output).reduce(function (acc, _a) {
49539 var _b;
49540 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49541 if (value === null) {
49542 return acc;
49543 }
49544 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1EndpointMessageResult(value, context), _b));
49545 }, {});
49546};
49547var deserializeAws_restJson1MapOfEventItemResponse = function (output, context) {
49548 return Object.entries(output).reduce(function (acc, _a) {
49549 var _b;
49550 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49551 if (value === null) {
49552 return acc;
49553 }
49554 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1EventItemResponse(value, context), _b));
49555 }, {});
49556};
49557var deserializeAws_restJson1MapOfItemResponse = function (output, context) {
49558 return Object.entries(output).reduce(function (acc, _a) {
49559 var _b;
49560 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49561 if (value === null) {
49562 return acc;
49563 }
49564 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ItemResponse(value, context), _b));
49565 }, {});
49566};
49567var deserializeAws_restJson1MapOfListOf__string = function (output, context) {
49568 return Object.entries(output).reduce(function (acc, _a) {
49569 var _b;
49570 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49571 if (value === null) {
49572 return acc;
49573 }
49574 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));
49575 }, {});
49576};
49577var deserializeAws_restJson1MapOfMapOfEndpointMessageResult = function (output, context) {
49578 return Object.entries(output).reduce(function (acc, _a) {
49579 var _b;
49580 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49581 if (value === null) {
49582 return acc;
49583 }
49584 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MapOfEndpointMessageResult(value, context), _b));
49585 }, {});
49586};
49587var deserializeAws_restJson1MapOfMessageResult = function (output, context) {
49588 return Object.entries(output).reduce(function (acc, _a) {
49589 var _b;
49590 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49591 if (value === null) {
49592 return acc;
49593 }
49594 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MessageResult(value, context), _b));
49595 }, {});
49596};
49597var deserializeAws_restJson1MapOfMetricDimension = function (output, context) {
49598 return Object.entries(output).reduce(function (acc, _a) {
49599 var _b;
49600 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49601 if (value === null) {
49602 return acc;
49603 }
49604 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MetricDimension(value, context), _b));
49605 }, {});
49606};
49607var deserializeAws_restJson1Message = function (output, context) {
49608 return {
49609 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
49610 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
49611 ImageIconUrl: output.ImageIconUrl !== undefined && output.ImageIconUrl !== null ? output.ImageIconUrl : undefined,
49612 ImageSmallIconUrl: output.ImageSmallIconUrl !== undefined && output.ImageSmallIconUrl !== null
49613 ? output.ImageSmallIconUrl
49614 : undefined,
49615 ImageUrl: output.ImageUrl !== undefined && output.ImageUrl !== null ? output.ImageUrl : undefined,
49616 JsonBody: output.JsonBody !== undefined && output.JsonBody !== null ? output.JsonBody : undefined,
49617 MediaUrl: output.MediaUrl !== undefined && output.MediaUrl !== null ? output.MediaUrl : undefined,
49618 RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined,
49619 SilentPush: output.SilentPush !== undefined && output.SilentPush !== null ? output.SilentPush : undefined,
49620 TimeToLive: output.TimeToLive !== undefined && output.TimeToLive !== null ? output.TimeToLive : undefined,
49621 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
49622 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
49623 };
49624};
49625var deserializeAws_restJson1MessageBody = function (output, context) {
49626 return {
49627 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
49628 RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined,
49629 };
49630};
49631var deserializeAws_restJson1MessageConfiguration = function (output, context) {
49632 return {
49633 ADMMessage: output.ADMMessage !== undefined && output.ADMMessage !== null
49634 ? deserializeAws_restJson1Message(output.ADMMessage, context)
49635 : undefined,
49636 APNSMessage: output.APNSMessage !== undefined && output.APNSMessage !== null
49637 ? deserializeAws_restJson1Message(output.APNSMessage, context)
49638 : undefined,
49639 BaiduMessage: output.BaiduMessage !== undefined && output.BaiduMessage !== null
49640 ? deserializeAws_restJson1Message(output.BaiduMessage, context)
49641 : undefined,
49642 CustomMessage: output.CustomMessage !== undefined && output.CustomMessage !== null
49643 ? deserializeAws_restJson1CampaignCustomMessage(output.CustomMessage, context)
49644 : undefined,
49645 DefaultMessage: output.DefaultMessage !== undefined && output.DefaultMessage !== null
49646 ? deserializeAws_restJson1Message(output.DefaultMessage, context)
49647 : undefined,
49648 EmailMessage: output.EmailMessage !== undefined && output.EmailMessage !== null
49649 ? deserializeAws_restJson1CampaignEmailMessage(output.EmailMessage, context)
49650 : undefined,
49651 GCMMessage: output.GCMMessage !== undefined && output.GCMMessage !== null
49652 ? deserializeAws_restJson1Message(output.GCMMessage, context)
49653 : undefined,
49654 SMSMessage: output.SMSMessage !== undefined && output.SMSMessage !== null
49655 ? deserializeAws_restJson1CampaignSmsMessage(output.SMSMessage, context)
49656 : undefined,
49657 };
49658};
49659var deserializeAws_restJson1MessageResponse = function (output, context) {
49660 return {
49661 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49662 EndpointResult: output.EndpointResult !== undefined && output.EndpointResult !== null
49663 ? deserializeAws_restJson1MapOfEndpointMessageResult(output.EndpointResult, context)
49664 : undefined,
49665 RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined,
49666 Result: output.Result !== undefined && output.Result !== null
49667 ? deserializeAws_restJson1MapOfMessageResult(output.Result, context)
49668 : undefined,
49669 };
49670};
49671var deserializeAws_restJson1MessageResult = function (output, context) {
49672 return {
49673 DeliveryStatus: output.DeliveryStatus !== undefined && output.DeliveryStatus !== null ? output.DeliveryStatus : undefined,
49674 MessageId: output.MessageId !== undefined && output.MessageId !== null ? output.MessageId : undefined,
49675 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
49676 StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined,
49677 UpdatedToken: output.UpdatedToken !== undefined && output.UpdatedToken !== null ? output.UpdatedToken : undefined,
49678 };
49679};
49680var deserializeAws_restJson1MetricDimension = function (output, context) {
49681 return {
49682 ComparisonOperator: output.ComparisonOperator !== undefined && output.ComparisonOperator !== null
49683 ? output.ComparisonOperator
49684 : undefined,
49685 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
49686 };
49687};
49688var deserializeAws_restJson1MultiConditionalBranch = function (output, context) {
49689 return {
49690 Condition: output.Condition !== undefined && output.Condition !== null
49691 ? deserializeAws_restJson1SimpleCondition(output.Condition, context)
49692 : undefined,
49693 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49694 };
49695};
49696var deserializeAws_restJson1MultiConditionalSplitActivity = function (output, context) {
49697 return {
49698 Branches: output.Branches !== undefined && output.Branches !== null
49699 ? deserializeAws_restJson1ListOfMultiConditionalBranch(output.Branches, context)
49700 : undefined,
49701 DefaultActivity: output.DefaultActivity !== undefined && output.DefaultActivity !== null ? output.DefaultActivity : undefined,
49702 EvaluationWaitTime: output.EvaluationWaitTime !== undefined && output.EvaluationWaitTime !== null
49703 ? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context)
49704 : undefined,
49705 };
49706};
49707var deserializeAws_restJson1NumberValidateResponse = function (output, context) {
49708 return {
49709 Carrier: output.Carrier !== undefined && output.Carrier !== null ? output.Carrier : undefined,
49710 City: output.City !== undefined && output.City !== null ? output.City : undefined,
49711 CleansedPhoneNumberE164: output.CleansedPhoneNumberE164 !== undefined && output.CleansedPhoneNumberE164 !== null
49712 ? output.CleansedPhoneNumberE164
49713 : undefined,
49714 CleansedPhoneNumberNational: output.CleansedPhoneNumberNational !== undefined && output.CleansedPhoneNumberNational !== null
49715 ? output.CleansedPhoneNumberNational
49716 : undefined,
49717 Country: output.Country !== undefined && output.Country !== null ? output.Country : undefined,
49718 CountryCodeIso2: output.CountryCodeIso2 !== undefined && output.CountryCodeIso2 !== null ? output.CountryCodeIso2 : undefined,
49719 CountryCodeNumeric: output.CountryCodeNumeric !== undefined && output.CountryCodeNumeric !== null
49720 ? output.CountryCodeNumeric
49721 : undefined,
49722 County: output.County !== undefined && output.County !== null ? output.County : undefined,
49723 OriginalCountryCodeIso2: output.OriginalCountryCodeIso2 !== undefined && output.OriginalCountryCodeIso2 !== null
49724 ? output.OriginalCountryCodeIso2
49725 : undefined,
49726 OriginalPhoneNumber: output.OriginalPhoneNumber !== undefined && output.OriginalPhoneNumber !== null
49727 ? output.OriginalPhoneNumber
49728 : undefined,
49729 PhoneType: output.PhoneType !== undefined && output.PhoneType !== null ? output.PhoneType : undefined,
49730 PhoneTypeCode: output.PhoneTypeCode !== undefined && output.PhoneTypeCode !== null ? output.PhoneTypeCode : undefined,
49731 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
49732 ZipCode: output.ZipCode !== undefined && output.ZipCode !== null ? output.ZipCode : undefined,
49733 };
49734};
49735var deserializeAws_restJson1PushMessageActivity = function (output, context) {
49736 return {
49737 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
49738 ? deserializeAws_restJson1JourneyPushMessage(output.MessageConfig, context)
49739 : undefined,
49740 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49741 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
49742 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
49743 };
49744};
49745var deserializeAws_restJson1PushNotificationTemplateResponse = function (output, context) {
49746 return {
49747 ADM: output.ADM !== undefined && output.ADM !== null
49748 ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.ADM, context)
49749 : undefined,
49750 APNS: output.APNS !== undefined && output.APNS !== null
49751 ? deserializeAws_restJson1APNSPushNotificationTemplate(output.APNS, context)
49752 : undefined,
49753 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
49754 Baidu: output.Baidu !== undefined && output.Baidu !== null
49755 ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.Baidu, context)
49756 : undefined,
49757 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49758 Default: output.Default !== undefined && output.Default !== null
49759 ? deserializeAws_restJson1DefaultPushNotificationTemplate(output.Default, context)
49760 : undefined,
49761 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
49762 ? output.DefaultSubstitutions
49763 : undefined,
49764 GCM: output.GCM !== undefined && output.GCM !== null
49765 ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.GCM, context)
49766 : undefined,
49767 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49768 RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined,
49769 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
49770 ? output.TemplateDescription
49771 : undefined,
49772 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
49773 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
49774 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
49775 tags: output.tags !== undefined && output.tags !== null
49776 ? deserializeAws_restJson1MapOf__string(output.tags, context)
49777 : undefined,
49778 };
49779};
49780var deserializeAws_restJson1QuietTime = function (output, context) {
49781 return {
49782 End: output.End !== undefined && output.End !== null ? output.End : undefined,
49783 Start: output.Start !== undefined && output.Start !== null ? output.Start : undefined,
49784 };
49785};
49786var deserializeAws_restJson1RandomSplitActivity = function (output, context) {
49787 return {
49788 Branches: output.Branches !== undefined && output.Branches !== null
49789 ? deserializeAws_restJson1ListOfRandomSplitEntry(output.Branches, context)
49790 : undefined,
49791 };
49792};
49793var deserializeAws_restJson1RandomSplitEntry = function (output, context) {
49794 return {
49795 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49796 Percentage: output.Percentage !== undefined && output.Percentage !== null ? output.Percentage : undefined,
49797 };
49798};
49799var deserializeAws_restJson1RecencyDimension = function (output, context) {
49800 return {
49801 Duration: output.Duration !== undefined && output.Duration !== null ? output.Duration : undefined,
49802 RecencyType: output.RecencyType !== undefined && output.RecencyType !== null ? output.RecencyType : undefined,
49803 };
49804};
49805var deserializeAws_restJson1RecommenderConfigurationResponse = function (output, context) {
49806 return {
49807 Attributes: output.Attributes !== undefined && output.Attributes !== null
49808 ? deserializeAws_restJson1MapOf__string(output.Attributes, context)
49809 : undefined,
49810 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49811 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
49812 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49813 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49814 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
49815 RecommendationProviderIdType: output.RecommendationProviderIdType !== undefined && output.RecommendationProviderIdType !== null
49816 ? output.RecommendationProviderIdType
49817 : undefined,
49818 RecommendationProviderRoleArn: output.RecommendationProviderRoleArn !== undefined && output.RecommendationProviderRoleArn !== null
49819 ? output.RecommendationProviderRoleArn
49820 : undefined,
49821 RecommendationProviderUri: output.RecommendationProviderUri !== undefined && output.RecommendationProviderUri !== null
49822 ? output.RecommendationProviderUri
49823 : undefined,
49824 RecommendationTransformerUri: output.RecommendationTransformerUri !== undefined && output.RecommendationTransformerUri !== null
49825 ? output.RecommendationTransformerUri
49826 : undefined,
49827 RecommendationsDisplayName: output.RecommendationsDisplayName !== undefined && output.RecommendationsDisplayName !== null
49828 ? output.RecommendationsDisplayName
49829 : undefined,
49830 RecommendationsPerMessage: output.RecommendationsPerMessage !== undefined && output.RecommendationsPerMessage !== null
49831 ? output.RecommendationsPerMessage
49832 : undefined,
49833 };
49834};
49835var deserializeAws_restJson1ResultRow = function (output, context) {
49836 return {
49837 GroupedBys: output.GroupedBys !== undefined && output.GroupedBys !== null
49838 ? deserializeAws_restJson1ListOfResultRowValue(output.GroupedBys, context)
49839 : undefined,
49840 Values: output.Values !== undefined && output.Values !== null
49841 ? deserializeAws_restJson1ListOfResultRowValue(output.Values, context)
49842 : undefined,
49843 };
49844};
49845var deserializeAws_restJson1ResultRowValue = function (output, context) {
49846 return {
49847 Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined,
49848 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49849 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
49850 };
49851};
49852var deserializeAws_restJson1Schedule = function (output, context) {
49853 return {
49854 EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,
49855 EventFilter: output.EventFilter !== undefined && output.EventFilter !== null
49856 ? deserializeAws_restJson1CampaignEventFilter(output.EventFilter, context)
49857 : undefined,
49858 Frequency: output.Frequency !== undefined && output.Frequency !== null ? output.Frequency : undefined,
49859 IsLocalTime: output.IsLocalTime !== undefined && output.IsLocalTime !== null ? output.IsLocalTime : undefined,
49860 QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
49861 ? deserializeAws_restJson1QuietTime(output.QuietTime, context)
49862 : undefined,
49863 StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined,
49864 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
49865 };
49866};
49867var deserializeAws_restJson1SegmentBehaviors = function (output, context) {
49868 return {
49869 Recency: output.Recency !== undefined && output.Recency !== null
49870 ? deserializeAws_restJson1RecencyDimension(output.Recency, context)
49871 : undefined,
49872 };
49873};
49874var deserializeAws_restJson1SegmentCondition = function (output, context) {
49875 return {
49876 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
49877 };
49878};
49879var deserializeAws_restJson1SegmentDemographics = function (output, context) {
49880 return {
49881 AppVersion: output.AppVersion !== undefined && output.AppVersion !== null
49882 ? deserializeAws_restJson1SetDimension(output.AppVersion, context)
49883 : undefined,
49884 Channel: output.Channel !== undefined && output.Channel !== null
49885 ? deserializeAws_restJson1SetDimension(output.Channel, context)
49886 : undefined,
49887 DeviceType: output.DeviceType !== undefined && output.DeviceType !== null
49888 ? deserializeAws_restJson1SetDimension(output.DeviceType, context)
49889 : undefined,
49890 Make: output.Make !== undefined && output.Make !== null
49891 ? deserializeAws_restJson1SetDimension(output.Make, context)
49892 : undefined,
49893 Model: output.Model !== undefined && output.Model !== null
49894 ? deserializeAws_restJson1SetDimension(output.Model, context)
49895 : undefined,
49896 Platform: output.Platform !== undefined && output.Platform !== null
49897 ? deserializeAws_restJson1SetDimension(output.Platform, context)
49898 : undefined,
49899 };
49900};
49901var deserializeAws_restJson1SegmentDimensions = function (output, context) {
49902 return {
49903 Attributes: output.Attributes !== undefined && output.Attributes !== null
49904 ? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context)
49905 : undefined,
49906 Behavior: output.Behavior !== undefined && output.Behavior !== null
49907 ? deserializeAws_restJson1SegmentBehaviors(output.Behavior, context)
49908 : undefined,
49909 Demographic: output.Demographic !== undefined && output.Demographic !== null
49910 ? deserializeAws_restJson1SegmentDemographics(output.Demographic, context)
49911 : undefined,
49912 Location: output.Location !== undefined && output.Location !== null
49913 ? deserializeAws_restJson1SegmentLocation(output.Location, context)
49914 : undefined,
49915 Metrics: output.Metrics !== undefined && output.Metrics !== null
49916 ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context)
49917 : undefined,
49918 UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null
49919 ? deserializeAws_restJson1MapOfAttributeDimension(output.UserAttributes, context)
49920 : undefined,
49921 };
49922};
49923var deserializeAws_restJson1SegmentGroup = function (output, context) {
49924 return {
49925 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
49926 ? deserializeAws_restJson1ListOfSegmentDimensions(output.Dimensions, context)
49927 : undefined,
49928 SourceSegments: output.SourceSegments !== undefined && output.SourceSegments !== null
49929 ? deserializeAws_restJson1ListOfSegmentReference(output.SourceSegments, context)
49930 : undefined,
49931 SourceType: output.SourceType !== undefined && output.SourceType !== null ? output.SourceType : undefined,
49932 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49933 };
49934};
49935var deserializeAws_restJson1SegmentGroupList = function (output, context) {
49936 return {
49937 Groups: output.Groups !== undefined && output.Groups !== null
49938 ? deserializeAws_restJson1ListOfSegmentGroup(output.Groups, context)
49939 : undefined,
49940 Include: output.Include !== undefined && output.Include !== null ? output.Include : undefined,
49941 };
49942};
49943var deserializeAws_restJson1SegmentImportResource = function (output, context) {
49944 return {
49945 ChannelCounts: output.ChannelCounts !== undefined && output.ChannelCounts !== null
49946 ? deserializeAws_restJson1MapOf__integer(output.ChannelCounts, context)
49947 : undefined,
49948 ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined,
49949 Format: output.Format !== undefined && output.Format !== null ? output.Format : undefined,
49950 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
49951 S3Url: output.S3Url !== undefined && output.S3Url !== null ? output.S3Url : undefined,
49952 Size: output.Size !== undefined && output.Size !== null ? output.Size : undefined,
49953 };
49954};
49955var deserializeAws_restJson1SegmentLocation = function (output, context) {
49956 return {
49957 Country: output.Country !== undefined && output.Country !== null
49958 ? deserializeAws_restJson1SetDimension(output.Country, context)
49959 : undefined,
49960 GPSPoint: output.GPSPoint !== undefined && output.GPSPoint !== null
49961 ? deserializeAws_restJson1GPSPointDimension(output.GPSPoint, context)
49962 : undefined,
49963 };
49964};
49965var deserializeAws_restJson1SegmentReference = function (output, context) {
49966 return {
49967 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49968 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
49969 };
49970};
49971var deserializeAws_restJson1SegmentResponse = function (output, context) {
49972 return {
49973 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49974 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
49975 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49976 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
49977 ? deserializeAws_restJson1SegmentDimensions(output.Dimensions, context)
49978 : undefined,
49979 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49980 ImportDefinition: output.ImportDefinition !== undefined && output.ImportDefinition !== null
49981 ? deserializeAws_restJson1SegmentImportResource(output.ImportDefinition, context)
49982 : undefined,
49983 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49984 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
49985 SegmentGroups: output.SegmentGroups !== undefined && output.SegmentGroups !== null
49986 ? deserializeAws_restJson1SegmentGroupList(output.SegmentGroups, context)
49987 : undefined,
49988 SegmentType: output.SegmentType !== undefined && output.SegmentType !== null ? output.SegmentType : undefined,
49989 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
49990 tags: output.tags !== undefined && output.tags !== null
49991 ? deserializeAws_restJson1MapOf__string(output.tags, context)
49992 : undefined,
49993 };
49994};
49995var deserializeAws_restJson1SegmentsResponse = function (output, context) {
49996 return {
49997 Item: output.Item !== undefined && output.Item !== null
49998 ? deserializeAws_restJson1ListOfSegmentResponse(output.Item, context)
49999 : undefined,
50000 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
50001 };
50002};
50003var deserializeAws_restJson1SendUsersMessageResponse = function (output, context) {
50004 return {
50005 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
50006 RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined,
50007 Result: output.Result !== undefined && output.Result !== null
50008 ? deserializeAws_restJson1MapOfMapOfEndpointMessageResult(output.Result, context)
50009 : undefined,
50010 };
50011};
50012var deserializeAws_restJson1SetDimension = function (output, context) {
50013 return {
50014 DimensionType: output.DimensionType !== undefined && output.DimensionType !== null ? output.DimensionType : undefined,
50015 Values: output.Values !== undefined && output.Values !== null
50016 ? deserializeAws_restJson1ListOf__string(output.Values, context)
50017 : undefined,
50018 };
50019};
50020var deserializeAws_restJson1SimpleCondition = function (output, context) {
50021 return {
50022 EventCondition: output.EventCondition !== undefined && output.EventCondition !== null
50023 ? deserializeAws_restJson1EventCondition(output.EventCondition, context)
50024 : undefined,
50025 SegmentCondition: output.SegmentCondition !== undefined && output.SegmentCondition !== null
50026 ? deserializeAws_restJson1SegmentCondition(output.SegmentCondition, context)
50027 : undefined,
50028 SegmentDimensions: output.segmentDimensions !== undefined && output.segmentDimensions !== null
50029 ? deserializeAws_restJson1SegmentDimensions(output.segmentDimensions, context)
50030 : undefined,
50031 };
50032};
50033var deserializeAws_restJson1SMSChannelResponse = function (output, context) {
50034 return {
50035 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
50036 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50037 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
50038 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
50039 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50040 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
50041 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
50042 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50043 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
50044 PromotionalMessagesPerSecond: output.PromotionalMessagesPerSecond !== undefined && output.PromotionalMessagesPerSecond !== null
50045 ? output.PromotionalMessagesPerSecond
50046 : undefined,
50047 SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined,
50048 ShortCode: output.ShortCode !== undefined && output.ShortCode !== null ? output.ShortCode : undefined,
50049 TransactionalMessagesPerSecond: output.TransactionalMessagesPerSecond !== undefined && output.TransactionalMessagesPerSecond !== null
50050 ? output.TransactionalMessagesPerSecond
50051 : undefined,
50052 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50053 };
50054};
50055var deserializeAws_restJson1SMSMessageActivity = function (output, context) {
50056 return {
50057 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
50058 ? deserializeAws_restJson1JourneySMSMessage(output.MessageConfig, context)
50059 : undefined,
50060 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
50061 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50062 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
50063 };
50064};
50065var deserializeAws_restJson1SMSTemplateResponse = function (output, context) {
50066 return {
50067 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
50068 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
50069 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50070 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50071 ? output.DefaultSubstitutions
50072 : undefined,
50073 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50074 RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined,
50075 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50076 ? output.TemplateDescription
50077 : undefined,
50078 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50079 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50080 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50081 tags: output.tags !== undefined && output.tags !== null
50082 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50083 : undefined,
50084 };
50085};
50086var deserializeAws_restJson1StartCondition = function (output, context) {
50087 return {
50088 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
50089 EventStartCondition: output.EventStartCondition !== undefined && output.EventStartCondition !== null
50090 ? deserializeAws_restJson1EventStartCondition(output.EventStartCondition, context)
50091 : undefined,
50092 SegmentStartCondition: output.SegmentStartCondition !== undefined && output.SegmentStartCondition !== null
50093 ? deserializeAws_restJson1SegmentCondition(output.SegmentStartCondition, context)
50094 : undefined,
50095 };
50096};
50097var deserializeAws_restJson1TagsModel = function (output, context) {
50098 return {
50099 tags: output.tags !== undefined && output.tags !== null
50100 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50101 : undefined,
50102 };
50103};
50104var deserializeAws_restJson1Template = function (output, context) {
50105 return {
50106 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
50107 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50108 };
50109};
50110var deserializeAws_restJson1TemplateConfiguration = function (output, context) {
50111 return {
50112 EmailTemplate: output.EmailTemplate !== undefined && output.EmailTemplate !== null
50113 ? deserializeAws_restJson1Template(output.EmailTemplate, context)
50114 : undefined,
50115 PushTemplate: output.PushTemplate !== undefined && output.PushTemplate !== null
50116 ? deserializeAws_restJson1Template(output.PushTemplate, context)
50117 : undefined,
50118 SMSTemplate: output.SMSTemplate !== undefined && output.SMSTemplate !== null
50119 ? deserializeAws_restJson1Template(output.SMSTemplate, context)
50120 : undefined,
50121 VoiceTemplate: output.VoiceTemplate !== undefined && output.VoiceTemplate !== null
50122 ? deserializeAws_restJson1Template(output.VoiceTemplate, context)
50123 : undefined,
50124 };
50125};
50126var deserializeAws_restJson1TemplateResponse = function (output, context) {
50127 return {
50128 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
50129 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50130 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50131 ? output.DefaultSubstitutions
50132 : undefined,
50133 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50134 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50135 ? output.TemplateDescription
50136 : undefined,
50137 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50138 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50139 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50140 tags: output.tags !== undefined && output.tags !== null
50141 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50142 : undefined,
50143 };
50144};
50145var deserializeAws_restJson1TemplatesResponse = function (output, context) {
50146 return {
50147 Item: output.Item !== undefined && output.Item !== null
50148 ? deserializeAws_restJson1ListOfTemplateResponse(output.Item, context)
50149 : undefined,
50150 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
50151 };
50152};
50153var deserializeAws_restJson1TemplateVersionResponse = function (output, context) {
50154 return {
50155 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50156 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50157 ? output.DefaultSubstitutions
50158 : undefined,
50159 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50160 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50161 ? output.TemplateDescription
50162 : undefined,
50163 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50164 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50165 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50166 };
50167};
50168var deserializeAws_restJson1TemplateVersionsResponse = function (output, context) {
50169 return {
50170 Item: output.Item !== undefined && output.Item !== null
50171 ? deserializeAws_restJson1ListOfTemplateVersionResponse(output.Item, context)
50172 : undefined,
50173 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
50174 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
50175 RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined,
50176 };
50177};
50178var deserializeAws_restJson1TreatmentResource = function (output, context) {
50179 return {
50180 CustomDeliveryConfiguration: output.CustomDeliveryConfiguration !== undefined && output.CustomDeliveryConfiguration !== null
50181 ? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context)
50182 : undefined,
50183 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50184 MessageConfiguration: output.MessageConfiguration !== undefined && output.MessageConfiguration !== null
50185 ? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context)
50186 : undefined,
50187 Schedule: output.Schedule !== undefined && output.Schedule !== null
50188 ? deserializeAws_restJson1Schedule(output.Schedule, context)
50189 : undefined,
50190 SizePercent: output.SizePercent !== undefined && output.SizePercent !== null ? output.SizePercent : undefined,
50191 State: output.State !== undefined && output.State !== null
50192 ? deserializeAws_restJson1CampaignState(output.State, context)
50193 : undefined,
50194 TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null
50195 ? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context)
50196 : undefined,
50197 TreatmentDescription: output.TreatmentDescription !== undefined && output.TreatmentDescription !== null
50198 ? output.TreatmentDescription
50199 : undefined,
50200 TreatmentName: output.TreatmentName !== undefined && output.TreatmentName !== null ? output.TreatmentName : undefined,
50201 };
50202};
50203var deserializeAws_restJson1VoiceChannelResponse = function (output, context) {
50204 return {
50205 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
50206 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50207 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
50208 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
50209 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50210 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
50211 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
50212 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50213 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
50214 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50215 };
50216};
50217var deserializeAws_restJson1VoiceTemplateResponse = function (output, context) {
50218 return {
50219 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
50220 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
50221 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50222 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50223 ? output.DefaultSubstitutions
50224 : undefined,
50225 LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined,
50226 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50227 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50228 ? output.TemplateDescription
50229 : undefined,
50230 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50231 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50232 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50233 VoiceId: output.VoiceId !== undefined && output.VoiceId !== null ? output.VoiceId : undefined,
50234 tags: output.tags !== undefined && output.tags !== null
50235 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50236 : undefined,
50237 };
50238};
50239var deserializeAws_restJson1WaitActivity = function (output, context) {
50240 return {
50241 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
50242 WaitTime: output.WaitTime !== undefined && output.WaitTime !== null
50243 ? deserializeAws_restJson1WaitTime(output.WaitTime, context)
50244 : undefined,
50245 };
50246};
50247var deserializeAws_restJson1WaitTime = function (output, context) {
50248 return {
50249 WaitFor: output.WaitFor !== undefined && output.WaitFor !== null ? output.WaitFor : undefined,
50250 WaitUntil: output.WaitUntil !== undefined && output.WaitUntil !== null ? output.WaitUntil : undefined,
50251 };
50252};
50253var deserializeMetadata = function (output) {
50254 var _a;
50255 return ({
50256 httpStatusCode: output.statusCode,
50257 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
50258 extendedRequestId: output.headers["x-amz-id-2"],
50259 cfId: output.headers["x-amz-cf-id"],
50260 });
50261};
50262// Collect low-level response body stream to Uint8Array.
50263var collectBody = function (streamBody, context) {
50264 if (streamBody === void 0) { streamBody = new Uint8Array(); }
50265 if (streamBody instanceof Uint8Array) {
50266 return Promise.resolve(streamBody);
50267 }
50268 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
50269};
50270// Encode Uint8Array data into string with utf-8.
50271var collectBodyString = function (streamBody, context) {
50272 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
50273};
50274var isSerializableHeaderValue = function (value) {
50275 return value !== undefined &&
50276 value !== null &&
50277 value !== "" &&
50278 (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
50279 (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
50280};
50281var parseBody = function (streamBody, context) {
50282 return collectBodyString(streamBody, context).then(function (encoded) {
50283 if (encoded.length) {
50284 return JSON.parse(encoded);
50285 }
50286 return {};
50287 });
50288};
50289/**
50290 * Load an error code for the aws.rest-json-1.1 protocol.
50291 */
50292var loadRestJsonErrorCode = function (output, data) {
50293 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
50294 var sanitizeErrorCode = function (rawValue) {
50295 var cleanValue = rawValue;
50296 if (cleanValue.indexOf(":") >= 0) {
50297 cleanValue = cleanValue.split(":")[0];
50298 }
50299 if (cleanValue.indexOf("#") >= 0) {
50300 cleanValue = cleanValue.split("#")[1];
50301 }
50302 return cleanValue;
50303 };
50304 var headerKey = findKey(output.headers, "x-amzn-errortype");
50305 if (headerKey !== undefined) {
50306 return sanitizeErrorCode(output.headers[headerKey]);
50307 }
50308 if (data.code !== undefined) {
50309 return sanitizeErrorCode(data.code);
50310 }
50311 if (data["__type"] !== undefined) {
50312 return sanitizeErrorCode(data["__type"]);
50313 }
50314 return "";
50315};
50316//# sourceMappingURL=Aws_restJson1.js.map
50317
50318/***/ }),
50319
50320/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.browser.js":
50321/*!***********************************************************************************************!*\
50322 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.browser.js ***!
50323 \***********************************************************************************************/
50324/*! exports provided: ClientDefaultValues */
50325/***/ (function(module, __webpack_exports__, __webpack_require__) {
50326
50327"use strict";
50328__webpack_require__.r(__webpack_exports__);
50329/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
50330/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
50331/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/package.json");
50332var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/package.json", 1);
50333/* 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");
50334/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
50335/* 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");
50336/* 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");
50337/* 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");
50338/* 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");
50339/* 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");
50340/* 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");
50341/* 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");
50342/* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./runtimeConfig.shared */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.shared.js");
50343
50344
50345
50346
50347
50348
50349
50350
50351
50352
50353
50354/**
50355 * @internal
50356 */
50357var 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"])({
50358 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"].serviceId,
50359 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
50360 }), 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"] });
50361//# sourceMappingURL=runtimeConfig.browser.js.map
50362
50363/***/ }),
50364
50365/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.shared.js":
50366/*!**********************************************************************************************!*\
50367 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.shared.js ***!
50368 \**********************************************************************************************/
50369/*! exports provided: ClientSharedValues */
50370/***/ (function(module, __webpack_exports__, __webpack_require__) {
50371
50372"use strict";
50373__webpack_require__.r(__webpack_exports__);
50374/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
50375/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/endpoints.js");
50376/* 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");
50377
50378
50379/**
50380 * @internal
50381 */
50382var ClientSharedValues = {
50383 apiVersion: "2016-12-01",
50384 disableHostPrefix: false,
50385 logger: {},
50386 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
50387 serviceId: "Pinpoint",
50388 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
50389};
50390//# sourceMappingURL=runtimeConfig.shared.js.map
50391
50392/***/ }),
50393
50394/***/ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js":
50395/*!**********************************************************************************************!*\
50396 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js ***!
50397 \**********************************************************************************************/
50398/*! 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 */
50399/***/ (function(module, __webpack_exports__, __webpack_require__) {
50400
50401"use strict";
50402__webpack_require__.r(__webpack_exports__);
50403/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
50404/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
50405/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
50406/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
50407/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
50408/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
50409/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
50410/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
50411/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
50412/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
50413/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
50414/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
50415/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
50416/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
50417/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
50418/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
50419/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
50420/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
50421/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
50422/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
50423/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
50424/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
50425/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
50426/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
50427/*! *****************************************************************************
50428Copyright (c) Microsoft Corporation.
50429
50430Permission to use, copy, modify, and/or distribute this software for any
50431purpose with or without fee is hereby granted.
50432
50433THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
50434REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
50435AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
50436INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
50437LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
50438OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
50439PERFORMANCE OF THIS SOFTWARE.
50440***************************************************************************** */
50441/* global Reflect, Promise */
50442
50443var extendStatics = function(d, b) {
50444 extendStatics = Object.setPrototypeOf ||
50445 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50446 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
50447 return extendStatics(d, b);
50448};
50449
50450function __extends(d, b) {
50451 if (typeof b !== "function" && b !== null)
50452 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
50453 extendStatics(d, b);
50454 function __() { this.constructor = d; }
50455 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
50456}
50457
50458var __assign = function() {
50459 __assign = Object.assign || function __assign(t) {
50460 for (var s, i = 1, n = arguments.length; i < n; i++) {
50461 s = arguments[i];
50462 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50463 }
50464 return t;
50465 }
50466 return __assign.apply(this, arguments);
50467}
50468
50469function __rest(s, e) {
50470 var t = {};
50471 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50472 t[p] = s[p];
50473 if (s != null && typeof Object.getOwnPropertySymbols === "function")
50474 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
50475 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
50476 t[p[i]] = s[p[i]];
50477 }
50478 return t;
50479}
50480
50481function __decorate(decorators, target, key, desc) {
50482 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
50483 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
50484 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;
50485 return c > 3 && r && Object.defineProperty(target, key, r), r;
50486}
50487
50488function __param(paramIndex, decorator) {
50489 return function (target, key) { decorator(target, key, paramIndex); }
50490}
50491
50492function __metadata(metadataKey, metadataValue) {
50493 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
50494}
50495
50496function __awaiter(thisArg, _arguments, P, generator) {
50497 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
50498 return new (P || (P = Promise))(function (resolve, reject) {
50499 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
50500 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
50501 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
50502 step((generator = generator.apply(thisArg, _arguments || [])).next());
50503 });
50504}
50505
50506function __generator(thisArg, body) {
50507 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50508 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
50509 function verb(n) { return function (v) { return step([n, v]); }; }
50510 function step(op) {
50511 if (f) throw new TypeError("Generator is already executing.");
50512 while (_) try {
50513 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;
50514 if (y = 0, t) op = [op[0] & 2, t.value];
50515 switch (op[0]) {
50516 case 0: case 1: t = op; break;
50517 case 4: _.label++; return { value: op[1], done: false };
50518 case 5: _.label++; y = op[1]; op = [0]; continue;
50519 case 7: op = _.ops.pop(); _.trys.pop(); continue;
50520 default:
50521 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
50522 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
50523 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
50524 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
50525 if (t[2]) _.ops.pop();
50526 _.trys.pop(); continue;
50527 }
50528 op = body.call(thisArg, _);
50529 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50530 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50531 }
50532}
50533
50534var __createBinding = Object.create ? (function(o, m, k, k2) {
50535 if (k2 === undefined) k2 = k;
50536 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
50537}) : (function(o, m, k, k2) {
50538 if (k2 === undefined) k2 = k;
50539 o[k2] = m[k];
50540});
50541
50542function __exportStar(m, o) {
50543 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
50544}
50545
50546function __values(o) {
50547 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
50548 if (m) return m.call(o);
50549 if (o && typeof o.length === "number") return {
50550 next: function () {
50551 if (o && i >= o.length) o = void 0;
50552 return { value: o && o[i++], done: !o };
50553 }
50554 };
50555 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
50556}
50557
50558function __read(o, n) {
50559 var m = typeof Symbol === "function" && o[Symbol.iterator];
50560 if (!m) return o;
50561 var i = m.call(o), r, ar = [], e;
50562 try {
50563 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
50564 }
50565 catch (error) { e = { error: error }; }
50566 finally {
50567 try {
50568 if (r && !r.done && (m = i["return"])) m.call(i);
50569 }
50570 finally { if (e) throw e.error; }
50571 }
50572 return ar;
50573}
50574
50575/** @deprecated */
50576function __spread() {
50577 for (var ar = [], i = 0; i < arguments.length; i++)
50578 ar = ar.concat(__read(arguments[i]));
50579 return ar;
50580}
50581
50582/** @deprecated */
50583function __spreadArrays() {
50584 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
50585 for (var r = Array(s), k = 0, i = 0; i < il; i++)
50586 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
50587 r[k] = a[j];
50588 return r;
50589}
50590
50591function __spreadArray(to, from, pack) {
50592 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
50593 if (ar || !(i in from)) {
50594 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
50595 ar[i] = from[i];
50596 }
50597 }
50598 return to.concat(ar || Array.prototype.slice.call(from));
50599}
50600
50601function __await(v) {
50602 return this instanceof __await ? (this.v = v, this) : new __await(v);
50603}
50604
50605function __asyncGenerator(thisArg, _arguments, generator) {
50606 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
50607 var g = generator.apply(thisArg, _arguments || []), i, q = [];
50608 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
50609 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); }); }; }
50610 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
50611 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
50612 function fulfill(value) { resume("next", value); }
50613 function reject(value) { resume("throw", value); }
50614 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
50615}
50616
50617function __asyncDelegator(o) {
50618 var i, p;
50619 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
50620 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; }
50621}
50622
50623function __asyncValues(o) {
50624 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
50625 var m = o[Symbol.asyncIterator], i;
50626 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);
50627 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); }); }; }
50628 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
50629}
50630
50631function __makeTemplateObject(cooked, raw) {
50632 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
50633 return cooked;
50634};
50635
50636var __setModuleDefault = Object.create ? (function(o, v) {
50637 Object.defineProperty(o, "default", { enumerable: true, value: v });
50638}) : function(o, v) {
50639 o["default"] = v;
50640};
50641
50642function __importStar(mod) {
50643 if (mod && mod.__esModule) return mod;
50644 var result = {};
50645 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
50646 __setModuleDefault(result, mod);
50647 return result;
50648}
50649
50650function __importDefault(mod) {
50651 return (mod && mod.__esModule) ? mod : { default: mod };
50652}
50653
50654function __classPrivateFieldGet(receiver, state, kind, f) {
50655 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
50656 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");
50657 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
50658}
50659
50660function __classPrivateFieldSet(receiver, state, value, kind, f) {
50661 if (kind === "m") throw new TypeError("Private method is not writable");
50662 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
50663 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");
50664 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
50665}
50666
50667
50668/***/ }),
50669
50670/***/ "../../node_modules/@aws-sdk/config-resolver/dist/es/EndpointsConfig.js":
50671/*!*****************************************************************************************!*\
50672 !*** /root/amplify-js/node_modules/@aws-sdk/config-resolver/dist/es/EndpointsConfig.js ***!
50673 \*****************************************************************************************/
50674/*! exports provided: resolveEndpointsConfig */
50675/***/ (function(module, __webpack_exports__, __webpack_require__) {
50676
50677"use strict";
50678__webpack_require__.r(__webpack_exports__);
50679/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveEndpointsConfig", function() { return resolveEndpointsConfig; });
50680/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
50681
50682var resolveEndpointsConfig = function (input) {
50683 var _a;
50684 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 }));
50685};
50686var normalizeEndpoint = function (input) {
50687 var endpoint = input.endpoint, urlParser = input.urlParser;
50688 if (typeof endpoint === "string") {
50689 var promisified_1 = Promise.resolve(urlParser(endpoint));
50690 return function () { return promisified_1; };
50691 }
50692 else if (typeof endpoint === "object") {
50693 var promisified_2 = Promise.resolve(endpoint);
50694 return function () { return promisified_2; };
50695 }
50696 return endpoint;
50697};
50698var getEndPointFromRegion = function (input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
50699 var _a, tls, region, dnsHostRegex, hostname;
50700 var _b;
50701 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
50702 switch (_c.label) {
50703 case 0:
50704 _a = input.tls, tls = _a === void 0 ? true : _a;
50705 return [4 /*yield*/, input.region()];
50706 case 1:
50707 region = _c.sent();
50708 dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);
50709 if (!dnsHostRegex.test(region)) {
50710 throw new Error("Invalid region in client config");
50711 }
50712 return [4 /*yield*/, input.regionInfoProvider(region)];
50713 case 2:
50714 hostname = ((_b = (_c.sent())) !== null && _b !== void 0 ? _b : {}).hostname;
50715 if (!hostname) {
50716 throw new Error("Cannot resolve hostname from client config");
50717 }
50718 return [2 /*return*/, input.urlParser((tls ? "https:" : "http:") + "//" + hostname)];
50719 }
50720 });
50721}); };
50722//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRW5kcG9pbnRzQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0VuZHBvaW50c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bikpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJJbnZhbGlkIHJlZ2lvbiBpbiBjbGllbnQgY29uZmlnXCIpO1xuICB9XG5cbiAgY29uc3QgeyBob3N0bmFtZSB9ID0gKGF3YWl0IGlucHV0LnJlZ2lvbkluZm9Qcm92aWRlcihyZWdpb24pKSA/PyB7fTtcbiAgaWYgKCFob3N0bmFtZSkge1xuICAgIHRocm93IG5ldyBFcnJvcihcIkNhbm5vdCByZXNvbHZlIGhvc3RuYW1lIGZyb20gY2xpZW50IGNvbmZpZ1wiKTtcbiAgfVxuXG4gIHJldHVybiBpbnB1dC51cmxQYXJzZXIoYCR7dGxzID8gXCJodHRwczpcIiA6IFwiaHR0cDpcIn0vLyR7aG9zdG5hbWV9YCk7XG59O1xuIl19
50723
50724/***/ }),
50725
50726/***/ "../../node_modules/@aws-sdk/config-resolver/dist/es/RegionConfig.js":
50727/*!**************************************************************************************!*\
50728 !*** /root/amplify-js/node_modules/@aws-sdk/config-resolver/dist/es/RegionConfig.js ***!
50729 \**************************************************************************************/
50730/*! exports provided: REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig */
50731/***/ (function(module, __webpack_exports__, __webpack_require__) {
50732
50733"use strict";
50734__webpack_require__.r(__webpack_exports__);
50735/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REGION_ENV_NAME", function() { return REGION_ENV_NAME; });
50736/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REGION_INI_NAME", function() { return REGION_INI_NAME; });
50737/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_OPTIONS", function() { return NODE_REGION_CONFIG_OPTIONS; });
50738/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_FILE_OPTIONS", function() { return NODE_REGION_CONFIG_FILE_OPTIONS; });
50739/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveRegionConfig", function() { return resolveRegionConfig; });
50740/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
50741
50742var REGION_ENV_NAME = "AWS_REGION";
50743var REGION_INI_NAME = "region";
50744var NODE_REGION_CONFIG_OPTIONS = {
50745 environmentVariableSelector: function (env) { return env[REGION_ENV_NAME]; },
50746 configFileSelector: function (profile) { return profile[REGION_INI_NAME]; },
50747 default: function () {
50748 throw new Error("Region is missing");
50749 },
50750};
50751var NODE_REGION_CONFIG_FILE_OPTIONS = {
50752 preferredFile: "credentials",
50753};
50754var resolveRegionConfig = function (input) {
50755 if (!input.region) {
50756 throw new Error("Region is missing");
50757 }
50758 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { region: normalizeRegion(input.region) });
50759};
50760var normalizeRegion = function (region) {
50761 if (typeof region === "string") {
50762 var promisified_1 = Promise.resolve(region);
50763 return function () { return promisified_1; };
50764 }
50765 return region;
50766};
50767//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVnaW9uQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL1JlZ2lvbkNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBR0EsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLFlBQVksQ0FBQztBQUM1QyxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQUcsUUFBUSxDQUFDO0FBRXhDLE1BQU0sQ0FBQyxJQUFNLDBCQUEwQixHQUFrQztJQUN2RSwyQkFBMkIsRUFBRSxVQUFDLEdBQUcsSUFBSyxPQUFBLEdBQUcsQ0FBQyxlQUFlLENBQUMsRUFBcEIsQ0FBb0I7SUFDMUQsa0JBQWtCLEVBQUUsVUFBQyxP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YgUmVnaW9uUmVzb2x2ZWRDb25maWcgPT4ge1xuICBpZiAoIWlucHV0LnJlZ2lvbikge1xuICAgIHRocm93IG5ldyBFcnJvcihcIlJlZ2lvbiBpcyBtaXNzaW5nXCIpO1xuICB9XG4gIHJldHVybiB7XG4gICAgLi4uaW5wdXQsXG4gICAgcmVnaW9uOiBub3JtYWxpemVSZWdpb24oaW5wdXQucmVnaW9uISksXG4gIH07XG59O1xuXG5jb25zdCBub3JtYWxpemVSZWdpb24gPSAocmVnaW9uOiBzdHJpbmcgfCBQcm92aWRlcjxzdHJpbmc+KTogUHJvdmlkZXI8c3RyaW5nPiA9PiB7XG4gIGlmICh0eXBlb2YgcmVnaW9uID09PSBcInN0cmluZ1wiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUocmVnaW9uKTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH1cbiAgcmV0dXJuIHJlZ2lvbiBhcyBQcm92aWRlcjxzdHJpbmc+O1xufTtcbiJdfQ==
50768
50769/***/ }),
50770
50771/***/ "../../node_modules/@aws-sdk/config-resolver/dist/es/index.js":
50772/*!*******************************************************************************!*\
50773 !*** /root/amplify-js/node_modules/@aws-sdk/config-resolver/dist/es/index.js ***!
50774 \*******************************************************************************/
50775/*! exports provided: resolveEndpointsConfig, REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig */
50776/***/ (function(module, __webpack_exports__, __webpack_require__) {
50777
50778"use strict";
50779__webpack_require__.r(__webpack_exports__);
50780/* harmony import */ var _EndpointsConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EndpointsConfig */ "../../node_modules/@aws-sdk/config-resolver/dist/es/EndpointsConfig.js");
50781/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveEndpointsConfig", function() { return _EndpointsConfig__WEBPACK_IMPORTED_MODULE_0__["resolveEndpointsConfig"]; });
50782
50783/* harmony import */ var _RegionConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RegionConfig */ "../../node_modules/@aws-sdk/config-resolver/dist/es/RegionConfig.js");
50784/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "REGION_ENV_NAME", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["REGION_ENV_NAME"]; });
50785
50786/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "REGION_INI_NAME", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["REGION_INI_NAME"]; });
50787
50788/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_OPTIONS", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["NODE_REGION_CONFIG_OPTIONS"]; });
50789
50790/* 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"]; });
50791
50792/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveRegionConfig", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["resolveRegionConfig"]; });
50793
50794
50795
50796//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vRW5kcG9pbnRzQ29uZmlnXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9SZWdpb25Db25maWdcIjtcbiJdfQ==
50797
50798/***/ }),
50799
50800/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/EventStreamMarshaller.js":
50801/*!******************************************************************************************************!*\
50802 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/EventStreamMarshaller.js ***!
50803 \******************************************************************************************************/
50804/*! exports provided: EventStreamMarshaller */
50805/***/ (function(module, __webpack_exports__, __webpack_require__) {
50806
50807"use strict";
50808__webpack_require__.r(__webpack_exports__);
50809/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; });
50810/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-crypto/crc32 */ "../../node_modules/@aws-crypto/crc32/build/index.js");
50811/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__);
50812/* harmony import */ var _HeaderMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HeaderMarshaller */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/HeaderMarshaller.js");
50813/* harmony import */ var _splitMessage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./splitMessage */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/splitMessage.js");
50814
50815
50816
50817/**
50818 * A marshaller that can convert binary-packed event stream messages into
50819 * JavaScript objects and back again into their binary format.
50820 */
50821var EventStreamMarshaller = /** @class */ (function () {
50822 function EventStreamMarshaller(toUtf8, fromUtf8) {
50823 this.headerMarshaller = new _HeaderMarshaller__WEBPACK_IMPORTED_MODULE_1__["HeaderMarshaller"](toUtf8, fromUtf8);
50824 }
50825 /**
50826 * Convert a structured JavaScript object with tagged headers into a binary
50827 * event stream message.
50828 */
50829 EventStreamMarshaller.prototype.marshall = function (_a) {
50830 var rawHeaders = _a.headers, body = _a.body;
50831 var headers = this.headerMarshaller.format(rawHeaders);
50832 var length = headers.byteLength + body.byteLength + 16;
50833 var out = new Uint8Array(length);
50834 var view = new DataView(out.buffer, out.byteOffset, out.byteLength);
50835 var checksum = new _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__["Crc32"]();
50836 // Format message
50837 view.setUint32(0, length, false);
50838 view.setUint32(4, headers.byteLength, false);
50839 view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
50840 out.set(headers, 12);
50841 out.set(body, headers.byteLength + 12);
50842 // Write trailing message checksum
50843 view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
50844 return out;
50845 };
50846 /**
50847 * Convert a binary event stream message into a JavaScript object with an
50848 * opaque, binary body and tagged, parsed headers.
50849 */
50850 EventStreamMarshaller.prototype.unmarshall = function (message) {
50851 var _a = Object(_splitMessage__WEBPACK_IMPORTED_MODULE_2__["splitMessage"])(message), headers = _a.headers, body = _a.body;
50852 return { headers: this.headerMarshaller.parse(headers), body: body };
50853 };
50854 /**
50855 * Convert a structured JavaScript object with tagged headers into a binary
50856 * event stream message header.
50857 */
50858 EventStreamMarshaller.prototype.formatHeaders = function (rawHeaders) {
50859 return this.headerMarshaller.format(rawHeaders);
50860 };
50861 return EventStreamMarshaller;
50862}());
50863
50864//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFJMUMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTlDO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xuICAgKi9cbiAgdW5tYXJzaGFsbChtZXNzYWdlOiBBcnJheUJ1ZmZlclZpZXcpOiBNZXNzYWdlIHtcbiAgICBjb25zdCB7IGhlYWRlcnMsIGJvZHkgfSA9IHNwbGl0TWVzc2FnZShtZXNzYWdlKTtcblxuICAgIHJldHVybiB7IGhlYWRlcnM6IHRoaXMuaGVhZGVyTWFyc2hhbGxlci5wYXJzZShoZWFkZXJzKSwgYm9keSB9O1xuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnQgYSBzdHJ1Y3R1cmVkIEphdmFTY3JpcHQgb2JqZWN0IHdpdGggdGFnZ2VkIGhlYWRlcnMgaW50byBhIGJpbmFyeVxuICAgKiBldmVudCBzdHJlYW0gbWVzc2FnZSBoZWFkZXIuXG4gICAqL1xuICBmb3JtYXRIZWFkZXJzKHJhd0hlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzKTogVWludDhBcnJheSB7XG4gICAgcmV0dXJuIHRoaXMuaGVhZGVyTWFyc2hhbGxlci5mb3JtYXQocmF3SGVhZGVycyk7XG4gIH1cbn1cbiJdfQ==
50865
50866/***/ }),
50867
50868/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/HeaderMarshaller.js":
50869/*!*************************************************************************************************!*\
50870 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/HeaderMarshaller.js ***!
50871 \*************************************************************************************************/
50872/*! exports provided: HeaderMarshaller */
50873/***/ (function(module, __webpack_exports__, __webpack_require__) {
50874
50875"use strict";
50876__webpack_require__.r(__webpack_exports__);
50877/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderMarshaller", function() { return HeaderMarshaller; });
50878/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
50879/* 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");
50880/* harmony import */ var _Int64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Int64 */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js");
50881
50882
50883
50884/**
50885 * @internal
50886 */
50887var HeaderMarshaller = /** @class */ (function () {
50888 function HeaderMarshaller(toUtf8, fromUtf8) {
50889 this.toUtf8 = toUtf8;
50890 this.fromUtf8 = fromUtf8;
50891 }
50892 HeaderMarshaller.prototype.format = function (headers) {
50893 var e_1, _a, e_2, _b;
50894 var chunks = [];
50895 try {
50896 for (var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _d = _c.next(); !_d.done; _d = _c.next()) {
50897 var headerName = _d.value;
50898 var bytes = this.fromUtf8(headerName);
50899 chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
50900 }
50901 }
50902 catch (e_1_1) { e_1 = { error: e_1_1 }; }
50903 finally {
50904 try {
50905 if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
50906 }
50907 finally { if (e_1) throw e_1.error; }
50908 }
50909 var out = new Uint8Array(chunks.reduce(function (carry, bytes) { return carry + bytes.byteLength; }, 0));
50910 var position = 0;
50911 try {
50912 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()) {
50913 var chunk = chunks_1_1.value;
50914 out.set(chunk, position);
50915 position += chunk.byteLength;
50916 }
50917 }
50918 catch (e_2_1) { e_2 = { error: e_2_1 }; }
50919 finally {
50920 try {
50921 if (chunks_1_1 && !chunks_1_1.done && (_b = chunks_1.return)) _b.call(chunks_1);
50922 }
50923 finally { if (e_2) throw e_2.error; }
50924 }
50925 return out;
50926 };
50927 HeaderMarshaller.prototype.formatHeaderValue = function (header) {
50928 switch (header.type) {
50929 case "boolean":
50930 return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]);
50931 case "byte":
50932 return Uint8Array.from([2 /* byte */, header.value]);
50933 case "short":
50934 var shortView = new DataView(new ArrayBuffer(3));
50935 shortView.setUint8(0, 3 /* short */);
50936 shortView.setInt16(1, header.value, false);
50937 return new Uint8Array(shortView.buffer);
50938 case "integer":
50939 var intView = new DataView(new ArrayBuffer(5));
50940 intView.setUint8(0, 4 /* integer */);
50941 intView.setInt32(1, header.value, false);
50942 return new Uint8Array(intView.buffer);
50943 case "long":
50944 var longBytes = new Uint8Array(9);
50945 longBytes[0] = 5 /* long */;
50946 longBytes.set(header.value.bytes, 1);
50947 return longBytes;
50948 case "binary":
50949 var binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
50950 binView.setUint8(0, 6 /* byteArray */);
50951 binView.setUint16(1, header.value.byteLength, false);
50952 var binBytes = new Uint8Array(binView.buffer);
50953 binBytes.set(header.value, 3);
50954 return binBytes;
50955 case "string":
50956 var utf8Bytes = this.fromUtf8(header.value);
50957 var strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
50958 strView.setUint8(0, 7 /* string */);
50959 strView.setUint16(1, utf8Bytes.byteLength, false);
50960 var strBytes = new Uint8Array(strView.buffer);
50961 strBytes.set(utf8Bytes, 3);
50962 return strBytes;
50963 case "timestamp":
50964 var tsBytes = new Uint8Array(9);
50965 tsBytes[0] = 8 /* timestamp */;
50966 tsBytes.set(_Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"].fromNumber(header.value.valueOf()).bytes, 1);
50967 return tsBytes;
50968 case "uuid":
50969 if (!UUID_PATTERN.test(header.value)) {
50970 throw new Error("Invalid UUID received: " + header.value);
50971 }
50972 var uuidBytes = new Uint8Array(17);
50973 uuidBytes[0] = 9 /* uuid */;
50974 uuidBytes.set(Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["fromHex"])(header.value.replace(/\-/g, "")), 1);
50975 return uuidBytes;
50976 }
50977 };
50978 HeaderMarshaller.prototype.parse = function (headers) {
50979 var out = {};
50980 var position = 0;
50981 while (position < headers.byteLength) {
50982 var nameLength = headers.getUint8(position++);
50983 var name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
50984 position += nameLength;
50985 switch (headers.getUint8(position++)) {
50986 case 0 /* boolTrue */:
50987 out[name] = {
50988 type: BOOLEAN_TAG,
50989 value: true,
50990 };
50991 break;
50992 case 1 /* boolFalse */:
50993 out[name] = {
50994 type: BOOLEAN_TAG,
50995 value: false,
50996 };
50997 break;
50998 case 2 /* byte */:
50999 out[name] = {
51000 type: BYTE_TAG,
51001 value: headers.getInt8(position++),
51002 };
51003 break;
51004 case 3 /* short */:
51005 out[name] = {
51006 type: SHORT_TAG,
51007 value: headers.getInt16(position, false),
51008 };
51009 position += 2;
51010 break;
51011 case 4 /* integer */:
51012 out[name] = {
51013 type: INT_TAG,
51014 value: headers.getInt32(position, false),
51015 };
51016 position += 4;
51017 break;
51018 case 5 /* long */:
51019 out[name] = {
51020 type: LONG_TAG,
51021 value: new _Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"](new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
51022 };
51023 position += 8;
51024 break;
51025 case 6 /* byteArray */:
51026 var binaryLength = headers.getUint16(position, false);
51027 position += 2;
51028 out[name] = {
51029 type: BINARY_TAG,
51030 value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength),
51031 };
51032 position += binaryLength;
51033 break;
51034 case 7 /* string */:
51035 var stringLength = headers.getUint16(position, false);
51036 position += 2;
51037 out[name] = {
51038 type: STRING_TAG,
51039 value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)),
51040 };
51041 position += stringLength;
51042 break;
51043 case 8 /* timestamp */:
51044 out[name] = {
51045 type: TIMESTAMP_TAG,
51046 value: new Date(new _Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"](new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
51047 };
51048 position += 8;
51049 break;
51050 case 9 /* uuid */:
51051 var uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
51052 position += 16;
51053 out[name] = {
51054 type: UUID_TAG,
51055 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)),
51056 };
51057 break;
51058 default:
51059 throw new Error("Unrecognized header type tag");
51060 }
51061 }
51062 return out;
51063 };
51064 return HeaderMarshaller;
51065}());
51066
51067var HEADER_VALUE_TYPE;
51068(function (HEADER_VALUE_TYPE) {
51069 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue";
51070 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse";
51071 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte";
51072 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short";
51073 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer";
51074 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long";
51075 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray";
51076 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string";
51077 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp";
51078 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid";
51079})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
51080var BOOLEAN_TAG = "boolean";
51081var BYTE_TAG = "byte";
51082var SHORT_TAG = "short";
51083var INT_TAG = "integer";
51084var LONG_TAG = "long";
51085var BINARY_TAG = "binary";
51086var STRING_TAG = "string";
51087var TIMESTAMP_TAG = "timestamp";
51088var UUID_TAG = "uuid";
51089var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
51090//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyTWFyc2hhbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9IZWFkZXJNYXJzaGFsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBRTVELE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFFaEM7O0dBRUc7QUFDSDtJQUNFLDBCQUE2QixNQUFlLEVBQW1CLFFBQWlCO1FBQW5ELFdBQU0sR0FBTixNQUFNLENBQVM7UUFBbUIsYUFBUSxHQUFSLFFBQVEsQ0FBUztJQUFHLENBQUM7SUFFcEYsaUNBQU0sR0FBTixVQUFPLE9BQXVCOztRQUM1QixJQUFNLE1BQU0sR0FBc0IsRUFBRSxDQUFDOztZQUVyQyxLQUF5QixJQUFBLEtBQUEsU0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFBLGdCQUFBLDRCQUFFO2dCQUExQyxJQUFNLFVBQVUsV0FBQTtnQkFDbkIsSUFBTSxLQUFLLEd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gPSB7XG4gICAgICAgICAgICB0eXBlOiBCWVRFX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBoZWFkZXJzLmdldEludDgocG9zaXRpb24rKyksXG4gICAgICAgICAgfTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5zaG9ydDpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBTSE9SVF9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogaGVhZGVycy5nZXRJbnQxNihwb3NpdGlvbiwgZmFsc2UpLFxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gMjtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5pbnRlZ2VyOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IElOVF9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogaGVhZGVycy5nZXRJbnQzMihwb3NpdGlvbiwgZmFsc2UpLFxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gNDtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5sb25nOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IExPTkdfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IG5ldyBJbnQ2NChuZXcgVWludDhBcnJheShoZWFkZXJzLmJ1ZmZlciwgaGVhZGVycy5ieXRlT2Zmc2V0ICsgcG9zaXRpb24sIDgpKSxcbiAgICAgICAgICB9O1xuICAgICAgICAgIHBvc2l0aW9uICs9IDg7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYnl0ZUFycmF5OlxuICAgICAgICAgIGNvbnN0IGJpbmFyeUxlbmd0aCA9IGhlY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xuICB1dWlkLFxufVxuXG5jb25zdCBCT09MRUFOX1RBRyA9IFwiYm9vbGVhblwiO1xuY29uc3QgQllURV9UQUcgPSBcImJ5dGVcIjtcbmNvbnN0IFNIT1JUX1RBRyA9IFwic2hvcnRcIjtcbmNvbnN0IElOVF9UQUcgPSBcImludGVnZXJcIjtcbmNvbnN0IExPTkdfVEFHID0gXCJsb25nXCI7XG5jb25zdCBCSU5BUllfVEFHID0gXCJiaW5hcnlcIjtcbmNvbnN0IFNUUklOR19UQUcgPSBcInN0cmluZ1wiO1xuY29uc3QgVElNRVNUQU1QX1RBRyA9IFwidGltZXN0YW1wXCI7XG5jb25zdCBVVUlEX1RBRyA9IFwidXVpZFwiO1xuXG5jb25zdCBVVUlEX1BBVFRFUk4gPSAvXlthLWYwLTldezh9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezEyfSQvO1xuIl19
51091
51092/***/ }),
51093
51094/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js":
51095/*!**************************************************************************************!*\
51096 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js ***!
51097 \**************************************************************************************/
51098/*! exports provided: Int64 */
51099/***/ (function(module, __webpack_exports__, __webpack_require__) {
51100
51101"use strict";
51102__webpack_require__.r(__webpack_exports__);
51103/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Int64", function() { return Int64; });
51104/* 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");
51105
51106/**
51107 * A lossless representation of a signed, 64-bit integer. Instances of this
51108 * class may be used in arithmetic expressions as if they were numeric
51109 * primitives, but the binary representation will be preserved unchanged as the
51110 * `bytes` property of the object. The bytes should be encoded as big-endian,
51111 * two's complement integers.
51112 */
51113var Int64 = /** @class */ (function () {
51114 function Int64(bytes) {
51115 this.bytes = bytes;
51116 if (bytes.byteLength !== 8) {
51117 throw new Error("Int64 buffers must be exactly 8 bytes");
51118 }
51119 }
51120 Int64.fromNumber = function (number) {
51121 if (number > 9223372036854775807 || number < -9223372036854775808) {
51122 throw new Error(number + " is too large (or, if negative, too small) to represent as an Int64");
51123 }
51124 var bytes = new Uint8Array(8);
51125 for (var i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
51126 bytes[i] = remaining;
51127 }
51128 if (number < 0) {
51129 negate(bytes);
51130 }
51131 return new Int64(bytes);
51132 };
51133 /**
51134 * Called implicitly by infix arithmetic operators.
51135 */
51136 Int64.prototype.valueOf = function () {
51137 var bytes = this.bytes.slice(0);
51138 var negative = bytes[0] & 128;
51139 if (negative) {
51140 negate(bytes);
51141 }
51142 return parseInt(Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_0__["toHex"])(bytes), 16) * (negative ? -1 : 1);
51143 };
51144 Int64.prototype.toString = function () {
51145 return String(this.valueOf());
51146 };
51147 return Int64;
51148}());
51149
51150function negate(bytes) {
51151 for (var i = 0; i < 8; i++) {
51152 bytes[i] ^= 0xff;
51153 }
51154 for (var i = 7; i > -1; i--) {
51155 bytes[i]++;
51156 if (bytes[i] !== 0)
51157 break;
51158 }
51159}
51160//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW50NjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvSW50NjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBSW5EOzs7Ozs7R0FNRztBQUNIO0lBQ0UsZUFBcUIsS0FBaUI7UUFBakIsVUFBSyxHQUFMLEtBQUssQ0FBWTtRQUNwQyxJQUFJLEtBQUssQ0FBQyxVQU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ller/dist/es/Message.js":
51165/*!****************************************************************************************!*\
51166 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/Message.js ***!
51167 \****************************************************************************************/
51168/*! no exports provided */
51169/***/ (function(module, __webpack_exports__, __webpack_require__) {
51170
51171"use strict";
51172__webpack_require__.r(__webpack_exports__);
51173
51174//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9NZXNzYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbnQ2NCB9IGZyb20gXCIuL0ludDY0XCI7XG5cbi8qKlxuICogQW4gZXZlbnQgc3RyZWFtIG1lc3NhZ2UuIFRoZSBoZWFkZXJzIGFuZCBib2R5IHByb3BlcnRpZXMgd2lsbCBhbHdheXMgYmVcbiAqIGRlZmluZWQsIHdpdGggZW1wdHkgaGVhZGVycyByZXByZXNlbnRlZCBhcyBhbiBvYmplY3Qgd2l0aCBubyBrZXlzIGFuZCBhblxuICogZW1wdHkgYm9keSByZXByZXNlbnRlZCBhcyBhIHplcm8tbGVuZ3RoIFVpbnQ4QXJyYXkuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgTWVzc2FnZSB7XG4gIGhlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzO1xuICBib2R5OiBVaW50OEFycmF5O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIE1lc3NhZ2VIZWFkZXJzIHtcbiAgW25hbWU6IHN0cmluZ106IE1lc3NhZ2VIZWFkZXJWYWx1ZTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBCb29sZWFuSGVhZGVyVmFsdWUge1xuICB0eXBlOiBcImJvb2xlYW5cIjtcbiAgdmFsdWU6IGJvb2xlYW47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2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hbHVlXG4gIHwgU3RyaW5nSGVhZGVyVmFsdWVcbiAgfCBUaW1lc3RhbXBIZWFkZXJWYWx1ZVxuICB8IFV1aWRIZWFkZXJWYWx1ZTtcbiJdfQ==
51175
51176/***/ }),
51177
51178/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/index.js":
51179/*!**************************************************************************************!*\
51180 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/index.js ***!
51181 \**************************************************************************************/
51182/*! exports provided: EventStreamMarshaller, Int64 */
51183/***/ (function(module, __webpack_exports__, __webpack_require__) {
51184
51185"use strict";
51186__webpack_require__.r(__webpack_exports__);
51187/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/EventStreamMarshaller.js");
51188/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"]; });
51189
51190/* harmony import */ var _Int64__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Int64 */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js");
51191/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Int64", function() { return _Int64__WEBPACK_IMPORTED_MODULE_1__["Int64"]; });
51192
51193/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Message */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Message.js");
51194/* empty/unused harmony star reexport */
51195
51196
51197//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLFdBQVcsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL0V2ZW50U3RyZWFtTWFyc2hhbGxlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vSW50NjRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL01lc3NhZ2VcIjtcbiJdfQ==
51198
51199/***/ }),
51200
51201/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/splitMessage.js":
51202/*!*********************************************************************************************!*\
51203 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/splitMessage.js ***!
51204 \*********************************************************************************************/
51205/*! exports provided: splitMessage */
51206/***/ (function(module, __webpack_exports__, __webpack_require__) {
51207
51208"use strict";
51209__webpack_require__.r(__webpack_exports__);
51210/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitMessage", function() { return splitMessage; });
51211/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-crypto/crc32 */ "../../node_modules/@aws-crypto/crc32/build/index.js");
51212/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__);
51213
51214// All prelude components are unsigned, 32-bit integers
51215var PRELUDE_MEMBER_LENGTH = 4;
51216// The prelude consists of two components
51217var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
51218// Checksums are always CRC32 hashes.
51219var CHECKSUM_LENGTH = 4;
51220// Messages must include a full prelude, a prelude checksum, and a message checksum
51221var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
51222/**
51223 * @internal
51224 */
51225function splitMessage(_a) {
51226 var byteLength = _a.byteLength, byteOffset = _a.byteOffset, buffer = _a.buffer;
51227 if (byteLength < MINIMUM_MESSAGE_LENGTH) {
51228 throw new Error("Provided message too short to accommodate event stream message overhead");
51229 }
51230 var view = new DataView(buffer, byteOffset, byteLength);
51231 var messageLength = view.getUint32(0, false);
51232 if (byteLength !== messageLength) {
51233 throw new Error("Reported message length does not match received message length");
51234 }
51235 var headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
51236 var expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
51237 var expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
51238 var checksummer = new _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__["Crc32"]().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
51239 if (expectedPreludeChecksum !== checksummer.digest()) {
51240 throw new Error("The prelude checksum specified in the message (" + expectedPreludeChecksum + ") does not match the calculated CRC32 checksum (" + checksummer.digest() + ")");
51241 }
51242 checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
51243 if (expectedMessageChecksum !== checksummer.digest()) {
51244 throw new Error("The message checksum (" + checksummer.digest() + ") did not match the expected value of " + expectedMessageChecksum);
51245 }
51246 return {
51247 headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
51248 body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)),
51249 };
51250}
51251//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXRNZXNzYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NwbGl0TWVzc2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFMUMsdUR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stream-marshaller/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js":
51256/*!******************************************************************************************************************************!*\
51257 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js ***!
51258 \******************************************************************************************************************************/
51259/*! exports provided: fromHex, toHex */
51260/***/ (function(module, __webpack_exports__, __webpack_require__) {
51261
51262"use strict";
51263__webpack_require__.r(__webpack_exports__);
51264/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromHex", function() { return fromHex; });
51265/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHex", function() { return toHex; });
51266var SHORT_TO_HEX = {};
51267var HEX_TO_SHORT = {};
51268for (var i = 0; i < 256; i++) {
51269 var encodedByte = i.toString(16).toLowerCase();
51270 if (encodedByte.length === 1) {
51271 encodedByte = "0" + encodedByte;
51272 }
51273 SHORT_TO_HEX[i] = encodedByte;
51274 HEX_TO_SHORT[encodedByte] = i;
51275}
51276/**
51277 * Converts a hexadecimal encoded string to a Uint8Array of bytes.
51278 *
51279 * @param encoded The hexadecimal encoded string
51280 */
51281function fromHex(encoded) {
51282 if (encoded.length % 2 !== 0) {
51283 throw new Error("Hex encoded strings must have an even number length");
51284 }
51285 var out = new Uint8Array(encoded.length / 2);
51286 for (var i = 0; i < encoded.length; i += 2) {
51287 var encodedByte = encoded.substr(i, 2).toLowerCase();
51288 if (encodedByte in HEX_TO_SHORT) {
51289 out[i / 2] = HEX_TO_SHORT[encodedByte];
51290 }
51291 else {
51292 throw new Error("Cannot decode unrecognized sequence " + encodedByte + " as hexadecimal");
51293 }
51294 }
51295 return out;
51296}
51297/**
51298 * Converts a Uint8Array of binary data to a hexadecimal encoded string.
51299 *
51300 * @param bytes The binary data to encode
51301 */
51302function toHex(bytes) {
51303 var out = "";
51304 for (var i = 0; i < bytes.byteLength; i++) {
51305 out += SHORT_TO_HEX[bytes[i]];
51306 }
51307 return out;
51308}
51309//# sourceMappingURL=data:application/json;base64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nRzIGEgVWludDhBcnJheSBvZiBiaW5hcnkgZGF0YSB0byBhIGhleGFkZWNpbWFsIGVuY29kZWQgc3RyaW5nLlxuICpcbiAqIEBwYXJhbSBieXRlcyBUaGUgYmluYXJ5IGRhdGEgdG8gZW5jb2RlXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0b0hleChieXRlczogVWludDhBcnJheSk6IHN0cmluZyB7XG4gIGxldCBvdXQgPSBcIlwiO1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGJ5dGVzLmJ5dGVMZW5ndGg7IGkrKykge1xuICAgIG91dCArPSBTSE9SVF9UT19IRVhbYnl0ZXNbaV1dO1xuICB9XG5cbiAgcmV0dXJuIG91dDtcbn1cbiJdfQ==
51310
51311/***/ }),
51312
51313/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js":
51314/*!*********************************************************************************************************!*\
51315 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js ***!
51316 \*********************************************************************************************************/
51317/*! exports provided: EventStreamMarshaller */
51318/***/ (function(module, __webpack_exports__, __webpack_require__) {
51319
51320"use strict";
51321__webpack_require__.r(__webpack_exports__);
51322/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; });
51323/* 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");
51324/* 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");
51325/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js");
51326
51327
51328
51329/**
51330 * Utility class used to serialize and deserialize event streams in
51331 * browsers and ReactNative.
51332 *
51333 * In browsers where ReadableStream API is available:
51334 * * deserialize from ReadableStream to an async iterable of output structure
51335 * * serialize from async iterable of input structure to ReadableStream
51336 * In ReactNative where only async iterable API is available:
51337 * * deserialize from async iterable of binaries to async iterable of output structure
51338 * * serialize from async iterable of input structure to async iterable of binaries
51339 *
51340 * We use ReadableStream API in browsers because of the consistency with other
51341 * streaming operations, where ReadableStream API is used to denote streaming data.
51342 * Whereas in ReactNative, ReadableStream API is not available, we use async iterable
51343 * for streaming data although it has lower throughput.
51344 */
51345var EventStreamMarshaller = /** @class */ (function () {
51346 function EventStreamMarshaller(_a) {
51347 var utf8Encoder = _a.utf8Encoder, utf8Decoder = _a.utf8Decoder;
51348 this.eventMarshaller = new _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](utf8Encoder, utf8Decoder);
51349 this.universalMarshaller = new _aws_sdk_eventstream_serde_universal__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]({
51350 utf8Decoder: utf8Decoder,
51351 utf8Encoder: utf8Encoder,
51352 });
51353 }
51354 EventStreamMarshaller.prototype.deserialize = function (body, deserializer) {
51355 var bodyIterable = isReadableStream(body) ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["readableStreamtoIterable"])(body) : body;
51356 return this.universalMarshaller.deserialize(bodyIterable, deserializer);
51357 };
51358 /**
51359 * Generate a stream that serialize events into stream of binary chunks;
51360 *
51361 * Caveat is that streaming request payload doesn't work on browser with native
51362 * xhr or fetch handler currently because they don't support upload streaming.
51363 * reference:
51364 * * https://bugs.chromium.org/p/chromium/issues/detail?id=688906
51365 * * https://bugzilla.mozilla.org/show_bug.cgi?id=1387483
51366 *
51367 */
51368 EventStreamMarshaller.prototype.serialize = function (input, serializer) {
51369 var serialziedIterable = this.universalMarshaller.serialize(input, serializer);
51370 return typeof ReadableStream === "function" ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["iterableToReadableStream"])(serialziedIterable) : serialziedIterable;
51371 };
51372 return EventStreamMarshaller;
51373}());
51374
51375var isReadableStream = function (body) {
51376 return typeof ReadableStream === "function" && body instanceof ReadableStream;
51377};
51378//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUscUJBQXFCLElBQUksZUFBZSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDM0YsT0FBTyxFQUFFLHFCQUFxQixJQUFJLDhCQUE4QixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFHL0csT0FBTyxFQUFFLHdCQUF3QixFQUFFLHdCQUF3QixFQUFFLE1BQU0sU0FBUyxDQUFDO0FBUzdFOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNIO0lBR0UsK0JBQVksRUFBMEQ7WUFBeEQsV0FBVyxpQkFBQSxFQUFFLFdBQVcsaUJBQUE7UUFDcEMsSUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLGVBQWUsQ0FBQyxXQUFXLEVBQUUsV0FBVyxDQUFDLENBQUM7UUFDckUsSUFBSSxDQUFDLG1CQUFtQixHQUFHLElBQUksOEJBQThCLENBQUM7WUFDNUQsV0FBVyxhQUFBO1lBQ1gsV0FBVyxhQUFBO1NBQ1osQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUVELDJDQUFXLEdBQVgsVUFDRSxJQUE0RCxFQUM1RCxZQUFpRTtRQUVqRSxJQUFNLFlBQVksR0FBRyxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsd0JBQXdCLENB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uICAgKlxuICAgKi9cbiAgc2VyaWFsaXplPFQ+KGlucHV0OiBBc3luY0l0ZXJhYmxlPFQ+LCBzZXJpYWxpemVyOiAoZXZlbnQ6IFQpID0+IE1lc3NhZ2UpOiBSZWFkYWJsZVN0cmVhbSB8IEFzeW5jSXRlcmFibGU8VWludDhBcnJheT4ge1xuICAgIGNvbnN0IHNlcmlhbHppZWRJdGVyYWJsZSA9IHRoaXMudW5pdmVyc2FsTWFyc2hhbGxlci5zZXJpYWxpemUoaW5wdXQsIHNlcmlhbGl6ZXIpO1xuICAgIHJldHVybiB0eXBlb2YgUmVhZGFibGVTdHJlYW0gPT09IFwiZnVuY3Rpb25cIiA/IGl0ZXJhYmxlVG9SZWFkYWJsZVN0cmVhbShzZXJpYWx6aWVkSXRlcmFibGUpIDogc2VyaWFsemllZEl0ZXJhYmxlO1xuICB9XG59XG5cbmNvbnN0IGlzUmVhZGFibGVTdHJlYW0gPSAoYm9keTogYW55KTogYm9keSBpcyBSZWFkYWJsZVN0cmVhbSA9PlxuICB0eXBlb2YgUmVhZGFibGVTdHJlYW0gPT09IFwiZnVuY3Rpb25cIiAmJiBib2R5IGluc3RhbmNlb2YgUmVhZGFibGVTdHJlYW07XG4iXX0=
51379
51380/***/ }),
51381
51382/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/index.js":
51383/*!*****************************************************************************************!*\
51384 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/index.js ***!
51385 \*****************************************************************************************/
51386/*! exports provided: eventStreamSerdeProvider, EventStreamMarshaller, readableStreamtoIterable, iterableToReadableStream */
51387/***/ (function(module, __webpack_exports__, __webpack_require__) {
51388
51389"use strict";
51390__webpack_require__.r(__webpack_exports__);
51391/* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./provider */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/provider.js");
51392/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return _provider__WEBPACK_IMPORTED_MODULE_0__["eventStreamSerdeProvider"]; });
51393
51394/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js");
51395/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]; });
51396
51397/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js");
51398/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "readableStreamtoIterable", function() { return _utils__WEBPACK_IMPORTED_MODULE_2__["readableStreamtoIterable"]; });
51399
51400/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "iterableToReadableStream", function() { return _utils__WEBPACK_IMPORTED_MODULE_2__["iterableToReadableStream"]; });
51401
51402
51403
51404
51405//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9FdmVudFN0cmVhbU1hcnNoYWxsZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG4iXX0=
51406
51407/***/ }),
51408
51409/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/provider.js":
51410/*!********************************************************************************************!*\
51411 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/provider.js ***!
51412 \********************************************************************************************/
51413/*! exports provided: eventStreamSerdeProvider */
51414/***/ (function(module, __webpack_exports__, __webpack_require__) {
51415
51416"use strict";
51417__webpack_require__.r(__webpack_exports__);
51418/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return eventStreamSerdeProvider; });
51419/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js");
51420
51421/** browser event stream serde utils provider */
51422var eventStreamSerdeProvider = function (options) { return new _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](options); };
51423//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFaEUsZ0RBQWdEO0FBQ2hELE1BQU0sQ0FBQyxJQUFNLHdCQUF3QixHQUE2QixVQUFDLE9BSWxFLElBQUssT0FBQSxJQUFJLHFCQUFxQixDQUFDLE9BQU8sQ0FBQyxFQUFsQyxDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGVjb2RlciwgRW5jb2RlciwgRXZlbnRTaWduZXIsIEV2ZW50U3RyZWFtU2VyZGVQcm92aWRlciwgUHJvdmlkZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIH0gZnJvbSBcIi4vRXZlbnRTdHJlYW1NYXJzaGFsbGVyXCI7XG5cbi8qKiBicm93c2VyIGV2ZW50IHN0cmVhbSBzZXJkZSB1dGlscyBwcm92aWRlciAqL1xuZXhwb3J0IGNvbnN0IGV2ZW50U3RyZWFtU2VyZGVQcm92aWRlcjogRXZlbnRTdHJlYW1TZXJkZVByb3ZpZGVyID0gKG9wdGlvbnM6IHtcbiAgdXRmOEVuY29kZXI6IEVuY29kZXI7XG4gIHV0ZjhEZWNvZGVyOiBEZWNvZGVyO1xuICBldmVudFNpZ25lcjogRXZlbnRTaWduZXIgfCBQcm92aWRlcjxFdmVudFNpZ25lcj47XG59KSA9PiBuZXcgRXZlbnRTdHJlYW1NYXJzaGFsbGVyKG9wdGlvbnMpO1xuIl19
51424
51425/***/ }),
51426
51427/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js":
51428/*!*****************************************************************************************!*\
51429 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js ***!
51430 \*****************************************************************************************/
51431/*! exports provided: readableStreamtoIterable, iterableToReadableStream */
51432/***/ (function(module, __webpack_exports__, __webpack_require__) {
51433
51434"use strict";
51435__webpack_require__.r(__webpack_exports__);
51436/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readableStreamtoIterable", function() { return readableStreamtoIterable; });
51437/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iterableToReadableStream", function() { return iterableToReadableStream; });
51438/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51439
51440/**
51441 * A util function converting ReadableStream into an async iterable.
51442 * Reference: https://jakearchibald.com/2017/async-iterators-and-generators/#making-streams-iterate
51443 */
51444var readableStreamtoIterable = function (readableStream) {
51445 var _a;
51446 return (_a = {},
51447 _a[Symbol.asyncIterator] = function () {
51448 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51449 var reader, _a, done, value;
51450 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51451 switch (_b.label) {
51452 case 0:
51453 reader = readableStream.getReader();
51454 _b.label = 1;
51455 case 1:
51456 _b.trys.push([1, , 9, 10]);
51457 _b.label = 2;
51458 case 2:
51459 if (false) {}
51460 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(reader.read())];
51461 case 3:
51462 _a = _b.sent(), done = _a.done, value = _a.value;
51463 if (!done) return [3 /*break*/, 5];
51464 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)];
51465 case 4: return [2 /*return*/, _b.sent()];
51466 case 5: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(value)];
51467 case 6: return [4 /*yield*/, _b.sent()];
51468 case 7:
51469 _b.sent();
51470 return [3 /*break*/, 2];
51471 case 8: return [3 /*break*/, 10];
51472 case 9:
51473 reader.releaseLock();
51474 return [7 /*endfinally*/];
51475 case 10: return [2 /*return*/];
51476 }
51477 });
51478 });
51479 },
51480 _a);
51481};
51482/**
51483 * A util function converting async iterable to a ReadableStream.
51484 */
51485var iterableToReadableStream = function (asyncIterable) {
51486 var iterator = asyncIterable[Symbol.asyncIterator]();
51487 return new ReadableStream({
51488 pull: function (controller) {
51489 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
51490 var _a, done, value;
51491 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51492 switch (_b.label) {
51493 case 0: return [4 /*yield*/, iterator.next()];
51494 case 1:
51495 _a = _b.sent(), done = _a.done, value = _a.value;
51496 if (done) {
51497 return [2 /*return*/, controller.close()];
51498 }
51499 controller.enqueue(value);
51500 return [2 /*return*/];
51501 }
51502 });
51503 });
51504 },
51505 });
51506};
51507//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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NvbnN0IGl0ZXJhYmxlVG9SZWFkYWJsZVN0cmVhbSA9IDxUPihhc3luY0l0ZXJhYmxlOiBBc3luY0l0ZXJhYmxlPFQ+KTogUmVhZGFibGVTdHJlYW08VD4gPT4ge1xuICBjb25zdCBpdGVyYXRvciA9IGFzeW5jSXRlcmFibGVbU3ltYm9sLmFzeW5jSXRlcmF0b3JdKCk7XG4gIHJldHVybiBuZXcgUmVhZGFibGVTdHJlYW0oe1xuICAgIGFzeW5jIHB1bGwoY29udHJvbGxlcikge1xuICAgICAgY29uc3QgeyBkb25lLCB2YWx1ZSB9ID0gYXdhaXQgaXRlcmF0b3IubmV4dCgpO1xuICAgICAgaWYgKGRvbmUpIHtcbiAgICAgICAgcmV0dXJuIGNvbnRyb2xsZXIuY2xvc2UoKTtcbiAgICAgIH1cbiAgICAgIGNvbnRyb2xsZXIuZW5xdWV1ZSh2YWx1ZSk7XG4gICAgfSxcbiAgfSk7XG59O1xuIl19
51508
51509/***/ }),
51510
51511/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/EventStreamMarshaller.js":
51512/*!***********************************************************************************************************************************************************!*\
51513 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/EventStreamMarshaller.js ***!
51514 \***********************************************************************************************************************************************************/
51515/*! exports provided: EventStreamMarshaller */
51516/***/ (function(module, __webpack_exports__, __webpack_require__) {
51517
51518"use strict";
51519__webpack_require__.r(__webpack_exports__);
51520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; });
51521/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51522/* 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");
51523/* 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");
51524/* 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");
51525
51526
51527
51528
51529var EventStreamMarshaller = /** @class */ (function () {
51530 function EventStreamMarshaller(_a) {
51531 var utf8Encoder = _a.utf8Encoder, utf8Decoder = _a.utf8Decoder;
51532 this.eventMarshaller = new _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"](utf8Encoder, utf8Decoder);
51533 this.utfEncoder = utf8Encoder;
51534 }
51535 EventStreamMarshaller.prototype.deserialize = function (body, deserializer) {
51536 var chunkedStream = Object(_getChunkedStream__WEBPACK_IMPORTED_MODULE_2__["getChunkedStream"])(body);
51537 var unmarshalledStream = Object(_getUnmarshalledStream__WEBPACK_IMPORTED_MODULE_3__["getUnmarshalledStream"])(chunkedStream, {
51538 eventMarshaller: this.eventMarshaller,
51539 deserializer: deserializer,
51540 toUtf8: this.utfEncoder,
51541 });
51542 return unmarshalledStream;
51543 };
51544 EventStreamMarshaller.prototype.serialize = function (input, serializer) {
51545 var _a;
51546 // eslint-disable-next-line @typescript-eslint/no-this-alias
51547 var self = this;
51548 var serializedIterator = function () {
51549 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51550 var input_1, input_1_1, chunk, payloadBuf, e_1_1;
51551 var e_1, _a;
51552 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51553 switch (_b.label) {
51554 case 0:
51555 _b.trys.push([0, 7, 8, 13]);
51556 input_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncValues"])(input);
51557 _b.label = 1;
51558 case 1: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(input_1.next())];
51559 case 2:
51560 if (!(input_1_1 = _b.sent(), !input_1_1.done)) return [3 /*break*/, 6];
51561 chunk = input_1_1.value;
51562 payloadBuf = self.eventMarshaller.marshall(serializer(chunk));
51563 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(payloadBuf)];
51564 case 3: return [4 /*yield*/, _b.sent()];
51565 case 4:
51566 _b.sent();
51567 _b.label = 5;
51568 case 5: return [3 /*break*/, 1];
51569 case 6: return [3 /*break*/, 13];
51570 case 7:
51571 e_1_1 = _b.sent();
51572 e_1 = { error: e_1_1 };
51573 return [3 /*break*/, 13];
51574 case 8:
51575 _b.trys.push([8, , 11, 12]);
51576 if (!(input_1_1 && !input_1_1.done && (_a = input_1.return))) return [3 /*break*/, 10];
51577 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(_a.call(input_1))];
51578 case 9:
51579 _b.sent();
51580 _b.label = 10;
51581 case 10: return [3 /*break*/, 12];
51582 case 11:
51583 if (e_1) throw e_1.error;
51584 return [7 /*endfinally*/];
51585 case 12: return [7 /*endfinally*/];
51586 case 13: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(new Uint8Array(0))];
51587 case 14:
51588 // Ending frame
51589 return [4 /*yield*/, _b.sent()];
51590 case 15:
51591 // Ending frame
51592 _b.sent();
51593 return [2 /*return*/];
51594 }
51595 });
51596 });
51597 };
51598 return _a = {},
51599 _a[Symbol.asyncIterator] = serializedIterator,
51600 _a;
51601 };
51602 return EventStreamMarshaller;
51603}());
51604
51605//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVy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VdGY4OiB0aGlzLnV0ZkVuY29kZXIsXG4gICAgfSk7XG4gICAgcmV0dXJuIHVubWFyc2hhbGxlZFN0cmVhbTtcbiAgfVxuXG4gIHNlcmlhbGl6ZTxUPihpbnB1dDogQXN5bmNJdGVyYWJsZTxUPiwgc2VyaWFsaXplcjogKGV2ZW50OiBUKSA9PiBNZXNzYWdlKTogQXN5bmNJdGVyYWJsZTxVaW50OEFycmF5PiB7XG4gICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby10aGlzLWFsaWFzXG4gICAgY29uc3Qgc2VsZiA9IHRoaXM7XG4gICAgY29uc3Qgc2VyaWFsaXplZEl0ZXJhdG9yID0gYXN5bmMgZnVuY3Rpb24qICgpIHtcbiAgICAgIGZvciBhd2FpdCAoY29uc3QgY2h1bmsgb2YgaW5wdXQpIHtcbiAgICAgICAgY29uc3QgcGF5bG9hZEJ1ZiA9IHNlbGYuZXZlbnRNYXJzaGFsbGVyLm1hcnNoYWxsKHNlcmlhbGl6ZXIoY2h1bmspKTtcbiAgICAgICAgeWllbGQgcGF5bG9hZEJ1ZjtcbiAgICAgIH1cbiAgICAgIC8vIEVuZGluZyBmcmFtZVxuICAgICAgeWllbGQgbmV3IFVpbnQ4QXJyYXkoMCk7XG4gICAgfTtcbiAgICByZXR1cm4ge1xuICAgICAgW1N5bWJvbC5hc3luY0l0ZXJhdG9yXTogc2VyaWFsaXplZEl0ZXJhdG9yLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
51606
51607/***/ }),
51608
51609/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getChunkedStream.js":
51610/*!******************************************************************************************************************************************************!*\
51611 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getChunkedStream.js ***!
51612 \******************************************************************************************************************************************************/
51613/*! exports provided: getChunkedStream */
51614/***/ (function(module, __webpack_exports__, __webpack_require__) {
51615
51616"use strict";
51617__webpack_require__.r(__webpack_exports__);
51618/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChunkedStream", function() { return getChunkedStream; });
51619/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51620
51621function getChunkedStream(source) {
51622 var _a;
51623 var currentMessageTotalLength = 0;
51624 var currentMessagePendingLength = 0;
51625 var currentMessage = null;
51626 var messageLengthBuffer = null;
51627 var allocateMessage = function (size) {
51628 if (typeof size !== "number") {
51629 throw new Error("Attempted to allocate an event message where size was not a number: " + size);
51630 }
51631 currentMessageTotalLength = size;
51632 currentMessagePendingLength = 4;
51633 currentMessage = new Uint8Array(size);
51634 var currentMessageView = new DataView(currentMessage.buffer);
51635 currentMessageView.setUint32(0, size, false); //set big-endian Uint32 to 0~3 bytes
51636 };
51637 var iterator = function () {
51638 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51639 var sourceIterator, _a, value, done, chunkLength, currentOffset, bytesRemaining, numBytesForTotal, numBytesToWrite;
51640 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51641 switch (_b.label) {
51642 case 0:
51643 sourceIterator = source[Symbol.asyncIterator]();
51644 _b.label = 1;
51645 case 1:
51646 if (false) {}
51647 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(sourceIterator.next())];
51648 case 2:
51649 _a = _b.sent(), value = _a.value, done = _a.done;
51650 if (!done) return [3 /*break*/, 10];
51651 if (!!currentMessageTotalLength) return [3 /*break*/, 4];
51652 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)];
51653 case 3: return [2 /*return*/, _b.sent()];
51654 case 4:
51655 if (!(currentMessageTotalLength === currentMessagePendingLength)) return [3 /*break*/, 7];
51656 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(currentMessage)];
51657 case 5: return [4 /*yield*/, _b.sent()];
51658 case 6:
51659 _b.sent();
51660 return [3 /*break*/, 8];
51661 case 7: throw new Error("Truncated event message received.");
51662 case 8: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)];
51663 case 9: return [2 /*return*/, _b.sent()];
51664 case 10:
51665 chunkLength = value.length;
51666 currentOffset = 0;
51667 _b.label = 11;
51668 case 11:
51669 if (!(currentOffset < chunkLength)) return [3 /*break*/, 15];
51670 // create new message if necessary
51671 if (!currentMessage) {
51672 bytesRemaining = chunkLength - currentOffset;
51673 // prevent edge case where total length spans 2 chunks
51674 if (!messageLengthBuffer) {
51675 messageLengthBuffer = new Uint8Array(4);
51676 }
51677 numBytesForTotal = Math.min(4 - currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer
51678 bytesRemaining // bytes left in chunk
51679 );
51680 messageLengthBuffer.set(
51681 // @ts-ignore error TS2532: Object is possibly 'undefined' for value
51682 value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength);
51683 currentMessagePendingLength += numBytesForTotal;
51684 currentOffset += numBytesForTotal;
51685 if (currentMessagePendingLength < 4) {
51686 // not enough information to create the current message
51687 return [3 /*break*/, 15];
51688 }
51689 allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
51690 messageLengthBuffer = null;
51691 }
51692 numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, // number of bytes left to complete message
51693 chunkLength - currentOffset // number of bytes left in the original chunk
51694 );
51695 currentMessage.set(
51696 // @ts-ignore error TS2532: Object is possibly 'undefined' for value
51697 value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength);
51698 currentMessagePendingLength += numBytesToWrite;
51699 currentOffset += numBytesToWrite;
51700 if (!(currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength)) return [3 /*break*/, 14];
51701 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(currentMessage)];
51702 case 12:
51703 // push out the message
51704 return [4 /*yield*/, _b.sent()];
51705 case 13:
51706 // push out the message
51707 _b.sent();
51708 // cleanup
51709 currentMessage = null;
51710 currentMessageTotalLength = 0;
51711 currentMessagePendingLength = 0;
51712 _b.label = 14;
51713 case 14: return [3 /*break*/, 11];
51714 case 15: return [3 /*break*/, 1];
51715 case 16: return [2 /*return*/];
51716 }
51717 });
51718 });
51719 };
51720 return _a = {},
51721 _a[Symbol.asyncIterator] = iterator,
51722 _a;
51723}
51724//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q2h1bmtlZFN0cmVhbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9nZXRDaHVua2VkU3RyZWFtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxNQUFNLFVBQVUsZ0JBQWdCLENBQUMsTUFBaUM7O0lBQ2hFLElBQUkseUJBQXlCLEdBQUcsQ0FBQyxDQUFDO0lBQ2xDLElBQUksMkJBQTJCLEdBQUcsQ0FBQyxDQUFDO0lBQ3BDLElBQUksY0FBYyxHQUFzQixJQUFJLENBQUM7SUFDN0MsSUFBSSxtQkFBbUIsR0FBc0IsSUFBSSxDQUFDO0lBQ2xELElBQU0sZUFBZSxHQUFHLFVBQUMsSUFBWTtRQUNuQyxJQUFJLE9BQU8sSUFBSSxLQUFLLFFBQVEsRUFBRTtZQUM1QixNQUFNLElBQUksS0FBSyxDQUFDLHNFQUFzRSxHQUFHLElBQUksQ0FBQyxDQUFDO1NBQ2hHO1FBQ0QseUJBQXlCLEdBQUcsSUFBSSxDQUFDO1FBQ2pDLDJCQUEyQixHQUFHLENBQUMsQ0FBQztRQUNoQyxjQUFjLEdBQUcsSUFBSSxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDdEMsSUFB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cmF0b3IsXG4gIH07XG59XG4iXX0=
51725
51726/***/ }),
51727
51728/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getUnmarshalledStream.js":
51729/*!***********************************************************************************************************************************************************!*\
51730 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getUnmarshalledStream.js ***!
51731 \***********************************************************************************************************************************************************/
51732/*! exports provided: getUnmarshalledStream */
51733/***/ (function(module, __webpack_exports__, __webpack_require__) {
51734
51735"use strict";
51736__webpack_require__.r(__webpack_exports__);
51737/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUnmarshalledStream", function() { return getUnmarshalledStream; });
51738/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51739
51740function getUnmarshalledStream(source, options) {
51741 var _a;
51742 return _a = {},
51743 _a[Symbol.asyncIterator] = function () {
51744 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51745 var source_1, source_1_1, chunk, message, messageType, unmodeledError, code, exception, deserializedException, error, event, deserialized, e_1_1;
51746 var _a, _b;
51747 var e_1, _c;
51748 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) {
51749 switch (_d.label) {
51750 case 0:
51751 _d.trys.push([0, 12, 13, 18]);
51752 source_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncValues"])(source);
51753 _d.label = 1;
51754 case 1: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(source_1.next())];
51755 case 2:
51756 if (!(source_1_1 = _d.sent(), !source_1_1.done)) return [3 /*break*/, 11];
51757 chunk = source_1_1.value;
51758 message = options.eventMarshaller.unmarshall(chunk);
51759 messageType = message.headers[":message-type"].value;
51760 if (!(messageType === "error")) return [3 /*break*/, 3];
51761 unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError");
51762 unmodeledError.name = message.headers[":error-code"].value;
51763 throw unmodeledError;
51764 case 3:
51765 if (!(messageType === "exception")) return [3 /*break*/, 5];
51766 code = message.headers[":exception-type"].value;
51767 exception = (_a = {}, _a[code] = message, _a);
51768 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(options.deserializer(exception))];
51769 case 4:
51770 deserializedException = _d.sent();
51771 if (deserializedException.$unknown) {
51772 error = new Error(options.toUtf8(message.body));
51773 error.name = code;
51774 throw error;
51775 }
51776 throw deserializedException[code];
51777 case 5:
51778 if (!(messageType === "event")) return [3 /*break*/, 9];
51779 event = (_b = {},
51780 _b[message.headers[":event-type"].value] = message,
51781 _b);
51782 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(options.deserializer(event))];
51783 case 6:
51784 deserialized = _d.sent();
51785 if (deserialized.$unknown)
51786 return [3 /*break*/, 10];
51787 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(deserialized)];
51788 case 7: return [4 /*yield*/, _d.sent()];
51789 case 8:
51790 _d.sent();
51791 return [3 /*break*/, 10];
51792 case 9: throw Error("Unrecognizable event type: " + message.headers[":event-type"].value);
51793 case 10: return [3 /*break*/, 1];
51794 case 11: return [3 /*break*/, 18];
51795 case 12:
51796 e_1_1 = _d.sent();
51797 e_1 = { error: e_1_1 };
51798 return [3 /*break*/, 18];
51799 case 13:
51800 _d.trys.push([13, , 16, 17]);
51801 if (!(source_1_1 && !source_1_1.done && (_c = source_1.return))) return [3 /*break*/, 15];
51802 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(_c.call(source_1))];
51803 case 14:
51804 _d.sent();
51805 _d.label = 15;
51806 case 15: return [3 /*break*/, 17];
51807 case 16:
51808 if (e_1) throw e_1.error;
51809 return [7 /*endfinally*/];
51810 case 17: return [7 /*endfinally*/];
51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JzaW5nIGl0IHdpdGggYmVzdCBlZmZvcnRcbiAgICAgICAgICAgIGNvbnN0IGVycm9yID0gbmV3IEVycm9yKG9wdGlvbnMudG9VdGY4KG1lc3NhZ2UuYm9keSkpO1xuICAgICAgICAgICAgZXJyb3IubmFtZSA9IGNvZGU7XG4gICAgICAgICAgICB0aHJvdyBlcnJvcjtcbiAgICAgICAgICB9XG4gICAgICAgICAgdGhyb3cgZGVzZXJpYWxpemVkRXhjZXB0aW9uW2NvZGVdO1xuICAgICAgICB9IGVsc2UgaWYgKG1lc3NhZ2VUeXBlID09PSBcImV2ZW50XCIpIHtcbiAgICAgICAgICBjb25zdCBldmVudCA9IHtcbiAgICAgICAgICAgIFttZXNzYWdlLmhlYWRlcnNbXCI6ZXZlbnQtdHlwZVwiXS52YWx1ZSBhcyBzdHJpbmddOiBtZXNzYWdlLFxuICAgICAgICAgIH07XG4gICAgICAgICAgY29uc3QgZGVzZXJpYWxpemVkID0gYXdhaXQgb3B0aW9ucy5kZXNlcmlhbGl6ZXIoZXZlbnQpO1xuICAgICAgICAgIGlmIChkZXNlcmlhbGl6ZWQuJHVua25vd24pIGNvbnRpbnVlO1xuICAgICAgICAgIHlpZWxkIGRlc2VyaWFsaXplZDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aHJvdyBFcnJvcihgVW5yZWNvZ25pemFibGUgZXZlbnQgdHlwZTogJHttZXNzYWdlLmhlYWRlcnNbXCI6ZXZlbnQtdHlwZVwiXS52YWx1ZX1gKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG4gIH07XG59XG4iXX0=
51819
51820/***/ }),
51821
51822/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/index.js":
51823/*!*******************************************************************************************************************************************!*\
51824 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/index.js ***!
51825 \*******************************************************************************************************************************************/
51826/*! exports provided: eventStreamSerdeProvider, EventStreamMarshaller */
51827/***/ (function(module, __webpack_exports__, __webpack_require__) {
51828
51829"use strict";
51830__webpack_require__.r(__webpack_exports__);
51831/* 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");
51832/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return _provider__WEBPACK_IMPORTED_MODULE_0__["eventStreamSerdeProvider"]; });
51833
51834/* 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");
51835/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]; });
51836
51837
51838
51839//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9FdmVudFN0cmVhbU1hcnNoYWxsZXJcIjtcbiJdfQ==
51840
51841/***/ }),
51842
51843/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/provider.js":
51844/*!**********************************************************************************************************************************************!*\
51845 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/provider.js ***!
51846 \**********************************************************************************************************************************************/
51847/*! exports provided: eventStreamSerdeProvider */
51848/***/ (function(module, __webpack_exports__, __webpack_require__) {
51849
51850"use strict";
51851__webpack_require__.r(__webpack_exports__);
51852/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return eventStreamSerdeProvider; });
51853/* 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");
51854
51855/** NodeJS event stream utils provider */
51856var eventStreamSerdeProvider = function (options) { return new _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](options); };
51857//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFaEUseUNBQXlDO0FBQ3pDLE1BQU0sQ0FBQyxJQUFNLHdCQUF3QixHQUE2QixVQUFDLE9BSWxFLElBQUssT0FBQSxJQUFJLHFCQUFxQixDQUFDLE9BQU8sQ0FBQyxFQUFsQyxDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGVjb2RlciwgRW5jb2RlciwgRXZlbnRTaWduZXIsIEV2ZW50U3RyZWFtU2VyZGVQcm92aWRlciwgUHJvdmlkZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIH0gZnJvbSBcIi4vRXZlbnRTdHJlYW1NYXJzaGFsbGVyXCI7XG5cbi8qKiBOb2RlSlMgZXZlbnQgc3RyZWFtIHV0aWxzIHByb3ZpZGVyICovXG5leHBvcnQgY29uc3QgZXZlbnRTdHJlYW1TZXJkZVByb3ZpZGVyOiBFdmVudFN0cmVhbVNlcmRlUHJvdmlkZXIgPSAob3B0aW9uczoge1xuICB1dGY4RW5jb2RlcjogRW5jb2RlcjtcbiAgdXRmOERlY29kZXI6IERlY29kZXI7XG4gIGV2ZW50U2lnbmVyOiBFdmVudFNpZ25lciB8IFByb3ZpZGVyPEV2ZW50U2lnbmVyPjtcbn0pID0+IG5ldyBFdmVudFN0cmVhbU1hcnNoYWxsZXIob3B0aW9ucyk7XG4iXX0=
51858
51859/***/ }),
51860
51861/***/ "../../node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/EventStreamSerdeConfig.js":
51862/*!******************************************************************************************************************!*\
51863 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/EventStreamSerdeConfig.js ***!
51864 \******************************************************************************************************************/
51865/*! exports provided: resolveEventStreamSerdeConfig */
51866/***/ (function(module, __webpack_exports__, __webpack_require__) {
51867
51868"use strict";
51869__webpack_require__.r(__webpack_exports__);
51870/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveEventStreamSerdeConfig", function() { return resolveEventStreamSerdeConfig; });
51871/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51872
51873var resolveEventStreamSerdeConfig = function (input) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { eventStreamMarshaller: input.eventStreamSerdeProvider(input) })); };
51874//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1TZXJkZUNvbmZp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VyZGVQcm92aWRlcihpbnB1dCksXG59KTtcbiJdfQ==
51875
51876/***/ }),
51877
51878/***/ "../../node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/index.js":
51879/*!*************************************************************************************************!*\
51880 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/index.js ***!
51881 \*************************************************************************************************/
51882/*! exports provided: resolveEventStreamSerdeConfig */
51883/***/ (function(module, __webpack_exports__, __webpack_require__) {
51884
51885"use strict";
51886__webpack_require__.r(__webpack_exports__);
51887/* harmony import */ var _EventStreamSerdeConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamSerdeConfig */ "../../node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/EventStreamSerdeConfig.js");
51888/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveEventStreamSerdeConfig", function() { return _EventStreamSerdeConfig__WEBPACK_IMPORTED_MODULE_0__["resolveEventStreamSerdeConfig"]; });
51889
51890
51891//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL0V2ZW50U3RyZWFtU2VyZGVDb25maWdcIjtcbiJdfQ==
51892
51893/***/ }),
51894
51895/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/fetch-http-handler.js":
51896/*!***********************************************************************************************!*\
51897 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/fetch-http-handler.js ***!
51898 \***********************************************************************************************/
51899/*! exports provided: FetchHttpHandler */
51900/***/ (function(module, __webpack_exports__, __webpack_require__) {
51901
51902"use strict";
51903__webpack_require__.r(__webpack_exports__);
51904/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FetchHttpHandler", function() { return FetchHttpHandler; });
51905/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51906/* 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");
51907/* 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");
51908/* 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");
51909
51910
51911
51912
51913var FetchHttpHandler = /** @class */ (function () {
51914 function FetchHttpHandler(_a) {
51915 var _b = _a === void 0 ? {} : _a, requestTimeout = _b.requestTimeout;
51916 this.requestTimeout = requestTimeout;
51917 }
51918 FetchHttpHandler.prototype.destroy = function () {
51919 // Do nothing. TLS and HTTP/2 connection pooling is handled by the browser.
51920 };
51921 FetchHttpHandler.prototype.handle = function (request, _a) {
51922 var _b = _a === void 0 ? {} : _a, abortSignal = _b.abortSignal;
51923 var requestTimeoutInMs = this.requestTimeout;
51924 // if the request was already aborted, prevent doing extra work
51925 if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {
51926 var abortError = new Error("Request aborted");
51927 abortError.name = "AbortError";
51928 return Promise.reject(abortError);
51929 }
51930 var path = request.path;
51931 if (request.query) {
51932 var queryString = Object(_aws_sdk_querystring_builder__WEBPACK_IMPORTED_MODULE_2__["buildQueryString"])(request.query);
51933 if (queryString) {
51934 path += "?" + queryString;
51935 }
51936 }
51937 var port = request.port, method = request.method;
51938 var url = request.protocol + "//" + request.hostname + (port ? ":" + port : "") + path;
51939 // Request constructor doesn't allow GET/HEAD request with body
51940 // ref: https://github.com/whatwg/fetch/issues/551
51941 var body = method === "GET" || method === "HEAD" ? undefined : request.body;
51942 var requestOptions = {
51943 body: body,
51944 headers: new Headers(request.headers),
51945 method: method,
51946 };
51947 // some browsers support abort signal
51948 if (typeof AbortController !== "undefined") {
51949 requestOptions["signal"] = abortSignal;
51950 }
51951 var fetchRequest = new Request(url, requestOptions);
51952 var raceOfPromises = [
51953 fetch(fetchRequest).then(function (response) {
51954 var e_1, _a;
51955 var fetchHeaders = response.headers;
51956 var transformedHeaders = {};
51957 try {
51958 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(fetchHeaders.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {
51959 var pair = _c.value;
51960 transformedHeaders[pair[0]] = pair[1];
51961 }
51962 }
51963 catch (e_1_1) { e_1 = { error: e_1_1 }; }
51964 finally {
51965 try {
51966 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
51967 }
51968 finally { if (e_1) throw e_1.error; }
51969 }
51970 var hasReadableStream = response.body !== undefined;
51971 // Return the response with buffered body
51972 if (!hasReadableStream) {
51973 return response.blob().then(function (body) { return ({
51974 response: new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpResponse"]({
51975 headers: transformedHeaders,
51976 statusCode: response.status,
51977 body: body,
51978 }),
51979 }); });
51980 }
51981 // Return the response with streaming body
51982 return {
51983 response: new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpResponse"]({
51984 headers: transformedHeaders,
51985 statusCode: response.status,
51986 body: response.body,
51987 }),
51988 };
51989 }),
51990 Object(_request_timeout__WEBPACK_IMPORTED_MODULE_3__["requestTimeout"])(requestTimeoutInMs),
51991 ];
51992 if (abortSignal) {
51993 raceOfPromises.push(new Promise(function (resolve, reject) {
51994 abortSignal.onabort = function () {
51995 var abortError = new Error("Request aborted");
51996 abortError.name = "AbortError";
51997 reject(abortError);
51998 };
51999 }));
52000 }
52001 return Promise.race(raceOfPromises);
52002 };
52003 return FetchHttpHandler;
52004}());
52005
52006//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmV0Y2gtaHR0cC1oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ZldGNoLWh0dHAtaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUE0QixZQUFZLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNoRixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUdoRSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFlbkQ7SUFHRSwwQkFBWSxFQUFnRDtZQUFoRCxxQkFBOEMsRUFBRSxLQUFBLEVBQTlDLGNBQWMsb0JBQUE7UUFDMUIsSUFBSSxDQUFDLGNBQWMsR0FBRyxjQUFjLENBQUM7SUFDdkMsQ0FBQztJQUVELGtDQUFPLEdBQVA7UUFDRSwyRUFBMkU7SUFDN0UsQ0FBQztJQUVELGlDQUFNLEdBQU4sVUFBTyxPQUFvQixFQUFFLEVBQXdDO1lBQXhDLHFCQUFzQyxFQUFFLEtBQUEsRUFBdEMsV0FBVyxpQkFBQTtRQUN4QyxJQUFNLGtCQUFrQixHQUFHLElBQUksQ0FBQyxjQUFjLENBQUM7UUFFL0MsK0RBQStEO1FBQy9ELElBQUksV0FBVyxhQUFYLFdBQVcsdUJBQVgsV0FBVyxDQUFFLE9BQU8sRUFBRTtZQUN4QixJQUFNLFVBQVUsR0FBRyxJQUFJLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO1lBQ2hELFVBQVUsQ0FBQyxJQUFJLEdBQUcsWUFBWSxDQUFDO1lBQy9CLE9BQU8sT0FBTyxDQUFDLE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iAgICAgICAgICByZXR1cm4gcmVzcG9uc2UuYmxvYigpLnRoZW4oKGJvZHkpID0+ICh7XG4gICAgICAgICAgICByZXNwb25zZTogbmV3IEh0dHBSZXNwb25zZSh7XG4gICAgICAgICAgICAgIGhlYWRlcnM6IHRyYW5zZm9ybWVkSGVhZGVycyxcbiAgICAgICAgICAgICAgc3RhdHVzQ29kZTogcmVzcG9uc2Uuc3RhdHVzLFxuICAgICAgICAgICAgICBib2R5LFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSkpO1xuICAgICAgICB9XG4gICAgICAgIC8vIFJldHVybiB0aGUgcmVzcG9uc2Ugd2l0aCBzdHJlYW1pbmcgYm9keVxuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgIHJlc3BvbnNlOiBuZXcgSHR0cFJlc3BvbnNlKHtcbiAgICAgICAgICAgIGhlYWRlcnM6IHRyYW5zZm9ybWVkSGVhZGVycyxcbiAgICAgICAgICAgIHN0YXR1c0NvZGU6IHJlc3BvbnNlLnN0YXR1cyxcbiAgICAgICAgICAgIGJvZHk6IHJlc3BvbnNlLmJvZHksXG4gICAgICAgICAgfSksXG4gICAgICAgIH07XG4gICAgICB9KSxcbiAgICAgIHJlcXVlc3RUaW1lb3V0KHJlcXVlc3RUaW1lb3V0SW5NcyksXG4gICAgXTtcbiAgICBpZiAoYWJvcnRTaWduYWwpIHtcbiAgICAgIHJhY2VPZlByb21pc2VzLnB1c2goXG4gICAgICAgIG5ldyBQcm9taXNlPG5ldmVyPigocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgICAgYWJvcnRTaWduYWwub25hYm9ydCA9ICgpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGFib3J0RXJyb3IgPSBuZXcgRXJyb3IoXCJSZXF1ZXN0IGFib3J0ZWRcIik7XG4gICAgICAgICAgICBhYm9ydEVycm9yLm5hbWUgPSBcIkFib3J0RXJyb3JcIjtcbiAgICAgICAgICAgIHJlamVjdChhYm9ydEVycm9yKTtcbiAgICAgICAgICB9O1xuICAgICAgICB9KVxuICAgICAgKTtcbiAgICB9XG4gICAgcmV0dXJuIFByb21pc2UucmFjZShyYWNlT2ZQcm9taXNlcyk7XG4gIH1cbn1cbiJdfQ==
52007
52008/***/ }),
52009
52010/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js":
52011/*!**********************************************************************************!*\
52012 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js ***!
52013 \**********************************************************************************/
52014/*! exports provided: FetchHttpHandler, streamCollector */
52015/***/ (function(module, __webpack_exports__, __webpack_require__) {
52016
52017"use strict";
52018__webpack_require__.r(__webpack_exports__);
52019/* 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");
52020/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FetchHttpHandler", function() { return _fetch_http_handler__WEBPACK_IMPORTED_MODULE_0__["FetchHttpHandler"]; });
52021
52022/* 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");
52023/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "streamCollector", function() { return _stream_collector__WEBPACK_IMPORTED_MODULE_1__["streamCollector"]; });
52024
52025
52026
52027//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZmV0Y2gtaHR0cC1oYW5kbGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zdHJlYW0tY29sbGVjdG9yXCI7XG4iXX0=
52028
52029/***/ }),
52030
52031/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/request-timeout.js":
52032/*!********************************************************************************************!*\
52033 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/request-timeout.js ***!
52034 \********************************************************************************************/
52035/*! exports provided: requestTimeout */
52036/***/ (function(module, __webpack_exports__, __webpack_require__) {
52037
52038"use strict";
52039__webpack_require__.r(__webpack_exports__);
52040/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requestTimeout", function() { return requestTimeout; });
52041function requestTimeout(timeoutInMs) {
52042 if (timeoutInMs === void 0) { timeoutInMs = 0; }
52043 return new Promise(function (resolve, reject) {
52044 if (timeoutInMs) {
52045 setTimeout(function () {
52046 var timeoutError = new Error("Request did not complete within " + timeoutInMs + " ms");
52047 timeoutError.name = "TimeoutError";
52048 reject(timeoutError);
52049 }, timeoutInMs);
52050 }
52051 });
52052}
52053//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC10aW1lb3V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JlcXVlc3QtdGltZW91dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsY0FBYyxDQUFDLFdBQWU7SUFBZiw0QkFBQSxFQUFBLGVBQWU7SUFDNUMsT0FBTyxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO1FBQ2pDLElBQUksV0FBVyxFQUFFO1lBQ2YsVUFBVSxDQUFDO2dCQUNULElBQU0sWUFBWSxHQUFHLElBQUksS0FBSyxDQUFDLHFDQUFtQyxXQUFXLFFBQUssQ0FBQyxDQUFDO2dCQUNwRixZQUFZLENBQUMsSUFBSSxHQUFHLGNBQWMsQ0FBQztnQkFDbkMsTUFBTSxDQUFDLFlBQVksQ0FBQyxDQUFDO1lBQ3ZCLENBQUMsRUFBRSxXQUFXLENBQUMsQ0FBQztTQUNqQjtJQUNILENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiByZXF1ZXN0VGltZW91dCh0aW1lb3V0SW5NcyA9IDApOiBQcm9taXNlPG5ldmVyPiB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgaWYgKHRpbWVvdXRJbk1zKSB7XG4gICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgY29uc3QgdGltZW91dEVycm9yID0gbmV3IEVycm9yKGBSZXF1ZXN0IGRpZCBub3QgY29tcGxldGUgd2l0aGluICR7dGltZW91dEluTXN9IG1zYCk7XG4gICAgICAgIHRpbWVvdXRFcnJvci5uYW1lID0gXCJUaW1lb3V0RXJyb3JcIjtcbiAgICAgICAgcmVqZWN0KHRpbWVvdXRFcnJvcik7XG4gICAgICB9LCB0aW1lb3V0SW5Ncyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==
52054
52055/***/ }),
52056
52057/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/stream-collector.js":
52058/*!*********************************************************************************************!*\
52059 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/stream-collector.js ***!
52060 \*********************************************************************************************/
52061/*! exports provided: streamCollector */
52062/***/ (function(module, __webpack_exports__, __webpack_require__) {
52063
52064"use strict";
52065__webpack_require__.r(__webpack_exports__);
52066/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "streamCollector", function() { return streamCollector; });
52067/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52068/* 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");
52069
52070
52071//reference: https://snack.expo.io/r1JCSWRGU
52072var streamCollector = function (stream) {
52073 if (typeof Blob === "function" && stream instanceof Blob) {
52074 return collectBlob(stream);
52075 }
52076 return collectStream(stream);
52077};
52078function collectBlob(blob) {
52079 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52080 var base64, arrayBuffer;
52081 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52082 switch (_a.label) {
52083 case 0: return [4 /*yield*/, readToBase64(blob)];
52084 case 1:
52085 base64 = _a.sent();
52086 arrayBuffer = Object(_aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_1__["fromBase64"])(base64);
52087 return [2 /*return*/, new Uint8Array(arrayBuffer)];
52088 }
52089 });
52090 });
52091}
52092function collectStream(stream) {
52093 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52094 var res, reader, isDone, _a, done, value, prior;
52095 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52096 switch (_b.label) {
52097 case 0:
52098 res = new Uint8Array(0);
52099 reader = stream.getReader();
52100 isDone = false;
52101 _b.label = 1;
52102 case 1:
52103 if (!!isDone) return [3 /*break*/, 3];
52104 return [4 /*yield*/, reader.read()];
52105 case 2:
52106 _a = _b.sent(), done = _a.done, value = _a.value;
52107 if (value) {
52108 prior = res;
52109 res = new Uint8Array(prior.length + value.length);
52110 res.set(prior);
52111 res.set(value, prior.length);
52112 }
52113 isDone = done;
52114 return [3 /*break*/, 1];
52115 case 3: return [2 /*return*/, res];
52116 }
52117 });
52118 });
52119}
52120function readToBase64(blob) {
52121 return new Promise(function (resolve, reject) {
52122 var reader = new FileReader();
52123 reader.onloadend = function () {
52124 var _a;
52125 // reference: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
52126 // response from readAsDataURL is always prepended with "data:*/*;base64,"
52127 if (reader.readyState !== 2) {
52128 return reject(new Error("Reader aborted too early"));
52129 }
52130 var result = ((_a = reader.result) !== null && _a !== void 0 ? _a : "");
52131 // Response can include only 'data:' for empty blob, return empty string in this case.
52132 // Otherwise, return the string after ','
52133 var commaIndex = result.indexOf(",");
52134 var dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
52135 resolve(result.substring(dataOffset));
52136 };
52137 reader.onabort = function () { return reject(new Error("Read aborted")); };
52138 reader.onerror = function () { return reject(reader.error); };
52139 // reader.readAsArrayBuffer is not always available
52140 reader.readAsDataURL(blob);
52141 });
52142}
52143//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyZWFtLWNvbGxlY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHJlYW0tY29sbGVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFFMUQsNENBQTRDO0FBQzVDLE1BQU0sQ0FBQyxJQUFNLGVBQWUsR0FBb0IsVUFBQyxNQUE2QjtJQUM1RSxJQUFJLE9BQU8sSUFBSSxLQUFLLFVBQVUsSUFBSSxNQUFNLFlBQVksSUFBSSxFQUFFO1FBQ3hELE9BQU8sV0FBVyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0tBQzVCO0lBRUQsT0FBTyxhQUFhLENBQUMsTUFBd0IsQ0FBQyxDQUFDO0FBQ2pELENBQUMsQ0FBQztBQUVGLFNBQWUsV0FBVyxDQUFDLElBQVU7Ozs7O3dCQUNwQixxQkFBTSxZQUFZLENBQUMsSUFBSSxDQUFDLEVBQUE7O29CQUFqQyxNQUFNLEdBQUcsU0FBd0I7b0JBQ2pDLFdBQVcsR0F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Ly8gT3RoZXJ3aXNlLCByZXR1cm4gdGhlIHN0cmluZyBhZnRlciAnLCdcbiAgICAgIGNvbnN0IGNvbW1hSW5kZXggPSByZXN1bHQuaW5kZXhPZihcIixcIik7XG4gICAgICBjb25zdCBkYXRhT2Zmc2V0ID0gY29tbWFJbmRleCA+IC0xID8gY29tbWFJbmRleCArIDEgOiByZXN1bHQubGVuZ3RoO1xuICAgICAgcmVzb2x2ZShyZXN1bHQuc3Vic3RyaW5nKGRhdGFPZmZzZXQpKTtcbiAgICB9O1xuICAgIHJlYWRlci5vbmFib3J0ID0gKCkgPT4gcmVqZWN0KG5ldyBFcnJvcihcIlJlYWQgYWJvcnRlZFwiKSk7XG4gICAgcmVhZGVyLm9uZXJyb3IgPSAoKSA9PiByZWplY3QocmVhZGVyLmVycm9yKTtcbiAgICAvLyByZWFkZXIucmVhZEFzQXJyYXlCdWZmZXIgaXMgbm90IGFsd2F5cyBhdmFpbGFibGVcbiAgICByZWFkZXIucmVhZEFzRGF0YVVSTChibG9iKTtcbiAgfSk7XG59XG4iXX0=
52144
52145/***/ }),
52146
52147/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/querystring-builder/dist/es/index.js":
52148/*!****************************************************************************************************************************!*\
52149 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/querystring-builder/dist/es/index.js ***!
52150 \****************************************************************************************************************************/
52151/*! exports provided: buildQueryString */
52152/***/ (function(module, __webpack_exports__, __webpack_require__) {
52153
52154"use strict";
52155__webpack_require__.r(__webpack_exports__);
52156/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildQueryString", function() { return buildQueryString; });
52157/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52158/* 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");
52159
52160
52161function buildQueryString(query) {
52162 var e_1, _a;
52163 var parts = [];
52164 try {
52165 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(query).sort()), _c = _b.next(); !_c.done; _c = _b.next()) {
52166 var key = _c.value;
52167 var value = query[key];
52168 key = Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(key);
52169 if (Array.isArray(value)) {
52170 for (var i = 0, iLen = value.length; i < iLen; i++) {
52171 parts.push(key + "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value[i]));
52172 }
52173 }
52174 else {
52175 var qsEntry = key;
52176 if (value || typeof value === "string") {
52177 qsEntry += "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value);
52178 }
52179 parts.push(qsEntry);
52180 }
52181 }
52182 }
52183 catch (e_1_1) { e_1 = { error: e_1_1 }; }
52184 finally {
52185 try {
52186 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
52187 }
52188 finally { if (e_1) throw e_1.error; }
52189 }
52190 return parts.join("&");
52191}
52192//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVyRCxNQUFNLFVBQVUsZ0JBQWdCLENBQUMsS0FBd0I7O0lBQ3ZELElBQU0sS0FBSyxHQUFhLEVBQUUsQ0FBQzs7UUFDM0IsS0FBZ0IsSUFBQSxLQUFBLFNBQUEsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0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dW5jdGlvbiBidWlsZFF1ZXJ5U3RyaW5nKHF1ZXJ5OiBRdWVyeVBhcmFtZXRlckJhZyk6IHN0cmluZyB7XG4gIGNvbnN0IHBhcnRzOiBzdHJpbmdbXSA9IFtdO1xuICBmb3IgKGxldCBrZXkgb2YgT2JqZWN0LmtleXMocXVlcnkpLnNvcnQoKSkge1xuICAgIGNvbnN0IHZhbHVlID0gcXVlcnlba2V5XTtcbiAgICBrZXkgPSBlc2NhcGVVcmkoa2V5KTtcbiAgICBpZiAoQXJyYXkuaXNBcnJheSh2YWx1ZSkpIHtcbiAgICAgIGZvciAobGV0IGkgPSAwLCBpTGVuID0gdmFsdWUubGVuZ3RoOyBpIDwgaUxlbjsgaSsrKSB7XG4gICAgICAgIHBhcnRzLnB1c2goYCR7a2V5fT0ke2VzY2FwZVVyaSh2YWx1ZVtpXSl9YCk7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGxldCBxc0VudHJ5ID0ga2V5O1xuICAgICAgaWYgKHZhbHVlIHx8IHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgICBxc0VudHJ5ICs9IGA9JHtlc2NhcGVVcmkodmFsdWUpfWA7XG4gICAgICB9XG4gICAgICBwYXJ0cy5wdXNoKHFzRW50cnkpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBwYXJ0cy5qb2luKFwiJlwiKTtcbn1cbiJdfQ==
52193
52194/***/ }),
52195
52196/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js":
52197/*!**********************************************************************************************************************************!*\
52198 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js ***!
52199 \**********************************************************************************************************************************/
52200/*! exports provided: escapeUriPath */
52201/***/ (function(module, __webpack_exports__, __webpack_require__) {
52202
52203"use strict";
52204__webpack_require__.r(__webpack_exports__);
52205/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return escapeUriPath; });
52206/* 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");
52207
52208var escapeUriPath = function (uri) { return uri.split("/").map(_escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]).join("/"); };
52209//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS1wYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2VzY2FwZS11cmktcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRXpDLE1BQU0sQ0FBQyxJQUFNLGFBQWEsR0FBRyxVQUFDLEdBQVcsSUFBYSxPQUFBLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBdkMsQ0FBdUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGVzY2FwZVVyaSB9IGZyb20gXCIuL2VzY2FwZS11cmlcIjtcblxuZXhwb3J0IGNvbnN0IGVzY2FwZVVyaVBhdGggPSAodXJpOiBzdHJpbmcpOiBzdHJpbmcgPT4gdXJpLnNwbGl0KFwiL1wiKS5tYXAoZXNjYXBlVXJpKS5qb2luKFwiL1wiKTtcbiJdfQ==
52210
52211/***/ }),
52212
52213/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js":
52214/*!*****************************************************************************************************************************!*\
52215 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js ***!
52216 \*****************************************************************************************************************************/
52217/*! exports provided: escapeUri */
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__, "escapeUri", function() { return escapeUri; });
52223var escapeUri = function (uri) {
52224 // AWS percent-encodes some extra non-standard characters in a URI
52225 return encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
52226};
52227var hexEncode = function (c) { return "%" + c.charCodeAt(0).toString(16).toUpperCase(); };
52228//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lc2NhcGUtdXJpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxJQUFNLFNBQVMsR0FBRyxVQUFDLEdBQVc7SUFDbkMsa0VBQWtFO0lBQ2xFLE9BQUEsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDLFVBQVUsRUFBRSxTQUFTLENBQUM7QUFBdEQsQ0FBc0QsQ0FBQztBQUV6RCxJQUFNLFNBQVMsR0FBRyxVQUFDLENBQVMsSUFBSyxPQUFBLE1BQUksQ0FBQyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsV0FBVyxFQUFJLEVBQWhELENBQWdELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgZXNjYXBlVXJpID0gKHVyaTogc3RyaW5nKTogc3RyaW5nID0+XG4gIC8vIEFXUyBwZXJjZW50LWVuY29kZXMgc29tZSBleHRyYSBub24tc3RhbmRhcmQgY2hhcmFjdGVycyBpbiBhIFVSSVxuICBlbmNvZGVVUklDb21wb25lbnQodXJpKS5yZXBsYWNlKC9bIScoKSpdL2csIGhleEVuY29kZSk7XG5cbmNvbnN0IGhleEVuY29kZSA9IChjOiBzdHJpbmcpID0+IGAlJHtjLmNoYXJDb2RlQXQoMCkudG9TdHJpbmcoMTYpLnRvVXBwZXJDYXNlKCl9YDtcbiJdfQ==
52229
52230/***/ }),
52231
52232/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js":
52233/*!************************************************************************************************************************!*\
52234 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js ***!
52235 \************************************************************************************************************************/
52236/*! exports provided: escapeUri, escapeUriPath */
52237/***/ (function(module, __webpack_exports__, __webpack_require__) {
52238
52239"use strict";
52240__webpack_require__.r(__webpack_exports__);
52241/* 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");
52242/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return _escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]; });
52243
52244/* 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");
52245/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__["escapeUriPath"]; });
52246
52247
52248
52249//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmlcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmktcGF0aFwiO1xuIl19
52250
52251/***/ }),
52252
52253/***/ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/index.js":
52254/*!**********************************************************************************!*\
52255 !*** /root/amplify-js/node_modules/@aws-sdk/invalid-dependency/dist/es/index.js ***!
52256 \**********************************************************************************/
52257/*! exports provided: invalidFunction, invalidProvider */
52258/***/ (function(module, __webpack_exports__, __webpack_require__) {
52259
52260"use strict";
52261__webpack_require__.r(__webpack_exports__);
52262/* harmony import */ var _invalidFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./invalidFunction */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidFunction.js");
52263/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "invalidFunction", function() { return _invalidFunction__WEBPACK_IMPORTED_MODULE_0__["invalidFunction"]; });
52264
52265/* harmony import */ var _invalidProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./invalidProvider */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidProvider.js");
52266/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "invalidProvider", function() { return _invalidProvider__WEBPACK_IMPORTED_MODULE_1__["invalidProvider"]; });
52267
52268
52269
52270//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vaW52YWxpZEZ1bmN0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9pbnZhbGlkUHJvdmlkZXJcIjtcbiJdfQ==
52271
52272/***/ }),
52273
52274/***/ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidFunction.js":
52275/*!********************************************************************************************!*\
52276 !*** /root/amplify-js/node_modules/@aws-sdk/invalid-dependency/dist/es/invalidFunction.js ***!
52277 \********************************************************************************************/
52278/*! exports provided: invalidFunction */
52279/***/ (function(module, __webpack_exports__, __webpack_require__) {
52280
52281"use strict";
52282__webpack_require__.r(__webpack_exports__);
52283/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invalidFunction", function() { return invalidFunction; });
52284var invalidFunction = function (message) { return function () {
52285 throw new Error(message);
52286}; };
52287//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZEZ1bmN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludmFsaWRGdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQUcsVUFBQyxPQUFlLElBQUssT0FBQTtJQUNsRCxNQUFNLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0FBQzNCLENBQUMsRUFGbUQsQ0FFbkQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBpbnZhbGlkRnVuY3Rpb24gPSAobWVzc2FnZTogc3RyaW5nKSA9PiAoKSA9PiB7XG4gIHRocm93IG5ldyBFcnJvcihtZXNzYWdlKTtcbn07XG4iXX0=
52288
52289/***/ }),
52290
52291/***/ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidProvider.js":
52292/*!********************************************************************************************!*\
52293 !*** /root/amplify-js/node_modules/@aws-sdk/invalid-dependency/dist/es/invalidProvider.js ***!
52294 \********************************************************************************************/
52295/*! exports provided: invalidProvider */
52296/***/ (function(module, __webpack_exports__, __webpack_require__) {
52297
52298"use strict";
52299__webpack_require__.r(__webpack_exports__);
52300/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invalidProvider", function() { return invalidProvider; });
52301var invalidProvider = function (message) { return function () { return Promise.reject(message); }; };
52302//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZFByb3ZpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludmFsaWRQcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQXVDLFVBQUMsT0FBZSxJQUFLLE9BQUEsY0FBTSxPQUFBLE9BQU8sQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLEVBQXZCLENBQXVCLEVBQTdCLENBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm92aWRlciB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuZXhwb3J0IGNvbnN0IGludmFsaWRQcm92aWRlcjogKG1lc3NhZ2U6IHN0cmluZykgPT4gUHJvdmlkZXI8YW55PiA9IChtZXNzYWdlOiBzdHJpbmcpID0+ICgpID0+IFByb21pc2UucmVqZWN0KG1lc3NhZ2UpO1xuIl19
52303
52304/***/ }),
52305
52306/***/ "../../node_modules/@aws-sdk/middleware-content-length/dist/es/index.js":
52307/*!*****************************************************************************************!*\
52308 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-content-length/dist/es/index.js ***!
52309 \*****************************************************************************************/
52310/*! exports provided: contentLengthMiddleware, contentLengthMiddlewareOptions, getContentLengthPlugin */
52311/***/ (function(module, __webpack_exports__, __webpack_require__) {
52312
52313"use strict";
52314__webpack_require__.r(__webpack_exports__);
52315/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contentLengthMiddleware", function() { return contentLengthMiddleware; });
52316/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contentLengthMiddlewareOptions", function() { return contentLengthMiddlewareOptions; });
52317/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContentLengthPlugin", function() { return getContentLengthPlugin; });
52318/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52319/* 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");
52320
52321
52322var CONTENT_LENGTH_HEADER = "content-length";
52323function contentLengthMiddleware(bodyLengthChecker) {
52324 var _this = this;
52325 return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
52326 var request, body, headers, length;
52327 var _a;
52328 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52329 request = args.request;
52330 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52331 body = request.body, headers = request.headers;
52332 if (body &&
52333 Object.keys(headers)
52334 .map(function (str) { return str.toLowerCase(); })
52335 .indexOf(CONTENT_LENGTH_HEADER) === -1) {
52336 length = bodyLengthChecker(body);
52337 if (length !== undefined) {
52338 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));
52339 }
52340 }
52341 }
52342 return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))];
52343 });
52344 }); }; };
52345}
52346var contentLengthMiddlewareOptions = {
52347 step: "build",
52348 tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"],
52349 name: "contentLengthMiddleware",
52350 override: true,
52351};
52352var getContentLengthPlugin = function (options) { return ({
52353 applyToStack: function (clientStack) {
52354 clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);
52355 },
52356}); };
52357//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQVlyRCxJQUFNLHFCQUFxQixHQUFHLGdCQUFnQixDQUFDO0FBRS9DLE1BQU0sVUFBVSx1QkFBdUIsQ0FBQyxpQkFBdUM7SUFBL0UsaUJBNEJDO0lBM0JDLE9BQU8sVUFBZ0MsSUFBK0IsSUFBZ0MsT0FBQSxVQUNwRyxJQUFnQzs7OztZQUUxQixPQUFPLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQztZQUM3QixJQUFJLFdBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQUU7Z0JBQzNCLElBQUksR0FBYyxPQUFPLEtBQXJCLEVBQUUsT0FBTyxHQUFLLE9BQU8sUUFBWixDQUFhO2dCQUNsQyxJQUNFLElBQUk7b0JBQ0osTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7eUJBQ2pCLEdBQUcsQ0FBQyxVQUFDLEdBQUcsSUFBSyxPQUFBLEdBQUcsQ0FBQyxXQUFXLEVBQUUsRUFBakIsQ0FBaUIsQ0FBQzt5QkFDL0IsT0FBTyxDQUFDLHFCQUFxQixDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQ3hDO29CQUNNLE1BQU0s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ICAgICBpZiAobGVuZ3RoICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICByZXF1ZXN0LmhlYWRlcnMgPSB7XG4gICAgICAgICAgICAuLi5yZXF1ZXN0LmhlYWRlcnMsXG4gICAgICAgICAgICBbQ09OVEVOVF9MRU5HVEhfSEVBREVSXTogU3RyaW5nKGxlbmd0aCksXG4gICAgICAgICAgfTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBuZXh0KHtcbiAgICAgIC4uLmFyZ3MsXG4gICAgICByZXF1ZXN0LFxuICAgIH0pO1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgY29udGVudExlbmd0aE1pZGRsZXdhcmVPcHRpb25zOiBCdWlsZEhhbmRsZXJPcHRpb25zID0ge1xuICBzdGVwOiBcImJ1aWxkXCIsXG4gIHRhZ3M6IFtcIlNFVF9DT05URU5UX0xFTkdUSFwiLCBcIkNPTlRFTlRfTEVOR1RIXCJdLFxuICBuYW1lOiBcImNvbnRlbnRMZW5ndGhNaWRkbGV3YXJlXCIsXG4gIG92ZXJyaWRlOiB0cnVlLFxufTtcblxuZXhwb3J0IGNvbnN0IGdldENvbnRlbnRMZW5ndGhQbHVnaW4gPSAob3B0aW9uczogeyBib2R5TGVuZ3RoQ2hlY2tlcjogQm9keUxlbmd0aENhbGN1bGF0b3IgfSk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQoY29udGVudExlbmd0aE1pZGRsZXdhcmUob3B0aW9ucy5ib2R5TGVuZ3RoQ2hlY2tlciksIGNvbnRlbnRMZW5ndGhNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
52358
52359/***/ }),
52360
52361/***/ "../../node_modules/@aws-sdk/middleware-host-header/dist/es/index.js":
52362/*!**************************************************************************************!*\
52363 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-host-header/dist/es/index.js ***!
52364 \**************************************************************************************/
52365/*! exports provided: resolveHostHeaderConfig, hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin */
52366/***/ (function(module, __webpack_exports__, __webpack_require__) {
52367
52368"use strict";
52369__webpack_require__.r(__webpack_exports__);
52370/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveHostHeaderConfig", function() { return resolveHostHeaderConfig; });
52371/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostHeaderMiddleware", function() { return hostHeaderMiddleware; });
52372/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostHeaderMiddlewareOptions", function() { return hostHeaderMiddlewareOptions; });
52373/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHostHeaderPlugin", function() { return getHostHeaderPlugin; });
52374/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52375/* 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");
52376
52377
52378function resolveHostHeaderConfig(input) {
52379 return input;
52380}
52381var hostHeaderMiddleware = function (options) { return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
52382 var request, _a, handlerProtocol;
52383 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52384 if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(args.request))
52385 return [2 /*return*/, next(args)];
52386 request = args.request;
52387 _a = (options.requestHandler.metadata || {}).handlerProtocol, handlerProtocol = _a === void 0 ? "" : _a;
52388 //For H2 request, remove 'host' header and use ':authority' header instead
52389 //reference: https://nodejs.org/dist/latest-v13.x/docs/api/errors.html#ERR_HTTP2_INVALID_CONNECTION_HEADERS
52390 if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
52391 delete request.headers["host"];
52392 request.headers[":authority"] = "";
52393 //non-H2 request and 'host' header is not set, set the 'host' header to request's hostname.
52394 }
52395 else if (!request.headers["host"]) {
52396 request.headers["host"] = request.hostname;
52397 }
52398 return [2 /*return*/, next(args)];
52399 });
52400}); }; }; };
52401var hostHeaderMiddlewareOptions = {
52402 name: "hostHeaderMiddleware",
52403 step: "build",
52404 priority: "low",
52405 tags: ["HOST"],
52406 override: true,
52407};
52408var getHostHeaderPlugin = function (options) { return ({
52409 applyToStack: function (clientStack) {
52410 clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
52411 },
52412}); };
52413//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQVVyRCxNQUFNLFVBQVUsdUJBQXVCLENBQ3JDLEtBQXFEO0lBRXJELE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQUVELE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLFVBQ2xDLE9BQWlDLElBQ0UsT0FBQSxVQUFDLElBQUksSUFBSyxPQUFBLFVBQU8sSUFBSTs7O1FBQ3hELElBQUksQ0FBQyxXQUFXLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7WUFBRSxzQkFBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUM7UUFDckQsT0FBTyxHQUFLLElBQUksUUFBVCxDQUFVO1FBQ2pCLEtBQXlCLENBQUEsT0FBTyxDQUFDLGNBQWMsQ0FBQyxRQUFRLElBQUksRUFBRSxDQU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Rpb25zICYgQWJzb2x1dGVMb2NhdGlvbiA9IHtcbiAgbmFtZTogXCJob3N0SGVhZGVyTWlkZGxld2FyZVwiLFxuICBzdGVwOiBcImJ1aWxkXCIsXG4gIHByaW9yaXR5OiBcImxvd1wiLFxuICB0YWdzOiBbXCJIT1NUXCJdLFxuICBvdmVycmlkZTogdHJ1ZSxcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRIb3N0SGVhZGVyUGx1Z2luID0gKG9wdGlvbnM6IEhvc3RIZWFkZXJSZXNvbHZlZENvbmZpZyk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQoaG9zdEhlYWRlck1pZGRsZXdhcmUob3B0aW9ucyksIGhvc3RIZWFkZXJNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
52414
52415/***/ }),
52416
52417/***/ "../../node_modules/@aws-sdk/middleware-logger/dist/es/index.js":
52418/*!*********************************************************************************!*\
52419 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-logger/dist/es/index.js ***!
52420 \*********************************************************************************/
52421/*! exports provided: loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin */
52422/***/ (function(module, __webpack_exports__, __webpack_require__) {
52423
52424"use strict";
52425__webpack_require__.r(__webpack_exports__);
52426/* harmony import */ var _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./loggerMiddleware */ "../../node_modules/@aws-sdk/middleware-logger/dist/es/loggerMiddleware.js");
52427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loggerMiddleware", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__["loggerMiddleware"]; });
52428
52429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loggerMiddlewareOptions", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__["loggerMiddlewareOptions"]; });
52430
52431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLoggerPlugin", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__["getLoggerPlugin"]; });
52432
52433
52434//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2xvZ2dlck1pZGRsZXdhcmVcIjtcbiJdfQ==
52435
52436/***/ }),
52437
52438/***/ "../../node_modules/@aws-sdk/middleware-logger/dist/es/loggerMiddleware.js":
52439/*!********************************************************************************************!*\
52440 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-logger/dist/es/loggerMiddleware.js ***!
52441 \********************************************************************************************/
52442/*! exports provided: loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin */
52443/***/ (function(module, __webpack_exports__, __webpack_require__) {
52444
52445"use strict";
52446__webpack_require__.r(__webpack_exports__);
52447/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loggerMiddleware", function() { return loggerMiddleware; });
52448/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loggerMiddlewareOptions", function() { return loggerMiddlewareOptions; });
52449/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLoggerPlugin", function() { return getLoggerPlugin; });
52450/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52451
52452var loggerMiddleware = function () { return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
52453 var clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog, response, _a, $metadata, outputWithoutMetadata;
52454 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52455 switch (_b.label) {
52456 case 0:
52457 clientName = context.clientName, commandName = context.commandName, inputFilterSensitiveLog = context.inputFilterSensitiveLog, logger = context.logger, outputFilterSensitiveLog = context.outputFilterSensitiveLog;
52458 return [4 /*yield*/, next(args)];
52459 case 1:
52460 response = _b.sent();
52461 if (!logger) {
52462 return [2 /*return*/, response];
52463 }
52464 if (typeof logger.info === "function") {
52465 _a = response.output, $metadata = _a.$metadata, outputWithoutMetadata = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["$metadata"]);
52466 logger.info({
52467 clientName: clientName,
52468 commandName: commandName,
52469 input: inputFilterSensitiveLog(args.input),
52470 output: outputFilterSensitiveLog(outputWithoutMetadata),
52471 metadata: $metadata,
52472 });
52473 }
52474 return [2 /*return*/, response];
52475 }
52476 });
52477}); }; }; };
52478var loggerMiddlewareOptions = {
52479 name: "loggerMiddleware",
52480 tags: ["LOGGER"],
52481 step: "initialize",
52482 override: true,
52483};
52484// eslint-disable-next-line @typescript-eslint/no-unused-vars
52485var getLoggerPlugin = function (options) { return ({
52486 applyToStack: function (clientStack) {
52487 clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
52488 },
52489}); };
52490//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dnZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFZQSxNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyxjQUFNLE9BQUEsVUFDcEMsSUFBb0MsRUFDcEMsT0FBZ0MsSUFDRyxPQUFBLFVBQ25DLElBQXFDOzs7OztnQkFFN0IsVUFBVSxHQUE2RSxPQUFPLFdBQXBGLE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nZXJQbHVnaW4gPSAob3B0aW9uczogYW55KTogUGx1Z2dhYmxlPGFueSwgYW55PiA9PiAoe1xuICBhcHBseVRvU3RhY2s6IChjbGllbnRTdGFjaykgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChsb2dnZXJNaWRkbGV3YXJlKCksIGxvZ2dlck1pZGRsZXdhcmVPcHRpb25zKTtcbiAgfSxcbn0pO1xuIl19
52491
52492/***/ }),
52493
52494/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/configurations.js":
52495/*!*****************************************************************************************!*\
52496 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/configurations.js ***!
52497 \*****************************************************************************************/
52498/*! 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 */
52499/***/ (function(module, __webpack_exports__, __webpack_require__) {
52500
52501"use strict";
52502__webpack_require__.r(__webpack_exports__);
52503/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENV_MAX_ATTEMPTS", function() { return ENV_MAX_ATTEMPTS; });
52504/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONFIG_MAX_ATTEMPTS", function() { return CONFIG_MAX_ATTEMPTS; });
52505/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_MAX_ATTEMPT_CONFIG_OPTIONS", function() { return NODE_MAX_ATTEMPT_CONFIG_OPTIONS; });
52506/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveRetryConfig", function() { return resolveRetryConfig; });
52507/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENV_RETRY_MODE", function() { return ENV_RETRY_MODE; });
52508/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONFIG_RETRY_MODE", function() { return CONFIG_RETRY_MODE; });
52509/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_RETRY_MODE_CONFIG_OPTIONS", function() { return NODE_RETRY_MODE_CONFIG_OPTIONS; });
52510/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52511/* harmony import */ var _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultStrategy */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js");
52512
52513
52514var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
52515var CONFIG_MAX_ATTEMPTS = "max_attempts";
52516var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
52517 environmentVariableSelector: function (env) {
52518 var value = env[ENV_MAX_ATTEMPTS];
52519 if (!value)
52520 return undefined;
52521 var maxAttempt = parseInt(value);
52522 if (Number.isNaN(maxAttempt)) {
52523 throw new Error("Environment variable " + ENV_MAX_ATTEMPTS + " mast be a number, got \"" + value + "\"");
52524 }
52525 return maxAttempt;
52526 },
52527 configFileSelector: function (profile) {
52528 var value = profile[CONFIG_MAX_ATTEMPTS];
52529 if (!value)
52530 return undefined;
52531 var maxAttempt = parseInt(value);
52532 if (Number.isNaN(maxAttempt)) {
52533 throw new Error("Shared config file entry " + CONFIG_MAX_ATTEMPTS + " mast be a number, got \"" + value + "\"");
52534 }
52535 return maxAttempt;
52536 },
52537 default: _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_MAX_ATTEMPTS"],
52538};
52539var resolveRetryConfig = function (input) {
52540 var maxAttempts = normalizeMaxAttempts(input.maxAttempts);
52541 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) });
52542};
52543var normalizeMaxAttempts = function (maxAttempts) {
52544 if (maxAttempts === void 0) { maxAttempts = _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_MAX_ATTEMPTS"]; }
52545 if (typeof maxAttempts === "number") {
52546 var promisified_1 = Promise.resolve(maxAttempts);
52547 return function () { return promisified_1; };
52548 }
52549 return maxAttempts;
52550};
52551var ENV_RETRY_MODE = "AWS_RETRY_MODE";
52552var CONFIG_RETRY_MODE = "retry_mode";
52553var NODE_RETRY_MODE_CONFIG_OPTIONS = {
52554 environmentVariableSelector: function (env) { return env[ENV_RETRY_MODE]; },
52555 configFileSelector: function (profile) { return profile[CONFIG_RETRY_MODE]; },
52556 default: _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_RETRY_MODE"],
52557};
52558//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxrQkFBa0IsRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRXBHLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLGtCQUFrQixDQUFDO0FBQ25ELE1BQU0sQ0FBQyxJQUFNLG1CQUFtQixHQUFHLGNBQWMsQ0FBQztBQUVsRCxNQUFNLENBQUMsSUFBTSwrQkFBK0IsR0FBa0M7SUFDNUUsMkJBQTJCLEVBQUUsVUFBQyxHQUFHO1FBQy9CLElBQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQ3BDLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxTQUFTLENBQUM7UUFDN0IsSUFBTSxVQUFVLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQU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ZGFyZFJldHJ5U3RyYXRlZ3kobWF4QXR0ZW1wdHMpLFxuICB9O1xufTtcblxuY29uc3Qgbm9ybWFsaXplTWF4QXR0ZW1wdHMgPSAobWF4QXR0ZW1wdHM6IG51bWJlciB8IFByb3ZpZGVyPG51bWJlcj4gPSBERUZBVUxUX01BWF9BVFRFTVBUUyk6IFByb3ZpZGVyPG51bWJlcj4gPT4ge1xuICBpZiAodHlwZW9mIG1heEF0dGVtcHRzID09PSBcIm51bWJlclwiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUobWF4QXR0ZW1wdHMpO1xuICAgIHJldHVybiAoKSA9PiBwcm9taXNpZmllZDtcbiAgfVxuICByZXR1cm4gbWF4QXR0ZW1wdHM7XG59O1xuXG5leHBvcnQgY29uc3QgRU5WX1JFVFJZX01PREUgPSBcIkFXU19SRVRSWV9NT0RFXCI7XG5leHBvcnQgY29uc3QgQ09ORklHX1JFVFJZX01PREUgPSBcInJldHJ5X21vZGVcIjtcblxuZXhwb3J0IGNvbnN0IE5PREVfUkVUUllfTU9ERV9DT05GSUdfT1BUSU9OUzogTG9hZGVkQ29uZmlnU2VsZWN0b3JzPHN0cmluZz4gPSB7XG4gIGVudmlyb25tZW50VmFyaWFibGVTZWxlY3RvcjogKGVudikgPT4gZW52W0VOVl9SRVRSWV9NT0RFXSxcbiAgY29uZmlnRmlsZVNlbGVjdG9yOiAocHJvZmlsZSkgPT4gcHJvZmlsZVtDT05GSUdfUkVUUllfTU9ERV0sXG4gIGRlZmF1bHQ6IERFRkFVTFRfUkVUUllfTU9ERSxcbn07XG4iXX0=
52559
52560/***/ }),
52561
52562/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js":
52563/*!************************************************************************************!*\
52564 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/constants.js ***!
52565 \************************************************************************************/
52566/*! 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 */
52567/***/ (function(module, __webpack_exports__, __webpack_require__) {
52568
52569"use strict";
52570__webpack_require__.r(__webpack_exports__);
52571/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_DELAY_BASE", function() { return DEFAULT_RETRY_DELAY_BASE; });
52572/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAXIMUM_RETRY_DELAY", function() { return MAXIMUM_RETRY_DELAY; });
52573/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "THROTTLING_RETRY_DELAY_BASE", function() { return THROTTLING_RETRY_DELAY_BASE; });
52574/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INITIAL_RETRY_TOKENS", function() { return INITIAL_RETRY_TOKENS; });
52575/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RETRY_COST", function() { return RETRY_COST; });
52576/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TIMEOUT_RETRY_COST", function() { return TIMEOUT_RETRY_COST; });
52577/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_RETRY_INCREMENT", function() { return NO_RETRY_INCREMENT; });
52578/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INVOCATION_ID_HEADER", function() { return INVOCATION_ID_HEADER; });
52579/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REQUEST_HEADER", function() { return REQUEST_HEADER; });
52580/**
52581 * The base number of milliseconds to use in calculating a suitable cool-down
52582 * time when a retryable error is encountered.
52583 */
52584var DEFAULT_RETRY_DELAY_BASE = 100;
52585/**
52586 * The maximum amount of time (in milliseconds) that will be used as a delay
52587 * between retry attempts.
52588 */
52589var MAXIMUM_RETRY_DELAY = 20 * 1000;
52590/**
52591 * The retry delay base (in milliseconds) to use when a throttling error is
52592 * encountered.
52593 */
52594var THROTTLING_RETRY_DELAY_BASE = 500;
52595/**
52596 * Initial number of retry tokens in Retry Quota
52597 */
52598var INITIAL_RETRY_TOKENS = 500;
52599/**
52600 * The total amount of retry tokens to be decremented from retry token balance.
52601 */
52602var RETRY_COST = 5;
52603/**
52604 * The total amount of retry tokens to be decremented from retry token balance
52605 * when a throttling error is encountered.
52606 */
52607var TIMEOUT_RETRY_COST = 10;
52608/**
52609 * The total amount of retry token to be incremented from retry token balance
52610 * if an SDK operation invocation succeeds without requiring a retry request.
52611 */
52612var NO_RETRY_INCREMENT = 1;
52613/**
52614 * Header name for SDK invocation ID
52615 */
52616var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
52617/**
52618 * Header name for request retry information.
52619 */
52620var REQUEST_HEADER = "amz-sdk-request";
52621//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSx3QkFBd0IsR0FBRyxHQUFHLENBQUM7QUFFNUM7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsRUFBRSxHQUFHLElBQUksQ0FBQztBQUU3Qzs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSwyQkFBMkIsR0FBRyxHQUFHLENBQUM7QUFFL0M7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxHQUFHLENBQUM7QUFFeEM7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxVQUFVLEdBQUcsQ0FBQyxDQUFDO0FBRTVCOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxJQUFNLGtCQUFrQixHQUFHLEVBQUUsQ0FBQztBQUVyQzs7O0dBR0c7QUFDS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ZXRyeSB0b2tlbnMgdG8gYmUgZGVjcmVtZW50ZWQgZnJvbSByZXRyeSB0b2tlbiBiYWxhbmNlLlxuICovXG5leHBvcnQgY29uc3QgUkVUUllfQ09TVCA9IDU7XG5cbi8qKlxuICogVGhlIHRvdGFsIGFtb3VudCBvZiByZXRyeSB0b2tlbnMgdG8gYmUgZGVjcmVtZW50ZWQgZnJvbSByZXRyeSB0b2tlbiBiYWxhbmNlXG4gKiB3aGVuIGEgdGhyb3R0bGluZyBlcnJvciBpcyBlbmNvdW50ZXJlZC5cbiAqL1xuZXhwb3J0IGNvbnN0IFRJTUVPVVRfUkVUUllfQ09TVCA9IDEwO1xuXG4vKipcbiAqIFRoZSB0b3RhbCBhbW91bnQgb2YgcmV0cnkgdG9rZW4gdG8gYmUgaW5jcmVtZW50ZWQgZnJvbSByZXRyeSB0b2tlbiBiYWxhbmNlXG4gKiBpZiBhbiBTREsgb3BlcmF0aW9uIGludm9jYXRpb24gc3VjY2VlZHMgd2l0aG91dCByZXF1aXJpbmcgYSByZXRyeSByZXF1ZXN0LlxuICovXG5leHBvcnQgY29uc3QgTk9fUkVUUllfSU5DUkVNRU5UID0gMTtcblxuLyoqXG4gKiBIZWFkZXIgbmFtZSBmb3IgU0RLIGludm9jYXRpb24gSURcbiAqL1xuZXhwb3J0IGNvbnN0IElOVk9DQVRJT05fSURfSEVBREVSID0gXCJhbXotc2RrLWludm9jYXRpb24taWRcIjtcblxuLyoqXG4gKiBIZWFkZXIgbmFtZSBmb3IgcmVxdWVzdCByZXRyeSBpbmZvcm1hdGlvbi5cbiAqL1xuZXhwb3J0IGNvbnN0IFJFUVVFU1RfSEVBREVSID0gXCJhbXotc2RrLXJlcXVlc3RcIjtcbiJdfQ==
52622
52623/***/ }),
52624
52625/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultRetryQuota.js":
52626/*!********************************************************************************************!*\
52627 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/defaultRetryQuota.js ***!
52628 \********************************************************************************************/
52629/*! exports provided: getDefaultRetryQuota */
52630/***/ (function(module, __webpack_exports__, __webpack_require__) {
52631
52632"use strict";
52633__webpack_require__.r(__webpack_exports__);
52634/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultRetryQuota", function() { return getDefaultRetryQuota; });
52635/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52636
52637var getDefaultRetryQuota = function (initialRetryTokens) {
52638 var MAX_CAPACITY = initialRetryTokens;
52639 var availableCapacity = initialRetryTokens;
52640 var getCapacityAmount = function (error) { return (error.name === "TimeoutError" ? _constants__WEBPACK_IMPORTED_MODULE_0__["TIMEOUT_RETRY_COST"] : _constants__WEBPACK_IMPORTED_MODULE_0__["RETRY_COST"]); };
52641 var hasRetryTokens = function (error) { return getCapacityAmount(error) <= availableCapacity; };
52642 var retrieveRetryTokens = function (error) {
52643 if (!hasRetryTokens(error)) {
52644 // retryStrategy should stop retrying, and return last error
52645 throw new Error("No retry token available");
52646 }
52647 var capacityAmount = getCapacityAmount(error);
52648 availableCapacity -= capacityAmount;
52649 return capacityAmount;
52650 };
52651 var releaseRetryTokens = function (capacityReleaseAmount) {
52652 availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : _constants__WEBPACK_IMPORTED_MODULE_0__["NO_RETRY_INCREMENT"];
52653 availableCapacity = Math.min(availableCapacity, MAX_CAPACITY);
52654 };
52655 return Object.freeze({
52656 hasRetryTokens: hasRetryTokens,
52657 retrieveRetryTokens: retrieveRetryTokens,
52658 releaseRetryTokens: releaseRetryTokens,
52659 });
52660};
52661//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdFJldHJ5UXVvdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVmYXVsdFJ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jb25zdCByZXRyaWV2ZVJldHJ5VG9rZW5zID0gKGVycm9yOiBTZGtFcnJvcikgPT4ge1xuICAgIGlmICghaGFzUmV0cnlUb2tlbnMoZXJyb3IpKSB7XG4gICAgICAvLyByZXRyeVN0cmF0ZWd5IHNob3VsZCBzdG9wIHJldHJ5aW5nLCBhbmQgcmV0dXJuIGxhc3QgZXJyb3JcbiAgICAgIHRocm93IG5ldyBFcnJvcihcIk5vIHJldHJ5IHRva2VuIGF2YWlsYWJsZVwiKTtcbiAgICB9XG4gICAgY29uc3QgY2FwYWNpdHlBbW91bnQgPSBnZXRDYXBhY2l0eUFtb3VudChlcnJvcik7XG4gICAgYXZhaWxhYmxlQ2FwYWNpdHkgLT0gY2FwYWNpdHlBbW91bnQ7XG4gICAgcmV0dXJuIGNhcGFjaXR5QW1vdW50O1xuICB9O1xuXG4gIGNvbnN0IHJlbGVhc2VSZXRyeVRva2VucyA9IChjYXBhY2l0eVJlbGVhc2VBbW91bnQ/OiBudW1iZXIpID0+IHtcbiAgICBhdmFpbGFibGVDYXBhY2l0eSArPSBjYXBhY2l0eVJlbGVhc2VBbW91bnQgPz8gTk9fUkVUUllfSU5DUkVNRU5UO1xuICAgIGF2YWlsYWJsZUNhcGFjaXR5ID0gTWF0aC5taW4oYXZhaWxhYmxlQ2FwYWNpdHksIE1BWF9DQVBBQ0lUWSk7XG4gIH07XG5cbiAgcmV0dXJuIE9iamVjdC5mcmVlemUoe1xuICAgIGhhc1JldHJ5VG9rZW5zLFxuICAgIHJldHJpZXZlUmV0cnlUb2tlbnMsXG4gICAgcmVsZWFzZVJldHJ5VG9rZW5zLFxuICB9KTtcbn07XG4iXX0=
52662
52663/***/ }),
52664
52665/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js":
52666/*!******************************************************************************************!*\
52667 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js ***!
52668 \******************************************************************************************/
52669/*! exports provided: DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, StandardRetryStrategy */
52670/***/ (function(module, __webpack_exports__, __webpack_require__) {
52671
52672"use strict";
52673__webpack_require__.r(__webpack_exports__);
52674/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MAX_ATTEMPTS", function() { return DEFAULT_MAX_ATTEMPTS; });
52675/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_MODE", function() { return DEFAULT_RETRY_MODE; });
52676/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandardRetryStrategy", function() { return StandardRetryStrategy; });
52677/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52678/* 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");
52679/* 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");
52680/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
52681/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
52682/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52683/* harmony import */ var _defaultRetryQuota__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./defaultRetryQuota */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultRetryQuota.js");
52684/* harmony import */ var _delayDecider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./delayDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js");
52685/* harmony import */ var _retryDecider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./retryDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js");
52686
52687
52688
52689
52690
52691
52692
52693
52694/**
52695 * The default value for how many HTTP requests an SDK should make for a
52696 * single SDK operation invocation before giving up
52697 */
52698var DEFAULT_MAX_ATTEMPTS = 3;
52699/**
52700 * The default retry algorithm to use.
52701 */
52702var DEFAULT_RETRY_MODE = "standard";
52703var StandardRetryStrategy = /** @class */ (function () {
52704 function StandardRetryStrategy(maxAttemptsProvider, options) {
52705 var _a, _b, _c;
52706 this.maxAttemptsProvider = maxAttemptsProvider;
52707 this.mode = DEFAULT_RETRY_MODE;
52708 this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : _retryDecider__WEBPACK_IMPORTED_MODULE_7__["defaultRetryDecider"];
52709 this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : _delayDecider__WEBPACK_IMPORTED_MODULE_6__["defaultDelayDecider"];
52710 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"]);
52711 }
52712 StandardRetryStrategy.prototype.shouldRetry = function (error, attempts, maxAttempts) {
52713 return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);
52714 };
52715 StandardRetryStrategy.prototype.getMaxAttempts = function () {
52716 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52717 var maxAttempts, error_1;
52718 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52719 switch (_a.label) {
52720 case 0:
52721 _a.trys.push([0, 2, , 3]);
52722 return [4 /*yield*/, this.maxAttemptsProvider()];
52723 case 1:
52724 maxAttempts = _a.sent();
52725 return [3 /*break*/, 3];
52726 case 2:
52727 error_1 = _a.sent();
52728 maxAttempts = DEFAULT_MAX_ATTEMPTS;
52729 return [3 /*break*/, 3];
52730 case 3: return [2 /*return*/, maxAttempts];
52731 }
52732 });
52733 });
52734 };
52735 StandardRetryStrategy.prototype.retry = function (next, args) {
52736 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52737 var retryTokenAmount, attempts, totalDelay, maxAttempts, request, _loop_1, this_1, state_1;
52738 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52739 switch (_a.label) {
52740 case 0:
52741 attempts = 0;
52742 totalDelay = 0;
52743 return [4 /*yield*/, this.getMaxAttempts()];
52744 case 1:
52745 maxAttempts = _a.sent();
52746 request = args.request;
52747 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52748 request.headers[_constants__WEBPACK_IMPORTED_MODULE_4__["INVOCATION_ID_HEADER"]] = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v4"])();
52749 }
52750 _loop_1 = function () {
52751 var _a, response, output, err_1, delay_1;
52752 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52753 switch (_b.label) {
52754 case 0:
52755 _b.trys.push([0, 2, , 5]);
52756 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52757 request.headers[_constants__WEBPACK_IMPORTED_MODULE_4__["REQUEST_HEADER"]] = "attempt=" + (attempts + 1) + "; max=" + maxAttempts;
52758 }
52759 return [4 /*yield*/, next(args)];
52760 case 1:
52761 _a = _b.sent(), response = _a.response, output = _a.output;
52762 this_1.retryQuota.releaseRetryTokens(retryTokenAmount);
52763 output.$metadata.attempts = attempts + 1;
52764 output.$metadata.totalRetryDelay = totalDelay;
52765 return [2 /*return*/, { value: { response: response, output: output } }];
52766 case 2:
52767 err_1 = _b.sent();
52768 attempts++;
52769 if (!this_1.shouldRetry(err_1, attempts, maxAttempts)) return [3 /*break*/, 4];
52770 retryTokenAmount = this_1.retryQuota.retrieveRetryTokens(err_1);
52771 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);
52772 totalDelay += delay_1;
52773 return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, delay_1); })];
52774 case 3:
52775 _b.sent();
52776 return [2 /*return*/, "continue"];
52777 case 4:
52778 if (!err_1.$metadata) {
52779 err_1.$metadata = {};
52780 }
52781 err_1.$metadata.attempts = attempts;
52782 err_1.$metadata.totalRetryDelay = totalDelay;
52783 throw err_1;
52784 case 5: return [2 /*return*/];
52785 }
52786 });
52787 };
52788 this_1 = this;
52789 _a.label = 2;
52790 case 2:
52791 if (false) {}
52792 return [5 /*yield**/, _loop_1()];
52793 case 3:
52794 state_1 = _a.sent();
52795 if (typeof state_1 === "object")
52796 return [2 /*return*/, state_1.value];
52797 return [3 /*break*/, 2];
52798 case 4: return [2 /*return*/];
52799 }
52800 });
52801 });
52802 };
52803 return StandardRetryStrategy;
52804}());
52805
52806//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdFN0cmF0ZWd5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlZmF1bHRTdHJhdGVneS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0F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Jlc29sdmUpID0+IHNldFRpbWVvdXQocmVzb2x2ZSwgZGVsYXkpKTtcbiAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghZXJyLiRtZXRhZGF0YSkge1xuICAgICAgICAgIGVyci4kbWV0YWRhdGEgPSB7fTtcbiAgICAgICAgfVxuXG4gICAgICAgIGVyci4kbWV0YWRhdGEuYXR0ZW1wdHMgPSBhdHRlbXB0cztcbiAgICAgICAgZXJyLiRtZXRhZGF0YS50b3RhbFJldHJ5RGVsYXkgPSB0b3RhbERlbGF5O1xuICAgICAgICB0aHJvdyBlcnI7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=
52807
52808/***/ }),
52809
52810/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js":
52811/*!***************************************************************************************!*\
52812 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js ***!
52813 \***************************************************************************************/
52814/*! exports provided: defaultDelayDecider */
52815/***/ (function(module, __webpack_exports__, __webpack_require__) {
52816
52817"use strict";
52818__webpack_require__.r(__webpack_exports__);
52819/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultDelayDecider", function() { return defaultDelayDecider; });
52820/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52821
52822/**
52823 * Calculate a capped, fully-jittered exponential backoff time.
52824 */
52825var defaultDelayDecider = function (delayBase, attempts) {
52826 return Math.floor(Math.min(_constants__WEBPACK_IMPORTED_MODULE_0__["MAXIMUM_RETRY_DELAY"], Math.random() * Math.pow(2, attempts) * delayBase));
52827};
52828//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsYXlEZWNpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlbGF5RGVjaWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFbEQ7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxtQkFBbUIsR0FBRyxVQUFDLFNBQWlCLEVBQUUsUUFBZ0I7SUFDckUsT0FBQSxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsbUJBQW1CLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLFNBQUEsQ0FBQyxFQUFJLFFBQVEsQ0FBQSxHQUFHLFNBQVMsQ0FBQyxDQUFDO0FBQXBGLENBQW9GLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNQVhJTVVNX1JFVFJZX0RFTEFZIH0gZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5cbi8qKlxuICogQ2FsY3VsYXRlIGEgY2FwcGVkLCBmdWxseS1qaXR0ZXJlZCBleHBvbmVudGlhbCBiYWNrb2ZmIHRpbWUuXG4gKi9cbmV4cG9ydCBjb25zdCBkZWZhdWx0RGVsYXlEZWNpZGVyID0gKGRlbGF5QmFzZTogbnVtYmVyLCBhdHRlbXB0czogbnVtYmVyKSA9PlxuICBNYXRoLmZsb29yKE1hdGgubWluKE1BWElNVU1fUkVUUllfREVMQVksIE1hdGgucmFuZG9tKCkgKiAyICoqIGF0dGVtcHRzICogZGVsYXlCYXNlKSk7XG4iXX0=
52829
52830/***/ }),
52831
52832/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js":
52833/*!********************************************************************************!*\
52834 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/index.js ***!
52835 \********************************************************************************/
52836/*! 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 */
52837/***/ (function(module, __webpack_exports__, __webpack_require__) {
52838
52839"use strict";
52840__webpack_require__.r(__webpack_exports__);
52841/* harmony import */ var _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./retryMiddleware */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryMiddleware.js");
52842/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryMiddleware", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["retryMiddleware"]; });
52843
52844/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryMiddlewareOptions", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["retryMiddlewareOptions"]; });
52845
52846/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getRetryPlugin", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["getRetryPlugin"]; });
52847
52848/* harmony import */ var _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./omitRetryHeadersMiddleware */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/omitRetryHeadersMiddleware.js");
52849/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddleware", function() { return _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__["omitRetryHeadersMiddleware"]; });
52850
52851/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddlewareOptions", function() { return _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__["omitRetryHeadersMiddlewareOptions"]; });
52852
52853/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getOmitRetryHeadersPlugin", function() { return _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__["getOmitRetryHeadersPlugin"]; });
52854
52855/* harmony import */ var _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./defaultStrategy */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js");
52856/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MAX_ATTEMPTS", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_MAX_ATTEMPTS"]; });
52857
52858/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_MODE", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_RETRY_MODE"]; });
52859
52860/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StandardRetryStrategy", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__["StandardRetryStrategy"]; });
52861
52862/* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configurations */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/configurations.js");
52863/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ENV_MAX_ATTEMPTS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["ENV_MAX_ATTEMPTS"]; });
52864
52865/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONFIG_MAX_ATTEMPTS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["CONFIG_MAX_ATTEMPTS"]; });
52866
52867/* 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"]; });
52868
52869/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveRetryConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["resolveRetryConfig"]; });
52870
52871/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ENV_RETRY_MODE", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["ENV_RETRY_MODE"]; });
52872
52873/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONFIG_RETRY_MODE", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["CONFIG_RETRY_MODE"]; });
52874
52875/* 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"]; });
52876
52877/* harmony import */ var _delayDecider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./delayDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js");
52878/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultDelayDecider", function() { return _delayDecider__WEBPACK_IMPORTED_MODULE_4__["defaultDelayDecider"]; });
52879
52880/* harmony import */ var _retryDecider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./retryDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js");
52881/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultRetryDecider", function() { return _retryDecider__WEBPACK_IMPORTED_MODULE_5__["defaultRetryDecider"]; });
52882
52883
52884
52885
52886
52887
52888
52889//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9yZXRyeU1pZGRsZXdhcmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL29taXRSZXRyeUhlYWRlcnNNaWRkbGV3YXJlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWZhdWx0U3RyYXRlZ3lcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbmZpZ3VyYXRpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWxheURlY2lkZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3JldHJ5RGVjaWRlclwiO1xuIl19
52890
52891/***/ }),
52892
52893/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/omitRetryHeadersMiddleware.js":
52894/*!*****************************************************************************************************!*\
52895 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/omitRetryHeadersMiddleware.js ***!
52896 \*****************************************************************************************************/
52897/*! exports provided: omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions, getOmitRetryHeadersPlugin */
52898/***/ (function(module, __webpack_exports__, __webpack_require__) {
52899
52900"use strict";
52901__webpack_require__.r(__webpack_exports__);
52902/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddleware", function() { return omitRetryHeadersMiddleware; });
52903/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddlewareOptions", function() { return omitRetryHeadersMiddlewareOptions; });
52904/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOmitRetryHeadersPlugin", function() { return getOmitRetryHeadersPlugin; });
52905/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52906/* 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");
52907/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52908
52909
52910
52911var omitRetryHeadersMiddleware = function () { return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
52912 var request;
52913 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52914 request = args.request;
52915 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52916 delete request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["INVOCATION_ID_HEADER"]];
52917 delete request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["REQUEST_HEADER"]];
52918 }
52919 return [2 /*return*/, next(args)];
52920 });
52921}); }; }; };
52922var omitRetryHeadersMiddlewareOptions = {
52923 name: "omitRetryHeadersMiddleware",
52924 tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"],
52925 relation: "before",
52926 toMiddleware: "awsAuthMiddleware",
52927 override: true,
52928};
52929var getOmitRetryHeadersPlugin = function (options) { return ({
52930 applyToStack: function (clientStack) {
52931 clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);
52932 },
52933}); };
52934//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib21pdFJldHJ5SGVhZGVyc01pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb21pdFJldHJ5SGVhZGVyc01pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQV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nM6IFJlbGF0aXZlTWlkZGxld2FyZU9wdGlvbnMgPSB7XG4gIG5hbWU6IFwib21pdFJldHJ5SGVhZGVyc01pZGRsZXdhcmVcIixcbiAgdGFnczogW1wiUkVUUllcIiwgXCJIRUFERVJTXCIsIFwiT01JVF9SRVRSWV9IRUFERVJTXCJdLFxuICByZWxhdGlvbjogXCJiZWZvcmVcIixcbiAgdG9NaWRkbGV3YXJlOiBcImF3c0F1dGhNaWRkbGV3YXJlXCIsXG4gIG92ZXJyaWRlOiB0cnVlLFxufTtcblxuZXhwb3J0IGNvbnN0IGdldE9taXRSZXRyeUhlYWRlcnNQbHVnaW4gPSAob3B0aW9uczogdW5rbm93bik6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGRSZWxhdGl2ZVRvKG9taXRSZXRyeUhlYWRlcnNNaWRkbGV3YXJlKCksIG9taXRSZXRyeUhlYWRlcnNNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
52935
52936/***/ }),
52937
52938/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js":
52939/*!***************************************************************************************!*\
52940 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js ***!
52941 \***************************************************************************************/
52942/*! exports provided: defaultRetryDecider */
52943/***/ (function(module, __webpack_exports__, __webpack_require__) {
52944
52945"use strict";
52946__webpack_require__.r(__webpack_exports__);
52947/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRetryDecider", function() { return defaultRetryDecider; });
52948/* 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");
52949
52950var defaultRetryDecider = function (error) {
52951 if (!error) {
52952 return false;
52953 }
52954 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);
52955};
52956//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnlEZWNpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JldHJ5RGVjaWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsZ0JBQWdCLEVBQ2hCLGtCQUFrQixFQUNsQixpQkFBaUIsRUFDakIsZ0JBQWdCLEdBQ2pCLE1BQU0sdUNBQXVDLENBQUM7QUFHL0MsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsVUFBQyxLQUFlO0lBQ2pELElBQUksQ0FBQyxLQUFLLEVBQUU7UUFDVixPQUFPLEtBQUssQ0FBQztLQUNkO0lBRUQsT0FBTyxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsSUFBSSxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsSUFBSSxpQkFBaUIsQ0FBQyxLQUFLLENBQUMsSUFBSSxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUNySCxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBpc0Nsb2NrU2tld0Vycm9yLFxuICBpc1JldHJ5YWJsZUJ5VHJhaXQsXG4gIGlzVGhyb3R0bGluZ0Vycm9yLFxuICBpc1RyYW5zaWVudEVycm9yLFxufSBmcm9tIFwiQGF3cy1zZGsvc2VydmljZS1lcnJvci1jbGFzc2lmaWNhdGlvblwiO1xuaW1wb3J0IHsgU2RrRXJyb3IgfSBmcm9tIFwiQGF3cy1zZGsvc21pdGh5LWNsaWVudFwiO1xuXG5leHBvcnQgY29uc3QgZGVmYXVsdFJldHJ5RGVjaWRlciA9IChlcnJvcjogU2RrRXJyb3IpID0+IHtcbiAgaWYgKCFlcnJvcikge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIHJldHVybiBpc1JldHJ5YWJsZUJ5VHJhaXQoZXJyb3IpIHx8IGlzQ2xvY2tTa2V3RXJyb3IoZXJyb3IpIHx8IGlzVGhyb3R0bGluZ0Vycm9yKGVycm9yKSB8fCBpc1RyYW5zaWVudEVycm9yKGVycm9yKTtcbn07XG4iXX0=
52957
52958/***/ }),
52959
52960/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryMiddleware.js":
52961/*!******************************************************************************************!*\
52962 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/retryMiddleware.js ***!
52963 \******************************************************************************************/
52964/*! exports provided: retryMiddleware, retryMiddlewareOptions, getRetryPlugin */
52965/***/ (function(module, __webpack_exports__, __webpack_require__) {
52966
52967"use strict";
52968__webpack_require__.r(__webpack_exports__);
52969/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retryMiddleware", function() { return retryMiddleware; });
52970/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retryMiddlewareOptions", function() { return retryMiddlewareOptions; });
52971/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRetryPlugin", function() { return getRetryPlugin; });
52972/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52973
52974var 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 () {
52975 var _a;
52976 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52977 if ((_a = options === null || options === void 0 ? void 0 : options.retryStrategy) === null || _a === void 0 ? void 0 : _a.mode)
52978 context.userAgent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])((context.userAgent || []), [["cfg/retry-mode", options.retryStrategy.mode]]);
52979 return [2 /*return*/, options.retryStrategy.retry(next, args)];
52980 });
52981}); }; }; };
52982var retryMiddlewareOptions = {
52983 name: "retryMiddleware",
52984 tags: ["RETRY"],
52985 step: "finalizeRequest",
52986 priority: "high",
52987 override: true,
52988};
52989var getRetryPlugin = function (options) { return ({
52990 applyToStack: function (clientStack) {
52991 clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
52992 },
52993}); };
52994//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnlNaWRkbGV3YXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JldHJ5TWlkZGxld2FyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBYUEsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLFVBQUMsT0FBNEIsSUFBSyxPQUFBLFVBQy9ELElBQWtDLEVBQ2xDLE9BQWdDLElBQ0MsT0FBQSxVQUNqQyxJQUFtQzs7O1FBRW5DLFVBQUksT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLGFBQWEsMENBQUUsSUFBSTtZQUM5QixPQUFPLENBQUMsU0FBUyxZQUFPLENBQUMsT0FBTyxDQUFDLFNBQVMsSUFBSSxFQUFFLENBQUMsR0FBRSxDQUFDLGdCQUFnQixFQUFFLE9BQU8sQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLEVBQUMsQ0FBQztRQUNyRyxzQkFBTyxPQUFPLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLEVBQUM7O0tBQ2hELEVBTmtDLENBTWxDLEVBVGdFLENBU2hFLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTS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Il19
52995
52996/***/ }),
52997
52998/***/ "../../node_modules/@aws-sdk/middleware-serde/dist/es/deserializerMiddleware.js":
52999/*!*************************************************************************************************!*\
53000 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/deserializerMiddleware.js ***!
53001 \*************************************************************************************************/
53002/*! exports provided: deserializerMiddleware */
53003/***/ (function(module, __webpack_exports__, __webpack_require__) {
53004
53005"use strict";
53006__webpack_require__.r(__webpack_exports__);
53007/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddleware", function() { return deserializerMiddleware; });
53008/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53009
53010var 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 () {
53011 var response, parsed;
53012 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53013 switch (_a.label) {
53014 case 0: return [4 /*yield*/, next(args)];
53015 case 1:
53016 response = (_a.sent()).response;
53017 return [4 /*yield*/, deserializer(response, options)];
53018 case 2:
53019 parsed = _a.sent();
53020 return [2 /*return*/, {
53021 response: response,
53022 output: parsed,
53023 }];
53024 }
53025 });
53026}); }; }; };
53027//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzZXJpYWxpemVyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXNlcmlhbGl6ZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFTQSxNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBRyxVQUNwQyxPQUFxQixFQUNyQixZQUEwRCxJQUNqQixPQUFBLFVBQ3pDLElBQXVDLEVBQ3ZDLE9BQWdDLElBQ00sT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vbkNvbnRleHRcbik6IERlc2VyaWFsaXplSGFuZGxlcjxJbnB1dCwgT3V0cHV0PiA9PiBhc3luYyAoXG4gIGFyZ3M6IERlc2VyaWFsaXplSGFuZGxlckFyZ3VtZW50czxJbnB1dD5cbik6IFByb21pc2U8RGVzZXJpYWxpemVIYW5kbGVyT3V0cHV0PE91dHB1dD4+ID0+IHtcbiAgY29uc3QgeyByZXNwb25zZSB9ID0gYXdhaXQgbmV4dChhcmdzKTtcbiAgY29uc3QgcGFyc2VkID0gYXdhaXQgZGVzZXJpYWxpemVyKHJlc3BvbnNlLCBvcHRpb25zKTtcbiAgcmV0dXJuIHtcbiAgICByZXNwb25zZSxcbiAgICBvdXRwdXQ6IHBhcnNlZCBhcyBPdXRwdXQsXG4gIH07XG59O1xuIl19
53028
53029/***/ }),
53030
53031/***/ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js":
53032/*!********************************************************************************!*\
53033 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/index.js ***!
53034 \********************************************************************************/
53035/*! exports provided: deserializerMiddleware, serializerMiddleware, deserializerMiddlewareOption, serializerMiddlewareOption, getSerdePlugin */
53036/***/ (function(module, __webpack_exports__, __webpack_require__) {
53037
53038"use strict";
53039__webpack_require__.r(__webpack_exports__);
53040/* harmony import */ var _deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./deserializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/deserializerMiddleware.js");
53041/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddleware", function() { return _deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__["deserializerMiddleware"]; });
53042
53043/* harmony import */ var _serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./serializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js");
53044/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "serializerMiddleware", function() { return _serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__["serializerMiddleware"]; });
53045
53046/* harmony import */ var _serdePlugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./serdePlugin */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serdePlugin.js");
53047/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddlewareOption", function() { return _serdePlugin__WEBPACK_IMPORTED_MODULE_2__["deserializerMiddlewareOption"]; });
53048
53049/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "serializerMiddlewareOption", function() { return _serdePlugin__WEBPACK_IMPORTED_MODULE_2__["serializerMiddlewareOption"]; });
53050
53051/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSerdePlugin", function() { return _serdePlugin__WEBPACK_IMPORTED_MODULE_2__["getSerdePlugin"]; });
53052
53053
53054
53055
53056//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZGVzZXJpYWxpemVyTWlkZGxld2FyZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vc2VyaWFsaXplck1pZGRsZXdhcmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlcmRlUGx1Z2luXCI7XG4iXX0=
53057
53058/***/ }),
53059
53060/***/ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serdePlugin.js":
53061/*!**************************************************************************************!*\
53062 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/serdePlugin.js ***!
53063 \**************************************************************************************/
53064/*! exports provided: deserializerMiddlewareOption, serializerMiddlewareOption, getSerdePlugin */
53065/***/ (function(module, __webpack_exports__, __webpack_require__) {
53066
53067"use strict";
53068__webpack_require__.r(__webpack_exports__);
53069/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddlewareOption", function() { return deserializerMiddlewareOption; });
53070/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializerMiddlewareOption", function() { return serializerMiddlewareOption; });
53071/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSerdePlugin", function() { return getSerdePlugin; });
53072/* harmony import */ var _deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./deserializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/deserializerMiddleware.js");
53073/* harmony import */ var _serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./serializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js");
53074
53075
53076var deserializerMiddlewareOption = {
53077 name: "deserializerMiddleware",
53078 step: "deserialize",
53079 tags: ["DESERIALIZER"],
53080 override: true,
53081};
53082var serializerMiddlewareOption = {
53083 name: "serializerMiddleware",
53084 step: "serialize",
53085 tags: ["SERIALIZER"],
53086 override: true,
53087};
53088function getSerdePlugin(config, serializer, deserializer) {
53089 return {
53090 applyToStack: function (commandStack) {
53091 commandStack.add(Object(_deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__["deserializerMiddleware"])(config, deserializer), deserializerMiddlewareOption);
53092 commandStack.add(Object(_serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__["serializerMiddleware"])(config, serializer), serializerMiddlewareOption);
53093 },
53094 };
53095}
53096//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyZGVQbHVnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyZGVQbHVnaW4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hbGl6ZXI6IFJlcXVlc3RTZXJpYWxpemVyPGFueSwgU2VyRGVDb250ZXh0PixcbiAgZGVzZXJpYWxpemVyOiBSZXNwb25zZURlc2VyaWFsaXplcjxPdXRwdXRUeXBlLCBhbnksIFNlckRlQ29udGV4dD5cbik6IFBsdWdnYWJsZTxJbnB1dFR5cGUsIE91dHB1dFR5cGU+IHtcbiAgcmV0dXJuIHtcbiAgICBhcHBseVRvU3RhY2s6IChjb21tYW5kU3RhY2s6IE1pZGRsZXdhcmVTdGFjazxJbnB1dFR5cGUsIE91dHB1dFR5cGU+KSA9PiB7XG4gICAgICBjb21tYW5kU3RhY2suYWRkKGRlc2VyaWFsaXplck1pZGRsZXdhcmUoY29uZmlnLCBkZXNlcmlhbGl6ZXIpLCBkZXNlcmlhbGl6ZXJNaWRkbGV3YXJlT3B0aW9uKTtcbiAgICAgIGNvbW1hbmRTdGFjay5hZGQoc2VyaWFsaXplck1pZGRsZXdhcmUoY29uZmlnLCBzZXJpYWxpemVyKSwgc2VyaWFsaXplck1pZGRsZXdhcmVPcHRpb24pO1xuICAgIH0sXG4gIH07XG59XG4iXX0=
53097
53098/***/ }),
53099
53100/***/ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js":
53101/*!***********************************************************************************************!*\
53102 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js ***!
53103 \***********************************************************************************************/
53104/*! exports provided: serializerMiddleware */
53105/***/ (function(module, __webpack_exports__, __webpack_require__) {
53106
53107"use strict";
53108__webpack_require__.r(__webpack_exports__);
53109/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializerMiddleware", function() { return serializerMiddleware; });
53110/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53111
53112var 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 () {
53113 var request;
53114 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53115 switch (_a.label) {
53116 case 0: return [4 /*yield*/, serializer(args.input, options)];
53117 case 1:
53118 request = _a.sent();
53119 return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))];
53120 }
53121 });
53122}); }; }; };
53123//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplck1pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyaWFsaXplck1pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQVVBLE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLFVBQ2xDLE9BQXFCLEVBQ3JCLFVBQWdELElBQ1QsT0FBQSxVQUN2QyxJQUFxQyxFQUNyQyxPQUFnQyxJQUNJLE9BQUEsVUFDcEMsSUFBc0M7Ozs7b0JBRXRCLHFCQUFNLFVBQVUsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxFQUFBOztnQkFBL0MsT0FBTyxHQUFHLFNBQXFDO2dCQUNyRCxzQkFBTyxJQUFJLHVCQUNOLElBQUksS0FDUCxPQUFPLFNBQUEsSUFDUCxFQUFDOzs7S0FDSixFQVJxQyxDQVFyQyxFQVh3QyxDQVd4QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgRW5kcG9pbnRCZWFyZXIsXG4gIEhhbmRsZXJFeGVjdXRpb25Db250ZXh0LFxuICBSZXF1ZXN0U2VyaWFsaXplcixcbiAgU2VyaWFsaXplSGFuZGxlcixcbiAgU2VyaWFsaXplSGFuZGxlckFyZ3VtZW50cyxcbiAgU2VyaWFsaXplSGFuZGxlck91dHB1dCxcbiAgU2VyaWFsaXplTWlkZGxld2FyZSxcbn0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbmV4cG9ydCBjb25zdCBzZXJpYWxpemVyTWlkZGxld2FyZSA9IDxJbnB1dCBleHRlbmRzIG9iamVjdCwgT3V0cHV0IGV4dGVuZHMgb2JqZWN0LCBSdW50aW1lVXRpbHMgZXh0ZW5kcyBFbmRwb2ludEJlYXJlcj4oXG4gIG9wdGlvbnM6IFJ1bnRpbWVVdGlscyxcbiAgc2VyaWFsaXplcjogUmVxdWVzdFNlcmlhbGl6ZXI8YW55LCBSdW50aW1lVXRpbHM+XG4pOiBTZXJpYWxpemVNaWRkbGV3YXJlPElucHV0LCBPdXRwdXQ+ID0+IChcbiAgbmV4dDogU2VyaWFsaXplSGFuZGxlcjxJbnB1dCwgT3V0cHV0PixcbiAgY29udGV4dDogSGFuZGxlckV4ZWN1dGlvbkNvbnRleHRcbik6IFNlcmlhbGl6ZUhhbmRsZXI8SW5wdXQsIE91dHB1dD4gPT4gYXN5bmMgKFxuICBhcmdzOiBTZXJpYWxpemVIYW5kbGVyQXJndW1lbnRzPElucHV0PlxuKTogUHJvbWlzZTxTZXJpYWxpemVIYW5kbGVyT3V0cHV0PE91dHB1dD4+ID0+IHtcbiAgY29uc3QgcmVxdWVzdCA9IGF3YWl0IHNlcmlhbGl6ZXIoYXJncy5pbnB1dCwgb3B0aW9ucyk7XG4gIHJldHVybiBuZXh0KHtcbiAgICAuLi5hcmdzLFxuICAgIHJlcXVlc3QsXG4gIH0pO1xufTtcbiJdfQ==
53124
53125/***/ }),
53126
53127/***/ "../../node_modules/@aws-sdk/middleware-signing/dist/es/configurations.js":
53128/*!*******************************************************************************************!*\
53129 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/dist/es/configurations.js ***!
53130 \*******************************************************************************************/
53131/*! exports provided: resolveAwsAuthConfig */
53132/***/ (function(module, __webpack_exports__, __webpack_require__) {
53133
53134"use strict";
53135__webpack_require__.r(__webpack_exports__);
53136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveAwsAuthConfig", function() { return resolveAwsAuthConfig; });
53137/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53138/* 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");
53139
53140
53141function resolveAwsAuthConfig(input) {
53142 var _this = this;
53143 var credentials = input.credentials || input.credentialDefaultProvider(input);
53144 var normalizedCreds = normalizeProvider(credentials);
53145 var _a = input.signingEscapePath, signingEscapePath = _a === void 0 ? true : _a, _b = input.systemClockOffset, systemClockOffset = _b === void 0 ? input.systemClockOffset || 0 : _b, sha256 = input.sha256;
53146 var signer;
53147 if (input.signer) {
53148 //if signer is supplied by user, normalize it to a function returning a promise for signer.
53149 signer = normalizeProvider(input.signer);
53150 }
53151 else {
53152 //construct a provider inferring signing from region.
53153 signer = function () {
53154 return normalizeProvider(input.region)()
53155 .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) {
53156 switch (_a.label) {
53157 case 0: return [4 /*yield*/, input.regionInfoProvider(region)];
53158 case 1: return [2 /*return*/, [(_a.sent()) || {}, region]];
53159 }
53160 }); }); })
53161 .then(function (_a) {
53162 var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), regionInfo = _b[0], region = _b[1];
53163 var signingRegion = regionInfo.signingRegion, signingService = regionInfo.signingService;
53164 //update client's singing region and signing service config if they are resolved.
53165 //signing region resolving order: user supplied signingRegion -> endpoints.json inferred region -> client region
53166 input.signingRegion = input.signingRegion || signingRegion || region;
53167 //signing name resolving order:
53168 //user supplied signingName -> endpoints.json inferred (credential scope -> model arnNamespace) -> model service id
53169 input.signingName = input.signingName || signingService || input.serviceId;
53170 return new _aws_sdk_signature_v4__WEBPACK_IMPORTED_MODULE_1__["SignatureV4"]({
53171 credentials: normalizedCreds,
53172 region: input.signingRegion,
53173 service: input.signingName,
53174 sha256: sha256,
53175 uriEscapePath: signingEscapePath,
53176 });
53177 });
53178 };
53179 }
53180 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { systemClockOffset: systemClockOffset,
53181 signingEscapePath: signingEscapePath, credentials: normalizedCreds, signer: signer });
53182}
53183function normalizeProvider(input) {
53184 if (typeof input === "object") {
53185 var promisified_1 = Promise.resolve(input);
53186 return function () { return promisified_1; };
53187 }
53188 return input;
53189}
53190//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQTRDcEQsTUFBTSxVQUFVLG9CQUFvQixDQUFJLEtBQWtEO0lBQTFGLGlCQXVDQztJQXRDQyxJQUFNLFdBQVcsR0FBRyxLQUFLLENBQUMsV0FBVyxJQUFJLEtBQUssQ0FBQyx5QkFBeUIsQ0FBQyxLQUFZLENBQUMsQ0FBQztJQUN2RixJQUFNLGVBQWUsR0FBRyxpQkFBaUIsQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUMvQyxJQUFBLEtBQXVGLEtBQUssa0JBQXBFLEVBQXhCLGlCQUFpQixtQkFBRyxJQUFJLEtBQUEsRUFBRSxLQUE2RCxLQUFLLGtCQUFsQixFQUFoRCxpQkFBaU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mFtZSA9IGlucHV0LnNpZ25pbmdOYW1lIHx8IHNpZ25pbmdTZXJ2aWNlIHx8IGlucHV0LnNlcnZpY2VJZDtcblxuICAgICAgICAgIHJldHVybiBuZXcgU2lnbmF0dXJlVjQoe1xuICAgICAgICAgICAgY3JlZGVudGlhbHM6IG5vcm1hbGl6ZWRDcmVkcyxcbiAgICAgICAgICAgIHJlZ2lvbjogaW5wdXQuc2lnbmluZ1JlZ2lvbixcbiAgICAgICAgICAgIHNlcnZpY2U6IGlucHV0LnNpZ25pbmdOYW1lLFxuICAgICAgICAgICAgc2hhMjU2LFxuICAgICAgICAgICAgdXJpRXNjYXBlUGF0aDogc2lnbmluZ0VzY2FwZVBhdGgsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICAuLi5pbnB1dCxcbiAgICBzeXN0ZW1DbG9ja09mZnNldCxcbiAgICBzaWduaW5nRXNjYXBlUGF0aCxcbiAgICBjcmVkZW50aWFsczogbm9ybWFsaXplZENyZWRzLFxuICAgIHNpZ25lcixcbiAgfTtcbn1cblxuZnVuY3Rpb24gbm9ybWFsaXplUHJvdmlkZXI8VD4oaW5wdXQ6IFQgfCBQcm92aWRlcjxUPik6IFByb3ZpZGVyPFQ+IHtcbiAgaWYgKHR5cGVvZiBpbnB1dCA9PT0gXCJvYmplY3RcIikge1xuICAgIGNvbnN0IHByb21pc2lmaWVkID0gUHJvbWlzZS5yZXNvbHZlKGlucHV0KTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH1cbiAgcmV0dXJuIGlucHV0IGFzIFByb3ZpZGVyPFQ+O1xufVxuIl19
53191
53192/***/ }),
53193
53194/***/ "../../node_modules/@aws-sdk/middleware-signing/dist/es/index.js":
53195/*!**********************************************************************************!*\
53196 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/dist/es/index.js ***!
53197 \**********************************************************************************/
53198/*! exports provided: resolveAwsAuthConfig, awsAuthMiddleware, awsAuthMiddlewareOptions, getAwsAuthPlugin */
53199/***/ (function(module, __webpack_exports__, __webpack_require__) {
53200
53201"use strict";
53202__webpack_require__.r(__webpack_exports__);
53203/* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./configurations */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/configurations.js");
53204/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveAwsAuthConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_0__["resolveAwsAuthConfig"]; });
53205
53206/* harmony import */ var _middleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./middleware */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/middleware.js");
53207/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddleware", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["awsAuthMiddleware"]; });
53208
53209/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddlewareOptions", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["awsAuthMiddlewareOptions"]; });
53210
53211/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAwsAuthPlugin", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["getAwsAuthPlugin"]; });
53212
53213
53214
53215//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NvbmZpZ3VyYXRpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9taWRkbGV3YXJlXCI7XG4iXX0=
53216
53217/***/ }),
53218
53219/***/ "../../node_modules/@aws-sdk/middleware-signing/dist/es/middleware.js":
53220/*!***************************************************************************************!*\
53221 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/dist/es/middleware.js ***!
53222 \***************************************************************************************/
53223/*! exports provided: awsAuthMiddleware, awsAuthMiddlewareOptions, getAwsAuthPlugin */
53224/***/ (function(module, __webpack_exports__, __webpack_require__) {
53225
53226"use strict";
53227__webpack_require__.r(__webpack_exports__);
53228/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddleware", function() { return awsAuthMiddleware; });
53229/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddlewareOptions", function() { return awsAuthMiddlewareOptions; });
53230/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAwsAuthPlugin", function() { return getAwsAuthPlugin; });
53231/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53232/* 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");
53233
53234
53235var isClockSkewed = function (newServerTime, systemClockOffset) {
53236 return Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - newServerTime) >= 300000;
53237};
53238var getSkewCorrectedDate = function (systemClockOffset) { return new Date(Date.now() + systemClockOffset); };
53239function awsAuthMiddleware(options) {
53240 return function (next, context) {
53241 return function (args) {
53242 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53243 var signer, _a, output, _b, _c, headers, dateHeader, serverTime;
53244 var _d;
53245 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
53246 switch (_e.label) {
53247 case 0:
53248 if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(args.request))
53249 return [2 /*return*/, next(args)];
53250 if (!(typeof options.signer === "function")) return [3 /*break*/, 2];
53251 return [4 /*yield*/, options.signer()];
53252 case 1:
53253 _a = _e.sent();
53254 return [3 /*break*/, 3];
53255 case 2:
53256 _a = options.signer;
53257 _e.label = 3;
53258 case 3:
53259 signer = _a;
53260 _b = next;
53261 _c = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args)];
53262 _d = {};
53263 return [4 /*yield*/, signer.sign(args.request, {
53264 signingDate: new Date(Date.now() + options.systemClockOffset),
53265 signingRegion: context["signing_region"],
53266 signingService: context["signing_service"],
53267 })];
53268 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)]))])];
53269 case 5:
53270 output = _e.sent();
53271 headers = output.response.headers;
53272 dateHeader = headers && (headers.date || headers.Date);
53273 if (dateHeader) {
53274 serverTime = Date.parse(dateHeader);
53275 if (isClockSkewed(serverTime, options.systemClockOffset)) {
53276 options.systemClockOffset = serverTime - Date.now();
53277 }
53278 }
53279 return [2 /*return*/, output];
53280 }
53281 });
53282 });
53283 };
53284 };
53285}
53286var awsAuthMiddlewareOptions = {
53287 name: "awsAuthMiddleware",
53288 tags: ["SIGNATURE", "AWSAUTH"],
53289 relation: "after",
53290 toMiddleware: "retryMiddleware",
53291 override: true,
53292};
53293var getAwsAuthPlugin = function (options) { return ({
53294 applyToStack: function (clientStack) {
53295 clientStack.addRelativeTo(awsAuthMiddleware(options), awsAuthMiddlewareOptions);
53296 },
53297}); };
53298//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1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lbGF0aXZlVG8oYXdzQXV0aE1pZGRsZXdhcmUob3B0aW9ucyksIGF3c0F1dGhNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
53299
53300/***/ }),
53301
53302/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/is-array-buffer/dist/es/index.js":
53303/*!************************************************************************************************************************!*\
53304 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/is-array-buffer/dist/es/index.js ***!
53305 \************************************************************************************************************************/
53306/*! exports provided: isArrayBuffer */
53307/***/ (function(module, __webpack_exports__, __webpack_require__) {
53308
53309"use strict";
53310__webpack_require__.r(__webpack_exports__);
53311/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArrayBuffer", function() { return isArrayBuffer; });
53312var isArrayBuffer = function (arg) {
53313 return (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) ||
53314 Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
53315};
53316//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQU0sYUFBYSxHQUFHLFVBQUMsR0FBUTtJQUNwQyxPQUFBLENBQUMsT0FBTyxXQUFXLEtBQUssVUFBVSxJQUFJLEdBQUcsWUFBWSxXQUFXLENBQUM7UUFDakUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLHNCQUFzQjtBQUQ5RCxDQUM4RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGlzQXJyYXlCdWZmZXIgPSAoYXJnOiBhbnkpOiBhcmcgaXMgQXJyYXlCdWZmZXIgPT5cbiAgKHR5cGVvZiBBcnJheUJ1ZmZlciA9PT0gXCJmdW5jdGlvblwiICYmIGFyZyBpbnN0YW5jZW9mIEFycmF5QnVmZmVyKSB8fFxuICBPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwoYXJnKSA9PT0gXCJbb2JqZWN0IEFycmF5QnVmZmVyXVwiO1xuIl19
53317
53318/***/ }),
53319
53320/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/SignatureV4.js":
53321/*!***************************************************************************************************************************!*\
53322 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/SignatureV4.js ***!
53323 \***************************************************************************************************************************/
53324/*! exports provided: SignatureV4 */
53325/***/ (function(module, __webpack_exports__, __webpack_require__) {
53326
53327"use strict";
53328__webpack_require__.r(__webpack_exports__);
53329/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignatureV4", function() { return SignatureV4; });
53330/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53331/* 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");
53332/* 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");
53333/* 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");
53334/* 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");
53335/* 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");
53336/* 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");
53337/* 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");
53338/* 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");
53339/* 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");
53340/* 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");
53341
53342
53343
53344
53345
53346
53347
53348
53349
53350
53351
53352var SignatureV4 = /** @class */ (function () {
53353 function SignatureV4(_a) {
53354 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;
53355 this.service = service;
53356 this.sha256 = sha256;
53357 this.uriEscapePath = uriEscapePath;
53358 // default to true if applyChecksum isn't set
53359 this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true;
53360 this.regionProvider = normalizeRegionProvider(region);
53361 this.credentialProvider = normalizeCredentialsProvider(credentials);
53362 }
53363 SignatureV4.prototype.presign = function (originalRequest, options) {
53364 if (options === void 0) { options = {}; }
53365 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53366 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;
53367 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
53368 switch (_l.label) {
53369 case 0:
53370 _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;
53371 return [4 /*yield*/, this.credentialProvider()];
53372 case 1:
53373 credentials = _l.sent();
53374 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2];
53375 _c = signingRegion;
53376 return [3 /*break*/, 4];
53377 case 2: return [4 /*yield*/, this.regionProvider()];
53378 case 3:
53379 _c = (_l.sent());
53380 _l.label = 4;
53381 case 4:
53382 region = _c;
53383 _d = formatDate(signingDate), longDate = _d.longDate, shortDate = _d.shortDate;
53384 if (expiresIn > _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_PRESIGNED_TTL"]) {
53385 return [2 /*return*/, Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future")];
53386 }
53387 scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service);
53388 request = Object(_moveHeadersToQuery__WEBPACK_IMPORTED_MODULE_8__["moveHeadersToQuery"])(Object(_prepareRequest__WEBPACK_IMPORTED_MODULE_9__["prepareRequest"])(originalRequest), { unhoistableHeaders: unhoistableHeaders });
53389 if (credentials.sessionToken) {
53390 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["TOKEN_QUERY_PARAM"]] = credentials.sessionToken;
53391 }
53392 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_QUERY_PARAM"]] = _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"];
53393 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["CREDENTIAL_QUERY_PARAM"]] = credentials.accessKeyId + "/" + scope;
53394 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["AMZ_DATE_QUERY_PARAM"]] = longDate;
53395 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["EXPIRES_QUERY_PARAM"]] = expiresIn.toString(10);
53396 canonicalHeaders = Object(_getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__["getCanonicalHeaders"])(request, unsignableHeaders, signableHeaders);
53397 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["SIGNED_HEADERS_QUERY_PARAM"]] = getCanonicalHeaderList(canonicalHeaders);
53398 _e = request.query;
53399 _f = _constants__WEBPACK_IMPORTED_MODULE_2__["SIGNATURE_QUERY_PARAM"];
53400 _g = this.getSignature;
53401 _h = [longDate,
53402 scope,
53403 this.getSigningKey(credentials, region, shortDate, signingService)];
53404 _j = this.createCanonicalRequest;
53405 _k = [request, canonicalHeaders];
53406 return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])(originalRequest, this.sha256)];
53407 case 5: return [4 /*yield*/, _g.apply(this, _h.concat([_j.apply(this, _k.concat([_l.sent()]))]))];
53408 case 6:
53409 _e[_f] = _l.sent();
53410 return [2 /*return*/, request];
53411 }
53412 });
53413 });
53414 };
53415 SignatureV4.prototype.sign = function (toSign, options) {
53416 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53417 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53418 if (typeof toSign === "string") {
53419 return [2 /*return*/, this.signString(toSign, options)];
53420 }
53421 else if (toSign.headers && toSign.payload) {
53422 return [2 /*return*/, this.signEvent(toSign, options)];
53423 }
53424 else {
53425 return [2 /*return*/, this.signRequest(toSign, options)];
53426 }
53427 return [2 /*return*/];
53428 });
53429 });
53430 };
53431 SignatureV4.prototype.signEvent = function (_a, _b) {
53432 var headers = _a.headers, payload = _a.payload;
53433 var _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, priorSignature = _b.priorSignature, signingRegion = _b.signingRegion, signingService = _b.signingService;
53434 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53435 var region, _d, _e, shortDate, longDate, scope, hashedPayload, hash, hashedHeaders, _f, stringToSign;
53436 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
53437 switch (_g.label) {
53438 case 0:
53439 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 1];
53440 _d = signingRegion;
53441 return [3 /*break*/, 3];
53442 case 1: return [4 /*yield*/, this.regionProvider()];
53443 case 2:
53444 _d = (_g.sent());
53445 _g.label = 3;
53446 case 3:
53447 region = _d;
53448 _e = formatDate(signingDate), shortDate = _e.shortDate, longDate = _e.longDate;
53449 scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service);
53450 return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])({ headers: {}, body: payload }, this.sha256)];
53451 case 4:
53452 hashedPayload = _g.sent();
53453 hash = new this.sha256();
53454 hash.update(headers);
53455 _f = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"];
53456 return [4 /*yield*/, hash.digest()];
53457 case 5:
53458 hashedHeaders = _f.apply(void 0, [_g.sent()]);
53459 stringToSign = [
53460 _constants__WEBPACK_IMPORTED_MODULE_2__["EVENT_ALGORITHM_IDENTIFIER"],
53461 longDate,
53462 scope,
53463 priorSignature,
53464 hashedHeaders,
53465 hashedPayload,
53466 ].join("\n");
53467 return [2 /*return*/, this.signString(stringToSign, { signingDate: signingDate, signingRegion: region, signingService: signingService })];
53468 }
53469 });
53470 });
53471 };
53472 SignatureV4.prototype.signString = function (stringToSign, _a) {
53473 var _b = _a === void 0 ? {} : _a, _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, signingRegion = _b.signingRegion, signingService = _b.signingService;
53474 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53475 var credentials, region, _d, shortDate, hash, _e, _f, _g;
53476 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
53477 switch (_h.label) {
53478 case 0: return [4 /*yield*/, this.credentialProvider()];
53479 case 1:
53480 credentials = _h.sent();
53481 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2];
53482 _d = signingRegion;
53483 return [3 /*break*/, 4];
53484 case 2: return [4 /*yield*/, this.regionProvider()];
53485 case 3:
53486 _d = (_h.sent());
53487 _h.label = 4;
53488 case 4:
53489 region = _d;
53490 shortDate = formatDate(signingDate).shortDate;
53491 _f = (_e = this.sha256).bind;
53492 return [4 /*yield*/, this.getSigningKey(credentials, region, shortDate, signingService)];
53493 case 5:
53494 hash = new (_f.apply(_e, [void 0, _h.sent()]))();
53495 hash.update(stringToSign);
53496 _g = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"];
53497 return [4 /*yield*/, hash.digest()];
53498 case 6: return [2 /*return*/, _g.apply(void 0, [_h.sent()])];
53499 }
53500 });
53501 });
53502 };
53503 SignatureV4.prototype.signRequest = function (requestToSign, _a) {
53504 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;
53505 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53506 var credentials, region, _d, request, _e, longDate, shortDate, scope, payloadHash, canonicalHeaders, signature;
53507 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
53508 switch (_f.label) {
53509 case 0: return [4 /*yield*/, this.credentialProvider()];
53510 case 1:
53511 credentials = _f.sent();
53512 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2];
53513 _d = signingRegion;
53514 return [3 /*break*/, 4];
53515 case 2: return [4 /*yield*/, this.regionProvider()];
53516 case 3:
53517 _d = (_f.sent());
53518 _f.label = 4;
53519 case 4:
53520 region = _d;
53521 request = Object(_prepareRequest__WEBPACK_IMPORTED_MODULE_9__["prepareRequest"])(requestToSign);
53522 _e = formatDate(signingDate), longDate = _e.longDate, shortDate = _e.shortDate;
53523 scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service);
53524 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["AMZ_DATE_HEADER"]] = longDate;
53525 if (credentials.sessionToken) {
53526 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["TOKEN_HEADER"]] = credentials.sessionToken;
53527 }
53528 return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])(request, this.sha256)];
53529 case 5:
53530 payloadHash = _f.sent();
53531 if (!Object(_hasHeader__WEBPACK_IMPORTED_MODULE_7__["hasHeader"])(_constants__WEBPACK_IMPORTED_MODULE_2__["SHA256_HEADER"], request.headers) && this.applyChecksum) {
53532 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["SHA256_HEADER"]] = payloadHash;
53533 }
53534 canonicalHeaders = Object(_getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__["getCanonicalHeaders"])(request, unsignableHeaders, signableHeaders);
53535 return [4 /*yield*/, this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash))];
53536 case 6:
53537 signature = _f.sent();
53538 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["AUTH_HEADER"]] =
53539 _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"] + " " +
53540 ("Credential=" + credentials.accessKeyId + "/" + scope + ", ") +
53541 ("SignedHeaders=" + getCanonicalHeaderList(canonicalHeaders) + ", ") +
53542 ("Signature=" + signature);
53543 return [2 /*return*/, request];
53544 }
53545 });
53546 });
53547 };
53548 SignatureV4.prototype.createCanonicalRequest = function (request, canonicalHeaders, payloadHash) {
53549 var sortedHeaders = Object.keys(canonicalHeaders).sort();
53550 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;
53551 };
53552 SignatureV4.prototype.createStringToSign = function (longDate, credentialScope, canonicalRequest) {
53553 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53554 var hash, hashedRequest;
53555 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53556 switch (_a.label) {
53557 case 0:
53558 hash = new this.sha256();
53559 hash.update(canonicalRequest);
53560 return [4 /*yield*/, hash.digest()];
53561 case 1:
53562 hashedRequest = _a.sent();
53563 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)];
53564 }
53565 });
53566 });
53567 };
53568 SignatureV4.prototype.getCanonicalPath = function (_a) {
53569 var path = _a.path;
53570 if (this.uriEscapePath) {
53571 var doubleEncoded = encodeURIComponent(path.replace(/^\//, ""));
53572 return "/" + doubleEncoded.replace(/%2F/g, "/");
53573 }
53574 return path;
53575 };
53576 SignatureV4.prototype.getSignature = function (longDate, credentialScope, keyPromise, canonicalRequest) {
53577 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53578 var stringToSign, hash, _a, _b, _c;
53579 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) {
53580 switch (_d.label) {
53581 case 0: return [4 /*yield*/, this.createStringToSign(longDate, credentialScope, canonicalRequest)];
53582 case 1:
53583 stringToSign = _d.sent();
53584 _b = (_a = this.sha256).bind;
53585 return [4 /*yield*/, keyPromise];
53586 case 2:
53587 hash = new (_b.apply(_a, [void 0, _d.sent()]))();
53588 hash.update(stringToSign);
53589 _c = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"];
53590 return [4 /*yield*/, hash.digest()];
53591 case 3: return [2 /*return*/, _c.apply(void 0, [_d.sent()])];
53592 }
53593 });
53594 });
53595 };
53596 SignatureV4.prototype.getSigningKey = function (credentials, region, shortDate, service) {
53597 return Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["getSigningKey"])(this.sha256, credentials, shortDate, region, service || this.service);
53598 };
53599 return SignatureV4;
53600}());
53601
53602var formatDate = function (now) {
53603 var longDate = Object(_utilDate__WEBPACK_IMPORTED_MODULE_10__["iso8601"])(now).replace(/[\-:]/g, "");
53604 return {
53605 longDate: longDate,
53606 shortDate: longDate.substr(0, 8),
53607 };
53608};
53609var getCanonicalHeaderList = function (headers) { return Object.keys(headers).sort().join(";"); };
53610var normalizeRegionProvider = function (region) {
53611 if (typeof region === "string") {
53612 var promisified_1 = Promise.resolve(region);
53613 return function () { return promisified_1; };
53614 }
53615 else {
53616 return region;
53617 }
53618};
53619var normalizeCredentialsProvider = function (credentials) {
53620 if (typeof credentials === "object") {
53621 var promisified_2 = Promise.resolve(credentials);
53622 return function () { return promisified_2; };
53623 }
53624 else {
53625 return credentials;
53626 }
53627};
53628//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2lnbmF0dXJlVjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvU2lnbmF0dXJlVjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQWlCQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFbkQsT0FBTyxFQUNMLG9CQUFvQixFQUNwQixxQkFBcUIsRUFDckIsZUFBZSxFQUNmLG9CQUFvQixFQUNwQixXQUFXLEVBQ1gsc0JBQXNCLEVBQ3RCLDBCQUEwQixFQUMxQixtQkFBbUIsRUFDbkIsaUJBQWlCLEVBQ2pCLGFBQWEsRUFDYixxQkFBcUIsRUFDckIsMEJBQTBCLEVBQzFCLFlBQVksRUFDWixpQkFBaUIsR0FDbEIsTUFBTSxhQUFhLENBQUM7QUFDckIsT0FBTyxFQUFFLFdBQVcsRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUM1RCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN4RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN4QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRCxP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nN0cigwLCA4KSxcbiAgfTtcbn07XG5cbmNvbnN0IGdldENhbm9uaWNhbEhlYWRlckxpc3QgPSAoaGVhZGVyczogb2JqZWN0KTogc3RyaW5nID0+IE9iamVjdC5rZXlzKGhlYWRlcnMpLnNvcnQoKS5qb2luKFwiO1wiKTtcblxuY29uc3Qgbm9ybWFsaXplUmVnaW9uUHJvdmlkZXIgPSAocmVnaW9uOiBzdHJpbmcgfCBQcm92aWRlcjxzdHJpbmc+KTogUHJvdmlkZXI8c3RyaW5nPiA9PiB7XG4gIGlmICh0eXBlb2YgcmVnaW9uID09PSBcInN0cmluZ1wiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUocmVnaW9uKTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIHJlZ2lvbjtcbiAgfVxufTtcblxuY29uc3Qgbm9ybWFsaXplQ3JlZGVudGlhbHNQcm92aWRlciA9IChjcmVkZW50aWFsczogQ3JlZGVudGlhbHMgfCBQcm92aWRlcjxDcmVkZW50aWFscz4pOiBQcm92aWRlcjxDcmVkZW50aWFscz4gPT4ge1xuICBpZiAodHlwZW9mIGNyZWRlbnRpYWxzID09PSBcIm9iamVjdFwiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUoY3JlZGVudGlhbHMpO1xuICAgIHJldHVybiAoKSA9PiBwcm9taXNpZmllZDtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gY3JlZGVudGlhbHM7XG4gIH1cbn07XG4iXX0=
53629
53630/***/ }),
53631
53632/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/cloneRequest.js":
53633/*!****************************************************************************************************************************!*\
53634 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/cloneRequest.js ***!
53635 \****************************************************************************************************************************/
53636/*! exports provided: cloneRequest */
53637/***/ (function(module, __webpack_exports__, __webpack_require__) {
53638
53639"use strict";
53640__webpack_require__.r(__webpack_exports__);
53641/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneRequest", function() { return cloneRequest; });
53642/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53643
53644/**
53645 * @internal
53646 */
53647function cloneRequest(_a) {
53648 var headers = _a.headers, query = _a.query, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["headers", "query"]);
53649 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 });
53650}
53651function cloneQuery(query) {
53652 return Object.keys(query).reduce(function (carry, paramName) {
53653 var _a;
53654 var param = query[paramName];
53655 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));
53656 }, {});
53657}
53658//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvbmVSZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Nsb25lUmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUE7O0dBRUc7QUFDSCxNQUFNLFVBQVUsWUFBWSxDQUFDLEVBQXdDO0lBQXRDLElBQUEsT0FBTyxhQUFBLEVBQUUsS0FBSyxXQUFBLEVBQUssSUFBSSxjQUF6QixvQkFBMkIsQ0FBRjtJQUNwRCw2Q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BRdWVyeVBhcmFtZXRlckJhZyB7XG4gIHJldHVybiBPYmplY3Qua2V5cyhxdWVyeSkucmVkdWNlKChjYXJyeTogUXVlcnlQYXJhbWV0ZXJCYWcsIHBhcmFtTmFtZTogc3RyaW5nKSA9PiB7XG4gICAgY29uc3QgcGFyYW0gPSBxdWVyeVtwYXJhbU5hbWVdO1xuICAgIHJldHVybiB7XG4gICAgICAuLi5jYXJyeSxcbiAgICAgIFtwYXJhbU5hbWVdOiBBcnJheS5pc0FycmF5KHBhcmFtKSA/IFsuLi5wYXJhbV0gOiBwYXJhbSxcbiAgICB9O1xuICB9LCB7fSk7XG59XG4iXX0=
53659
53660/***/ }),
53661
53662/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js":
53663/*!*************************************************************************************************************************!*\
53664 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js ***!
53665 \*************************************************************************************************************************/
53666/*! 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 */
53667/***/ (function(module, __webpack_exports__, __webpack_require__) {
53668
53669"use strict";
53670__webpack_require__.r(__webpack_exports__);
53671/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_QUERY_PARAM", function() { return ALGORITHM_QUERY_PARAM; });
53672/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREDENTIAL_QUERY_PARAM", function() { return CREDENTIAL_QUERY_PARAM; });
53673/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMZ_DATE_QUERY_PARAM", function() { return AMZ_DATE_QUERY_PARAM; });
53674/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNED_HEADERS_QUERY_PARAM", function() { return SIGNED_HEADERS_QUERY_PARAM; });
53675/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXPIRES_QUERY_PARAM", function() { return EXPIRES_QUERY_PARAM; });
53676/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNATURE_QUERY_PARAM", function() { return SIGNATURE_QUERY_PARAM; });
53677/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOKEN_QUERY_PARAM", function() { return TOKEN_QUERY_PARAM; });
53678/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUTH_HEADER", function() { return AUTH_HEADER; });
53679/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMZ_DATE_HEADER", function() { return AMZ_DATE_HEADER; });
53680/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DATE_HEADER", function() { return DATE_HEADER; });
53681/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GENERATED_HEADERS", function() { return GENERATED_HEADERS; });
53682/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNATURE_HEADER", function() { return SIGNATURE_HEADER; });
53683/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHA256_HEADER", function() { return SHA256_HEADER; });
53684/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOKEN_HEADER", function() { return TOKEN_HEADER; });
53685/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOST_HEADER", function() { return HOST_HEADER; });
53686/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALWAYS_UNSIGNABLE_HEADERS", function() { return ALWAYS_UNSIGNABLE_HEADERS; });
53687/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PROXY_HEADER_PATTERN", function() { return PROXY_HEADER_PATTERN; });
53688/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEC_HEADER_PATTERN", function() { return SEC_HEADER_PATTERN; });
53689/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSIGNABLE_PATTERNS", function() { return UNSIGNABLE_PATTERNS; });
53690/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_IDENTIFIER", function() { return ALGORITHM_IDENTIFIER; });
53691/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EVENT_ALGORITHM_IDENTIFIER", function() { return EVENT_ALGORITHM_IDENTIFIER; });
53692/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSIGNED_PAYLOAD", function() { return UNSIGNED_PAYLOAD; });
53693/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_CACHE_SIZE", function() { return MAX_CACHE_SIZE; });
53694/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEY_TYPE_IDENTIFIER", function() { return KEY_TYPE_IDENTIFIER; });
53695/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_PRESIGNED_TTL", function() { return MAX_PRESIGNED_TTL; });
53696var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
53697var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
53698var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
53699var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
53700var EXPIRES_QUERY_PARAM = "X-Amz-Expires";
53701var SIGNATURE_QUERY_PARAM = "X-Amz-Signature";
53702var TOKEN_QUERY_PARAM = "X-Amz-Security-Token";
53703var AUTH_HEADER = "authorization";
53704var AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase();
53705var DATE_HEADER = "date";
53706var GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER];
53707var SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase();
53708var SHA256_HEADER = "x-amz-content-sha256";
53709var TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase();
53710var HOST_HEADER = "host";
53711var ALWAYS_UNSIGNABLE_HEADERS = {
53712 authorization: true,
53713 "cache-control": true,
53714 connection: true,
53715 expect: true,
53716 from: true,
53717 "keep-alive": true,
53718 "max-forwards": true,
53719 pragma: true,
53720 referer: true,
53721 te: true,
53722 trailer: true,
53723 "transfer-encoding": true,
53724 upgrade: true,
53725 "user-agent": true,
53726 "x-amzn-trace-id": true,
53727};
53728var PROXY_HEADER_PATTERN = /^proxy-/;
53729var SEC_HEADER_PATTERN = /^sec-/;
53730var UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i];
53731var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
53732var EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD";
53733var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
53734var MAX_CACHE_SIZE = 50;
53735var KEY_TYPE_IDENTIFIER = "aws4_request";
53736var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
53737//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxxQkFBcUIsR0FBRyxpQkFBaUIsQ0FBQztBQUN2RCxNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBRyxrQkFBa0IsQ0FBQztBQUN6RCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxZQUFZLENBQUM7QUFDakQsT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iB0cnVlLFxuICBleHBlY3Q6IHRydWUsXG4gIGZyb206IHRydWUsXG4gIFwia2VlcC1hbGl2ZVwiOiB0cnVlLFxuICBcIm1heC1mb3J3YXJkc1wiOiB0cnVlLFxuICBwcmFnbWE6IHRydWUsXG4gIHJlZmVyZXI6IHRydWUsXG4gIHRlOiB0cnVlLFxuICB0cmFpbGVyOiB0cnVlLFxuICBcInRyYW5zZmVyLWVuY29kaW5nXCI6IHRydWUsXG4gIHVwZ3JhZGU6IHRydWUsXG4gIFwidXNlci1hZ2VudFwiOiB0cnVlLFxuICBcIngtYW16bi10cmFjZS1pZFwiOiB0cnVlLFxufTtcblxuZXhwb3J0IGNvbnN0IFBST1hZX0hFQURFUl9QQVRURVJOID0gL15wcm94eS0vO1xuXG5leHBvcnQgY29uc3QgU0VDX0hFQURFUl9QQVRURVJOID0gL15zZWMtLztcblxuZXhwb3J0IGNvbnN0IFVOU0lHTkFCTEVfUEFUVEVSTlMgPSBbL15wcm94eS0vaSwgL15zZWMtL2ldO1xuXG5leHBvcnQgY29uc3QgQUxHT1JJVEhNX0lERU5USUZJRVIgPSBcIkFXUzQtSE1BQy1TSEEyNTZcIjtcblxuZXhwb3J0IGNvbnN0IEVWRU5UX0FMR09SSVRITV9JREVOVElGSUVSID0gXCJBV1M0LUhNQUMtU0hBMjU2LVBBWUxPQURcIjtcblxuZXhwb3J0IGNvbnN0IFVOU0lHTkVEX1BBWUxPQUQgPSBcIlVOU0lHTkVELVBBWUxPQURcIjtcblxuZXhwb3J0IGNvbnN0IE1BWF9DQUNIRV9TSVpFID0gNTA7XG5leHBvcnQgY29uc3QgS0VZX1RZUEVfSURFTlRJRklFUiA9IFwiYXdzNF9yZXF1ZXN0XCI7XG5cbmV4cG9ydCBjb25zdCBNQVhfUFJFU0lHTkVEX1RUTCA9IDYwICogNjAgKiAyNCAqIDc7XG4iXX0=
53738
53739/***/ }),
53740
53741/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/credentialDerivation.js":
53742/*!************************************************************************************************************************************!*\
53743 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/credentialDerivation.js ***!
53744 \************************************************************************************************************************************/
53745/*! exports provided: createScope, getSigningKey, clearCredentialCache */
53746/***/ (function(module, __webpack_exports__, __webpack_require__) {
53747
53748"use strict";
53749__webpack_require__.r(__webpack_exports__);
53750/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createScope", function() { return createScope; });
53751/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSigningKey", function() { return getSigningKey; });
53752/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clearCredentialCache", function() { return clearCredentialCache; });
53753/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53754/* 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");
53755/* 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");
53756
53757
53758
53759var signingKeyCache = {};
53760var cacheQueue = [];
53761/**
53762 * Create a string describing the scope of credentials used to sign a request.
53763 *
53764 * @param shortDate The current calendar date in the form YYYYMMDD.
53765 * @param region The AWS region in which the service resides.
53766 * @param service The service to which the signed request is being sent.
53767 */
53768function createScope(shortDate, region, service) {
53769 return shortDate + "/" + region + "/" + service + "/" + _constants__WEBPACK_IMPORTED_MODULE_2__["KEY_TYPE_IDENTIFIER"];
53770}
53771/**
53772 * Derive a signing key from its composite parts
53773 *
53774 * @param sha256Constructor A constructor function that can instantiate SHA-256
53775 * hash objects.
53776 * @param credentials The credentials with which the request will be
53777 * signed.
53778 * @param shortDate The current calendar date in the form YYYYMMDD.
53779 * @param region The AWS region in which the service resides.
53780 * @param service The service to which the signed request is being
53781 * sent.
53782 */
53783var getSigningKey = function (sha256Constructor, credentials, shortDate, region, service) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
53784 var credsHash, cacheKey, key, _a, _b, signable, e_1_1;
53785 var e_1, _c;
53786 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) {
53787 switch (_d.label) {
53788 case 0: return [4 /*yield*/, hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId)];
53789 case 1:
53790 credsHash = _d.sent();
53791 cacheKey = shortDate + ":" + region + ":" + service + ":" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(credsHash) + ":" + credentials.sessionToken;
53792 if (cacheKey in signingKeyCache) {
53793 return [2 /*return*/, signingKeyCache[cacheKey]];
53794 }
53795 cacheQueue.push(cacheKey);
53796 while (cacheQueue.length > _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_CACHE_SIZE"]) {
53797 delete signingKeyCache[cacheQueue.shift()];
53798 }
53799 key = "AWS4" + credentials.secretAccessKey;
53800 _d.label = 2;
53801 case 2:
53802 _d.trys.push([2, 7, 8, 9]);
53803 _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])([shortDate, region, service, _constants__WEBPACK_IMPORTED_MODULE_2__["KEY_TYPE_IDENTIFIER"]]), _b = _a.next();
53804 _d.label = 3;
53805 case 3:
53806 if (!!_b.done) return [3 /*break*/, 6];
53807 signable = _b.value;
53808 return [4 /*yield*/, hmac(sha256Constructor, key, signable)];
53809 case 4:
53810 key = _d.sent();
53811 _d.label = 5;
53812 case 5:
53813 _b = _a.next();
53814 return [3 /*break*/, 3];
53815 case 6: return [3 /*break*/, 9];
53816 case 7:
53817 e_1_1 = _d.sent();
53818 e_1 = { error: e_1_1 };
53819 return [3 /*break*/, 9];
53820 case 8:
53821 try {
53822 if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
53823 }
53824 finally { if (e_1) throw e_1.error; }
53825 return [7 /*endfinally*/];
53826 case 9: return [2 /*return*/, (signingKeyCache[cacheKey] = key)];
53827 }
53828 });
53829}); };
53830/**
53831 * @internal
53832 */
53833function clearCredentialCache() {
53834 cacheQueue.length = 0;
53835 Object.keys(signingKeyCache).forEach(function (cacheKey) {
53836 delete signingKeyCache[cacheKey];
53837 });
53838}
53839function hmac(ctor, secret, data) {
53840 var hash = new ctor(secret);
53841 hash.update(data);
53842 return hash.digest();
53843}
53844//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlZGVudGlhbERlcml2YXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY3JlZGVudGlhbERlcml2YXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUVuRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsY0FBYyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRWxFLElBQU0sZUFBZSxHQUFrQyxFQUFFLENBQUM7QUFDMUQsSUFBTSxVQUFVLEdBQWtCLEVBQUUsQ0FBQztBQUVyQzs7Ozs7O0dBTUc7QUFDSCxNQUFNLFVBQVUsV0FBVyxDQUFDLFNBQWlCLEVBQUUsTUFBYyxFQUFFLE9BQWU7SUFDNUUsT0FBVSxTQUFTLFNBQUksTUFBTSxTQUFJLE9BQU8sU0FBSSxtQkFBcUIsQ0FBQztBQUNwRSxDQUFDO0FBRUQ7Ozs7Ozs7Ozs7O0dBV0c7QUFDSCxNQUFNLENBQUMsSUFBTSxhQUFhLEdBQUcsVUFDM0IsaUJBQWtDLEVBQ2xDLFdBQXdCLEVBQ3hCLFNBQWlCLEVBQ2p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sIHJlZ2lvbiwgc2VydmljZSwgS0VZX1RZUEVfSURFTlRJRklFUl0pIHtcbiAgICBrZXkgPSBhd2FpdCBobWFjKHNoYTI1NkNvbnN0cnVjdG9yLCBrZXksIHNpZ25hYmxlKTtcbiAgfVxuICByZXR1cm4gKHNpZ25pbmdLZXlDYWNoZVtjYWNoZUtleV0gPSBrZXkgYXMgVWludDhBcnJheSk7XG59O1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgZnVuY3Rpb24gY2xlYXJDcmVkZW50aWFsQ2FjaGUoKTogdm9pZCB7XG4gIGNhY2hlUXVldWUubGVuZ3RoID0gMDtcbiAgT2JqZWN0LmtleXMoc2lnbmluZ0tleUNhY2hlKS5mb3JFYWNoKChjYWNoZUtleSkgPT4ge1xuICAgIGRlbGV0ZSBzaWduaW5nS2V5Q2FjaGVbY2FjaGVLZXldO1xuICB9KTtcbn1cblxuZnVuY3Rpb24gaG1hYyhjdG9yOiBIYXNoQ29uc3RydWN0b3IsIHNlY3JldDogU291cmNlRGF0YSwgZGF0YTogU291cmNlRGF0YSk6IFByb21pc2U8VWludDhBcnJheT4ge1xuICBjb25zdCBoYXNoID0gbmV3IGN0b3Ioc2VjcmV0KTtcbiAgaGFzaC51cGRhdGUoZGF0YSk7XG4gIHJldHVybiBoYXNoLmRpZ2VzdCgpO1xufVxuIl19
53845
53846/***/ }),
53847
53848/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalHeaders.js":
53849/*!***********************************************************************************************************************************!*\
53850 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalHeaders.js ***!
53851 \***********************************************************************************************************************************/
53852/*! exports provided: getCanonicalHeaders */
53853/***/ (function(module, __webpack_exports__, __webpack_require__) {
53854
53855"use strict";
53856__webpack_require__.r(__webpack_exports__);
53857/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCanonicalHeaders", function() { return getCanonicalHeaders; });
53858/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53859/* 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");
53860
53861
53862/**
53863 * @internal
53864 */
53865function getCanonicalHeaders(_a, unsignableHeaders, signableHeaders) {
53866 var e_1, _b;
53867 var headers = _a.headers;
53868 var canonical = {};
53869 try {
53870 for (var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers).sort()), _d = _c.next(); !_d.done; _d = _c.next()) {
53871 var headerName = _d.value;
53872 var canonicalHeaderName = headerName.toLowerCase();
53873 if (canonicalHeaderName in _constants__WEBPACK_IMPORTED_MODULE_1__["ALWAYS_UNSIGNABLE_HEADERS"] || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) ||
53874 _constants__WEBPACK_IMPORTED_MODULE_1__["PROXY_HEADER_PATTERN"].test(canonicalHeaderName) ||
53875 _constants__WEBPACK_IMPORTED_MODULE_1__["SEC_HEADER_PATTERN"].test(canonicalHeaderName)) {
53876 if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) {
53877 continue;
53878 }
53879 }
53880 canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " ");
53881 }
53882 }
53883 catch (e_1_1) { e_1 = { error: e_1_1 }; }
53884 finally {
53885 try {
53886 if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
53887 }
53888 finally { if (e_1) throw e_1.error; }
53889 }
53890 return canonical;
53891}
53892//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q2Fub25pY2FsSGVhZGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2Vz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WFkZXJOYW1lKVxuICAgICkge1xuICAgICAgaWYgKCFzaWduYWJsZUhlYWRlcnMgfHwgKHNpZ25hYmxlSGVhZGVycyAmJiAhc2lnbmFibGVIZWFkZXJzLmhhcyhjYW5vbmljYWxIZWFkZXJOYW1lKSkpIHtcbiAgICAgICAgY29udGludWU7XG4gICAgICB9XG4gICAgfVxuXG4gICAgY2Fub25pY2FsW2Nhbm9uaWNhbEhlYWRlck5hbWVdID0gaGVhZGVyc1toZWFkZXJOYW1lXS50cmltKCkucmVwbGFjZSgvXFxzKy9nLCBcIiBcIik7XG4gIH1cblxuICByZXR1cm4gY2Fub25pY2FsO1xufVxuIl19
53893
53894/***/ }),
53895
53896/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalQuery.js":
53897/*!*********************************************************************************************************************************!*\
53898 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalQuery.js ***!
53899 \*********************************************************************************************************************************/
53900/*! exports provided: getCanonicalQuery */
53901/***/ (function(module, __webpack_exports__, __webpack_require__) {
53902
53903"use strict";
53904__webpack_require__.r(__webpack_exports__);
53905/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCanonicalQuery", function() { return getCanonicalQuery; });
53906/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53907/* 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");
53908/* 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");
53909
53910
53911
53912/**
53913 * @internal
53914 */
53915function getCanonicalQuery(_a) {
53916 var e_1, _b;
53917 var _c = _a.query, query = _c === void 0 ? {} : _c;
53918 var keys = [];
53919 var serialized = {};
53920 var _loop_1 = function (key) {
53921 if (key.toLowerCase() === _constants__WEBPACK_IMPORTED_MODULE_2__["SIGNATURE_HEADER"]) {
53922 return "continue";
53923 }
53924 keys.push(key);
53925 var value = query[key];
53926 if (typeof value === "string") {
53927 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);
53928 }
53929 else if (Array.isArray(value)) {
53930 serialized[key] = value
53931 .slice(0)
53932 .sort()
53933 .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)]); }, [])
53934 .join("&");
53935 }
53936 };
53937 try {
53938 for (var _d = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(query).sort()), _e = _d.next(); !_e.done; _e = _d.next()) {
53939 var key = _e.value;
53940 _loop_1(key);
53941 }
53942 }
53943 catch (e_1_1) { e_1 = { error: e_1_1 }; }
53944 finally {
53945 try {
53946 if (_e && !_e.done && (_b = _d.return)) _b.call(_d);
53947 }
53948 finally { if (e_1) throw e_1.error; }
53949 }
53950 return keys
53951 .map(function (key) { return serialized[key]; })
53952 .filter(function (serialized) { return serialized; }) // omit any falsy values
53953 .join("&");
53954}
53955//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q2Fub25pY2FsUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZ2V0Q2Fub25pY2FsUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQU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YgKGtleS50b0xvd2VyQ2FzZSgpID09PSBTSUdOQVRVUkVfSEVBREVSKSB7XG4gICAgICBjb250aW51ZTtcbiAgICB9XG5cbiAgICBrZXlzLnB1c2goa2V5KTtcbiAgICBjb25zdCB2YWx1ZSA9IHF1ZXJ5W2tleV07XG4gICAgaWYgKHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgc2VyaWFsaXplZFtrZXldID0gYCR7ZXNjYXBlVXJpKGtleSl9PSR7ZXNjYXBlVXJpKHZhbHVlKX1gO1xuICAgIH0gZWxzZSBpZiAoQXJyYXkuaXNBcnJheSh2YWx1ZSkpIHtcbiAgICAgIHNlcmlhbGl6ZWRba2V5XSA9IHZhbHVlXG4gICAgICAgIC5zbGljZSgwKVxuICAgICAgICAuc29ydCgpXG4gICAgICAgIC5yZWR1Y2UoXG4gICAgICAgICAgKGVuY29kZWQ6IEFycmF5PHN0cmluZz4sIHZhbHVlOiBzdHJpbmcpID0+IGVuY29kZWQuY29uY2F0KFtgJHtlc2NhcGVVcmkoa2V5KX09JHtlc2NhcGVVcmkodmFsdWUpfWBdKSxcbiAgICAgICAgICBbXVxuICAgICAgICApXG4gICAgICAgIC5qb2luKFwiJlwiKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4ga2V5c1xuICAgIC5tYXAoKGtleSkgPT4gc2VyaWFsaXplZFtrZXldKVxuICAgIC5maWx0ZXIoKHNlcmlhbGl6ZWQpID0+IHNlcmlhbGl6ZWQpIC8vIG9taXQgYW55IGZhbHN5IHZhbHVlc1xuICAgIC5qb2luKFwiJlwiKTtcbn1cbiJdfQ==
53956
53957/***/ }),
53958
53959/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getPayloadHash.js":
53960/*!******************************************************************************************************************************!*\
53961 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getPayloadHash.js ***!
53962 \******************************************************************************************************************************/
53963/*! exports provided: getPayloadHash */
53964/***/ (function(module, __webpack_exports__, __webpack_require__) {
53965
53966"use strict";
53967__webpack_require__.r(__webpack_exports__);
53968/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPayloadHash", function() { return getPayloadHash; });
53969/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53970/* 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");
53971/* 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");
53972/* 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");
53973
53974
53975
53976
53977/**
53978 * @internal
53979 */
53980function getPayloadHash(_a, hashConstructor) {
53981 var headers = _a.headers, body = _a.body;
53982 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53983 var _b, _c, headerName, hashCtor, _d;
53984 var e_1, _e;
53985 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
53986 switch (_f.label) {
53987 case 0:
53988 try {
53989 for (_b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _c = _b.next(); !_c.done; _c = _b.next()) {
53990 headerName = _c.value;
53991 if (headerName.toLowerCase() === _constants__WEBPACK_IMPORTED_MODULE_3__["SHA256_HEADER"]) {
53992 return [2 /*return*/, headers[headerName]];
53993 }
53994 }
53995 }
53996 catch (e_1_1) { e_1 = { error: e_1_1 }; }
53997 finally {
53998 try {
53999 if (_c && !_c.done && (_e = _b.return)) _e.call(_b);
54000 }
54001 finally { if (e_1) throw e_1.error; }
54002 }
54003 if (!(body == undefined)) return [3 /*break*/, 1];
54004 return [2 /*return*/, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];
54005 case 1:
54006 if (!(typeof body === "string" || ArrayBuffer.isView(body) || Object(_aws_sdk_is_array_buffer__WEBPACK_IMPORTED_MODULE_1__["isArrayBuffer"])(body))) return [3 /*break*/, 3];
54007 hashCtor = new hashConstructor();
54008 hashCtor.update(body);
54009 _d = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_2__["toHex"];
54010 return [4 /*yield*/, hashCtor.digest()];
54011 case 2: return [2 /*return*/, _d.apply(void 0, [_f.sent()])];
54012 case 3:
54013 // As any defined body that is not a string or binary data is a stream, this
54014 // body is unsignable. Attempt to send the request with an unsigned payload,
54015 // which may or may not be accepted by the service.
54016 return [2 /*return*/, _constants__WEBPACK_IMPORTED_MODULE_3__["UNSIGNED_PAYLOAD"]];
54017 }
54018 });
54019 });
54020}
54021//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0UGF5bG9hZEhhc2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZ2V0UGF5bG9hZEhhc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUV6RCxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFbkQsT0FBTyxFQUFFLGFBQWEsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUU5RDs7R0FFRztBQUNILE1BQU0sVUFBZ0IsY0FBYyxDQUNsQyxFQUE4QixFQUM5Qix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W5lZCBib2R5IHRoYXQgaXMgbm90IGEgc3RyaW5nIG9yIGJpbmFyeSBkYXRhIGlzIGEgc3RyZWFtLCB0aGlzXG4gIC8vIGJvZHkgaXMgdW5zaWduYWJsZS4gQXR0ZW1wdCB0byBzZW5kIHRoZSByZXF1ZXN0IHdpdGggYW4gdW5zaWduZWQgcGF5bG9hZCxcbiAgLy8gd2hpY2ggbWF5IG9yIG1heSBub3QgYmUgYWNjZXB0ZWQgYnkgdGhlIHNlcnZpY2UuXG4gIHJldHVybiBVTlNJR05FRF9QQVlMT0FEO1xufVxuIl19
54022
54023/***/ }),
54024
54025/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/hasHeader.js":
54026/*!*************************************************************************************************************************!*\
54027 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/hasHeader.js ***!
54028 \*************************************************************************************************************************/
54029/*! exports provided: hasHeader */
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__, "hasHeader", function() { return hasHeader; });
54035/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54036
54037function hasHeader(soughtHeader, headers) {
54038 var e_1, _a;
54039 soughtHeader = soughtHeader.toLowerCase();
54040 try {
54041 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _c = _b.next(); !_c.done; _c = _b.next()) {
54042 var headerName = _c.value;
54043 if (soughtHeader === headerName.toLowerCase()) {
54044 return true;
54045 }
54046 }
54047 }
54048 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54049 finally {
54050 try {
54051 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
54052 }
54053 finally { if (e_1) throw e_1.error; }
54054 }
54055 return false;
54056}
54057//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/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/index.js":
54062/*!*********************************************************************************************************************!*\
54063 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/index.js ***!
54064 \*********************************************************************************************************************/
54065/*! exports provided: createScope, getSigningKey, clearCredentialCache, SignatureV4 */
54066/***/ (function(module, __webpack_exports__, __webpack_require__) {
54067
54068"use strict";
54069__webpack_require__.r(__webpack_exports__);
54070/* 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");
54071/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createScope", function() { return _credentialDerivation__WEBPACK_IMPORTED_MODULE_0__["createScope"]; });
54072
54073/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSigningKey", function() { return _credentialDerivation__WEBPACK_IMPORTED_MODULE_0__["getSigningKey"]; });
54074
54075/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearCredentialCache", function() { return _credentialDerivation__WEBPACK_IMPORTED_MODULE_0__["clearCredentialCache"]; });
54076
54077/* 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");
54078/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SignatureV4", function() { return _SignatureV4__WEBPACK_IMPORTED_MODULE_1__["SignatureV4"]; });
54079
54080
54081
54082//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NyZWRlbnRpYWxEZXJpdmF0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9TaWduYXR1cmVWNFwiO1xuIl19
54083
54084/***/ }),
54085
54086/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/moveHeadersToQuery.js":
54087/*!**********************************************************************************************************************************!*\
54088 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/moveHeadersToQuery.js ***!
54089 \**********************************************************************************************************************************/
54090/*! exports provided: moveHeadersToQuery */
54091/***/ (function(module, __webpack_exports__, __webpack_require__) {
54092
54093"use strict";
54094__webpack_require__.r(__webpack_exports__);
54095/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "moveHeadersToQuery", function() { return moveHeadersToQuery; });
54096/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54097/* 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");
54098
54099
54100/**
54101 * @internal
54102 */
54103function moveHeadersToQuery(request, options) {
54104 var e_1, _a;
54105 var _b;
54106 if (options === void 0) { options = {}; }
54107 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;
54108 try {
54109 for (var _e = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _f = _e.next(); !_f.done; _f = _e.next()) {
54110 var name = _f.value;
54111 var lname = name.toLowerCase();
54112 if (lname.substr(0, 6) === "x-amz-" && !((_b = options.unhoistableHeaders) === null || _b === void 0 ? void 0 : _b.has(lname))) {
54113 query[name] = headers[name];
54114 delete headers[name];
54115 }
54116 }
54117 }
54118 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54119 finally {
54120 try {
54121 if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
54122 }
54123 finally { if (e_1) throw e_1.error; }
54124 }
54125 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { headers: headers,
54126 query: query });
54127}
54128//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW92ZUhlYWRlcnNUb1F1ZXJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21vdmVIZWFkZXJzVG9RdWVyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTlDOztHQUVHO0FBQ0gsTUFBTSxVQUFVLGtCQUFrQixDQUNoQyxPQUFvQixFQUNwQixPQUFrRDs7O0lBQWxELHdCQUFBLEVBQUEsWUFBa0Q7SUFFNUMsSUFBQSxLQUNKLE9BQVEsT0FBZSxDQUFDLEtBQUssS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFFLE9BQWUsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxFQUR6RixPQUFPLGFBQUEsRUFBRSxhQUErQixFQUEvQixLQUFLLG1CQUFHLEVBQXVCLEtBQ2lELENBQUM7O1FBQ2xHLEtBQW1CLElBQUEsS0FBQSxTQUFBLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUEsZ0JBQUEsNEJBQUU7WUFBcEMsSUFBTSxJQUFJL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F1ZXN0IGFzIGFueSkuY2xvbmUoKSA6IGNsb25lUmVxdWVzdChyZXF1ZXN0KTtcbiAgZm9yIChjb25zdCBuYW1lIG9mIE9iamVjdC5rZXlzKGhlYWRlcnMpKSB7XG4gICAgY29uc3QgbG5hbWUgPSBuYW1lLnRvTG93ZXJDYXNlKCk7XG4gICAgaWYgKGxuYW1lLnN1YnN0cigwLCA2KSA9PT0gXCJ4LWFtei1cIiAmJiAhb3B0aW9ucy51bmhvaXN0YWJsZUhlYWRlcnM/LmhhcyhsbmFtZSkpIHtcbiAgICAgIHF1ZXJ5W25hbWVdID0gaGVhZGVyc1tuYW1lXTtcbiAgICAgIGRlbGV0ZSBoZWFkZXJzW25hbWVdO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiB7XG4gICAgLi4ucmVxdWVzdCxcbiAgICBoZWFkZXJzLFxuICAgIHF1ZXJ5LFxuICB9O1xufVxuIl19
54129
54130/***/ }),
54131
54132/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/prepareRequest.js":
54133/*!******************************************************************************************************************************!*\
54134 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/prepareRequest.js ***!
54135 \******************************************************************************************************************************/
54136/*! exports provided: prepareRequest */
54137/***/ (function(module, __webpack_exports__, __webpack_require__) {
54138
54139"use strict";
54140__webpack_require__.r(__webpack_exports__);
54141/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prepareRequest", function() { return prepareRequest; });
54142/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54143/* 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");
54144/* 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");
54145
54146
54147
54148/**
54149 * @internal
54150 */
54151function prepareRequest(request) {
54152 var e_1, _a;
54153 // Create a clone of the request object that does not clone the body
54154 request = typeof request.clone === "function" ? request.clone() : Object(_cloneRequest__WEBPACK_IMPORTED_MODULE_1__["cloneRequest"])(request);
54155 try {
54156 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(request.headers)), _c = _b.next(); !_c.done; _c = _b.next()) {
54157 var headerName = _c.value;
54158 if (_constants__WEBPACK_IMPORTED_MODULE_2__["GENERATED_HEADERS"].indexOf(headerName.toLowerCase()) > -1) {
54159 delete request.headers[headerName];
54160 }
54161 }
54162 }
54163 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54164 finally {
54165 try {
54166 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
54167 }
54168 finally { if (e_1) throw e_1.error; }
54169 }
54170 return request;
54171}
54172//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlcGFyZVJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJlcGFyZVJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM5QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFaEQ7O0dBRUc7QUFDSCxNQUFNLFVBQVUsY0FBYyxDQUFDLE9BQW9COztJQUNqRCxvRUFBb0U7SUFDcEUsT0FBTyxHQUFHLE9BQVEsT0FBZSxDQUFDLEtBQUssS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFFLE9BQWUsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQ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lIG9mIE9iamVjdC5rZXlzKHJlcXVlc3QuaGVhZGVycykpIHtcbiAgICBpZiAoR0VORVJBVEVEX0hFQURFUlMuaW5kZXhPZihoZWFkZXJOYW1lLnRvTG93ZXJDYXNlKCkpID4gLTEpIHtcbiAgICAgIGRlbGV0ZSByZXF1ZXN0LmhlYWRlcnNbaGVhZGVyTmFtZV07XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHJlcXVlc3Q7XG59XG4iXX0=
54173
54174/***/ }),
54175
54176/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/utilDate.js":
54177/*!************************************************************************************************************************!*\
54178 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/utilDate.js ***!
54179 \************************************************************************************************************************/
54180/*! exports provided: iso8601, toDate */
54181/***/ (function(module, __webpack_exports__, __webpack_require__) {
54182
54183"use strict";
54184__webpack_require__.r(__webpack_exports__);
54185/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iso8601", function() { return iso8601; });
54186/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toDate", function() { return toDate; });
54187function iso8601(time) {
54188 return toDate(time)
54189 .toISOString()
54190 .replace(/\.\d{3}Z$/, "Z");
54191}
54192function toDate(time) {
54193 if (typeof time === "number") {
54194 return new Date(time * 1000);
54195 }
54196 if (typeof time === "string") {
54197 if (Number(time)) {
54198 return new Date(Number(time) * 1000);
54199 }
54200 return new Date(time);
54201 }
54202 return time;
54203}
54204//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbERhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbERhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLE9BQU8sQ0FBQyxJQUE0QjtJQUNsRCxPQUFPLE1BQU0sQ0FBQyxJQUFJ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bWJlcih0aW1lKSAqIDEwMDApO1xuICAgIH1cbiAgICByZXR1cm4gbmV3IERhdGUodGltZSk7XG4gIH1cblxuICByZXR1cm4gdGltZTtcbn1cbiJdfQ==
54205
54206/***/ }),
54207
54208/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js":
54209/*!**************************************************************************************************************************!*\
54210 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js ***!
54211 \**************************************************************************************************************************/
54212/*! exports provided: fromHex, toHex */
54213/***/ (function(module, __webpack_exports__, __webpack_require__) {
54214
54215"use strict";
54216__webpack_require__.r(__webpack_exports__);
54217/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromHex", function() { return fromHex; });
54218/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHex", function() { return toHex; });
54219var SHORT_TO_HEX = {};
54220var HEX_TO_SHORT = {};
54221for (var i = 0; i < 256; i++) {
54222 var encodedByte = i.toString(16).toLowerCase();
54223 if (encodedByte.length === 1) {
54224 encodedByte = "0" + encodedByte;
54225 }
54226 SHORT_TO_HEX[i] = encodedByte;
54227 HEX_TO_SHORT[encodedByte] = i;
54228}
54229/**
54230 * Converts a hexadecimal encoded string to a Uint8Array of bytes.
54231 *
54232 * @param encoded The hexadecimal encoded string
54233 */
54234function fromHex(encoded) {
54235 if (encoded.length % 2 !== 0) {
54236 throw new Error("Hex encoded strings must have an even number length");
54237 }
54238 var out = new Uint8Array(encoded.length / 2);
54239 for (var i = 0; i < encoded.length; i += 2) {
54240 var encodedByte = encoded.substr(i, 2).toLowerCase();
54241 if (encodedByte in HEX_TO_SHORT) {
54242 out[i / 2] = HEX_TO_SHORT[encodedByte];
54243 }
54244 else {
54245 throw new Error("Cannot decode unrecognized sequence " + encodedByte + " as hexadecimal");
54246 }
54247 }
54248 return out;
54249}
54250/**
54251 * Converts a Uint8Array of binary data to a hexadecimal encoded string.
54252 *
54253 * @param bytes The binary data to encode
54254 */
54255function toHex(bytes) {
54256 var out = "";
54257 for (var i = 0; i < bytes.byteLength; i++) {
54258 out += SHORT_TO_HEX[bytes[i]];
54259 }
54260 return out;
54261}
54262//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBTSxZQUFZLEdBQThCLEVBQUUsQ0FBQztBQUNuRCxJQUFNLFlBQVksR0FBOEIsRUFBRSxDQUFDO0FBRW5ELEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLEVBQUUsQ0FBQyxFQUFFLEVBQUU7SUFDNUIsSUFBSSxXQUFXLEdBQUcsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxXQUFXLEVBQUUsQ0FBQztJQUMvQyxJQUFJLFdBQVcsQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFO1FBQzVCLFdBQVcsR0FBRyxNQUFJLFdBQWEsQ0FBQztLQUNqQztJQUVELFlBQVksQ0FBQyxDQUFDLENBQUMsR0FBRyxXQUFXLENBQUM7SUFDOUIsWUFBWSxDQUFDLFdBQVcsQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUMvQjtBQUVEOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsT0FBTyxDQUFDLE9BQWU7SUFDckMsSUFBSSxPQUFPLENBQUMsTUFBTSxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUU7UUFDNUIsTUFBTSxJQUFJLEtBQUssQ0FBQyxxREFBcUQsQ0FBQyxDQUFDO0tBQ3hFO0lBRUQsSUFBTSxHQUFHLEdBQUcsSUFBSSxVQUFVLENBQUMsT0FBTyxDQUFDLE1BQU0sR0FBRyxDQUFD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lY29kZSB1bnJlY29nbml6ZWQgc2VxdWVuY2UgJHtlbmNvZGVkQnl0ZX0gYXMgaGV4YWRlY2ltYWxgKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gb3V0O1xufVxuXG4vKipcbiAqIENvbnZlcnRzIGEgVWludDhBcnJheSBvZiBiaW5hcnkgZGF0YSB0byBhIGhleGFkZWNpbWFsIGVuY29kZWQgc3RyaW5nLlxuICpcbiAqIEBwYXJhbSBieXRlcyBUaGUgYmluYXJ5IGRhdGEgdG8gZW5jb2RlXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0b0hleChieXRlczogVWludDhBcnJheSk6IHN0cmluZyB7XG4gIGxldCBvdXQgPSBcIlwiO1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGJ5dGVzLmJ5dGVMZW5ndGg7IGkrKykge1xuICAgIG91dCArPSBTSE9SVF9UT19IRVhbYnl0ZXNbaV1dO1xuICB9XG5cbiAgcmV0dXJuIG91dDtcbn1cbiJdfQ==
54263
54264/***/ }),
54265
54266/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js":
54267/*!**********************************************************************************************************************************!*\
54268 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js ***!
54269 \**********************************************************************************************************************************/
54270/*! exports provided: escapeUriPath */
54271/***/ (function(module, __webpack_exports__, __webpack_require__) {
54272
54273"use strict";
54274__webpack_require__.r(__webpack_exports__);
54275/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return escapeUriPath; });
54276/* 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");
54277
54278var escapeUriPath = function (uri) { return uri.split("/").map(_escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]).join("/"); };
54279//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS1wYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2VzY2FwZS11cmktcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRXpDLE1BQU0sQ0FBQyxJQUFNLGFBQWEsR0FBRyxVQUFDLEdBQVcsSUFBYSxPQUFBLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBdkMsQ0FBdUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGVzY2FwZVVyaSB9IGZyb20gXCIuL2VzY2FwZS11cmlcIjtcblxuZXhwb3J0IGNvbnN0IGVzY2FwZVVyaVBhdGggPSAodXJpOiBzdHJpbmcpOiBzdHJpbmcgPT4gdXJpLnNwbGl0KFwiL1wiKS5tYXAoZXNjYXBlVXJpKS5qb2luKFwiL1wiKTtcbiJdfQ==
54280
54281/***/ }),
54282
54283/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js":
54284/*!*****************************************************************************************************************************!*\
54285 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js ***!
54286 \*****************************************************************************************************************************/
54287/*! exports provided: escapeUri */
54288/***/ (function(module, __webpack_exports__, __webpack_require__) {
54289
54290"use strict";
54291__webpack_require__.r(__webpack_exports__);
54292/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return escapeUri; });
54293var escapeUri = function (uri) {
54294 // AWS percent-encodes some extra non-standard characters in a URI
54295 return encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
54296};
54297var hexEncode = function (c) { return "%" + c.charCodeAt(0).toString(16).toUpperCase(); };
54298//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lc2NhcGUtdXJpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxJQUFNLFNBQVMsR0FBRyxVQUFDLEdBQVc7SUFDbkMsa0VBQWtFO0lBQ2xFLE9BQUEsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDLFVBQVUsRUFBRSxTQUFTLENBQUM7QUFBdEQsQ0FBc0QsQ0FBQztBQUV6RCxJQUFNLFNBQVMsR0FBRyxVQUFDLENBQVMsSUFBSyxPQUFBLE1BQUksQ0FBQyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsV0FBVyxFQUFJLEVBQWhELENBQWdELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgZXNjYXBlVXJpID0gKHVyaTogc3RyaW5nKTogc3RyaW5nID0+XG4gIC8vIEFXUyBwZXJjZW50LWVuY29kZXMgc29tZSBleHRyYSBub24tc3RhbmRhcmQgY2hhcmFjdGVycyBpbiBhIFVSSVxuICBlbmNvZGVVUklDb21wb25lbnQodXJpKS5yZXBsYWNlKC9bIScoKSpdL2csIGhleEVuY29kZSk7XG5cbmNvbnN0IGhleEVuY29kZSA9IChjOiBzdHJpbmcpID0+IGAlJHtjLmNoYXJDb2RlQXQoMCkudG9TdHJpbmcoMTYpLnRvVXBwZXJDYXNlKCl9YDtcbiJdfQ==
54299
54300/***/ }),
54301
54302/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js":
54303/*!************************************************************************************************************************!*\
54304 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js ***!
54305 \************************************************************************************************************************/
54306/*! exports provided: escapeUri, escapeUriPath */
54307/***/ (function(module, __webpack_exports__, __webpack_require__) {
54308
54309"use strict";
54310__webpack_require__.r(__webpack_exports__);
54311/* 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");
54312/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return _escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]; });
54313
54314/* 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");
54315/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__["escapeUriPath"]; });
54316
54317
54318
54319//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmlcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmktcGF0aFwiO1xuIl19
54320
54321/***/ }),
54322
54323/***/ "../../node_modules/@aws-sdk/middleware-stack/dist/es/MiddlewareStack.js":
54324/*!******************************************************************************************!*\
54325 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-stack/dist/es/MiddlewareStack.js ***!
54326 \******************************************************************************************/
54327/*! exports provided: constructStack */
54328/***/ (function(module, __webpack_exports__, __webpack_require__) {
54329
54330"use strict";
54331__webpack_require__.r(__webpack_exports__);
54332/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "constructStack", function() { return constructStack; });
54333/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54334
54335var constructStack = function () {
54336 var absoluteEntries = [];
54337 var relativeEntries = [];
54338 var entriesNameSet = new Set();
54339 var sort = function (entries) {
54340 return entries.sort(function (a, b) {
54341 return stepWeights[b.step] - stepWeights[a.step] ||
54342 priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"];
54343 });
54344 };
54345 var removeByName = function (toRemove) {
54346 var isRemoved = false;
54347 var filterCb = function (entry) {
54348 if (entry.name && entry.name === toRemove) {
54349 isRemoved = true;
54350 entriesNameSet.delete(toRemove);
54351 return false;
54352 }
54353 return true;
54354 };
54355 absoluteEntries = absoluteEntries.filter(filterCb);
54356 relativeEntries = relativeEntries.filter(filterCb);
54357 return isRemoved;
54358 };
54359 var removeByReference = function (toRemove) {
54360 var isRemoved = false;
54361 var filterCb = function (entry) {
54362 if (entry.middleware === toRemove) {
54363 isRemoved = true;
54364 if (entry.name)
54365 entriesNameSet.delete(entry.name);
54366 return false;
54367 }
54368 return true;
54369 };
54370 absoluteEntries = absoluteEntries.filter(filterCb);
54371 relativeEntries = relativeEntries.filter(filterCb);
54372 return isRemoved;
54373 };
54374 var cloneTo = function (toStack) {
54375 absoluteEntries.forEach(function (entry) {
54376 //@ts-ignore
54377 toStack.add(entry.middleware, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry));
54378 });
54379 relativeEntries.forEach(function (entry) {
54380 //@ts-ignore
54381 toStack.addRelativeTo(entry.middleware, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry));
54382 });
54383 return toStack;
54384 };
54385 var expandRelativeMiddlewareList = function (from) {
54386 var expandedMiddlewareList = [];
54387 from.before.forEach(function (entry) {
54388 if (entry.before.length === 0 && entry.after.length === 0) {
54389 expandedMiddlewareList.push(entry);
54390 }
54391 else {
54392 expandedMiddlewareList.push.apply(expandedMiddlewareList, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(expandRelativeMiddlewareList(entry)));
54393 }
54394 });
54395 expandedMiddlewareList.push(from);
54396 from.after.reverse().forEach(function (entry) {
54397 if (entry.before.length === 0 && entry.after.length === 0) {
54398 expandedMiddlewareList.push(entry);
54399 }
54400 else {
54401 expandedMiddlewareList.push.apply(expandedMiddlewareList, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(expandRelativeMiddlewareList(entry)));
54402 }
54403 });
54404 return expandedMiddlewareList;
54405 };
54406 /**
54407 * Get a final list of middleware in the order of being executed in the resolved handler.
54408 */
54409 var getMiddlewareList = function () {
54410 var normalizedAbsoluteEntries = [];
54411 var normalizedRelativeEntries = [];
54412 var normalizedEntriesNameMap = {};
54413 absoluteEntries.forEach(function (entry) {
54414 var normalizedEntry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry), { before: [], after: [] });
54415 if (normalizedEntry.name)
54416 normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
54417 normalizedAbsoluteEntries.push(normalizedEntry);
54418 });
54419 relativeEntries.forEach(function (entry) {
54420 var normalizedEntry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry), { before: [], after: [] });
54421 if (normalizedEntry.name)
54422 normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
54423 normalizedRelativeEntries.push(normalizedEntry);
54424 });
54425 normalizedRelativeEntries.forEach(function (entry) {
54426 if (entry.toMiddleware) {
54427 var toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
54428 if (toMiddleware === undefined) {
54429 throw new Error(entry.toMiddleware + " is not found when adding " + (entry.name || "anonymous") + " middleware " + entry.relation + " " + entry.toMiddleware);
54430 }
54431 if (entry.relation === "after") {
54432 toMiddleware.after.push(entry);
54433 }
54434 if (entry.relation === "before") {
54435 toMiddleware.before.push(entry);
54436 }
54437 }
54438 });
54439 var mainChain = sort(normalizedAbsoluteEntries)
54440 .map(expandRelativeMiddlewareList)
54441 .reduce(function (wholeList, expendedMiddlewareList) {
54442 // TODO: Replace it with Array.flat();
54443 wholeList.push.apply(wholeList, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(expendedMiddlewareList));
54444 return wholeList;
54445 }, []);
54446 return mainChain.map(function (entry) { return entry.middleware; });
54447 };
54448 var stack = {
54449 add: function (middleware, options) {
54450 if (options === void 0) { options = {}; }
54451 var name = options.name, override = options.override;
54452 var entry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ step: "initialize", priority: "normal", middleware: middleware }, options);
54453 if (name) {
54454 if (entriesNameSet.has(name)) {
54455 if (!override)
54456 throw new Error("Duplicate middleware name '" + name + "'");
54457 var toOverrideIndex = absoluteEntries.findIndex(function (entry) { return entry.name === name; });
54458 var toOverride = absoluteEntries[toOverrideIndex];
54459 if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
54460 throw new Error("\"" + name + "\" middleware with " + toOverride.priority + " priority in " + toOverride.step + " step cannot be " +
54461 ("overridden by same-name middleware with " + entry.priority + " priority in " + entry.step + " step."));
54462 }
54463 absoluteEntries.splice(toOverrideIndex, 1);
54464 }
54465 entriesNameSet.add(name);
54466 }
54467 absoluteEntries.push(entry);
54468 },
54469 addRelativeTo: function (middleware, options) {
54470 var name = options.name, override = options.override;
54471 var entry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ middleware: middleware }, options);
54472 if (name) {
54473 if (entriesNameSet.has(name)) {
54474 if (!override)
54475 throw new Error("Duplicate middleware name '" + name + "'");
54476 var toOverrideIndex = relativeEntries.findIndex(function (entry) { return entry.name === name; });
54477 var toOverride = relativeEntries[toOverrideIndex];
54478 if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
54479 throw new Error("\"" + name + "\" middleware " + toOverride.relation + " \"" + toOverride.toMiddleware + "\" middleware cannot be overridden " +
54480 ("by same-name middleware " + entry.relation + " \"" + entry.toMiddleware + "\" middleware."));
54481 }
54482 relativeEntries.splice(toOverrideIndex, 1);
54483 }
54484 entriesNameSet.add(name);
54485 }
54486 relativeEntries.push(entry);
54487 },
54488 clone: function () { return cloneTo(constructStack()); },
54489 use: function (plugin) {
54490 plugin.applyToStack(stack);
54491 },
54492 remove: function (toRemove) {
54493 if (typeof toRemove === "string")
54494 return removeByName(toRemove);
54495 else
54496 return removeByReference(toRemove);
54497 },
54498 removeByTag: function (toRemove) {
54499 var isRemoved = false;
54500 var filterCb = function (entry) {
54501 var tags = entry.tags, name = entry.name;
54502 if (tags && tags.includes(toRemove)) {
54503 if (name)
54504 entriesNameSet.delete(name);
54505 isRemoved = true;
54506 return false;
54507 }
54508 return true;
54509 };
54510 absoluteEntries = absoluteEntries.filter(filterCb);
54511 relativeEntries = relativeEntries.filter(filterCb);
54512 return isRemoved;
54513 },
54514 concat: function (from) {
54515 var cloned = cloneTo(constructStack());
54516 cloned.use(from);
54517 return cloned;
54518 },
54519 applyToStack: cloneTo,
54520 resolve: function (handler, context) {
54521 var e_1, _a;
54522 try {
54523 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(getMiddlewareList().reverse()), _c = _b.next(); !_c.done; _c = _b.next()) {
54524 var middleware = _c.value;
54525 handler = middleware(handler, context);
54526 }
54527 }
54528 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54529 finally {
54530 try {
54531 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
54532 }
54533 finally { if (e_1) throw e_1.error; }
54534 }
54535 return handler;
54536 },
54537 };
54538 return stack;
54539};
54540var stepWeights = {
54541 initialize: 5,
54542 serialize: 4,
54543 build: 3,
54544 finalizeRequest: 2,
54545 deserialize: 1,
54546};
54547var priorityWeights = {
54548 high: 3,
54549 normal: 2,
54550 low: 1,
54551};
54552//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlkZGxld2FyZVN0YWNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL01pZGRsZXdhcmVTdGFjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBZ0JBLE1BQU0sQ0FBQyxJQUFNLGNBQWMsR0FBRztJQUM1QixJQUFJLGVBQWUsR0FBNkMsRUFBRSxDQUFDO0lBQ25FLElBQUksZUFBZSxHQUE2QyxFQUFFLENBQUM7SUFDbkUsSUFBTSxjQUFjLEdBQWdCLElBQUksR0FBRyxFQUFFLENBQUM7SUFFOUMsSUFBTSxJQUFJLEdBQUcsVUFBbUQsT0FBWTtRQUMxRSxPQUFBLE9BQU8sQ0FBQyxJQUFJLENBQ1YsVUFBQyxDQUFDLEVBQUUsQ0FBQztZQUNILE9BQUEsV0FBVyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxXQUFXLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztnQkFDekMsZUFBZSxDQUFDLENBQUMsQ0FBQyxRQUFRLElBQUksUUFBUSxDQUFDLEdBQUcsZUFBZSxDQUFDLENBQUMsQ0FBQyxRQUFRLElBQUksUUFBUSxDQUFDO1FBRGpGLENBQ2lGLENBQ3BGO0lBSkQsQ0FJQyxDQUFDO0lBRUosSUFBTSxZQUFZLEdBQUcsVUFBQyxRQUFnQjtRQUNwQyxJQUFJLFNBQVMsR0FBRyxLQUFLLENBQUM7UUFDdEIsSUFBTSxRQUFRLEd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dlaWdodHM6IHsgW2tleSBpbiBTdGVwXTogbnVtYmVyIH0gPSB7XG4gIGluaXRpYWxpemU6IDUsXG4gIHNlcmlhbGl6ZTogNCxcbiAgYnVpbGQ6IDMsXG4gIGZpbmFsaXplUmVxdWVzdDogMixcbiAgZGVzZXJpYWxpemU6IDEsXG59O1xuXG5jb25zdCBwcmlvcml0eVdlaWdodHM6IHsgW2tleSBpbiBQcmlvcml0eV06IG51bWJlciB9ID0ge1xuICBoaWdoOiAzLFxuICBub3JtYWw6IDIsXG4gIGxvdzogMSxcbn07XG4iXX0=
54553
54554/***/ }),
54555
54556/***/ "../../node_modules/@aws-sdk/middleware-stack/dist/es/index.js":
54557/*!********************************************************************************!*\
54558 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-stack/dist/es/index.js ***!
54559 \********************************************************************************/
54560/*! exports provided: constructStack */
54561/***/ (function(module, __webpack_exports__, __webpack_require__) {
54562
54563"use strict";
54564__webpack_require__.r(__webpack_exports__);
54565/* harmony import */ var _MiddlewareStack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MiddlewareStack */ "../../node_modules/@aws-sdk/middleware-stack/dist/es/MiddlewareStack.js");
54566/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "constructStack", function() { return _MiddlewareStack__WEBPACK_IMPORTED_MODULE_0__["constructStack"]; });
54567
54568
54569//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL01pZGRsZXdhcmVTdGFja1wiO1xuIl19
54570
54571/***/ }),
54572
54573/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/configurations.js":
54574/*!**********************************************************************************************!*\
54575 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/configurations.js ***!
54576 \**********************************************************************************************/
54577/*! exports provided: resolveUserAgentConfig */
54578/***/ (function(module, __webpack_exports__, __webpack_require__) {
54579
54580"use strict";
54581__webpack_require__.r(__webpack_exports__);
54582/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveUserAgentConfig", function() { return resolveUserAgentConfig; });
54583/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54584
54585function resolveUserAgentConfig(input) {
54586 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 });
54587}
54588//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQWdCQSxNQUFNLFVBQVUsc0JBQXNCLENBQ3BDLEtBQW9EO0lBRXBELDZCQUNLLEtBQUssS0FDUixlQUFlLEVBQUUsT0FBTyxLQUFLLENBQUMsZUFBZSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsZUFBZSxJQUM5RztBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm92aWRlciwgVXNlckFnZW50IH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5leHBvcnQgaW50ZXJmYWNlIFVzZXJBZ2VudElucHV0Q29uZmlnIHtcbiAgLyoqXG4gICAqIFRoZSBjdXN0b20gdXNlciBhZ2VudCBoZWFkZXIgdGhhdCB3b3VsZCBiZSBhcHBlbmRlZCB0byBkZWZhdWx0IG9uZVxuICAgKi9cbiAgY3VzdG9tVXNlckFnZW50Pzogc3RyaW5nIHwgVXNlckFnZW50O1xufVxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZXNvbHZlZCB7XG4gIGRlZmF1bHRVc2VyQWdlbnRQcm92aWRlcjogUHJvdmlkZXI8VXNlckFnZW50PjtcbiAgcnVudGltZTogc3RyaW5nO1xufVxuZXhwb3J0IGludGVyZmFjZSBVc2VyQWdlbnRSZXNvbHZlZENvbmZpZyB7XG4gIGRlZmF1bHRVc2VyQWdlbnRQcm92aWRlcjogUHJvdmlkZXI8VXNlckFnZW50PjtcbiAgY3VzdG9tVXNlckFnZW50PzogVXNlckFnZW50O1xuICBydW50aW1lOiBzdHJpbmc7XG59XG5leHBvcnQgZnVuY3Rpb24gcmVzb2x2ZVVzZXJBZ2VudENvbmZpZzxUPihcbiAgaW5wdXQ6IFQgJiBQcmV2aW91c2x5UmVzb2x2ZWQgJiBVc2VyQWdlbnRJbnB1dENvbmZpZ1xuKTogVCAmIFVzZXJBZ2VudFJlc29sdmVkQ29uZmlnIHtcbiAgcmV0dXJuIHtcbiAgICAuLi5pbnB1dCxcbiAgICBjdXN0b21Vc2VyQWdlbnQ6IHR5cGVvZiBpbnB1dC5jdXN0b21Vc2VyQWdlbnQgPT09IFwic3RyaW5nXCIgPyBbW2lucHV0LmN1c3RvbVVzZXJBZ2VudF1dIDogaW5wdXQuY3VzdG9tVXNlckFnZW50LFxuICB9O1xufVxuIl19
54589
54590/***/ }),
54591
54592/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/constants.js":
54593/*!*****************************************************************************************!*\
54594 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/constants.js ***!
54595 \*****************************************************************************************/
54596/*! exports provided: USER_AGENT, X_AMZ_USER_AGENT, SPACE, UA_ESCAPE_REGEX */
54597/***/ (function(module, __webpack_exports__, __webpack_require__) {
54598
54599"use strict";
54600__webpack_require__.r(__webpack_exports__);
54601/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USER_AGENT", function() { return USER_AGENT; });
54602/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X_AMZ_USER_AGENT", function() { return X_AMZ_USER_AGENT; });
54603/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPACE", function() { return SPACE; });
54604/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA_ESCAPE_REGEX", function() { return UA_ESCAPE_REGEX; });
54605var USER_AGENT = "user-agent";
54606var X_AMZ_USER_AGENT = "x-amz-user-agent";
54607var SPACE = " ";
54608var UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
54609//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxVQUFVLEdBQUcsWUFBWSxDQUFDO0FBRXZDLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLGtCQUFrQixDQUFDO0FBRW5ELE1BQU0sQ0FBQyxJQUFNLEtBQUssR0FBRyxHQUFHLENBQUM7QUFFekIsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLHdDQUF3QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFVTRVJfQUdFTlQgPSBcInVzZXItYWdlbnRcIjtcblxuZXhwb3J0IGNvbnN0IFhfQU1aX1VTRVJfQUdFTlQgPSBcIngtYW16LXVzZXItYWdlbnRcIjtcblxuZXhwb3J0IGNvbnN0IFNQQUNFID0gXCIgXCI7XG5cbmV4cG9ydCBjb25zdCBVQV9FU0NBUEVfUkVHRVggPSAvW15cXCFcXCNcXCRcXCVcXCZcXCdcXCpcXCtcXC1cXC5cXF5cXF9cXGBcXHxcXH5cXGRcXHddL2c7XG4iXX0=
54610
54611/***/ }),
54612
54613/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js":
54614/*!*************************************************************************************!*\
54615 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js ***!
54616 \*************************************************************************************/
54617/*! exports provided: resolveUserAgentConfig, userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin */
54618/***/ (function(module, __webpack_exports__, __webpack_require__) {
54619
54620"use strict";
54621__webpack_require__.r(__webpack_exports__);
54622/* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./configurations */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/configurations.js");
54623/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveUserAgentConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_0__["resolveUserAgentConfig"]; });
54624
54625/* 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");
54626/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "userAgentMiddleware", function() { return _user_agent_middleware__WEBPACK_IMPORTED_MODULE_1__["userAgentMiddleware"]; });
54627
54628/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getUserAgentMiddlewareOptions", function() { return _user_agent_middleware__WEBPACK_IMPORTED_MODULE_1__["getUserAgentMiddlewareOptions"]; });
54629
54630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getUserAgentPlugin", function() { return _user_agent_middleware__WEBPACK_IMPORTED_MODULE_1__["getUserAgentPlugin"]; });
54631
54632
54633
54634//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY29uZmlndXJhdGlvbnNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3VzZXItYWdlbnQtbWlkZGxld2FyZVwiO1xuIl19
54635
54636/***/ }),
54637
54638/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/user-agent-middleware.js":
54639/*!*****************************************************************************************************!*\
54640 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/user-agent-middleware.js ***!
54641 \*****************************************************************************************************/
54642/*! exports provided: userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin */
54643/***/ (function(module, __webpack_exports__, __webpack_require__) {
54644
54645"use strict";
54646__webpack_require__.r(__webpack_exports__);
54647/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "userAgentMiddleware", function() { return userAgentMiddleware; });
54648/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgentMiddlewareOptions", function() { return getUserAgentMiddlewareOptions; });
54649/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgentPlugin", function() { return getUserAgentPlugin; });
54650/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54651/* 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");
54652/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/constants.js");
54653
54654
54655
54656/**
54657 * Build user agent header sections from:
54658 * 1. runtime-specific default user agent provider;
54659 * 2. custom user agent from `customUserAgent` client config;
54660 * 3. handler execution context set by internal SDK components;
54661 * The built user agent will be set to `x-amz-user-agent` header for ALL the
54662 * runtimes.
54663 * Please note that any override to the `user-agent` or `x-amz-user-agent` header
54664 * in the HTTP request is discouraged. Please use `customUserAgent` client
54665 * config or middleware setting the `userAgent` context to generate desired user
54666 * agent.
54667 */
54668var 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 () {
54669 var request, headers, userAgent, defaultUserAgent, customUserAgent, normalUAValue;
54670 var _a, _b;
54671 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
54672 switch (_c.label) {
54673 case 0:
54674 request = args.request;
54675 if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request))
54676 return [2 /*return*/, next(args)];
54677 headers = request.headers;
54678 userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || [];
54679 return [4 /*yield*/, options.defaultUserAgentProvider()];
54680 case 1:
54681 defaultUserAgent = (_c.sent()).map(escapeUserAgent);
54682 customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || [];
54683 // Set value to AWS-specific user agent header
54684 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"]);
54685 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"]);
54686 if (options.runtime !== "browser" && normalUAValue) {
54687 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;
54688 }
54689 return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))];
54690 }
54691 });
54692}); }; }; };
54693/**
54694 * Escape the each pair according to https://tools.ietf.org/html/rfc5234 and join the pair with pattern `name/version`.
54695 * User agent name may include prefix like `md/`, `api/`, `os/` etc., we should not escape the `/` after the prefix.
54696 * @private
54697 */
54698var escapeUserAgent = function (_a) {
54699 var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), name = _b[0], version = _b[1];
54700 var prefixSeparatorIndex = name.indexOf("/");
54701 var prefix = name.substring(0, prefixSeparatorIndex); // If no prefix, prefix is just ""
54702 var uaName = name.substring(prefixSeparatorIndex + 1);
54703 if (prefix === "api") {
54704 uaName = uaName.toLowerCase();
54705 }
54706 return [prefix, uaName, version]
54707 .filter(function (item) { return item && item.length > 0; })
54708 .map(function (item) { return item === null || item === void 0 ? void 0 : item.replace(_constants__WEBPACK_IMPORTED_MODULE_2__["UA_ESCAPE_REGEX"], "_"); })
54709 .join("/");
54710};
54711var getUserAgentMiddlewareOptions = {
54712 name: "getUserAgentMiddleware",
54713 step: "build",
54714 priority: "low",
54715 tags: ["SET_USER_AGENT", "USER_AGENT"],
54716 override: true,
54717};
54718var getUserAgentPlugin = function (config) { return ({
54719 applyToStack: function (clientStack) {
54720 clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
54721 },
54722}); };
54723//# sourceMappingURL=data:application/json;base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DogXCJidWlsZFwiLFxuICBwcmlvcml0eTogXCJsb3dcIixcbiAgdGFnczogW1wiU0VUX1VTRVJfQUdFTlRcIiwgXCJVU0VSX0FHRU5UXCJdLFxuICBvdmVycmlkZTogdHJ1ZSxcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRVc2VyQWdlbnRQbHVnaW4gPSAoY29uZmlnOiBVc2VyQWdlbnRSZXNvbHZlZENvbmZpZyk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQodXNlckFnZW50TWlkZGxld2FyZShjb25maWcpLCBnZXRVc2VyQWdlbnRNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
54724
54725/***/ }),
54726
54727/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpHandler.js":
54728/*!***********************************************************************************!*\
54729 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/httpHandler.js ***!
54730 \***********************************************************************************/
54731/*! no exports provided */
54732/***/ (function(module, __webpack_exports__, __webpack_require__) {
54733
54734"use strict";
54735__webpack_require__.r(__webpack_exports__);
54736
54737//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cEhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaHR0cEhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBIYW5kbGVyT3B0aW9ucywgUmVxdWVzdEhhbmRsZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgSHR0cFJlcXVlc3QgfSBmcm9tIFwiLi9odHRwUmVxdWVzdFwiO1xuaW1wb3J0IHsgSHR0cFJlc3BvbnNlIH0gZnJvbSBcIi4vaHR0cFJlc3BvbnNlXCI7XG5cbmV4cG9ydCB0eXBlIEh0dHBIYW5kbGVyID0gUmVxdWVzdEhhbmRsZXI8SHR0cFJlcXVlc3QsIEh0dHBSZXNwb25zZSwgSHR0cEhhbmRsZXJPcHRpb25zPjtcbiJdfQ==
54738
54739/***/ }),
54740
54741/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpRequest.js":
54742/*!***********************************************************************************!*\
54743 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/httpRequest.js ***!
54744 \***********************************************************************************/
54745/*! exports provided: HttpRequest */
54746/***/ (function(module, __webpack_exports__, __webpack_require__) {
54747
54748"use strict";
54749__webpack_require__.r(__webpack_exports__);
54750/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpRequest", function() { return HttpRequest; });
54751/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54752
54753var HttpRequest = /** @class */ (function () {
54754 function HttpRequest(options) {
54755 this.method = options.method || "GET";
54756 this.hostname = options.hostname || "localhost";
54757 this.port = options.port;
54758 this.query = options.query || {};
54759 this.headers = options.headers || {};
54760 this.body = options.body;
54761 this.protocol = options.protocol
54762 ? options.protocol.substr(-1) !== ":"
54763 ? options.protocol + ":"
54764 : options.protocol
54765 : "https:";
54766 this.path = options.path ? (options.path.charAt(0) !== "/" ? "/" + options.path : options.path) : "/";
54767 }
54768 HttpRequest.isInstance = function (request) {
54769 //determine if request is a valid httpRequest
54770 if (!request)
54771 return false;
54772 var req = request;
54773 return ("method" in req &&
54774 "protocol" in req &&
54775 "hostname" in req &&
54776 "path" in req &&
54777 typeof req["query"] === "object" &&
54778 typeof req["headers"] === "object");
54779 };
54780 HttpRequest.prototype.clone = function () {
54781 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) }));
54782 if (cloned.query)
54783 cloned.query = cloneQuery(cloned.query);
54784 return cloned;
54785 };
54786 return HttpRequest;
54787}());
54788
54789function cloneQuery(query) {
54790 return Object.keys(query).reduce(function (carry, paramName) {
54791 var _a;
54792 var param = query[paramName];
54793 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));
54794 }, {});
54795}
54796//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cFJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaHR0cFJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQU1BO0lBVUUscUJBQVksT0FBMkI7UUFDckMsSUFBSSxDQUFDLE1BQU0sR0FBRyxPQUFPLENBQUMsTUFBTSxJQUFJLEtBQUssQ0FBQztRQUN0QyxJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQyxRQUFRLElBQUksV0FBVyxDQUFDO1FBQ2hELElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztRQUN6QixJQUFJLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLElBQUksRUFBRSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDckMsSUFBSSxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxRQUFRLEdBQUcsT0FBTyxDQUFDLFFBQVE7WUFDOUIsQ0FBQyxDQUFDLE9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JhbU5hbWVdO1xuICAgIHJldHVybiB7XG4gICAgICAuLi5jYXJyeSxcbiAgICAgIFtwYXJhbU5hbWVdOiBBcnJheS5pc0FycmF5KHBhcmFtKSA/IFsuLi5wYXJhbV0gOiBwYXJhbSxcbiAgICB9O1xuICB9LCB7fSk7XG59XG4iXX0=
54797
54798/***/ }),
54799
54800/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpResponse.js":
54801/*!************************************************************************************!*\
54802 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/httpResponse.js ***!
54803 \************************************************************************************/
54804/*! exports provided: HttpResponse */
54805/***/ (function(module, __webpack_exports__, __webpack_require__) {
54806
54807"use strict";
54808__webpack_require__.r(__webpack_exports__);
54809/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpResponse", function() { return HttpResponse; });
54810var HttpResponse = /** @class */ (function () {
54811 function HttpResponse(options) {
54812 this.statusCode = options.statusCode;
54813 this.headers = options.headers || {};
54814 this.body = options.body;
54815 }
54816 HttpResponse.isInstance = function (response) {
54817 //determine if response is a valid HttpResponse
54818 if (!response)
54819 return false;
54820 var resp = response;
54821 return typeof resp.statusCode === "number" && typeof resp.headers === "object";
54822 };
54823 return HttpResponse;
54824}());
54825
54826//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cFJlc3BvbnNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2h0dHBSZXNwb25zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRQTtJQUtFLHNCQUFZLE9BQTRCO1FBQ3RDLElBQUksQ0FBQyxVQUFVLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQztRQUNyQyxJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPLElBQUksRUFBRSxDQUFDO1FBQ3JDLElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQ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dGF0aWMgaXNJbnN0YW5jZShyZXNwb25zZTogdW5rbm93bik6IHJlc3BvbnNlIGlzIEh0dHBSZXNwb25zZSB7XG4gICAgLy9kZXRlcm1pbmUgaWYgcmVzcG9uc2UgaXMgYSB2YWxpZCBIdHRwUmVzcG9uc2VcbiAgICBpZiAoIXJlc3BvbnNlKSByZXR1cm4gZmFsc2U7XG4gICAgY29uc3QgcmVzcCA9IHJlc3BvbnNlIGFzIGFueTtcbiAgICByZXR1cm4gdHlwZW9mIHJlc3Auc3RhdHVzQ29kZSA9PT0gXCJudW1iZXJcIiAmJiB0eXBlb2YgcmVzcC5oZWFkZXJzID09PSBcIm9iamVjdFwiO1xuICB9XG59XG4iXX0=
54827
54828/***/ }),
54829
54830/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js":
54831/*!*****************************************************************************!*\
54832 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/index.js ***!
54833 \*****************************************************************************/
54834/*! exports provided: HttpResponse, HttpRequest, isValidHostname */
54835/***/ (function(module, __webpack_exports__, __webpack_require__) {
54836
54837"use strict";
54838__webpack_require__.r(__webpack_exports__);
54839/* harmony import */ var _httpResponse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./httpResponse */ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpResponse.js");
54840/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpResponse", function() { return _httpResponse__WEBPACK_IMPORTED_MODULE_0__["HttpResponse"]; });
54841
54842/* harmony import */ var _httpRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./httpRequest */ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpRequest.js");
54843/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpRequest", function() { return _httpRequest__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]; });
54844
54845/* harmony import */ var _httpHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./httpHandler */ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpHandler.js");
54846/* 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");
54847/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidHostname", function() { return _isValidHostname__WEBPACK_IMPORTED_MODULE_3__["isValidHostname"]; });
54848
54849
54850
54851
54852
54853//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vaHR0cFJlc3BvbnNlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9odHRwUmVxdWVzdFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vaHR0cEhhbmRsZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2lzVmFsaWRIb3N0bmFtZVwiO1xuIl19
54854
54855/***/ }),
54856
54857/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/isValidHostname.js":
54858/*!***************************************************************************************!*\
54859 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/isValidHostname.js ***!
54860 \***************************************************************************************/
54861/*! exports provided: isValidHostname */
54862/***/ (function(module, __webpack_exports__, __webpack_require__) {
54863
54864"use strict";
54865__webpack_require__.r(__webpack_exports__);
54866/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidHostname", function() { return isValidHostname; });
54867function isValidHostname(hostname) {
54868 var hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;
54869 return hostPattern.test(hostname);
54870}
54871//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNWYWxpZEhvc3RuYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lzVmFsaWRIb3N0bmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsZUFBZSxDQUFDLFFBQWdCO0lBQzlDLElBQU0sV0FBVyxHQUFHLGlDQUFpQyxDQUFDO0lBQ3RELE9BQU8sV0FBVyxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUNwQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGlzVmFsaWRIb3N0bmFtZShob3N0bmFtZTogc3RyaW5nKTogYm9vbGVhbiB7XG4gIGNvbnN0IGhvc3RQYXR0ZXJuID0gL15bYS16MC05XVthLXowLTlcXC5cXC1dKlthLXowLTldJC87XG4gIHJldHVybiBob3N0UGF0dGVybi50ZXN0KGhvc3RuYW1lKTtcbn1cbiJdfQ==
54872
54873/***/ }),
54874
54875/***/ "../../node_modules/@aws-sdk/service-error-classification/dist/es/constants.js":
54876/*!************************************************************************************************!*\
54877 !*** /root/amplify-js/node_modules/@aws-sdk/service-error-classification/dist/es/constants.js ***!
54878 \************************************************************************************************/
54879/*! exports provided: CLOCK_SKEW_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES */
54880/***/ (function(module, __webpack_exports__, __webpack_require__) {
54881
54882"use strict";
54883__webpack_require__.r(__webpack_exports__);
54884/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOCK_SKEW_ERROR_CODES", function() { return CLOCK_SKEW_ERROR_CODES; });
54885/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "THROTTLING_ERROR_CODES", function() { return THROTTLING_ERROR_CODES; });
54886/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSIENT_ERROR_CODES", function() { return TRANSIENT_ERROR_CODES; });
54887/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSIENT_ERROR_STATUS_CODES", function() { return TRANSIENT_ERROR_STATUS_CODES; });
54888/**
54889 * Errors encountered when the client clock and server clock cannot agree on the
54890 * current time.
54891 *
54892 * These errors are retryable, assuming the SDK has enabled clock skew
54893 * correction.
54894 */
54895var CLOCK_SKEW_ERROR_CODES = [
54896 "AuthFailure",
54897 "InvalidSignatureException",
54898 "RequestExpired",
54899 "RequestInTheFuture",
54900 "RequestTimeTooSkewed",
54901 "SignatureDoesNotMatch",
54902];
54903/**
54904 * Errors that indicate the SDK is being throttled.
54905 *
54906 * These errors are always retryable.
54907 */
54908var THROTTLING_ERROR_CODES = [
54909 "BandwidthLimitExceeded",
54910 "EC2ThrottledException",
54911 "LimitExceededException",
54912 "PriorRequestNotComplete",
54913 "ProvisionedThroughputExceededException",
54914 "RequestLimitExceeded",
54915 "RequestThrottled",
54916 "RequestThrottledException",
54917 "SlowDown",
54918 "ThrottledException",
54919 "Throttling",
54920 "ThrottlingException",
54921 "TooManyRequestsException",
54922 "TransactionInProgressException",
54923];
54924/**
54925 * Error codes that indicate transient issues
54926 */
54927var TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"];
54928/**
54929 * Error codes that indicate transient issues
54930 */
54931var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
54932//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSC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aGF0IGluZGljYXRlIHRyYW5zaWVudCBpc3N1ZXNcbiAqL1xuZXhwb3J0IGNvbnN0IFRSQU5TSUVOVF9FUlJPUl9DT0RFUyA9IFtcIkFib3J0RXJyb3JcIiwgXCJUaW1lb3V0RXJyb3JcIiwgXCJSZXF1ZXN0VGltZW91dFwiLCBcIlJlcXVlc3RUaW1lb3V0RXhjZXB0aW9uXCJdO1xuXG4vKipcbiAqIEVycm9yIGNvZGVzIHRoYXQgaW5kaWNhdGUgdHJhbnNpZW50IGlzc3Vlc1xuICovXG5leHBvcnQgY29uc3QgVFJBTlNJRU5UX0VSUk9SX1NUQVRVU19DT0RFUyA9IFs1MDAsIDUwMiwgNTAzLCA1MDRdO1xuIl19
54933
54934/***/ }),
54935
54936/***/ "../../node_modules/@aws-sdk/service-error-classification/dist/es/index.js":
54937/*!********************************************************************************************!*\
54938 !*** /root/amplify-js/node_modules/@aws-sdk/service-error-classification/dist/es/index.js ***!
54939 \********************************************************************************************/
54940/*! exports provided: isRetryableByTrait, isClockSkewError, isThrottlingError, isTransientError */
54941/***/ (function(module, __webpack_exports__, __webpack_require__) {
54942
54943"use strict";
54944__webpack_require__.r(__webpack_exports__);
54945/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRetryableByTrait", function() { return isRetryableByTrait; });
54946/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClockSkewError", function() { return isClockSkewError; });
54947/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isThrottlingError", function() { return isThrottlingError; });
54948/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTransientError", function() { return isTransientError; });
54949/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/service-error-classification/dist/es/constants.js");
54950
54951var isRetryableByTrait = function (error) { return error.$retryable !== undefined; };
54952var isClockSkewError = function (error) { return _constants__WEBPACK_IMPORTED_MODULE_0__["CLOCK_SKEW_ERROR_CODES"].includes(error.name); };
54953var isThrottlingError = function (error) {
54954 var _a, _b;
54955 return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 ||
54956 _constants__WEBPACK_IMPORTED_MODULE_0__["THROTTLING_ERROR_CODES"].includes(error.name) ||
54957 ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true;
54958};
54959var isTransientError = function (error) {
54960 var _a;
54961 return _constants__WEBPACK_IMPORTED_MODULE_0__["TRANSIENT_ERROR_CODES"].includes(error.name) ||
54962 _constants__WEBPACK_IMPORTED_MODULE_0__["TRANSIENT_ERROR_STATUS_CODES"].includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0);
54963};
54964//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUNMLHNCQUFzQixFQUN0QixzQkFBc0IsRUFDdEIscUJBQXFCLEVBQ3JCLDRCQUE0QixHQUM3QixNQUFNLGFBQWEsQ0FBQztBQUVyQixNQUFNLENBQUMsSUFBTSxrQkFBa0IsR0FBRyxVQUFDLEtBQWUsSUFBSyxPQUFBLEtBQUssQ0FBQyxVQUFVLEtBQUssU0FBUyxFQUE5QixDQUE4QixDQUFDO0FBRXRGLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLFVBQUMsS0FBZSxJQUFLLE9BQUEsc0JBQXNCLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBM0MsQ0FBMkMsQ0FBQztBQUVqRyxNQUFNLENBQUMsSUFBTSxpQkFBaUIsR0FBRyxVQUFDLEtBQWU7O0lBQy9DLE9BQUEsT0FBQSxLQUFLLENBQUMsU0FBUywwQ0FBRSxjQUFjLE1BQUssR0FBR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ZGUgPT09IDQyOSB8fFxuICBUSFJPVFRMSU5HX0VSUk9SX0NPREVTLmluY2x1ZGVzKGVycm9yLm5hbWUpIHx8XG4gIGVycm9yLiRyZXRyeWFibGU/LnRocm90dGxpbmcgPT0gdHJ1ZTtcblxuZXhwb3J0IGNvbnN0IGlzVHJhbnNpZW50RXJyb3IgPSAoZXJyb3I6IFNka0Vycm9yKSA9PlxuICBUUkFOU0lFTlRfRVJST1JfQ09ERVMuaW5jbHVkZXMoZXJyb3IubmFtZSkgfHxcbiAgVFJBTlNJRU5UX0VSUk9SX1NUQVRVU19DT0RFUy5pbmNsdWRlcyhlcnJvci4kbWV0YWRhdGE/Lmh0dHBTdGF0dXNDb2RlIHx8IDApO1xuIl19
54965
54966/***/ }),
54967
54968/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/client.js":
54969/*!******************************************************************************!*\
54970 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/client.js ***!
54971 \******************************************************************************/
54972/*! exports provided: Client */
54973/***/ (function(module, __webpack_exports__, __webpack_require__) {
54974
54975"use strict";
54976__webpack_require__.r(__webpack_exports__);
54977/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Client", function() { return Client; });
54978/* 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");
54979
54980var Client = /** @class */ (function () {
54981 function Client(config) {
54982 this.middlewareStack = Object(_aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__["constructStack"])();
54983 this.config = config;
54984 }
54985 Client.prototype.send = function (command, optionsOrCb, cb) {
54986 var options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined;
54987 var callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
54988 var handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
54989 if (callback) {
54990 handler(command)
54991 .then(function (result) { return callback(null, result.output); }, function (err) { return callback(err); })
54992 .catch(
54993 // prevent any errors thrown in the callback from triggering an
54994 // unhandled promise rejection
54995 function () { });
54996 }
54997 else {
54998 return handler(command).then(function (result) { return result.output; });
54999 }
55000 };
55001 Client.prototype.destroy = function () {
55002 if (this.config.requestHandler.destroy)
55003 this.config.requestHandler.destroy();
55004 };
55005 return Client;
55006}());
55007
55008//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFlM0Q7SUFRRSxnQkFBWSxNQUFtQztRQUZ4QyxvQkFBZSxHQUFHLGNBQWMsRUFBNkIsQ0FBQztRQUduRSxJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN2QixDQUFDO0lBY0QscUJBQUksR0FBSixVQUNFLE9BQStHLEVBQy9HLFdBQXNFLEVBQ3RFLEVBQTBDO1FBRTFDLElBQU0sT0FBTyxHQUFHLE9BQU8sV0FBVyxLQUFLLFVBQVUsQ0FBQyxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUM7UUFDNUUsSUFBTSxRQUFRLEdBQUcsT0FBTyxXQUFXLEtBQUssVUFBVSxDQUFDLENBQUMsQ0FBRSxXQUFxRCxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7UUFDakgsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxlQUFzQixFQUFFLElBQUksQ0FBQyxNQUFNLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDN0YsSUFBSSxRQUFRLEVBQUU7WUFDWixPQUFPLENBQUMsT0FBTyxDQUFDO2lCQUNiLElBQUksQ0FDS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9PiB7fVxuICAgICAgICApO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gaGFuZGxlcihjb21tYW5kKS50aGVuKChyZXN1bHQpID0+IHJlc3VsdC5vdXRwdXQpO1xuICAgIH1cbiAgfVxuXG4gIGRlc3Ryb3koKSB7XG4gICAgaWYgKHRoaXMuY29uZmlnLnJlcXVlc3RIYW5kbGVyLmRlc3Ryb3kpIHRoaXMuY29uZmlnLnJlcXVlc3RIYW5kbGVyLmRlc3Ryb3koKTtcbiAgfVxufVxuIl19
55009
55010/***/ }),
55011
55012/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/command.js":
55013/*!*******************************************************************************!*\
55014 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/command.js ***!
55015 \*******************************************************************************/
55016/*! exports provided: Command */
55017/***/ (function(module, __webpack_exports__, __webpack_require__) {
55018
55019"use strict";
55020__webpack_require__.r(__webpack_exports__);
55021/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return Command; });
55022/* 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");
55023
55024var Command = /** @class */ (function () {
55025 function Command() {
55026 this.middlewareStack = Object(_aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__["constructStack"])();
55027 }
55028 return Command;
55029}());
55030
55031//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUczRDtJQUFBO1FBUVcsb0JBQWUsR0FBb0MsY0FBYyxFQUFpQixDQUFDO0l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W9uczogYW55XG4gICk6IEhhbmRsZXI8SW5wdXQsIE91dHB1dD47XG59XG4iXX0=
55032
55033/***/ }),
55034
55035/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/constants.js":
55036/*!*********************************************************************************!*\
55037 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/constants.js ***!
55038 \*********************************************************************************/
55039/*! exports provided: SENSITIVE_STRING */
55040/***/ (function(module, __webpack_exports__, __webpack_require__) {
55041
55042"use strict";
55043__webpack_require__.r(__webpack_exports__);
55044/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SENSITIVE_STRING", function() { return SENSITIVE_STRING; });
55045var SENSITIVE_STRING = "***SensitiveInformation***";
55046//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBTRU5TSVRJVkVfU1RSSU5HID0gXCIqKipTZW5zaXRpdmVJbmZvcm1hdGlvbioqKlwiO1xuIl19
55047
55048/***/ }),
55049
55050/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/date-utils.js":
55051/*!**********************************************************************************!*\
55052 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/date-utils.js ***!
55053 \**********************************************************************************/
55054/*! exports provided: dateToUtcString */
55055/***/ (function(module, __webpack_exports__, __webpack_require__) {
55056
55057"use strict";
55058__webpack_require__.r(__webpack_exports__);
55059/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dateToUtcString", function() { return dateToUtcString; });
55060/**
55061 * Builds a proper UTC HttpDate timestamp from a Date object
55062 * since not all environments will have this as the expected
55063 * format.
55064 *
55065 * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString
55066 * > Prior to ECMAScript 2018, the format of the return value
55067 * > varied according to the platform. The most common return
55068 * > value was an RFC-1123 formatted date stamp, which is a
55069 * > slightly updated version of RFC-822 date stamps.
55070 */
55071// Build indexes outside so we allocate them once.
55072var days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
55073// prettier-ignore
55074var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
55075function dateToUtcString(date) {
55076 var year = date.getUTCFullYear();
55077 var month = date.getUTCMonth();
55078 var dayOfWeek = date.getUTCDay();
55079 var dayOfMonthInt = date.getUTCDate();
55080 var hoursInt = date.getUTCHours();
55081 var minutesInt = date.getUTCMinutes();
55082 var secondsInt = date.getUTCSeconds();
55083 // Build 0 prefixed strings for contents that need to be
55084 // two digits and where we get an integer back.
55085 var dayOfMonthString = dayOfMonthInt < 10 ? "0" + dayOfMonthInt : "" + dayOfMonthInt;
55086 var hoursString = hoursInt < 10 ? "0" + hoursInt : "" + hoursInt;
55087 var minutesString = minutesInt < 10 ? "0" + minutesInt : "" + minutesInt;
55088 var secondsString = secondsInt < 10 ? "0" + secondsInt : "" + secondsInt;
55089 return days[dayOfWeek] + ", " + dayOfMonthString + " " + months[month] + " " + year + " " + hoursString + ":" + minutesString + ":" + secondsString + " GMT";
55090}
55091//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kYXRlLXV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7O0dBVUc7QUFFSCxrREFBa0Q7QUFDbEQsSUFBTSxJQUFJLEdBQWtCLENBQUMsS0FBSyxFQUFFLEtBQU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JlIHdlIGdldCBhbiBpbnRlZ2VyIGJhY2suXG4gIGNvbnN0IGRheU9mTW9udGhTdHJpbmcgPSBkYXlPZk1vbnRoSW50IDwgMTAgPyBgMCR7ZGF5T2ZNb250aEludH1gIDogYCR7ZGF5T2ZNb250aEludH1gO1xuICBjb25zdCBob3Vyc1N0cmluZyA9IGhvdXJzSW50IDwgMTAgPyBgMCR7aG91cnNJbnR9YCA6IGAke2hvdXJzSW50fWA7XG4gIGNvbnN0IG1pbnV0ZXNTdHJpbmcgPSBtaW51dGVzSW50IDwgMTAgPyBgMCR7bWludXRlc0ludH1gIDogYCR7bWludXRlc0ludH1gO1xuICBjb25zdCBzZWNvbmRzU3RyaW5nID0gc2Vjb25kc0ludCA8IDEwID8gYDAke3NlY29uZHNJbnR9YCA6IGAke3NlY29uZHNJbnR9YDtcblxuICByZXR1cm4gYCR7ZGF5c1tkYXlPZldlZWtdfSwgJHtkYXlPZk1vbnRoU3RyaW5nfSAke21vbnRoc1ttb250aF19ICR7eWVhcn0gJHtob3Vyc1N0cmluZ306JHttaW51dGVzU3RyaW5nfToke3NlY29uZHNTdHJpbmd9IEdNVGA7XG59XG4iXX0=
55092
55093/***/ }),
55094
55095/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/document-type.js":
55096/*!*************************************************************************************!*\
55097 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/document-type.js ***!
55098 \*************************************************************************************/
55099/*! no exports provided */
55100/***/ (function(module, __webpack_exports__, __webpack_require__) {
55101
55102"use strict";
55103__webpack_require__.r(__webpack_exports__);
55104
55105//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQtdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kb2N1bWVudC10eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNtaXRoeSBkb2N1bWVudCB0eXBlIHZhbHVlcy5cbiAqL1xuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1uYW1lc3BhY2VcbmV4cG9ydCBuYW1lc3BhY2UgRG9jdW1lbnRUeXBlIHtcbiAgZXhwb3J0IHR5cGUgVmFsdWUgPSBTY2FsYXIgfCBTdHJ1Y3R1cmUgfCBMaXN0O1xuICBleHBvcnQgdHlwZSBTY2FsYXIgPSBzdHJpbmcgfCBudW1iZXIgfCBib29sZWFuIHwgbnVsbDtcbiAgZXhwb3J0IHR5cGUgU3RydWN0dXJlID0geyBbbWVtYmVyOiBzdHJpbmddOiBWYWx1ZSB9O1xuICBleHBvcnQgaW50ZXJmYWNlIExpc3QgZXh0ZW5kcyBBcnJheTxWYWx1ZT4ge31cbn1cbiJdfQ==
55106
55107/***/ }),
55108
55109/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/exception.js":
55110/*!*********************************************************************************!*\
55111 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/exception.js ***!
55112 \*********************************************************************************/
55113/*! no exports provided */
55114/***/ (function(module, __webpack_exports__, __webpack_require__) {
55115
55116"use strict";
55117__webpack_require__.r(__webpack_exports__);
55118
55119//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4Y2VwdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUmV0cnlhYmxlVHJhaXQgfSBmcm9tIFwiLi9yZXRyeWFibGUtdHJhaXRcIjtcblxuLyoqXG4gKiBUeXBlIHRoYXQgaXMgaW1wbGVtZW50ZWQgYnkgYWxsIFNtaXRoeSBzaGFwZXMgbWFya2VkIHdpdGggdGhlXG4gKiBlcnJvciB0cmFpdC5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBTbWl0aHlFeGNlcHRpb24ge1xuICAvKipcbiAgICogVGhlIHNoYXBlIElEIG5hbWUgb2YgdGhlIGV4Y2VwdGlvbi5cbiAgICovXG4gIHJlYWRvbmx5IG5hbWU6IHN0cmluZztcblxuICAvKipcbiAgICogV2hldGhlciB0aGUgY2xpZW50IG9yIHNlcnZlciBhcmUgYXQgZmF1bHQuXG4gICAqL1xuICByZWFkb25seSAkZmF1bHQ6IFwiY2xpZW50XCIgfCBcInNlcnZlclwiO1xuXG4gIC8qKlxuICAgKiBUaGUgc2VydmljZSB0aGF0IGVuY291bnRlcmVkIHRoZSBleGNlcHRpb24uXG4gICAqL1xuICByZWFkb25seSAkc2VydmljZT86IHN0cmluZztcblxuICAvKipcbiAgICogSW5kaWNhdGVzIHRoYXQgYW4gZXJyb3IgTUFZIGJlIHJldHJpZWQgYnkgdGhlIGNsaWVudC5cbiAgICovXG4gIHJlYWRvbmx5ICRyZXRyeWFibGU/OiBSZXRyeWFibGVUcmFpdDtcbn1cbiJdfQ==
55120
55121/***/ }),
55122
55123/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/extended-encode-uri-component.js":
55124/*!*****************************************************************************************************!*\
55125 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/extended-encode-uri-component.js ***!
55126 \*****************************************************************************************************/
55127/*! exports provided: extendedEncodeURIComponent */
55128/***/ (function(module, __webpack_exports__, __webpack_require__) {
55129
55130"use strict";
55131__webpack_require__.r(__webpack_exports__);
55132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendedEncodeURIComponent", function() { return extendedEncodeURIComponent; });
55133/**
55134 * Function that wraps encodeURIComponent to encode additional characters
55135 * to fully adhere to RFC 3986.
55136 */
55137function extendedEncodeURIComponent(str) {
55138 return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
55139 return "%" + c.charCodeAt(0).toString(16);
55140 });
55141}
55142//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZW5kZWQtZW5jb2RlLXVyaS1jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXh0ZW5kZWQtZW5jb2RlLXVyaS1jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHO0FBQ0gsTUFBTSxVQUFVLDBCQUEwQixDQUFDLEdBQVc7SUFDcEQsT0FBTyxrQkFBa0IsQ0FBQyxHQUFHLENBQUMsQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLFVBQVUsQ0FBQztRQUM1RCxPQUFPLEdBQUcsR0FBRyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUM1QyxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEZ1bmN0aW9uIHRoYXQgd3JhcHMgZW5jb2RlVVJJQ29tcG9uZW50IHRvIGVuY29kZSBhZGRpdGlvbmFsIGNoYXJhY3RlcnNcbiAqIHRvIGZ1bGx5IGFkaGVyZSB0byBSRkMgMzk4Ni5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGV4dGVuZGVkRW5jb2RlVVJJQ29tcG9uZW50KHN0cjogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIGVuY29kZVVSSUNvbXBvbmVudChzdHIpLnJlcGxhY2UoL1shJygpKl0vZywgZnVuY3Rpb24gKGMpIHtcbiAgICByZXR1cm4gXCIlXCIgKyBjLmNoYXJDb2RlQXQoMCkudG9TdHJpbmcoMTYpO1xuICB9KTtcbn1cbiJdfQ==
55143
55144/***/ }),
55145
55146/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/get-array-if-single-item.js":
55147/*!************************************************************************************************!*\
55148 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/get-array-if-single-item.js ***!
55149 \************************************************************************************************/
55150/*! exports provided: getArrayIfSingleItem */
55151/***/ (function(module, __webpack_exports__, __webpack_require__) {
55152
55153"use strict";
55154__webpack_require__.r(__webpack_exports__);
55155/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getArrayIfSingleItem", function() { return getArrayIfSingleItem; });
55156/**
55157 * The XML parser will set one K:V for a member that could
55158 * return multiple entries but only has one.
55159 */
55160var getArrayIfSingleItem = function (mayBeArray) {
55161 return Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray];
55162};
55163//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWFycmF5LWlmLXNpbmdsZS1pdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldC1hcnJheS1pZi1zaW5nbGUtaXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxVQUFJLFVBQWE7SUFDbkQsT0FBQSxLQUFLLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDO0FBQXJELENBQXFELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFRoZSBYTUwgcGFyc2VyIHdpbGwgc2V0IG9uZSBLOlYgZm9yIGEgbWVtYmVyIHRoYXQgY291bGRcbiAqIHJldHVybiBtdWx0aXBsZSBlbnRyaWVzIGJ1dCBvbmx5IGhhcyBvbmUuXG4gKi9cbmV4cG9ydCBjb25zdCBnZXRBcnJheUlmU2luZ2xlSXRlbSA9IDxUPihtYXlCZUFycmF5OiBUKTogVCB8IFRbXSA9PlxuICBBcnJheS5pc0FycmF5KG1heUJlQXJyYXkpID8gbWF5QmVBcnJheSA6IFttYXlCZUFycmF5XTtcbiJdfQ==
55164
55165/***/ }),
55166
55167/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/get-value-from-text-node.js":
55168/*!************************************************************************************************!*\
55169 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/get-value-from-text-node.js ***!
55170 \************************************************************************************************/
55171/*! exports provided: getValueFromTextNode */
55172/***/ (function(module, __webpack_exports__, __webpack_require__) {
55173
55174"use strict";
55175__webpack_require__.r(__webpack_exports__);
55176/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueFromTextNode", function() { return getValueFromTextNode; });
55177/**
55178 * Recursively parses object and populates value is node from
55179 * "#text" key if it's available
55180 */
55181var getValueFromTextNode = function (obj) {
55182 var textNodeName = "#text";
55183 for (var key in obj) {
55184 if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) {
55185 obj[key] = obj[key][textNodeName];
55186 }
55187 else if (typeof obj[key] === "object" && obj[key] !== null) {
55188 obj[key] = getValueFromTextNode(obj[key]);
55189 }
55190 }
55191 return obj;
55192};
55193//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXZhbHVlLWZyb20tdGV4dC1ub2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldC12YWx1ZS1mcm9tLXRleHQtbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxVQUFDLEdBQVE7SUFDM0MsSUFBTSxZQUFZLEdBQUcsT0FBTyxDQUFDO0lBQzdCLEtBQUssSUFBTSxHQUFHLElBQUksR0FBRyxFQUFFO1FBQ3JCLElBQUksR0FBRyxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFD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XJuIG9iajtcbn07XG4iXX0=
55194
55195/***/ }),
55196
55197/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js":
55198/*!*****************************************************************************!*\
55199 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/index.js ***!
55200 \*****************************************************************************/
55201/*! exports provided: Client, Command, extendedEncodeURIComponent, getArrayIfSingleItem, getValueFromTextNode, StringWrapper, LazyJsonString, dateToUtcString, splitEvery, SENSITIVE_STRING */
55202/***/ (function(module, __webpack_exports__, __webpack_require__) {
55203
55204"use strict";
55205__webpack_require__.r(__webpack_exports__);
55206/* harmony import */ var _client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/client.js");
55207/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Client", function() { return _client__WEBPACK_IMPORTED_MODULE_0__["Client"]; });
55208
55209/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./command */ "../../node_modules/@aws-sdk/smithy-client/dist/es/command.js");
55210/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return _command__WEBPACK_IMPORTED_MODULE_1__["Command"]; });
55211
55212/* harmony import */ var _document_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./document-type */ "../../node_modules/@aws-sdk/smithy-client/dist/es/document-type.js");
55213/* 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");
55214/* 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");
55215/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendedEncodeURIComponent", function() { return _extended_encode_uri_component__WEBPACK_IMPORTED_MODULE_4__["extendedEncodeURIComponent"]; });
55216
55217/* 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");
55218/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getArrayIfSingleItem", function() { return _get_array_if_single_item__WEBPACK_IMPORTED_MODULE_5__["getArrayIfSingleItem"]; });
55219
55220/* 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");
55221/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getValueFromTextNode", function() { return _get_value_from_text_node__WEBPACK_IMPORTED_MODULE_6__["getValueFromTextNode"]; });
55222
55223/* harmony import */ var _lazy_json__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lazy-json */ "../../node_modules/@aws-sdk/smithy-client/dist/es/lazy-json.js");
55224/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringWrapper", function() { return _lazy_json__WEBPACK_IMPORTED_MODULE_7__["StringWrapper"]; });
55225
55226/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LazyJsonString", function() { return _lazy_json__WEBPACK_IMPORTED_MODULE_7__["LazyJsonString"]; });
55227
55228/* harmony import */ var _date_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./date-utils */ "../../node_modules/@aws-sdk/smithy-client/dist/es/date-utils.js");
55229/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dateToUtcString", function() { return _date_utils__WEBPACK_IMPORTED_MODULE_8__["dateToUtcString"]; });
55230
55231/* harmony import */ var _split_every__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./split-every */ "../../node_modules/@aws-sdk/smithy-client/dist/es/split-every.js");
55232/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "splitEvery", function() { return _split_every__WEBPACK_IMPORTED_MODULE_9__["splitEvery"]; });
55233
55234/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/smithy-client/dist/es/constants.js");
55235/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SENSITIVE_STRING", function() { return _constants__WEBPACK_IMPORTED_MODULE_10__["SENSITIVE_STRING"]; });
55236
55237/* harmony import */ var _retryable_trait__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./retryable-trait */ "../../node_modules/@aws-sdk/smithy-client/dist/es/retryable-trait.js");
55238/* 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");
55239/* empty/unused harmony star reexport */
55240
55241
55242
55243
55244
55245
55246
55247
55248
55249
55250
55251
55252//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY2xpZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb21tYW5kXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kb2N1bWVudC10eXBlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9leGNlcHRpb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2V4dGVuZGVkLWVuY29kZS11cmktY29tcG9uZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9nZXQtYXJyYXktaWYtc2luZ2xlLWl0ZW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2dldC12YWx1ZS1mcm9tLXRleHQtbm9kZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGF6eS1qc29uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kYXRlLXV0aWxzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zcGxpdC1ldmVyeVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9yZXRyeWFibGUtdHJhaXRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3Nkay1lcnJvclwiO1xuIl19
55253
55254/***/ }),
55255
55256/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/lazy-json.js":
55257/*!*********************************************************************************!*\
55258 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/lazy-json.js ***!
55259 \*********************************************************************************/
55260/*! exports provided: StringWrapper, LazyJsonString */
55261/***/ (function(module, __webpack_exports__, __webpack_require__) {
55262
55263"use strict";
55264__webpack_require__.r(__webpack_exports__);
55265/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringWrapper", function() { return StringWrapper; });
55266/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LazyJsonString", function() { return LazyJsonString; });
55267/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55268/**
55269 * Lazy String holder for JSON typed contents.
55270 */
55271
55272/**
55273 * Because of https://github.com/microsoft/tslib/issues/95,
55274 * TS 'extends' shim doesn't support extending native types like String.
55275 * So here we create StringWrapper that duplicate everything from String
55276 * class including its prototype chain. So we can extend from here.
55277 */
55278// @ts-ignore StringWrapper implementation is not a simple constructor
55279var StringWrapper = function () {
55280 //@ts-ignore 'this' cannot be assigned to any, but Object.getPrototypeOf accepts any
55281 var Class = Object.getPrototypeOf(this).constructor;
55282 var Constructor = Function.bind.apply(String, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([null], arguments));
55283 //@ts-ignore Call wrapped String constructor directly, don't bother typing it.
55284 var instance = new Constructor();
55285 Object.setPrototypeOf(instance, Class.prototype);
55286 return instance;
55287};
55288StringWrapper.prototype = Object.create(String.prototype, {
55289 constructor: {
55290 value: StringWrapper,
55291 enumerable: false,
55292 writable: true,
55293 configurable: true,
55294 },
55295});
55296Object.setPrototypeOf(StringWrapper, String);
55297var LazyJsonString = /** @class */ (function (_super) {
55298 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LazyJsonString, _super);
55299 function LazyJsonString() {
55300 return _super !== null && _super.apply(this, arguments) || this;
55301 }
55302 LazyJsonString.prototype.deserializeJSON = function () {
55303 return JSON.parse(_super.prototype.toString.call(this));
55304 };
55305 LazyJsonString.prototype.toJSON = function () {
55306 return _super.prototype.toString.call(this);
55307 };
55308 LazyJsonString.fromObject = function (object) {
55309 if (object instanceof LazyJsonString) {
55310 return object;
55311 }
55312 else if (object instanceof String || typeof object === "string") {
55313 return new LazyJsonString(object);
55314 }
55315 return new LazyJsonString(JSON.stringify(object));
55316 };
55317 return LazyJsonString;
55318}(StringWrapper));
55319
55320//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1qc29uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdX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TtcblxuZXhwb3J0IGNsYXNzIExhenlKc29uU3RyaW5nIGV4dGVuZHMgU3RyaW5nV3JhcHBlciB7XG4gIGRlc2VyaWFsaXplSlNPTigpOiBhbnkge1xuICAgIHJldHVybiBKU09OLnBhcnNlKHN1cGVyLnRvU3RyaW5nKCkpO1xuICB9XG5cbiAgdG9KU09OKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHN1cGVyLnRvU3RyaW5nKCk7XG4gIH1cblxuICBzdGF0aWMgZnJvbU9iamVjdChvYmplY3Q6IGFueSk6IExhenlKc29uU3RyaW5nIHtcbiAgICBpZiAob2JqZWN0IGluc3RhbmNlb2YgTGF6eUpzb25TdHJpbmcpIHtcbiAgICAgIHJldHVybiBvYmplY3Q7XG4gICAgfSBlbHNlIGlmIChvYmplY3QgaW5zdGFuY2VvZiBTdHJpbmcgfHwgdHlwZW9mIG9iamVjdCA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgcmV0dXJuIG5ldyBMYXp5SnNvblN0cmluZyhvYmplY3QpO1xuICAgIH1cbiAgICByZXR1cm4gbmV3IExhenlKc29uU3RyaW5nKEpTT04uc3RyaW5naWZ5KG9iamVjdCkpO1xuICB9XG59XG4iXX0=
55321
55322/***/ }),
55323
55324/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/retryable-trait.js":
55325/*!***************************************************************************************!*\
55326 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/retryable-trait.js ***!
55327 \***************************************************************************************/
55328/*! no exports provided */
55329/***/ (function(module, __webpack_exports__, __webpack_require__) {
55330
55331"use strict";
55332__webpack_require__.r(__webpack_exports__);
55333
55334//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnlhYmxlLXRyYWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JldHJ5YWJsZS10cmFpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBIHN0cnVjdHVyZSBzaGFwZSB3aXRoIHRoZSBlcnJvciB0cmFpdC5cbiAqIGh0dHBzOi8vYXdzbGFicy5naXRodWIuaW8vc21pdGh5L3NwZWMvY29yZS5odG1sI3JldHJ5YWJsZS10cmFpdFxuICovXG5leHBvcnQgaW50ZXJmYWNlIFJldHJ5YWJsZVRyYWl0IHtcbiAgLyoqXG4gICAqIEluZGljYXRlcyB0aGF0IHRoZSBlcnJvciBpcyBhIHJldHJ5YWJsZSB0aHJvdHRsaW5nIGVycm9yLlxuICAgKi9cbiAgcmVhZG9ubHkgdGhyb3R0bGluZz86IGJvb2xlYW47XG59XG4iXX0=
55335
55336/***/ }),
55337
55338/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/sdk-error.js":
55339/*!*********************************************************************************!*\
55340 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/sdk-error.js ***!
55341 \*********************************************************************************/
55342/*! no exports provided */
55343/***/ (function(module, __webpack_exports__, __webpack_require__) {
55344
55345"use strict";
55346__webpack_require__.r(__webpack_exports__);
55347
55348//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2RrLWVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Nkay1lcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWV0YWRhdGFCZWFyZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgU21pdGh5RXhjZXB0aW9uIH0gZnJvbSBcIi4vZXhjZXB0aW9uXCI7XG5cbmV4cG9ydCB0eXBlIFNka0Vycm9yID0gRXJyb3IgJiBTbWl0aHlFeGNlcHRpb24gJiBNZXRhZGF0YUJlYXJlcjtcbiJdfQ==
55349
55350/***/ }),
55351
55352/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/split-every.js":
55353/*!***********************************************************************************!*\
55354 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/split-every.js ***!
55355 \***********************************************************************************/
55356/*! exports provided: splitEvery */
55357/***/ (function(module, __webpack_exports__, __webpack_require__) {
55358
55359"use strict";
55360__webpack_require__.r(__webpack_exports__);
55361/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitEvery", function() { return splitEvery; });
55362/**
55363 * Given an input string, splits based on the delimiter after a given
55364 * number of delimiters has been encountered.
55365 *
55366 * @param value The input string to split.
55367 * @param delimiter The delimiter to split on.
55368 * @param numDelimiters The number of delimiters to have encountered to split.
55369 */
55370function splitEvery(value, delimiter, numDelimiters) {
55371 // Fail if we don't have a clear number to split on.
55372 if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {
55373 throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery.");
55374 }
55375 var segments = value.split(delimiter);
55376 // Short circuit extra logic for the simple case.
55377 if (numDelimiters === 1) {
55378 return segments;
55379 }
55380 var compoundSegments = [];
55381 var currentSegment = "";
55382 for (var i = 0; i < segments.length; i++) {
55383 if (currentSegment === "") {
55384 // Start a new segment.
55385 currentSegment = segments[i];
55386 }
55387 else {
55388 // Compound the current segment with the delimiter.
55389 currentSegment += delimiter + segments[i];
55390 }
55391 if ((i + 1) % numDelimiters === 0) {
55392 // We encountered the right number of delimiters, so add the entry.
55393 compoundSegments.push(currentSegment);
55394 // And reset the current segment.
55395 currentSegment = "";
55396 }
55397 }
55398 // Handle any leftover segment portion.
55399 if (currentSegment !== "") {
55400 compoundSegments.push(currentSegment);
55401 }
55402 return compoundSegments;
55403}
55404//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXQtZXZlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3BsaXQtZXZlcnkudHMiXSwibmFtZX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mVyIHNlZ21lbnQgcG9ydGlvbi5cbiAgaWYgKGN1cnJlbnRTZWdtZW50ICE9PSBcIlwiKSB7XG4gICAgY29tcG91bmRTZWdtZW50cy5wdXNoKGN1cnJlbnRTZWdtZW50KTtcbiAgfVxuXG4gIHJldHVybiBjb21wb3VuZFNlZ21lbnRzO1xufVxuIl19
55405
55406/***/ }),
55407
55408/***/ "../../node_modules/@aws-sdk/url-parser/dist/es/index.js":
55409/*!**************************************************************************!*\
55410 !*** /root/amplify-js/node_modules/@aws-sdk/url-parser/dist/es/index.js ***!
55411 \**************************************************************************/
55412/*! exports provided: parseUrl */
55413/***/ (function(module, __webpack_exports__, __webpack_require__) {
55414
55415"use strict";
55416__webpack_require__.r(__webpack_exports__);
55417/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function() { return parseUrl; });
55418/* 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");
55419
55420var parseUrl = function (url) {
55421 var _a = new URL(url), hostname = _a.hostname, pathname = _a.pathname, port = _a.port, protocol = _a.protocol, search = _a.search;
55422 var query;
55423 if (search) {
55424 query = Object(_aws_sdk_querystring_parser__WEBPACK_IMPORTED_MODULE_0__["parseQueryString"])(search);
55425 }
55426 return {
55427 hostname: hostname,
55428 port: port ? parseInt(port) : undefined,
55429 protocol: protocol,
55430 path: pathname,
55431 query: query,
55432 };
55433};
55434//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFHL0QsTUFBTSxDQUFD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Ckge1xuICAgIHF1ZXJ5ID0gcGFyc2VRdWVyeVN0cmluZyhzZWFyY2gpO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICBob3N0bmFtZSxcbiAgICBwb3J0OiBwb3J0ID8gcGFyc2VJbnQocG9ydCkgOiB1bmRlZmluZWQsXG4gICAgcHJvdG9jb2wsXG4gICAgcGF0aDogcGF0aG5hbWUsXG4gICAgcXVlcnksXG4gIH07XG59O1xuIl19
55435
55436/***/ }),
55437
55438/***/ "../../node_modules/@aws-sdk/url-parser/node_modules/@aws-sdk/querystring-parser/dist/es/index.js":
55439/*!*******************************************************************************************************************!*\
55440 !*** /root/amplify-js/node_modules/@aws-sdk/url-parser/node_modules/@aws-sdk/querystring-parser/dist/es/index.js ***!
55441 \*******************************************************************************************************************/
55442/*! exports provided: parseQueryString */
55443/***/ (function(module, __webpack_exports__, __webpack_require__) {
55444
55445"use strict";
55446__webpack_require__.r(__webpack_exports__);
55447/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseQueryString", function() { return parseQueryString; });
55448/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55449
55450function parseQueryString(querystring) {
55451 var e_1, _a;
55452 var query = {};
55453 querystring = querystring.replace(/^\?/, "");
55454 if (querystring) {
55455 try {
55456 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(querystring.split("&")), _c = _b.next(); !_c.done; _c = _b.next()) {
55457 var pair = _c.value;
55458 var _d = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(pair.split("="), 2), key = _d[0], _e = _d[1], value = _e === void 0 ? null : _e;
55459 key = decodeURIComponent(key);
55460 if (value) {
55461 value = decodeURIComponent(value);
55462 }
55463 if (!(key in query)) {
55464 query[key] = value;
55465 }
55466 else if (Array.isArray(query[key])) {
55467 query[key].push(value);
55468 }
55469 else {
55470 query[key] = [query[key], value];
55471 }
55472 }
55473 }
55474 catch (e_1_1) { e_1 = { error: e_1_1 }; }
55475 finally {
55476 try {
55477 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
55478 }
55479 finally { if (e_1) throw e_1.error; }
55480 }
55481 }
55482 return query;
55483}
55484//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLE1BQU0sVUFBVSxnQkFBZ0IsQ0FBQyxXQUFtQjs7SUFDbEQsSUFBTSxLQUFLLEdBQXNCLEVBQUUsQ0FBQztJQUNwQyxXQUFXLEdBQUcsV0FBVyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFFN0MsSUFBSSxXQUFXLEVBQUU7O1lBQ2YsS0FBbUIsSUFBQSxLQUFBLFNBQUEsV0FBVyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQSxnQkFBQSw0QkFBRTtnQkFBdEMsSUFBTSxJQUFJLFdBQUE7Z0JBQ1QsSUFBQSxLQUFBLE9BQXNCLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLElBQUEsRUFBcEMsR0FBRyxRQUFBLEVBQUUsVUFBWSxFQUFaLEtBQUssbUJBQUcsSUFBSSxLQUFtQixDQUFDO2dCQUMxQyxHQUFHLEdBQUcsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUM7Z0JBQzlCLElBQUksS0FBSyxFQUFFO29CQUNULEtBQUssR0FBRyxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsQ0FBQztpQkFDbkM7Z0JBQ0QsSUFBSSxDQUFDLENBQUMsR0FBRyxJQUFJLEtBQUssQ0FBQyxFQUFFO29CQUNuQixLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsS0FBSyxDQUFDO2lCQU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0gPSB2YWx1ZTtcbiAgICAgIH0gZWxzZSBpZiAoQXJyYXkuaXNBcnJheShxdWVyeVtrZXldKSkge1xuICAgICAgICAocXVlcnlba2V5XSBhcyBBcnJheTxzdHJpbmc+KS5wdXNoKHZhbHVlIGFzIHN0cmluZyk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBxdWVyeVtrZXldID0gW3F1ZXJ5W2tleV0gYXMgc3RyaW5nLCB2YWx1ZSBhcyBzdHJpbmddO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIHJldHVybiBxdWVyeTtcbn1cbiJdfQ==
55485
55486/***/ }),
55487
55488/***/ "../../node_modules/@aws-sdk/util-base64-browser/dist/es/index.js":
55489/*!***********************************************************************************!*\
55490 !*** /root/amplify-js/node_modules/@aws-sdk/util-base64-browser/dist/es/index.js ***!
55491 \***********************************************************************************/
55492/*! exports provided: fromBase64, toBase64 */
55493/***/ (function(module, __webpack_exports__, __webpack_require__) {
55494
55495"use strict";
55496__webpack_require__.r(__webpack_exports__);
55497/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromBase64", function() { return fromBase64; });
55498/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toBase64", function() { return toBase64; });
55499var alphabetByEncoding = {};
55500var alphabetByValue = new Array(64);
55501for (var i = 0, start = "A".charCodeAt(0), limit = "Z".charCodeAt(0); i + start <= limit; i++) {
55502 var char = String.fromCharCode(i + start);
55503 alphabetByEncoding[char] = i;
55504 alphabetByValue[i] = char;
55505}
55506for (var i = 0, start = "a".charCodeAt(0), limit = "z".charCodeAt(0); i + start <= limit; i++) {
55507 var char = String.fromCharCode(i + start);
55508 var index = i + 26;
55509 alphabetByEncoding[char] = index;
55510 alphabetByValue[index] = char;
55511}
55512for (var i = 0; i < 10; i++) {
55513 alphabetByEncoding[i.toString(10)] = i + 52;
55514 var char = i.toString(10);
55515 var index = i + 52;
55516 alphabetByEncoding[char] = index;
55517 alphabetByValue[index] = char;
55518}
55519alphabetByEncoding["+"] = 62;
55520alphabetByValue[62] = "+";
55521alphabetByEncoding["/"] = 63;
55522alphabetByValue[63] = "/";
55523var bitsPerLetter = 6;
55524var bitsPerByte = 8;
55525var maxLetterValue = 63;
55526/**
55527 * Converts a base-64 encoded string to a Uint8Array of bytes.
55528 *
55529 * @param input The base-64 encoded string
55530 *
55531 * @see https://tools.ietf.org/html/rfc4648#section-4
55532 */
55533function fromBase64(input) {
55534 var totalByteLength = (input.length / 4) * 3;
55535 if (input.substr(-2) === "==") {
55536 totalByteLength -= 2;
55537 }
55538 else if (input.substr(-1) === "=") {
55539 totalByteLength--;
55540 }
55541 var out = new ArrayBuffer(totalByteLength);
55542 var dataView = new DataView(out);
55543 for (var i = 0; i < input.length; i += 4) {
55544 var bits = 0;
55545 var bitLength = 0;
55546 for (var j = i, limit = i + 3; j <= limit; j++) {
55547 if (input[j] !== "=") {
55548 bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter);
55549 bitLength += bitsPerLetter;
55550 }
55551 else {
55552 bits >>= bitsPerLetter;
55553 }
55554 }
55555 var chunkOffset = (i / 4) * 3;
55556 bits >>= bitLength % bitsPerByte;
55557 var byteLength = Math.floor(bitLength / bitsPerByte);
55558 for (var k = 0; k < byteLength; k++) {
55559 var offset = (byteLength - k - 1) * bitsPerByte;
55560 dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset);
55561 }
55562 }
55563 return new Uint8Array(out);
55564}
55565/**
55566 * Converts a Uint8Array of binary data to a base-64 encoded string.
55567 *
55568 * @param input The binary data to encode
55569 *
55570 * @see https://tools.ietf.org/html/rfc4648#section-4
55571 */
55572function toBase64(input) {
55573 var str = "";
55574 for (var i = 0; i < input.length; i += 3) {
55575 var bits = 0;
55576 var bitLength = 0;
55577 for (var j = i, limit = Math.min(i + 3, input.length); j < limit; j++) {
55578 bits |= input[j] << ((limit - j - 1) * bitsPerByte);
55579 bitLength += bitsPerByte;
55580 }
55581 var bitClusterCount = Math.ceil(bitLength / bitsPerLetter);
55582 bits <<= bitClusterCount * bitsPerLetter - bitLength;
55583 for (var k = 1; k <= bitClusterCount; k++) {
55584 var offset = (bitClusterCount - k) * bitsPerLetter;
55585 str += alphabetByValue[(bits & (maxLetterValue << offset)) >> offset];
55586 }
55587 str += "==".slice(0, 4 - bitClusterCount);
55588 }
55589 return str;
55590}
55591//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBTSxrQkFBa0IsR0FBOEIsRUFBRSxDQUFDO0FBQ3pELElBQU0sZUFBZSxHQUFrQixJQUFJLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxLQUFLLEdBQUcsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsRUFBRSxLQUFLLEdBQUcsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEdBQUcsS0FBSyxJQUFJLEtBQUssRUFBRSxDQUFDLEVBQUUsRUFBRTtJQUM3RixJQUFNLElBQUksR0FBRyxNQUFNLENBQUMsWUFBWSxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQztJQUM1QyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDN0IsZUFBZSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQztDQUMzQjtBQUVELEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLEtBQUssR0FBRyxHQUFHLENBQUMsVUFBVSxDQUFDLE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593/***/ }),
55594
55595/***/ "../../node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js":
55596/*!****************************************************************************************!*\
55597 !*** /root/amplify-js/node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js ***!
55598 \****************************************************************************************/
55599/*! exports provided: calculateBodyLength */
55600/***/ (function(module, __webpack_exports__, __webpack_require__) {
55601
55602"use strict";
55603__webpack_require__.r(__webpack_exports__);
55604/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBodyLength", function() { return calculateBodyLength; });
55605function calculateBodyLength(body) {
55606 if (typeof body === "string") {
55607 var len = body.length;
55608 for (var i = len - 1; i >= 0; i--) {
55609 var code = body.charCodeAt(i);
55610 if (code > 0x7f && code <= 0x7ff)
55611 len++;
55612 else if (code > 0x7ff && code <= 0xffff)
55613 len += 2;
55614 }
55615 return len;
55616 }
55617 else if (typeof body.byteLength === "number") {
55618 // handles Uint8Array, ArrayBuffer, Buffer, and ArrayBufferView
55619 return body.byteLength;
55620 }
55621 else if (typeof body.size === "number") {
55622 // handles browser File object
55623 return body.size;
55624 }
55625}
55626//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLG1CQUFtQixDQUFDLElBQVM7SUFDM0MsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLEVBQUU7UUFDNUIsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztRQUV0QixLQUFLLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUNqQyxJQUFNLElBQUksR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyx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gVWludDhBcnJheSwgQXJyYXlCdWZmZXIsIEJ1ZmZlciwgYW5kIEFycmF5QnVmZmVyVmlld1xuICAgIHJldHVybiBib2R5LmJ5dGVMZW5ndGg7XG4gIH0gZWxzZSBpZiAodHlwZW9mIGJvZHkuc2l6ZSA9PT0gXCJudW1iZXJcIikge1xuICAgIC8vIGhhbmRsZXMgYnJvd3NlciBGaWxlIG9iamVjdFxuICAgIHJldHVybiBib2R5LnNpemU7XG4gIH1cbn1cbiJdfQ==
55627
55628/***/ }),
55629
55630/***/ "../../node_modules/@aws-sdk/util-locate-window/dist/es/index.js":
55631/*!**********************************************************************************!*\
55632 !*** /root/amplify-js/node_modules/@aws-sdk/util-locate-window/dist/es/index.js ***!
55633 \**********************************************************************************/
55634/*! exports provided: locateWindow */
55635/***/ (function(module, __webpack_exports__, __webpack_require__) {
55636
55637"use strict";
55638__webpack_require__.r(__webpack_exports__);
55639/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "locateWindow", function() { return locateWindow; });
55640var fallbackWindow = {};
55641/**
55642 * Locates the global scope for a browser or browser-like environment. If
55643 * neither `window` nor `self` is defined by the environment, the same object
55644 * will be returned on each invocation.
55645 */
55646function locateWindow() {
55647 if (typeof window !== "undefined") {
55648 return window;
55649 }
55650 else if (typeof self !== "undefined") {
55651 return self;
55652 }
55653 return fallbackWindow;
55654}
55655//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBTSxjQUFjLEdBQUcsRUFBWSxDQUFDO0FBRXBDOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsWUFBWTtJQUMxQixJQUFJLE9BQU8sTUFBTSxLQUFLLFdBQVcsRUFBRTtRQUNqQyxPQUFPLE1BQU0sQ0FBQztLQUNmO1NBQU0sSUFBSSxPQUFPLElBQUksS0FBSyxXQUFXLEVBQUU7UUFDdEMsT0FBTyxJQUFJLENBQUM7S0FDYjtJQUVELE9BQU8sY0FBYyxDQUFDO0FBQ3hCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBmYWxsYmFja1dpbmRvdyA9IHt9IGFzIFdpbmRvdztcblxuLyoqXG4gKiBMb2NhdGVzIHRoZSBnbG9iYWwgc2NvcGUgZm9yIGEgYnJvd3NlciBvciBicm93c2VyLWxpa2UgZW52aXJvbm1lbnQuIElmXG4gKiBuZWl0aGVyIGB3aW5kb3dgIG5vciBgc2VsZmAgaXMgZGVmaW5lZCBieSB0aGUgZW52aXJvbm1lbnQsIHRoZSBzYW1lIG9iamVjdFxuICogd2lsbCBiZSByZXR1cm5lZCBvbiBlYWNoIGludm9jYXRpb24uXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBsb2NhdGVXaW5kb3coKTogV2luZG93IHtcbiAgaWYgKHR5cGVvZiB3aW5kb3cgIT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICByZXR1cm4gd2luZG93O1xuICB9IGVsc2UgaWYgKHR5cGVvZiBzZWxmICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgcmV0dXJuIHNlbGY7XG4gIH1cblxuICByZXR1cm4gZmFsbGJhY2tXaW5kb3c7XG59XG4iXX0=
55656
55657/***/ }),
55658
55659/***/ "../../node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js":
55660/*!***************************************************************************************!*\
55661 !*** /root/amplify-js/node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js ***!
55662 \***************************************************************************************/
55663/*! exports provided: defaultUserAgent */
55664/***/ (function(module, __webpack_exports__, __webpack_require__) {
55665
55666"use strict";
55667__webpack_require__.r(__webpack_exports__);
55668/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultUserAgent", function() { return defaultUserAgent; });
55669/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55670/* harmony import */ var bowser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! bowser */ "../../node_modules/bowser/es5.js");
55671/* harmony import */ var bowser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(bowser__WEBPACK_IMPORTED_MODULE_1__);
55672
55673
55674/**
55675 * Default provider to the user agent in browsers. It's a best effort to infer
55676 * the device information. It uses bowser library to detect the browser and virsion
55677 */
55678var defaultUserAgent = function (_a) {
55679 var serviceId = _a.serviceId, clientVersion = _a.clientVersion;
55680 return function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55681 var parsedUA, sections;
55682 var _a, _b, _c, _d, _e, _f, _g;
55683 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
55684 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;
55685 sections = [
55686 // sdk-metadata
55687 ["aws-sdk-js", clientVersion],
55688 // os-metadata
55689 ["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],
55690 // language-metadata
55691 // ECMAScript edition doesn't matter in JS.
55692 ["lang/js"],
55693 // browser vendor and version.
55694 ["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")],
55695 ];
55696 if (serviceId) {
55697 // api-metadata
55698 // service Id may not appear in non-AWS clients
55699 sections.push(["api/" + serviceId, clientVersion]);
55700 }
55701 return [2 /*return*/, sections];
55702 });
55703 }); };
55704};
55705//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUk1Qjs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyxVQUFDLEVBR1A7UUFGeEIsU0FBUyxlQUFBLEVBQ1QsYUFBYSxtQkFBQTtJQUNxQyxPQUFBOzs7O1lBQzVDLFFBQVEsR0FBRyxPQUFBLE1BQU0sYUFBTixNQUFNLHVCQUFOLE1BQU0sQ0FBRSxTQUFTLDBDQUFFLFNBQVMsRUFBQyxDQUFDLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUM7WUFDL0YsUUFBUSxHQUFjO2dCQUMxQixlQUFlO2dCQUNmLENBQUMsWUFBWSxFQUFFLGFBQWEsQ0FBQztnQkFDN0IsY0FBYztnQkFDZCxDQUFDLFNBQU0sT0FBQSxRQUFRLGFBQVIsUUFBUSx1QkFBUixRQUFRLENBQUUsRUFBRSwwQ0FBRSxJQUFJLEtBQUksT0FBTyxDQUFFLFFBQUUsUUFBUSxhQUFSLFFBQVEsdUJBQVIsUUFBUSxDQUFFLEVBQUUsMENBQUUsT0FBTyxDQUFDO2dCQUM5RCxvQkFBb0I7Z0JBQ3BCLDJDQUEyQztnQkFDM0MsQ0FBQyxTQUFTLENBQUM7Z0JBQ1gsOEJBQThCO2dCQUM5QixDQUFDLFlBQVksRUFBRSx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nN0IHBhcnNlZFVBID0gd2luZG93Py5uYXZpZ2F0b3I/LnVzZXJBZ2VudCA/IGJvd3Nlci5wYXJzZSh3aW5kb3cubmF2aWdhdG9yLnVzZXJBZ2VudCkgOiB1bmRlZmluZWQ7XG4gIGNvbnN0IHNlY3Rpb25zOiBVc2VyQWdlbnQgPSBbXG4gICAgLy8gc2RrLW1ldGFkYXRhXG4gICAgW1wiYXdzLXNkay1qc1wiLCBjbGllbnRWZXJzaW9uXSxcbiAgICAvLyBvcy1tZXRhZGF0YVxuICAgIFtgb3MvJHtwYXJzZWRVQT8ub3M/Lm5hbWUgfHwgXCJvdGhlclwifWAsIHBhcnNlZFVBPy5vcz8udmVyc2lvbl0sXG4gICAgLy8gbGFuZ3VhZ2UtbWV0YWRhdGFcbiAgICAvLyBFQ01BU2NyaXB0IGVkaXRpb24gZG9lc24ndCBtYXR0ZXIgaW4gSlMuXG4gICAgW1wibGFuZy9qc1wiXSxcbiAgICAvLyBicm93c2VyIHZlbmRvciBhbmQgdmVyc2lvbi5cbiAgICBbXCJtZC9icm93c2VyXCIsIGAke3BhcnNlZFVBPy5icm93c2VyPy5uYW1lID8/IFwidW5rbm93blwifV8ke3BhcnNlZFVBPy5icm93c2VyPy52ZXJzaW9uID8/IFwidW5rbm93blwifWBdLFxuICBdO1xuXG4gIGlmIChzZXJ2aWNlSWQpIHtcbiAgICAvLyBhcGktbWV0YWRhdGFcbiAgICAvLyBzZXJ2aWNlIElkIG1heSBub3QgYXBwZWFyIGluIG5vbi1BV1MgY2xpZW50c1xuICAgIHNlY3Rpb25zLnB1c2goW2BhcGkvJHtzZXJ2aWNlSWR9YCwgY2xpZW50VmVyc2lvbl0pO1xuICB9XG5cbiAgcmV0dXJuIHNlY3Rpb25zO1xufTtcbiJdfQ==
55706
55707/***/ }),
55708
55709/***/ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js":
55710/*!*********************************************************************************!*\
55711 !*** /root/amplify-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js ***!
55712 \*********************************************************************************/
55713/*! exports provided: fromUtf8, toUtf8 */
55714/***/ (function(module, __webpack_exports__, __webpack_require__) {
55715
55716"use strict";
55717__webpack_require__.r(__webpack_exports__);
55718/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
55719/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
55720/* harmony import */ var _pureJs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pureJs */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js");
55721/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js");
55722
55723
55724var fromUtf8 = function (input) {
55725 return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
55726};
55727var toUtf8 = function (input) {
55728 return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
55729};
55730//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsSUFBSSxVQUFVLEVBQUUsTUFBTSxJQUFJLFFBQVEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsUUFBUSxJQUFJLG1CQUFtQixFQUFFLE1BQU0sSUFBSSxpQkFBaUIsRUFBRSx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b25zdCB0b1V0ZjggPSAoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcgPT5cbiAgdHlwZW9mIFRleHREZWNvZGVyID09PSBcImZ1bmN0aW9uXCIgPyB0ZXh0RW5jb2RlclRvVXRmOChpbnB1dCkgOiBqc1RvVXRmOChpbnB1dCk7XG4iXX0=
55731
55732/***/ }),
55733
55734/***/ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js":
55735/*!**********************************************************************************!*\
55736 !*** /root/amplify-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js ***!
55737 \**********************************************************************************/
55738/*! exports provided: fromUtf8, toUtf8 */
55739/***/ (function(module, __webpack_exports__, __webpack_require__) {
55740
55741"use strict";
55742__webpack_require__.r(__webpack_exports__);
55743/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
55744/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
55745/**
55746 * Converts a JS string from its native UCS-2/UTF-16 representation into a
55747 * Uint8Array of the bytes used to represent the equivalent characters in UTF-8.
55748 *
55749 * Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google
55750 * Closure library, though updated to use typed arrays.
55751 */
55752var fromUtf8 = function (input) {
55753 var bytes = [];
55754 for (var i = 0, len = input.length; i < len; i++) {
55755 var value = input.charCodeAt(i);
55756 if (value < 0x80) {
55757 bytes.push(value);
55758 }
55759 else if (value < 0x800) {
55760 bytes.push((value >> 6) | 192, (value & 63) | 128);
55761 }
55762 else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
55763 var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023);
55764 bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128);
55765 }
55766 else {
55767 bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128);
55768 }
55769 }
55770 return Uint8Array.from(bytes);
55771};
55772/**
55773 * Converts a typed array of bytes containing UTF-8 data into a native JS
55774 * string.
55775 *
55776 * Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the
55777 * Google Closure library, though updated to use typed arrays and to better
55778 * handle astral plane code points.
55779 */
55780var toUtf8 = function (input) {
55781 var decoded = "";
55782 for (var i = 0, len = input.length; i < len; i++) {
55783 var byte = input[i];
55784 if (byte < 0x80) {
55785 decoded += String.fromCharCode(byte);
55786 }
55787 else if (192 <= byte && byte < 224) {
55788 var nextByte = input[++i];
55789 decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63));
55790 }
55791 else if (240 <= byte && byte < 365) {
55792 var surrogatePair = [byte, input[++i], input[++i], input[++i]];
55793 var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%");
55794 decoded += decodeURIComponent(encoded);
55795 }
55796 else {
55797 decoded += String.fromCharCode(((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63));
55798 }
55799 }
55800 return decoded;
55801};
55802//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVyZUpzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3B1cmVKcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxNQUFNLENBQUMsSUFBTSxRQUFRLEdBQUcsVUFBQyxLQUFhO0lBQ3BDLElBQU0sS0FBSyxHQUFrQixFQUFFLENBQUM7SUFDaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsR0FBRyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUNoRCxJQUFNLEtBQUssR0FBRyxLQ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 "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js":
55807/*!*********************************************************************************************!*\
55808 !*** /root/amplify-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js ***!
55809 \*********************************************************************************************/
55810/*! exports provided: fromUtf8, toUtf8 */
55811/***/ (function(module, __webpack_exports__, __webpack_require__) {
55812
55813"use strict";
55814__webpack_require__.r(__webpack_exports__);
55815/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
55816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
55817function fromUtf8(input) {
55818 return new TextEncoder().encode(input);
55819}
55820function toUtf8(input) {
55821 return new TextDecoder("utf-8").decode(input);
55822}
55823//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hhdHdnRW5jb2RpbmdBcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd2hhdHdnRW5jb2RpbmdBcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNBLE1BQU0sVUFBVSxRQUFRLENBQUMsS0FBYTtJQUNwQyxPQUFPLElBQUksV0FBVyxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ3pDLENBQUM7QUFFRCxNQUFNLFVBQVUsTUFBTSxDQUFDLEtBQWlCO0lBQ3RDLE9BQU8sSUFBSSxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgZGVjbGFyYXRpb24gb2YgdGhlIGdsb2JhbCBUZXh0RW5jb2RlciBhbmQgVGV4dERlY29kZXIgY29uc3RydWN0b3JzLlxuICpcbiAqIEBzZWUgaHR0cHM6Ly9lbmNvZGluZy5zcGVjL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4dERlY29kZXJDb25zdHJ1Y3RvcjtcblxuZGVjbGFyZSBjb25zdCBUZXh0RW5jb2RlcjogRW5jb2RpbmcuVGV4dEVuY29kZXJDb25zdHJ1Y3RvcjtcblxuZXhwb3J0IGZ1bmN0aW9uIGZyb21VdGY4KGlucHV0OiBzdHJpbmcpOiBVaW50OEFycmF5IHtcbiAgcmV0dXJuIG5ldyBUZXh0RW5jb2RlcigpLmVuY29kZShpbnB1dCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiB0b1V0ZjgoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcge1xuICByZXR1cm4gbmV3IFRleHREZWNvZGVyKFwidXRmLThcIikuZGVjb2RlKGlucHV0KTtcbn1cbiJdfQ==
55824
55825/***/ }),
55826
55827/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/createWaiter.js":
55828/*!**********************************************************************************!*\
55829 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/createWaiter.js ***!
55830 \**********************************************************************************/
55831/*! exports provided: createWaiter */
55832/***/ (function(module, __webpack_exports__, __webpack_require__) {
55833
55834"use strict";
55835__webpack_require__.r(__webpack_exports__);
55836/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createWaiter", function() { return createWaiter; });
55837/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55838/* harmony import */ var _poller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./poller */ "../../node_modules/@aws-sdk/util-waiter/dist/es/poller.js");
55839/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/index.js");
55840/* harmony import */ var _waiter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js");
55841
55842
55843
55844
55845var abortTimeout = function (abortSignal) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55846 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
55847 return [2 /*return*/, new Promise(function (resolve) {
55848 abortSignal.onabort = function () { return resolve({ state: _waiter__WEBPACK_IMPORTED_MODULE_3__["WaiterState"].ABORTED }); };
55849 })];
55850 });
55851}); };
55852/**
55853 * Create a waiter promise that only resolves when:
55854 * 1. Abort controller is signaled
55855 * 2. Max wait time is reached
55856 * 3. `acceptorChecks` succeeds, or fails
55857 * Otherwise, it invokes `acceptorChecks` with exponential-backoff delay.
55858 *
55859 * @internal
55860 */
55861var createWaiter = function (options, input, acceptorChecks) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55862 var params, exitConditions;
55863 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
55864 params = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _waiter__WEBPACK_IMPORTED_MODULE_3__["waiterServiceDefaults"]), options);
55865 Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateWaiterOptions"])(params);
55866 exitConditions = [Object(_poller__WEBPACK_IMPORTED_MODULE_1__["runPolling"])(params, input, acceptorChecks)];
55867 if (options.abortController) {
55868 exitConditions.push(abortTimeout(options.abortController.signal));
55869 }
55870 return [2 /*return*/, Promise.race(exitConditions)];
55871 });
55872}); };
55873//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlV2FpdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NyZWF0ZVdhaXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFV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ZW50LCBpbnB1dDogSW5wdXQpID0+IFByb21pc2U8V2FpdGVyUmVzdWx0PlxuKTogUHJvbWlzZTxXYWl0ZXJSZXN1bHQ+ID0+IHtcbiAgY29uc3QgcGFyYW1zID0ge1xuICAgIC4uLndhaXRlclNlcnZpY2VEZWZhdWx0cyxcbiAgICAuLi5vcHRpb25zLFxuICB9O1xuICB2YWxpZGF0ZVdhaXRlck9wdGlvbnMocGFyYW1zKTtcblxuICBjb25zdCBleGl0Q29uZGl0aW9ucyA9IFtydW5Qb2xsaW5nPENsaWVudCwgSW5wdXQ+KHBhcmFtcywgaW5wdXQsIGFjY2VwdG9yQ2hlY2tzKV07XG4gIGlmIChvcHRpb25zLmFib3J0Q29udHJvbGxlcikge1xuICAgIGV4aXRDb25kaXRpb25zLnB1c2goYWJvcnRUaW1lb3V0KG9wdGlvbnMuYWJvcnRDb250cm9sbGVyLnNpZ25hbCkpO1xuICB9XG4gIHJldHVybiBQcm9taXNlLnJhY2UoZXhpdENvbmRpdGlvbnMpO1xufTtcbiJdfQ==
55874
55875/***/ }),
55876
55877/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/index.js":
55878/*!***************************************************************************!*\
55879 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/index.js ***!
55880 \***************************************************************************/
55881/*! exports provided: createWaiter, waiterServiceDefaults, WaiterState */
55882/***/ (function(module, __webpack_exports__, __webpack_require__) {
55883
55884"use strict";
55885__webpack_require__.r(__webpack_exports__);
55886/* harmony import */ var _createWaiter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWaiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/createWaiter.js");
55887/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createWaiter", function() { return _createWaiter__WEBPACK_IMPORTED_MODULE_0__["createWaiter"]; });
55888
55889/* harmony import */ var _waiter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js");
55890/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "waiterServiceDefaults", function() { return _waiter__WEBPACK_IMPORTED_MODULE_1__["waiterServiceDefaults"]; });
55891
55892/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaiterState", function() { return _waiter__WEBPACK_IMPORTED_MODULE_1__["WaiterState"]; });
55893
55894
55895
55896//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLFVBQVUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NyZWF0ZVdhaXRlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vd2FpdGVyXCI7XG4iXX0=
55897
55898/***/ }),
55899
55900/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/poller.js":
55901/*!****************************************************************************!*\
55902 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/poller.js ***!
55903 \****************************************************************************/
55904/*! exports provided: runPolling */
55905/***/ (function(module, __webpack_exports__, __webpack_require__) {
55906
55907"use strict";
55908__webpack_require__.r(__webpack_exports__);
55909/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runPolling", function() { return runPolling; });
55910/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55911/* harmony import */ var _utils_sleep__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/sleep */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js");
55912/* harmony import */ var _waiter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js");
55913
55914
55915
55916/**
55917 * Reference: https://awslabs.github.io/smithy/1.0/spec/waiters.html#waiter-retries
55918 */
55919var exponentialBackoffWithJitter = function (minDelay, maxDelay, attemptCeiling, attempt) {
55920 if (attempt > attemptCeiling)
55921 return maxDelay;
55922 var delay = minDelay * Math.pow(2, (attempt - 1));
55923 return randomInRange(minDelay, delay);
55924};
55925var randomInRange = function (min, max) { return min + Math.random() * (max - min); };
55926/**
55927 * Function that runs polling as part of waiters. This will make one inital attempt and then
55928 * subsequent attempts with an increasing delay.
55929 * @param params options passed to the waiter.
55930 * @param client AWS SDK Client
55931 * @param input client input
55932 * @param stateChecker function that checks the acceptor states on each poll.
55933 */
55934var runPolling = function (_a, input, acceptorChecks) {
55935 var minDelay = _a.minDelay, maxDelay = _a.maxDelay, maxWaitTime = _a.maxWaitTime, abortController = _a.abortController, client = _a.client;
55936 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55937 var state, currentAttempt, waitUntil, attemptCeiling, delay, state_1;
55938 var _b;
55939 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
55940 switch (_c.label) {
55941 case 0: return [4 /*yield*/, acceptorChecks(client, input)];
55942 case 1:
55943 state = (_c.sent()).state;
55944 if (state !== _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY) {
55945 return [2 /*return*/, { state: state }];
55946 }
55947 currentAttempt = 1;
55948 waitUntil = Date.now() + maxWaitTime * 1000;
55949 attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1;
55950 _c.label = 2;
55951 case 2:
55952 if (false) {}
55953 if ((_b = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _b === void 0 ? void 0 : _b.aborted) {
55954 return [2 /*return*/, { state: _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].ABORTED }];
55955 }
55956 delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt);
55957 // Resolve the promise explicitly at timeout or aborted. Otherwise this while loop will keep making API call until
55958 // `acceptorCheck` returns non-retry status, even with the Promise.race() outside.
55959 if (Date.now() + delay * 1000 > waitUntil) {
55960 return [2 /*return*/, { state: _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].TIMEOUT }];
55961 }
55962 return [4 /*yield*/, Object(_utils_sleep__WEBPACK_IMPORTED_MODULE_1__["sleep"])(delay)];
55963 case 3:
55964 _c.sent();
55965 return [4 /*yield*/, acceptorChecks(client, input)];
55966 case 4:
55967 state_1 = (_c.sent()).state;
55968 if (state_1 !== _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY) {
55969 return [2 /*return*/, { state: state_1 }];
55970 }
55971 currentAttempt += 1;
55972 return [3 /*break*/, 2];
55973 case 5: return [2 /*return*/];
55974 }
55975 });
55976 });
55977};
55978//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9sbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3BvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0QyxPQUFPLEVBQStCLFdBQVcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUVwRTs7R0FFRztBQUNILElBQU0sNEJBQTRCLEdBQUcsVUFBQyxRQUFnQixFQUFFLFFBQWdCLEVBQUUsY0FBc0IsRUFBRSxPQUFlO0lBQy9HLElBQUksT0FBTyxHQUFHLGNBQWM7UUFBRSxPQUFPLFFBQVEsQ0FBQztJQUM5QyxJQUFNLEtBQUssR0FBRyxRQUFRLEdBQUcsU0FBQSxDQUFDLEVBQUksQ0FBQyxPQUFPLEdBQUcsQ0FBQyxDQUFDLENBQUEsQ0FBQztJQUM1QyxPQUFPLGFBQWEsQ0FB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Byb21pc2UgZXhwbGljaXRseSBhdCB0aW1lb3V0IG9yIGFib3J0ZWQuIE90aGVyd2lzZSB0aGlzIHdoaWxlIGxvb3Agd2lsbCBrZWVwIG1ha2luZyBBUEkgY2FsbCB1bnRpbFxuICAgIC8vIGBhY2NlcHRvckNoZWNrYCByZXR1cm5zIG5vbi1yZXRyeSBzdGF0dXMsIGV2ZW4gd2l0aCB0aGUgUHJvbWlzZS5yYWNlKCkgb3V0c2lkZS5cbiAgICBpZiAoRGF0ZS5ub3coKSArIGRlbGF5ICogMTAwMCA+IHdhaXRVbnRpbCkge1xuICAgICAgcmV0dXJuIHsgc3RhdGU6IFdhaXRlclN0YXRlLlRJTUVPVVQgfTtcbiAgICB9XG4gICAgYXdhaXQgc2xlZXAoZGVsYXkpO1xuICAgIGNvbnN0IHsgc3RhdGUgfSA9IGF3YWl0IGFjY2VwdG9yQ2hlY2tzKGNsaWVudCwgaW5wdXQpO1xuICAgIGlmIChzdGF0ZSAhPT0gV2FpdGVyU3RhdGUuUkVUUlkpIHtcbiAgICAgIHJldHVybiB7IHN0YXRlIH07XG4gICAgfVxuXG4gICAgY3VycmVudEF0dGVtcHQgKz0gMTtcbiAgfVxufTtcbiJdfQ==
55979
55980/***/ }),
55981
55982/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/index.js":
55983/*!*********************************************************************************!*\
55984 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/utils/index.js ***!
55985 \*********************************************************************************/
55986/*! exports provided: sleep, validateWaiterOptions */
55987/***/ (function(module, __webpack_exports__, __webpack_require__) {
55988
55989"use strict";
55990__webpack_require__.r(__webpack_exports__);
55991/* harmony import */ var _sleep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sleep */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js");
55992/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sleep", function() { return _sleep__WEBPACK_IMPORTED_MODULE_0__["sleep"]; });
55993
55994/* harmony import */ var _validate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validate */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/validate.js");
55995/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validateWaiterOptions", function() { return _validate__WEBPACK_IMPORTED_MODULE_1__["validateWaiterOptions"]; });
55996
55997
55998
55999//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxZQUFZLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9zbGVlcFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdmFsaWRhdGVcIjtcbiJdfQ==
56000
56001/***/ }),
56002
56003/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js":
56004/*!*********************************************************************************!*\
56005 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js ***!
56006 \*********************************************************************************/
56007/*! exports provided: sleep */
56008/***/ (function(module, __webpack_exports__, __webpack_require__) {
56009
56010"use strict";
56011__webpack_require__.r(__webpack_exports__);
56012/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sleep", function() { return sleep; });
56013var sleep = function (seconds) {
56014 return new Promise(function (resolve) { return setTimeout(resolve, seconds * 1000); });
56015};
56016//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xlZXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvc2xlZXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQU0sS0FBSyxHQUFHLFVBQUMsT0FBZTtJQUNuQyxPQUFPLElBQUksT0FBTyxDQUFDLFVBQUMsT0FBTyxJQUFLLE9BQUEsVUFBVSxDQUFDLE9BQU8sRUFBRSxPQUFPLEdBQUcsSUFBSSxDQUFDLEVBQW5DLENBQW1DLENBQUMsQ0FBQztBQUN2RSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3Qgc2xlZXAgPSAoc2Vjb25kczogbnVtYmVyKSA9PiB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCBzZWNvbmRzICogMTAwMCkpO1xufTtcbiJdfQ==
56017
56018/***/ }),
56019
56020/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/validate.js":
56021/*!************************************************************************************!*\
56022 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/utils/validate.js ***!
56023 \************************************************************************************/
56024/*! exports provided: validateWaiterOptions */
56025/***/ (function(module, __webpack_exports__, __webpack_require__) {
56026
56027"use strict";
56028__webpack_require__.r(__webpack_exports__);
56029/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateWaiterOptions", function() { return validateWaiterOptions; });
56030/**
56031 * Validates that waiter options are passed correctly
56032 * @param options a waiter configuration object
56033 */
56034var validateWaiterOptions = function (options) {
56035 if (options.maxWaitTime < 1) {
56036 throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");
56037 }
56038 else if (options.minDelay < 1) {
56039 throw new Error("WaiterConfiguration.minDelay must be greater than 0");
56040 }
56041 else if (options.maxDelay < 1) {
56042 throw new Error("WaiterConfiguration.maxDelay must be greater than 0");
56043 }
56044 else if (options.maxWaitTime <= options.minDelay) {
56045 throw new Error("WaiterConfiguration.maxWaitTime [" + options.maxWaitTime + "] must be greater than WaiterConfiguration.minDelay [" + options.minDelay + "] for this waiter");
56046 }
56047 else if (options.maxDelay < options.minDelay) {
56048 throw new Error("WaiterConfiguration.maxDelay [" + options.maxDelay + "] must be greater than WaiterConfiguration.minDelay [" + options.minDelay + "] for this waiter");
56049 }
56050};
56051//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvdmFsaWRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLElBQU0scUJBQXFCLEdBQUcsVUFBUyxPQUE4QjtJQUMxRSxJQUFJLE9BQU8sQ0FBQyxXQUFXLEdBQUcsQ0FBQyxFQUFFO1FBQzNCLE1BQU0sSUFBSSxLQUFLLENBQUMsd0RBQXdELENBQUMsQ0FBQztLQUMzRTtTQUFNLElBQUksT0FBTyxDQUFDLFFBQVEsR0FBRyxDQUFDLEVBQUU7UUFDL0IsTUFBTSxJQUFJLEtBQUssQ0FBQyxxREFBcUQsQ0FBQyxDQUFDO0tBQ3hFO1NBQU0sSUFBSSxPQUFPLENBQUMsUUFBUSxHQUFHLENBQUMsRUFBRTtRQUMvQixNQUFNLElBQUksS0FBSyxDQUFDLHFEQUFxRCxDQUFDLENBQUM7S0FDeEU7U0FBTSxJQUFJLE9BQU8sQ0FBQyxXQUFXLElBQUksT0FBTyxDQUFDLFFBQVEsRUFBRTtRQUNsRCxNQUFNLElBQUksS0FBSyxDQUNiLHNDQUFvQyxPQUFPLENBQUMsV0FBVyw2REFBd0QsT0FBTyxDQUFDLFFBQVEsc0JBQW1CLENBQ25KLENBQUM7S0FDSDtTQUFNLElBQUksT0FBTyxDQUFDLFFBQVEsR0FBRyxPQUFPLENBQUMsUUFBUSxFQUFFO1FBQzlDLE1BQU0sSUFBSSxLQUFLLENBQ2IsbUNBQWlDLE9BQU8sQ0FBQyxRQUFRLDZEQUF3RCxPQUFPLENBQUMsUUFBUSxzQkFBbUIs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Z3JlYXRlciB0aGFuIFdhaXRlckNvbmZpZ3VyYXRpb24ubWluRGVsYXkgWyR7b3B0aW9ucy5taW5EZWxheX1dIGZvciB0aGlzIHdhaXRlcmBcbiAgICApO1xuICB9IGVsc2UgaWYgKG9wdGlvbnMubWF4RGVsYXkgPCBvcHRpb25zLm1pbkRlbGF5KSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgYFdhaXRlckNvbmZpZ3VyYXRpb24ubWF4RGVsYXkgWyR7b3B0aW9ucy5tYXhEZWxheX1dIG11c3QgYmUgZ3JlYXRlciB0aGFuIFdhaXRlckNvbmZpZ3VyYXRpb24ubWluRGVsYXkgWyR7b3B0aW9ucy5taW5EZWxheX1dIGZvciB0aGlzIHdhaXRlcmBcbiAgICApO1xuICB9XG59O1xuIl19
56052
56053/***/ }),
56054
56055/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js":
56056/*!****************************************************************************!*\
56057 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/waiter.js ***!
56058 \****************************************************************************/
56059/*! exports provided: waiterServiceDefaults, WaiterState */
56060/***/ (function(module, __webpack_exports__, __webpack_require__) {
56061
56062"use strict";
56063__webpack_require__.r(__webpack_exports__);
56064/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "waiterServiceDefaults", function() { return waiterServiceDefaults; });
56065/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaiterState", function() { return WaiterState; });
56066/**
56067 * @private
56068 */
56069var waiterServiceDefaults = {
56070 minDelay: 2,
56071 maxDelay: 120,
56072};
56073var WaiterState;
56074(function (WaiterState) {
56075 WaiterState["ABORTED"] = "ABORTED";
56076 WaiterState["FAILURE"] = "FAILURE";
56077 WaiterState["SUCCESS"] = "SUCCESS";
56078 WaiterState["RETRY"] = "RETRY";
56079 WaiterState["TIMEOUT"] = "TIMEOUT";
56080})(WaiterState || (WaiterState = {}));
56081//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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F5XCIgfCBcIm1heERlbGF5XCI+PjtcblxuZXhwb3J0IGVudW0gV2FpdGVyU3RhdGUge1xuICBBQk9SVEVEID0gXCJBQk9SVEVEXCIsXG4gIEZBSUxVUkUgPSBcIkZBSUxVUkVcIixcbiAgU1VDQ0VTUyA9IFwiU1VDQ0VTU1wiLFxuICBSRVRSWSA9IFwiUkVUUllcIixcbiAgVElNRU9VVCA9IFwiVElNRU9VVFwiLFxufVxuXG5leHBvcnQgdHlwZSBXYWl0ZXJSZXN1bHQgPSB7XG4gIHN0YXRlOiBXYWl0ZXJTdGF0ZTtcbn07XG4iXX0=
56082
56083/***/ }),
56084
56085/***/ "../../node_modules/bowser/es5.js":
56086/*!***************************************************!*\
56087 !*** /root/amplify-js/node_modules/bowser/es5.js ***!
56088 \***************************************************/
56089/*! no static exports found */
56090/***/ (function(module, exports, __webpack_require__) {
56091
56092!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}})}));
56093
56094/***/ }),
56095
56096/***/ "../../node_modules/lodash/_DataView.js":
56097/*!*********************************************************!*\
56098 !*** /root/amplify-js/node_modules/lodash/_DataView.js ***!
56099 \*********************************************************/
56100/*! no static exports found */
56101/***/ (function(module, exports, __webpack_require__) {
56102
56103var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
56104 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
56105
56106/* Built-in method references that are verified to be native. */
56107var DataView = getNative(root, 'DataView');
56108
56109module.exports = DataView;
56110
56111
56112/***/ }),
56113
56114/***/ "../../node_modules/lodash/_Hash.js":
56115/*!*****************************************************!*\
56116 !*** /root/amplify-js/node_modules/lodash/_Hash.js ***!
56117 \*****************************************************/
56118/*! no static exports found */
56119/***/ (function(module, exports, __webpack_require__) {
56120
56121var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
56122 hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
56123 hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
56124 hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
56125 hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
56126
56127/**
56128 * Creates a hash object.
56129 *
56130 * @private
56131 * @constructor
56132 * @param {Array} [entries] The key-value pairs to cache.
56133 */
56134function Hash(entries) {
56135 var index = -1,
56136 length = entries == null ? 0 : entries.length;
56137
56138 this.clear();
56139 while (++index < length) {
56140 var entry = entries[index];
56141 this.set(entry[0], entry[1]);
56142 }
56143}
56144
56145// Add methods to `Hash`.
56146Hash.prototype.clear = hashClear;
56147Hash.prototype['delete'] = hashDelete;
56148Hash.prototype.get = hashGet;
56149Hash.prototype.has = hashHas;
56150Hash.prototype.set = hashSet;
56151
56152module.exports = Hash;
56153
56154
56155/***/ }),
56156
56157/***/ "../../node_modules/lodash/_ListCache.js":
56158/*!**********************************************************!*\
56159 !*** /root/amplify-js/node_modules/lodash/_ListCache.js ***!
56160 \**********************************************************/
56161/*! no static exports found */
56162/***/ (function(module, exports, __webpack_require__) {
56163
56164var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
56165 listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
56166 listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
56167 listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
56168 listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
56169
56170/**
56171 * Creates an list cache object.
56172 *
56173 * @private
56174 * @constructor
56175 * @param {Array} [entries] The key-value pairs to cache.
56176 */
56177function ListCache(entries) {
56178 var index = -1,
56179 length = entries == null ? 0 : entries.length;
56180
56181 this.clear();
56182 while (++index < length) {
56183 var entry = entries[index];
56184 this.set(entry[0], entry[1]);
56185 }
56186}
56187
56188// Add methods to `ListCache`.
56189ListCache.prototype.clear = listCacheClear;
56190ListCache.prototype['delete'] = listCacheDelete;
56191ListCache.prototype.get = listCacheGet;
56192ListCache.prototype.has = listCacheHas;
56193ListCache.prototype.set = listCacheSet;
56194
56195module.exports = ListCache;
56196
56197
56198/***/ }),
56199
56200/***/ "../../node_modules/lodash/_Map.js":
56201/*!****************************************************!*\
56202 !*** /root/amplify-js/node_modules/lodash/_Map.js ***!
56203 \****************************************************/
56204/*! no static exports found */
56205/***/ (function(module, exports, __webpack_require__) {
56206
56207var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
56208 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
56209
56210/* Built-in method references that are verified to be native. */
56211var Map = getNative(root, 'Map');
56212
56213module.exports = Map;
56214
56215
56216/***/ }),
56217
56218/***/ "../../node_modules/lodash/_MapCache.js":
56219/*!*********************************************************!*\
56220 !*** /root/amplify-js/node_modules/lodash/_MapCache.js ***!
56221 \*********************************************************/
56222/*! no static exports found */
56223/***/ (function(module, exports, __webpack_require__) {
56224
56225var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
56226 mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
56227 mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
56228 mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
56229 mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
56230
56231/**
56232 * Creates a map cache object to store key-value pairs.
56233 *
56234 * @private
56235 * @constructor
56236 * @param {Array} [entries] The key-value pairs to cache.
56237 */
56238function MapCache(entries) {
56239 var index = -1,
56240 length = entries == null ? 0 : entries.length;
56241
56242 this.clear();
56243 while (++index < length) {
56244 var entry = entries[index];
56245 this.set(entry[0], entry[1]);
56246 }
56247}
56248
56249// Add methods to `MapCache`.
56250MapCache.prototype.clear = mapCacheClear;
56251MapCache.prototype['delete'] = mapCacheDelete;
56252MapCache.prototype.get = mapCacheGet;
56253MapCache.prototype.has = mapCacheHas;
56254MapCache.prototype.set = mapCacheSet;
56255
56256module.exports = MapCache;
56257
56258
56259/***/ }),
56260
56261/***/ "../../node_modules/lodash/_Promise.js":
56262/*!********************************************************!*\
56263 !*** /root/amplify-js/node_modules/lodash/_Promise.js ***!
56264 \********************************************************/
56265/*! no static exports found */
56266/***/ (function(module, exports, __webpack_require__) {
56267
56268var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
56269 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
56270
56271/* Built-in method references that are verified to be native. */
56272var Promise = getNative(root, 'Promise');
56273
56274module.exports = Promise;
56275
56276
56277/***/ }),
56278
56279/***/ "../../node_modules/lodash/_Set.js":
56280/*!****************************************************!*\
56281 !*** /root/amplify-js/node_modules/lodash/_Set.js ***!
56282 \****************************************************/
56283/*! no static exports found */
56284/***/ (function(module, exports, __webpack_require__) {
56285
56286var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
56287 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
56288
56289/* Built-in method references that are verified to be native. */
56290var Set = getNative(root, 'Set');
56291
56292module.exports = Set;
56293
56294
56295/***/ }),
56296
56297/***/ "../../node_modules/lodash/_SetCache.js":
56298/*!*********************************************************!*\
56299 !*** /root/amplify-js/node_modules/lodash/_SetCache.js ***!
56300 \*********************************************************/
56301/*! no static exports found */
56302/***/ (function(module, exports, __webpack_require__) {
56303
56304var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
56305 setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
56306 setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
56307
56308/**
56309 *
56310 * Creates an array cache object to store unique values.
56311 *
56312 * @private
56313 * @constructor
56314 * @param {Array} [values] The values to cache.
56315 */
56316function SetCache(values) {
56317 var index = -1,
56318 length = values == null ? 0 : values.length;
56319
56320 this.__data__ = new MapCache;
56321 while (++index < length) {
56322 this.add(values[index]);
56323 }
56324}
56325
56326// Add methods to `SetCache`.
56327SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
56328SetCache.prototype.has = setCacheHas;
56329
56330module.exports = SetCache;
56331
56332
56333/***/ }),
56334
56335/***/ "../../node_modules/lodash/_Stack.js":
56336/*!******************************************************!*\
56337 !*** /root/amplify-js/node_modules/lodash/_Stack.js ***!
56338 \******************************************************/
56339/*! no static exports found */
56340/***/ (function(module, exports, __webpack_require__) {
56341
56342var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
56343 stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
56344 stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
56345 stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
56346 stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
56347 stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
56348
56349/**
56350 * Creates a stack cache object to store key-value pairs.
56351 *
56352 * @private
56353 * @constructor
56354 * @param {Array} [entries] The key-value pairs to cache.
56355 */
56356function Stack(entries) {
56357 var data = this.__data__ = new ListCache(entries);
56358 this.size = data.size;
56359}
56360
56361// Add methods to `Stack`.
56362Stack.prototype.clear = stackClear;
56363Stack.prototype['delete'] = stackDelete;
56364Stack.prototype.get = stackGet;
56365Stack.prototype.has = stackHas;
56366Stack.prototype.set = stackSet;
56367
56368module.exports = Stack;
56369
56370
56371/***/ }),
56372
56373/***/ "../../node_modules/lodash/_Symbol.js":
56374/*!*******************************************************!*\
56375 !*** /root/amplify-js/node_modules/lodash/_Symbol.js ***!
56376 \*******************************************************/
56377/*! no static exports found */
56378/***/ (function(module, exports, __webpack_require__) {
56379
56380var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
56381
56382/** Built-in value references. */
56383var Symbol = root.Symbol;
56384
56385module.exports = Symbol;
56386
56387
56388/***/ }),
56389
56390/***/ "../../node_modules/lodash/_Uint8Array.js":
56391/*!***********************************************************!*\
56392 !*** /root/amplify-js/node_modules/lodash/_Uint8Array.js ***!
56393 \***********************************************************/
56394/*! no static exports found */
56395/***/ (function(module, exports, __webpack_require__) {
56396
56397var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
56398
56399/** Built-in value references. */
56400var Uint8Array = root.Uint8Array;
56401
56402module.exports = Uint8Array;
56403
56404
56405/***/ }),
56406
56407/***/ "../../node_modules/lodash/_WeakMap.js":
56408/*!********************************************************!*\
56409 !*** /root/amplify-js/node_modules/lodash/_WeakMap.js ***!
56410 \********************************************************/
56411/*! no static exports found */
56412/***/ (function(module, exports, __webpack_require__) {
56413
56414var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
56415 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
56416
56417/* Built-in method references that are verified to be native. */
56418var WeakMap = getNative(root, 'WeakMap');
56419
56420module.exports = WeakMap;
56421
56422
56423/***/ }),
56424
56425/***/ "../../node_modules/lodash/_arrayFilter.js":
56426/*!************************************************************!*\
56427 !*** /root/amplify-js/node_modules/lodash/_arrayFilter.js ***!
56428 \************************************************************/
56429/*! no static exports found */
56430/***/ (function(module, exports) {
56431
56432/**
56433 * A specialized version of `_.filter` for arrays without support for
56434 * iteratee shorthands.
56435 *
56436 * @private
56437 * @param {Array} [array] The array to iterate over.
56438 * @param {Function} predicate The function invoked per iteration.
56439 * @returns {Array} Returns the new filtered array.
56440 */
56441function arrayFilter(array, predicate) {
56442 var index = -1,
56443 length = array == null ? 0 : array.length,
56444 resIndex = 0,
56445 result = [];
56446
56447 while (++index < length) {
56448 var value = array[index];
56449 if (predicate(value, index, array)) {
56450 result[resIndex++] = value;
56451 }
56452 }
56453 return result;
56454}
56455
56456module.exports = arrayFilter;
56457
56458
56459/***/ }),
56460
56461/***/ "../../node_modules/lodash/_arrayLikeKeys.js":
56462/*!**************************************************************!*\
56463 !*** /root/amplify-js/node_modules/lodash/_arrayLikeKeys.js ***!
56464 \**************************************************************/
56465/*! no static exports found */
56466/***/ (function(module, exports, __webpack_require__) {
56467
56468var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
56469 isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
56470 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
56471 isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
56472 isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
56473 isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
56474
56475/** Used for built-in method references. */
56476var objectProto = Object.prototype;
56477
56478/** Used to check objects for own properties. */
56479var hasOwnProperty = objectProto.hasOwnProperty;
56480
56481/**
56482 * Creates an array of the enumerable property names of the array-like `value`.
56483 *
56484 * @private
56485 * @param {*} value The value to query.
56486 * @param {boolean} inherited Specify returning inherited property names.
56487 * @returns {Array} Returns the array of property names.
56488 */
56489function arrayLikeKeys(value, inherited) {
56490 var isArr = isArray(value),
56491 isArg = !isArr && isArguments(value),
56492 isBuff = !isArr && !isArg && isBuffer(value),
56493 isType = !isArr && !isArg && !isBuff && isTypedArray(value),
56494 skipIndexes = isArr || isArg || isBuff || isType,
56495 result = skipIndexes ? baseTimes(value.length, String) : [],
56496 length = result.length;
56497
56498 for (var key in value) {
56499 if ((inherited || hasOwnProperty.call(value, key)) &&
56500 !(skipIndexes && (
56501 // Safari 9 has enumerable `arguments.length` in strict mode.
56502 key == 'length' ||
56503 // Node.js 0.10 has enumerable non-index properties on buffers.
56504 (isBuff && (key == 'offset' || key == 'parent')) ||
56505 // PhantomJS 2 has enumerable non-index properties on typed arrays.
56506 (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
56507 // Skip index properties.
56508 isIndex(key, length)
56509 ))) {
56510 result.push(key);
56511 }
56512 }
56513 return result;
56514}
56515
56516module.exports = arrayLikeKeys;
56517
56518
56519/***/ }),
56520
56521/***/ "../../node_modules/lodash/_arrayMap.js":
56522/*!*********************************************************!*\
56523 !*** /root/amplify-js/node_modules/lodash/_arrayMap.js ***!
56524 \*********************************************************/
56525/*! no static exports found */
56526/***/ (function(module, exports) {
56527
56528/**
56529 * A specialized version of `_.map` for arrays without support for iteratee
56530 * shorthands.
56531 *
56532 * @private
56533 * @param {Array} [array] The array to iterate over.
56534 * @param {Function} iteratee The function invoked per iteration.
56535 * @returns {Array} Returns the new mapped array.
56536 */
56537function arrayMap(array, iteratee) {
56538 var index = -1,
56539 length = array == null ? 0 : array.length,
56540 result = Array(length);
56541
56542 while (++index < length) {
56543 result[index] = iteratee(array[index], index, array);
56544 }
56545 return result;
56546}
56547
56548module.exports = arrayMap;
56549
56550
56551/***/ }),
56552
56553/***/ "../../node_modules/lodash/_arrayPush.js":
56554/*!**********************************************************!*\
56555 !*** /root/amplify-js/node_modules/lodash/_arrayPush.js ***!
56556 \**********************************************************/
56557/*! no static exports found */
56558/***/ (function(module, exports) {
56559
56560/**
56561 * Appends the elements of `values` to `array`.
56562 *
56563 * @private
56564 * @param {Array} array The array to modify.
56565 * @param {Array} values The values to append.
56566 * @returns {Array} Returns `array`.
56567 */
56568function arrayPush(array, values) {
56569 var index = -1,
56570 length = values.length,
56571 offset = array.length;
56572
56573 while (++index < length) {
56574 array[offset + index] = values[index];
56575 }
56576 return array;
56577}
56578
56579module.exports = arrayPush;
56580
56581
56582/***/ }),
56583
56584/***/ "../../node_modules/lodash/_arraySome.js":
56585/*!**********************************************************!*\
56586 !*** /root/amplify-js/node_modules/lodash/_arraySome.js ***!
56587 \**********************************************************/
56588/*! no static exports found */
56589/***/ (function(module, exports) {
56590
56591/**
56592 * A specialized version of `_.some` for arrays without support for iteratee
56593 * shorthands.
56594 *
56595 * @private
56596 * @param {Array} [array] The array to iterate over.
56597 * @param {Function} predicate The function invoked per iteration.
56598 * @returns {boolean} Returns `true` if any element passes the predicate check,
56599 * else `false`.
56600 */
56601function arraySome(array, predicate) {
56602 var index = -1,
56603 length = array == null ? 0 : array.length;
56604
56605 while (++index < length) {
56606 if (predicate(array[index], index, array)) {
56607 return true;
56608 }
56609 }
56610 return false;
56611}
56612
56613module.exports = arraySome;
56614
56615
56616/***/ }),
56617
56618/***/ "../../node_modules/lodash/_assocIndexOf.js":
56619/*!*************************************************************!*\
56620 !*** /root/amplify-js/node_modules/lodash/_assocIndexOf.js ***!
56621 \*************************************************************/
56622/*! no static exports found */
56623/***/ (function(module, exports, __webpack_require__) {
56624
56625var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
56626
56627/**
56628 * Gets the index at which the `key` is found in `array` of key-value pairs.
56629 *
56630 * @private
56631 * @param {Array} array The array to inspect.
56632 * @param {*} key The key to search for.
56633 * @returns {number} Returns the index of the matched value, else `-1`.
56634 */
56635function assocIndexOf(array, key) {
56636 var length = array.length;
56637 while (length--) {
56638 if (eq(array[length][0], key)) {
56639 return length;
56640 }
56641 }
56642 return -1;
56643}
56644
56645module.exports = assocIndexOf;
56646
56647
56648/***/ }),
56649
56650/***/ "../../node_modules/lodash/_baseGet.js":
56651/*!********************************************************!*\
56652 !*** /root/amplify-js/node_modules/lodash/_baseGet.js ***!
56653 \********************************************************/
56654/*! no static exports found */
56655/***/ (function(module, exports, __webpack_require__) {
56656
56657var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
56658 toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
56659
56660/**
56661 * The base implementation of `_.get` without support for default values.
56662 *
56663 * @private
56664 * @param {Object} object The object to query.
56665 * @param {Array|string} path The path of the property to get.
56666 * @returns {*} Returns the resolved value.
56667 */
56668function baseGet(object, path) {
56669 path = castPath(path, object);
56670
56671 var index = 0,
56672 length = path.length;
56673
56674 while (object != null && index < length) {
56675 object = object[toKey(path[index++])];
56676 }
56677 return (index && index == length) ? object : undefined;
56678}
56679
56680module.exports = baseGet;
56681
56682
56683/***/ }),
56684
56685/***/ "../../node_modules/lodash/_baseGetAllKeys.js":
56686/*!***************************************************************!*\
56687 !*** /root/amplify-js/node_modules/lodash/_baseGetAllKeys.js ***!
56688 \***************************************************************/
56689/*! no static exports found */
56690/***/ (function(module, exports, __webpack_require__) {
56691
56692var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
56693 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
56694
56695/**
56696 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
56697 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
56698 * symbols of `object`.
56699 *
56700 * @private
56701 * @param {Object} object The object to query.
56702 * @param {Function} keysFunc The function to get the keys of `object`.
56703 * @param {Function} symbolsFunc The function to get the symbols of `object`.
56704 * @returns {Array} Returns the array of property names and symbols.
56705 */
56706function baseGetAllKeys(object, keysFunc, symbolsFunc) {
56707 var result = keysFunc(object);
56708 return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
56709}
56710
56711module.exports = baseGetAllKeys;
56712
56713
56714/***/ }),
56715
56716/***/ "../../node_modules/lodash/_baseGetTag.js":
56717/*!***********************************************************!*\
56718 !*** /root/amplify-js/node_modules/lodash/_baseGetTag.js ***!
56719 \***********************************************************/
56720/*! no static exports found */
56721/***/ (function(module, exports, __webpack_require__) {
56722
56723var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
56724 getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
56725 objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
56726
56727/** `Object#toString` result references. */
56728var nullTag = '[object Null]',
56729 undefinedTag = '[object Undefined]';
56730
56731/** Built-in value references. */
56732var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
56733
56734/**
56735 * The base implementation of `getTag` without fallbacks for buggy environments.
56736 *
56737 * @private
56738 * @param {*} value The value to query.
56739 * @returns {string} Returns the `toStringTag`.
56740 */
56741function baseGetTag(value) {
56742 if (value == null) {
56743 return value === undefined ? undefinedTag : nullTag;
56744 }
56745 return (symToStringTag && symToStringTag in Object(value))
56746 ? getRawTag(value)
56747 : objectToString(value);
56748}
56749
56750module.exports = baseGetTag;
56751
56752
56753/***/ }),
56754
56755/***/ "../../node_modules/lodash/_baseIsArguments.js":
56756/*!****************************************************************!*\
56757 !*** /root/amplify-js/node_modules/lodash/_baseIsArguments.js ***!
56758 \****************************************************************/
56759/*! no static exports found */
56760/***/ (function(module, exports, __webpack_require__) {
56761
56762var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
56763 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
56764
56765/** `Object#toString` result references. */
56766var argsTag = '[object Arguments]';
56767
56768/**
56769 * The base implementation of `_.isArguments`.
56770 *
56771 * @private
56772 * @param {*} value The value to check.
56773 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
56774 */
56775function baseIsArguments(value) {
56776 return isObjectLike(value) && baseGetTag(value) == argsTag;
56777}
56778
56779module.exports = baseIsArguments;
56780
56781
56782/***/ }),
56783
56784/***/ "../../node_modules/lodash/_baseIsEqual.js":
56785/*!************************************************************!*\
56786 !*** /root/amplify-js/node_modules/lodash/_baseIsEqual.js ***!
56787 \************************************************************/
56788/*! no static exports found */
56789/***/ (function(module, exports, __webpack_require__) {
56790
56791var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
56792 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
56793
56794/**
56795 * The base implementation of `_.isEqual` which supports partial comparisons
56796 * and tracks traversed objects.
56797 *
56798 * @private
56799 * @param {*} value The value to compare.
56800 * @param {*} other The other value to compare.
56801 * @param {boolean} bitmask The bitmask flags.
56802 * 1 - Unordered comparison
56803 * 2 - Partial comparison
56804 * @param {Function} [customizer] The function to customize comparisons.
56805 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
56806 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
56807 */
56808function baseIsEqual(value, other, bitmask, customizer, stack) {
56809 if (value === other) {
56810 return true;
56811 }
56812 if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
56813 return value !== value && other !== other;
56814 }
56815 return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
56816}
56817
56818module.exports = baseIsEqual;
56819
56820
56821/***/ }),
56822
56823/***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
56824/*!****************************************************************!*\
56825 !*** /root/amplify-js/node_modules/lodash/_baseIsEqualDeep.js ***!
56826 \****************************************************************/
56827/*! no static exports found */
56828/***/ (function(module, exports, __webpack_require__) {
56829
56830var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
56831 equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
56832 equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
56833 equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
56834 getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
56835 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
56836 isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
56837 isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
56838
56839/** Used to compose bitmasks for value comparisons. */
56840var COMPARE_PARTIAL_FLAG = 1;
56841
56842/** `Object#toString` result references. */
56843var argsTag = '[object Arguments]',
56844 arrayTag = '[object Array]',
56845 objectTag = '[object Object]';
56846
56847/** Used for built-in method references. */
56848var objectProto = Object.prototype;
56849
56850/** Used to check objects for own properties. */
56851var hasOwnProperty = objectProto.hasOwnProperty;
56852
56853/**
56854 * A specialized version of `baseIsEqual` for arrays and objects which performs
56855 * deep comparisons and tracks traversed objects enabling objects with circular
56856 * references to be compared.
56857 *
56858 * @private
56859 * @param {Object} object The object to compare.
56860 * @param {Object} other The other object to compare.
56861 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
56862 * @param {Function} customizer The function to customize comparisons.
56863 * @param {Function} equalFunc The function to determine equivalents of values.
56864 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
56865 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
56866 */
56867function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
56868 var objIsArr = isArray(object),
56869 othIsArr = isArray(other),
56870 objTag = objIsArr ? arrayTag : getTag(object),
56871 othTag = othIsArr ? arrayTag : getTag(other);
56872
56873 objTag = objTag == argsTag ? objectTag : objTag;
56874 othTag = othTag == argsTag ? objectTag : othTag;
56875
56876 var objIsObj = objTag == objectTag,
56877 othIsObj = othTag == objectTag,
56878 isSameTag = objTag == othTag;
56879
56880 if (isSameTag && isBuffer(object)) {
56881 if (!isBuffer(other)) {
56882 return false;
56883 }
56884 objIsArr = true;
56885 objIsObj = false;
56886 }
56887 if (isSameTag && !objIsObj) {
56888 stack || (stack = new Stack);
56889 return (objIsArr || isTypedArray(object))
56890 ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
56891 : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
56892 }
56893 if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
56894 var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
56895 othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
56896
56897 if (objIsWrapped || othIsWrapped) {
56898 var objUnwrapped = objIsWrapped ? object.value() : object,
56899 othUnwrapped = othIsWrapped ? other.value() : other;
56900
56901 stack || (stack = new Stack);
56902 return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
56903 }
56904 }
56905 if (!isSameTag) {
56906 return false;
56907 }
56908 stack || (stack = new Stack);
56909 return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
56910}
56911
56912module.exports = baseIsEqualDeep;
56913
56914
56915/***/ }),
56916
56917/***/ "../../node_modules/lodash/_baseIsNative.js":
56918/*!*************************************************************!*\
56919 !*** /root/amplify-js/node_modules/lodash/_baseIsNative.js ***!
56920 \*************************************************************/
56921/*! no static exports found */
56922/***/ (function(module, exports, __webpack_require__) {
56923
56924var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
56925 isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
56926 isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
56927 toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
56928
56929/**
56930 * Used to match `RegExp`
56931 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
56932 */
56933var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
56934
56935/** Used to detect host constructors (Safari). */
56936var reIsHostCtor = /^\[object .+?Constructor\]$/;
56937
56938/** Used for built-in method references. */
56939var funcProto = Function.prototype,
56940 objectProto = Object.prototype;
56941
56942/** Used to resolve the decompiled source of functions. */
56943var funcToString = funcProto.toString;
56944
56945/** Used to check objects for own properties. */
56946var hasOwnProperty = objectProto.hasOwnProperty;
56947
56948/** Used to detect if a method is native. */
56949var reIsNative = RegExp('^' +
56950 funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
56951 .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
56952);
56953
56954/**
56955 * The base implementation of `_.isNative` without bad shim checks.
56956 *
56957 * @private
56958 * @param {*} value The value to check.
56959 * @returns {boolean} Returns `true` if `value` is a native function,
56960 * else `false`.
56961 */
56962function baseIsNative(value) {
56963 if (!isObject(value) || isMasked(value)) {
56964 return false;
56965 }
56966 var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
56967 return pattern.test(toSource(value));
56968}
56969
56970module.exports = baseIsNative;
56971
56972
56973/***/ }),
56974
56975/***/ "../../node_modules/lodash/_baseIsTypedArray.js":
56976/*!*****************************************************************!*\
56977 !*** /root/amplify-js/node_modules/lodash/_baseIsTypedArray.js ***!
56978 \*****************************************************************/
56979/*! no static exports found */
56980/***/ (function(module, exports, __webpack_require__) {
56981
56982var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
56983 isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
56984 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
56985
56986/** `Object#toString` result references. */
56987var argsTag = '[object Arguments]',
56988 arrayTag = '[object Array]',
56989 boolTag = '[object Boolean]',
56990 dateTag = '[object Date]',
56991 errorTag = '[object Error]',
56992 funcTag = '[object Function]',
56993 mapTag = '[object Map]',
56994 numberTag = '[object Number]',
56995 objectTag = '[object Object]',
56996 regexpTag = '[object RegExp]',
56997 setTag = '[object Set]',
56998 stringTag = '[object String]',
56999 weakMapTag = '[object WeakMap]';
57000
57001var arrayBufferTag = '[object ArrayBuffer]',
57002 dataViewTag = '[object DataView]',
57003 float32Tag = '[object Float32Array]',
57004 float64Tag = '[object Float64Array]',
57005 int8Tag = '[object Int8Array]',
57006 int16Tag = '[object Int16Array]',
57007 int32Tag = '[object Int32Array]',
57008 uint8Tag = '[object Uint8Array]',
57009 uint8ClampedTag = '[object Uint8ClampedArray]',
57010 uint16Tag = '[object Uint16Array]',
57011 uint32Tag = '[object Uint32Array]';
57012
57013/** Used to identify `toStringTag` values of typed arrays. */
57014var typedArrayTags = {};
57015typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
57016typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
57017typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
57018typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
57019typedArrayTags[uint32Tag] = true;
57020typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
57021typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
57022typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
57023typedArrayTags[errorTag] = typedArrayTags[funcTag] =
57024typedArrayTags[mapTag] = typedArrayTags[numberTag] =
57025typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
57026typedArrayTags[setTag] = typedArrayTags[stringTag] =
57027typedArrayTags[weakMapTag] = false;
57028
57029/**
57030 * The base implementation of `_.isTypedArray` without Node.js optimizations.
57031 *
57032 * @private
57033 * @param {*} value The value to check.
57034 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
57035 */
57036function baseIsTypedArray(value) {
57037 return isObjectLike(value) &&
57038 isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
57039}
57040
57041module.exports = baseIsTypedArray;
57042
57043
57044/***/ }),
57045
57046/***/ "../../node_modules/lodash/_baseKeys.js":
57047/*!*********************************************************!*\
57048 !*** /root/amplify-js/node_modules/lodash/_baseKeys.js ***!
57049 \*********************************************************/
57050/*! no static exports found */
57051/***/ (function(module, exports, __webpack_require__) {
57052
57053var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
57054 nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
57055
57056/** Used for built-in method references. */
57057var objectProto = Object.prototype;
57058
57059/** Used to check objects for own properties. */
57060var hasOwnProperty = objectProto.hasOwnProperty;
57061
57062/**
57063 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
57064 *
57065 * @private
57066 * @param {Object} object The object to query.
57067 * @returns {Array} Returns the array of property names.
57068 */
57069function baseKeys(object) {
57070 if (!isPrototype(object)) {
57071 return nativeKeys(object);
57072 }
57073 var result = [];
57074 for (var key in Object(object)) {
57075 if (hasOwnProperty.call(object, key) && key != 'constructor') {
57076 result.push(key);
57077 }
57078 }
57079 return result;
57080}
57081
57082module.exports = baseKeys;
57083
57084
57085/***/ }),
57086
57087/***/ "../../node_modules/lodash/_baseTimes.js":
57088/*!**********************************************************!*\
57089 !*** /root/amplify-js/node_modules/lodash/_baseTimes.js ***!
57090 \**********************************************************/
57091/*! no static exports found */
57092/***/ (function(module, exports) {
57093
57094/**
57095 * The base implementation of `_.times` without support for iteratee shorthands
57096 * or max array length checks.
57097 *
57098 * @private
57099 * @param {number} n The number of times to invoke `iteratee`.
57100 * @param {Function} iteratee The function invoked per iteration.
57101 * @returns {Array} Returns the array of results.
57102 */
57103function baseTimes(n, iteratee) {
57104 var index = -1,
57105 result = Array(n);
57106
57107 while (++index < n) {
57108 result[index] = iteratee(index);
57109 }
57110 return result;
57111}
57112
57113module.exports = baseTimes;
57114
57115
57116/***/ }),
57117
57118/***/ "../../node_modules/lodash/_baseToString.js":
57119/*!*************************************************************!*\
57120 !*** /root/amplify-js/node_modules/lodash/_baseToString.js ***!
57121 \*************************************************************/
57122/*! no static exports found */
57123/***/ (function(module, exports, __webpack_require__) {
57124
57125var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
57126 arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
57127 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
57128 isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
57129
57130/** Used as references for various `Number` constants. */
57131var INFINITY = 1 / 0;
57132
57133/** Used to convert symbols to primitives and strings. */
57134var symbolProto = Symbol ? Symbol.prototype : undefined,
57135 symbolToString = symbolProto ? symbolProto.toString : undefined;
57136
57137/**
57138 * The base implementation of `_.toString` which doesn't convert nullish
57139 * values to empty strings.
57140 *
57141 * @private
57142 * @param {*} value The value to process.
57143 * @returns {string} Returns the string.
57144 */
57145function baseToString(value) {
57146 // Exit early for strings to avoid a performance hit in some environments.
57147 if (typeof value == 'string') {
57148 return value;
57149 }
57150 if (isArray(value)) {
57151 // Recursively convert values (susceptible to call stack limits).
57152 return arrayMap(value, baseToString) + '';
57153 }
57154 if (isSymbol(value)) {
57155 return symbolToString ? symbolToString.call(value) : '';
57156 }
57157 var result = (value + '');
57158 return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
57159}
57160
57161module.exports = baseToString;
57162
57163
57164/***/ }),
57165
57166/***/ "../../node_modules/lodash/_baseUnary.js":
57167/*!**********************************************************!*\
57168 !*** /root/amplify-js/node_modules/lodash/_baseUnary.js ***!
57169 \**********************************************************/
57170/*! no static exports found */
57171/***/ (function(module, exports) {
57172
57173/**
57174 * The base implementation of `_.unary` without support for storing metadata.
57175 *
57176 * @private
57177 * @param {Function} func The function to cap arguments for.
57178 * @returns {Function} Returns the new capped function.
57179 */
57180function baseUnary(func) {
57181 return function(value) {
57182 return func(value);
57183 };
57184}
57185
57186module.exports = baseUnary;
57187
57188
57189/***/ }),
57190
57191/***/ "../../node_modules/lodash/_cacheHas.js":
57192/*!*********************************************************!*\
57193 !*** /root/amplify-js/node_modules/lodash/_cacheHas.js ***!
57194 \*********************************************************/
57195/*! no static exports found */
57196/***/ (function(module, exports) {
57197
57198/**
57199 * Checks if a `cache` value for `key` exists.
57200 *
57201 * @private
57202 * @param {Object} cache The cache to query.
57203 * @param {string} key The key of the entry to check.
57204 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
57205 */
57206function cacheHas(cache, key) {
57207 return cache.has(key);
57208}
57209
57210module.exports = cacheHas;
57211
57212
57213/***/ }),
57214
57215/***/ "../../node_modules/lodash/_castPath.js":
57216/*!*********************************************************!*\
57217 !*** /root/amplify-js/node_modules/lodash/_castPath.js ***!
57218 \*********************************************************/
57219/*! no static exports found */
57220/***/ (function(module, exports, __webpack_require__) {
57221
57222var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
57223 isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
57224 stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
57225 toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
57226
57227/**
57228 * Casts `value` to a path array if it's not one.
57229 *
57230 * @private
57231 * @param {*} value The value to inspect.
57232 * @param {Object} [object] The object to query keys on.
57233 * @returns {Array} Returns the cast property path array.
57234 */
57235function castPath(value, object) {
57236 if (isArray(value)) {
57237 return value;
57238 }
57239 return isKey(value, object) ? [value] : stringToPath(toString(value));
57240}
57241
57242module.exports = castPath;
57243
57244
57245/***/ }),
57246
57247/***/ "../../node_modules/lodash/_coreJsData.js":
57248/*!***********************************************************!*\
57249 !*** /root/amplify-js/node_modules/lodash/_coreJsData.js ***!
57250 \***********************************************************/
57251/*! no static exports found */
57252/***/ (function(module, exports, __webpack_require__) {
57253
57254var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
57255
57256/** Used to detect overreaching core-js shims. */
57257var coreJsData = root['__core-js_shared__'];
57258
57259module.exports = coreJsData;
57260
57261
57262/***/ }),
57263
57264/***/ "../../node_modules/lodash/_equalArrays.js":
57265/*!************************************************************!*\
57266 !*** /root/amplify-js/node_modules/lodash/_equalArrays.js ***!
57267 \************************************************************/
57268/*! no static exports found */
57269/***/ (function(module, exports, __webpack_require__) {
57270
57271var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
57272 arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
57273 cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
57274
57275/** Used to compose bitmasks for value comparisons. */
57276var COMPARE_PARTIAL_FLAG = 1,
57277 COMPARE_UNORDERED_FLAG = 2;
57278
57279/**
57280 * A specialized version of `baseIsEqualDeep` for arrays with support for
57281 * partial deep comparisons.
57282 *
57283 * @private
57284 * @param {Array} array The array to compare.
57285 * @param {Array} other The other array to compare.
57286 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
57287 * @param {Function} customizer The function to customize comparisons.
57288 * @param {Function} equalFunc The function to determine equivalents of values.
57289 * @param {Object} stack Tracks traversed `array` and `other` objects.
57290 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
57291 */
57292function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
57293 var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
57294 arrLength = array.length,
57295 othLength = other.length;
57296
57297 if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
57298 return false;
57299 }
57300 // Check that cyclic values are equal.
57301 var arrStacked = stack.get(array);
57302 var othStacked = stack.get(other);
57303 if (arrStacked && othStacked) {
57304 return arrStacked == other && othStacked == array;
57305 }
57306 var index = -1,
57307 result = true,
57308 seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
57309
57310 stack.set(array, other);
57311 stack.set(other, array);
57312
57313 // Ignore non-index properties.
57314 while (++index < arrLength) {
57315 var arrValue = array[index],
57316 othValue = other[index];
57317
57318 if (customizer) {
57319 var compared = isPartial
57320 ? customizer(othValue, arrValue, index, other, array, stack)
57321 : customizer(arrValue, othValue, index, array, other, stack);
57322 }
57323 if (compared !== undefined) {
57324 if (compared) {
57325 continue;
57326 }
57327 result = false;
57328 break;
57329 }
57330 // Recursively compare arrays (susceptible to call stack limits).
57331 if (seen) {
57332 if (!arraySome(other, function(othValue, othIndex) {
57333 if (!cacheHas(seen, othIndex) &&
57334 (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
57335 return seen.push(othIndex);
57336 }
57337 })) {
57338 result = false;
57339 break;
57340 }
57341 } else if (!(
57342 arrValue === othValue ||
57343 equalFunc(arrValue, othValue, bitmask, customizer, stack)
57344 )) {
57345 result = false;
57346 break;
57347 }
57348 }
57349 stack['delete'](array);
57350 stack['delete'](other);
57351 return result;
57352}
57353
57354module.exports = equalArrays;
57355
57356
57357/***/ }),
57358
57359/***/ "../../node_modules/lodash/_equalByTag.js":
57360/*!***********************************************************!*\
57361 !*** /root/amplify-js/node_modules/lodash/_equalByTag.js ***!
57362 \***********************************************************/
57363/*! no static exports found */
57364/***/ (function(module, exports, __webpack_require__) {
57365
57366var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
57367 Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
57368 eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
57369 equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
57370 mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
57371 setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
57372
57373/** Used to compose bitmasks for value comparisons. */
57374var COMPARE_PARTIAL_FLAG = 1,
57375 COMPARE_UNORDERED_FLAG = 2;
57376
57377/** `Object#toString` result references. */
57378var boolTag = '[object Boolean]',
57379 dateTag = '[object Date]',
57380 errorTag = '[object Error]',
57381 mapTag = '[object Map]',
57382 numberTag = '[object Number]',
57383 regexpTag = '[object RegExp]',
57384 setTag = '[object Set]',
57385 stringTag = '[object String]',
57386 symbolTag = '[object Symbol]';
57387
57388var arrayBufferTag = '[object ArrayBuffer]',
57389 dataViewTag = '[object DataView]';
57390
57391/** Used to convert symbols to primitives and strings. */
57392var symbolProto = Symbol ? Symbol.prototype : undefined,
57393 symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
57394
57395/**
57396 * A specialized version of `baseIsEqualDeep` for comparing objects of
57397 * the same `toStringTag`.
57398 *
57399 * **Note:** This function only supports comparing values with tags of
57400 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
57401 *
57402 * @private
57403 * @param {Object} object The object to compare.
57404 * @param {Object} other The other object to compare.
57405 * @param {string} tag The `toStringTag` of the objects to compare.
57406 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
57407 * @param {Function} customizer The function to customize comparisons.
57408 * @param {Function} equalFunc The function to determine equivalents of values.
57409 * @param {Object} stack Tracks traversed `object` and `other` objects.
57410 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
57411 */
57412function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
57413 switch (tag) {
57414 case dataViewTag:
57415 if ((object.byteLength != other.byteLength) ||
57416 (object.byteOffset != other.byteOffset)) {
57417 return false;
57418 }
57419 object = object.buffer;
57420 other = other.buffer;
57421
57422 case arrayBufferTag:
57423 if ((object.byteLength != other.byteLength) ||
57424 !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
57425 return false;
57426 }
57427 return true;
57428
57429 case boolTag:
57430 case dateTag:
57431 case numberTag:
57432 // Coerce booleans to `1` or `0` and dates to milliseconds.
57433 // Invalid dates are coerced to `NaN`.
57434 return eq(+object, +other);
57435
57436 case errorTag:
57437 return object.name == other.name && object.message == other.message;
57438
57439 case regexpTag:
57440 case stringTag:
57441 // Coerce regexes to strings and treat strings, primitives and objects,
57442 // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
57443 // for more details.
57444 return object == (other + '');
57445
57446 case mapTag:
57447 var convert = mapToArray;
57448
57449 case setTag:
57450 var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
57451 convert || (convert = setToArray);
57452
57453 if (object.size != other.size && !isPartial) {
57454 return false;
57455 }
57456 // Assume cyclic values are equal.
57457 var stacked = stack.get(object);
57458 if (stacked) {
57459 return stacked == other;
57460 }
57461 bitmask |= COMPARE_UNORDERED_FLAG;
57462
57463 // Recursively compare objects (susceptible to call stack limits).
57464 stack.set(object, other);
57465 var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
57466 stack['delete'](object);
57467 return result;
57468
57469 case symbolTag:
57470 if (symbolValueOf) {
57471 return symbolValueOf.call(object) == symbolValueOf.call(other);
57472 }
57473 }
57474 return false;
57475}
57476
57477module.exports = equalByTag;
57478
57479
57480/***/ }),
57481
57482/***/ "../../node_modules/lodash/_equalObjects.js":
57483/*!*************************************************************!*\
57484 !*** /root/amplify-js/node_modules/lodash/_equalObjects.js ***!
57485 \*************************************************************/
57486/*! no static exports found */
57487/***/ (function(module, exports, __webpack_require__) {
57488
57489var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
57490
57491/** Used to compose bitmasks for value comparisons. */
57492var COMPARE_PARTIAL_FLAG = 1;
57493
57494/** Used for built-in method references. */
57495var objectProto = Object.prototype;
57496
57497/** Used to check objects for own properties. */
57498var hasOwnProperty = objectProto.hasOwnProperty;
57499
57500/**
57501 * A specialized version of `baseIsEqualDeep` for objects with support for
57502 * partial deep comparisons.
57503 *
57504 * @private
57505 * @param {Object} object The object to compare.
57506 * @param {Object} other The other object to compare.
57507 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
57508 * @param {Function} customizer The function to customize comparisons.
57509 * @param {Function} equalFunc The function to determine equivalents of values.
57510 * @param {Object} stack Tracks traversed `object` and `other` objects.
57511 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
57512 */
57513function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
57514 var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
57515 objProps = getAllKeys(object),
57516 objLength = objProps.length,
57517 othProps = getAllKeys(other),
57518 othLength = othProps.length;
57519
57520 if (objLength != othLength && !isPartial) {
57521 return false;
57522 }
57523 var index = objLength;
57524 while (index--) {
57525 var key = objProps[index];
57526 if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
57527 return false;
57528 }
57529 }
57530 // Check that cyclic values are equal.
57531 var objStacked = stack.get(object);
57532 var othStacked = stack.get(other);
57533 if (objStacked && othStacked) {
57534 return objStacked == other && othStacked == object;
57535 }
57536 var result = true;
57537 stack.set(object, other);
57538 stack.set(other, object);
57539
57540 var skipCtor = isPartial;
57541 while (++index < objLength) {
57542 key = objProps[index];
57543 var objValue = object[key],
57544 othValue = other[key];
57545
57546 if (customizer) {
57547 var compared = isPartial
57548 ? customizer(othValue, objValue, key, other, object, stack)
57549 : customizer(objValue, othValue, key, object, other, stack);
57550 }
57551 // Recursively compare objects (susceptible to call stack limits).
57552 if (!(compared === undefined
57553 ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
57554 : compared
57555 )) {
57556 result = false;
57557 break;
57558 }
57559 skipCtor || (skipCtor = key == 'constructor');
57560 }
57561 if (result && !skipCtor) {
57562 var objCtor = object.constructor,
57563 othCtor = other.constructor;
57564
57565 // Non `Object` object instances with different constructors are not equal.
57566 if (objCtor != othCtor &&
57567 ('constructor' in object && 'constructor' in other) &&
57568 !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
57569 typeof othCtor == 'function' && othCtor instanceof othCtor)) {
57570 result = false;
57571 }
57572 }
57573 stack['delete'](object);
57574 stack['delete'](other);
57575 return result;
57576}
57577
57578module.exports = equalObjects;
57579
57580
57581/***/ }),
57582
57583/***/ "../../node_modules/lodash/_freeGlobal.js":
57584/*!***********************************************************!*\
57585 !*** /root/amplify-js/node_modules/lodash/_freeGlobal.js ***!
57586 \***********************************************************/
57587/*! no static exports found */
57588/***/ (function(module, exports, __webpack_require__) {
57589
57590/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
57591var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
57592
57593module.exports = freeGlobal;
57594
57595/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
57596
57597/***/ }),
57598
57599/***/ "../../node_modules/lodash/_getAllKeys.js":
57600/*!***********************************************************!*\
57601 !*** /root/amplify-js/node_modules/lodash/_getAllKeys.js ***!
57602 \***********************************************************/
57603/*! no static exports found */
57604/***/ (function(module, exports, __webpack_require__) {
57605
57606var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
57607 getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
57608 keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
57609
57610/**
57611 * Creates an array of own enumerable property names and symbols of `object`.
57612 *
57613 * @private
57614 * @param {Object} object The object to query.
57615 * @returns {Array} Returns the array of property names and symbols.
57616 */
57617function getAllKeys(object) {
57618 return baseGetAllKeys(object, keys, getSymbols);
57619}
57620
57621module.exports = getAllKeys;
57622
57623
57624/***/ }),
57625
57626/***/ "../../node_modules/lodash/_getMapData.js":
57627/*!***********************************************************!*\
57628 !*** /root/amplify-js/node_modules/lodash/_getMapData.js ***!
57629 \***********************************************************/
57630/*! no static exports found */
57631/***/ (function(module, exports, __webpack_require__) {
57632
57633var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
57634
57635/**
57636 * Gets the data for `map`.
57637 *
57638 * @private
57639 * @param {Object} map The map to query.
57640 * @param {string} key The reference key.
57641 * @returns {*} Returns the map data.
57642 */
57643function getMapData(map, key) {
57644 var data = map.__data__;
57645 return isKeyable(key)
57646 ? data[typeof key == 'string' ? 'string' : 'hash']
57647 : data.map;
57648}
57649
57650module.exports = getMapData;
57651
57652
57653/***/ }),
57654
57655/***/ "../../node_modules/lodash/_getNative.js":
57656/*!**********************************************************!*\
57657 !*** /root/amplify-js/node_modules/lodash/_getNative.js ***!
57658 \**********************************************************/
57659/*! no static exports found */
57660/***/ (function(module, exports, __webpack_require__) {
57661
57662var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
57663 getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
57664
57665/**
57666 * Gets the native function at `key` of `object`.
57667 *
57668 * @private
57669 * @param {Object} object The object to query.
57670 * @param {string} key The key of the method to get.
57671 * @returns {*} Returns the function if it's native, else `undefined`.
57672 */
57673function getNative(object, key) {
57674 var value = getValue(object, key);
57675 return baseIsNative(value) ? value : undefined;
57676}
57677
57678module.exports = getNative;
57679
57680
57681/***/ }),
57682
57683/***/ "../../node_modules/lodash/_getRawTag.js":
57684/*!**********************************************************!*\
57685 !*** /root/amplify-js/node_modules/lodash/_getRawTag.js ***!
57686 \**********************************************************/
57687/*! no static exports found */
57688/***/ (function(module, exports, __webpack_require__) {
57689
57690var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
57691
57692/** Used for built-in method references. */
57693var objectProto = Object.prototype;
57694
57695/** Used to check objects for own properties. */
57696var hasOwnProperty = objectProto.hasOwnProperty;
57697
57698/**
57699 * Used to resolve the
57700 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
57701 * of values.
57702 */
57703var nativeObjectToString = objectProto.toString;
57704
57705/** Built-in value references. */
57706var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
57707
57708/**
57709 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
57710 *
57711 * @private
57712 * @param {*} value The value to query.
57713 * @returns {string} Returns the raw `toStringTag`.
57714 */
57715function getRawTag(value) {
57716 var isOwn = hasOwnProperty.call(value, symToStringTag),
57717 tag = value[symToStringTag];
57718
57719 try {
57720 value[symToStringTag] = undefined;
57721 var unmasked = true;
57722 } catch (e) {}
57723
57724 var result = nativeObjectToString.call(value);
57725 if (unmasked) {
57726 if (isOwn) {
57727 value[symToStringTag] = tag;
57728 } else {
57729 delete value[symToStringTag];
57730 }
57731 }
57732 return result;
57733}
57734
57735module.exports = getRawTag;
57736
57737
57738/***/ }),
57739
57740/***/ "../../node_modules/lodash/_getSymbols.js":
57741/*!***********************************************************!*\
57742 !*** /root/amplify-js/node_modules/lodash/_getSymbols.js ***!
57743 \***********************************************************/
57744/*! no static exports found */
57745/***/ (function(module, exports, __webpack_require__) {
57746
57747var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
57748 stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
57749
57750/** Used for built-in method references. */
57751var objectProto = Object.prototype;
57752
57753/** Built-in value references. */
57754var propertyIsEnumerable = objectProto.propertyIsEnumerable;
57755
57756/* Built-in method references for those with the same name as other `lodash` methods. */
57757var nativeGetSymbols = Object.getOwnPropertySymbols;
57758
57759/**
57760 * Creates an array of the own enumerable symbols of `object`.
57761 *
57762 * @private
57763 * @param {Object} object The object to query.
57764 * @returns {Array} Returns the array of symbols.
57765 */
57766var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
57767 if (object == null) {
57768 return [];
57769 }
57770 object = Object(object);
57771 return arrayFilter(nativeGetSymbols(object), function(symbol) {
57772 return propertyIsEnumerable.call(object, symbol);
57773 });
57774};
57775
57776module.exports = getSymbols;
57777
57778
57779/***/ }),
57780
57781/***/ "../../node_modules/lodash/_getTag.js":
57782/*!*******************************************************!*\
57783 !*** /root/amplify-js/node_modules/lodash/_getTag.js ***!
57784 \*******************************************************/
57785/*! no static exports found */
57786/***/ (function(module, exports, __webpack_require__) {
57787
57788var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
57789 Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
57790 Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
57791 Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
57792 WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
57793 baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
57794 toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
57795
57796/** `Object#toString` result references. */
57797var mapTag = '[object Map]',
57798 objectTag = '[object Object]',
57799 promiseTag = '[object Promise]',
57800 setTag = '[object Set]',
57801 weakMapTag = '[object WeakMap]';
57802
57803var dataViewTag = '[object DataView]';
57804
57805/** Used to detect maps, sets, and weakmaps. */
57806var dataViewCtorString = toSource(DataView),
57807 mapCtorString = toSource(Map),
57808 promiseCtorString = toSource(Promise),
57809 setCtorString = toSource(Set),
57810 weakMapCtorString = toSource(WeakMap);
57811
57812/**
57813 * Gets the `toStringTag` of `value`.
57814 *
57815 * @private
57816 * @param {*} value The value to query.
57817 * @returns {string} Returns the `toStringTag`.
57818 */
57819var getTag = baseGetTag;
57820
57821// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
57822if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
57823 (Map && getTag(new Map) != mapTag) ||
57824 (Promise && getTag(Promise.resolve()) != promiseTag) ||
57825 (Set && getTag(new Set) != setTag) ||
57826 (WeakMap && getTag(new WeakMap) != weakMapTag)) {
57827 getTag = function(value) {
57828 var result = baseGetTag(value),
57829 Ctor = result == objectTag ? value.constructor : undefined,
57830 ctorString = Ctor ? toSource(Ctor) : '';
57831
57832 if (ctorString) {
57833 switch (ctorString) {
57834 case dataViewCtorString: return dataViewTag;
57835 case mapCtorString: return mapTag;
57836 case promiseCtorString: return promiseTag;
57837 case setCtorString: return setTag;
57838 case weakMapCtorString: return weakMapTag;
57839 }
57840 }
57841 return result;
57842 };
57843}
57844
57845module.exports = getTag;
57846
57847
57848/***/ }),
57849
57850/***/ "../../node_modules/lodash/_getValue.js":
57851/*!*********************************************************!*\
57852 !*** /root/amplify-js/node_modules/lodash/_getValue.js ***!
57853 \*********************************************************/
57854/*! no static exports found */
57855/***/ (function(module, exports) {
57856
57857/**
57858 * Gets the value at `key` of `object`.
57859 *
57860 * @private
57861 * @param {Object} [object] The object to query.
57862 * @param {string} key The key of the property to get.
57863 * @returns {*} Returns the property value.
57864 */
57865function getValue(object, key) {
57866 return object == null ? undefined : object[key];
57867}
57868
57869module.exports = getValue;
57870
57871
57872/***/ }),
57873
57874/***/ "../../node_modules/lodash/_hashClear.js":
57875/*!**********************************************************!*\
57876 !*** /root/amplify-js/node_modules/lodash/_hashClear.js ***!
57877 \**********************************************************/
57878/*! no static exports found */
57879/***/ (function(module, exports, __webpack_require__) {
57880
57881var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
57882
57883/**
57884 * Removes all key-value entries from the hash.
57885 *
57886 * @private
57887 * @name clear
57888 * @memberOf Hash
57889 */
57890function hashClear() {
57891 this.__data__ = nativeCreate ? nativeCreate(null) : {};
57892 this.size = 0;
57893}
57894
57895module.exports = hashClear;
57896
57897
57898/***/ }),
57899
57900/***/ "../../node_modules/lodash/_hashDelete.js":
57901/*!***********************************************************!*\
57902 !*** /root/amplify-js/node_modules/lodash/_hashDelete.js ***!
57903 \***********************************************************/
57904/*! no static exports found */
57905/***/ (function(module, exports) {
57906
57907/**
57908 * Removes `key` and its value from the hash.
57909 *
57910 * @private
57911 * @name delete
57912 * @memberOf Hash
57913 * @param {Object} hash The hash to modify.
57914 * @param {string} key The key of the value to remove.
57915 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
57916 */
57917function hashDelete(key) {
57918 var result = this.has(key) && delete this.__data__[key];
57919 this.size -= result ? 1 : 0;
57920 return result;
57921}
57922
57923module.exports = hashDelete;
57924
57925
57926/***/ }),
57927
57928/***/ "../../node_modules/lodash/_hashGet.js":
57929/*!********************************************************!*\
57930 !*** /root/amplify-js/node_modules/lodash/_hashGet.js ***!
57931 \********************************************************/
57932/*! no static exports found */
57933/***/ (function(module, exports, __webpack_require__) {
57934
57935var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
57936
57937/** Used to stand-in for `undefined` hash values. */
57938var HASH_UNDEFINED = '__lodash_hash_undefined__';
57939
57940/** Used for built-in method references. */
57941var objectProto = Object.prototype;
57942
57943/** Used to check objects for own properties. */
57944var hasOwnProperty = objectProto.hasOwnProperty;
57945
57946/**
57947 * Gets the hash value for `key`.
57948 *
57949 * @private
57950 * @name get
57951 * @memberOf Hash
57952 * @param {string} key The key of the value to get.
57953 * @returns {*} Returns the entry value.
57954 */
57955function hashGet(key) {
57956 var data = this.__data__;
57957 if (nativeCreate) {
57958 var result = data[key];
57959 return result === HASH_UNDEFINED ? undefined : result;
57960 }
57961 return hasOwnProperty.call(data, key) ? data[key] : undefined;
57962}
57963
57964module.exports = hashGet;
57965
57966
57967/***/ }),
57968
57969/***/ "../../node_modules/lodash/_hashHas.js":
57970/*!********************************************************!*\
57971 !*** /root/amplify-js/node_modules/lodash/_hashHas.js ***!
57972 \********************************************************/
57973/*! no static exports found */
57974/***/ (function(module, exports, __webpack_require__) {
57975
57976var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
57977
57978/** Used for built-in method references. */
57979var objectProto = Object.prototype;
57980
57981/** Used to check objects for own properties. */
57982var hasOwnProperty = objectProto.hasOwnProperty;
57983
57984/**
57985 * Checks if a hash value for `key` exists.
57986 *
57987 * @private
57988 * @name has
57989 * @memberOf Hash
57990 * @param {string} key The key of the entry to check.
57991 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
57992 */
57993function hashHas(key) {
57994 var data = this.__data__;
57995 return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
57996}
57997
57998module.exports = hashHas;
57999
58000
58001/***/ }),
58002
58003/***/ "../../node_modules/lodash/_hashSet.js":
58004/*!********************************************************!*\
58005 !*** /root/amplify-js/node_modules/lodash/_hashSet.js ***!
58006 \********************************************************/
58007/*! no static exports found */
58008/***/ (function(module, exports, __webpack_require__) {
58009
58010var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
58011
58012/** Used to stand-in for `undefined` hash values. */
58013var HASH_UNDEFINED = '__lodash_hash_undefined__';
58014
58015/**
58016 * Sets the hash `key` to `value`.
58017 *
58018 * @private
58019 * @name set
58020 * @memberOf Hash
58021 * @param {string} key The key of the value to set.
58022 * @param {*} value The value to set.
58023 * @returns {Object} Returns the hash instance.
58024 */
58025function hashSet(key, value) {
58026 var data = this.__data__;
58027 this.size += this.has(key) ? 0 : 1;
58028 data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
58029 return this;
58030}
58031
58032module.exports = hashSet;
58033
58034
58035/***/ }),
58036
58037/***/ "../../node_modules/lodash/_isIndex.js":
58038/*!********************************************************!*\
58039 !*** /root/amplify-js/node_modules/lodash/_isIndex.js ***!
58040 \********************************************************/
58041/*! no static exports found */
58042/***/ (function(module, exports) {
58043
58044/** Used as references for various `Number` constants. */
58045var MAX_SAFE_INTEGER = 9007199254740991;
58046
58047/** Used to detect unsigned integer values. */
58048var reIsUint = /^(?:0|[1-9]\d*)$/;
58049
58050/**
58051 * Checks if `value` is a valid array-like index.
58052 *
58053 * @private
58054 * @param {*} value The value to check.
58055 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
58056 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
58057 */
58058function isIndex(value, length) {
58059 var type = typeof value;
58060 length = length == null ? MAX_SAFE_INTEGER : length;
58061
58062 return !!length &&
58063 (type == 'number' ||
58064 (type != 'symbol' && reIsUint.test(value))) &&
58065 (value > -1 && value % 1 == 0 && value < length);
58066}
58067
58068module.exports = isIndex;
58069
58070
58071/***/ }),
58072
58073/***/ "../../node_modules/lodash/_isKey.js":
58074/*!******************************************************!*\
58075 !*** /root/amplify-js/node_modules/lodash/_isKey.js ***!
58076 \******************************************************/
58077/*! no static exports found */
58078/***/ (function(module, exports, __webpack_require__) {
58079
58080var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
58081 isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
58082
58083/** Used to match property names within property paths. */
58084var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
58085 reIsPlainProp = /^\w*$/;
58086
58087/**
58088 * Checks if `value` is a property name and not a property path.
58089 *
58090 * @private
58091 * @param {*} value The value to check.
58092 * @param {Object} [object] The object to query keys on.
58093 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
58094 */
58095function isKey(value, object) {
58096 if (isArray(value)) {
58097 return false;
58098 }
58099 var type = typeof value;
58100 if (type == 'number' || type == 'symbol' || type == 'boolean' ||
58101 value == null || isSymbol(value)) {
58102 return true;
58103 }
58104 return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
58105 (object != null && value in Object(object));
58106}
58107
58108module.exports = isKey;
58109
58110
58111/***/ }),
58112
58113/***/ "../../node_modules/lodash/_isKeyable.js":
58114/*!**********************************************************!*\
58115 !*** /root/amplify-js/node_modules/lodash/_isKeyable.js ***!
58116 \**********************************************************/
58117/*! no static exports found */
58118/***/ (function(module, exports) {
58119
58120/**
58121 * Checks if `value` is suitable for use as unique object key.
58122 *
58123 * @private
58124 * @param {*} value The value to check.
58125 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
58126 */
58127function isKeyable(value) {
58128 var type = typeof value;
58129 return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
58130 ? (value !== '__proto__')
58131 : (value === null);
58132}
58133
58134module.exports = isKeyable;
58135
58136
58137/***/ }),
58138
58139/***/ "../../node_modules/lodash/_isMasked.js":
58140/*!*********************************************************!*\
58141 !*** /root/amplify-js/node_modules/lodash/_isMasked.js ***!
58142 \*********************************************************/
58143/*! no static exports found */
58144/***/ (function(module, exports, __webpack_require__) {
58145
58146var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
58147
58148/** Used to detect methods masquerading as native. */
58149var maskSrcKey = (function() {
58150 var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
58151 return uid ? ('Symbol(src)_1.' + uid) : '';
58152}());
58153
58154/**
58155 * Checks if `func` has its source masked.
58156 *
58157 * @private
58158 * @param {Function} func The function to check.
58159 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
58160 */
58161function isMasked(func) {
58162 return !!maskSrcKey && (maskSrcKey in func);
58163}
58164
58165module.exports = isMasked;
58166
58167
58168/***/ }),
58169
58170/***/ "../../node_modules/lodash/_isPrototype.js":
58171/*!************************************************************!*\
58172 !*** /root/amplify-js/node_modules/lodash/_isPrototype.js ***!
58173 \************************************************************/
58174/*! no static exports found */
58175/***/ (function(module, exports) {
58176
58177/** Used for built-in method references. */
58178var objectProto = Object.prototype;
58179
58180/**
58181 * Checks if `value` is likely a prototype object.
58182 *
58183 * @private
58184 * @param {*} value The value to check.
58185 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
58186 */
58187function isPrototype(value) {
58188 var Ctor = value && value.constructor,
58189 proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
58190
58191 return value === proto;
58192}
58193
58194module.exports = isPrototype;
58195
58196
58197/***/ }),
58198
58199/***/ "../../node_modules/lodash/_listCacheClear.js":
58200/*!***************************************************************!*\
58201 !*** /root/amplify-js/node_modules/lodash/_listCacheClear.js ***!
58202 \***************************************************************/
58203/*! no static exports found */
58204/***/ (function(module, exports) {
58205
58206/**
58207 * Removes all key-value entries from the list cache.
58208 *
58209 * @private
58210 * @name clear
58211 * @memberOf ListCache
58212 */
58213function listCacheClear() {
58214 this.__data__ = [];
58215 this.size = 0;
58216}
58217
58218module.exports = listCacheClear;
58219
58220
58221/***/ }),
58222
58223/***/ "../../node_modules/lodash/_listCacheDelete.js":
58224/*!****************************************************************!*\
58225 !*** /root/amplify-js/node_modules/lodash/_listCacheDelete.js ***!
58226 \****************************************************************/
58227/*! no static exports found */
58228/***/ (function(module, exports, __webpack_require__) {
58229
58230var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
58231
58232/** Used for built-in method references. */
58233var arrayProto = Array.prototype;
58234
58235/** Built-in value references. */
58236var splice = arrayProto.splice;
58237
58238/**
58239 * Removes `key` and its value from the list cache.
58240 *
58241 * @private
58242 * @name delete
58243 * @memberOf ListCache
58244 * @param {string} key The key of the value to remove.
58245 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
58246 */
58247function listCacheDelete(key) {
58248 var data = this.__data__,
58249 index = assocIndexOf(data, key);
58250
58251 if (index < 0) {
58252 return false;
58253 }
58254 var lastIndex = data.length - 1;
58255 if (index == lastIndex) {
58256 data.pop();
58257 } else {
58258 splice.call(data, index, 1);
58259 }
58260 --this.size;
58261 return true;
58262}
58263
58264module.exports = listCacheDelete;
58265
58266
58267/***/ }),
58268
58269/***/ "../../node_modules/lodash/_listCacheGet.js":
58270/*!*************************************************************!*\
58271 !*** /root/amplify-js/node_modules/lodash/_listCacheGet.js ***!
58272 \*************************************************************/
58273/*! no static exports found */
58274/***/ (function(module, exports, __webpack_require__) {
58275
58276var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
58277
58278/**
58279 * Gets the list cache value for `key`.
58280 *
58281 * @private
58282 * @name get
58283 * @memberOf ListCache
58284 * @param {string} key The key of the value to get.
58285 * @returns {*} Returns the entry value.
58286 */
58287function listCacheGet(key) {
58288 var data = this.__data__,
58289 index = assocIndexOf(data, key);
58290
58291 return index < 0 ? undefined : data[index][1];
58292}
58293
58294module.exports = listCacheGet;
58295
58296
58297/***/ }),
58298
58299/***/ "../../node_modules/lodash/_listCacheHas.js":
58300/*!*************************************************************!*\
58301 !*** /root/amplify-js/node_modules/lodash/_listCacheHas.js ***!
58302 \*************************************************************/
58303/*! no static exports found */
58304/***/ (function(module, exports, __webpack_require__) {
58305
58306var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
58307
58308/**
58309 * Checks if a list cache value for `key` exists.
58310 *
58311 * @private
58312 * @name has
58313 * @memberOf ListCache
58314 * @param {string} key The key of the entry to check.
58315 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
58316 */
58317function listCacheHas(key) {
58318 return assocIndexOf(this.__data__, key) > -1;
58319}
58320
58321module.exports = listCacheHas;
58322
58323
58324/***/ }),
58325
58326/***/ "../../node_modules/lodash/_listCacheSet.js":
58327/*!*************************************************************!*\
58328 !*** /root/amplify-js/node_modules/lodash/_listCacheSet.js ***!
58329 \*************************************************************/
58330/*! no static exports found */
58331/***/ (function(module, exports, __webpack_require__) {
58332
58333var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
58334
58335/**
58336 * Sets the list cache `key` to `value`.
58337 *
58338 * @private
58339 * @name set
58340 * @memberOf ListCache
58341 * @param {string} key The key of the value to set.
58342 * @param {*} value The value to set.
58343 * @returns {Object} Returns the list cache instance.
58344 */
58345function listCacheSet(key, value) {
58346 var data = this.__data__,
58347 index = assocIndexOf(data, key);
58348
58349 if (index < 0) {
58350 ++this.size;
58351 data.push([key, value]);
58352 } else {
58353 data[index][1] = value;
58354 }
58355 return this;
58356}
58357
58358module.exports = listCacheSet;
58359
58360
58361/***/ }),
58362
58363/***/ "../../node_modules/lodash/_mapCacheClear.js":
58364/*!**************************************************************!*\
58365 !*** /root/amplify-js/node_modules/lodash/_mapCacheClear.js ***!
58366 \**************************************************************/
58367/*! no static exports found */
58368/***/ (function(module, exports, __webpack_require__) {
58369
58370var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
58371 ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
58372 Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
58373
58374/**
58375 * Removes all key-value entries from the map.
58376 *
58377 * @private
58378 * @name clear
58379 * @memberOf MapCache
58380 */
58381function mapCacheClear() {
58382 this.size = 0;
58383 this.__data__ = {
58384 'hash': new Hash,
58385 'map': new (Map || ListCache),
58386 'string': new Hash
58387 };
58388}
58389
58390module.exports = mapCacheClear;
58391
58392
58393/***/ }),
58394
58395/***/ "../../node_modules/lodash/_mapCacheDelete.js":
58396/*!***************************************************************!*\
58397 !*** /root/amplify-js/node_modules/lodash/_mapCacheDelete.js ***!
58398 \***************************************************************/
58399/*! no static exports found */
58400/***/ (function(module, exports, __webpack_require__) {
58401
58402var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
58403
58404/**
58405 * Removes `key` and its value from the map.
58406 *
58407 * @private
58408 * @name delete
58409 * @memberOf MapCache
58410 * @param {string} key The key of the value to remove.
58411 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
58412 */
58413function mapCacheDelete(key) {
58414 var result = getMapData(this, key)['delete'](key);
58415 this.size -= result ? 1 : 0;
58416 return result;
58417}
58418
58419module.exports = mapCacheDelete;
58420
58421
58422/***/ }),
58423
58424/***/ "../../node_modules/lodash/_mapCacheGet.js":
58425/*!************************************************************!*\
58426 !*** /root/amplify-js/node_modules/lodash/_mapCacheGet.js ***!
58427 \************************************************************/
58428/*! no static exports found */
58429/***/ (function(module, exports, __webpack_require__) {
58430
58431var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
58432
58433/**
58434 * Gets the map value for `key`.
58435 *
58436 * @private
58437 * @name get
58438 * @memberOf MapCache
58439 * @param {string} key The key of the value to get.
58440 * @returns {*} Returns the entry value.
58441 */
58442function mapCacheGet(key) {
58443 return getMapData(this, key).get(key);
58444}
58445
58446module.exports = mapCacheGet;
58447
58448
58449/***/ }),
58450
58451/***/ "../../node_modules/lodash/_mapCacheHas.js":
58452/*!************************************************************!*\
58453 !*** /root/amplify-js/node_modules/lodash/_mapCacheHas.js ***!
58454 \************************************************************/
58455/*! no static exports found */
58456/***/ (function(module, exports, __webpack_require__) {
58457
58458var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
58459
58460/**
58461 * Checks if a map value for `key` exists.
58462 *
58463 * @private
58464 * @name has
58465 * @memberOf MapCache
58466 * @param {string} key The key of the entry to check.
58467 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
58468 */
58469function mapCacheHas(key) {
58470 return getMapData(this, key).has(key);
58471}
58472
58473module.exports = mapCacheHas;
58474
58475
58476/***/ }),
58477
58478/***/ "../../node_modules/lodash/_mapCacheSet.js":
58479/*!************************************************************!*\
58480 !*** /root/amplify-js/node_modules/lodash/_mapCacheSet.js ***!
58481 \************************************************************/
58482/*! no static exports found */
58483/***/ (function(module, exports, __webpack_require__) {
58484
58485var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
58486
58487/**
58488 * Sets the map `key` to `value`.
58489 *
58490 * @private
58491 * @name set
58492 * @memberOf MapCache
58493 * @param {string} key The key of the value to set.
58494 * @param {*} value The value to set.
58495 * @returns {Object} Returns the map cache instance.
58496 */
58497function mapCacheSet(key, value) {
58498 var data = getMapData(this, key),
58499 size = data.size;
58500
58501 data.set(key, value);
58502 this.size += data.size == size ? 0 : 1;
58503 return this;
58504}
58505
58506module.exports = mapCacheSet;
58507
58508
58509/***/ }),
58510
58511/***/ "../../node_modules/lodash/_mapToArray.js":
58512/*!***********************************************************!*\
58513 !*** /root/amplify-js/node_modules/lodash/_mapToArray.js ***!
58514 \***********************************************************/
58515/*! no static exports found */
58516/***/ (function(module, exports) {
58517
58518/**
58519 * Converts `map` to its key-value pairs.
58520 *
58521 * @private
58522 * @param {Object} map The map to convert.
58523 * @returns {Array} Returns the key-value pairs.
58524 */
58525function mapToArray(map) {
58526 var index = -1,
58527 result = Array(map.size);
58528
58529 map.forEach(function(value, key) {
58530 result[++index] = [key, value];
58531 });
58532 return result;
58533}
58534
58535module.exports = mapToArray;
58536
58537
58538/***/ }),
58539
58540/***/ "../../node_modules/lodash/_memoizeCapped.js":
58541/*!**************************************************************!*\
58542 !*** /root/amplify-js/node_modules/lodash/_memoizeCapped.js ***!
58543 \**************************************************************/
58544/*! no static exports found */
58545/***/ (function(module, exports, __webpack_require__) {
58546
58547var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
58548
58549/** Used as the maximum memoize cache size. */
58550var MAX_MEMOIZE_SIZE = 500;
58551
58552/**
58553 * A specialized version of `_.memoize` which clears the memoized function's
58554 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
58555 *
58556 * @private
58557 * @param {Function} func The function to have its output memoized.
58558 * @returns {Function} Returns the new memoized function.
58559 */
58560function memoizeCapped(func) {
58561 var result = memoize(func, function(key) {
58562 if (cache.size === MAX_MEMOIZE_SIZE) {
58563 cache.clear();
58564 }
58565 return key;
58566 });
58567
58568 var cache = result.cache;
58569 return result;
58570}
58571
58572module.exports = memoizeCapped;
58573
58574
58575/***/ }),
58576
58577/***/ "../../node_modules/lodash/_nativeCreate.js":
58578/*!*************************************************************!*\
58579 !*** /root/amplify-js/node_modules/lodash/_nativeCreate.js ***!
58580 \*************************************************************/
58581/*! no static exports found */
58582/***/ (function(module, exports, __webpack_require__) {
58583
58584var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
58585
58586/* Built-in method references that are verified to be native. */
58587var nativeCreate = getNative(Object, 'create');
58588
58589module.exports = nativeCreate;
58590
58591
58592/***/ }),
58593
58594/***/ "../../node_modules/lodash/_nativeKeys.js":
58595/*!***********************************************************!*\
58596 !*** /root/amplify-js/node_modules/lodash/_nativeKeys.js ***!
58597 \***********************************************************/
58598/*! no static exports found */
58599/***/ (function(module, exports, __webpack_require__) {
58600
58601var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
58602
58603/* Built-in method references for those with the same name as other `lodash` methods. */
58604var nativeKeys = overArg(Object.keys, Object);
58605
58606module.exports = nativeKeys;
58607
58608
58609/***/ }),
58610
58611/***/ "../../node_modules/lodash/_nodeUtil.js":
58612/*!*********************************************************!*\
58613 !*** /root/amplify-js/node_modules/lodash/_nodeUtil.js ***!
58614 \*********************************************************/
58615/*! no static exports found */
58616/***/ (function(module, exports, __webpack_require__) {
58617
58618/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
58619
58620/** Detect free variable `exports`. */
58621var freeExports = true && exports && !exports.nodeType && exports;
58622
58623/** Detect free variable `module`. */
58624var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
58625
58626/** Detect the popular CommonJS extension `module.exports`. */
58627var moduleExports = freeModule && freeModule.exports === freeExports;
58628
58629/** Detect free variable `process` from Node.js. */
58630var freeProcess = moduleExports && freeGlobal.process;
58631
58632/** Used to access faster Node.js helpers. */
58633var nodeUtil = (function() {
58634 try {
58635 // Use `util.types` for Node.js 10+.
58636 var types = freeModule && freeModule.require && freeModule.require('util').types;
58637
58638 if (types) {
58639 return types;
58640 }
58641
58642 // Legacy `process.binding('util')` for Node.js < 10.
58643 return freeProcess && freeProcess.binding && freeProcess.binding('util');
58644 } catch (e) {}
58645}());
58646
58647module.exports = nodeUtil;
58648
58649/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
58650
58651/***/ }),
58652
58653/***/ "../../node_modules/lodash/_objectToString.js":
58654/*!***************************************************************!*\
58655 !*** /root/amplify-js/node_modules/lodash/_objectToString.js ***!
58656 \***************************************************************/
58657/*! no static exports found */
58658/***/ (function(module, exports) {
58659
58660/** Used for built-in method references. */
58661var objectProto = Object.prototype;
58662
58663/**
58664 * Used to resolve the
58665 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
58666 * of values.
58667 */
58668var nativeObjectToString = objectProto.toString;
58669
58670/**
58671 * Converts `value` to a string using `Object.prototype.toString`.
58672 *
58673 * @private
58674 * @param {*} value The value to convert.
58675 * @returns {string} Returns the converted string.
58676 */
58677function objectToString(value) {
58678 return nativeObjectToString.call(value);
58679}
58680
58681module.exports = objectToString;
58682
58683
58684/***/ }),
58685
58686/***/ "../../node_modules/lodash/_overArg.js":
58687/*!********************************************************!*\
58688 !*** /root/amplify-js/node_modules/lodash/_overArg.js ***!
58689 \********************************************************/
58690/*! no static exports found */
58691/***/ (function(module, exports) {
58692
58693/**
58694 * Creates a unary function that invokes `func` with its argument transformed.
58695 *
58696 * @private
58697 * @param {Function} func The function to wrap.
58698 * @param {Function} transform The argument transform.
58699 * @returns {Function} Returns the new function.
58700 */
58701function overArg(func, transform) {
58702 return function(arg) {
58703 return func(transform(arg));
58704 };
58705}
58706
58707module.exports = overArg;
58708
58709
58710/***/ }),
58711
58712/***/ "../../node_modules/lodash/_root.js":
58713/*!*****************************************************!*\
58714 !*** /root/amplify-js/node_modules/lodash/_root.js ***!
58715 \*****************************************************/
58716/*! no static exports found */
58717/***/ (function(module, exports, __webpack_require__) {
58718
58719var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
58720
58721/** Detect free variable `self`. */
58722var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
58723
58724/** Used as a reference to the global object. */
58725var root = freeGlobal || freeSelf || Function('return this')();
58726
58727module.exports = root;
58728
58729
58730/***/ }),
58731
58732/***/ "../../node_modules/lodash/_setCacheAdd.js":
58733/*!************************************************************!*\
58734 !*** /root/amplify-js/node_modules/lodash/_setCacheAdd.js ***!
58735 \************************************************************/
58736/*! no static exports found */
58737/***/ (function(module, exports) {
58738
58739/** Used to stand-in for `undefined` hash values. */
58740var HASH_UNDEFINED = '__lodash_hash_undefined__';
58741
58742/**
58743 * Adds `value` to the array cache.
58744 *
58745 * @private
58746 * @name add
58747 * @memberOf SetCache
58748 * @alias push
58749 * @param {*} value The value to cache.
58750 * @returns {Object} Returns the cache instance.
58751 */
58752function setCacheAdd(value) {
58753 this.__data__.set(value, HASH_UNDEFINED);
58754 return this;
58755}
58756
58757module.exports = setCacheAdd;
58758
58759
58760/***/ }),
58761
58762/***/ "../../node_modules/lodash/_setCacheHas.js":
58763/*!************************************************************!*\
58764 !*** /root/amplify-js/node_modules/lodash/_setCacheHas.js ***!
58765 \************************************************************/
58766/*! no static exports found */
58767/***/ (function(module, exports) {
58768
58769/**
58770 * Checks if `value` is in the array cache.
58771 *
58772 * @private
58773 * @name has
58774 * @memberOf SetCache
58775 * @param {*} value The value to search for.
58776 * @returns {number} Returns `true` if `value` is found, else `false`.
58777 */
58778function setCacheHas(value) {
58779 return this.__data__.has(value);
58780}
58781
58782module.exports = setCacheHas;
58783
58784
58785/***/ }),
58786
58787/***/ "../../node_modules/lodash/_setToArray.js":
58788/*!***********************************************************!*\
58789 !*** /root/amplify-js/node_modules/lodash/_setToArray.js ***!
58790 \***********************************************************/
58791/*! no static exports found */
58792/***/ (function(module, exports) {
58793
58794/**
58795 * Converts `set` to an array of its values.
58796 *
58797 * @private
58798 * @param {Object} set The set to convert.
58799 * @returns {Array} Returns the values.
58800 */
58801function setToArray(set) {
58802 var index = -1,
58803 result = Array(set.size);
58804
58805 set.forEach(function(value) {
58806 result[++index] = value;
58807 });
58808 return result;
58809}
58810
58811module.exports = setToArray;
58812
58813
58814/***/ }),
58815
58816/***/ "../../node_modules/lodash/_stackClear.js":
58817/*!***********************************************************!*\
58818 !*** /root/amplify-js/node_modules/lodash/_stackClear.js ***!
58819 \***********************************************************/
58820/*! no static exports found */
58821/***/ (function(module, exports, __webpack_require__) {
58822
58823var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
58824
58825/**
58826 * Removes all key-value entries from the stack.
58827 *
58828 * @private
58829 * @name clear
58830 * @memberOf Stack
58831 */
58832function stackClear() {
58833 this.__data__ = new ListCache;
58834 this.size = 0;
58835}
58836
58837module.exports = stackClear;
58838
58839
58840/***/ }),
58841
58842/***/ "../../node_modules/lodash/_stackDelete.js":
58843/*!************************************************************!*\
58844 !*** /root/amplify-js/node_modules/lodash/_stackDelete.js ***!
58845 \************************************************************/
58846/*! no static exports found */
58847/***/ (function(module, exports) {
58848
58849/**
58850 * Removes `key` and its value from the stack.
58851 *
58852 * @private
58853 * @name delete
58854 * @memberOf Stack
58855 * @param {string} key The key of the value to remove.
58856 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
58857 */
58858function stackDelete(key) {
58859 var data = this.__data__,
58860 result = data['delete'](key);
58861
58862 this.size = data.size;
58863 return result;
58864}
58865
58866module.exports = stackDelete;
58867
58868
58869/***/ }),
58870
58871/***/ "../../node_modules/lodash/_stackGet.js":
58872/*!*********************************************************!*\
58873 !*** /root/amplify-js/node_modules/lodash/_stackGet.js ***!
58874 \*********************************************************/
58875/*! no static exports found */
58876/***/ (function(module, exports) {
58877
58878/**
58879 * Gets the stack value for `key`.
58880 *
58881 * @private
58882 * @name get
58883 * @memberOf Stack
58884 * @param {string} key The key of the value to get.
58885 * @returns {*} Returns the entry value.
58886 */
58887function stackGet(key) {
58888 return this.__data__.get(key);
58889}
58890
58891module.exports = stackGet;
58892
58893
58894/***/ }),
58895
58896/***/ "../../node_modules/lodash/_stackHas.js":
58897/*!*********************************************************!*\
58898 !*** /root/amplify-js/node_modules/lodash/_stackHas.js ***!
58899 \*********************************************************/
58900/*! no static exports found */
58901/***/ (function(module, exports) {
58902
58903/**
58904 * Checks if a stack value for `key` exists.
58905 *
58906 * @private
58907 * @name has
58908 * @memberOf Stack
58909 * @param {string} key The key of the entry to check.
58910 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
58911 */
58912function stackHas(key) {
58913 return this.__data__.has(key);
58914}
58915
58916module.exports = stackHas;
58917
58918
58919/***/ }),
58920
58921/***/ "../../node_modules/lodash/_stackSet.js":
58922/*!*********************************************************!*\
58923 !*** /root/amplify-js/node_modules/lodash/_stackSet.js ***!
58924 \*********************************************************/
58925/*! no static exports found */
58926/***/ (function(module, exports, __webpack_require__) {
58927
58928var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
58929 Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
58930 MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
58931
58932/** Used as the size to enable large array optimizations. */
58933var LARGE_ARRAY_SIZE = 200;
58934
58935/**
58936 * Sets the stack `key` to `value`.
58937 *
58938 * @private
58939 * @name set
58940 * @memberOf Stack
58941 * @param {string} key The key of the value to set.
58942 * @param {*} value The value to set.
58943 * @returns {Object} Returns the stack cache instance.
58944 */
58945function stackSet(key, value) {
58946 var data = this.__data__;
58947 if (data instanceof ListCache) {
58948 var pairs = data.__data__;
58949 if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
58950 pairs.push([key, value]);
58951 this.size = ++data.size;
58952 return this;
58953 }
58954 data = this.__data__ = new MapCache(pairs);
58955 }
58956 data.set(key, value);
58957 this.size = data.size;
58958 return this;
58959}
58960
58961module.exports = stackSet;
58962
58963
58964/***/ }),
58965
58966/***/ "../../node_modules/lodash/_stringToPath.js":
58967/*!*************************************************************!*\
58968 !*** /root/amplify-js/node_modules/lodash/_stringToPath.js ***!
58969 \*************************************************************/
58970/*! no static exports found */
58971/***/ (function(module, exports, __webpack_require__) {
58972
58973var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
58974
58975/** Used to match property names within property paths. */
58976var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
58977
58978/** Used to match backslashes in property paths. */
58979var reEscapeChar = /\\(\\)?/g;
58980
58981/**
58982 * Converts `string` to a property path array.
58983 *
58984 * @private
58985 * @param {string} string The string to convert.
58986 * @returns {Array} Returns the property path array.
58987 */
58988var stringToPath = memoizeCapped(function(string) {
58989 var result = [];
58990 if (string.charCodeAt(0) === 46 /* . */) {
58991 result.push('');
58992 }
58993 string.replace(rePropName, function(match, number, quote, subString) {
58994 result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
58995 });
58996 return result;
58997});
58998
58999module.exports = stringToPath;
59000
59001
59002/***/ }),
59003
59004/***/ "../../node_modules/lodash/_toKey.js":
59005/*!******************************************************!*\
59006 !*** /root/amplify-js/node_modules/lodash/_toKey.js ***!
59007 \******************************************************/
59008/*! no static exports found */
59009/***/ (function(module, exports, __webpack_require__) {
59010
59011var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
59012
59013/** Used as references for various `Number` constants. */
59014var INFINITY = 1 / 0;
59015
59016/**
59017 * Converts `value` to a string key if it's not a string or symbol.
59018 *
59019 * @private
59020 * @param {*} value The value to inspect.
59021 * @returns {string|symbol} Returns the key.
59022 */
59023function toKey(value) {
59024 if (typeof value == 'string' || isSymbol(value)) {
59025 return value;
59026 }
59027 var result = (value + '');
59028 return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
59029}
59030
59031module.exports = toKey;
59032
59033
59034/***/ }),
59035
59036/***/ "../../node_modules/lodash/_toSource.js":
59037/*!*********************************************************!*\
59038 !*** /root/amplify-js/node_modules/lodash/_toSource.js ***!
59039 \*********************************************************/
59040/*! no static exports found */
59041/***/ (function(module, exports) {
59042
59043/** Used for built-in method references. */
59044var funcProto = Function.prototype;
59045
59046/** Used to resolve the decompiled source of functions. */
59047var funcToString = funcProto.toString;
59048
59049/**
59050 * Converts `func` to its source code.
59051 *
59052 * @private
59053 * @param {Function} func The function to convert.
59054 * @returns {string} Returns the source code.
59055 */
59056function toSource(func) {
59057 if (func != null) {
59058 try {
59059 return funcToString.call(func);
59060 } catch (e) {}
59061 try {
59062 return (func + '');
59063 } catch (e) {}
59064 }
59065 return '';
59066}
59067
59068module.exports = toSource;
59069
59070
59071/***/ }),
59072
59073/***/ "../../node_modules/lodash/eq.js":
59074/*!**************************************************!*\
59075 !*** /root/amplify-js/node_modules/lodash/eq.js ***!
59076 \**************************************************/
59077/*! no static exports found */
59078/***/ (function(module, exports) {
59079
59080/**
59081 * Performs a
59082 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
59083 * comparison between two values to determine if they are equivalent.
59084 *
59085 * @static
59086 * @memberOf _
59087 * @since 4.0.0
59088 * @category Lang
59089 * @param {*} value The value to compare.
59090 * @param {*} other The other value to compare.
59091 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
59092 * @example
59093 *
59094 * var object = { 'a': 1 };
59095 * var other = { 'a': 1 };
59096 *
59097 * _.eq(object, object);
59098 * // => true
59099 *
59100 * _.eq(object, other);
59101 * // => false
59102 *
59103 * _.eq('a', 'a');
59104 * // => true
59105 *
59106 * _.eq('a', Object('a'));
59107 * // => false
59108 *
59109 * _.eq(NaN, NaN);
59110 * // => true
59111 */
59112function eq(value, other) {
59113 return value === other || (value !== value && other !== other);
59114}
59115
59116module.exports = eq;
59117
59118
59119/***/ }),
59120
59121/***/ "../../node_modules/lodash/get.js":
59122/*!***************************************************!*\
59123 !*** /root/amplify-js/node_modules/lodash/get.js ***!
59124 \***************************************************/
59125/*! no static exports found */
59126/***/ (function(module, exports, __webpack_require__) {
59127
59128var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
59129
59130/**
59131 * Gets the value at `path` of `object`. If the resolved value is
59132 * `undefined`, the `defaultValue` is returned in its place.
59133 *
59134 * @static
59135 * @memberOf _
59136 * @since 3.7.0
59137 * @category Object
59138 * @param {Object} object The object to query.
59139 * @param {Array|string} path The path of the property to get.
59140 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
59141 * @returns {*} Returns the resolved value.
59142 * @example
59143 *
59144 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
59145 *
59146 * _.get(object, 'a[0].b.c');
59147 * // => 3
59148 *
59149 * _.get(object, ['a', '0', 'b', 'c']);
59150 * // => 3
59151 *
59152 * _.get(object, 'a.b.c', 'default');
59153 * // => 'default'
59154 */
59155function get(object, path, defaultValue) {
59156 var result = object == null ? undefined : baseGet(object, path);
59157 return result === undefined ? defaultValue : result;
59158}
59159
59160module.exports = get;
59161
59162
59163/***/ }),
59164
59165/***/ "../../node_modules/lodash/isArguments.js":
59166/*!***********************************************************!*\
59167 !*** /root/amplify-js/node_modules/lodash/isArguments.js ***!
59168 \***********************************************************/
59169/*! no static exports found */
59170/***/ (function(module, exports, __webpack_require__) {
59171
59172var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
59173 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
59174
59175/** Used for built-in method references. */
59176var objectProto = Object.prototype;
59177
59178/** Used to check objects for own properties. */
59179var hasOwnProperty = objectProto.hasOwnProperty;
59180
59181/** Built-in value references. */
59182var propertyIsEnumerable = objectProto.propertyIsEnumerable;
59183
59184/**
59185 * Checks if `value` is likely an `arguments` object.
59186 *
59187 * @static
59188 * @memberOf _
59189 * @since 0.1.0
59190 * @category Lang
59191 * @param {*} value The value to check.
59192 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
59193 * else `false`.
59194 * @example
59195 *
59196 * _.isArguments(function() { return arguments; }());
59197 * // => true
59198 *
59199 * _.isArguments([1, 2, 3]);
59200 * // => false
59201 */
59202var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
59203 return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
59204 !propertyIsEnumerable.call(value, 'callee');
59205};
59206
59207module.exports = isArguments;
59208
59209
59210/***/ }),
59211
59212/***/ "../../node_modules/lodash/isArray.js":
59213/*!*******************************************************!*\
59214 !*** /root/amplify-js/node_modules/lodash/isArray.js ***!
59215 \*******************************************************/
59216/*! no static exports found */
59217/***/ (function(module, exports) {
59218
59219/**
59220 * Checks if `value` is classified as an `Array` object.
59221 *
59222 * @static
59223 * @memberOf _
59224 * @since 0.1.0
59225 * @category Lang
59226 * @param {*} value The value to check.
59227 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
59228 * @example
59229 *
59230 * _.isArray([1, 2, 3]);
59231 * // => true
59232 *
59233 * _.isArray(document.body.children);
59234 * // => false
59235 *
59236 * _.isArray('abc');
59237 * // => false
59238 *
59239 * _.isArray(_.noop);
59240 * // => false
59241 */
59242var isArray = Array.isArray;
59243
59244module.exports = isArray;
59245
59246
59247/***/ }),
59248
59249/***/ "../../node_modules/lodash/isArrayLike.js":
59250/*!***********************************************************!*\
59251 !*** /root/amplify-js/node_modules/lodash/isArrayLike.js ***!
59252 \***********************************************************/
59253/*! no static exports found */
59254/***/ (function(module, exports, __webpack_require__) {
59255
59256var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
59257 isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
59258
59259/**
59260 * Checks if `value` is array-like. A value is considered array-like if it's
59261 * not a function and has a `value.length` that's an integer greater than or
59262 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
59263 *
59264 * @static
59265 * @memberOf _
59266 * @since 4.0.0
59267 * @category Lang
59268 * @param {*} value The value to check.
59269 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
59270 * @example
59271 *
59272 * _.isArrayLike([1, 2, 3]);
59273 * // => true
59274 *
59275 * _.isArrayLike(document.body.children);
59276 * // => true
59277 *
59278 * _.isArrayLike('abc');
59279 * // => true
59280 *
59281 * _.isArrayLike(_.noop);
59282 * // => false
59283 */
59284function isArrayLike(value) {
59285 return value != null && isLength(value.length) && !isFunction(value);
59286}
59287
59288module.exports = isArrayLike;
59289
59290
59291/***/ }),
59292
59293/***/ "../../node_modules/lodash/isBuffer.js":
59294/*!********************************************************!*\
59295 !*** /root/amplify-js/node_modules/lodash/isBuffer.js ***!
59296 \********************************************************/
59297/*! no static exports found */
59298/***/ (function(module, exports, __webpack_require__) {
59299
59300/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
59301 stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
59302
59303/** Detect free variable `exports`. */
59304var freeExports = true && exports && !exports.nodeType && exports;
59305
59306/** Detect free variable `module`. */
59307var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
59308
59309/** Detect the popular CommonJS extension `module.exports`. */
59310var moduleExports = freeModule && freeModule.exports === freeExports;
59311
59312/** Built-in value references. */
59313var Buffer = moduleExports ? root.Buffer : undefined;
59314
59315/* Built-in method references for those with the same name as other `lodash` methods. */
59316var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
59317
59318/**
59319 * Checks if `value` is a buffer.
59320 *
59321 * @static
59322 * @memberOf _
59323 * @since 4.3.0
59324 * @category Lang
59325 * @param {*} value The value to check.
59326 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
59327 * @example
59328 *
59329 * _.isBuffer(new Buffer(2));
59330 * // => true
59331 *
59332 * _.isBuffer(new Uint8Array(2));
59333 * // => false
59334 */
59335var isBuffer = nativeIsBuffer || stubFalse;
59336
59337module.exports = isBuffer;
59338
59339/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
59340
59341/***/ }),
59342
59343/***/ "../../node_modules/lodash/isEmpty.js":
59344/*!*******************************************************!*\
59345 !*** /root/amplify-js/node_modules/lodash/isEmpty.js ***!
59346 \*******************************************************/
59347/*! no static exports found */
59348/***/ (function(module, exports, __webpack_require__) {
59349
59350var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
59351 getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
59352 isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
59353 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
59354 isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
59355 isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
59356 isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
59357 isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
59358
59359/** `Object#toString` result references. */
59360var mapTag = '[object Map]',
59361 setTag = '[object Set]';
59362
59363/** Used for built-in method references. */
59364var objectProto = Object.prototype;
59365
59366/** Used to check objects for own properties. */
59367var hasOwnProperty = objectProto.hasOwnProperty;
59368
59369/**
59370 * Checks if `value` is an empty object, collection, map, or set.
59371 *
59372 * Objects are considered empty if they have no own enumerable string keyed
59373 * properties.
59374 *
59375 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
59376 * jQuery-like collections are considered empty if they have a `length` of `0`.
59377 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
59378 *
59379 * @static
59380 * @memberOf _
59381 * @since 0.1.0
59382 * @category Lang
59383 * @param {*} value The value to check.
59384 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
59385 * @example
59386 *
59387 * _.isEmpty(null);
59388 * // => true
59389 *
59390 * _.isEmpty(true);
59391 * // => true
59392 *
59393 * _.isEmpty(1);
59394 * // => true
59395 *
59396 * _.isEmpty([1, 2, 3]);
59397 * // => false
59398 *
59399 * _.isEmpty({ 'a': 1 });
59400 * // => false
59401 */
59402function isEmpty(value) {
59403 if (value == null) {
59404 return true;
59405 }
59406 if (isArrayLike(value) &&
59407 (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
59408 isBuffer(value) || isTypedArray(value) || isArguments(value))) {
59409 return !value.length;
59410 }
59411 var tag = getTag(value);
59412 if (tag == mapTag || tag == setTag) {
59413 return !value.size;
59414 }
59415 if (isPrototype(value)) {
59416 return !baseKeys(value).length;
59417 }
59418 for (var key in value) {
59419 if (hasOwnProperty.call(value, key)) {
59420 return false;
59421 }
59422 }
59423 return true;
59424}
59425
59426module.exports = isEmpty;
59427
59428
59429/***/ }),
59430
59431/***/ "../../node_modules/lodash/isEqual.js":
59432/*!*******************************************************!*\
59433 !*** /root/amplify-js/node_modules/lodash/isEqual.js ***!
59434 \*******************************************************/
59435/*! no static exports found */
59436/***/ (function(module, exports, __webpack_require__) {
59437
59438var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
59439
59440/**
59441 * Performs a deep comparison between two values to determine if they are
59442 * equivalent.
59443 *
59444 * **Note:** This method supports comparing arrays, array buffers, booleans,
59445 * date objects, error objects, maps, numbers, `Object` objects, regexes,
59446 * sets, strings, symbols, and typed arrays. `Object` objects are compared
59447 * by their own, not inherited, enumerable properties. Functions and DOM
59448 * nodes are compared by strict equality, i.e. `===`.
59449 *
59450 * @static
59451 * @memberOf _
59452 * @since 0.1.0
59453 * @category Lang
59454 * @param {*} value The value to compare.
59455 * @param {*} other The other value to compare.
59456 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
59457 * @example
59458 *
59459 * var object = { 'a': 1 };
59460 * var other = { 'a': 1 };
59461 *
59462 * _.isEqual(object, other);
59463 * // => true
59464 *
59465 * object === other;
59466 * // => false
59467 */
59468function isEqual(value, other) {
59469 return baseIsEqual(value, other);
59470}
59471
59472module.exports = isEqual;
59473
59474
59475/***/ }),
59476
59477/***/ "../../node_modules/lodash/isFunction.js":
59478/*!**********************************************************!*\
59479 !*** /root/amplify-js/node_modules/lodash/isFunction.js ***!
59480 \**********************************************************/
59481/*! no static exports found */
59482/***/ (function(module, exports, __webpack_require__) {
59483
59484var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
59485 isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
59486
59487/** `Object#toString` result references. */
59488var asyncTag = '[object AsyncFunction]',
59489 funcTag = '[object Function]',
59490 genTag = '[object GeneratorFunction]',
59491 proxyTag = '[object Proxy]';
59492
59493/**
59494 * Checks if `value` is classified as a `Function` object.
59495 *
59496 * @static
59497 * @memberOf _
59498 * @since 0.1.0
59499 * @category Lang
59500 * @param {*} value The value to check.
59501 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
59502 * @example
59503 *
59504 * _.isFunction(_);
59505 * // => true
59506 *
59507 * _.isFunction(/abc/);
59508 * // => false
59509 */
59510function isFunction(value) {
59511 if (!isObject(value)) {
59512 return false;
59513 }
59514 // The use of `Object#toString` avoids issues with the `typeof` operator
59515 // in Safari 9 which returns 'object' for typed arrays and other constructors.
59516 var tag = baseGetTag(value);
59517 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
59518}
59519
59520module.exports = isFunction;
59521
59522
59523/***/ }),
59524
59525/***/ "../../node_modules/lodash/isLength.js":
59526/*!********************************************************!*\
59527 !*** /root/amplify-js/node_modules/lodash/isLength.js ***!
59528 \********************************************************/
59529/*! no static exports found */
59530/***/ (function(module, exports) {
59531
59532/** Used as references for various `Number` constants. */
59533var MAX_SAFE_INTEGER = 9007199254740991;
59534
59535/**
59536 * Checks if `value` is a valid array-like length.
59537 *
59538 * **Note:** This method is loosely based on
59539 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
59540 *
59541 * @static
59542 * @memberOf _
59543 * @since 4.0.0
59544 * @category Lang
59545 * @param {*} value The value to check.
59546 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
59547 * @example
59548 *
59549 * _.isLength(3);
59550 * // => true
59551 *
59552 * _.isLength(Number.MIN_VALUE);
59553 * // => false
59554 *
59555 * _.isLength(Infinity);
59556 * // => false
59557 *
59558 * _.isLength('3');
59559 * // => false
59560 */
59561function isLength(value) {
59562 return typeof value == 'number' &&
59563 value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
59564}
59565
59566module.exports = isLength;
59567
59568
59569/***/ }),
59570
59571/***/ "../../node_modules/lodash/isObject.js":
59572/*!********************************************************!*\
59573 !*** /root/amplify-js/node_modules/lodash/isObject.js ***!
59574 \********************************************************/
59575/*! no static exports found */
59576/***/ (function(module, exports) {
59577
59578/**
59579 * Checks if `value` is the
59580 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
59581 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
59582 *
59583 * @static
59584 * @memberOf _
59585 * @since 0.1.0
59586 * @category Lang
59587 * @param {*} value The value to check.
59588 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
59589 * @example
59590 *
59591 * _.isObject({});
59592 * // => true
59593 *
59594 * _.isObject([1, 2, 3]);
59595 * // => true
59596 *
59597 * _.isObject(_.noop);
59598 * // => true
59599 *
59600 * _.isObject(null);
59601 * // => false
59602 */
59603function isObject(value) {
59604 var type = typeof value;
59605 return value != null && (type == 'object' || type == 'function');
59606}
59607
59608module.exports = isObject;
59609
59610
59611/***/ }),
59612
59613/***/ "../../node_modules/lodash/isObjectLike.js":
59614/*!************************************************************!*\
59615 !*** /root/amplify-js/node_modules/lodash/isObjectLike.js ***!
59616 \************************************************************/
59617/*! no static exports found */
59618/***/ (function(module, exports) {
59619
59620/**
59621 * Checks if `value` is object-like. A value is object-like if it's not `null`
59622 * and has a `typeof` result of "object".
59623 *
59624 * @static
59625 * @memberOf _
59626 * @since 4.0.0
59627 * @category Lang
59628 * @param {*} value The value to check.
59629 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
59630 * @example
59631 *
59632 * _.isObjectLike({});
59633 * // => true
59634 *
59635 * _.isObjectLike([1, 2, 3]);
59636 * // => true
59637 *
59638 * _.isObjectLike(_.noop);
59639 * // => false
59640 *
59641 * _.isObjectLike(null);
59642 * // => false
59643 */
59644function isObjectLike(value) {
59645 return value != null && typeof value == 'object';
59646}
59647
59648module.exports = isObjectLike;
59649
59650
59651/***/ }),
59652
59653/***/ "../../node_modules/lodash/isSymbol.js":
59654/*!********************************************************!*\
59655 !*** /root/amplify-js/node_modules/lodash/isSymbol.js ***!
59656 \********************************************************/
59657/*! no static exports found */
59658/***/ (function(module, exports, __webpack_require__) {
59659
59660var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
59661 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
59662
59663/** `Object#toString` result references. */
59664var symbolTag = '[object Symbol]';
59665
59666/**
59667 * Checks if `value` is classified as a `Symbol` primitive or object.
59668 *
59669 * @static
59670 * @memberOf _
59671 * @since 4.0.0
59672 * @category Lang
59673 * @param {*} value The value to check.
59674 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
59675 * @example
59676 *
59677 * _.isSymbol(Symbol.iterator);
59678 * // => true
59679 *
59680 * _.isSymbol('abc');
59681 * // => false
59682 */
59683function isSymbol(value) {
59684 return typeof value == 'symbol' ||
59685 (isObjectLike(value) && baseGetTag(value) == symbolTag);
59686}
59687
59688module.exports = isSymbol;
59689
59690
59691/***/ }),
59692
59693/***/ "../../node_modules/lodash/isTypedArray.js":
59694/*!************************************************************!*\
59695 !*** /root/amplify-js/node_modules/lodash/isTypedArray.js ***!
59696 \************************************************************/
59697/*! no static exports found */
59698/***/ (function(module, exports, __webpack_require__) {
59699
59700var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
59701 baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
59702 nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
59703
59704/* Node.js helper references. */
59705var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
59706
59707/**
59708 * Checks if `value` is classified as a typed array.
59709 *
59710 * @static
59711 * @memberOf _
59712 * @since 3.0.0
59713 * @category Lang
59714 * @param {*} value The value to check.
59715 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
59716 * @example
59717 *
59718 * _.isTypedArray(new Uint8Array);
59719 * // => true
59720 *
59721 * _.isTypedArray([]);
59722 * // => false
59723 */
59724var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
59725
59726module.exports = isTypedArray;
59727
59728
59729/***/ }),
59730
59731/***/ "../../node_modules/lodash/keys.js":
59732/*!****************************************************!*\
59733 !*** /root/amplify-js/node_modules/lodash/keys.js ***!
59734 \****************************************************/
59735/*! no static exports found */
59736/***/ (function(module, exports, __webpack_require__) {
59737
59738var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
59739 baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
59740 isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
59741
59742/**
59743 * Creates an array of the own enumerable property names of `object`.
59744 *
59745 * **Note:** Non-object values are coerced to objects. See the
59746 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
59747 * for more details.
59748 *
59749 * @static
59750 * @since 0.1.0
59751 * @memberOf _
59752 * @category Object
59753 * @param {Object} object The object to query.
59754 * @returns {Array} Returns the array of property names.
59755 * @example
59756 *
59757 * function Foo() {
59758 * this.a = 1;
59759 * this.b = 2;
59760 * }
59761 *
59762 * Foo.prototype.c = 3;
59763 *
59764 * _.keys(new Foo);
59765 * // => ['a', 'b'] (iteration order is not guaranteed)
59766 *
59767 * _.keys('hi');
59768 * // => ['0', '1']
59769 */
59770function keys(object) {
59771 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
59772}
59773
59774module.exports = keys;
59775
59776
59777/***/ }),
59778
59779/***/ "../../node_modules/lodash/memoize.js":
59780/*!*******************************************************!*\
59781 !*** /root/amplify-js/node_modules/lodash/memoize.js ***!
59782 \*******************************************************/
59783/*! no static exports found */
59784/***/ (function(module, exports, __webpack_require__) {
59785
59786var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
59787
59788/** Error message constants. */
59789var FUNC_ERROR_TEXT = 'Expected a function';
59790
59791/**
59792 * Creates a function that memoizes the result of `func`. If `resolver` is
59793 * provided, it determines the cache key for storing the result based on the
59794 * arguments provided to the memoized function. By default, the first argument
59795 * provided to the memoized function is used as the map cache key. The `func`
59796 * is invoked with the `this` binding of the memoized function.
59797 *
59798 * **Note:** The cache is exposed as the `cache` property on the memoized
59799 * function. Its creation may be customized by replacing the `_.memoize.Cache`
59800 * constructor with one whose instances implement the
59801 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
59802 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
59803 *
59804 * @static
59805 * @memberOf _
59806 * @since 0.1.0
59807 * @category Function
59808 * @param {Function} func The function to have its output memoized.
59809 * @param {Function} [resolver] The function to resolve the cache key.
59810 * @returns {Function} Returns the new memoized function.
59811 * @example
59812 *
59813 * var object = { 'a': 1, 'b': 2 };
59814 * var other = { 'c': 3, 'd': 4 };
59815 *
59816 * var values = _.memoize(_.values);
59817 * values(object);
59818 * // => [1, 2]
59819 *
59820 * values(other);
59821 * // => [3, 4]
59822 *
59823 * object.a = 2;
59824 * values(object);
59825 * // => [1, 2]
59826 *
59827 * // Modify the result cache.
59828 * values.cache.set(object, ['a', 'b']);
59829 * values(object);
59830 * // => ['a', 'b']
59831 *
59832 * // Replace `_.memoize.Cache`.
59833 * _.memoize.Cache = WeakMap;
59834 */
59835function memoize(func, resolver) {
59836 if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
59837 throw new TypeError(FUNC_ERROR_TEXT);
59838 }
59839 var memoized = function() {
59840 var args = arguments,
59841 key = resolver ? resolver.apply(this, args) : args[0],
59842 cache = memoized.cache;
59843
59844 if (cache.has(key)) {
59845 return cache.get(key);
59846 }
59847 var result = func.apply(this, args);
59848 memoized.cache = cache.set(key, result) || cache;
59849 return result;
59850 };
59851 memoized.cache = new (memoize.Cache || MapCache);
59852 return memoized;
59853}
59854
59855// Expose `MapCache`.
59856memoize.Cache = MapCache;
59857
59858module.exports = memoize;
59859
59860
59861/***/ }),
59862
59863/***/ "../../node_modules/lodash/stubArray.js":
59864/*!*********************************************************!*\
59865 !*** /root/amplify-js/node_modules/lodash/stubArray.js ***!
59866 \*********************************************************/
59867/*! no static exports found */
59868/***/ (function(module, exports) {
59869
59870/**
59871 * This method returns a new empty array.
59872 *
59873 * @static
59874 * @memberOf _
59875 * @since 4.13.0
59876 * @category Util
59877 * @returns {Array} Returns the new empty array.
59878 * @example
59879 *
59880 * var arrays = _.times(2, _.stubArray);
59881 *
59882 * console.log(arrays);
59883 * // => [[], []]
59884 *
59885 * console.log(arrays[0] === arrays[1]);
59886 * // => false
59887 */
59888function stubArray() {
59889 return [];
59890}
59891
59892module.exports = stubArray;
59893
59894
59895/***/ }),
59896
59897/***/ "../../node_modules/lodash/stubFalse.js":
59898/*!*********************************************************!*\
59899 !*** /root/amplify-js/node_modules/lodash/stubFalse.js ***!
59900 \*********************************************************/
59901/*! no static exports found */
59902/***/ (function(module, exports) {
59903
59904/**
59905 * This method returns `false`.
59906 *
59907 * @static
59908 * @memberOf _
59909 * @since 4.13.0
59910 * @category Util
59911 * @returns {boolean} Returns `false`.
59912 * @example
59913 *
59914 * _.times(2, _.stubFalse);
59915 * // => [false, false]
59916 */
59917function stubFalse() {
59918 return false;
59919}
59920
59921module.exports = stubFalse;
59922
59923
59924/***/ }),
59925
59926/***/ "../../node_modules/lodash/toString.js":
59927/*!********************************************************!*\
59928 !*** /root/amplify-js/node_modules/lodash/toString.js ***!
59929 \********************************************************/
59930/*! no static exports found */
59931/***/ (function(module, exports, __webpack_require__) {
59932
59933var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
59934
59935/**
59936 * Converts `value` to a string. An empty string is returned for `null`
59937 * and `undefined` values. The sign of `-0` is preserved.
59938 *
59939 * @static
59940 * @memberOf _
59941 * @since 4.0.0
59942 * @category Lang
59943 * @param {*} value The value to convert.
59944 * @returns {string} Returns the converted string.
59945 * @example
59946 *
59947 * _.toString(null);
59948 * // => ''
59949 *
59950 * _.toString(-0);
59951 * // => '-0'
59952 *
59953 * _.toString([1, 2, 3]);
59954 * // => '1,2,3'
59955 */
59956function toString(value) {
59957 return value == null ? '' : baseToString(value);
59958}
59959
59960module.exports = toString;
59961
59962
59963/***/ }),
59964
59965/***/ "../../node_modules/tslib/tslib.es6.js":
59966/*!********************************************************!*\
59967 !*** /root/amplify-js/node_modules/tslib/tslib.es6.js ***!
59968 \********************************************************/
59969/*! 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 */
59970/***/ (function(module, __webpack_exports__, __webpack_require__) {
59971
59972"use strict";
59973__webpack_require__.r(__webpack_exports__);
59974/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
59975/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
59976/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
59977/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
59978/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
59979/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
59980/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
59981/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
59982/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
59983/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
59984/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
59985/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
59986/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
59987/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
59988/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
59989/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
59990/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
59991/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
59992/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
59993/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
59994/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
59995/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
59996/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
59997/*! *****************************************************************************
59998Copyright (c) Microsoft Corporation.
59999
60000Permission to use, copy, modify, and/or distribute this software for any
60001purpose with or without fee is hereby granted.
60002
60003THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
60004REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
60005AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
60006INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
60007LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
60008OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60009PERFORMANCE OF THIS SOFTWARE.
60010***************************************************************************** */
60011/* global Reflect, Promise */
60012
60013var extendStatics = function(d, b) {
60014 extendStatics = Object.setPrototypeOf ||
60015 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
60016 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
60017 return extendStatics(d, b);
60018};
60019
60020function __extends(d, b) {
60021 extendStatics(d, b);
60022 function __() { this.constructor = d; }
60023 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60024}
60025
60026var __assign = function() {
60027 __assign = Object.assign || function __assign(t) {
60028 for (var s, i = 1, n = arguments.length; i < n; i++) {
60029 s = arguments[i];
60030 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60031 }
60032 return t;
60033 }
60034 return __assign.apply(this, arguments);
60035}
60036
60037function __rest(s, e) {
60038 var t = {};
60039 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
60040 t[p] = s[p];
60041 if (s != null && typeof Object.getOwnPropertySymbols === "function")
60042 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
60043 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60044 t[p[i]] = s[p[i]];
60045 }
60046 return t;
60047}
60048
60049function __decorate(decorators, target, key, desc) {
60050 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
60051 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
60052 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;
60053 return c > 3 && r && Object.defineProperty(target, key, r), r;
60054}
60055
60056function __param(paramIndex, decorator) {
60057 return function (target, key) { decorator(target, key, paramIndex); }
60058}
60059
60060function __metadata(metadataKey, metadataValue) {
60061 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
60062}
60063
60064function __awaiter(thisArg, _arguments, P, generator) {
60065 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
60066 return new (P || (P = Promise))(function (resolve, reject) {
60067 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
60068 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
60069 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
60070 step((generator = generator.apply(thisArg, _arguments || [])).next());
60071 });
60072}
60073
60074function __generator(thisArg, body) {
60075 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
60076 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
60077 function verb(n) { return function (v) { return step([n, v]); }; }
60078 function step(op) {
60079 if (f) throw new TypeError("Generator is already executing.");
60080 while (_) try {
60081 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;
60082 if (y = 0, t) op = [op[0] & 2, t.value];
60083 switch (op[0]) {
60084 case 0: case 1: t = op; break;
60085 case 4: _.label++; return { value: op[1], done: false };
60086 case 5: _.label++; y = op[1]; op = [0]; continue;
60087 case 7: op = _.ops.pop(); _.trys.pop(); continue;
60088 default:
60089 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
60090 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
60091 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
60092 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
60093 if (t[2]) _.ops.pop();
60094 _.trys.pop(); continue;
60095 }
60096 op = body.call(thisArg, _);
60097 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60098 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60099 }
60100}
60101
60102function __createBinding(o, m, k, k2) {
60103 if (k2 === undefined) k2 = k;
60104 o[k2] = m[k];
60105}
60106
60107function __exportStar(m, exports) {
60108 for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
60109}
60110
60111function __values(o) {
60112 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
60113 if (m) return m.call(o);
60114 if (o && typeof o.length === "number") return {
60115 next: function () {
60116 if (o && i >= o.length) o = void 0;
60117 return { value: o && o[i++], done: !o };
60118 }
60119 };
60120 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
60121}
60122
60123function __read(o, n) {
60124 var m = typeof Symbol === "function" && o[Symbol.iterator];
60125 if (!m) return o;
60126 var i = m.call(o), r, ar = [], e;
60127 try {
60128 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
60129 }
60130 catch (error) { e = { error: error }; }
60131 finally {
60132 try {
60133 if (r && !r.done && (m = i["return"])) m.call(i);
60134 }
60135 finally { if (e) throw e.error; }
60136 }
60137 return ar;
60138}
60139
60140function __spread() {
60141 for (var ar = [], i = 0; i < arguments.length; i++)
60142 ar = ar.concat(__read(arguments[i]));
60143 return ar;
60144}
60145
60146function __spreadArrays() {
60147 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
60148 for (var r = Array(s), k = 0, i = 0; i < il; i++)
60149 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
60150 r[k] = a[j];
60151 return r;
60152};
60153
60154function __await(v) {
60155 return this instanceof __await ? (this.v = v, this) : new __await(v);
60156}
60157
60158function __asyncGenerator(thisArg, _arguments, generator) {
60159 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
60160 var g = generator.apply(thisArg, _arguments || []), i, q = [];
60161 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
60162 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); }); }; }
60163 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
60164 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
60165 function fulfill(value) { resume("next", value); }
60166 function reject(value) { resume("throw", value); }
60167 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
60168}
60169
60170function __asyncDelegator(o) {
60171 var i, p;
60172 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
60173 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; }
60174}
60175
60176function __asyncValues(o) {
60177 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
60178 var m = o[Symbol.asyncIterator], i;
60179 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);
60180 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); }); }; }
60181 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
60182}
60183
60184function __makeTemplateObject(cooked, raw) {
60185 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
60186 return cooked;
60187};
60188
60189function __importStar(mod) {
60190 if (mod && mod.__esModule) return mod;
60191 var result = {};
60192 if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
60193 result.default = mod;
60194 return result;
60195}
60196
60197function __importDefault(mod) {
60198 return (mod && mod.__esModule) ? mod : { default: mod };
60199}
60200
60201function __classPrivateFieldGet(receiver, privateMap) {
60202 if (!privateMap.has(receiver)) {
60203 throw new TypeError("attempted to get private field on non-instance");
60204 }
60205 return privateMap.get(receiver);
60206}
60207
60208function __classPrivateFieldSet(receiver, privateMap, value) {
60209 if (!privateMap.has(receiver)) {
60210 throw new TypeError("attempted to set private field on non-instance");
60211 }
60212 privateMap.set(receiver, value);
60213 return value;
60214}
60215
60216
60217/***/ }),
60218
60219/***/ "../../node_modules/uuid/index.js":
60220/*!***************************************************!*\
60221 !*** /root/amplify-js/node_modules/uuid/index.js ***!
60222 \***************************************************/
60223/*! no static exports found */
60224/***/ (function(module, exports, __webpack_require__) {
60225
60226var v1 = __webpack_require__(/*! ./v1 */ "../../node_modules/uuid/v1.js");
60227var v4 = __webpack_require__(/*! ./v4 */ "../../node_modules/uuid/v4.js");
60228
60229var uuid = v4;
60230uuid.v1 = v1;
60231uuid.v4 = v4;
60232
60233module.exports = uuid;
60234
60235
60236/***/ }),
60237
60238/***/ "../../node_modules/uuid/lib/bytesToUuid.js":
60239/*!*************************************************************!*\
60240 !*** /root/amplify-js/node_modules/uuid/lib/bytesToUuid.js ***!
60241 \*************************************************************/
60242/*! no static exports found */
60243/***/ (function(module, exports) {
60244
60245/**
60246 * Convert array of 16 byte values to UUID string format of the form:
60247 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
60248 */
60249var byteToHex = [];
60250for (var i = 0; i < 256; ++i) {
60251 byteToHex[i] = (i + 0x100).toString(16).substr(1);
60252}
60253
60254function bytesToUuid(buf, offset) {
60255 var i = offset || 0;
60256 var bth = byteToHex;
60257 // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
60258 return ([
60259 bth[buf[i++]], bth[buf[i++]],
60260 bth[buf[i++]], bth[buf[i++]], '-',
60261 bth[buf[i++]], bth[buf[i++]], '-',
60262 bth[buf[i++]], bth[buf[i++]], '-',
60263 bth[buf[i++]], bth[buf[i++]], '-',
60264 bth[buf[i++]], bth[buf[i++]],
60265 bth[buf[i++]], bth[buf[i++]],
60266 bth[buf[i++]], bth[buf[i++]]
60267 ]).join('');
60268}
60269
60270module.exports = bytesToUuid;
60271
60272
60273/***/ }),
60274
60275/***/ "../../node_modules/uuid/lib/rng-browser.js":
60276/*!*************************************************************!*\
60277 !*** /root/amplify-js/node_modules/uuid/lib/rng-browser.js ***!
60278 \*************************************************************/
60279/*! no static exports found */
60280/***/ (function(module, exports) {
60281
60282// Unique ID creation requires a high quality random # generator. In the
60283// browser this is a little complicated due to unknown quality of Math.random()
60284// and inconsistent support for the `crypto` API. We do the best we can via
60285// feature-detection
60286
60287// getRandomValues needs to be invoked in a context where "this" is a Crypto
60288// implementation. Also, find the complete implementation of crypto on IE11.
60289var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
60290 (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
60291
60292if (getRandomValues) {
60293 // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
60294 var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
60295
60296 module.exports = function whatwgRNG() {
60297 getRandomValues(rnds8);
60298 return rnds8;
60299 };
60300} else {
60301 // Math.random()-based (RNG)
60302 //
60303 // If all else fails, use Math.random(). It's fast, but is of unspecified
60304 // quality.
60305 var rnds = new Array(16);
60306
60307 module.exports = function mathRNG() {
60308 for (var i = 0, r; i < 16; i++) {
60309 if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
60310 rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
60311 }
60312
60313 return rnds;
60314 };
60315}
60316
60317
60318/***/ }),
60319
60320/***/ "../../node_modules/uuid/v1.js":
60321/*!************************************************!*\
60322 !*** /root/amplify-js/node_modules/uuid/v1.js ***!
60323 \************************************************/
60324/*! no static exports found */
60325/***/ (function(module, exports, __webpack_require__) {
60326
60327var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
60328var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
60329
60330// **`v1()` - Generate time-based UUID**
60331//
60332// Inspired by https://github.com/LiosK/UUID.js
60333// and http://docs.python.org/library/uuid.html
60334
60335var _nodeId;
60336var _clockseq;
60337
60338// Previous uuid creation time
60339var _lastMSecs = 0;
60340var _lastNSecs = 0;
60341
60342// See https://github.com/uuidjs/uuid for API details
60343function v1(options, buf, offset) {
60344 var i = buf && offset || 0;
60345 var b = buf || [];
60346
60347 options = options || {};
60348 var node = options.node || _nodeId;
60349 var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
60350
60351 // node and clockseq need to be initialized to random values if they're not
60352 // specified. We do this lazily to minimize issues related to insufficient
60353 // system entropy. See #189
60354 if (node == null || clockseq == null) {
60355 var seedBytes = rng();
60356 if (node == null) {
60357 // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
60358 node = _nodeId = [
60359 seedBytes[0] | 0x01,
60360 seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
60361 ];
60362 }
60363 if (clockseq == null) {
60364 // Per 4.2.2, randomize (14 bit) clockseq
60365 clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
60366 }
60367 }
60368
60369 // UUID timestamps are 100 nano-second units since the Gregorian epoch,
60370 // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
60371 // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
60372 // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
60373 var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
60374
60375 // Per 4.2.1.2, use count of uuid's generated during the current clock
60376 // cycle to simulate higher resolution clock
60377 var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
60378
60379 // Time since last uuid creation (in msecs)
60380 var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
60381
60382 // Per 4.2.1.2, Bump clockseq on clock regression
60383 if (dt < 0 && options.clockseq === undefined) {
60384 clockseq = clockseq + 1 & 0x3fff;
60385 }
60386
60387 // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
60388 // time interval
60389 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
60390 nsecs = 0;
60391 }
60392
60393 // Per 4.2.1.2 Throw error if too many uuids are requested
60394 if (nsecs >= 10000) {
60395 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
60396 }
60397
60398 _lastMSecs = msecs;
60399 _lastNSecs = nsecs;
60400 _clockseq = clockseq;
60401
60402 // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
60403 msecs += 12219292800000;
60404
60405 // `time_low`
60406 var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
60407 b[i++] = tl >>> 24 & 0xff;
60408 b[i++] = tl >>> 16 & 0xff;
60409 b[i++] = tl >>> 8 & 0xff;
60410 b[i++] = tl & 0xff;
60411
60412 // `time_mid`
60413 var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
60414 b[i++] = tmh >>> 8 & 0xff;
60415 b[i++] = tmh & 0xff;
60416
60417 // `time_high_and_version`
60418 b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
60419 b[i++] = tmh >>> 16 & 0xff;
60420
60421 // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
60422 b[i++] = clockseq >>> 8 | 0x80;
60423
60424 // `clock_seq_low`
60425 b[i++] = clockseq & 0xff;
60426
60427 // `node`
60428 for (var n = 0; n < 6; ++n) {
60429 b[i + n] = node[n];
60430 }
60431
60432 return buf ? buf : bytesToUuid(b);
60433}
60434
60435module.exports = v1;
60436
60437
60438/***/ }),
60439
60440/***/ "../../node_modules/uuid/v4.js":
60441/*!************************************************!*\
60442 !*** /root/amplify-js/node_modules/uuid/v4.js ***!
60443 \************************************************/
60444/*! no static exports found */
60445/***/ (function(module, exports, __webpack_require__) {
60446
60447var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
60448var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
60449
60450function v4(options, buf, offset) {
60451 var i = buf && offset || 0;
60452
60453 if (typeof(options) == 'string') {
60454 buf = options === 'binary' ? new Array(16) : null;
60455 options = null;
60456 }
60457 options = options || {};
60458
60459 var rnds = options.random || (options.rng || rng)();
60460
60461 // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
60462 rnds[6] = (rnds[6] & 0x0f) | 0x40;
60463 rnds[8] = (rnds[8] & 0x3f) | 0x80;
60464
60465 // Copy bytes to buffer, if provided
60466 if (buf) {
60467 for (var ii = 0; ii < 16; ++ii) {
60468 buf[i + ii] = rnds[ii];
60469 }
60470 }
60471
60472 return buf || bytesToUuid(rnds);
60473}
60474
60475module.exports = v4;
60476
60477
60478/***/ }),
60479
60480/***/ "../../node_modules/webpack/buildin/global.js":
60481/*!***********************************!*\
60482 !*** (webpack)/buildin/global.js ***!
60483 \***********************************/
60484/*! no static exports found */
60485/***/ (function(module, exports) {
60486
60487var g;
60488
60489// This works in non-strict mode
60490g = (function() {
60491 return this;
60492})();
60493
60494try {
60495 // This works if eval is allowed (see CSP)
60496 g = g || new Function("return this")();
60497} catch (e) {
60498 // This works if the window reference is available
60499 if (typeof window === "object") g = window;
60500}
60501
60502// g can still be undefined, but nothing to do about it...
60503// We return undefined, instead of nothing here, so it's
60504// easier to handle this case. if(!global) { ...}
60505
60506module.exports = g;
60507
60508
60509/***/ }),
60510
60511/***/ "../../node_modules/webpack/buildin/module.js":
60512/*!***********************************!*\
60513 !*** (webpack)/buildin/module.js ***!
60514 \***********************************/
60515/*! no static exports found */
60516/***/ (function(module, exports) {
60517
60518module.exports = function(module) {
60519 if (!module.webpackPolyfill) {
60520 module.deprecate = function() {};
60521 module.paths = [];
60522 // module.parent = undefined by default
60523 if (!module.children) module.children = [];
60524 Object.defineProperty(module, "loaded", {
60525 enumerable: true,
60526 get: function() {
60527 return module.l;
60528 }
60529 });
60530 Object.defineProperty(module, "id", {
60531 enumerable: true,
60532 get: function() {
60533 return module.i;
60534 }
60535 });
60536 module.webpackPolyfill = 1;
60537 }
60538 return module;
60539};
60540
60541
60542/***/ }),
60543
60544/***/ "./lib-esm/Analytics.js":
60545/*!******************************!*\
60546 !*** ./lib-esm/Analytics.js ***!
60547 \******************************/
60548/*! exports provided: AnalyticsClass, Analytics */
60549/***/ (function(module, __webpack_exports__, __webpack_require__) {
60550
60551"use strict";
60552__webpack_require__.r(__webpack_exports__);
60553/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnalyticsClass", function() { return AnalyticsClass; });
60554/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Analytics", function() { return Analytics; });
60555/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
60556/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
60557/* harmony import */ var _Providers_AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers/AWSPinpointProvider */ "./lib-esm/Providers/AWSPinpointProvider.js");
60558/* harmony import */ var _trackers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./trackers */ "./lib-esm/trackers/index.js");
60559/*
60560 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
60561 *
60562 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
60563 * the License. A copy of the License is located at
60564 *
60565 * http://aws.amazon.com/apache2.0/
60566 *
60567 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
60568 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
60569 * and limitations under the License.
60570 */
60571var __assign = undefined && undefined.__assign || function () {
60572 __assign = Object.assign || function (t) {
60573 for (var s, i = 1, n = arguments.length; i < n; i++) {
60574 s = arguments[i];
60575
60576 for (var p in s) {
60577 if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
60578 }
60579 }
60580
60581 return t;
60582 };
60583
60584 return __assign.apply(this, arguments);
60585};
60586
60587var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
60588 function adopt(value) {
60589 return value instanceof P ? value : new P(function (resolve) {
60590 resolve(value);
60591 });
60592 }
60593
60594 return new (P || (P = Promise))(function (resolve, reject) {
60595 function fulfilled(value) {
60596 try {
60597 step(generator.next(value));
60598 } catch (e) {
60599 reject(e);
60600 }
60601 }
60602
60603 function rejected(value) {
60604 try {
60605 step(generator["throw"](value));
60606 } catch (e) {
60607 reject(e);
60608 }
60609 }
60610
60611 function step(result) {
60612 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
60613 }
60614
60615 step((generator = generator.apply(thisArg, _arguments || [])).next());
60616 });
60617};
60618
60619var __generator = undefined && undefined.__generator || function (thisArg, body) {
60620 var _ = {
60621 label: 0,
60622 sent: function sent() {
60623 if (t[0] & 1) throw t[1];
60624 return t[1];
60625 },
60626 trys: [],
60627 ops: []
60628 },
60629 f,
60630 y,
60631 t,
60632 g;
60633 return g = {
60634 next: verb(0),
60635 "throw": verb(1),
60636 "return": verb(2)
60637 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
60638 return this;
60639 }), g;
60640
60641 function verb(n) {
60642 return function (v) {
60643 return step([n, v]);
60644 };
60645 }
60646
60647 function step(op) {
60648 if (f) throw new TypeError("Generator is already executing.");
60649
60650 while (_) {
60651 try {
60652 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;
60653 if (y = 0, t) op = [op[0] & 2, t.value];
60654
60655 switch (op[0]) {
60656 case 0:
60657 case 1:
60658 t = op;
60659 break;
60660
60661 case 4:
60662 _.label++;
60663 return {
60664 value: op[1],
60665 done: false
60666 };
60667
60668 case 5:
60669 _.label++;
60670 y = op[1];
60671 op = [0];
60672 continue;
60673
60674 case 7:
60675 op = _.ops.pop();
60676
60677 _.trys.pop();
60678
60679 continue;
60680
60681 default:
60682 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
60683 _ = 0;
60684 continue;
60685 }
60686
60687 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
60688 _.label = op[1];
60689 break;
60690 }
60691
60692 if (op[0] === 6 && _.label < t[1]) {
60693 _.label = t[1];
60694 t = op;
60695 break;
60696 }
60697
60698 if (t && _.label < t[2]) {
60699 _.label = t[2];
60700
60701 _.ops.push(op);
60702
60703 break;
60704 }
60705
60706 if (t[2]) _.ops.pop();
60707
60708 _.trys.pop();
60709
60710 continue;
60711 }
60712
60713 op = body.call(thisArg, _);
60714 } catch (e) {
60715 op = [6, e];
60716 y = 0;
60717 } finally {
60718 f = t = 0;
60719 }
60720 }
60721
60722 if (op[0] & 5) throw op[1];
60723 return {
60724 value: op[0] ? op[1] : void 0,
60725 done: true
60726 };
60727 }
60728};
60729
60730
60731
60732
60733var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AnalyticsClass');
60734var AMPLIFY_SYMBOL = typeof Symbol !== 'undefined' && typeof Symbol["for"] === 'function' ? Symbol["for"]('amplify_default') : '@@amplify_default';
60735
60736var dispatchAnalyticsEvent = function dispatchAnalyticsEvent(event, data, message) {
60737 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('analytics', {
60738 event: event,
60739 data: data,
60740 message: message
60741 }, 'Analytics', AMPLIFY_SYMBOL);
60742};
60743
60744var trackers = {
60745 pageView: _trackers__WEBPACK_IMPORTED_MODULE_2__["PageViewTracker"],
60746 event: _trackers__WEBPACK_IMPORTED_MODULE_2__["EventTracker"],
60747 session: _trackers__WEBPACK_IMPORTED_MODULE_2__["SessionTracker"]
60748};
60749var _instance = null;
60750/**
60751 * Provide mobile analytics client functions
60752 */
60753
60754var AnalyticsClass = function () {
60755 /**
60756 * Initialize Analtyics
60757 * @param config - Configuration of the Analytics
60758 */
60759 function AnalyticsClass() {
60760 this._config = {};
60761 this._pluggables = [];
60762 this._disabled = false;
60763 this._trackers = {};
60764 _instance = this;
60765 this.record = this.record.bind(this);
60766 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('auth', listener);
60767 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('storage', listener);
60768 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('analytics', listener);
60769 }
60770
60771 AnalyticsClass.prototype.getModuleName = function () {
60772 return 'Analytics';
60773 };
60774 /**
60775 * configure Analytics
60776 * @param {Object} config - Configuration of the Analytics
60777 */
60778
60779
60780 AnalyticsClass.prototype.configure = function (config) {
60781 var _this = this;
60782
60783 if (!config) return this._config;
60784 logger.debug('configure Analytics', config);
60785 var amplifyConfig = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Parser"].parseMobilehubConfig(config);
60786 this._config = Object.assign({}, this._config, amplifyConfig.Analytics, config);
60787
60788 if (this._config['disabled']) {
60789 this._disabled = true;
60790 } // turn on the autoSessionRecord if not specified
60791
60792
60793 if (this._config['autoSessionRecord'] === undefined) {
60794 this._config['autoSessionRecord'] = true;
60795 }
60796
60797 this._pluggables.forEach(function (pluggable) {
60798 // for backward compatibility
60799 var providerConfig = pluggable.getProviderName() === 'AWSPinpoint' && !_this._config['AWSPinpoint'] ? _this._config : _this._config[pluggable.getProviderName()];
60800 pluggable.configure(__assign({
60801 disabled: _this._config['disabled'],
60802 autoSessionRecord: _this._config['autoSessionRecord']
60803 }, providerConfig));
60804 });
60805
60806 if (this._pluggables.length === 0) {
60807 this.addPluggable(new _Providers_AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_1__["AWSPinpointProvider"]());
60808 }
60809
60810 dispatchAnalyticsEvent('configured', null, "The Analytics category has been configured successfully");
60811 logger.debug('current configuration', this._config);
60812 return this._config;
60813 };
60814 /**
60815 * add plugin into Analytics category
60816 * @param {Object} pluggable - an instance of the plugin
60817 */
60818
60819
60820 AnalyticsClass.prototype.addPluggable = function (pluggable) {
60821 if (pluggable && pluggable.getCategory() === 'Analytics') {
60822 this._pluggables.push(pluggable); // for backward compatibility
60823
60824
60825 var providerConfig = pluggable.getProviderName() === 'AWSPinpoint' && !this._config['AWSPinpoint'] ? this._config : this._config[pluggable.getProviderName()];
60826
60827 var config = __assign({
60828 disabled: this._config['disabled']
60829 }, providerConfig);
60830
60831 pluggable.configure(config);
60832 return config;
60833 }
60834 };
60835 /**
60836 * Get the plugin object
60837 * @param providerName - the name of the plugin
60838 */
60839
60840
60841 AnalyticsClass.prototype.getPluggable = function (providerName) {
60842 for (var i = 0; i < this._pluggables.length; i += 1) {
60843 var pluggable = this._pluggables[i];
60844
60845 if (pluggable.getProviderName() === providerName) {
60846 return pluggable;
60847 }
60848 }
60849
60850 logger.debug('No plugin found with providerName', providerName);
60851 return null;
60852 };
60853 /**
60854 * Remove the plugin object
60855 * @param providerName - the name of the plugin
60856 */
60857
60858
60859 AnalyticsClass.prototype.removePluggable = function (providerName) {
60860 var idx = 0;
60861
60862 while (idx < this._pluggables.length) {
60863 if (this._pluggables[idx].getProviderName() === providerName) {
60864 break;
60865 }
60866
60867 idx += 1;
60868 }
60869
60870 if (idx === this._pluggables.length) {
60871 logger.debug('No plugin found with providerName', providerName);
60872 return;
60873 } else {
60874 this._pluggables.splice(idx, idx + 1);
60875
60876 return;
60877 }
60878 };
60879 /**
60880 * stop sending events
60881 */
60882
60883
60884 AnalyticsClass.prototype.disable = function () {
60885 this._disabled = true;
60886 };
60887 /**
60888 * start sending events
60889 */
60890
60891
60892 AnalyticsClass.prototype.enable = function () {
60893 this._disabled = false;
60894 };
60895 /**
60896 * Record Session start
60897 * @return - A promise which resolves if buffer doesn't overflow
60898 */
60899
60900
60901 AnalyticsClass.prototype.startSession = function (provider) {
60902 return __awaiter(this, void 0, void 0, function () {
60903 var params;
60904 return __generator(this, function (_a) {
60905 params = {
60906 event: {
60907 name: '_session.start'
60908 },
60909 provider: provider
60910 };
60911 return [2
60912 /*return*/
60913 , this._sendEvent(params)];
60914 });
60915 });
60916 };
60917 /**
60918 * Record Session stop
60919 * @return - A promise which resolves if buffer doesn't overflow
60920 */
60921
60922
60923 AnalyticsClass.prototype.stopSession = function (provider) {
60924 return __awaiter(this, void 0, void 0, function () {
60925 var params;
60926 return __generator(this, function (_a) {
60927 params = {
60928 event: {
60929 name: '_session.stop'
60930 },
60931 provider: provider
60932 };
60933 return [2
60934 /*return*/
60935 , this._sendEvent(params)];
60936 });
60937 });
60938 };
60939 /**
60940 * Record one analytic event and send it to Pinpoint
60941 * @param {String} name - The name of the event
60942 * @param {Object} [attributes] - Attributes of the event
60943 * @param {Object} [metrics] - Event metrics
60944 * @return - A promise which resolves if buffer doesn't overflow
60945 */
60946
60947
60948 AnalyticsClass.prototype.record = function (event, provider, metrics) {
60949 return __awaiter(this, void 0, void 0, function () {
60950 var params;
60951 return __generator(this, function (_a) {
60952 params = null; // this is just for compatibility, going to be deprecated
60953
60954 if (typeof event === 'string') {
60955 params = {
60956 event: {
60957 name: event,
60958 attributes: provider,
60959 metrics: metrics
60960 },
60961 provider: 'AWSPinpoint'
60962 };
60963 } else {
60964 params = {
60965 event: event,
60966 provider: provider
60967 };
60968 }
60969
60970 return [2
60971 /*return*/
60972 , this._sendEvent(params)];
60973 });
60974 });
60975 };
60976
60977 AnalyticsClass.prototype.updateEndpoint = function (attrs, provider) {
60978 return __awaiter(this, void 0, void 0, function () {
60979 var event;
60980 return __generator(this, function (_a) {
60981 event = __assign(__assign({}, attrs), {
60982 name: '_update_endpoint'
60983 });
60984 return [2
60985 /*return*/
60986 , this.record(event, provider)];
60987 });
60988 });
60989 };
60990
60991 AnalyticsClass.prototype._sendEvent = function (params) {
60992 var _this = this;
60993
60994 if (this._disabled) {
60995 logger.debug('Analytics has been disabled');
60996 return Promise.resolve();
60997 }
60998
60999 var provider = params.provider ? params.provider : 'AWSPinpoint';
61000 return new Promise(function (resolve, reject) {
61001 _this._pluggables.forEach(function (pluggable) {
61002 if (pluggable.getProviderName() === provider) {
61003 pluggable.record(params, {
61004 resolve: resolve,
61005 reject: reject
61006 });
61007 }
61008 });
61009 });
61010 };
61011
61012 AnalyticsClass.prototype.autoTrack = function (trackerType, opts) {
61013 if (!trackers[trackerType]) {
61014 logger.debug('invalid tracker type');
61015 return;
61016 } // to sync up two different configuration ways of auto session tracking
61017
61018
61019 if (trackerType === 'session') {
61020 this._config['autoSessionRecord'] = opts['enable'];
61021 }
61022
61023 var tracker = this._trackers[trackerType];
61024
61025 if (!tracker) {
61026 this._trackers[trackerType] = new trackers[trackerType](this.record, opts);
61027 } else {
61028 tracker.configure(opts);
61029 }
61030 };
61031
61032 return AnalyticsClass;
61033}();
61034
61035
61036var endpointUpdated = false;
61037var authConfigured = false;
61038var analyticsConfigured = false;
61039
61040var listener = function listener(capsule) {
61041 var channel = capsule.channel,
61042 payload = capsule.payload;
61043 logger.debug('on hub capsule ' + channel, payload);
61044
61045 switch (channel) {
61046 case 'auth':
61047 authEvent(payload);
61048 break;
61049
61050 case 'storage':
61051 storageEvent(payload);
61052 break;
61053
61054 case 'analytics':
61055 analyticsEvent(payload);
61056 break;
61057
61058 default:
61059 break;
61060 }
61061};
61062
61063var storageEvent = function storageEvent(payload) {
61064 var _a = payload.data,
61065 attrs = _a.attrs,
61066 metrics = _a.metrics;
61067 if (!attrs) return;
61068
61069 if (analyticsConfigured) {
61070 _instance.record({
61071 name: 'Storage',
61072 attributes: attrs,
61073 metrics: metrics
61074 })["catch"](function (e) {
61075 logger.debug('Failed to send the storage event automatically', e);
61076 });
61077 }
61078};
61079
61080var authEvent = function authEvent(payload) {
61081 var event = payload.event;
61082
61083 if (!event) {
61084 return;
61085 }
61086
61087 var recordAuthEvent = function recordAuthEvent(eventName) {
61088 return __awaiter(void 0, void 0, void 0, function () {
61089 var err_1;
61090 return __generator(this, function (_a) {
61091 switch (_a.label) {
61092 case 0:
61093 if (!(authConfigured && analyticsConfigured)) return [3
61094 /*break*/
61095 , 4];
61096 _a.label = 1;
61097
61098 case 1:
61099 _a.trys.push([1, 3,, 4]);
61100
61101 return [4
61102 /*yield*/
61103 , _instance.record({
61104 name: "_userauth." + eventName
61105 })];
61106
61107 case 2:
61108 return [2
61109 /*return*/
61110 , _a.sent()];
61111
61112 case 3:
61113 err_1 = _a.sent();
61114 logger.debug("Failed to send the " + eventName + " event automatically", err_1);
61115 return [3
61116 /*break*/
61117 , 4];
61118
61119 case 4:
61120 return [2
61121 /*return*/
61122 ];
61123 }
61124 });
61125 });
61126 };
61127
61128 switch (event) {
61129 case 'signIn':
61130 return recordAuthEvent('sign_in');
61131
61132 case 'signUp':
61133 return recordAuthEvent('sign_up');
61134
61135 case 'signOut':
61136 return recordAuthEvent('sign_out');
61137
61138 case 'signIn_failure':
61139 return recordAuthEvent('auth_fail');
61140
61141 case 'configured':
61142 authConfigured = true;
61143
61144 if (authConfigured && analyticsConfigured) {
61145 sendEvents();
61146 }
61147
61148 break;
61149 }
61150};
61151
61152var analyticsEvent = function analyticsEvent(payload) {
61153 var event = payload.event;
61154 if (!event) return;
61155
61156 switch (event) {
61157 case 'pinpointProvider_configured':
61158 analyticsConfigured = true;
61159
61160 if (authConfigured && analyticsConfigured) {
61161 sendEvents();
61162 }
61163
61164 break;
61165 }
61166};
61167
61168var sendEvents = function sendEvents() {
61169 var config = _instance.configure();
61170
61171 if (!endpointUpdated && config['autoSessionRecord']) {
61172 _instance.updateEndpoint({
61173 immediate: true
61174 })["catch"](function (e) {
61175 logger.debug('Failed to update the endpoint', e);
61176 });
61177
61178 endpointUpdated = true;
61179 }
61180
61181 _instance.autoTrack('session', {
61182 enable: config['autoSessionRecord']
61183 });
61184};
61185
61186var Analytics = new AnalyticsClass();
61187_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(Analytics);
61188
61189/***/ }),
61190
61191/***/ "./lib-esm/Providers/AWSKinesisFirehoseProvider.js":
61192/*!*********************************************************!*\
61193 !*** ./lib-esm/Providers/AWSKinesisFirehoseProvider.js ***!
61194 \*********************************************************/
61195/*! exports provided: AWSKinesisFirehoseProvider, default */
61196/***/ (function(module, __webpack_exports__, __webpack_require__) {
61197
61198"use strict";
61199__webpack_require__.r(__webpack_exports__);
61200/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return AWSKinesisFirehoseProvider; });
61201/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
61202/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
61203/* harmony import */ var _AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AWSKinesisProvider */ "./lib-esm/Providers/AWSKinesisProvider.js");
61204/* 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");
61205/* 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");
61206/*
61207 * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
61208 *
61209 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
61210 * the License. A copy of the License is located at
61211 *
61212 * http://aws.amazon.com/apache2.0/
61213 *
61214 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
61215 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
61216 * and limitations under the License.
61217 */
61218var __extends = undefined && undefined.__extends || function () {
61219 var _extendStatics = function extendStatics(d, b) {
61220 _extendStatics = Object.setPrototypeOf || {
61221 __proto__: []
61222 } instanceof Array && function (d, b) {
61223 d.__proto__ = b;
61224 } || function (d, b) {
61225 for (var p in b) {
61226 if (b.hasOwnProperty(p)) d[p] = b[p];
61227 }
61228 };
61229
61230 return _extendStatics(d, b);
61231 };
61232
61233 return function (d, b) {
61234 _extendStatics(d, b);
61235
61236 function __() {
61237 this.constructor = d;
61238 }
61239
61240 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61241 };
61242}();
61243
61244
61245
61246
61247
61248var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSKineisFirehoseProvider');
61249
61250var AWSKinesisFirehoseProvider = function (_super) {
61251 __extends(AWSKinesisFirehoseProvider, _super);
61252
61253 function AWSKinesisFirehoseProvider(config) {
61254 return _super.call(this, config) || this;
61255 }
61256 /**
61257 * get provider name of the plugin
61258 */
61259
61260
61261 AWSKinesisFirehoseProvider.prototype.getProviderName = function () {
61262 return 'AWSKinesisFirehose';
61263 };
61264
61265 AWSKinesisFirehoseProvider.prototype._sendEvents = function (group) {
61266 var _this = this;
61267
61268 if (group.length === 0) {
61269 return;
61270 }
61271
61272 var _a = group[0],
61273 config = _a.config,
61274 credentials = _a.credentials;
61275
61276 var initClients = this._init(config, credentials);
61277
61278 if (!initClients) return false;
61279 var records = {};
61280 group.map(function (params) {
61281 // split by streamName
61282 var evt = params.event;
61283 var streamName = evt.streamName,
61284 data = evt.data;
61285
61286 if (records[streamName] === undefined) {
61287 records[streamName] = [];
61288 }
61289
61290 var bufferData = data && typeof data !== 'string' ? JSON.stringify(data) : data;
61291 var Data = Object(_aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_3__["fromUtf8"])(bufferData);
61292 var record = {
61293 Data: Data
61294 };
61295 records[streamName].push(record);
61296 });
61297 Object.keys(records).map(function (streamName) {
61298 logger.debug('putting records to kinesis', streamName, 'with records', records[streamName]);
61299
61300 _this._kinesisFirehose.send(new _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__["PutRecordBatchCommand"]({
61301 Records: records[streamName],
61302 DeliveryStreamName: streamName
61303 })).then(function (res) {
61304 return logger.debug('Upload records to stream', streamName);
61305 })["catch"](function (err) {
61306 return logger.debug('Failed to upload records to Kinesis', err);
61307 });
61308 });
61309 };
61310
61311 AWSKinesisFirehoseProvider.prototype._init = function (config, credentials) {
61312 logger.debug('init clients');
61313
61314 if (this._kinesisFirehose && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
61315 logger.debug('no change for analytics config, directly return from init');
61316 return true;
61317 }
61318
61319 this._config.credentials = credentials;
61320 var region = config.region;
61321 return this._initFirehose(region, credentials);
61322 };
61323
61324 AWSKinesisFirehoseProvider.prototype._initFirehose = function (region, credentials) {
61325 logger.debug('initialize kinesis firehose with credentials', credentials);
61326 this._kinesisFirehose = new _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__["FirehoseClient"]({
61327 apiVersion: '2015-08-04',
61328 region: region,
61329 credentials: credentials
61330 });
61331 return true;
61332 };
61333
61334 return AWSKinesisFirehoseProvider;
61335}(_AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisProvider"]);
61336
61337
61338/**
61339 * @deprecated use named import
61340 */
61341
61342/* harmony default export */ __webpack_exports__["default"] = (AWSKinesisFirehoseProvider);
61343
61344/***/ }),
61345
61346/***/ "./lib-esm/Providers/AWSKinesisProvider.js":
61347/*!*************************************************!*\
61348 !*** ./lib-esm/Providers/AWSKinesisProvider.js ***!
61349 \*************************************************/
61350/*! exports provided: AWSKinesisProvider, default */
61351/***/ (function(module, __webpack_exports__, __webpack_require__) {
61352
61353"use strict";
61354__webpack_require__.r(__webpack_exports__);
61355/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisProvider", function() { return AWSKinesisProvider; });
61356/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
61357/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
61358/* 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");
61359/* 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");
61360/*
61361 * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
61362 *
61363 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
61364 * the License. A copy of the License is located at
61365 *
61366 * http://aws.amazon.com/apache2.0/
61367 *
61368 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
61369 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
61370 * and limitations under the License.
61371 */
61372var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61373 function adopt(value) {
61374 return value instanceof P ? value : new P(function (resolve) {
61375 resolve(value);
61376 });
61377 }
61378
61379 return new (P || (P = Promise))(function (resolve, reject) {
61380 function fulfilled(value) {
61381 try {
61382 step(generator.next(value));
61383 } catch (e) {
61384 reject(e);
61385 }
61386 }
61387
61388 function rejected(value) {
61389 try {
61390 step(generator["throw"](value));
61391 } catch (e) {
61392 reject(e);
61393 }
61394 }
61395
61396 function step(result) {
61397 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
61398 }
61399
61400 step((generator = generator.apply(thisArg, _arguments || [])).next());
61401 });
61402};
61403
61404var __generator = undefined && undefined.__generator || function (thisArg, body) {
61405 var _ = {
61406 label: 0,
61407 sent: function sent() {
61408 if (t[0] & 1) throw t[1];
61409 return t[1];
61410 },
61411 trys: [],
61412 ops: []
61413 },
61414 f,
61415 y,
61416 t,
61417 g;
61418 return g = {
61419 next: verb(0),
61420 "throw": verb(1),
61421 "return": verb(2)
61422 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
61423 return this;
61424 }), g;
61425
61426 function verb(n) {
61427 return function (v) {
61428 return step([n, v]);
61429 };
61430 }
61431
61432 function step(op) {
61433 if (f) throw new TypeError("Generator is already executing.");
61434
61435 while (_) {
61436 try {
61437 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;
61438 if (y = 0, t) op = [op[0] & 2, t.value];
61439
61440 switch (op[0]) {
61441 case 0:
61442 case 1:
61443 t = op;
61444 break;
61445
61446 case 4:
61447 _.label++;
61448 return {
61449 value: op[1],
61450 done: false
61451 };
61452
61453 case 5:
61454 _.label++;
61455 y = op[1];
61456 op = [0];
61457 continue;
61458
61459 case 7:
61460 op = _.ops.pop();
61461
61462 _.trys.pop();
61463
61464 continue;
61465
61466 default:
61467 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
61468 _ = 0;
61469 continue;
61470 }
61471
61472 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
61473 _.label = op[1];
61474 break;
61475 }
61476
61477 if (op[0] === 6 && _.label < t[1]) {
61478 _.label = t[1];
61479 t = op;
61480 break;
61481 }
61482
61483 if (t && _.label < t[2]) {
61484 _.label = t[2];
61485
61486 _.ops.push(op);
61487
61488 break;
61489 }
61490
61491 if (t[2]) _.ops.pop();
61492
61493 _.trys.pop();
61494
61495 continue;
61496 }
61497
61498 op = body.call(thisArg, _);
61499 } catch (e) {
61500 op = [6, e];
61501 y = 0;
61502 } finally {
61503 f = t = 0;
61504 }
61505 }
61506
61507 if (op[0] & 5) throw op[1];
61508 return {
61509 value: op[0] ? op[1] : void 0,
61510 done: true
61511 };
61512 }
61513};
61514
61515
61516
61517
61518var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSKinesisProvider'); // events buffer
61519
61520var BUFFER_SIZE = 1000;
61521var FLUSH_SIZE = 100;
61522var FLUSH_INTERVAL = 5 * 1000; // 5s
61523
61524var RESEND_LIMIT = 5;
61525
61526var AWSKinesisProvider = function () {
61527 function AWSKinesisProvider(config) {
61528 this._buffer = [];
61529 this._config = config || {};
61530 this._config.bufferSize = this._config.bufferSize || BUFFER_SIZE;
61531 this._config.flushSize = this._config.flushSize || FLUSH_SIZE;
61532 this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL;
61533 this._config.resendLimit = this._config.resendLimit || RESEND_LIMIT;
61534
61535 this._setupTimer();
61536 }
61537
61538 AWSKinesisProvider.prototype._setupTimer = function () {
61539 var _this = this;
61540
61541 if (this._timer) {
61542 clearInterval(this._timer);
61543 }
61544
61545 var _a = this._config,
61546 flushSize = _a.flushSize,
61547 flushInterval = _a.flushInterval;
61548 this._timer = setInterval(function () {
61549 var size = _this._buffer.length < flushSize ? _this._buffer.length : flushSize;
61550 var events = [];
61551
61552 for (var i = 0; i < size; i += 1) {
61553 var params = _this._buffer.shift();
61554
61555 events.push(params);
61556 }
61557
61558 _this._sendFromBuffer(events);
61559 }, flushInterval);
61560 };
61561 /**
61562 * get the category of the plugin
61563 */
61564
61565
61566 AWSKinesisProvider.prototype.getCategory = function () {
61567 return 'Analytics';
61568 };
61569 /**
61570 * get provider name of the plugin
61571 */
61572
61573
61574 AWSKinesisProvider.prototype.getProviderName = function () {
61575 return 'AWSKinesis';
61576 };
61577 /**
61578 * configure the plugin
61579 * @param {Object} config - configuration
61580 */
61581
61582
61583 AWSKinesisProvider.prototype.configure = function (config) {
61584 logger.debug('configure Analytics', config);
61585 var conf = config || {};
61586 this._config = Object.assign({}, this._config, conf);
61587
61588 this._setupTimer();
61589
61590 return this._config;
61591 };
61592 /**
61593 * record an event
61594 * @param {Object} params - the params of an event
61595 */
61596
61597
61598 AWSKinesisProvider.prototype.record = function (params) {
61599 return __awaiter(this, void 0, void 0, function () {
61600 var credentials;
61601 return __generator(this, function (_a) {
61602 switch (_a.label) {
61603 case 0:
61604 return [4
61605 /*yield*/
61606 , this._getCredentials()];
61607
61608 case 1:
61609 credentials = _a.sent();
61610 if (!credentials) return [2
61611 /*return*/
61612 , Promise.resolve(false)];
61613 Object.assign(params, {
61614 config: this._config,
61615 credentials: credentials
61616 });
61617 return [2
61618 /*return*/
61619 , this._putToBuffer(params)];
61620 }
61621 });
61622 });
61623 };
61624
61625 AWSKinesisProvider.prototype.updateEndpoint = function () {
61626 logger.debug('updateEndpoint is not implemented in Kinesis provider');
61627 return Promise.resolve(true);
61628 };
61629 /**
61630 * @private
61631 * @param params - params for the event recording
61632 * Put events into buffer
61633 */
61634
61635
61636 AWSKinesisProvider.prototype._putToBuffer = function (params) {
61637 if (this._buffer.length < BUFFER_SIZE) {
61638 this._buffer.push(params);
61639
61640 return Promise.resolve(true);
61641 } else {
61642 logger.debug('exceed analytics events buffer size');
61643 return Promise.reject(false);
61644 }
61645 };
61646
61647 AWSKinesisProvider.prototype._sendFromBuffer = function (events) {
61648 var _this = this; // collapse events by credentials
61649 // events = [ {params} ]
61650
61651
61652 var eventsGroups = [];
61653 var preCred = null;
61654 var group = [];
61655
61656 for (var i = 0; i < events.length; i += 1) {
61657 var cred = events[i].credentials;
61658
61659 if (i === 0) {
61660 group.push(events[i]);
61661 preCred = cred;
61662 } else {
61663 if (cred.sessionToken === preCred.sessionToken && cred.identityId === preCred.identityId) {
61664 logger.debug('no change for cred, put event in the same group');
61665 group.push(events[i]);
61666 } else {
61667 eventsGroups.push(group);
61668 group = [];
61669 group.push(events[i]);
61670 preCred = cred;
61671 }
61672 }
61673 }
61674
61675 eventsGroups.push(group);
61676 eventsGroups.map(function (evts) {
61677 _this._sendEvents(evts);
61678 });
61679 };
61680
61681 AWSKinesisProvider.prototype._sendEvents = function (group) {
61682 var _this = this;
61683
61684 if (group.length === 0) {
61685 return;
61686 }
61687
61688 var _a = group[0],
61689 config = _a.config,
61690 credentials = _a.credentials;
61691
61692 var initClients = this._init(config, credentials);
61693
61694 if (!initClients) return false;
61695 var records = {};
61696 group.map(function (params) {
61697 // spit by streamName
61698 var evt = params.event;
61699 var streamName = evt.streamName;
61700
61701 if (records[streamName] === undefined) {
61702 records[streamName] = [];
61703 }
61704
61705 var bufferData = evt.data && typeof evt.data !== 'string' ? JSON.stringify(evt.data) : evt.data;
61706 var Data = Object(_aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_2__["fromUtf8"])(bufferData);
61707 var PartitionKey = evt.partitionKey || 'partition-' + credentials.identityId;
61708 var record = {
61709 Data: Data,
61710 PartitionKey: PartitionKey
61711 };
61712 records[streamName].push(record);
61713 });
61714 Object.keys(records).map(function (streamName) {
61715 return __awaiter(_this, void 0, void 0, function () {
61716 var command, err_1;
61717 return __generator(this, function (_a) {
61718 switch (_a.label) {
61719 case 0:
61720 logger.debug('putting records to kinesis with records', records[streamName]);
61721 _a.label = 1;
61722
61723 case 1:
61724 _a.trys.push([1, 3,, 4]);
61725
61726 command = new _aws_sdk_client_kinesis__WEBPACK_IMPORTED_MODULE_1__["PutRecordsCommand"]({
61727 Records: records[streamName],
61728 StreamName: streamName
61729 });
61730 return [4
61731 /*yield*/
61732 , this._kinesis.send(command)];
61733
61734 case 2:
61735 _a.sent();
61736
61737 logger.debug('Upload records to stream', streamName);
61738 return [3
61739 /*break*/
61740 , 4];
61741
61742 case 3:
61743 err_1 = _a.sent();
61744 logger.debug('Failed to upload records to Kinesis', err_1);
61745 return [3
61746 /*break*/
61747 , 4];
61748
61749 case 4:
61750 return [2
61751 /*return*/
61752 ];
61753 }
61754 });
61755 });
61756 });
61757 };
61758
61759 AWSKinesisProvider.prototype._init = function (config, credentials) {
61760 logger.debug('init clients');
61761
61762 if (this._kinesis && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
61763 logger.debug('no change for analytics config, directly return from init');
61764 return true;
61765 }
61766
61767 this._config.credentials = credentials;
61768 var region = config.region,
61769 endpoint = config.endpoint;
61770 return this._initKinesis(region, endpoint, credentials);
61771 };
61772
61773 AWSKinesisProvider.prototype._initKinesis = function (region, endpoint, credentials) {
61774 logger.debug('initialize kinesis with credentials', credentials);
61775 this._kinesis = new _aws_sdk_client_kinesis__WEBPACK_IMPORTED_MODULE_1__["KinesisClient"]({
61776 region: region,
61777 credentials: credentials,
61778 customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(),
61779 endpoint: endpoint
61780 });
61781 return true;
61782 };
61783 /**
61784 * @private
61785 * check if current credentials exists
61786 */
61787
61788
61789 AWSKinesisProvider.prototype._getCredentials = function () {
61790 var _this = this;
61791
61792 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get().then(function (credentials) {
61793 if (!credentials) return null;
61794 logger.debug('set credentials for analytics', _this._config.credentials);
61795 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials);
61796 })["catch"](function (err) {
61797 logger.debug('ensure credentials error', err);
61798 return null;
61799 });
61800 };
61801
61802 return AWSKinesisProvider;
61803}();
61804
61805
61806/**
61807 * @deprecated use named import
61808 */
61809
61810/* harmony default export */ __webpack_exports__["default"] = (AWSKinesisProvider);
61811
61812/***/ }),
61813
61814/***/ "./lib-esm/Providers/AWSPinpointProvider.js":
61815/*!**************************************************!*\
61816 !*** ./lib-esm/Providers/AWSPinpointProvider.js ***!
61817 \**************************************************/
61818/*! exports provided: AWSPinpointProvider, default */
61819/***/ (function(module, __webpack_exports__, __webpack_require__) {
61820
61821"use strict";
61822__webpack_require__.r(__webpack_exports__);
61823/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return AWSPinpointProvider; });
61824/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
61825/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
61826/* 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");
61827/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/cache */ "@aws-amplify/cache");
61828/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__);
61829/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
61830/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
61831/* harmony import */ var _EventBuffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EventBuffer */ "./lib-esm/Providers/EventBuffer.js");
61832function _typeof(obj) {
61833 "@babel/helpers - typeof";
61834
61835 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
61836 _typeof = function _typeof(obj) {
61837 return typeof obj;
61838 };
61839 } else {
61840 _typeof = function _typeof(obj) {
61841 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
61842 };
61843 }
61844
61845 return _typeof(obj);
61846}
61847/*
61848 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
61849 *
61850 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
61851 * the License. A copy of the License is located at
61852 *
61853 * http://aws.amazon.com/apache2.0/
61854 *
61855 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
61856 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
61857 * and limitations under the License.
61858 */
61859
61860
61861var __assign = undefined && undefined.__assign || function () {
61862 __assign = Object.assign || function (t) {
61863 for (var s, i = 1, n = arguments.length; i < n; i++) {
61864 s = arguments[i];
61865
61866 for (var p in s) {
61867 if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
61868 }
61869 }
61870
61871 return t;
61872 };
61873
61874 return __assign.apply(this, arguments);
61875};
61876
61877var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
61878 function adopt(value) {
61879 return value instanceof P ? value : new P(function (resolve) {
61880 resolve(value);
61881 });
61882 }
61883
61884 return new (P || (P = Promise))(function (resolve, reject) {
61885 function fulfilled(value) {
61886 try {
61887 step(generator.next(value));
61888 } catch (e) {
61889 reject(e);
61890 }
61891 }
61892
61893 function rejected(value) {
61894 try {
61895 step(generator["throw"](value));
61896 } catch (e) {
61897 reject(e);
61898 }
61899 }
61900
61901 function step(result) {
61902 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
61903 }
61904
61905 step((generator = generator.apply(thisArg, _arguments || [])).next());
61906 });
61907};
61908
61909var __generator = undefined && undefined.__generator || function (thisArg, body) {
61910 var _ = {
61911 label: 0,
61912 sent: function sent() {
61913 if (t[0] & 1) throw t[1];
61914 return t[1];
61915 },
61916 trys: [],
61917 ops: []
61918 },
61919 f,
61920 y,
61921 t,
61922 g;
61923 return g = {
61924 next: verb(0),
61925 "throw": verb(1),
61926 "return": verb(2)
61927 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
61928 return this;
61929 }), g;
61930
61931 function verb(n) {
61932 return function (v) {
61933 return step([n, v]);
61934 };
61935 }
61936
61937 function step(op) {
61938 if (f) throw new TypeError("Generator is already executing.");
61939
61940 while (_) {
61941 try {
61942 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;
61943 if (y = 0, t) op = [op[0] & 2, t.value];
61944
61945 switch (op[0]) {
61946 case 0:
61947 case 1:
61948 t = op;
61949 break;
61950
61951 case 4:
61952 _.label++;
61953 return {
61954 value: op[1],
61955 done: false
61956 };
61957
61958 case 5:
61959 _.label++;
61960 y = op[1];
61961 op = [0];
61962 continue;
61963
61964 case 7:
61965 op = _.ops.pop();
61966
61967 _.trys.pop();
61968
61969 continue;
61970
61971 default:
61972 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
61973 _ = 0;
61974 continue;
61975 }
61976
61977 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
61978 _.label = op[1];
61979 break;
61980 }
61981
61982 if (op[0] === 6 && _.label < t[1]) {
61983 _.label = t[1];
61984 t = op;
61985 break;
61986 }
61987
61988 if (t && _.label < t[2]) {
61989 _.label = t[2];
61990
61991 _.ops.push(op);
61992
61993 break;
61994 }
61995
61996 if (t[2]) _.ops.pop();
61997
61998 _.trys.pop();
61999
62000 continue;
62001 }
62002
62003 op = body.call(thisArg, _);
62004 } catch (e) {
62005 op = [6, e];
62006 y = 0;
62007 } finally {
62008 f = t = 0;
62009 }
62010 }
62011
62012 if (op[0] & 5) throw op[1];
62013 return {
62014 value: op[0] ? op[1] : void 0,
62015 done: true
62016 };
62017 }
62018};
62019
62020var __rest = undefined && undefined.__rest || function (s, e) {
62021 var t = {};
62022
62023 for (var p in s) {
62024 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
62025 }
62026
62027 if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
62028 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
62029 }
62030 return t;
62031};
62032
62033
62034
62035
62036
62037
62038var AMPLIFY_SYMBOL = typeof Symbol !== 'undefined' && typeof Symbol["for"] === 'function' ? Symbol["for"]('amplify_default') : '@@amplify_default';
62039
62040var dispatchAnalyticsEvent = function dispatchAnalyticsEvent(event, data) {
62041 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('analytics', {
62042 event: event,
62043 data: data
62044 }, 'Analytics', AMPLIFY_SYMBOL);
62045};
62046
62047var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSPinpointProvider');
62048var RETRYABLE_CODES = [429, 500];
62049var ACCEPTED_CODES = [202];
62050var FORBIDDEN_CODE = 403;
62051var MOBILE_SERVICE_NAME = 'mobiletargeting';
62052var EXPIRED_TOKEN_CODE = 'ExpiredTokenException';
62053var UPDATE_ENDPOINT = '_update_endpoint';
62054var SESSION_START = '_session.start';
62055var SESSION_STOP = '_session.stop';
62056var BEACON_SUPPORTED = typeof navigator !== 'undefined' && navigator && typeof navigator.sendBeacon === 'function'; // events buffer
62057
62058var BUFFER_SIZE = 1000;
62059var FLUSH_SIZE = 100;
62060var FLUSH_INTERVAL = 5 * 1000; // 5s
62061
62062var RESEND_LIMIT = 5; // params: { event: {name: , .... }, timeStamp, config, resendLimits }
62063
62064var AWSPinpointProvider = function () {
62065 function AWSPinpointProvider(config) {
62066 this._endpointGenerating = true;
62067 this._endpointUpdateInProgress = false;
62068 this._buffer = null;
62069 this._endpointBuffer = [];
62070 this._config = config ? config : {};
62071 this._config.bufferSize = this._config.bufferSize || BUFFER_SIZE;
62072 this._config.flushSize = this._config.flushSize || FLUSH_SIZE;
62073 this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL;
62074 this._config.resendLimit = this._config.resendLimit || RESEND_LIMIT;
62075 this._clientInfo = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ClientDevice"].clientInfo();
62076 }
62077 /**
62078 * get the category of the plugin
62079 */
62080
62081
62082 AWSPinpointProvider.prototype.getCategory = function () {
62083 return AWSPinpointProvider.category;
62084 };
62085 /**
62086 * get provider name of the plugin
62087 */
62088
62089
62090 AWSPinpointProvider.prototype.getProviderName = function () {
62091 return AWSPinpointProvider.providerName;
62092 };
62093 /**
62094 * configure the plugin
62095 * @param {Object} config - configuration
62096 */
62097
62098
62099 AWSPinpointProvider.prototype.configure = function (config) {
62100 var _this = this;
62101
62102 logger.debug('configure Analytics', config);
62103 var conf = config || {};
62104 this._config = Object.assign({}, this._config, conf); // If autoSessionRecord is enabled, we need to wait for the endpoint to be
62105 // updated before sending any events. See `sendEvents` in `Analytics.ts`
62106
62107 this._endpointGenerating = !!config['autoSessionRecord'];
62108
62109 if (this._config.appId && !this._config.disabled) {
62110 if (!this._config.endpointId) {
62111 var cacheKey = this.getProviderName() + '_' + this._config.appId;
62112
62113 this._getEndpointId(cacheKey).then(function (endpointId) {
62114 logger.debug('setting endpoint id from the cache', endpointId);
62115 _this._config.endpointId = endpointId;
62116 dispatchAnalyticsEvent('pinpointProvider_configured', null);
62117 })["catch"](function (err) {
62118 logger.debug('Failed to generate endpointId', err);
62119 });
62120 } else {
62121 dispatchAnalyticsEvent('pinpointProvider_configured', null);
62122 }
62123 } else {
62124 this._flushBuffer();
62125 }
62126
62127 return this._config;
62128 };
62129 /**
62130 * record an event
62131 * @param {Object} params - the params of an event
62132 */
62133
62134
62135 AWSPinpointProvider.prototype.record = function (params, handlers) {
62136 return __awaiter(this, void 0, void 0, function () {
62137 var credentials, timestamp;
62138 return __generator(this, function (_a) {
62139 switch (_a.label) {
62140 case 0:
62141 logger.debug('_public record', params);
62142 return [4
62143 /*yield*/
62144 , this._getCredentials()];
62145
62146 case 1:
62147 credentials = _a.sent();
62148
62149 if (!credentials || !this._config.appId || !this._config.region) {
62150 logger.debug('cannot send events without credentials, applicationId or region');
62151 return [2
62152 /*return*/
62153 , handlers.reject(new Error('No credentials, applicationId or region'))];
62154 }
62155
62156 this._initClients(credentials);
62157
62158 timestamp = new Date().getTime(); // attach the session and eventId
62159
62160 this._generateSession(params);
62161
62162 params.event.eventId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
62163 Object.assign(params, {
62164 timestamp: timestamp,
62165 config: this._config
62166 });
62167
62168 if (params.event.immediate) {
62169 return [2
62170 /*return*/
62171 , this._send(params, handlers)];
62172 } else {
62173 this._putToBuffer(params, handlers);
62174 }
62175
62176 return [2
62177 /*return*/
62178 ];
62179 }
62180 });
62181 });
62182 };
62183
62184 AWSPinpointProvider.prototype._sendEndpointUpdate = function (endpointObject) {
62185 return __awaiter(this, void 0, void 0, function () {
62186 var next;
62187 return __generator(this, function (_a) {
62188 switch (_a.label) {
62189 case 0:
62190 if (this._endpointUpdateInProgress) {
62191 this._endpointBuffer.push(endpointObject);
62192
62193 return [2
62194 /*return*/
62195 ];
62196 }
62197
62198 this._endpointUpdateInProgress = true;
62199 return [4
62200 /*yield*/
62201 , this._updateEndpoint(endpointObject)];
62202
62203 case 1:
62204 _a.sent();
62205
62206 next = this._endpointBuffer.shift();
62207 this._endpointUpdateInProgress = false;
62208 next && this._sendEndpointUpdate(next);
62209 return [2
62210 /*return*/
62211 ];
62212 }
62213 });
62214 });
62215 };
62216 /**
62217 * @private
62218 * @param params - params for event recording
62219 * Put events into buffer
62220 */
62221
62222
62223 AWSPinpointProvider.prototype._putToBuffer = function (params, handlers) {
62224 if (params.event.name === UPDATE_ENDPOINT) {
62225 this._sendEndpointUpdate({
62226 params: params,
62227 handlers: handlers
62228 });
62229
62230 return;
62231 }
62232
62233 this._buffer && this._buffer.push({
62234 params: params,
62235 handlers: handlers
62236 });
62237 };
62238
62239 AWSPinpointProvider.prototype._generateSession = function (params) {
62240 this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
62241 var event = params.event;
62242
62243 switch (event.name) {
62244 case SESSION_START:
62245 // refresh the session id and session start time
62246 this._sessionStartTimestamp = new Date().getTime();
62247 this._sessionId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
62248 event.session = {
62249 Id: this._sessionId,
62250 StartTimestamp: new Date(this._sessionStartTimestamp).toISOString()
62251 };
62252 break;
62253
62254 case SESSION_STOP:
62255 var stopTimestamp = new Date().getTime();
62256 this._sessionStartTimestamp = this._sessionStartTimestamp || new Date().getTime();
62257 this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
62258 event.session = {
62259 Id: this._sessionId,
62260 Duration: stopTimestamp - this._sessionStartTimestamp,
62261 StartTimestamp: new Date(this._sessionStartTimestamp).toISOString(),
62262 StopTimestamp: new Date(stopTimestamp).toISOString()
62263 };
62264 this._sessionId = undefined;
62265 this._sessionStartTimestamp = undefined;
62266 break;
62267
62268 default:
62269 this._sessionStartTimestamp = this._sessionStartTimestamp || new Date().getTime();
62270 this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
62271 event.session = {
62272 Id: this._sessionId,
62273 StartTimestamp: new Date(this._sessionStartTimestamp).toISOString()
62274 };
62275 }
62276 };
62277
62278 AWSPinpointProvider.prototype._send = function (params, handlers) {
62279 return __awaiter(this, void 0, void 0, function () {
62280 var event;
62281 return __generator(this, function (_a) {
62282 event = params.event;
62283
62284 switch (event.name) {
62285 case UPDATE_ENDPOINT:
62286 return [2
62287 /*return*/
62288 , this._updateEndpoint({
62289 params: params,
62290 handlers: handlers
62291 })];
62292
62293 case SESSION_STOP:
62294 return [2
62295 /*return*/
62296 , this._pinpointSendStopSession(params, handlers)];
62297
62298 default:
62299 return [2
62300 /*return*/
62301 , this._pinpointPutEvents(params, handlers)];
62302 }
62303
62304 return [2
62305 /*return*/
62306 ];
62307 });
62308 });
62309 };
62310
62311 AWSPinpointProvider.prototype._generateBatchItemContext = function (params) {
62312 var _a;
62313
62314 var event = params.event,
62315 timestamp = params.timestamp,
62316 config = params.config;
62317 var name = event.name,
62318 attributes = event.attributes,
62319 metrics = event.metrics,
62320 eventId = event.eventId,
62321 session = event.session;
62322 var appId = config.appId,
62323 endpointId = config.endpointId;
62324 var endpointContext = {};
62325 var eventParams = {
62326 ApplicationId: appId,
62327 EventsRequest: {
62328 BatchItem: {}
62329 }
62330 };
62331 var endpointObj = {};
62332 endpointObj.Endpoint = endpointContext;
62333 endpointObj.Events = (_a = {}, _a[eventId] = {
62334 EventType: name,
62335 Timestamp: new Date(timestamp).toISOString(),
62336 Attributes: attributes,
62337 Metrics: metrics,
62338 Session: session
62339 }, _a);
62340 eventParams.EventsRequest.BatchItem[endpointId] = endpointObj;
62341 return eventParams;
62342 };
62343
62344 AWSPinpointProvider.prototype._pinpointPutEvents = function (params, handlers) {
62345 return __awaiter(this, void 0, void 0, function () {
62346 var eventId, endpointId, eventParams, command, data, _a, _b, _c, StatusCode, Message, err_1;
62347
62348 return __generator(this, function (_d) {
62349 switch (_d.label) {
62350 case 0:
62351 eventId = params.event.eventId, endpointId = params.config.endpointId;
62352 eventParams = this._generateBatchItemContext(params);
62353 command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](eventParams);
62354 _d.label = 1;
62355
62356 case 1:
62357 _d.trys.push([1, 3,, 4]);
62358
62359 return [4
62360 /*yield*/
62361 , this.pinpointClient.send(command)];
62362
62363 case 2:
62364 data = _d.sent();
62365 _a = endpointId, _b = eventId, _c = data.EventsResponse.Results[_a].EventsItemResponse[_b], StatusCode = _c.StatusCode, Message = _c.Message;
62366
62367 if (ACCEPTED_CODES.includes(StatusCode)) {
62368 logger.debug('record event success. ', data);
62369 return [2
62370 /*return*/
62371 , handlers.resolve(data)];
62372 } else {
62373 if (RETRYABLE_CODES.includes(StatusCode)) {
62374 this._retry(params, handlers);
62375 } else {
62376 logger.error("Event " + eventId + " is not accepted, the error is " + Message);
62377 return [2
62378 /*return*/
62379 , handlers.reject(data)];
62380 }
62381 }
62382
62383 return [3
62384 /*break*/
62385 , 4];
62386
62387 case 3:
62388 err_1 = _d.sent();
62389
62390 this._eventError(err_1);
62391
62392 return [2
62393 /*return*/
62394 , handlers.reject(err_1)];
62395
62396 case 4:
62397 return [2
62398 /*return*/
62399 ];
62400 }
62401 });
62402 });
62403 };
62404
62405 AWSPinpointProvider.prototype._pinpointSendStopSession = function (params, handlers) {
62406 if (!BEACON_SUPPORTED) {
62407 this._pinpointPutEvents(params, handlers);
62408
62409 return;
62410 }
62411
62412 var eventParams = this._generateBatchItemContext(params);
62413
62414 var region = this._config.region;
62415 var ApplicationId = eventParams.ApplicationId,
62416 EventsRequest = eventParams.EventsRequest;
62417 var accessInfo = {
62418 secret_key: this._config.credentials.secretAccessKey,
62419 access_key: this._config.credentials.accessKeyId,
62420 session_token: this._config.credentials.sessionToken
62421 };
62422 var url = "https://pinpoint." + region + ".amazonaws.com/v1/apps/" + ApplicationId + "/events/legacy";
62423 var body = JSON.stringify(EventsRequest);
62424 var method = 'POST';
62425 var request = {
62426 url: url,
62427 body: body,
62428 method: method
62429 };
62430 var serviceInfo = {
62431 region: region,
62432 service: MOBILE_SERVICE_NAME
62433 };
62434 var requestUrl = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Signer"].signUrl(request, accessInfo, serviceInfo, null);
62435 var success = navigator.sendBeacon(requestUrl, body);
62436
62437 if (success) {
62438 return handlers.resolve('sendBeacon success');
62439 }
62440
62441 return handlers.reject('sendBeacon failure');
62442 };
62443
62444 AWSPinpointProvider.prototype._retry = function (params, handlers) {
62445 var resendLimit = params.config.resendLimit; // For backward compatibility
62446
62447 params.resendLimit = typeof params.resendLimit === 'number' ? params.resendLimit : resendLimit;
62448
62449 if (params.resendLimit-- > 0) {
62450 logger.debug("resending event " + params.eventName + " with " + params.resendLimit + " retry times left");
62451
62452 this._pinpointPutEvents(params, handlers);
62453 } else {
62454 logger.debug("retry times used up for event " + params.eventName);
62455 }
62456 };
62457
62458 AWSPinpointProvider.prototype._updateEndpoint = function (endpointObject) {
62459 return __awaiter(this, void 0, void 0, function () {
62460 var params, handlers, config, event, appId, endpointId, request, update_params, command, data, err_2, failureData;
62461 return __generator(this, function (_a) {
62462 switch (_a.label) {
62463 case 0:
62464 params = endpointObject.params, handlers = endpointObject.handlers;
62465 config = params.config, event = params.event;
62466 appId = config.appId, endpointId = config.endpointId;
62467 request = this._endpointRequest(config, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].transferKeyToLowerCase(event, [], ['attributes', 'userAttributes', 'Attributes', 'UserAttributes']));
62468 update_params = {
62469 ApplicationId: appId,
62470 EndpointId: endpointId,
62471 EndpointRequest: request
62472 };
62473 _a.label = 1;
62474
62475 case 1:
62476 _a.trys.push([1, 3,, 4]);
62477
62478 command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointCommand"](update_params);
62479 return [4
62480 /*yield*/
62481 , this.pinpointClient.send(command)];
62482
62483 case 2:
62484 data = _a.sent();
62485 logger.debug('updateEndpoint success', data);
62486 this._endpointGenerating = false;
62487
62488 this._resumeBuffer();
62489
62490 handlers.resolve(data);
62491 return [2
62492 /*return*/
62493 ];
62494
62495 case 3:
62496 err_2 = _a.sent();
62497 failureData = {
62498 err: err_2,
62499 update_params: update_params,
62500 endpointObject: endpointObject
62501 };
62502 return [2
62503 /*return*/
62504 , this._handleEndpointUpdateFailure(failureData)];
62505
62506 case 4:
62507 return [2
62508 /*return*/
62509 ];
62510 }
62511 });
62512 });
62513 };
62514
62515 AWSPinpointProvider.prototype._handleEndpointUpdateFailure = function (failureData) {
62516 return __awaiter(this, void 0, void 0, function () {
62517 var err, endpointObject, statusCode, exponential;
62518 return __generator(this, function (_a) {
62519 err = failureData.err, endpointObject = failureData.endpointObject;
62520 statusCode = err.$metadata && err.$metadata.httpStatusCode;
62521 logger.debug('updateEndpoint error', err);
62522
62523 switch (statusCode) {
62524 case FORBIDDEN_CODE:
62525 return [2
62526 /*return*/
62527 , this._handleEndpointUpdateForbidden(failureData)];
62528
62529 default:
62530 if (RETRYABLE_CODES.includes(statusCode)) {
62531 exponential = true;
62532 return [2
62533 /*return*/
62534 , this._retryEndpointUpdate(endpointObject, exponential)];
62535 }
62536
62537 logger.error('updateEndpoint failed', err);
62538 endpointObject.handlers.reject(err);
62539 }
62540
62541 return [2
62542 /*return*/
62543 ];
62544 });
62545 });
62546 };
62547
62548 AWSPinpointProvider.prototype._handleEndpointUpdateForbidden = function (failureData) {
62549 var err = failureData.err,
62550 endpointObject = failureData.endpointObject;
62551 var code = err.code,
62552 retryable = err.retryable;
62553
62554 if (code !== EXPIRED_TOKEN_CODE && !retryable) {
62555 return endpointObject.handlers.reject(err);
62556 }
62557
62558 this._retryEndpointUpdate(endpointObject);
62559 };
62560
62561 AWSPinpointProvider.prototype._retryEndpointUpdate = function (endpointObject, exponential) {
62562 if (exponential === void 0) {
62563 exponential = false;
62564 }
62565
62566 logger.debug('_retryEndpointUpdate', endpointObject);
62567 var params = endpointObject.params; // TODO: implement retry with exp back off once exp function is available
62568
62569 var resendLimit = params.config.resendLimit;
62570 params.resendLimit = typeof params.resendLimit === 'number' ? params.resendLimit : resendLimit;
62571
62572 if (params.resendLimit-- > 0) {
62573 logger.debug("resending endpoint update " + params.event.eventId + " with " + params.resendLimit + " retry attempts remaining"); // insert at the front of endpointBuffer
62574
62575 this._endpointBuffer.length ? this._endpointBuffer.unshift(endpointObject) : this._updateEndpoint(endpointObject);
62576 return;
62577 }
62578
62579 logger.warn("resending endpoint update " + params.event.eventId + " failed after " + params.config.resendLimit + " attempts");
62580
62581 if (this._endpointGenerating) {
62582 logger.error('Initial endpoint update failed. ');
62583 }
62584 };
62585 /**
62586 * @private
62587 * @param config
62588 * Init the clients
62589 */
62590
62591
62592 AWSPinpointProvider.prototype._initClients = function (credentials) {
62593 return __awaiter(this, void 0, void 0, function () {
62594 var identityId, region;
62595 return __generator(this, function (_a) {
62596 logger.debug('init clients');
62597
62598 if (this.pinpointClient && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
62599 logger.debug('no change for aws credentials, directly return from init');
62600 return [2
62601 /*return*/
62602 ];
62603 }
62604
62605 identityId = this._config.credentials ? this._config.credentials.identityId : null;
62606 this._config.credentials = credentials;
62607 region = this._config.region;
62608 logger.debug('init clients with credentials', credentials);
62609 this.pinpointClient = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PinpointClient"]({
62610 region: region,
62611 credentials: credentials,
62612 customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])()
62613 }); // TODO: remove this middleware once a long term fix is implemented by aws-sdk-js team.
62614
62615 this.pinpointClient.middlewareStack.addRelativeTo(function (next) {
62616 return function (args) {
62617 delete args.request.headers['amz-sdk-invocation-id'];
62618 delete args.request.headers['amz-sdk-request'];
62619 return next(args);
62620 };
62621 }, {
62622 step: 'finalizeRequest',
62623 relation: 'after',
62624 toMiddleware: 'retryMiddleware'
62625 });
62626
62627 if (this._bufferExists() && identityId === credentials.identityId) {
62628 // if the identity has remained the same, pass the updated client to the buffer
62629 this._updateBufferClient();
62630 } else {
62631 // otherwise flush the buffer and instantiate a new one
62632 // this will cause the old buffer to send any remaining events
62633 // with the old credentials and then stop looping and shortly thereafter get picked up by GC
62634 this._initBuffer();
62635 }
62636
62637 this._customizePinpointClientReq();
62638
62639 return [2
62640 /*return*/
62641 ];
62642 });
62643 });
62644 };
62645
62646 AWSPinpointProvider.prototype._bufferExists = function () {
62647 return this._buffer && this._buffer instanceof _EventBuffer__WEBPACK_IMPORTED_MODULE_4__["default"];
62648 };
62649
62650 AWSPinpointProvider.prototype._initBuffer = function () {
62651 if (this._bufferExists()) {
62652 this._flushBuffer();
62653 }
62654
62655 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
62656 // prevent race conditions. It will be resumed as soon as that request succeeds
62657
62658 if (this._endpointGenerating) {
62659 this._buffer.pause();
62660 }
62661 };
62662
62663 AWSPinpointProvider.prototype._updateBufferClient = function () {
62664 if (this._bufferExists()) {
62665 this._buffer.updateClient(this.pinpointClient);
62666 }
62667 };
62668
62669 AWSPinpointProvider.prototype._flushBuffer = function () {
62670 if (this._bufferExists()) {
62671 this._buffer.flush();
62672
62673 this._buffer = null;
62674 }
62675 };
62676
62677 AWSPinpointProvider.prototype._resumeBuffer = function () {
62678 if (this._bufferExists()) {
62679 this._buffer.resume();
62680 }
62681 };
62682
62683 AWSPinpointProvider.prototype._customizePinpointClientReq = function () {// TODO FIXME: Find a middleware to do this with AWS V3 SDK
62684 // if (Platform.isReactNative) {
62685 // this.pinpointClient.customizeRequests(request => {
62686 // request.on('build', req => {
62687 // req.httpRequest.headers['user-agent'] = Platform.userAgent;
62688 // });
62689 // });
62690 // }
62691 };
62692
62693 AWSPinpointProvider.prototype._getEndpointId = function (cacheKey) {
62694 return __awaiter(this, void 0, void 0, function () {
62695 var endpointId;
62696 return __generator(this, function (_a) {
62697 switch (_a.label) {
62698 case 0:
62699 return [4
62700 /*yield*/
62701 , _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2___default.a.getItem(cacheKey)];
62702
62703 case 1:
62704 endpointId = _a.sent();
62705 logger.debug('endpointId from cache', endpointId, 'type', _typeof(endpointId));
62706
62707 if (!endpointId) {
62708 endpointId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
62709 _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2___default.a.setItem(cacheKey, endpointId);
62710 }
62711
62712 return [2
62713 /*return*/
62714 , endpointId];
62715 }
62716 });
62717 });
62718 };
62719 /**
62720 * EndPoint request
62721 * @return {Object} - The request of updating endpoint
62722 */
62723
62724
62725 AWSPinpointProvider.prototype._endpointRequest = function (config, event) {
62726 var credentials = config.credentials;
62727 var clientInfo = this._clientInfo || {};
62728 var clientContext = config.clientContext || {}; // for now we have three different ways for default endpoint configurations
62729 // clientInfo
62730 // clientContext (deprecated)
62731 // config.endpoint
62732
62733 var defaultEndpointConfig = config.endpoint || {};
62734 var demographicByClientInfo = {
62735 appVersion: clientInfo.appVersion,
62736 make: clientInfo.make,
62737 model: clientInfo.model,
62738 modelVersion: clientInfo.version,
62739 platform: clientInfo.platform
62740 }; // for backward compatibility
62741
62742 var clientId = clientContext.clientId,
62743 appTitle = clientContext.appTitle,
62744 appVersionName = clientContext.appVersionName,
62745 appVersionCode = clientContext.appVersionCode,
62746 appPackageName = clientContext.appPackageName,
62747 demographicByClientContext = __rest(clientContext, ["clientId", "appTitle", "appVersionName", "appVersionCode", "appPackageName"]);
62748
62749 var channelType = event.address ? clientInfo.platform === 'android' ? 'GCM' : 'APNS' : undefined;
62750
62751 var tmp = __assign(__assign(__assign({
62752 channelType: channelType,
62753 requestId: Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(),
62754 effectiveDate: new Date().toISOString()
62755 }, defaultEndpointConfig), event), {
62756 attributes: __assign(__assign({}, defaultEndpointConfig.attributes), event.attributes),
62757 demographic: __assign(__assign(__assign(__assign({}, demographicByClientInfo), demographicByClientContext), defaultEndpointConfig.demographic), event.demographic),
62758 location: __assign(__assign({}, defaultEndpointConfig.location), event.location),
62759 metrics: __assign(__assign({}, defaultEndpointConfig.metrics), event.metrics),
62760 user: {
62761 userId: event.userId || defaultEndpointConfig.userId || credentials.identityId,
62762 userAttributes: __assign(__assign({}, defaultEndpointConfig.userAttributes), event.userAttributes)
62763 }
62764 }); // eliminate unnecessary params
62765
62766
62767 var userId = tmp.userId,
62768 userAttributes = tmp.userAttributes,
62769 name = tmp.name,
62770 session = tmp.session,
62771 eventId = tmp.eventId,
62772 immediate = tmp.immediate,
62773 ret = __rest(tmp, ["userId", "userAttributes", "name", "session", "eventId", "immediate"]);
62774
62775 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].transferKeyToUpperCase(ret, [], ['metrics', 'userAttributes', 'attributes']);
62776 };
62777
62778 AWSPinpointProvider.prototype._eventError = function (err) {
62779 logger.error('record event failed.', err);
62780 logger.warn("Please ensure you have updated your Pinpoint IAM Policy " + "with the Action: \"mobiletargeting:PutEvents\" " + "in order to record events");
62781 };
62782
62783 AWSPinpointProvider.prototype._getCredentials = function () {
62784 return __awaiter(this, void 0, void 0, function () {
62785 var credentials, err_3;
62786 return __generator(this, function (_a) {
62787 switch (_a.label) {
62788 case 0:
62789 _a.trys.push([0, 2,, 3]);
62790
62791 return [4
62792 /*yield*/
62793 , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()];
62794
62795 case 1:
62796 credentials = _a.sent();
62797 if (!credentials) return [2
62798 /*return*/
62799 , null];
62800 logger.debug('set credentials for analytics', credentials);
62801 return [2
62802 /*return*/
62803 , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials)];
62804
62805 case 2:
62806 err_3 = _a.sent();
62807 logger.debug('ensure credentials error', err_3);
62808 return [2
62809 /*return*/
62810 , null];
62811
62812 case 3:
62813 return [2
62814 /*return*/
62815 ];
62816 }
62817 });
62818 });
62819 };
62820
62821 AWSPinpointProvider.category = 'Analytics';
62822 AWSPinpointProvider.providerName = 'AWSPinpoint';
62823 return AWSPinpointProvider;
62824}();
62825
62826
62827/**
62828 * @deprecated use named import
62829 */
62830
62831/* harmony default export */ __webpack_exports__["default"] = (AWSPinpointProvider);
62832
62833/***/ }),
62834
62835/***/ "./lib-esm/Providers/AmazonPersonalizeHelper/MediaAutoTrack.js":
62836/*!*********************************************************************!*\
62837 !*** ./lib-esm/Providers/AmazonPersonalizeHelper/MediaAutoTrack.js ***!
62838 \*********************************************************************/
62839/*! exports provided: MediaAutoTrack */
62840/***/ (function(module, __webpack_exports__, __webpack_require__) {
62841
62842"use strict";
62843__webpack_require__.r(__webpack_exports__);
62844/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MediaAutoTrack", function() { return MediaAutoTrack; });
62845var HTML5_MEDIA_EVENT;
62846
62847(function (HTML5_MEDIA_EVENT) {
62848 HTML5_MEDIA_EVENT["PLAY"] = "play";
62849 HTML5_MEDIA_EVENT["PAUSE"] = "pause";
62850 HTML5_MEDIA_EVENT["ENDED"] = "Ended";
62851})(HTML5_MEDIA_EVENT || (HTML5_MEDIA_EVENT = {}));
62852
62853var MEDIA_TYPE;
62854
62855(function (MEDIA_TYPE) {
62856 MEDIA_TYPE["IFRAME"] = "IFRAME";
62857 MEDIA_TYPE["VIDEO"] = "VIDEO";
62858 MEDIA_TYPE["AUDIO"] = "AUDIO";
62859})(MEDIA_TYPE || (MEDIA_TYPE = {}));
62860
62861var EVENT_TYPE;
62862
62863(function (EVENT_TYPE) {
62864 EVENT_TYPE["PLAY"] = "Play";
62865 EVENT_TYPE["ENDED"] = "Ended";
62866 EVENT_TYPE["PAUSE"] = "Pause";
62867 EVENT_TYPE["TIME_WATCHED"] = "TimeWatched";
62868})(EVENT_TYPE || (EVENT_TYPE = {}));
62869
62870var MediaAutoTrack = function () {
62871 function MediaAutoTrack(params, provider) {
62872 var _a;
62873
62874 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);
62875 var eventData = params.eventData;
62876 this._params = params;
62877 this._mediaElement = document.getElementById(eventData.properties['domElementId']);
62878 this._started = false;
62879 this._provider = provider;
62880 var mediaTrackFunMapping = {
62881 IFRAME: this._iframeMediaTracker,
62882 VIDEO: this._html5MediaTracker,
62883 AUDIO: this._html5MediaTracker
62884 };
62885
62886 mediaTrackFunMapping[this._mediaElement.tagName].bind(this)();
62887
62888 this._initYoutubeFrame();
62889 }
62890
62891 MediaAutoTrack.prototype._initYoutubeFrame = function () {
62892 this._youTubeIframeLoader = {
62893 src: 'https://www.youtube.com/iframe_api',
62894 loading: false,
62895 loaded: false,
62896 listeners: [],
62897 load: function load(callback) {
62898 var _this = this;
62899
62900 this.listeners.push(callback);
62901
62902 if (this.loaded) {
62903 setTimeout(function () {
62904 _this.done();
62905 });
62906 return;
62907 }
62908
62909 if (this.loading) {
62910 return;
62911 }
62912
62913 this.loading = true;
62914
62915 window['onYouTubeIframeAPIReady'] = function () {
62916 _this.loaded = true;
62917
62918 _this.done();
62919 };
62920
62921 var script = document.createElement('script');
62922 script.type = 'text/javascript';
62923 script.src = this.src;
62924 document.body.appendChild(script);
62925 },
62926 done: function done() {
62927 delete window['onYouTubeIframeAPIReady'];
62928
62929 while (this.listeners.length) {
62930 this.listeners.pop()(window['YT']);
62931 }
62932 }
62933 };
62934 };
62935
62936 MediaAutoTrack.prototype._iframeMediaTracker = function () {
62937 var that = this;
62938 setInterval(function () {
62939 if (that._started) {
62940 that.recordEvent(MEDIA_TYPE.IFRAME, EVENT_TYPE.TIME_WATCHED);
62941 }
62942 }, 3 * 1000);
62943
62944 this._youTubeIframeLoader.load(function (YT) {
62945 that._iframePlayer = new YT.Player(that._mediaElement.id, {
62946 events: {
62947 onStateChange: that._onPlayerStateChange.bind(that)
62948 }
62949 });
62950 });
62951 };
62952
62953 MediaAutoTrack.prototype._onPlayerStateChange = function (event) {
62954 var iframeEventMapping = {
62955 0: EVENT_TYPE.ENDED,
62956 1: EVENT_TYPE.PLAY,
62957 2: EVENT_TYPE.PAUSE
62958 };
62959 var eventType = iframeEventMapping[event.data];
62960
62961 if (eventType) {
62962 this.eventActionMapping[eventType](MEDIA_TYPE.IFRAME);
62963 }
62964 };
62965
62966 MediaAutoTrack.prototype._html5MediaTracker = function () {
62967 var that = this;
62968 setInterval(function () {
62969 if (that._started) {
62970 that.recordEvent(MEDIA_TYPE.VIDEO, EVENT_TYPE.TIME_WATCHED);
62971 }
62972 }, 3 * 1000);
62973
62974 this._mediaElement.addEventListener(HTML5_MEDIA_EVENT.PLAY, function () {
62975 that.eventActionMapping[EVENT_TYPE.PLAY](MEDIA_TYPE.VIDEO);
62976 }, false);
62977
62978 this._mediaElement.addEventListener(HTML5_MEDIA_EVENT.PAUSE, function () {
62979 that.eventActionMapping[EVENT_TYPE.PAUSE](MEDIA_TYPE.VIDEO);
62980 }, false);
62981
62982 this._mediaElement.addEventListener(HTML5_MEDIA_EVENT.ENDED, function () {
62983 that.eventActionMapping[EVENT_TYPE.ENDED](MEDIA_TYPE.VIDEO);
62984 }, false);
62985 };
62986
62987 MediaAutoTrack.prototype.playEventAction = function (mediaType) {
62988 this._started = true;
62989 this.recordEvent(mediaType, EVENT_TYPE.PLAY);
62990 };
62991
62992 MediaAutoTrack.prototype.pauseEventAction = function (mediaType) {
62993 this._started = false;
62994 this.recordEvent(mediaType, EVENT_TYPE.PAUSE);
62995 };
62996
62997 MediaAutoTrack.prototype.endedEventAction = function (mediaType) {
62998 this._started = false;
62999 this.recordEvent(mediaType, EVENT_TYPE.ENDED);
63000 };
63001
63002 MediaAutoTrack.prototype.recordEvent = function (mediaType, eventType) {
63003 var newParams = Object.assign({}, this._params);
63004 var eventData = newParams.eventData;
63005 eventData.eventType = eventType;
63006
63007 if (mediaType === MEDIA_TYPE.VIDEO) {
63008 eventData.properties.timestamp = this._mediaElement.currentTime;
63009 eventData.properties.duration = this._mediaElement.duration;
63010 } else {
63011 eventData.properties.timestamp = this._financial(this._iframePlayer.getCurrentTime());
63012 eventData.properties.duration = this._financial(this._iframePlayer.getDuration());
63013 }
63014
63015 var percentage = parseFloat(eventData.properties.timestamp) / parseFloat(eventData.properties.duration);
63016 eventData.properties.eventValue = Number(percentage.toFixed(4));
63017 delete eventData.properties.domElementId;
63018
63019 this._provider.putToBuffer(newParams);
63020 };
63021
63022 MediaAutoTrack.prototype._financial = function (x) {
63023 return Number.parseFloat(x).toFixed(4);
63024 };
63025
63026 return MediaAutoTrack;
63027}();
63028
63029
63030
63031/***/ }),
63032
63033/***/ "./lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js":
63034/*!*************************************************************************!*\
63035 !*** ./lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js ***!
63036 \*************************************************************************/
63037/*! exports provided: SessionInfoManager */
63038/***/ (function(module, __webpack_exports__, __webpack_require__) {
63039
63040"use strict";
63041__webpack_require__.r(__webpack_exports__);
63042/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SessionInfoManager", function() { return SessionInfoManager; });
63043/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js");
63044/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
63045/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEqual */ "../../node_modules/lodash/isEqual.js");
63046/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_1__);
63047/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
63048/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__);
63049/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
63050/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__);
63051/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/cache */ "@aws-amplify/cache");
63052/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4__);
63053
63054
63055
63056
63057
63058var PERSONALIZE_CACHE = '_awsct';
63059var PERSONALIZE_CACHE_USERID = '_awsct_uid';
63060var PERSONALIZE_CACHE_SESSIONID = '_awsct_sid';
63061var DEFAULT_CACHE_PREFIX = 'peronslize';
63062var TIMER_INTERVAL = 30 * 1000;
63063var DELIMITER = '.';
63064var CACHE_EXPIRY_IN_DAYS = 7;
63065var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["ConsoleLogger"]('AmazonPersonalizeProvider');
63066
63067var SessionInfoManager = function () {
63068 function SessionInfoManager(prefixKey) {
63069 if (prefixKey === void 0) {
63070 prefixKey = '';
63071 }
63072
63073 this._isBrowser = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["JS"].browserOrNode().isBrowser;
63074 this._timerKey = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])().substr(0, 15);
63075
63076 this._refreshTimer();
63077 }
63078
63079 SessionInfoManager.prototype._refreshTimer = function () {
63080 if (this._timer) {
63081 clearInterval(this._timer);
63082 }
63083
63084 var that = this;
63085 this._timer = setInterval(function () {
63086 that._timerKey = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])().substr(0, 15);
63087 }, TIMER_INTERVAL);
63088 };
63089
63090 SessionInfoManager.prototype.storeValue = function (key, value) {
63091 var today = new Date();
63092 var expire = new Date();
63093 expire.setTime(today.getTime() + 3600000 * 24 * CACHE_EXPIRY_IN_DAYS);
63094 _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default.a.setItem(this._getCachePrefix(key), value, {
63095 expires: expire.getTime()
63096 });
63097 };
63098
63099 SessionInfoManager.prototype.retrieveValue = function (key) {
63100 return _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default.a.getItem(this._getCachePrefix(key));
63101 };
63102
63103 SessionInfoManager.prototype._getCachePrefix = function (key) {
63104 if (this._isBrowser) {
63105 return key + DELIMITER + window.location.host;
63106 }
63107
63108 return DEFAULT_CACHE_PREFIX;
63109 };
63110
63111 SessionInfoManager.prototype.getTimerKey = function () {
63112 return this._timerKey;
63113 };
63114
63115 SessionInfoManager.prototype.updateSessionInfo = function (userId, sessionInfo) {
63116 var existUserId = sessionInfo.userId;
63117 var existSessionId = sessionInfo.sessionId;
63118
63119 if (this._isRequireNewSession(userId, existUserId, existSessionId)) {
63120 var newSessionId = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])();
63121 this.storeValue(PERSONALIZE_CACHE_USERID, userId);
63122 this.storeValue(PERSONALIZE_CACHE_SESSIONID, newSessionId);
63123 sessionInfo.sessionId = newSessionId;
63124 } else if (this._isRequireUpdateSessionInfo(userId, existUserId, existSessionId)) {
63125 this.storeValue(PERSONALIZE_CACHE_USERID, userId);
63126 }
63127
63128 sessionInfo.userId = userId;
63129 };
63130
63131 SessionInfoManager.prototype._isRequireUpdateSessionInfo = function (userId, cachedSessionUserId, cachedSessionSessionId) {
63132 // anonymouse => sign in : hasSession && s_userId == null && curr_userId !=null
63133 var isNoCachedSession = lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionSessionId);
63134 return !isNoCachedSession && lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionUserId) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(userId);
63135 };
63136
63137 SessionInfoManager.prototype.retrieveSessionInfo = function (trackingId) {
63138 var sessionInfo = {};
63139 sessionInfo.trackingId = trackingId;
63140 sessionInfo.sessionId = this.retrieveValue(PERSONALIZE_CACHE_SESSIONID);
63141 sessionInfo.userId = this.retrieveValue(PERSONALIZE_CACHE_USERID);
63142
63143 if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(sessionInfo.sessionId)) {
63144 sessionInfo.sessionId = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])();
63145 this.storeValue(PERSONALIZE_CACHE_SESSIONID, sessionInfo.sessionId);
63146 }
63147
63148 this.storeValue(PERSONALIZE_CACHE, trackingId);
63149 return sessionInfo;
63150 };
63151
63152 SessionInfoManager.prototype._isRequireNewSession = function (userId, cachedSessionUserId, cachedSessionSessionId) {
63153 // new session => 1. no cached session info 2. signOut: s_userId !=null && curr_userId ==null
63154 // 3. switch account: s_userId !=null && curr_userId !=null && s_userId != curr_userId
63155 var isNoCachedSession = lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionSessionId);
63156 var isSignoutCase = lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(userId) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionUserId);
63157 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);
63158 return isNoCachedSession || isSignoutCase || isSwitchUserCase;
63159 };
63160
63161 return SessionInfoManager;
63162}();
63163
63164
63165
63166/***/ }),
63167
63168/***/ "./lib-esm/Providers/AmazonPersonalizeHelper/index.js":
63169/*!************************************************************!*\
63170 !*** ./lib-esm/Providers/AmazonPersonalizeHelper/index.js ***!
63171 \************************************************************/
63172/*! exports provided: SessionInfoManager, MediaAutoTrack */
63173/***/ (function(module, __webpack_exports__, __webpack_require__) {
63174
63175"use strict";
63176__webpack_require__.r(__webpack_exports__);
63177/* harmony import */ var _SessionInfoManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SessionInfoManager */ "./lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js");
63178/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionInfoManager", function() { return _SessionInfoManager__WEBPACK_IMPORTED_MODULE_0__["SessionInfoManager"]; });
63179
63180/* harmony import */ var _MediaAutoTrack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MediaAutoTrack */ "./lib-esm/Providers/AmazonPersonalizeHelper/MediaAutoTrack.js");
63181/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MediaAutoTrack", function() { return _MediaAutoTrack__WEBPACK_IMPORTED_MODULE_1__["MediaAutoTrack"]; });
63182
63183
63184
63185
63186/***/ }),
63187
63188/***/ "./lib-esm/Providers/AmazonPersonalizeProvider.js":
63189/*!********************************************************!*\
63190 !*** ./lib-esm/Providers/AmazonPersonalizeProvider.js ***!
63191 \********************************************************/
63192/*! exports provided: AmazonPersonalizeProvider, default */
63193/***/ (function(module, __webpack_exports__, __webpack_require__) {
63194
63195"use strict";
63196__webpack_require__.r(__webpack_exports__);
63197/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return AmazonPersonalizeProvider; });
63198/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
63199/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
63200/* 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");
63201/* harmony import */ var _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AmazonPersonalizeHelper */ "./lib-esm/Providers/AmazonPersonalizeHelper/index.js");
63202/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/get */ "../../node_modules/lodash/get.js");
63203/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_3__);
63204/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js");
63205/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__);
63206/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEqual */ "../../node_modules/lodash/isEqual.js");
63207/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_5__);
63208/*
63209 * Copyright 2019-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
63210 *
63211 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
63212 * the License. A copy of the License is located at
63213 *
63214 * http://aws.amazon.com/apache2.0/
63215 *
63216 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
63217 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
63218 * and limitations under the License.
63219 */
63220var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
63221 function adopt(value) {
63222 return value instanceof P ? value : new P(function (resolve) {
63223 resolve(value);
63224 });
63225 }
63226
63227 return new (P || (P = Promise))(function (resolve, reject) {
63228 function fulfilled(value) {
63229 try {
63230 step(generator.next(value));
63231 } catch (e) {
63232 reject(e);
63233 }
63234 }
63235
63236 function rejected(value) {
63237 try {
63238 step(generator["throw"](value));
63239 } catch (e) {
63240 reject(e);
63241 }
63242 }
63243
63244 function step(result) {
63245 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
63246 }
63247
63248 step((generator = generator.apply(thisArg, _arguments || [])).next());
63249 });
63250};
63251
63252var __generator = undefined && undefined.__generator || function (thisArg, body) {
63253 var _ = {
63254 label: 0,
63255 sent: function sent() {
63256 if (t[0] & 1) throw t[1];
63257 return t[1];
63258 },
63259 trys: [],
63260 ops: []
63261 },
63262 f,
63263 y,
63264 t,
63265 g;
63266 return g = {
63267 next: verb(0),
63268 "throw": verb(1),
63269 "return": verb(2)
63270 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
63271 return this;
63272 }), g;
63273
63274 function verb(n) {
63275 return function (v) {
63276 return step([n, v]);
63277 };
63278 }
63279
63280 function step(op) {
63281 if (f) throw new TypeError("Generator is already executing.");
63282
63283 while (_) {
63284 try {
63285 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;
63286 if (y = 0, t) op = [op[0] & 2, t.value];
63287
63288 switch (op[0]) {
63289 case 0:
63290 case 1:
63291 t = op;
63292 break;
63293
63294 case 4:
63295 _.label++;
63296 return {
63297 value: op[1],
63298 done: false
63299 };
63300
63301 case 5:
63302 _.label++;
63303 y = op[1];
63304 op = [0];
63305 continue;
63306
63307 case 7:
63308 op = _.ops.pop();
63309
63310 _.trys.pop();
63311
63312 continue;
63313
63314 default:
63315 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
63316 _ = 0;
63317 continue;
63318 }
63319
63320 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
63321 _.label = op[1];
63322 break;
63323 }
63324
63325 if (op[0] === 6 && _.label < t[1]) {
63326 _.label = t[1];
63327 t = op;
63328 break;
63329 }
63330
63331 if (t && _.label < t[2]) {
63332 _.label = t[2];
63333
63334 _.ops.push(op);
63335
63336 break;
63337 }
63338
63339 if (t[2]) _.ops.pop();
63340
63341 _.trys.pop();
63342
63343 continue;
63344 }
63345
63346 op = body.call(thisArg, _);
63347 } catch (e) {
63348 op = [6, e];
63349 y = 0;
63350 } finally {
63351 f = t = 0;
63352 }
63353 }
63354
63355 if (op[0] & 5) throw op[1];
63356 return {
63357 value: op[0] ? op[1] : void 0,
63358 done: true
63359 };
63360 }
63361};
63362
63363
63364
63365
63366
63367
63368
63369var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AmazonPersonalizeProvider'); // events buffer
63370
63371var FLUSH_SIZE = 5;
63372var FLUSH_SIZE_THRESHHOLD = 10;
63373var FLUSH_INTERVAL = 5 * 1000; // 5s
63374
63375var IDENTIFY_EVENT = 'Identify';
63376
63377var AmazonPersonalizeProvider = function () {
63378 function AmazonPersonalizeProvider(config) {
63379 this._buffer = [];
63380 this._config = config ? config : {};
63381 this._config.flushSize = this._config.flushSize > 0 && this._config.flushSize <= FLUSH_SIZE_THRESHHOLD ? this._config.flushSize : FLUSH_SIZE;
63382 this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL;
63383 this._sessionManager = new _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__["SessionInfoManager"]();
63384
63385 if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(this._config.trackingId)) {
63386 this._sessionInfo = this._sessionManager.retrieveSessionInfo(this._config.trackingId);
63387 }
63388
63389 this._isBrowser = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser; // flush event buffer
63390
63391 this._setupTimer();
63392 }
63393
63394 AmazonPersonalizeProvider.prototype._setupTimer = function () {
63395 if (this._timer) {
63396 clearInterval(this._timer);
63397 }
63398
63399 var flushInterval = this._config.flushInterval;
63400 var that = this;
63401 this._timer = setInterval(function () {
63402 that._sendFromBuffer();
63403 }, flushInterval);
63404 };
63405 /**
63406 * Record event
63407 * @param eventType - type of the event action. e.g. "Click"
63408 * @param properties - properties of the event
63409 * @return Promise
63410 */
63411
63412
63413 AmazonPersonalizeProvider.prototype.record = function (params) {
63414 return __awaiter(this, void 0, void 0, function () {
63415 var credentials, _a, eventType, properties, requestParams, isLoaded;
63416
63417 return __generator(this, function (_b) {
63418 switch (_b.label) {
63419 case 0:
63420 return [4
63421 /*yield*/
63422 , this._getCredentials()];
63423
63424 case 1:
63425 credentials = _b.sent();
63426 if (!credentials) return [2
63427 /*return*/
63428 , Promise.resolve(false)];
63429 Object.assign(params, {
63430 config: this._config,
63431 credentials: credentials,
63432 sentAt: new Date()
63433 });
63434 _a = params.event, eventType = _a.eventType, properties = _a.properties;
63435
63436 if (eventType === IDENTIFY_EVENT) {
63437 this._sessionManager.updateSessionInfo(properties && properties.userId ? properties.userId : '', this._sessionInfo);
63438
63439 return [2
63440 /*return*/
63441 ];
63442 } else if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(params.event.userId)) {
63443 this._sessionManager.updateSessionInfo(params.event.userId, this._sessionInfo);
63444 }
63445
63446 requestParams = this.generateRequestParams(params, this._sessionInfo);
63447 if (!(eventType === 'MediaAutoTrack')) return [3
63448 /*break*/
63449 , 7];
63450 if (!this._isBrowser) return [3
63451 /*break*/
63452 , 5];
63453 if (!!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(lodash_get__WEBPACK_IMPORTED_MODULE_3___default()(requestParams, 'eventData.properties.domElementId', null))) return [3
63454 /*break*/
63455 , 3];
63456 return [4
63457 /*yield*/
63458 , this.isElementFullyLoaded(this.loadElement, requestParams.eventData.properties['domElementId'], 500, 5)];
63459
63460 case 2:
63461 isLoaded = _b.sent();
63462
63463 if (isLoaded) {
63464 new _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__["MediaAutoTrack"](requestParams, this);
63465 } else {
63466 logger.debug('Cannot find the media element.');
63467 }
63468
63469 return [3
63470 /*break*/
63471 , 4];
63472
63473 case 3:
63474 logger.debug("Missing domElementId field in 'properties' for MediaAutoTrack event type.");
63475 _b.label = 4;
63476
63477 case 4:
63478 return [3
63479 /*break*/
63480 , 6];
63481
63482 case 5:
63483 logger.debug('MediaAutoTrack only for browser');
63484 _b.label = 6;
63485
63486 case 6:
63487 return [2
63488 /*return*/
63489 ];
63490
63491 case 7:
63492 return [2
63493 /*return*/
63494 , this.putToBuffer(requestParams)];
63495 }
63496 });
63497 });
63498 };
63499
63500 AmazonPersonalizeProvider.prototype.loadElement = function (domId) {
63501 return new Promise(function (resolve, reject) {
63502 if (document.getElementById(domId) && document.getElementById(domId).clientHeight) {
63503 return resolve(true);
63504 } else {
63505 return reject(true);
63506 }
63507 });
63508 };
63509
63510 AmazonPersonalizeProvider.prototype.isElementFullyLoaded = function (operation, params, delay, times) {
63511 var _this = this;
63512
63513 var wait = function wait(ms) {
63514 return new Promise(function (r) {
63515 return setTimeout(r, ms);
63516 });
63517 };
63518
63519 return new Promise(function (resolve, reject) {
63520 return operation(params).then(resolve)["catch"](function (reason) {
63521 if (times - 1 > 0) {
63522 return wait(delay).then(_this.isElementFullyLoaded.bind(null, operation, params, delay, times - 1)).then(resolve)["catch"](reject);
63523 }
63524
63525 return reject(reason);
63526 });
63527 });
63528 };
63529 /**
63530 * get the category of the plugin
63531 */
63532
63533
63534 AmazonPersonalizeProvider.prototype.getCategory = function () {
63535 return 'Analytics';
63536 };
63537 /**
63538 * get provider name of the plugin
63539 */
63540
63541
63542 AmazonPersonalizeProvider.prototype.getProviderName = function () {
63543 return 'AmazonPersonalize';
63544 };
63545 /**
63546 * configure the plugin
63547 * @param {Object} config - configuration
63548 */
63549
63550
63551 AmazonPersonalizeProvider.prototype.configure = function (config) {
63552 logger.debug('configure Analytics', config);
63553 var conf = config ? config : {};
63554 this._config = Object.assign({}, this._config, conf);
63555
63556 if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(this._config.trackingId)) {
63557 this._sessionInfo = this._sessionManager.retrieveSessionInfo(this._config.trackingId);
63558 }
63559
63560 this._setupTimer();
63561
63562 return this._config;
63563 };
63564 /**
63565 * Generate the requestParams from customer input params and sessionInfo
63566 * @private
63567 * @param eventData - customer input for event data
63568 * @param api - api name
63569 * @return RequestParams - wrapper object with all information required for make request
63570 */
63571
63572
63573 AmazonPersonalizeProvider.prototype.generateRequestParams = function (params, sessionInfo) {
63574 var requestParams = {};
63575 var _a = params.event,
63576 eventType = _a.eventType,
63577 properties = _a.properties;
63578 requestParams.eventData = {
63579 eventType: eventType,
63580 properties: properties
63581 };
63582 requestParams.sessionInfo = sessionInfo;
63583 requestParams.sentAt = params.sentAt;
63584 requestParams.credentials = params.credentials;
63585 requestParams.config = params.config;
63586 return requestParams;
63587 };
63588 /**
63589 * record an event
63590 * @param {Object} params - the params of an event
63591 */
63592
63593
63594 AmazonPersonalizeProvider.prototype._sendEvents = function (group) {
63595 var groupLen = group.length;
63596
63597 if (groupLen === 0) {
63598 logger.debug('events array is empty, directly return');
63599 return;
63600 }
63601
63602 var _a = group[0],
63603 config = _a.config,
63604 credentials = _a.credentials,
63605 sessionInfo = _a.sessionInfo;
63606
63607 var initClients = this._init(config, credentials);
63608
63609 if (!initClients) return false;
63610
63611 if (groupLen > 0) {
63612 var events = [];
63613
63614 for (var i = 0; i < groupLen; i += 1) {
63615 var params = group.shift();
63616
63617 var eventPayload = this._generateSingleRecordPayload(params, sessionInfo);
63618
63619 events.push(eventPayload);
63620 }
63621
63622 var payload_1 = {};
63623 payload_1.trackingId = sessionInfo.trackingId;
63624 payload_1.sessionId = sessionInfo.sessionId;
63625 payload_1.userId = sessionInfo.userId;
63626 payload_1.eventList = [];
63627 events.forEach(function (event) {
63628 // @ts-ignore
63629 payload_1.eventList.push(event);
63630 });
63631 var command = new _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](payload_1);
63632
63633 this._personalize.send(command, function (err) {
63634 if (err) logger.debug('Failed to call putEvents in Personalize', err);else logger.debug('Put events');
63635 });
63636 }
63637 };
63638 /**
63639 * Put event into buffer
63640 * @private
63641 * @param params - params for the event recording
63642 */
63643
63644
63645 AmazonPersonalizeProvider.prototype.putToBuffer = function (params) {
63646 if (this._buffer.length < this._config.flushSize) {
63647 this._buffer.push(params);
63648 } else {
63649 this._buffer.push(params);
63650
63651 this._sendFromBuffer();
63652 }
63653
63654 return Promise.resolve(true);
63655 };
63656 /**
63657 * flush the buffer and batch sending the request
63658 * @private
63659 * @param eventsParams - the buffer for cache the payload
63660 */
63661
63662
63663 AmazonPersonalizeProvider.prototype._sendFromBuffer = function () {
63664 var _this = this;
63665
63666 var size = this._buffer.length;
63667 if (size <= 0) return;
63668 var eventsGroups = [];
63669 var preCred = null;
63670 var group = [];
63671
63672 for (var i = 0; i < size; i += 1) {
63673 var currRequestParams = this._buffer.shift();
63674
63675 var cred = currRequestParams.credentials;
63676 var sessionInfo = currRequestParams.sessionInfo;
63677
63678 if (i === 0) {
63679 group.push(currRequestParams);
63680 preCred = cred;
63681 } else {
63682 if (lodash_isEqual__WEBPACK_IMPORTED_MODULE_5___default()(sessionInfo, this._sessionInfo) && cred.sessionToken === preCred.sessionToken && cred.identityId === preCred.identityId) {
63683 logger.debug('no change for cred, put event in the same group');
63684 group.push(currRequestParams);
63685 } else {
63686 eventsGroups.push(group);
63687 group = [];
63688 group.push(currRequestParams);
63689 preCred = cred;
63690 this._sessionInfo = sessionInfo;
63691 }
63692 }
63693 }
63694
63695 eventsGroups.push(group);
63696 eventsGroups.map(function (group) {
63697 _this._sendEvents(group);
63698 });
63699 };
63700 /**
63701 * Generate the record payload for single event
63702 * @private
63703 * @param params - RequestParams
63704 */
63705
63706
63707 AmazonPersonalizeProvider.prototype._generateSingleRecordPayload = function (params, sessionInfo) {
63708 var eventData = params.eventData,
63709 sentAt = params.sentAt;
63710 var trackPayload = {};
63711 trackPayload.sentAt = sentAt;
63712 trackPayload.properties = eventData.properties && JSON.stringify(eventData.properties);
63713 trackPayload.eventId = this._sessionManager.getTimerKey() + sessionInfo.sessionId;
63714 trackPayload.eventType = eventData.eventType;
63715 return trackPayload;
63716 };
63717 /**
63718 * Initialize the personalize client
63719 * @private
63720 * @param params - RequestParams
63721 */
63722
63723
63724 AmazonPersonalizeProvider.prototype._init = function (config, credentials) {
63725 logger.debug('init clients');
63726
63727 if (this._personalize && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
63728 logger.debug('no change for analytics config, directly return from init');
63729 return true;
63730 }
63731
63732 this._config.credentials = credentials;
63733 var region = config.region;
63734 logger.debug('initialize personalize with credentials', credentials);
63735 this._personalize = new _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEventsClient"]({
63736 region: region,
63737 credentials: credentials,
63738 customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])()
63739 });
63740 return true;
63741 };
63742 /**
63743 * check if current credentials exists
63744 * @private
63745 */
63746
63747
63748 AmazonPersonalizeProvider.prototype._getCredentials = function () {
63749 var that = this;
63750 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get().then(function (credentials) {
63751 if (!credentials) return null;
63752 logger.debug('set credentials for analytics', that._config.credentials);
63753 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials);
63754 })["catch"](function (err) {
63755 logger.debug('ensure credentials error', err);
63756 return null;
63757 });
63758 };
63759
63760 return AmazonPersonalizeProvider;
63761}();
63762
63763
63764/**
63765 * @deprecated use named import
63766 */
63767
63768/* harmony default export */ __webpack_exports__["default"] = (AmazonPersonalizeProvider);
63769
63770/***/ }),
63771
63772/***/ "./lib-esm/Providers/EventBuffer.js":
63773/*!******************************************!*\
63774 !*** ./lib-esm/Providers/EventBuffer.js ***!
63775 \******************************************/
63776/*! exports provided: default */
63777/***/ (function(module, __webpack_exports__, __webpack_require__) {
63778
63779"use strict";
63780__webpack_require__.r(__webpack_exports__);
63781/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
63782/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
63783/* 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");
63784/* harmony import */ var _utils_AppUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/AppUtils */ "./lib-esm/utils/AppUtils.js");
63785var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
63786 function adopt(value) {
63787 return value instanceof P ? value : new P(function (resolve) {
63788 resolve(value);
63789 });
63790 }
63791
63792 return new (P || (P = Promise))(function (resolve, reject) {
63793 function fulfilled(value) {
63794 try {
63795 step(generator.next(value));
63796 } catch (e) {
63797 reject(e);
63798 }
63799 }
63800
63801 function rejected(value) {
63802 try {
63803 step(generator["throw"](value));
63804 } catch (e) {
63805 reject(e);
63806 }
63807 }
63808
63809 function step(result) {
63810 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
63811 }
63812
63813 step((generator = generator.apply(thisArg, _arguments || [])).next());
63814 });
63815};
63816
63817var __generator = undefined && undefined.__generator || function (thisArg, body) {
63818 var _ = {
63819 label: 0,
63820 sent: function sent() {
63821 if (t[0] & 1) throw t[1];
63822 return t[1];
63823 },
63824 trys: [],
63825 ops: []
63826 },
63827 f,
63828 y,
63829 t,
63830 g;
63831 return g = {
63832 next: verb(0),
63833 "throw": verb(1),
63834 "return": verb(2)
63835 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
63836 return this;
63837 }), g;
63838
63839 function verb(n) {
63840 return function (v) {
63841 return step([n, v]);
63842 };
63843 }
63844
63845 function step(op) {
63846 if (f) throw new TypeError("Generator is already executing.");
63847
63848 while (_) {
63849 try {
63850 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;
63851 if (y = 0, t) op = [op[0] & 2, t.value];
63852
63853 switch (op[0]) {
63854 case 0:
63855 case 1:
63856 t = op;
63857 break;
63858
63859 case 4:
63860 _.label++;
63861 return {
63862 value: op[1],
63863 done: false
63864 };
63865
63866 case 5:
63867 _.label++;
63868 y = op[1];
63869 op = [0];
63870 continue;
63871
63872 case 7:
63873 op = _.ops.pop();
63874
63875 _.trys.pop();
63876
63877 continue;
63878
63879 default:
63880 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
63881 _ = 0;
63882 continue;
63883 }
63884
63885 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
63886 _.label = op[1];
63887 break;
63888 }
63889
63890 if (op[0] === 6 && _.label < t[1]) {
63891 _.label = t[1];
63892 t = op;
63893 break;
63894 }
63895
63896 if (t && _.label < t[2]) {
63897 _.label = t[2];
63898
63899 _.ops.push(op);
63900
63901 break;
63902 }
63903
63904 if (t[2]) _.ops.pop();
63905
63906 _.trys.pop();
63907
63908 continue;
63909 }
63910
63911 op = body.call(thisArg, _);
63912 } catch (e) {
63913 op = [6, e];
63914 y = 0;
63915 } finally {
63916 f = t = 0;
63917 }
63918 }
63919
63920 if (op[0] & 5) throw op[1];
63921 return {
63922 value: op[0] ? op[1] : void 0,
63923 done: true
63924 };
63925 }
63926};
63927
63928var __read = undefined && undefined.__read || function (o, n) {
63929 var m = typeof Symbol === "function" && o[Symbol.iterator];
63930 if (!m) return o;
63931 var i = m.call(o),
63932 r,
63933 ar = [],
63934 e;
63935
63936 try {
63937 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
63938 ar.push(r.value);
63939 }
63940 } catch (error) {
63941 e = {
63942 error: error
63943 };
63944 } finally {
63945 try {
63946 if (r && !r.done && (m = i["return"])) m.call(i);
63947 } finally {
63948 if (e) throw e.error;
63949 }
63950 }
63951
63952 return ar;
63953};
63954
63955var __spread = undefined && undefined.__spread || function () {
63956 for (var ar = [], i = 0; i < arguments.length; i++) {
63957 ar = ar.concat(__read(arguments[i]));
63958 }
63959
63960 return ar;
63961};
63962
63963
63964
63965
63966var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('EventsBuffer');
63967var RETRYABLE_CODES = [429, 500];
63968var ACCEPTED_CODES = [202];
63969
63970var EventsBuffer = function () {
63971 function EventsBuffer(client, config) {
63972 this._pause = false;
63973 this._flush = false;
63974 logger.debug('Instantiating buffer with config:', config);
63975 this._buffer = [];
63976 this._client = client;
63977 this._config = config;
63978 this._sendBatch = this._sendBatch.bind(this);
63979
63980 this._startLoop();
63981 }
63982
63983 EventsBuffer.prototype.push = function (event) {
63984 var _a;
63985
63986 if (this._buffer > this._config.bufferSize) {
63987 logger.debug('Exceeded analytics events buffer size');
63988 return event.handlers.reject(new Error('Exceeded the size of analytics events buffer'));
63989 }
63990
63991 var eventId = event.params.event.eventId;
63992 var bufferElement = (_a = {}, _a[eventId] = event, _a);
63993
63994 this._buffer.push(bufferElement);
63995 };
63996
63997 EventsBuffer.prototype.pause = function () {
63998 this._pause = true;
63999 };
64000
64001 EventsBuffer.prototype.resume = function () {
64002 this._pause = false;
64003 };
64004
64005 EventsBuffer.prototype.updateClient = function (client) {
64006 this._client = client;
64007 };
64008
64009 EventsBuffer.prototype.flush = function () {
64010 this._flush = true;
64011 };
64012
64013 EventsBuffer.prototype._startLoop = function () {
64014 if (this._interval) {
64015 clearInterval(this._interval);
64016 }
64017
64018 var flushInterval = this._config.flushInterval;
64019 this._interval = setInterval(this._sendBatch, flushInterval);
64020 };
64021
64022 EventsBuffer.prototype._sendBatch = function () {
64023 var bufferLength = this._buffer.length;
64024
64025 if (this._flush && !bufferLength) {
64026 clearInterval(this._interval);
64027 } // Do not send the batch of events if
64028 // the Buffer is paused or is empty or the App is not in the foreground
64029 // Apps should be in the foreground since
64030 // the OS may restrict access to the network in the background
64031
64032
64033 if (this._pause || !bufferLength || !Object(_utils_AppUtils__WEBPACK_IMPORTED_MODULE_2__["isAppInForeground"])()) {
64034 return;
64035 }
64036
64037 var flushSize = this._config.flushSize;
64038 var batchSize = Math.min(flushSize, bufferLength);
64039
64040 var bufferSubset = this._buffer.splice(0, batchSize);
64041
64042 this._putEvents(bufferSubset);
64043 };
64044
64045 EventsBuffer.prototype._putEvents = function (buffer) {
64046 return __awaiter(this, void 0, void 0, function () {
64047 var eventMap, batchEventParams, command, data, err_1;
64048 return __generator(this, function (_a) {
64049 switch (_a.label) {
64050 case 0:
64051 eventMap = this._bufferToMap(buffer);
64052 batchEventParams = this._generateBatchEventParams(eventMap);
64053 _a.label = 1;
64054
64055 case 1:
64056 _a.trys.push([1, 3,, 4]);
64057
64058 command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](batchEventParams);
64059 return [4
64060 /*yield*/
64061 , this._client.send(command)];
64062
64063 case 2:
64064 data = _a.sent();
64065
64066 this._processPutEventsSuccessResponse(data, eventMap);
64067
64068 return [3
64069 /*break*/
64070 , 4];
64071
64072 case 3:
64073 err_1 = _a.sent();
64074 return [2
64075 /*return*/
64076 , this._handlePutEventsFailure(err_1, eventMap)];
64077
64078 case 4:
64079 return [2
64080 /*return*/
64081 ];
64082 }
64083 });
64084 });
64085 };
64086
64087 EventsBuffer.prototype._generateBatchEventParams = function (eventMap) {
64088 var batchEventParams = {
64089 ApplicationId: '',
64090 EventsRequest: {
64091 BatchItem: {}
64092 }
64093 };
64094 Object.values(eventMap).forEach(function (item) {
64095 var params = item.params;
64096 var event = params.event,
64097 timestamp = params.timestamp,
64098 config = params.config;
64099 var name = event.name,
64100 attributes = event.attributes,
64101 metrics = event.metrics,
64102 eventId = event.eventId,
64103 session = event.session;
64104 var appId = config.appId,
64105 endpointId = config.endpointId;
64106 var batchItem = batchEventParams.EventsRequest.BatchItem;
64107 batchEventParams.ApplicationId = batchEventParams.ApplicationId || appId;
64108
64109 if (!batchItem[endpointId]) {
64110 batchItem[endpointId] = {
64111 Endpoint: {},
64112 Events: {}
64113 };
64114 }
64115
64116 batchItem[endpointId].Events[eventId] = {
64117 EventType: name,
64118 Timestamp: new Date(timestamp).toISOString(),
64119 Attributes: attributes,
64120 Metrics: metrics,
64121 Session: session
64122 };
64123 });
64124 return batchEventParams;
64125 };
64126
64127 EventsBuffer.prototype._handlePutEventsFailure = function (err, eventMap) {
64128 logger.debug('_putEvents Failed: ', err);
64129 var statusCode = err.$metadata && err.$metadata.httpStatusCode;
64130
64131 if (RETRYABLE_CODES.includes(statusCode)) {
64132 var retryableEvents = Object.values(eventMap);
64133
64134 this._retry(retryableEvents);
64135
64136 return;
64137 }
64138 };
64139
64140 EventsBuffer.prototype._processPutEventsSuccessResponse = function (data, eventMap) {
64141 var Results = data.EventsResponse.Results;
64142 var retryableEvents = [];
64143 Object.entries(Results).forEach(function (_a) {
64144 var _b = __read(_a, 2),
64145 endpointId = _b[0],
64146 endpointValues = _b[1];
64147
64148 var responses = endpointValues.EventsItemResponse;
64149 Object.entries(responses).forEach(function (_a) {
64150 var _b, _c;
64151
64152 var _d = __read(_a, 2),
64153 eventId = _d[0],
64154 _e = _d[1],
64155 StatusCode = _e.StatusCode,
64156 Message = _e.Message;
64157
64158 var eventObject = eventMap[eventId]; // manually crafting handlers response to keep API consistant
64159
64160 var response = {
64161 EventsResponse: {
64162 Results: (_b = {}, _b[endpointId] = {
64163 EventsItemResponse: (_c = {}, _c[eventId] = {
64164 StatusCode: StatusCode,
64165 Message: Message
64166 }, _c)
64167 }, _b)
64168 }
64169 };
64170
64171 if (ACCEPTED_CODES.includes(StatusCode)) {
64172 eventObject.handlers.resolve(response);
64173 return;
64174 }
64175
64176 if (RETRYABLE_CODES.includes(StatusCode)) {
64177 retryableEvents.push(eventObject);
64178 return;
64179 }
64180
64181 var name = eventObject.params.event.name;
64182 logger.error("event " + eventId + " : " + name + " failed with error: " + Message);
64183 return eventObject.handlers.reject(response);
64184 });
64185 });
64186
64187 if (retryableEvents.length) {
64188 this._retry(retryableEvents);
64189 }
64190 };
64191
64192 EventsBuffer.prototype._retry = function (retryableEvents) {
64193 var _a; // retryable events that haven't reached the resendLimit
64194
64195
64196 var eligibleEvents = [];
64197 retryableEvents.forEach(function (event) {
64198 var _a;
64199
64200 var params = event.params;
64201 var _b = params.event,
64202 eventId = _b.eventId,
64203 name = _b.name;
64204
64205 if (params.resendLimit-- > 0) {
64206 logger.debug("resending event " + eventId + " : " + name + " with " + params.resendLimit + " retry attempts remaining");
64207 eligibleEvents.push((_a = {}, _a[eventId] = event, _a));
64208 return;
64209 }
64210
64211 logger.debug("no retry attempts remaining for event " + eventId + " : " + name);
64212 }); // add the events to the front of the buffer
64213
64214 (_a = this._buffer).unshift.apply(_a, __spread(eligibleEvents));
64215 }; // convert buffer to map, i.e. { eventId1: { params, handler }, eventId2: { params, handlers } }
64216 // this allows us to easily access the handlers after receiving a batch response
64217
64218
64219 EventsBuffer.prototype._bufferToMap = function (buffer) {
64220 return buffer.reduce(function (acc, curVal) {
64221 var _a = __read(Object.entries(curVal), 1),
64222 _b = __read(_a[0], 2),
64223 key = _b[0],
64224 value = _b[1];
64225
64226 acc[key] = value;
64227 return acc;
64228 }, {});
64229 };
64230
64231 return EventsBuffer;
64232}();
64233
64234/* harmony default export */ __webpack_exports__["default"] = (EventsBuffer);
64235
64236/***/ }),
64237
64238/***/ "./lib-esm/Providers/index.js":
64239/*!************************************!*\
64240 !*** ./lib-esm/Providers/index.js ***!
64241 \************************************/
64242/*! exports provided: AWSPinpointProvider, AWSKinesisProvider, AWSKinesisFirehoseProvider, AmazonPersonalizeProvider */
64243/***/ (function(module, __webpack_exports__, __webpack_require__) {
64244
64245"use strict";
64246__webpack_require__.r(__webpack_exports__);
64247/* harmony import */ var _AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AWSPinpointProvider */ "./lib-esm/Providers/AWSPinpointProvider.js");
64248/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return _AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_0__["AWSPinpointProvider"]; });
64249
64250/* harmony import */ var _AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AWSKinesisProvider */ "./lib-esm/Providers/AWSKinesisProvider.js");
64251/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisProvider", function() { return _AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisProvider"]; });
64252
64253/* harmony import */ var _AWSKinesisFirehoseProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AWSKinesisFirehoseProvider */ "./lib-esm/Providers/AWSKinesisFirehoseProvider.js");
64254/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return _AWSKinesisFirehoseProvider__WEBPACK_IMPORTED_MODULE_2__["AWSKinesisFirehoseProvider"]; });
64255
64256/* harmony import */ var _AmazonPersonalizeProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AmazonPersonalizeProvider */ "./lib-esm/Providers/AmazonPersonalizeProvider.js");
64257/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return _AmazonPersonalizeProvider__WEBPACK_IMPORTED_MODULE_3__["AmazonPersonalizeProvider"]; });
64258
64259
64260
64261
64262
64263
64264/***/ }),
64265
64266/***/ "./lib-esm/index.js":
64267/*!**************************!*\
64268 !*** ./lib-esm/index.js ***!
64269 \**************************/
64270/*! exports provided: default, Analytics, AWSPinpointProvider, AWSKinesisProvider, AWSKinesisFirehoseProvider, AmazonPersonalizeProvider */
64271/***/ (function(module, __webpack_exports__, __webpack_require__) {
64272
64273"use strict";
64274__webpack_require__.r(__webpack_exports__);
64275/* harmony import */ var _Analytics__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Analytics */ "./lib-esm/Analytics.js");
64276/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Analytics", function() { return _Analytics__WEBPACK_IMPORTED_MODULE_0__["Analytics"]; });
64277
64278/* harmony import */ var _Providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers */ "./lib-esm/Providers/index.js");
64279/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSPinpointProvider"]; });
64280
64281/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisProvider"]; });
64282
64283/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisFirehoseProvider"]; });
64284
64285/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AmazonPersonalizeProvider"]; });
64286
64287/*
64288 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
64289 *
64290 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
64291 * the License. A copy of the License is located at
64292 *
64293 * http://aws.amazon.com/apache2.0/
64294 *
64295 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
64296 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
64297 * and limitations under the License.
64298 */
64299
64300/**
64301 * @deprecated use named import
64302 */
64303
64304/* harmony default export */ __webpack_exports__["default"] = (_Analytics__WEBPACK_IMPORTED_MODULE_0__["Analytics"]);
64305
64306
64307
64308/***/ }),
64309
64310/***/ "./lib-esm/trackers/EventTracker.js":
64311/*!******************************************!*\
64312 !*** ./lib-esm/trackers/EventTracker.js ***!
64313 \******************************************/
64314/*! exports provided: EventTracker, default */
64315/***/ (function(module, __webpack_exports__, __webpack_require__) {
64316
64317"use strict";
64318__webpack_require__.r(__webpack_exports__);
64319/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventTracker", function() { return EventTracker; });
64320/* harmony import */ var _vendor_dom_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vendor/dom-utils */ "./lib-esm/vendor/dom-utils/index.js");
64321/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
64322/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
64323/*
64324 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
64325 *
64326 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
64327 * the License. A copy of the License is located at
64328 *
64329 * http://aws.amazon.com/apache2.0/
64330 *
64331 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
64332 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
64333 * and limitations under the License.
64334 */
64335var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
64336 function adopt(value) {
64337 return value instanceof P ? value : new P(function (resolve) {
64338 resolve(value);
64339 });
64340 }
64341
64342 return new (P || (P = Promise))(function (resolve, reject) {
64343 function fulfilled(value) {
64344 try {
64345 step(generator.next(value));
64346 } catch (e) {
64347 reject(e);
64348 }
64349 }
64350
64351 function rejected(value) {
64352 try {
64353 step(generator["throw"](value));
64354 } catch (e) {
64355 reject(e);
64356 }
64357 }
64358
64359 function step(result) {
64360 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
64361 }
64362
64363 step((generator = generator.apply(thisArg, _arguments || [])).next());
64364 });
64365};
64366
64367var __generator = undefined && undefined.__generator || function (thisArg, body) {
64368 var _ = {
64369 label: 0,
64370 sent: function sent() {
64371 if (t[0] & 1) throw t[1];
64372 return t[1];
64373 },
64374 trys: [],
64375 ops: []
64376 },
64377 f,
64378 y,
64379 t,
64380 g;
64381 return g = {
64382 next: verb(0),
64383 "throw": verb(1),
64384 "return": verb(2)
64385 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
64386 return this;
64387 }), g;
64388
64389 function verb(n) {
64390 return function (v) {
64391 return step([n, v]);
64392 };
64393 }
64394
64395 function step(op) {
64396 if (f) throw new TypeError("Generator is already executing.");
64397
64398 while (_) {
64399 try {
64400 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;
64401 if (y = 0, t) op = [op[0] & 2, t.value];
64402
64403 switch (op[0]) {
64404 case 0:
64405 case 1:
64406 t = op;
64407 break;
64408
64409 case 4:
64410 _.label++;
64411 return {
64412 value: op[1],
64413 done: false
64414 };
64415
64416 case 5:
64417 _.label++;
64418 y = op[1];
64419 op = [0];
64420 continue;
64421
64422 case 7:
64423 op = _.ops.pop();
64424
64425 _.trys.pop();
64426
64427 continue;
64428
64429 default:
64430 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
64431 _ = 0;
64432 continue;
64433 }
64434
64435 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
64436 _.label = op[1];
64437 break;
64438 }
64439
64440 if (op[0] === 6 && _.label < t[1]) {
64441 _.label = t[1];
64442 t = op;
64443 break;
64444 }
64445
64446 if (t && _.label < t[2]) {
64447 _.label = t[2];
64448
64449 _.ops.push(op);
64450
64451 break;
64452 }
64453
64454 if (t[2]) _.ops.pop();
64455
64456 _.trys.pop();
64457
64458 continue;
64459 }
64460
64461 op = body.call(thisArg, _);
64462 } catch (e) {
64463 op = [6, e];
64464 y = 0;
64465 } finally {
64466 f = t = 0;
64467 }
64468 }
64469
64470 if (op[0] & 5) throw op[1];
64471 return {
64472 value: op[0] ? op[1] : void 0,
64473 done: true
64474 };
64475 }
64476};
64477
64478
64479
64480var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('EventTracker');
64481var defaultOpts = {
64482 enable: false,
64483 events: ['click'],
64484 selectorPrefix: 'data-amplify-analytics-',
64485 provider: 'AWSPinpoint'
64486};
64487
64488var EventTracker = function () {
64489 function EventTracker(tracker, opts) {
64490 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener) {
64491 logger.debug('not in the supported web environment');
64492 return;
64493 }
64494
64495 this._config = Object.assign({}, defaultOpts, opts);
64496 this._tracker = tracker;
64497 this._delegates = {};
64498 this._trackFunc = this._trackFunc.bind(this);
64499 logger.debug('initialize pageview tracker with opts', this._config);
64500 this.configure(this._config);
64501 }
64502
64503 EventTracker.prototype.configure = function (opts) {
64504 var _this = this;
64505
64506 Object.assign(this._config, opts);
64507
64508 if (!this._config.enable) {
64509 Object.keys(this._delegates).forEach(function (key) {
64510 if (typeof _this._delegates[key].destroy === 'function') _this._delegates[key].destroy();
64511 });
64512 this._delegates = {};
64513 } else if (this._config.enable && Object.keys(this._delegates).length === 0) {
64514 var selector_1 = '[' + this._config.selectorPrefix + 'on]';
64515
64516 this._config.events.forEach(function (evt) {
64517 _this._delegates[evt] = Object(_vendor_dom_utils__WEBPACK_IMPORTED_MODULE_0__["delegate"])(document, evt, selector_1, _this._trackFunc, {
64518 composed: true,
64519 useCapture: true
64520 });
64521 });
64522 }
64523
64524 return this._config;
64525 };
64526
64527 EventTracker.prototype._trackFunc = function (event, element) {
64528 return __awaiter(this, void 0, void 0, function () {
64529 var customAttrs, events, eventName, attrs, defaultAttrs, _a, attributes;
64530
64531 return __generator(this, function (_b) {
64532 switch (_b.label) {
64533 case 0:
64534 customAttrs = {};
64535 events = element.getAttribute(this._config.selectorPrefix + 'on').split(/\s*,\s*/);
64536 eventName = element.getAttribute(this._config.selectorPrefix + 'name');
64537 attrs = element.getAttribute(this._config.selectorPrefix + 'attrs');
64538
64539 if (attrs) {
64540 attrs.split(/\s*,\s*/).forEach(function (attr) {
64541 var tmp = attr.trim().split(/\s*:\s*/);
64542 customAttrs[tmp[0]] = tmp[1];
64543 });
64544 }
64545
64546 if (!(typeof this._config.attributes === 'function')) return [3
64547 /*break*/
64548 , 2];
64549 return [4
64550 /*yield*/
64551 , this._config.attributes()];
64552
64553 case 1:
64554 _a = _b.sent();
64555 return [3
64556 /*break*/
64557 , 3];
64558
64559 case 2:
64560 _a = this._config.attributes;
64561 _b.label = 3;
64562
64563 case 3:
64564 defaultAttrs = _a;
64565 attributes = Object.assign({
64566 type: event.type,
64567 target: event.target.localName + " with id " + event.target.id
64568 }, defaultAttrs, customAttrs);
64569 logger.debug('events needed to be recorded', events);
64570 logger.debug('attributes needed to be attached', customAttrs);
64571
64572 if (events.indexOf(event.type) < 0) {
64573 logger.debug("event " + event.type + " is not selected to be recorded");
64574 return [2
64575 /*return*/
64576 ];
64577 }
64578
64579 this._tracker({
64580 name: eventName || 'event',
64581 attributes: attributes
64582 }, this._config.provider)["catch"](function (e) {
64583 logger.debug("Failed to record the " + event.type + " event', " + e);
64584 });
64585
64586 return [2
64587 /*return*/
64588 ];
64589 }
64590 });
64591 });
64592 };
64593
64594 return EventTracker;
64595}();
64596
64597
64598/**
64599 * @deprecated use named import
64600 */
64601
64602/* harmony default export */ __webpack_exports__["default"] = (EventTracker);
64603
64604/***/ }),
64605
64606/***/ "./lib-esm/trackers/PageViewTracker.js":
64607/*!*********************************************!*\
64608 !*** ./lib-esm/trackers/PageViewTracker.js ***!
64609 \*********************************************/
64610/*! exports provided: PageViewTracker, default */
64611/***/ (function(module, __webpack_exports__, __webpack_require__) {
64612
64613"use strict";
64614__webpack_require__.r(__webpack_exports__);
64615/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageViewTracker", function() { return PageViewTracker; });
64616/* harmony import */ var _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/MethodEmbed */ "./lib-esm/utils/MethodEmbed.js");
64617/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
64618/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
64619/*
64620 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
64621 *
64622 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
64623 * the License. A copy of the License is located at
64624 *
64625 * http://aws.amazon.com/apache2.0/
64626 *
64627 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
64628 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
64629 * and limitations under the License.
64630 */
64631var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
64632 function adopt(value) {
64633 return value instanceof P ? value : new P(function (resolve) {
64634 resolve(value);
64635 });
64636 }
64637
64638 return new (P || (P = Promise))(function (resolve, reject) {
64639 function fulfilled(value) {
64640 try {
64641 step(generator.next(value));
64642 } catch (e) {
64643 reject(e);
64644 }
64645 }
64646
64647 function rejected(value) {
64648 try {
64649 step(generator["throw"](value));
64650 } catch (e) {
64651 reject(e);
64652 }
64653 }
64654
64655 function step(result) {
64656 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
64657 }
64658
64659 step((generator = generator.apply(thisArg, _arguments || [])).next());
64660 });
64661};
64662
64663var __generator = undefined && undefined.__generator || function (thisArg, body) {
64664 var _ = {
64665 label: 0,
64666 sent: function sent() {
64667 if (t[0] & 1) throw t[1];
64668 return t[1];
64669 },
64670 trys: [],
64671 ops: []
64672 },
64673 f,
64674 y,
64675 t,
64676 g;
64677 return g = {
64678 next: verb(0),
64679 "throw": verb(1),
64680 "return": verb(2)
64681 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
64682 return this;
64683 }), g;
64684
64685 function verb(n) {
64686 return function (v) {
64687 return step([n, v]);
64688 };
64689 }
64690
64691 function step(op) {
64692 if (f) throw new TypeError("Generator is already executing.");
64693
64694 while (_) {
64695 try {
64696 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;
64697 if (y = 0, t) op = [op[0] & 2, t.value];
64698
64699 switch (op[0]) {
64700 case 0:
64701 case 1:
64702 t = op;
64703 break;
64704
64705 case 4:
64706 _.label++;
64707 return {
64708 value: op[1],
64709 done: false
64710 };
64711
64712 case 5:
64713 _.label++;
64714 y = op[1];
64715 op = [0];
64716 continue;
64717
64718 case 7:
64719 op = _.ops.pop();
64720
64721 _.trys.pop();
64722
64723 continue;
64724
64725 default:
64726 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
64727 _ = 0;
64728 continue;
64729 }
64730
64731 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
64732 _.label = op[1];
64733 break;
64734 }
64735
64736 if (op[0] === 6 && _.label < t[1]) {
64737 _.label = t[1];
64738 t = op;
64739 break;
64740 }
64741
64742 if (t && _.label < t[2]) {
64743 _.label = t[2];
64744
64745 _.ops.push(op);
64746
64747 break;
64748 }
64749
64750 if (t[2]) _.ops.pop();
64751
64752 _.trys.pop();
64753
64754 continue;
64755 }
64756
64757 op = body.call(thisArg, _);
64758 } catch (e) {
64759 op = [6, e];
64760 y = 0;
64761 } finally {
64762 f = t = 0;
64763 }
64764 }
64765
64766 if (op[0] & 5) throw op[1];
64767 return {
64768 value: op[0] ? op[1] : void 0,
64769 done: true
64770 };
64771 }
64772};
64773
64774
64775
64776var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('PageViewTracker');
64777var PREV_URL_KEY = 'aws-amplify-analytics-prevUrl';
64778
64779var getUrl = function getUrl() {
64780 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser) return '';else return window.location.origin + window.location.pathname;
64781};
64782
64783var defaultOpts = {
64784 enable: false,
64785 provider: 'AWSPinpoint',
64786 getUrl: getUrl
64787};
64788
64789var PageViewTracker = function () {
64790 function PageViewTracker(tracker, opts) {
64791 logger.debug('initialize pageview tracker with opts', opts);
64792 this._config = Object.assign({}, defaultOpts, opts);
64793 this._tracker = tracker;
64794 this._hasEnabled = false;
64795 this._trackFunc = this._trackFunc.bind(this);
64796
64797 if (this._config.type === 'SPA') {
64798 this._pageViewTrackSPA();
64799 } else {
64800 this._pageViewTrackDefault();
64801 }
64802 }
64803
64804 PageViewTracker.prototype.configure = function (opts) {
64805 Object.assign(this._config, opts); // if spa, need to remove those listeners if disabled
64806
64807 if (this._config.type === 'SPA') {
64808 this._pageViewTrackSPA();
64809 }
64810
64811 return this._config;
64812 };
64813
64814 PageViewTracker.prototype._isSameUrl = function () {
64815 var prevUrl = sessionStorage.getItem(PREV_URL_KEY);
64816
64817 var curUrl = this._config.getUrl();
64818
64819 if (prevUrl === curUrl) {
64820 logger.debug('the url is same');
64821 return true;
64822 } else return false;
64823 };
64824
64825 PageViewTracker.prototype._pageViewTrackDefault = function () {
64826 return __awaiter(this, void 0, void 0, function () {
64827 var url, customAttrs, _a, attributes;
64828
64829 return __generator(this, function (_b) {
64830 switch (_b.label) {
64831 case 0:
64832 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !window.sessionStorage) {
64833 logger.debug('not in the supported web enviroment');
64834 return [2
64835 /*return*/
64836 ];
64837 }
64838
64839 url = this._config.getUrl();
64840 if (!(typeof this._config.attributes === 'function')) return [3
64841 /*break*/
64842 , 2];
64843 return [4
64844 /*yield*/
64845 , this._config.attributes()];
64846
64847 case 1:
64848 _a = _b.sent();
64849 return [3
64850 /*break*/
64851 , 3];
64852
64853 case 2:
64854 _a = this._config.attributes;
64855 _b.label = 3;
64856
64857 case 3:
64858 customAttrs = _a;
64859 attributes = Object.assign({
64860 url: url
64861 }, customAttrs);
64862
64863 if (this._config.enable && !this._isSameUrl()) {
64864 this._tracker({
64865 name: this._config.eventName || 'pageView',
64866 attributes: attributes
64867 }, this._config.provider)["catch"](function (e) {
64868 logger.debug('Failed to record the page view event', e);
64869 });
64870
64871 sessionStorage.setItem(PREV_URL_KEY, url);
64872 }
64873
64874 return [2
64875 /*return*/
64876 ];
64877 }
64878 });
64879 });
64880 };
64881
64882 PageViewTracker.prototype._trackFunc = function () {
64883 return __awaiter(this, void 0, void 0, function () {
64884 var url, customAttrs, _a, attributes;
64885
64886 return __generator(this, function (_b) {
64887 switch (_b.label) {
64888 case 0:
64889 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !history.pushState || !window.sessionStorage) {
64890 logger.debug('not in the supported web enviroment');
64891 return [2
64892 /*return*/
64893 ];
64894 }
64895
64896 url = this._config.getUrl();
64897 if (!(typeof this._config.attributes === 'function')) return [3
64898 /*break*/
64899 , 2];
64900 return [4
64901 /*yield*/
64902 , this._config.attributes()];
64903
64904 case 1:
64905 _a = _b.sent();
64906 return [3
64907 /*break*/
64908 , 3];
64909
64910 case 2:
64911 _a = this._config.attributes;
64912 _b.label = 3;
64913
64914 case 3:
64915 customAttrs = _a;
64916 attributes = Object.assign({
64917 url: url
64918 }, customAttrs);
64919
64920 if (!this._isSameUrl()) {
64921 this._tracker({
64922 name: this._config.eventName || 'pageView',
64923 attributes: attributes
64924 }, this._config.provider)["catch"](function (e) {
64925 logger.debug('Failed to record the page view event', e);
64926 });
64927
64928 sessionStorage.setItem(PREV_URL_KEY, url);
64929 }
64930
64931 return [2
64932 /*return*/
64933 ];
64934 }
64935 });
64936 });
64937 };
64938
64939 PageViewTracker.prototype._pageViewTrackSPA = function () {
64940 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !history.pushState) {
64941 logger.debug('not in the supported web enviroment');
64942 return;
64943 }
64944
64945 if (this._config.enable && !this._hasEnabled) {
64946 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].add(history, 'pushState', this._trackFunc);
64947 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].add(history, 'replaceState', this._trackFunc);
64948 window.addEventListener('popstate', this._trackFunc);
64949
64950 this._trackFunc();
64951
64952 this._hasEnabled = true;
64953 } else {
64954 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].remove(history, 'pushState');
64955 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].remove(history, 'replaceState');
64956 window.removeEventListener('popstate', this._trackFunc);
64957 this._hasEnabled = false;
64958 }
64959 };
64960
64961 return PageViewTracker;
64962}();
64963
64964
64965/**
64966 * @deprecated use named import
64967 */
64968
64969/* harmony default export */ __webpack_exports__["default"] = (PageViewTracker);
64970
64971/***/ }),
64972
64973/***/ "./lib-esm/trackers/SessionTracker.js":
64974/*!********************************************!*\
64975 !*** ./lib-esm/trackers/SessionTracker.js ***!
64976 \********************************************/
64977/*! exports provided: SessionTracker, default */
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__, "SessionTracker", function() { return SessionTracker; });
64983/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
64984/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
64985/*
64986 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
64987 *
64988 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
64989 * the License. A copy of the License is located at
64990 *
64991 * http://aws.amazon.com/apache2.0/
64992 *
64993 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
64994 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
64995 * and limitations under the License.
64996 */
64997var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
64998 function adopt(value) {
64999 return value instanceof P ? value : new P(function (resolve) {
65000 resolve(value);
65001 });
65002 }
65003
65004 return new (P || (P = Promise))(function (resolve, reject) {
65005 function fulfilled(value) {
65006 try {
65007 step(generator.next(value));
65008 } catch (e) {
65009 reject(e);
65010 }
65011 }
65012
65013 function rejected(value) {
65014 try {
65015 step(generator["throw"](value));
65016 } catch (e) {
65017 reject(e);
65018 }
65019 }
65020
65021 function step(result) {
65022 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
65023 }
65024
65025 step((generator = generator.apply(thisArg, _arguments || [])).next());
65026 });
65027};
65028
65029var __generator = undefined && undefined.__generator || function (thisArg, body) {
65030 var _ = {
65031 label: 0,
65032 sent: function sent() {
65033 if (t[0] & 1) throw t[1];
65034 return t[1];
65035 },
65036 trys: [],
65037 ops: []
65038 },
65039 f,
65040 y,
65041 t,
65042 g;
65043 return g = {
65044 next: verb(0),
65045 "throw": verb(1),
65046 "return": verb(2)
65047 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
65048 return this;
65049 }), g;
65050
65051 function verb(n) {
65052 return function (v) {
65053 return step([n, v]);
65054 };
65055 }
65056
65057 function step(op) {
65058 if (f) throw new TypeError("Generator is already executing.");
65059
65060 while (_) {
65061 try {
65062 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;
65063 if (y = 0, t) op = [op[0] & 2, t.value];
65064
65065 switch (op[0]) {
65066 case 0:
65067 case 1:
65068 t = op;
65069 break;
65070
65071 case 4:
65072 _.label++;
65073 return {
65074 value: op[1],
65075 done: false
65076 };
65077
65078 case 5:
65079 _.label++;
65080 y = op[1];
65081 op = [0];
65082 continue;
65083
65084 case 7:
65085 op = _.ops.pop();
65086
65087 _.trys.pop();
65088
65089 continue;
65090
65091 default:
65092 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
65093 _ = 0;
65094 continue;
65095 }
65096
65097 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
65098 _.label = op[1];
65099 break;
65100 }
65101
65102 if (op[0] === 6 && _.label < t[1]) {
65103 _.label = t[1];
65104 t = op;
65105 break;
65106 }
65107
65108 if (t && _.label < t[2]) {
65109 _.label = t[2];
65110
65111 _.ops.push(op);
65112
65113 break;
65114 }
65115
65116 if (t[2]) _.ops.pop();
65117
65118 _.trys.pop();
65119
65120 continue;
65121 }
65122
65123 op = body.call(thisArg, _);
65124 } catch (e) {
65125 op = [6, e];
65126 y = 0;
65127 } finally {
65128 f = t = 0;
65129 }
65130 }
65131
65132 if (op[0] & 5) throw op[1];
65133 return {
65134 value: op[0] ? op[1] : void 0,
65135 done: true
65136 };
65137 }
65138}; // the session tracker for web
65139
65140
65141
65142var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('SessionTracker');
65143var defaultOpts = {
65144 enable: false,
65145 provider: 'AWSPinpoint'
65146};
65147var initialEventSent = false;
65148
65149var SessionTracker = function () {
65150 function SessionTracker(tracker, opts) {
65151 this._config = Object.assign({}, defaultOpts, opts);
65152 this._tracker = tracker;
65153 this._hasEnabled = false;
65154 this._trackFunc = this._trackFunc.bind(this);
65155 this._trackBeforeUnload = this._trackBeforeUnload.bind(this);
65156 this.configure(this._config);
65157 }
65158
65159 SessionTracker.prototype._envCheck = function () {
65160 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser) {
65161 return false;
65162 }
65163
65164 if (!document || !document.addEventListener) {
65165 logger.debug('not in the supported web environment');
65166 return false;
65167 }
65168
65169 if (typeof document.hidden !== 'undefined') {
65170 this._hidden = 'hidden';
65171 this._visibilityChange = 'visibilitychange';
65172 } else if (typeof document['msHidden'] !== 'undefined') {
65173 this._hidden = 'msHidden';
65174 this._visibilityChange = 'msvisibilitychange';
65175 } else if (typeof document['webkitHidden'] !== 'undefined') {
65176 this._hidden = 'webkitHidden';
65177 this._visibilityChange = 'webkitvisibilitychange';
65178 } else {
65179 logger.debug('not in the supported web environment');
65180 return false;
65181 }
65182
65183 return true;
65184 };
65185
65186 SessionTracker.prototype._trackFunc = function () {
65187 return __awaiter(this, void 0, void 0, function () {
65188 var customAttrs, _a, attributes;
65189
65190 return __generator(this, function (_b) {
65191 switch (_b.label) {
65192 case 0:
65193 if (!(typeof this._config.attributes === 'function')) return [3
65194 /*break*/
65195 , 2];
65196 return [4
65197 /*yield*/
65198 , this._config.attributes()];
65199
65200 case 1:
65201 _a = _b.sent();
65202 return [3
65203 /*break*/
65204 , 3];
65205
65206 case 2:
65207 _a = this._config.attributes;
65208 _b.label = 3;
65209
65210 case 3:
65211 customAttrs = _a;
65212 attributes = Object.assign({}, customAttrs);
65213
65214 if (document.visibilityState === this._hidden) {
65215 this._tracker({
65216 name: '_session.stop',
65217 attributes: attributes
65218 }, this._config.provider)["catch"](function (e) {
65219 logger.debug('record session stop event failed.', e);
65220 });
65221 } else {
65222 this._tracker({
65223 name: '_session.start',
65224 attributes: attributes
65225 }, this._config.provider)["catch"](function (e) {
65226 logger.debug('record session start event failed.', e);
65227 });
65228 }
65229
65230 return [2
65231 /*return*/
65232 ];
65233 }
65234 });
65235 });
65236 };
65237
65238 SessionTracker.prototype._trackBeforeUnload = function (event) {
65239 // before unload callback cannot be async => https://github.com/aws-amplify/amplify-js/issues/2088
65240 var _this = this;
65241
65242 var customAttrs = typeof this._config.attributes === 'function' ? Promise.resolve(this._config.attributes()) : Promise.resolve(this._config.attributes);
65243 customAttrs.then(function (custom) {
65244 var attributes = Object.assign({}, custom);
65245
65246 _this._tracker({
65247 name: '_session.stop',
65248 attributes: attributes,
65249 immediate: true
65250 }, _this._config.provider)["catch"](function (e) {
65251 logger.debug('record session stop event failed.', e);
65252 });
65253 });
65254 }; // to keep configure a synchronized function
65255
65256
65257 SessionTracker.prototype._sendInitialEvent = function () {
65258 return __awaiter(this, void 0, void 0, function () {
65259 var customAttrs, _a, attributes;
65260
65261 return __generator(this, function (_b) {
65262 switch (_b.label) {
65263 case 0:
65264 if (initialEventSent) {
65265 logger.debug('the start session has been sent when the page is loaded');
65266 return [2
65267 /*return*/
65268 ];
65269 } else {
65270 initialEventSent = true;
65271 }
65272
65273 if (!(typeof this._config.attributes === 'function')) return [3
65274 /*break*/
65275 , 2];
65276 return [4
65277 /*yield*/
65278 , this._config.attributes()];
65279
65280 case 1:
65281 _a = _b.sent();
65282 return [3
65283 /*break*/
65284 , 3];
65285
65286 case 2:
65287 _a = this._config.attributes;
65288 _b.label = 3;
65289
65290 case 3:
65291 customAttrs = _a;
65292 attributes = Object.assign({}, customAttrs);
65293
65294 this._tracker({
65295 name: '_session.start',
65296 attributes: attributes
65297 }, this._config.provider)["catch"](function (e) {
65298 logger.debug('record session start event failed.', e);
65299 });
65300
65301 return [2
65302 /*return*/
65303 ];
65304 }
65305 });
65306 });
65307 };
65308
65309 SessionTracker.prototype.configure = function (opts) {
65310 if (!this._envCheck()) {
65311 return this._config;
65312 }
65313
65314 Object.assign(this._config, opts);
65315
65316 if (this._config.enable && !this._hasEnabled) {
65317 // send a start session as soon as it's enabled
65318 this._sendInitialEvent(); // listen on events
65319
65320
65321 document.addEventListener(this._visibilityChange, this._trackFunc, false);
65322 window.addEventListener('beforeunload', this._trackBeforeUnload, false);
65323 this._hasEnabled = true;
65324 } else if (!this._config.enable && this._hasEnabled) {
65325 document.removeEventListener(this._visibilityChange, this._trackFunc, false);
65326 window.removeEventListener('beforeunload', this._trackBeforeUnload, false);
65327 this._hasEnabled = false;
65328 }
65329
65330 return this._config;
65331 };
65332
65333 return SessionTracker;
65334}();
65335
65336
65337/**
65338 * @deprecated use named import
65339 */
65340
65341/* harmony default export */ __webpack_exports__["default"] = (SessionTracker);
65342
65343/***/ }),
65344
65345/***/ "./lib-esm/trackers/index.js":
65346/*!***********************************!*\
65347 !*** ./lib-esm/trackers/index.js ***!
65348 \***********************************/
65349/*! exports provided: PageViewTracker, EventTracker, SessionTracker */
65350/***/ (function(module, __webpack_exports__, __webpack_require__) {
65351
65352"use strict";
65353__webpack_require__.r(__webpack_exports__);
65354/* harmony import */ var _PageViewTracker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageViewTracker */ "./lib-esm/trackers/PageViewTracker.js");
65355/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageViewTracker", function() { return _PageViewTracker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
65356
65357/* harmony import */ var _EventTracker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventTracker */ "./lib-esm/trackers/EventTracker.js");
65358/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventTracker", function() { return _EventTracker__WEBPACK_IMPORTED_MODULE_1__["default"]; });
65359
65360/* harmony import */ var _SessionTracker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SessionTracker */ "./lib-esm/trackers/SessionTracker.js");
65361/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionTracker", function() { return _SessionTracker__WEBPACK_IMPORTED_MODULE_2__["default"]; });
65362
65363
65364
65365
65366
65367/***/ }),
65368
65369/***/ "./lib-esm/utils/AppUtils.js":
65370/*!***********************************!*\
65371 !*** ./lib-esm/utils/AppUtils.js ***!
65372 \***********************************/
65373/*! exports provided: isAppInForeground */
65374/***/ (function(module, __webpack_exports__, __webpack_require__) {
65375
65376"use strict";
65377__webpack_require__.r(__webpack_exports__);
65378/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAppInForeground", function() { return isAppInForeground; });
65379var isAppInForeground = function isAppInForeground() {
65380 return true;
65381};
65382
65383
65384
65385/***/ }),
65386
65387/***/ "./lib-esm/utils/MethodEmbed.js":
65388/*!**************************************!*\
65389 !*** ./lib-esm/utils/MethodEmbed.js ***!
65390 \**************************************/
65391/*! exports provided: MethodEmbed, default */
65392/***/ (function(module, __webpack_exports__, __webpack_require__) {
65393
65394"use strict";
65395__webpack_require__.r(__webpack_exports__);
65396/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MethodEmbed", function() { return MethodEmbed; });
65397/*
65398 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
65399 *
65400 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
65401 * the License. A copy of the License is located at
65402 *
65403 * http://aws.amazon.com/apache2.0/
65404 *
65405 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
65406 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
65407 * and limitations under the License.
65408 */
65409var __read = undefined && undefined.__read || function (o, n) {
65410 var m = typeof Symbol === "function" && o[Symbol.iterator];
65411 if (!m) return o;
65412 var i = m.call(o),
65413 r,
65414 ar = [],
65415 e;
65416
65417 try {
65418 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
65419 ar.push(r.value);
65420 }
65421 } catch (error) {
65422 e = {
65423 error: error
65424 };
65425 } finally {
65426 try {
65427 if (r && !r.done && (m = i["return"])) m.call(i);
65428 } finally {
65429 if (e) throw e.error;
65430 }
65431 }
65432
65433 return ar;
65434};
65435
65436var __spread = undefined && undefined.__spread || function () {
65437 for (var ar = [], i = 0; i < arguments.length; i++) {
65438 ar = ar.concat(__read(arguments[i]));
65439 }
65440
65441 return ar;
65442};
65443
65444var lists = [];
65445
65446var MethodEmbed = function () {
65447 function MethodEmbed(context, methodName) {
65448 this.context = context;
65449 this.methodName = methodName;
65450 this._originalMethod = context[methodName].bind(context);
65451 }
65452
65453 MethodEmbed.add = function (context, methodName, methodOverride) {
65454 getInstance(context, methodName).set(methodOverride);
65455 };
65456
65457 MethodEmbed.remove = function (context, methodName) {
65458 getInstance(context, methodName).remove();
65459 };
65460
65461 MethodEmbed.prototype.set = function (methodOverride) {
65462 var _this = this;
65463
65464 this.context[this.methodName] = function () {
65465 var args = [];
65466
65467 for (var _i = 0; _i < arguments.length; _i++) {
65468 args[_i] = arguments[_i];
65469 }
65470
65471 return methodOverride(_this._originalMethod.apply(_this, __spread(args)));
65472 };
65473 };
65474
65475 MethodEmbed.prototype.remove = function () {
65476 this.context[this.methodName] = this._originalMethod;
65477 };
65478
65479 return MethodEmbed;
65480}();
65481
65482
65483
65484function getInstance(context, methodName) {
65485 var instance = lists.filter(function (h) {
65486 return h.context === context && h.methodName === methodName;
65487 })[0];
65488
65489 if (!instance) {
65490 instance = new MethodEmbed(context, methodName);
65491 lists.push(instance);
65492 }
65493
65494 return instance;
65495}
65496/**
65497 * @deprecated use named import
65498 */
65499
65500
65501/* harmony default export */ __webpack_exports__["default"] = (MethodEmbed);
65502
65503/***/ }),
65504
65505/***/ "./lib-esm/vendor/dom-utils/closest.js":
65506/*!*********************************************!*\
65507 !*** ./lib-esm/vendor/dom-utils/closest.js ***!
65508 \*********************************************/
65509/*! exports provided: closest */
65510/***/ (function(module, __webpack_exports__, __webpack_require__) {
65511
65512"use strict";
65513__webpack_require__.r(__webpack_exports__);
65514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return closest; });
65515/* harmony import */ var _matches__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./matches */ "./lib-esm/vendor/dom-utils/matches.js");
65516/* harmony import */ var _parents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parents */ "./lib-esm/vendor/dom-utils/parents.js");
65517/**
65518 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
65519 */
65520
65521
65522/**
65523 * Gets the closest parent element that matches the passed selector.
65524 * @param {Element} element The element whose parents to check.
65525 * @param {string} selector The CSS selector to match against.
65526 * @param {boolean=} shouldCheckSelf True if the selector should test against
65527 * the passed element itself.
65528 * @return {Element|undefined} The matching element or undefined.
65529 */
65530
65531function closest(element, selector, shouldCheckSelf) {
65532 if (shouldCheckSelf === void 0) {
65533 shouldCheckSelf = false;
65534 }
65535
65536 if (!(element && element.nodeType === 1 && selector)) return;
65537 var parentElements = (shouldCheckSelf ? [element] : []).concat(Object(_parents__WEBPACK_IMPORTED_MODULE_1__["parents"])(element));
65538
65539 for (var i = 0, parent_1; parent_1 = parentElements[i]; i++) {
65540 if (Object(_matches__WEBPACK_IMPORTED_MODULE_0__["matches"])(parent_1, selector)) return parent_1;
65541 }
65542}
65543
65544/***/ }),
65545
65546/***/ "./lib-esm/vendor/dom-utils/delegate.js":
65547/*!**********************************************!*\
65548 !*** ./lib-esm/vendor/dom-utils/delegate.js ***!
65549 \**********************************************/
65550/*! exports provided: delegate */
65551/***/ (function(module, __webpack_exports__, __webpack_require__) {
65552
65553"use strict";
65554__webpack_require__.r(__webpack_exports__);
65555/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delegate", function() { return delegate; });
65556/* harmony import */ var _closest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./closest */ "./lib-esm/vendor/dom-utils/closest.js");
65557/* harmony import */ var _matches__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./matches */ "./lib-esm/vendor/dom-utils/matches.js");
65558/**
65559 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
65560 */
65561
65562
65563/**
65564 * Delegates the handling of events for an element matching a selector to an
65565 * ancestor of the matching element.
65566 * @param {!Node} ancestor The ancestor element to add the listener to.
65567 * @param {string} eventType The event type to listen to.
65568 * @param {string} selector A CSS selector to match against child elements.
65569 * @param {!Function} callback A function to run any time the event happens.
65570 * @param {Object=} opts A configuration options object. The available options:
65571 * - useCapture<boolean>: If true, bind to the event capture phase.
65572 * - deep<boolean>: If true, delegate into shadow trees.
65573 * @return {Object} The delegate object. It contains a destroy method.
65574 */
65575
65576function delegate(ancestor, eventType, selector, callback, opts) {
65577 if (opts === void 0) {
65578 opts = {};
65579 } // Defines the event listener.
65580
65581
65582 var listener = function listener(event) {
65583 var delegateTarget; // If opts.composed is true and the event originated from inside a Shadow
65584 // tree, check the composed path nodes.
65585
65586 if (opts['composed'] && typeof event['composedPath'] === 'function') {
65587 var composedPath = event.composedPath();
65588
65589 for (var i = 0, node = void 0; node = composedPath[i]; i++) {
65590 if (node.nodeType === 1 && Object(_matches__WEBPACK_IMPORTED_MODULE_1__["matches"])(node, selector)) {
65591 delegateTarget = node;
65592 }
65593 }
65594 } else {
65595 // Otherwise check the parents.
65596 delegateTarget = Object(_closest__WEBPACK_IMPORTED_MODULE_0__["closest"])(event.target, selector, true);
65597 }
65598
65599 if (delegateTarget) {
65600 callback.call(delegateTarget, event, delegateTarget);
65601 }
65602 };
65603
65604 ancestor.addEventListener(eventType, listener, opts['useCapture']);
65605 return {
65606 destroy: function destroy() {
65607 ancestor.removeEventListener(eventType, listener, opts['useCapture']);
65608 }
65609 };
65610}
65611
65612/***/ }),
65613
65614/***/ "./lib-esm/vendor/dom-utils/dispatch.js":
65615/*!**********************************************!*\
65616 !*** ./lib-esm/vendor/dom-utils/dispatch.js ***!
65617 \**********************************************/
65618/*! exports provided: dispatch */
65619/***/ (function(module, __webpack_exports__, __webpack_require__) {
65620
65621"use strict";
65622__webpack_require__.r(__webpack_exports__);
65623/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; });
65624function _typeof(obj) {
65625 "@babel/helpers - typeof";
65626
65627 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
65628 _typeof = function _typeof(obj) {
65629 return typeof obj;
65630 };
65631 } else {
65632 _typeof = function _typeof(obj) {
65633 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
65634 };
65635 }
65636
65637 return _typeof(obj);
65638}
65639/**
65640 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
65641 */
65642
65643/**
65644 * Dispatches an event on the passed element.
65645 * @param {!Element} element The DOM element to dispatch the event on.
65646 * @param {string} eventType The type of event to dispatch.
65647 * @param {Object|string=} eventName A string name of the event constructor
65648 * to use. Defaults to 'Event' if nothing is passed or 'CustomEvent' if
65649 * a value is set on `initDict.detail`. If eventName is given an object
65650 * it is assumed to be initDict and thus reassigned.
65651 * @param {Object=} initDict The initialization attributes for the
65652 * event. A `detail` property can be used here to pass custom data.
65653 * @return {boolean} The return value of `element.dispatchEvent`, which will
65654 * be false if any of the event listeners called `preventDefault`.
65655 */
65656
65657
65658function dispatch(element, eventType, evtName, init_dict) {
65659 if (evtName === void 0) {
65660 evtName = 'Event';
65661 }
65662
65663 if (init_dict === void 0) {
65664 init_dict = {};
65665 }
65666
65667 var event;
65668 var isCustom;
65669 var initDict = init_dict;
65670 var eventName = evtName; // eventName is optional
65671
65672 if (_typeof(eventName) === 'object') {
65673 initDict = eventName;
65674 eventName = 'Event';
65675 }
65676
65677 initDict['bubbles'] = initDict['bubbles'] || false;
65678 initDict['cancelable'] = initDict['cancelable'] || false;
65679 initDict['composed'] = initDict['composed'] || false; // If a detail property is passed, this is a custom event.
65680
65681 if ('detail' in initDict) isCustom = true;
65682 eventName = isCustom ? 'CustomEvent' : eventName; // Tries to create the event using constructors, if that doesn't work,
65683 // fallback to `document.createEvent()`.
65684
65685 try {
65686 event = new window[eventName](eventType, initDict);
65687 } catch (err) {
65688 event = document.createEvent(eventName);
65689 var initMethod = 'init' + (isCustom ? 'Custom' : '') + 'Event';
65690 event[initMethod](eventType, initDict['bubbles'], initDict['cancelable'], initDict['detail']);
65691 }
65692
65693 return element.dispatchEvent(event);
65694}
65695
65696/***/ }),
65697
65698/***/ "./lib-esm/vendor/dom-utils/get-attributes.js":
65699/*!****************************************************!*\
65700 !*** ./lib-esm/vendor/dom-utils/get-attributes.js ***!
65701 \****************************************************/
65702/*! exports provided: getAttributes */
65703/***/ (function(module, __webpack_exports__, __webpack_require__) {
65704
65705"use strict";
65706__webpack_require__.r(__webpack_exports__);
65707/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAttributes", function() { return getAttributes; });
65708/**
65709 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
65710 */
65711
65712/**
65713 * Gets all attributes of an element as a plain JavaScriot object.
65714 * @param {Element} element The element whose attributes to get.
65715 * @return {!Object} An object whose keys are the attribute keys and whose
65716 * values are the attribute values. If no attributes exist, an empty
65717 * object is returned.
65718 */
65719function getAttributes(element) {
65720 var attrs = {}; // Validate input.
65721
65722 if (!(element && element.nodeType === 1)) return attrs; // Return an empty object if there are no attributes.
65723
65724 var map = element.attributes;
65725 if (map.length === 0) return {};
65726
65727 for (var i = 0, attr = void 0; attr = map[i]; i++) {
65728 attrs[attr.name] = attr.value;
65729 }
65730
65731 return attrs;
65732}
65733
65734/***/ }),
65735
65736/***/ "./lib-esm/vendor/dom-utils/index.js":
65737/*!*******************************************!*\
65738 !*** ./lib-esm/vendor/dom-utils/index.js ***!
65739 \*******************************************/
65740/*! exports provided: closest, delegate, dispatch, getAttributes, matches, parents, parseUrl */
65741/***/ (function(module, __webpack_exports__, __webpack_require__) {
65742
65743"use strict";
65744__webpack_require__.r(__webpack_exports__);
65745/* harmony import */ var _closest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./closest */ "./lib-esm/vendor/dom-utils/closest.js");
65746/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return _closest__WEBPACK_IMPORTED_MODULE_0__["closest"]; });
65747
65748/* harmony import */ var _delegate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./delegate */ "./lib-esm/vendor/dom-utils/delegate.js");
65749/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "delegate", function() { return _delegate__WEBPACK_IMPORTED_MODULE_1__["delegate"]; });
65750
65751/* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dispatch */ "./lib-esm/vendor/dom-utils/dispatch.js");
65752/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return _dispatch__WEBPACK_IMPORTED_MODULE_2__["dispatch"]; });
65753
65754/* harmony import */ var _get_attributes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get-attributes */ "./lib-esm/vendor/dom-utils/get-attributes.js");
65755/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAttributes", function() { return _get_attributes__WEBPACK_IMPORTED_MODULE_3__["getAttributes"]; });
65756
65757/* harmony import */ var _matches__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./matches */ "./lib-esm/vendor/dom-utils/matches.js");
65758/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matches", function() { return _matches__WEBPACK_IMPORTED_MODULE_4__["matches"]; });
65759
65760/* harmony import */ var _parents__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parents */ "./lib-esm/vendor/dom-utils/parents.js");
65761/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parents", function() { return _parents__WEBPACK_IMPORTED_MODULE_5__["parents"]; });
65762
65763/* harmony import */ var _parse_url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./parse-url */ "./lib-esm/vendor/dom-utils/parse-url.js");
65764/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function() { return _parse_url__WEBPACK_IMPORTED_MODULE_6__["parseUrl"]; });
65765
65766
65767
65768
65769
65770
65771
65772
65773
65774/***/ }),
65775
65776/***/ "./lib-esm/vendor/dom-utils/matches.js":
65777/*!*********************************************!*\
65778 !*** ./lib-esm/vendor/dom-utils/matches.js ***!
65779 \*********************************************/
65780/*! exports provided: matches */
65781/***/ (function(module, __webpack_exports__, __webpack_require__) {
65782
65783"use strict";
65784__webpack_require__.r(__webpack_exports__);
65785/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matches", function() { return matches; });
65786/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
65787/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
65788/**
65789 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
65790 */
65791
65792var proto = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser && window['Element'] ? window['Element'].prototype : null;
65793var nativeMatches = proto ? proto.matches || // @ts-ignore
65794proto.matchesSelector || // @ts-ignore
65795proto.webkitMatchesSelector || // @ts-ignore
65796proto.mozMatchesSelector || // @ts-ignore
65797proto.msMatchesSelector || // @ts-ignore
65798proto.oMatchesSelector : null;
65799/**
65800 * Tests if a DOM elements matches any of the test DOM elements or selectors.
65801 * @param {Element} element The DOM element to test.
65802 * @param {Element|string|Array<Element|string>} test A DOM element, a CSS
65803 * selector, or an array of DOM elements or CSS selectors to match against.
65804 * @return {boolean} True of any part of the test matches.
65805 */
65806
65807function matches(element, test) {
65808 // Validate input.
65809 if (element && element.nodeType === 1 && test) {
65810 // if test is a string or DOM element test it.
65811 if (typeof test === 'string' || test.nodeType === 1) {
65812 return element === test || matchesSelector(element,
65813 /** @type {string} */
65814 test);
65815 } else if ('length' in test) {
65816 // if it has a length property iterate over the items
65817 // and return true if any match.
65818 for (var i = 0, item = void 0; item = test[i]; i++) {
65819 if (element === item || matchesSelector(element, item)) return true;
65820 }
65821 }
65822 } // Still here? Return false
65823
65824
65825 return false;
65826}
65827/**
65828 * Tests whether a DOM element matches a selector. This polyfills the native
65829 * Element.prototype.matches method across browsers.
65830 * @param {!Element} element The DOM element to test.
65831 * @param {string} selector The CSS selector to test element against.
65832 * @return {boolean} True if the selector matches.
65833 */
65834
65835function matchesSelector(element, selector) {
65836 if (typeof selector !== 'string') return false;
65837 if (nativeMatches) return nativeMatches.call(element, selector);
65838 var nodes = element.parentNode.querySelectorAll(selector);
65839
65840 for (var i = 0, node = void 0; node = nodes[i]; i++) {
65841 if (node === element) return true;
65842 }
65843
65844 return false;
65845}
65846
65847/***/ }),
65848
65849/***/ "./lib-esm/vendor/dom-utils/parents.js":
65850/*!*********************************************!*\
65851 !*** ./lib-esm/vendor/dom-utils/parents.js ***!
65852 \*********************************************/
65853/*! exports provided: parents */
65854/***/ (function(module, __webpack_exports__, __webpack_require__) {
65855
65856"use strict";
65857__webpack_require__.r(__webpack_exports__);
65858/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parents", function() { return parents; });
65859/**
65860 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
65861 */
65862
65863/**
65864 * Returns an array of a DOM element's parent elements.
65865 * @param {!Element} element The DOM element whose parents to get.
65866 * @return {!Array} An array of all parent elemets, or an empty array if no
65867 * parent elements are found.
65868 */
65869function parents(ele) {
65870 var list = [];
65871 var element = ele;
65872
65873 while (element && element.parentNode && element.parentNode.nodeType === 1) {
65874 element =
65875 /** @type {!Element} */
65876 element.parentNode;
65877 list.push(element);
65878 }
65879
65880 return list;
65881}
65882
65883/***/ }),
65884
65885/***/ "./lib-esm/vendor/dom-utils/parse-url.js":
65886/*!***********************************************!*\
65887 !*** ./lib-esm/vendor/dom-utils/parse-url.js ***!
65888 \***********************************************/
65889/*! exports provided: parseUrl */
65890/***/ (function(module, __webpack_exports__, __webpack_require__) {
65891
65892"use strict";
65893__webpack_require__.r(__webpack_exports__);
65894/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function() { return parseUrl; });
65895/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
65896/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
65897/**
65898 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
65899 */
65900
65901var HTTP_PORT = '80';
65902var HTTPS_PORT = '443';
65903var DEFAULT_PORT = RegExp(':(' + HTTP_PORT + '|' + HTTPS_PORT + ')$');
65904var a = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser ? document.createElement('a') : null;
65905var cache = {};
65906/**
65907 * Parses the given url and returns an object mimicing a `Location` object.
65908 * @param {string} url The url to parse.
65909 * @return {!Object} An object with the same properties as a `Location`.
65910 */
65911
65912function parseUrl(u) {
65913 var url = u; // All falsy values (as well as ".") should map to the current URL.
65914
65915 url = !url || url === '.' ? location.href : url;
65916 if (cache[url]) return cache[url];
65917 a.href = url; // When parsing file relative paths (e.g. `../index.html`), IE will correctly
65918 // resolve the `href` property but will keep the `..` in the `path` property.
65919 // It will also not include the `host` or `hostname` properties. Furthermore,
65920 // IE will sometimes return no protocol or just a colon, especially for things
65921 // like relative protocol URLs (e.g. "//google.com").
65922 // To workaround all of these issues, we reparse with the full URL from the
65923 // `href` property.
65924
65925 if (url.charAt(0) === '.' || url.charAt(0) === '/') return parseUrl(a.href); // Don't include default ports.
65926
65927 var port = a.port === HTTP_PORT || a.port === HTTPS_PORT ? '' : a.port; // PhantomJS sets the port to "0" when using the file: protocol.
65928
65929 port = port === '0' ? '' : port; // Sometimes IE incorrectly includes a port for default ports
65930 // (e.g. `:80` or `:443`) even when no port is specified in the URL.
65931 // http://bit.ly/1rQNoMg
65932
65933 var host = a.host.replace(DEFAULT_PORT, ''); // Not all browser support `origin` so we have to build it.
65934
65935 var origin = a['origin'] ? a['origin'] : a.protocol + '//' + host; // Sometimes IE doesn't include the leading slash for pathname.
65936 // http://bit.ly/1rQNoMg
65937
65938 var pathname = a.pathname.charAt(0) === '/' ? a.pathname : '/' + a.pathname;
65939 return cache[url] = {
65940 hash: a.hash,
65941 host: host,
65942 hostname: a.hostname,
65943 href: a.href,
65944 origin: origin,
65945 pathname: pathname,
65946 port: port,
65947 protocol: a.protocol,
65948 search: a.search
65949 };
65950}
65951
65952/***/ }),
65953
65954/***/ "@aws-amplify/cache":
65955/*!*************************************!*\
65956 !*** external "@aws-amplify/cache" ***!
65957 \*************************************/
65958/*! no static exports found */
65959/***/ (function(module, exports) {
65960
65961module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_cache__;
65962
65963/***/ }),
65964
65965/***/ "@aws-amplify/core":
65966/*!************************************!*\
65967 !*** external "@aws-amplify/core" ***!
65968 \************************************/
65969/*! no static exports found */
65970/***/ (function(module, exports) {
65971
65972module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__;
65973
65974/***/ })
65975
65976/******/ });
65977});
65978//# sourceMappingURL=aws-amplify-analytics.js.map
\No newline at end of file