@aws-sdk/client-support 3.490.0 → 3.496.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist-cjs/Support.js +1 -43
  2. package/dist-cjs/SupportClient.js +1 -43
  3. package/dist-cjs/commands/AddAttachmentsToSetCommand.js +1 -28
  4. package/dist-cjs/commands/AddCommunicationToCaseCommand.js +1 -28
  5. package/dist-cjs/commands/CreateCaseCommand.js +1 -28
  6. package/dist-cjs/commands/DescribeAttachmentCommand.js +1 -28
  7. package/dist-cjs/commands/DescribeCasesCommand.js +1 -28
  8. package/dist-cjs/commands/DescribeCommunicationsCommand.js +1 -28
  9. package/dist-cjs/commands/DescribeCreateCaseOptionsCommand.js +1 -28
  10. package/dist-cjs/commands/DescribeServicesCommand.js +1 -28
  11. package/dist-cjs/commands/DescribeSeverityLevelsCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeSupportedLanguagesCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeTrustedAdvisorCheckResultCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeTrustedAdvisorChecksCommand.js +1 -28
  17. package/dist-cjs/commands/RefreshTrustedAdvisorCheckCommand.js +1 -28
  18. package/dist-cjs/commands/ResolveCaseCommand.js +1 -28
  19. package/dist-cjs/commands/index.js +1 -19
  20. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  21. package/dist-cjs/extensionConfiguration.js +1 -2
  22. package/dist-cjs/index.js +1649 -11
  23. package/dist-cjs/models/SupportServiceException.js +1 -12
  24. package/dist-cjs/models/index.js +1 -4
  25. package/dist-cjs/models/models_0.js +1 -134
  26. package/dist-cjs/pagination/DescribeCasesPaginator.js +1 -7
  27. package/dist-cjs/pagination/DescribeCommunicationsPaginator.js +1 -7
  28. package/dist-cjs/pagination/Interfaces.js +1 -2
  29. package/dist-cjs/pagination/index.js +1 -6
  30. package/dist-cjs/protocols/Aws_json1_1.js +1 -1012
  31. package/dist-cjs/runtimeExtensions.js +1 -22
  32. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1650 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SupportServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./SupportClient"), exports);
6
- tslib_1.__exportStar(require("./Support"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var SupportServiceException_1 = require("./models/SupportServiceException");
12
- Object.defineProperty(exports, "SupportServiceException", { enumerable: true, get: function () { return SupportServiceException_1.SupportServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AddAttachmentsToSetCommand: () => AddAttachmentsToSetCommand,
25
+ AddCommunicationToCaseCommand: () => AddCommunicationToCaseCommand,
26
+ AttachmentIdNotFound: () => AttachmentIdNotFound,
27
+ AttachmentLimitExceeded: () => AttachmentLimitExceeded,
28
+ AttachmentSetExpired: () => AttachmentSetExpired,
29
+ AttachmentSetIdNotFound: () => AttachmentSetIdNotFound,
30
+ AttachmentSetSizeLimitExceeded: () => AttachmentSetSizeLimitExceeded,
31
+ CaseCreationLimitExceeded: () => CaseCreationLimitExceeded,
32
+ CaseIdNotFound: () => CaseIdNotFound,
33
+ CreateCaseCommand: () => CreateCaseCommand,
34
+ DescribeAttachmentCommand: () => DescribeAttachmentCommand,
35
+ DescribeAttachmentLimitExceeded: () => DescribeAttachmentLimitExceeded,
36
+ DescribeCasesCommand: () => DescribeCasesCommand,
37
+ DescribeCommunicationsCommand: () => DescribeCommunicationsCommand,
38
+ DescribeCreateCaseOptionsCommand: () => DescribeCreateCaseOptionsCommand,
39
+ DescribeServicesCommand: () => DescribeServicesCommand,
40
+ DescribeSeverityLevelsCommand: () => DescribeSeverityLevelsCommand,
41
+ DescribeSupportedLanguagesCommand: () => DescribeSupportedLanguagesCommand,
42
+ DescribeTrustedAdvisorCheckRefreshStatusesCommand: () => DescribeTrustedAdvisorCheckRefreshStatusesCommand,
43
+ DescribeTrustedAdvisorCheckResultCommand: () => DescribeTrustedAdvisorCheckResultCommand,
44
+ DescribeTrustedAdvisorCheckSummariesCommand: () => DescribeTrustedAdvisorCheckSummariesCommand,
45
+ DescribeTrustedAdvisorChecksCommand: () => DescribeTrustedAdvisorChecksCommand,
46
+ InternalServerError: () => InternalServerError,
47
+ RefreshTrustedAdvisorCheckCommand: () => RefreshTrustedAdvisorCheckCommand,
48
+ ResolveCaseCommand: () => ResolveCaseCommand,
49
+ Support: () => Support,
50
+ SupportClient: () => SupportClient,
51
+ SupportServiceException: () => SupportServiceException,
52
+ ThrottlingException: () => ThrottlingException,
53
+ __Client: () => import_smithy_client.Client,
54
+ paginateDescribeCases: () => paginateDescribeCases,
55
+ paginateDescribeCommunications: () => paginateDescribeCommunications
56
+ });
57
+ module.exports = __toCommonJS(src_exports);
58
+
59
+ // src/SupportClient.ts
60
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
61
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
62
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
63
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
64
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
65
+ var import_config_resolver = require("@smithy/config-resolver");
66
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
67
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
68
+ var import_middleware_retry = require("@smithy/middleware-retry");
69
+
70
+
71
+ // src/endpoint/EndpointParameters.ts
72
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
73
+ return {
74
+ ...options,
75
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
76
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
77
+ defaultSigningName: "support"
78
+ };
79
+ }, "resolveClientEndpointParameters");
80
+ var commonParams = {
81
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
82
+ Endpoint: { type: "builtInParams", name: "endpoint" },
83
+ Region: { type: "builtInParams", name: "region" },
84
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
85
+ };
86
+
87
+ // src/SupportClient.ts
88
+ var import_runtimeConfig = require("././runtimeConfig");
89
+
90
+ // src/runtimeExtensions.ts
91
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
92
+ var import_protocol_http = require("@smithy/protocol-http");
93
+ var import_smithy_client = require("@smithy/smithy-client");
94
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
95
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
96
+ const extensionConfiguration = {
97
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
98
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
99
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
100
+ };
101
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
102
+ return {
103
+ ...runtimeConfig,
104
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
105
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
106
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
107
+ };
108
+ }, "resolveRuntimeExtensions");
109
+
110
+ // src/SupportClient.ts
111
+ var _SupportClient = class _SupportClient extends import_smithy_client.Client {
112
+ constructor(...[configuration]) {
113
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
114
+ const _config_1 = resolveClientEndpointParameters(_config_0);
115
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
116
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
117
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
118
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
119
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
120
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
121
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
122
+ super(_config_8);
123
+ this.config = _config_8;
124
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
125
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
126
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
127
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
128
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
129
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
130
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
131
+ }
132
+ /**
133
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
134
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
135
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
136
+ */
137
+ destroy() {
138
+ super.destroy();
139
+ }
140
+ };
141
+ __name(_SupportClient, "SupportClient");
142
+ var SupportClient = _SupportClient;
143
+
144
+ // src/Support.ts
145
+
146
+
147
+ // src/commands/AddAttachmentsToSetCommand.ts
148
+
149
+ var import_middleware_serde = require("@smithy/middleware-serde");
150
+
151
+ var import_types = require("@smithy/types");
152
+
153
+ // src/protocols/Aws_json1_1.ts
154
+
155
+
156
+
157
+ // src/models/SupportServiceException.ts
158
+
159
+ var _SupportServiceException = class _SupportServiceException extends import_smithy_client.ServiceException {
160
+ /**
161
+ * @internal
162
+ */
163
+ constructor(options) {
164
+ super(options);
165
+ Object.setPrototypeOf(this, _SupportServiceException.prototype);
166
+ }
167
+ };
168
+ __name(_SupportServiceException, "SupportServiceException");
169
+ var SupportServiceException = _SupportServiceException;
170
+
171
+ // src/models/models_0.ts
172
+ var _AttachmentLimitExceeded = class _AttachmentLimitExceeded extends SupportServiceException {
173
+ /**
174
+ * @internal
175
+ */
176
+ constructor(opts) {
177
+ super({
178
+ name: "AttachmentLimitExceeded",
179
+ $fault: "client",
180
+ ...opts
181
+ });
182
+ this.name = "AttachmentLimitExceeded";
183
+ this.$fault = "client";
184
+ Object.setPrototypeOf(this, _AttachmentLimitExceeded.prototype);
185
+ }
186
+ };
187
+ __name(_AttachmentLimitExceeded, "AttachmentLimitExceeded");
188
+ var AttachmentLimitExceeded = _AttachmentLimitExceeded;
189
+ var _AttachmentSetExpired = class _AttachmentSetExpired extends SupportServiceException {
190
+ /**
191
+ * @internal
192
+ */
193
+ constructor(opts) {
194
+ super({
195
+ name: "AttachmentSetExpired",
196
+ $fault: "client",
197
+ ...opts
198
+ });
199
+ this.name = "AttachmentSetExpired";
200
+ this.$fault = "client";
201
+ Object.setPrototypeOf(this, _AttachmentSetExpired.prototype);
202
+ }
203
+ };
204
+ __name(_AttachmentSetExpired, "AttachmentSetExpired");
205
+ var AttachmentSetExpired = _AttachmentSetExpired;
206
+ var _AttachmentSetIdNotFound = class _AttachmentSetIdNotFound extends SupportServiceException {
207
+ /**
208
+ * @internal
209
+ */
210
+ constructor(opts) {
211
+ super({
212
+ name: "AttachmentSetIdNotFound",
213
+ $fault: "client",
214
+ ...opts
215
+ });
216
+ this.name = "AttachmentSetIdNotFound";
217
+ this.$fault = "client";
218
+ Object.setPrototypeOf(this, _AttachmentSetIdNotFound.prototype);
219
+ }
220
+ };
221
+ __name(_AttachmentSetIdNotFound, "AttachmentSetIdNotFound");
222
+ var AttachmentSetIdNotFound = _AttachmentSetIdNotFound;
223
+ var _AttachmentSetSizeLimitExceeded = class _AttachmentSetSizeLimitExceeded extends SupportServiceException {
224
+ /**
225
+ * @internal
226
+ */
227
+ constructor(opts) {
228
+ super({
229
+ name: "AttachmentSetSizeLimitExceeded",
230
+ $fault: "client",
231
+ ...opts
232
+ });
233
+ this.name = "AttachmentSetSizeLimitExceeded";
234
+ this.$fault = "client";
235
+ Object.setPrototypeOf(this, _AttachmentSetSizeLimitExceeded.prototype);
236
+ }
237
+ };
238
+ __name(_AttachmentSetSizeLimitExceeded, "AttachmentSetSizeLimitExceeded");
239
+ var AttachmentSetSizeLimitExceeded = _AttachmentSetSizeLimitExceeded;
240
+ var _InternalServerError = class _InternalServerError extends SupportServiceException {
241
+ /**
242
+ * @internal
243
+ */
244
+ constructor(opts) {
245
+ super({
246
+ name: "InternalServerError",
247
+ $fault: "server",
248
+ ...opts
249
+ });
250
+ this.name = "InternalServerError";
251
+ this.$fault = "server";
252
+ Object.setPrototypeOf(this, _InternalServerError.prototype);
253
+ }
254
+ };
255
+ __name(_InternalServerError, "InternalServerError");
256
+ var InternalServerError = _InternalServerError;
257
+ var _CaseIdNotFound = class _CaseIdNotFound extends SupportServiceException {
258
+ /**
259
+ * @internal
260
+ */
261
+ constructor(opts) {
262
+ super({
263
+ name: "CaseIdNotFound",
264
+ $fault: "client",
265
+ ...opts
266
+ });
267
+ this.name = "CaseIdNotFound";
268
+ this.$fault = "client";
269
+ Object.setPrototypeOf(this, _CaseIdNotFound.prototype);
270
+ }
271
+ };
272
+ __name(_CaseIdNotFound, "CaseIdNotFound");
273
+ var CaseIdNotFound = _CaseIdNotFound;
274
+ var _AttachmentIdNotFound = class _AttachmentIdNotFound extends SupportServiceException {
275
+ /**
276
+ * @internal
277
+ */
278
+ constructor(opts) {
279
+ super({
280
+ name: "AttachmentIdNotFound",
281
+ $fault: "client",
282
+ ...opts
283
+ });
284
+ this.name = "AttachmentIdNotFound";
285
+ this.$fault = "client";
286
+ Object.setPrototypeOf(this, _AttachmentIdNotFound.prototype);
287
+ }
288
+ };
289
+ __name(_AttachmentIdNotFound, "AttachmentIdNotFound");
290
+ var AttachmentIdNotFound = _AttachmentIdNotFound;
291
+ var _CaseCreationLimitExceeded = class _CaseCreationLimitExceeded extends SupportServiceException {
292
+ /**
293
+ * @internal
294
+ */
295
+ constructor(opts) {
296
+ super({
297
+ name: "CaseCreationLimitExceeded",
298
+ $fault: "client",
299
+ ...opts
300
+ });
301
+ this.name = "CaseCreationLimitExceeded";
302
+ this.$fault = "client";
303
+ Object.setPrototypeOf(this, _CaseCreationLimitExceeded.prototype);
304
+ }
305
+ };
306
+ __name(_CaseCreationLimitExceeded, "CaseCreationLimitExceeded");
307
+ var CaseCreationLimitExceeded = _CaseCreationLimitExceeded;
308
+ var _DescribeAttachmentLimitExceeded = class _DescribeAttachmentLimitExceeded extends SupportServiceException {
309
+ /**
310
+ * @internal
311
+ */
312
+ constructor(opts) {
313
+ super({
314
+ name: "DescribeAttachmentLimitExceeded",
315
+ $fault: "client",
316
+ ...opts
317
+ });
318
+ this.name = "DescribeAttachmentLimitExceeded";
319
+ this.$fault = "client";
320
+ Object.setPrototypeOf(this, _DescribeAttachmentLimitExceeded.prototype);
321
+ }
322
+ };
323
+ __name(_DescribeAttachmentLimitExceeded, "DescribeAttachmentLimitExceeded");
324
+ var DescribeAttachmentLimitExceeded = _DescribeAttachmentLimitExceeded;
325
+ var _ThrottlingException = class _ThrottlingException extends SupportServiceException {
326
+ /**
327
+ * @internal
328
+ */
329
+ constructor(opts) {
330
+ super({
331
+ name: "ThrottlingException",
332
+ $fault: "client",
333
+ ...opts
334
+ });
335
+ this.name = "ThrottlingException";
336
+ this.$fault = "client";
337
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
338
+ }
339
+ };
340
+ __name(_ThrottlingException, "ThrottlingException");
341
+ var ThrottlingException = _ThrottlingException;
342
+
343
+ // src/protocols/Aws_json1_1.ts
344
+ var se_AddAttachmentsToSetCommand = /* @__PURE__ */ __name(async (input, context) => {
345
+ const headers = sharedHeaders("AddAttachmentsToSet");
346
+ let body;
347
+ body = JSON.stringify(se_AddAttachmentsToSetRequest(input, context));
348
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
349
+ }, "se_AddAttachmentsToSetCommand");
350
+ var se_AddCommunicationToCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
351
+ const headers = sharedHeaders("AddCommunicationToCase");
352
+ let body;
353
+ body = JSON.stringify((0, import_smithy_client._json)(input));
354
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
355
+ }, "se_AddCommunicationToCaseCommand");
356
+ var se_CreateCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
357
+ const headers = sharedHeaders("CreateCase");
358
+ let body;
359
+ body = JSON.stringify((0, import_smithy_client._json)(input));
360
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
361
+ }, "se_CreateCaseCommand");
362
+ var se_DescribeAttachmentCommand = /* @__PURE__ */ __name(async (input, context) => {
363
+ const headers = sharedHeaders("DescribeAttachment");
364
+ let body;
365
+ body = JSON.stringify((0, import_smithy_client._json)(input));
366
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
367
+ }, "se_DescribeAttachmentCommand");
368
+ var se_DescribeCasesCommand = /* @__PURE__ */ __name(async (input, context) => {
369
+ const headers = sharedHeaders("DescribeCases");
370
+ let body;
371
+ body = JSON.stringify((0, import_smithy_client._json)(input));
372
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
373
+ }, "se_DescribeCasesCommand");
374
+ var se_DescribeCommunicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
375
+ const headers = sharedHeaders("DescribeCommunications");
376
+ let body;
377
+ body = JSON.stringify((0, import_smithy_client._json)(input));
378
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
379
+ }, "se_DescribeCommunicationsCommand");
380
+ var se_DescribeCreateCaseOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
381
+ const headers = sharedHeaders("DescribeCreateCaseOptions");
382
+ let body;
383
+ body = JSON.stringify((0, import_smithy_client._json)(input));
384
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
385
+ }, "se_DescribeCreateCaseOptionsCommand");
386
+ var se_DescribeServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
387
+ const headers = sharedHeaders("DescribeServices");
388
+ let body;
389
+ body = JSON.stringify((0, import_smithy_client._json)(input));
390
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
391
+ }, "se_DescribeServicesCommand");
392
+ var se_DescribeSeverityLevelsCommand = /* @__PURE__ */ __name(async (input, context) => {
393
+ const headers = sharedHeaders("DescribeSeverityLevels");
394
+ let body;
395
+ body = JSON.stringify((0, import_smithy_client._json)(input));
396
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
397
+ }, "se_DescribeSeverityLevelsCommand");
398
+ var se_DescribeSupportedLanguagesCommand = /* @__PURE__ */ __name(async (input, context) => {
399
+ const headers = sharedHeaders("DescribeSupportedLanguages");
400
+ let body;
401
+ body = JSON.stringify((0, import_smithy_client._json)(input));
402
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
403
+ }, "se_DescribeSupportedLanguagesCommand");
404
+ var se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = /* @__PURE__ */ __name(async (input, context) => {
405
+ const headers = sharedHeaders("DescribeTrustedAdvisorCheckRefreshStatuses");
406
+ let body;
407
+ body = JSON.stringify(se_DescribeTrustedAdvisorCheckRefreshStatusesRequest(input, context));
408
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
409
+ }, "se_DescribeTrustedAdvisorCheckRefreshStatusesCommand");
410
+ var se_DescribeTrustedAdvisorCheckResultCommand = /* @__PURE__ */ __name(async (input, context) => {
411
+ const headers = sharedHeaders("DescribeTrustedAdvisorCheckResult");
412
+ let body;
413
+ body = JSON.stringify((0, import_smithy_client._json)(input));
414
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
415
+ }, "se_DescribeTrustedAdvisorCheckResultCommand");
416
+ var se_DescribeTrustedAdvisorChecksCommand = /* @__PURE__ */ __name(async (input, context) => {
417
+ const headers = sharedHeaders("DescribeTrustedAdvisorChecks");
418
+ let body;
419
+ body = JSON.stringify((0, import_smithy_client._json)(input));
420
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
421
+ }, "se_DescribeTrustedAdvisorChecksCommand");
422
+ var se_DescribeTrustedAdvisorCheckSummariesCommand = /* @__PURE__ */ __name(async (input, context) => {
423
+ const headers = sharedHeaders("DescribeTrustedAdvisorCheckSummaries");
424
+ let body;
425
+ body = JSON.stringify(se_DescribeTrustedAdvisorCheckSummariesRequest(input, context));
426
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
427
+ }, "se_DescribeTrustedAdvisorCheckSummariesCommand");
428
+ var se_RefreshTrustedAdvisorCheckCommand = /* @__PURE__ */ __name(async (input, context) => {
429
+ const headers = sharedHeaders("RefreshTrustedAdvisorCheck");
430
+ let body;
431
+ body = JSON.stringify((0, import_smithy_client._json)(input));
432
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
433
+ }, "se_RefreshTrustedAdvisorCheckCommand");
434
+ var se_ResolveCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
435
+ const headers = sharedHeaders("ResolveCase");
436
+ let body;
437
+ body = JSON.stringify((0, import_smithy_client._json)(input));
438
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
439
+ }, "se_ResolveCaseCommand");
440
+ var de_AddAttachmentsToSetCommand = /* @__PURE__ */ __name(async (output, context) => {
441
+ if (output.statusCode >= 300) {
442
+ return de_AddAttachmentsToSetCommandError(output, context);
443
+ }
444
+ const data = await parseBody(output.body, context);
445
+ let contents = {};
446
+ contents = (0, import_smithy_client._json)(data);
447
+ const response = {
448
+ $metadata: deserializeMetadata(output),
449
+ ...contents
450
+ };
451
+ return response;
452
+ }, "de_AddAttachmentsToSetCommand");
453
+ var de_AddAttachmentsToSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
454
+ const parsedOutput = {
455
+ ...output,
456
+ body: await parseErrorBody(output.body, context)
457
+ };
458
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
459
+ switch (errorCode) {
460
+ case "AttachmentLimitExceeded":
461
+ case "com.amazonaws.support#AttachmentLimitExceeded":
462
+ throw await de_AttachmentLimitExceededRes(parsedOutput, context);
463
+ case "AttachmentSetExpired":
464
+ case "com.amazonaws.support#AttachmentSetExpired":
465
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
466
+ case "AttachmentSetIdNotFound":
467
+ case "com.amazonaws.support#AttachmentSetIdNotFound":
468
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
469
+ case "AttachmentSetSizeLimitExceeded":
470
+ case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
471
+ throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
472
+ case "InternalServerError":
473
+ case "com.amazonaws.support#InternalServerError":
474
+ throw await de_InternalServerErrorRes(parsedOutput, context);
475
+ default:
476
+ const parsedBody = parsedOutput.body;
477
+ return throwDefaultError({
478
+ output,
479
+ parsedBody,
480
+ errorCode
481
+ });
482
+ }
483
+ }, "de_AddAttachmentsToSetCommandError");
484
+ var de_AddCommunicationToCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
485
+ if (output.statusCode >= 300) {
486
+ return de_AddCommunicationToCaseCommandError(output, context);
487
+ }
488
+ const data = await parseBody(output.body, context);
489
+ let contents = {};
490
+ contents = (0, import_smithy_client._json)(data);
491
+ const response = {
492
+ $metadata: deserializeMetadata(output),
493
+ ...contents
494
+ };
495
+ return response;
496
+ }, "de_AddCommunicationToCaseCommand");
497
+ var de_AddCommunicationToCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
498
+ const parsedOutput = {
499
+ ...output,
500
+ body: await parseErrorBody(output.body, context)
501
+ };
502
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
+ switch (errorCode) {
504
+ case "AttachmentSetExpired":
505
+ case "com.amazonaws.support#AttachmentSetExpired":
506
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
507
+ case "AttachmentSetIdNotFound":
508
+ case "com.amazonaws.support#AttachmentSetIdNotFound":
509
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
510
+ case "CaseIdNotFound":
511
+ case "com.amazonaws.support#CaseIdNotFound":
512
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
513
+ case "InternalServerError":
514
+ case "com.amazonaws.support#InternalServerError":
515
+ throw await de_InternalServerErrorRes(parsedOutput, context);
516
+ default:
517
+ const parsedBody = parsedOutput.body;
518
+ return throwDefaultError({
519
+ output,
520
+ parsedBody,
521
+ errorCode
522
+ });
523
+ }
524
+ }, "de_AddCommunicationToCaseCommandError");
525
+ var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
526
+ if (output.statusCode >= 300) {
527
+ return de_CreateCaseCommandError(output, context);
528
+ }
529
+ const data = await parseBody(output.body, context);
530
+ let contents = {};
531
+ contents = (0, import_smithy_client._json)(data);
532
+ const response = {
533
+ $metadata: deserializeMetadata(output),
534
+ ...contents
535
+ };
536
+ return response;
537
+ }, "de_CreateCaseCommand");
538
+ var de_CreateCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
539
+ const parsedOutput = {
540
+ ...output,
541
+ body: await parseErrorBody(output.body, context)
542
+ };
543
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
544
+ switch (errorCode) {
545
+ case "AttachmentSetExpired":
546
+ case "com.amazonaws.support#AttachmentSetExpired":
547
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
548
+ case "AttachmentSetIdNotFound":
549
+ case "com.amazonaws.support#AttachmentSetIdNotFound":
550
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
551
+ case "CaseCreationLimitExceeded":
552
+ case "com.amazonaws.support#CaseCreationLimitExceeded":
553
+ throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
554
+ case "InternalServerError":
555
+ case "com.amazonaws.support#InternalServerError":
556
+ throw await de_InternalServerErrorRes(parsedOutput, context);
557
+ default:
558
+ const parsedBody = parsedOutput.body;
559
+ return throwDefaultError({
560
+ output,
561
+ parsedBody,
562
+ errorCode
563
+ });
564
+ }
565
+ }, "de_CreateCaseCommandError");
566
+ var de_DescribeAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
567
+ if (output.statusCode >= 300) {
568
+ return de_DescribeAttachmentCommandError(output, context);
569
+ }
570
+ const data = await parseBody(output.body, context);
571
+ let contents = {};
572
+ contents = de_DescribeAttachmentResponse(data, context);
573
+ const response = {
574
+ $metadata: deserializeMetadata(output),
575
+ ...contents
576
+ };
577
+ return response;
578
+ }, "de_DescribeAttachmentCommand");
579
+ var de_DescribeAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
580
+ const parsedOutput = {
581
+ ...output,
582
+ body: await parseErrorBody(output.body, context)
583
+ };
584
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
585
+ switch (errorCode) {
586
+ case "AttachmentIdNotFound":
587
+ case "com.amazonaws.support#AttachmentIdNotFound":
588
+ throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
589
+ case "DescribeAttachmentLimitExceeded":
590
+ case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
591
+ throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
592
+ case "InternalServerError":
593
+ case "com.amazonaws.support#InternalServerError":
594
+ throw await de_InternalServerErrorRes(parsedOutput, context);
595
+ default:
596
+ const parsedBody = parsedOutput.body;
597
+ return throwDefaultError({
598
+ output,
599
+ parsedBody,
600
+ errorCode
601
+ });
602
+ }
603
+ }, "de_DescribeAttachmentCommandError");
604
+ var de_DescribeCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
605
+ if (output.statusCode >= 300) {
606
+ return de_DescribeCasesCommandError(output, context);
607
+ }
608
+ const data = await parseBody(output.body, context);
609
+ let contents = {};
610
+ contents = (0, import_smithy_client._json)(data);
611
+ const response = {
612
+ $metadata: deserializeMetadata(output),
613
+ ...contents
614
+ };
615
+ return response;
616
+ }, "de_DescribeCasesCommand");
617
+ var de_DescribeCasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
618
+ const parsedOutput = {
619
+ ...output,
620
+ body: await parseErrorBody(output.body, context)
621
+ };
622
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
623
+ switch (errorCode) {
624
+ case "CaseIdNotFound":
625
+ case "com.amazonaws.support#CaseIdNotFound":
626
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
627
+ case "InternalServerError":
628
+ case "com.amazonaws.support#InternalServerError":
629
+ throw await de_InternalServerErrorRes(parsedOutput, context);
630
+ default:
631
+ const parsedBody = parsedOutput.body;
632
+ return throwDefaultError({
633
+ output,
634
+ parsedBody,
635
+ errorCode
636
+ });
637
+ }
638
+ }, "de_DescribeCasesCommandError");
639
+ var de_DescribeCommunicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
640
+ if (output.statusCode >= 300) {
641
+ return de_DescribeCommunicationsCommandError(output, context);
642
+ }
643
+ const data = await parseBody(output.body, context);
644
+ let contents = {};
645
+ contents = (0, import_smithy_client._json)(data);
646
+ const response = {
647
+ $metadata: deserializeMetadata(output),
648
+ ...contents
649
+ };
650
+ return response;
651
+ }, "de_DescribeCommunicationsCommand");
652
+ var de_DescribeCommunicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
653
+ const parsedOutput = {
654
+ ...output,
655
+ body: await parseErrorBody(output.body, context)
656
+ };
657
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
658
+ switch (errorCode) {
659
+ case "CaseIdNotFound":
660
+ case "com.amazonaws.support#CaseIdNotFound":
661
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
662
+ case "InternalServerError":
663
+ case "com.amazonaws.support#InternalServerError":
664
+ throw await de_InternalServerErrorRes(parsedOutput, context);
665
+ default:
666
+ const parsedBody = parsedOutput.body;
667
+ return throwDefaultError({
668
+ output,
669
+ parsedBody,
670
+ errorCode
671
+ });
672
+ }
673
+ }, "de_DescribeCommunicationsCommandError");
674
+ var de_DescribeCreateCaseOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
675
+ if (output.statusCode >= 300) {
676
+ return de_DescribeCreateCaseOptionsCommandError(output, context);
677
+ }
678
+ const data = await parseBody(output.body, context);
679
+ let contents = {};
680
+ contents = (0, import_smithy_client._json)(data);
681
+ const response = {
682
+ $metadata: deserializeMetadata(output),
683
+ ...contents
684
+ };
685
+ return response;
686
+ }, "de_DescribeCreateCaseOptionsCommand");
687
+ var de_DescribeCreateCaseOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
688
+ const parsedOutput = {
689
+ ...output,
690
+ body: await parseErrorBody(output.body, context)
691
+ };
692
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
693
+ switch (errorCode) {
694
+ case "InternalServerError":
695
+ case "com.amazonaws.support#InternalServerError":
696
+ throw await de_InternalServerErrorRes(parsedOutput, context);
697
+ case "ThrottlingException":
698
+ case "com.amazonaws.support#ThrottlingException":
699
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
700
+ default:
701
+ const parsedBody = parsedOutput.body;
702
+ return throwDefaultError({
703
+ output,
704
+ parsedBody,
705
+ errorCode
706
+ });
707
+ }
708
+ }, "de_DescribeCreateCaseOptionsCommandError");
709
+ var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
710
+ if (output.statusCode >= 300) {
711
+ return de_DescribeServicesCommandError(output, context);
712
+ }
713
+ const data = await parseBody(output.body, context);
714
+ let contents = {};
715
+ contents = (0, import_smithy_client._json)(data);
716
+ const response = {
717
+ $metadata: deserializeMetadata(output),
718
+ ...contents
719
+ };
720
+ return response;
721
+ }, "de_DescribeServicesCommand");
722
+ var de_DescribeServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
723
+ const parsedOutput = {
724
+ ...output,
725
+ body: await parseErrorBody(output.body, context)
726
+ };
727
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
728
+ switch (errorCode) {
729
+ case "InternalServerError":
730
+ case "com.amazonaws.support#InternalServerError":
731
+ throw await de_InternalServerErrorRes(parsedOutput, context);
732
+ default:
733
+ const parsedBody = parsedOutput.body;
734
+ return throwDefaultError({
735
+ output,
736
+ parsedBody,
737
+ errorCode
738
+ });
739
+ }
740
+ }, "de_DescribeServicesCommandError");
741
+ var de_DescribeSeverityLevelsCommand = /* @__PURE__ */ __name(async (output, context) => {
742
+ if (output.statusCode >= 300) {
743
+ return de_DescribeSeverityLevelsCommandError(output, context);
744
+ }
745
+ const data = await parseBody(output.body, context);
746
+ let contents = {};
747
+ contents = (0, import_smithy_client._json)(data);
748
+ const response = {
749
+ $metadata: deserializeMetadata(output),
750
+ ...contents
751
+ };
752
+ return response;
753
+ }, "de_DescribeSeverityLevelsCommand");
754
+ var de_DescribeSeverityLevelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
755
+ const parsedOutput = {
756
+ ...output,
757
+ body: await parseErrorBody(output.body, context)
758
+ };
759
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
760
+ switch (errorCode) {
761
+ case "InternalServerError":
762
+ case "com.amazonaws.support#InternalServerError":
763
+ throw await de_InternalServerErrorRes(parsedOutput, context);
764
+ default:
765
+ const parsedBody = parsedOutput.body;
766
+ return throwDefaultError({
767
+ output,
768
+ parsedBody,
769
+ errorCode
770
+ });
771
+ }
772
+ }, "de_DescribeSeverityLevelsCommandError");
773
+ var de_DescribeSupportedLanguagesCommand = /* @__PURE__ */ __name(async (output, context) => {
774
+ if (output.statusCode >= 300) {
775
+ return de_DescribeSupportedLanguagesCommandError(output, context);
776
+ }
777
+ const data = await parseBody(output.body, context);
778
+ let contents = {};
779
+ contents = (0, import_smithy_client._json)(data);
780
+ const response = {
781
+ $metadata: deserializeMetadata(output),
782
+ ...contents
783
+ };
784
+ return response;
785
+ }, "de_DescribeSupportedLanguagesCommand");
786
+ var de_DescribeSupportedLanguagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
787
+ const parsedOutput = {
788
+ ...output,
789
+ body: await parseErrorBody(output.body, context)
790
+ };
791
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
792
+ switch (errorCode) {
793
+ case "InternalServerError":
794
+ case "com.amazonaws.support#InternalServerError":
795
+ throw await de_InternalServerErrorRes(parsedOutput, context);
796
+ case "ThrottlingException":
797
+ case "com.amazonaws.support#ThrottlingException":
798
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
799
+ default:
800
+ const parsedBody = parsedOutput.body;
801
+ return throwDefaultError({
802
+ output,
803
+ parsedBody,
804
+ errorCode
805
+ });
806
+ }
807
+ }, "de_DescribeSupportedLanguagesCommandError");
808
+ var de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = /* @__PURE__ */ __name(async (output, context) => {
809
+ if (output.statusCode >= 300) {
810
+ return de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
811
+ }
812
+ const data = await parseBody(output.body, context);
813
+ let contents = {};
814
+ contents = (0, import_smithy_client._json)(data);
815
+ const response = {
816
+ $metadata: deserializeMetadata(output),
817
+ ...contents
818
+ };
819
+ return response;
820
+ }, "de_DescribeTrustedAdvisorCheckRefreshStatusesCommand");
821
+ var de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = /* @__PURE__ */ __name(async (output, context) => {
822
+ const parsedOutput = {
823
+ ...output,
824
+ body: await parseErrorBody(output.body, context)
825
+ };
826
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
827
+ switch (errorCode) {
828
+ case "InternalServerError":
829
+ case "com.amazonaws.support#InternalServerError":
830
+ throw await de_InternalServerErrorRes(parsedOutput, context);
831
+ case "ThrottlingException":
832
+ case "com.amazonaws.support#ThrottlingException":
833
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
834
+ default:
835
+ const parsedBody = parsedOutput.body;
836
+ return throwDefaultError({
837
+ output,
838
+ parsedBody,
839
+ errorCode
840
+ });
841
+ }
842
+ }, "de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError");
843
+ var de_DescribeTrustedAdvisorCheckResultCommand = /* @__PURE__ */ __name(async (output, context) => {
844
+ if (output.statusCode >= 300) {
845
+ return de_DescribeTrustedAdvisorCheckResultCommandError(output, context);
846
+ }
847
+ const data = await parseBody(output.body, context);
848
+ let contents = {};
849
+ contents = de_DescribeTrustedAdvisorCheckResultResponse(data, context);
850
+ const response = {
851
+ $metadata: deserializeMetadata(output),
852
+ ...contents
853
+ };
854
+ return response;
855
+ }, "de_DescribeTrustedAdvisorCheckResultCommand");
856
+ var de_DescribeTrustedAdvisorCheckResultCommandError = /* @__PURE__ */ __name(async (output, context) => {
857
+ const parsedOutput = {
858
+ ...output,
859
+ body: await parseErrorBody(output.body, context)
860
+ };
861
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
862
+ switch (errorCode) {
863
+ case "InternalServerError":
864
+ case "com.amazonaws.support#InternalServerError":
865
+ throw await de_InternalServerErrorRes(parsedOutput, context);
866
+ case "ThrottlingException":
867
+ case "com.amazonaws.support#ThrottlingException":
868
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
869
+ default:
870
+ const parsedBody = parsedOutput.body;
871
+ return throwDefaultError({
872
+ output,
873
+ parsedBody,
874
+ errorCode
875
+ });
876
+ }
877
+ }, "de_DescribeTrustedAdvisorCheckResultCommandError");
878
+ var de_DescribeTrustedAdvisorChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
879
+ if (output.statusCode >= 300) {
880
+ return de_DescribeTrustedAdvisorChecksCommandError(output, context);
881
+ }
882
+ const data = await parseBody(output.body, context);
883
+ let contents = {};
884
+ contents = de_DescribeTrustedAdvisorChecksResponse(data, context);
885
+ const response = {
886
+ $metadata: deserializeMetadata(output),
887
+ ...contents
888
+ };
889
+ return response;
890
+ }, "de_DescribeTrustedAdvisorChecksCommand");
891
+ var de_DescribeTrustedAdvisorChecksCommandError = /* @__PURE__ */ __name(async (output, context) => {
892
+ const parsedOutput = {
893
+ ...output,
894
+ body: await parseErrorBody(output.body, context)
895
+ };
896
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
897
+ switch (errorCode) {
898
+ case "InternalServerError":
899
+ case "com.amazonaws.support#InternalServerError":
900
+ throw await de_InternalServerErrorRes(parsedOutput, context);
901
+ case "ThrottlingException":
902
+ case "com.amazonaws.support#ThrottlingException":
903
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
904
+ default:
905
+ const parsedBody = parsedOutput.body;
906
+ return throwDefaultError({
907
+ output,
908
+ parsedBody,
909
+ errorCode
910
+ });
911
+ }
912
+ }, "de_DescribeTrustedAdvisorChecksCommandError");
913
+ var de_DescribeTrustedAdvisorCheckSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
914
+ if (output.statusCode >= 300) {
915
+ return de_DescribeTrustedAdvisorCheckSummariesCommandError(output, context);
916
+ }
917
+ const data = await parseBody(output.body, context);
918
+ let contents = {};
919
+ contents = de_DescribeTrustedAdvisorCheckSummariesResponse(data, context);
920
+ const response = {
921
+ $metadata: deserializeMetadata(output),
922
+ ...contents
923
+ };
924
+ return response;
925
+ }, "de_DescribeTrustedAdvisorCheckSummariesCommand");
926
+ var de_DescribeTrustedAdvisorCheckSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
927
+ const parsedOutput = {
928
+ ...output,
929
+ body: await parseErrorBody(output.body, context)
930
+ };
931
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
932
+ switch (errorCode) {
933
+ case "InternalServerError":
934
+ case "com.amazonaws.support#InternalServerError":
935
+ throw await de_InternalServerErrorRes(parsedOutput, context);
936
+ case "ThrottlingException":
937
+ case "com.amazonaws.support#ThrottlingException":
938
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
939
+ default:
940
+ const parsedBody = parsedOutput.body;
941
+ return throwDefaultError({
942
+ output,
943
+ parsedBody,
944
+ errorCode
945
+ });
946
+ }
947
+ }, "de_DescribeTrustedAdvisorCheckSummariesCommandError");
948
+ var de_RefreshTrustedAdvisorCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
949
+ if (output.statusCode >= 300) {
950
+ return de_RefreshTrustedAdvisorCheckCommandError(output, context);
951
+ }
952
+ const data = await parseBody(output.body, context);
953
+ let contents = {};
954
+ contents = (0, import_smithy_client._json)(data);
955
+ const response = {
956
+ $metadata: deserializeMetadata(output),
957
+ ...contents
958
+ };
959
+ return response;
960
+ }, "de_RefreshTrustedAdvisorCheckCommand");
961
+ var de_RefreshTrustedAdvisorCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
962
+ const parsedOutput = {
963
+ ...output,
964
+ body: await parseErrorBody(output.body, context)
965
+ };
966
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
967
+ switch (errorCode) {
968
+ case "InternalServerError":
969
+ case "com.amazonaws.support#InternalServerError":
970
+ throw await de_InternalServerErrorRes(parsedOutput, context);
971
+ default:
972
+ const parsedBody = parsedOutput.body;
973
+ return throwDefaultError({
974
+ output,
975
+ parsedBody,
976
+ errorCode
977
+ });
978
+ }
979
+ }, "de_RefreshTrustedAdvisorCheckCommandError");
980
+ var de_ResolveCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
981
+ if (output.statusCode >= 300) {
982
+ return de_ResolveCaseCommandError(output, context);
983
+ }
984
+ const data = await parseBody(output.body, context);
985
+ let contents = {};
986
+ contents = (0, import_smithy_client._json)(data);
987
+ const response = {
988
+ $metadata: deserializeMetadata(output),
989
+ ...contents
990
+ };
991
+ return response;
992
+ }, "de_ResolveCaseCommand");
993
+ var de_ResolveCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
994
+ const parsedOutput = {
995
+ ...output,
996
+ body: await parseErrorBody(output.body, context)
997
+ };
998
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
999
+ switch (errorCode) {
1000
+ case "CaseIdNotFound":
1001
+ case "com.amazonaws.support#CaseIdNotFound":
1002
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
1003
+ case "InternalServerError":
1004
+ case "com.amazonaws.support#InternalServerError":
1005
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1006
+ default:
1007
+ const parsedBody = parsedOutput.body;
1008
+ return throwDefaultError({
1009
+ output,
1010
+ parsedBody,
1011
+ errorCode
1012
+ });
1013
+ }
1014
+ }, "de_ResolveCaseCommandError");
1015
+ var de_AttachmentIdNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1016
+ const body = parsedOutput.body;
1017
+ const deserialized = (0, import_smithy_client._json)(body);
1018
+ const exception = new AttachmentIdNotFound({
1019
+ $metadata: deserializeMetadata(parsedOutput),
1020
+ ...deserialized
1021
+ });
1022
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1023
+ }, "de_AttachmentIdNotFoundRes");
1024
+ var de_AttachmentLimitExceededRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1025
+ const body = parsedOutput.body;
1026
+ const deserialized = (0, import_smithy_client._json)(body);
1027
+ const exception = new AttachmentLimitExceeded({
1028
+ $metadata: deserializeMetadata(parsedOutput),
1029
+ ...deserialized
1030
+ });
1031
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1032
+ }, "de_AttachmentLimitExceededRes");
1033
+ var de_AttachmentSetExpiredRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1034
+ const body = parsedOutput.body;
1035
+ const deserialized = (0, import_smithy_client._json)(body);
1036
+ const exception = new AttachmentSetExpired({
1037
+ $metadata: deserializeMetadata(parsedOutput),
1038
+ ...deserialized
1039
+ });
1040
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1041
+ }, "de_AttachmentSetExpiredRes");
1042
+ var de_AttachmentSetIdNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1043
+ const body = parsedOutput.body;
1044
+ const deserialized = (0, import_smithy_client._json)(body);
1045
+ const exception = new AttachmentSetIdNotFound({
1046
+ $metadata: deserializeMetadata(parsedOutput),
1047
+ ...deserialized
1048
+ });
1049
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1050
+ }, "de_AttachmentSetIdNotFoundRes");
1051
+ var de_AttachmentSetSizeLimitExceededRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1052
+ const body = parsedOutput.body;
1053
+ const deserialized = (0, import_smithy_client._json)(body);
1054
+ const exception = new AttachmentSetSizeLimitExceeded({
1055
+ $metadata: deserializeMetadata(parsedOutput),
1056
+ ...deserialized
1057
+ });
1058
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1059
+ }, "de_AttachmentSetSizeLimitExceededRes");
1060
+ var de_CaseCreationLimitExceededRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1061
+ const body = parsedOutput.body;
1062
+ const deserialized = (0, import_smithy_client._json)(body);
1063
+ const exception = new CaseCreationLimitExceeded({
1064
+ $metadata: deserializeMetadata(parsedOutput),
1065
+ ...deserialized
1066
+ });
1067
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1068
+ }, "de_CaseCreationLimitExceededRes");
1069
+ var de_CaseIdNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1070
+ const body = parsedOutput.body;
1071
+ const deserialized = (0, import_smithy_client._json)(body);
1072
+ const exception = new CaseIdNotFound({
1073
+ $metadata: deserializeMetadata(parsedOutput),
1074
+ ...deserialized
1075
+ });
1076
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1077
+ }, "de_CaseIdNotFoundRes");
1078
+ var de_DescribeAttachmentLimitExceededRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1079
+ const body = parsedOutput.body;
1080
+ const deserialized = (0, import_smithy_client._json)(body);
1081
+ const exception = new DescribeAttachmentLimitExceeded({
1082
+ $metadata: deserializeMetadata(parsedOutput),
1083
+ ...deserialized
1084
+ });
1085
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1086
+ }, "de_DescribeAttachmentLimitExceededRes");
1087
+ var de_InternalServerErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1088
+ const body = parsedOutput.body;
1089
+ const deserialized = (0, import_smithy_client._json)(body);
1090
+ const exception = new InternalServerError({
1091
+ $metadata: deserializeMetadata(parsedOutput),
1092
+ ...deserialized
1093
+ });
1094
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1095
+ }, "de_InternalServerErrorRes");
1096
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1097
+ const body = parsedOutput.body;
1098
+ const deserialized = (0, import_smithy_client._json)(body);
1099
+ const exception = new ThrottlingException({
1100
+ $metadata: deserializeMetadata(parsedOutput),
1101
+ ...deserialized
1102
+ });
1103
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1104
+ }, "de_ThrottlingExceptionRes");
1105
+ var se_AddAttachmentsToSetRequest = /* @__PURE__ */ __name((input, context) => {
1106
+ return (0, import_smithy_client.take)(input, {
1107
+ attachmentSetId: [],
1108
+ attachments: (_) => se_Attachments(_, context)
1109
+ });
1110
+ }, "se_AddAttachmentsToSetRequest");
1111
+ var se_Attachment = /* @__PURE__ */ __name((input, context) => {
1112
+ return (0, import_smithy_client.take)(input, {
1113
+ data: context.base64Encoder,
1114
+ fileName: []
1115
+ });
1116
+ }, "se_Attachment");
1117
+ var se_Attachments = /* @__PURE__ */ __name((input, context) => {
1118
+ return input.filter((e) => e != null).map((entry) => {
1119
+ return se_Attachment(entry, context);
1120
+ });
1121
+ }, "se_Attachments");
1122
+ var se_DescribeTrustedAdvisorCheckRefreshStatusesRequest = /* @__PURE__ */ __name((input, context) => {
1123
+ return (0, import_smithy_client.take)(input, {
1124
+ checkIds: (_) => se_StringList(_, context)
1125
+ });
1126
+ }, "se_DescribeTrustedAdvisorCheckRefreshStatusesRequest");
1127
+ var se_DescribeTrustedAdvisorCheckSummariesRequest = /* @__PURE__ */ __name((input, context) => {
1128
+ return (0, import_smithy_client.take)(input, {
1129
+ checkIds: (_) => se_StringList(_, context)
1130
+ });
1131
+ }, "se_DescribeTrustedAdvisorCheckSummariesRequest");
1132
+ var se_StringList = /* @__PURE__ */ __name((input, context) => {
1133
+ return input;
1134
+ }, "se_StringList");
1135
+ var de_Attachment = /* @__PURE__ */ __name((output, context) => {
1136
+ return (0, import_smithy_client.take)(output, {
1137
+ data: context.base64Decoder,
1138
+ fileName: import_smithy_client.expectString
1139
+ });
1140
+ }, "de_Attachment");
1141
+ var de_DescribeAttachmentResponse = /* @__PURE__ */ __name((output, context) => {
1142
+ return (0, import_smithy_client.take)(output, {
1143
+ attachment: (_) => de_Attachment(_, context)
1144
+ });
1145
+ }, "de_DescribeAttachmentResponse");
1146
+ var de_DescribeTrustedAdvisorCheckResultResponse = /* @__PURE__ */ __name((output, context) => {
1147
+ return (0, import_smithy_client.take)(output, {
1148
+ result: (_) => de_TrustedAdvisorCheckResult(_, context)
1149
+ });
1150
+ }, "de_DescribeTrustedAdvisorCheckResultResponse");
1151
+ var de_DescribeTrustedAdvisorChecksResponse = /* @__PURE__ */ __name((output, context) => {
1152
+ return (0, import_smithy_client.take)(output, {
1153
+ checks: (_) => de_TrustedAdvisorCheckList(_, context)
1154
+ });
1155
+ }, "de_DescribeTrustedAdvisorChecksResponse");
1156
+ var de_DescribeTrustedAdvisorCheckSummariesResponse = /* @__PURE__ */ __name((output, context) => {
1157
+ return (0, import_smithy_client.take)(output, {
1158
+ summaries: (_) => de_TrustedAdvisorCheckSummaryList(_, context)
1159
+ });
1160
+ }, "de_DescribeTrustedAdvisorCheckSummariesResponse");
1161
+ var de_StringList = /* @__PURE__ */ __name((output, context) => {
1162
+ const retVal = (output || []).map((entry) => {
1163
+ if (entry === null) {
1164
+ return null;
1165
+ }
1166
+ return (0, import_smithy_client.expectString)(entry);
1167
+ });
1168
+ return retVal;
1169
+ }, "de_StringList");
1170
+ var de_TrustedAdvisorCategorySpecificSummary = /* @__PURE__ */ __name((output, context) => {
1171
+ return (0, import_smithy_client.take)(output, {
1172
+ costOptimizing: (_) => de_TrustedAdvisorCostOptimizingSummary(_, context)
1173
+ });
1174
+ }, "de_TrustedAdvisorCategorySpecificSummary");
1175
+ var de_TrustedAdvisorCheckDescription = /* @__PURE__ */ __name((output, context) => {
1176
+ return (0, import_smithy_client.take)(output, {
1177
+ category: import_smithy_client.expectString,
1178
+ description: import_smithy_client.expectString,
1179
+ id: import_smithy_client.expectString,
1180
+ metadata: (_) => de_StringList(_, context),
1181
+ name: import_smithy_client.expectString
1182
+ });
1183
+ }, "de_TrustedAdvisorCheckDescription");
1184
+ var de_TrustedAdvisorCheckList = /* @__PURE__ */ __name((output, context) => {
1185
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1186
+ return de_TrustedAdvisorCheckDescription(entry, context);
1187
+ });
1188
+ return retVal;
1189
+ }, "de_TrustedAdvisorCheckList");
1190
+ var de_TrustedAdvisorCheckResult = /* @__PURE__ */ __name((output, context) => {
1191
+ return (0, import_smithy_client.take)(output, {
1192
+ categorySpecificSummary: (_) => de_TrustedAdvisorCategorySpecificSummary(_, context),
1193
+ checkId: import_smithy_client.expectString,
1194
+ flaggedResources: (_) => de_TrustedAdvisorResourceDetailList(_, context),
1195
+ resourcesSummary: import_smithy_client._json,
1196
+ status: import_smithy_client.expectString,
1197
+ timestamp: import_smithy_client.expectString
1198
+ });
1199
+ }, "de_TrustedAdvisorCheckResult");
1200
+ var de_TrustedAdvisorCheckSummary = /* @__PURE__ */ __name((output, context) => {
1201
+ return (0, import_smithy_client.take)(output, {
1202
+ categorySpecificSummary: (_) => de_TrustedAdvisorCategorySpecificSummary(_, context),
1203
+ checkId: import_smithy_client.expectString,
1204
+ hasFlaggedResources: import_smithy_client.expectBoolean,
1205
+ resourcesSummary: import_smithy_client._json,
1206
+ status: import_smithy_client.expectString,
1207
+ timestamp: import_smithy_client.expectString
1208
+ });
1209
+ }, "de_TrustedAdvisorCheckSummary");
1210
+ var de_TrustedAdvisorCheckSummaryList = /* @__PURE__ */ __name((output, context) => {
1211
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1212
+ return de_TrustedAdvisorCheckSummary(entry, context);
1213
+ });
1214
+ return retVal;
1215
+ }, "de_TrustedAdvisorCheckSummaryList");
1216
+ var de_TrustedAdvisorCostOptimizingSummary = /* @__PURE__ */ __name((output, context) => {
1217
+ return (0, import_smithy_client.take)(output, {
1218
+ estimatedMonthlySavings: import_smithy_client.limitedParseDouble,
1219
+ estimatedPercentMonthlySavings: import_smithy_client.limitedParseDouble
1220
+ });
1221
+ }, "de_TrustedAdvisorCostOptimizingSummary");
1222
+ var de_TrustedAdvisorResourceDetail = /* @__PURE__ */ __name((output, context) => {
1223
+ return (0, import_smithy_client.take)(output, {
1224
+ isSuppressed: import_smithy_client.expectBoolean,
1225
+ metadata: (_) => de_StringList(_, context),
1226
+ region: import_smithy_client.expectString,
1227
+ resourceId: import_smithy_client.expectString,
1228
+ status: import_smithy_client.expectString
1229
+ });
1230
+ }, "de_TrustedAdvisorResourceDetail");
1231
+ var de_TrustedAdvisorResourceDetailList = /* @__PURE__ */ __name((output, context) => {
1232
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1233
+ return de_TrustedAdvisorResourceDetail(entry, context);
1234
+ });
1235
+ return retVal;
1236
+ }, "de_TrustedAdvisorResourceDetailList");
1237
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1238
+ httpStatusCode: output.statusCode,
1239
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1240
+ extendedRequestId: output.headers["x-amz-id-2"],
1241
+ cfId: output.headers["x-amz-cf-id"]
1242
+ }), "deserializeMetadata");
1243
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1244
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(SupportServiceException);
1245
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1246
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1247
+ const contents = {
1248
+ protocol,
1249
+ hostname,
1250
+ port,
1251
+ method: "POST",
1252
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1253
+ headers
1254
+ };
1255
+ if (resolvedHostname !== void 0) {
1256
+ contents.hostname = resolvedHostname;
1257
+ }
1258
+ if (body !== void 0) {
1259
+ contents.body = body;
1260
+ }
1261
+ return new import_protocol_http.HttpRequest(contents);
1262
+ }, "buildHttpRpcRequest");
1263
+ function sharedHeaders(operation) {
1264
+ return {
1265
+ "content-type": "application/x-amz-json-1.1",
1266
+ "x-amz-target": `AWSSupport_20130415.${operation}`
1267
+ };
1268
+ }
1269
+ __name(sharedHeaders, "sharedHeaders");
1270
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1271
+ if (encoded.length) {
1272
+ return JSON.parse(encoded);
1273
+ }
1274
+ return {};
1275
+ }), "parseBody");
1276
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1277
+ const value = await parseBody(errorBody, context);
1278
+ value.message = value.message ?? value.Message;
1279
+ return value;
1280
+ }, "parseErrorBody");
1281
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1282
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1283
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1284
+ let cleanValue = rawValue;
1285
+ if (typeof cleanValue === "number") {
1286
+ cleanValue = cleanValue.toString();
1287
+ }
1288
+ if (cleanValue.indexOf(",") >= 0) {
1289
+ cleanValue = cleanValue.split(",")[0];
1290
+ }
1291
+ if (cleanValue.indexOf(":") >= 0) {
1292
+ cleanValue = cleanValue.split(":")[0];
1293
+ }
1294
+ if (cleanValue.indexOf("#") >= 0) {
1295
+ cleanValue = cleanValue.split("#")[1];
1296
+ }
1297
+ return cleanValue;
1298
+ }, "sanitizeErrorCode");
1299
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1300
+ if (headerKey !== void 0) {
1301
+ return sanitizeErrorCode(output.headers[headerKey]);
1302
+ }
1303
+ if (data.code !== void 0) {
1304
+ return sanitizeErrorCode(data.code);
1305
+ }
1306
+ if (data["__type"] !== void 0) {
1307
+ return sanitizeErrorCode(data["__type"]);
1308
+ }
1309
+ }, "loadRestJsonErrorCode");
1310
+
1311
+ // src/commands/AddAttachmentsToSetCommand.ts
1312
+ var _AddAttachmentsToSetCommand = class _AddAttachmentsToSetCommand extends import_smithy_client.Command.classBuilder().ep({
1313
+ ...commonParams
1314
+ }).m(function(Command, cs, config, o) {
1315
+ return [
1316
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1317
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1318
+ ];
1319
+ }).s("AWSSupport_20130415", "AddAttachmentsToSet", {}).n("SupportClient", "AddAttachmentsToSetCommand").f(void 0, void 0).ser(se_AddAttachmentsToSetCommand).de(de_AddAttachmentsToSetCommand).build() {
1320
+ };
1321
+ __name(_AddAttachmentsToSetCommand, "AddAttachmentsToSetCommand");
1322
+ var AddAttachmentsToSetCommand = _AddAttachmentsToSetCommand;
1323
+
1324
+ // src/commands/AddCommunicationToCaseCommand.ts
1325
+
1326
+
1327
+
1328
+
1329
+ var _AddCommunicationToCaseCommand = class _AddCommunicationToCaseCommand extends import_smithy_client.Command.classBuilder().ep({
1330
+ ...commonParams
1331
+ }).m(function(Command, cs, config, o) {
1332
+ return [
1333
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1334
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1335
+ ];
1336
+ }).s("AWSSupport_20130415", "AddCommunicationToCase", {}).n("SupportClient", "AddCommunicationToCaseCommand").f(void 0, void 0).ser(se_AddCommunicationToCaseCommand).de(de_AddCommunicationToCaseCommand).build() {
1337
+ };
1338
+ __name(_AddCommunicationToCaseCommand, "AddCommunicationToCaseCommand");
1339
+ var AddCommunicationToCaseCommand = _AddCommunicationToCaseCommand;
1340
+
1341
+ // src/commands/CreateCaseCommand.ts
1342
+
1343
+
1344
+
1345
+
1346
+ var _CreateCaseCommand = class _CreateCaseCommand extends import_smithy_client.Command.classBuilder().ep({
1347
+ ...commonParams
1348
+ }).m(function(Command, cs, config, o) {
1349
+ return [
1350
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1351
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1352
+ ];
1353
+ }).s("AWSSupport_20130415", "CreateCase", {}).n("SupportClient", "CreateCaseCommand").f(void 0, void 0).ser(se_CreateCaseCommand).de(de_CreateCaseCommand).build() {
1354
+ };
1355
+ __name(_CreateCaseCommand, "CreateCaseCommand");
1356
+ var CreateCaseCommand = _CreateCaseCommand;
1357
+
1358
+ // src/commands/DescribeAttachmentCommand.ts
1359
+
1360
+
1361
+
1362
+
1363
+ var _DescribeAttachmentCommand = class _DescribeAttachmentCommand extends import_smithy_client.Command.classBuilder().ep({
1364
+ ...commonParams
1365
+ }).m(function(Command, cs, config, o) {
1366
+ return [
1367
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1368
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1369
+ ];
1370
+ }).s("AWSSupport_20130415", "DescribeAttachment", {}).n("SupportClient", "DescribeAttachmentCommand").f(void 0, void 0).ser(se_DescribeAttachmentCommand).de(de_DescribeAttachmentCommand).build() {
1371
+ };
1372
+ __name(_DescribeAttachmentCommand, "DescribeAttachmentCommand");
1373
+ var DescribeAttachmentCommand = _DescribeAttachmentCommand;
1374
+
1375
+ // src/commands/DescribeCasesCommand.ts
1376
+
1377
+
1378
+
1379
+
1380
+ var _DescribeCasesCommand = class _DescribeCasesCommand extends import_smithy_client.Command.classBuilder().ep({
1381
+ ...commonParams
1382
+ }).m(function(Command, cs, config, o) {
1383
+ return [
1384
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1385
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1386
+ ];
1387
+ }).s("AWSSupport_20130415", "DescribeCases", {}).n("SupportClient", "DescribeCasesCommand").f(void 0, void 0).ser(se_DescribeCasesCommand).de(de_DescribeCasesCommand).build() {
1388
+ };
1389
+ __name(_DescribeCasesCommand, "DescribeCasesCommand");
1390
+ var DescribeCasesCommand = _DescribeCasesCommand;
1391
+
1392
+ // src/commands/DescribeCommunicationsCommand.ts
1393
+
1394
+
1395
+
1396
+
1397
+ var _DescribeCommunicationsCommand = class _DescribeCommunicationsCommand extends import_smithy_client.Command.classBuilder().ep({
1398
+ ...commonParams
1399
+ }).m(function(Command, cs, config, o) {
1400
+ return [
1401
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1402
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1403
+ ];
1404
+ }).s("AWSSupport_20130415", "DescribeCommunications", {}).n("SupportClient", "DescribeCommunicationsCommand").f(void 0, void 0).ser(se_DescribeCommunicationsCommand).de(de_DescribeCommunicationsCommand).build() {
1405
+ };
1406
+ __name(_DescribeCommunicationsCommand, "DescribeCommunicationsCommand");
1407
+ var DescribeCommunicationsCommand = _DescribeCommunicationsCommand;
1408
+
1409
+ // src/commands/DescribeCreateCaseOptionsCommand.ts
1410
+
1411
+
1412
+
1413
+
1414
+ var _DescribeCreateCaseOptionsCommand = class _DescribeCreateCaseOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
1415
+ ...commonParams
1416
+ }).m(function(Command, cs, config, o) {
1417
+ return [
1418
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1419
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1420
+ ];
1421
+ }).s("AWSSupport_20130415", "DescribeCreateCaseOptions", {}).n("SupportClient", "DescribeCreateCaseOptionsCommand").f(void 0, void 0).ser(se_DescribeCreateCaseOptionsCommand).de(de_DescribeCreateCaseOptionsCommand).build() {
1422
+ };
1423
+ __name(_DescribeCreateCaseOptionsCommand, "DescribeCreateCaseOptionsCommand");
1424
+ var DescribeCreateCaseOptionsCommand = _DescribeCreateCaseOptionsCommand;
1425
+
1426
+ // src/commands/DescribeServicesCommand.ts
1427
+
1428
+
1429
+
1430
+
1431
+ var _DescribeServicesCommand = class _DescribeServicesCommand extends import_smithy_client.Command.classBuilder().ep({
1432
+ ...commonParams
1433
+ }).m(function(Command, cs, config, o) {
1434
+ return [
1435
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1436
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1437
+ ];
1438
+ }).s("AWSSupport_20130415", "DescribeServices", {}).n("SupportClient", "DescribeServicesCommand").f(void 0, void 0).ser(se_DescribeServicesCommand).de(de_DescribeServicesCommand).build() {
1439
+ };
1440
+ __name(_DescribeServicesCommand, "DescribeServicesCommand");
1441
+ var DescribeServicesCommand = _DescribeServicesCommand;
1442
+
1443
+ // src/commands/DescribeSeverityLevelsCommand.ts
1444
+
1445
+
1446
+
1447
+
1448
+ var _DescribeSeverityLevelsCommand = class _DescribeSeverityLevelsCommand extends import_smithy_client.Command.classBuilder().ep({
1449
+ ...commonParams
1450
+ }).m(function(Command, cs, config, o) {
1451
+ return [
1452
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1453
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1454
+ ];
1455
+ }).s("AWSSupport_20130415", "DescribeSeverityLevels", {}).n("SupportClient", "DescribeSeverityLevelsCommand").f(void 0, void 0).ser(se_DescribeSeverityLevelsCommand).de(de_DescribeSeverityLevelsCommand).build() {
1456
+ };
1457
+ __name(_DescribeSeverityLevelsCommand, "DescribeSeverityLevelsCommand");
1458
+ var DescribeSeverityLevelsCommand = _DescribeSeverityLevelsCommand;
1459
+
1460
+ // src/commands/DescribeSupportedLanguagesCommand.ts
1461
+
1462
+
1463
+
1464
+
1465
+ var _DescribeSupportedLanguagesCommand = class _DescribeSupportedLanguagesCommand extends import_smithy_client.Command.classBuilder().ep({
1466
+ ...commonParams
1467
+ }).m(function(Command, cs, config, o) {
1468
+ return [
1469
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1470
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1471
+ ];
1472
+ }).s("AWSSupport_20130415", "DescribeSupportedLanguages", {}).n("SupportClient", "DescribeSupportedLanguagesCommand").f(void 0, void 0).ser(se_DescribeSupportedLanguagesCommand).de(de_DescribeSupportedLanguagesCommand).build() {
1473
+ };
1474
+ __name(_DescribeSupportedLanguagesCommand, "DescribeSupportedLanguagesCommand");
1475
+ var DescribeSupportedLanguagesCommand = _DescribeSupportedLanguagesCommand;
1476
+
1477
+ // src/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.ts
1478
+
1479
+
1480
+
1481
+
1482
+ var _DescribeTrustedAdvisorCheckRefreshStatusesCommand = class _DescribeTrustedAdvisorCheckRefreshStatusesCommand extends import_smithy_client.Command.classBuilder().ep({
1483
+ ...commonParams
1484
+ }).m(function(Command, cs, config, o) {
1485
+ return [
1486
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1487
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1488
+ ];
1489
+ }).s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckRefreshStatuses", {}).n("SupportClient", "DescribeTrustedAdvisorCheckRefreshStatusesCommand").f(void 0, void 0).ser(se_DescribeTrustedAdvisorCheckRefreshStatusesCommand).de(de_DescribeTrustedAdvisorCheckRefreshStatusesCommand).build() {
1490
+ };
1491
+ __name(_DescribeTrustedAdvisorCheckRefreshStatusesCommand, "DescribeTrustedAdvisorCheckRefreshStatusesCommand");
1492
+ var DescribeTrustedAdvisorCheckRefreshStatusesCommand = _DescribeTrustedAdvisorCheckRefreshStatusesCommand;
1493
+
1494
+ // src/commands/DescribeTrustedAdvisorCheckResultCommand.ts
1495
+
1496
+
1497
+
1498
+
1499
+ var _DescribeTrustedAdvisorCheckResultCommand = class _DescribeTrustedAdvisorCheckResultCommand extends import_smithy_client.Command.classBuilder().ep({
1500
+ ...commonParams
1501
+ }).m(function(Command, cs, config, o) {
1502
+ return [
1503
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1504
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1505
+ ];
1506
+ }).s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckResult", {}).n("SupportClient", "DescribeTrustedAdvisorCheckResultCommand").f(void 0, void 0).ser(se_DescribeTrustedAdvisorCheckResultCommand).de(de_DescribeTrustedAdvisorCheckResultCommand).build() {
1507
+ };
1508
+ __name(_DescribeTrustedAdvisorCheckResultCommand, "DescribeTrustedAdvisorCheckResultCommand");
1509
+ var DescribeTrustedAdvisorCheckResultCommand = _DescribeTrustedAdvisorCheckResultCommand;
1510
+
1511
+ // src/commands/DescribeTrustedAdvisorChecksCommand.ts
1512
+
1513
+
1514
+
1515
+
1516
+ var _DescribeTrustedAdvisorChecksCommand = class _DescribeTrustedAdvisorChecksCommand extends import_smithy_client.Command.classBuilder().ep({
1517
+ ...commonParams
1518
+ }).m(function(Command, cs, config, o) {
1519
+ return [
1520
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1521
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1522
+ ];
1523
+ }).s("AWSSupport_20130415", "DescribeTrustedAdvisorChecks", {}).n("SupportClient", "DescribeTrustedAdvisorChecksCommand").f(void 0, void 0).ser(se_DescribeTrustedAdvisorChecksCommand).de(de_DescribeTrustedAdvisorChecksCommand).build() {
1524
+ };
1525
+ __name(_DescribeTrustedAdvisorChecksCommand, "DescribeTrustedAdvisorChecksCommand");
1526
+ var DescribeTrustedAdvisorChecksCommand = _DescribeTrustedAdvisorChecksCommand;
1527
+
1528
+ // src/commands/DescribeTrustedAdvisorCheckSummariesCommand.ts
1529
+
1530
+
1531
+
1532
+
1533
+ var _DescribeTrustedAdvisorCheckSummariesCommand = class _DescribeTrustedAdvisorCheckSummariesCommand extends import_smithy_client.Command.classBuilder().ep({
1534
+ ...commonParams
1535
+ }).m(function(Command, cs, config, o) {
1536
+ return [
1537
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1538
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1539
+ ];
1540
+ }).s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckSummaries", {}).n("SupportClient", "DescribeTrustedAdvisorCheckSummariesCommand").f(void 0, void 0).ser(se_DescribeTrustedAdvisorCheckSummariesCommand).de(de_DescribeTrustedAdvisorCheckSummariesCommand).build() {
1541
+ };
1542
+ __name(_DescribeTrustedAdvisorCheckSummariesCommand, "DescribeTrustedAdvisorCheckSummariesCommand");
1543
+ var DescribeTrustedAdvisorCheckSummariesCommand = _DescribeTrustedAdvisorCheckSummariesCommand;
1544
+
1545
+ // src/commands/RefreshTrustedAdvisorCheckCommand.ts
1546
+
1547
+
1548
+
1549
+
1550
+ var _RefreshTrustedAdvisorCheckCommand = class _RefreshTrustedAdvisorCheckCommand extends import_smithy_client.Command.classBuilder().ep({
1551
+ ...commonParams
1552
+ }).m(function(Command, cs, config, o) {
1553
+ return [
1554
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1555
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1556
+ ];
1557
+ }).s("AWSSupport_20130415", "RefreshTrustedAdvisorCheck", {}).n("SupportClient", "RefreshTrustedAdvisorCheckCommand").f(void 0, void 0).ser(se_RefreshTrustedAdvisorCheckCommand).de(de_RefreshTrustedAdvisorCheckCommand).build() {
1558
+ };
1559
+ __name(_RefreshTrustedAdvisorCheckCommand, "RefreshTrustedAdvisorCheckCommand");
1560
+ var RefreshTrustedAdvisorCheckCommand = _RefreshTrustedAdvisorCheckCommand;
1561
+
1562
+ // src/commands/ResolveCaseCommand.ts
1563
+
1564
+
1565
+
1566
+
1567
+ var _ResolveCaseCommand = class _ResolveCaseCommand extends import_smithy_client.Command.classBuilder().ep({
1568
+ ...commonParams
1569
+ }).m(function(Command, cs, config, o) {
1570
+ return [
1571
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1572
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1573
+ ];
1574
+ }).s("AWSSupport_20130415", "ResolveCase", {}).n("SupportClient", "ResolveCaseCommand").f(void 0, void 0).ser(se_ResolveCaseCommand).de(de_ResolveCaseCommand).build() {
1575
+ };
1576
+ __name(_ResolveCaseCommand, "ResolveCaseCommand");
1577
+ var ResolveCaseCommand = _ResolveCaseCommand;
1578
+
1579
+ // src/Support.ts
1580
+ var commands = {
1581
+ AddAttachmentsToSetCommand,
1582
+ AddCommunicationToCaseCommand,
1583
+ CreateCaseCommand,
1584
+ DescribeAttachmentCommand,
1585
+ DescribeCasesCommand,
1586
+ DescribeCommunicationsCommand,
1587
+ DescribeCreateCaseOptionsCommand,
1588
+ DescribeServicesCommand,
1589
+ DescribeSeverityLevelsCommand,
1590
+ DescribeSupportedLanguagesCommand,
1591
+ DescribeTrustedAdvisorCheckRefreshStatusesCommand,
1592
+ DescribeTrustedAdvisorCheckResultCommand,
1593
+ DescribeTrustedAdvisorChecksCommand,
1594
+ DescribeTrustedAdvisorCheckSummariesCommand,
1595
+ RefreshTrustedAdvisorCheckCommand,
1596
+ ResolveCaseCommand
1597
+ };
1598
+ var _Support = class _Support extends SupportClient {
1599
+ };
1600
+ __name(_Support, "Support");
1601
+ var Support = _Support;
1602
+ (0, import_smithy_client.createAggregatedClient)(commands, Support);
1603
+
1604
+ // src/pagination/DescribeCasesPaginator.ts
1605
+ var import_core = require("@smithy/core");
1606
+ var paginateDescribeCases = (0, import_core.createPaginator)(SupportClient, DescribeCasesCommand, "nextToken", "nextToken", "maxResults");
1607
+
1608
+ // src/pagination/DescribeCommunicationsPaginator.ts
1609
+
1610
+ var paginateDescribeCommunications = (0, import_core.createPaginator)(SupportClient, DescribeCommunicationsCommand, "nextToken", "nextToken", "maxResults");
1611
+
1612
+ // src/index.ts
1613
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1614
+ // Annotate the CommonJS export names for ESM import in node:
1615
+
1616
+ 0 && (module.exports = {
1617
+ AddAttachmentsToSetCommand,
1618
+ AddCommunicationToCaseCommand,
1619
+ AttachmentIdNotFound,
1620
+ AttachmentLimitExceeded,
1621
+ AttachmentSetExpired,
1622
+ AttachmentSetIdNotFound,
1623
+ AttachmentSetSizeLimitExceeded,
1624
+ CaseCreationLimitExceeded,
1625
+ CaseIdNotFound,
1626
+ CreateCaseCommand,
1627
+ DescribeAttachmentCommand,
1628
+ DescribeAttachmentLimitExceeded,
1629
+ DescribeCasesCommand,
1630
+ DescribeCommunicationsCommand,
1631
+ DescribeCreateCaseOptionsCommand,
1632
+ DescribeServicesCommand,
1633
+ DescribeSeverityLevelsCommand,
1634
+ DescribeSupportedLanguagesCommand,
1635
+ DescribeTrustedAdvisorCheckRefreshStatusesCommand,
1636
+ DescribeTrustedAdvisorCheckResultCommand,
1637
+ DescribeTrustedAdvisorCheckSummariesCommand,
1638
+ DescribeTrustedAdvisorChecksCommand,
1639
+ InternalServerError,
1640
+ RefreshTrustedAdvisorCheckCommand,
1641
+ ResolveCaseCommand,
1642
+ Support,
1643
+ SupportClient,
1644
+ SupportServiceException,
1645
+ ThrottlingException,
1646
+ __Client,
1647
+ paginateDescribeCases,
1648
+ paginateDescribeCommunications
1649
+ });
1650
+