@aws-sdk/client-appintegrations 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 (41) hide show
  1. package/dist-cjs/AppIntegrations.js +1 -53
  2. package/dist-cjs/AppIntegrationsClient.js +1 -43
  3. package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
  4. package/dist-cjs/commands/CreateDataIntegrationCommand.js +1 -28
  5. package/dist-cjs/commands/CreateEventIntegrationCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteDataIntegrationCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteEventIntegrationCommand.js +1 -28
  9. package/dist-cjs/commands/GetApplicationCommand.js +1 -28
  10. package/dist-cjs/commands/GetDataIntegrationCommand.js +1 -28
  11. package/dist-cjs/commands/GetEventIntegrationCommand.js +1 -28
  12. package/dist-cjs/commands/ListApplicationAssociationsCommand.js +1 -28
  13. package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
  14. package/dist-cjs/commands/ListDataIntegrationAssociationsCommand.js +1 -28
  15. package/dist-cjs/commands/ListDataIntegrationsCommand.js +1 -28
  16. package/dist-cjs/commands/ListEventIntegrationAssociationsCommand.js +1 -28
  17. package/dist-cjs/commands/ListEventIntegrationsCommand.js +1 -28
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  19. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  20. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  21. package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
  22. package/dist-cjs/commands/UpdateDataIntegrationCommand.js +1 -28
  23. package/dist-cjs/commands/UpdateEventIntegrationCommand.js +1 -28
  24. package/dist-cjs/commands/index.js +1 -24
  25. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  26. package/dist-cjs/extensionConfiguration.js +1 -2
  27. package/dist-cjs/index.js +2192 -11
  28. package/dist-cjs/models/AppIntegrationsServiceException.js +1 -12
  29. package/dist-cjs/models/index.js +1 -4
  30. package/dist-cjs/models/models_0.js +1 -116
  31. package/dist-cjs/pagination/Interfaces.js +1 -2
  32. package/dist-cjs/pagination/ListApplicationAssociationsPaginator.js +1 -7
  33. package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
  34. package/dist-cjs/pagination/ListDataIntegrationAssociationsPaginator.js +1 -7
  35. package/dist-cjs/pagination/ListDataIntegrationsPaginator.js +1 -7
  36. package/dist-cjs/pagination/ListEventIntegrationAssociationsPaginator.js +1 -7
  37. package/dist-cjs/pagination/ListEventIntegrationsPaginator.js +1 -7
  38. package/dist-cjs/pagination/index.js +1 -10
  39. package/dist-cjs/protocols/Aws_restJson1.js +1 -1457
  40. package/dist-cjs/runtimeExtensions.js +1 -22
  41. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2193 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppIntegrationsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./AppIntegrationsClient"), exports);
6
- tslib_1.__exportStar(require("./AppIntegrations"), 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 AppIntegrationsServiceException_1 = require("./models/AppIntegrationsServiceException");
12
- Object.defineProperty(exports, "AppIntegrationsServiceException", { enumerable: true, get: function () { return AppIntegrationsServiceException_1.AppIntegrationsServiceException; } });
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
+ AccessDeniedException: () => AccessDeniedException,
25
+ AppIntegrations: () => AppIntegrations,
26
+ AppIntegrationsClient: () => AppIntegrationsClient,
27
+ AppIntegrationsServiceException: () => AppIntegrationsServiceException,
28
+ CreateApplicationCommand: () => CreateApplicationCommand,
29
+ CreateDataIntegrationCommand: () => CreateDataIntegrationCommand,
30
+ CreateEventIntegrationCommand: () => CreateEventIntegrationCommand,
31
+ DeleteApplicationCommand: () => DeleteApplicationCommand,
32
+ DeleteDataIntegrationCommand: () => DeleteDataIntegrationCommand,
33
+ DeleteEventIntegrationCommand: () => DeleteEventIntegrationCommand,
34
+ DuplicateResourceException: () => DuplicateResourceException,
35
+ GetApplicationCommand: () => GetApplicationCommand,
36
+ GetDataIntegrationCommand: () => GetDataIntegrationCommand,
37
+ GetEventIntegrationCommand: () => GetEventIntegrationCommand,
38
+ InternalServiceError: () => InternalServiceError,
39
+ InvalidRequestException: () => InvalidRequestException,
40
+ ListApplicationAssociationsCommand: () => ListApplicationAssociationsCommand,
41
+ ListApplicationsCommand: () => ListApplicationsCommand,
42
+ ListDataIntegrationAssociationsCommand: () => ListDataIntegrationAssociationsCommand,
43
+ ListDataIntegrationsCommand: () => ListDataIntegrationsCommand,
44
+ ListEventIntegrationAssociationsCommand: () => ListEventIntegrationAssociationsCommand,
45
+ ListEventIntegrationsCommand: () => ListEventIntegrationsCommand,
46
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
47
+ ResourceNotFoundException: () => ResourceNotFoundException,
48
+ ResourceQuotaExceededException: () => ResourceQuotaExceededException,
49
+ TagResourceCommand: () => TagResourceCommand,
50
+ ThrottlingException: () => ThrottlingException,
51
+ UnsupportedOperationException: () => UnsupportedOperationException,
52
+ UntagResourceCommand: () => UntagResourceCommand,
53
+ UpdateApplicationCommand: () => UpdateApplicationCommand,
54
+ UpdateDataIntegrationCommand: () => UpdateDataIntegrationCommand,
55
+ UpdateEventIntegrationCommand: () => UpdateEventIntegrationCommand,
56
+ __Client: () => import_smithy_client.Client,
57
+ paginateListApplicationAssociations: () => paginateListApplicationAssociations,
58
+ paginateListApplications: () => paginateListApplications,
59
+ paginateListDataIntegrationAssociations: () => paginateListDataIntegrationAssociations,
60
+ paginateListDataIntegrations: () => paginateListDataIntegrations,
61
+ paginateListEventIntegrationAssociations: () => paginateListEventIntegrationAssociations,
62
+ paginateListEventIntegrations: () => paginateListEventIntegrations
63
+ });
64
+ module.exports = __toCommonJS(src_exports);
65
+
66
+ // src/AppIntegrationsClient.ts
67
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
68
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
69
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
70
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
71
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
72
+ var import_config_resolver = require("@smithy/config-resolver");
73
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
74
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
75
+ var import_middleware_retry = require("@smithy/middleware-retry");
76
+
77
+
78
+ // src/endpoint/EndpointParameters.ts
79
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
80
+ return {
81
+ ...options,
82
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
83
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
84
+ defaultSigningName: "app-integrations"
85
+ };
86
+ }, "resolveClientEndpointParameters");
87
+ var commonParams = {
88
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
89
+ Endpoint: { type: "builtInParams", name: "endpoint" },
90
+ Region: { type: "builtInParams", name: "region" },
91
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
92
+ };
93
+
94
+ // src/AppIntegrationsClient.ts
95
+ var import_runtimeConfig = require("././runtimeConfig");
96
+
97
+ // src/runtimeExtensions.ts
98
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
99
+ var import_protocol_http = require("@smithy/protocol-http");
100
+ var import_smithy_client = require("@smithy/smithy-client");
101
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
102
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
103
+ const extensionConfiguration = {
104
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
105
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
106
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
107
+ };
108
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
109
+ return {
110
+ ...runtimeConfig,
111
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
112
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
113
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
114
+ };
115
+ }, "resolveRuntimeExtensions");
116
+
117
+ // src/AppIntegrationsClient.ts
118
+ var _AppIntegrationsClient = class _AppIntegrationsClient extends import_smithy_client.Client {
119
+ constructor(...[configuration]) {
120
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
121
+ const _config_1 = resolveClientEndpointParameters(_config_0);
122
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
123
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
124
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
125
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
126
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
127
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
128
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
129
+ super(_config_8);
130
+ this.config = _config_8;
131
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
132
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
133
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
134
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
135
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
136
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
137
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
138
+ }
139
+ /**
140
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
141
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
142
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
143
+ */
144
+ destroy() {
145
+ super.destroy();
146
+ }
147
+ };
148
+ __name(_AppIntegrationsClient, "AppIntegrationsClient");
149
+ var AppIntegrationsClient = _AppIntegrationsClient;
150
+
151
+ // src/AppIntegrations.ts
152
+
153
+
154
+ // src/commands/CreateApplicationCommand.ts
155
+
156
+ var import_middleware_serde = require("@smithy/middleware-serde");
157
+
158
+ var import_types = require("@smithy/types");
159
+
160
+ // src/protocols/Aws_restJson1.ts
161
+ var import_core = require("@smithy/core");
162
+
163
+ var import_uuid = require("uuid");
164
+
165
+ // src/models/AppIntegrationsServiceException.ts
166
+
167
+ var _AppIntegrationsServiceException = class _AppIntegrationsServiceException extends import_smithy_client.ServiceException {
168
+ /**
169
+ * @internal
170
+ */
171
+ constructor(options) {
172
+ super(options);
173
+ Object.setPrototypeOf(this, _AppIntegrationsServiceException.prototype);
174
+ }
175
+ };
176
+ __name(_AppIntegrationsServiceException, "AppIntegrationsServiceException");
177
+ var AppIntegrationsServiceException = _AppIntegrationsServiceException;
178
+
179
+ // src/models/models_0.ts
180
+ var _AccessDeniedException = class _AccessDeniedException extends AppIntegrationsServiceException {
181
+ /**
182
+ * @internal
183
+ */
184
+ constructor(opts) {
185
+ super({
186
+ name: "AccessDeniedException",
187
+ $fault: "client",
188
+ ...opts
189
+ });
190
+ this.name = "AccessDeniedException";
191
+ this.$fault = "client";
192
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ };
196
+ __name(_AccessDeniedException, "AccessDeniedException");
197
+ var AccessDeniedException = _AccessDeniedException;
198
+ var _DuplicateResourceException = class _DuplicateResourceException extends AppIntegrationsServiceException {
199
+ /**
200
+ * @internal
201
+ */
202
+ constructor(opts) {
203
+ super({
204
+ name: "DuplicateResourceException",
205
+ $fault: "client",
206
+ ...opts
207
+ });
208
+ this.name = "DuplicateResourceException";
209
+ this.$fault = "client";
210
+ Object.setPrototypeOf(this, _DuplicateResourceException.prototype);
211
+ this.Message = opts.Message;
212
+ }
213
+ };
214
+ __name(_DuplicateResourceException, "DuplicateResourceException");
215
+ var DuplicateResourceException = _DuplicateResourceException;
216
+ var _InternalServiceError = class _InternalServiceError extends AppIntegrationsServiceException {
217
+ /**
218
+ * @internal
219
+ */
220
+ constructor(opts) {
221
+ super({
222
+ name: "InternalServiceError",
223
+ $fault: "server",
224
+ ...opts
225
+ });
226
+ this.name = "InternalServiceError";
227
+ this.$fault = "server";
228
+ Object.setPrototypeOf(this, _InternalServiceError.prototype);
229
+ this.Message = opts.Message;
230
+ }
231
+ };
232
+ __name(_InternalServiceError, "InternalServiceError");
233
+ var InternalServiceError = _InternalServiceError;
234
+ var _InvalidRequestException = class _InvalidRequestException extends AppIntegrationsServiceException {
235
+ /**
236
+ * @internal
237
+ */
238
+ constructor(opts) {
239
+ super({
240
+ name: "InvalidRequestException",
241
+ $fault: "client",
242
+ ...opts
243
+ });
244
+ this.name = "InvalidRequestException";
245
+ this.$fault = "client";
246
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
247
+ this.Message = opts.Message;
248
+ }
249
+ };
250
+ __name(_InvalidRequestException, "InvalidRequestException");
251
+ var InvalidRequestException = _InvalidRequestException;
252
+ var _ResourceQuotaExceededException = class _ResourceQuotaExceededException extends AppIntegrationsServiceException {
253
+ /**
254
+ * @internal
255
+ */
256
+ constructor(opts) {
257
+ super({
258
+ name: "ResourceQuotaExceededException",
259
+ $fault: "client",
260
+ ...opts
261
+ });
262
+ this.name = "ResourceQuotaExceededException";
263
+ this.$fault = "client";
264
+ Object.setPrototypeOf(this, _ResourceQuotaExceededException.prototype);
265
+ this.Message = opts.Message;
266
+ }
267
+ };
268
+ __name(_ResourceQuotaExceededException, "ResourceQuotaExceededException");
269
+ var ResourceQuotaExceededException = _ResourceQuotaExceededException;
270
+ var _ThrottlingException = class _ThrottlingException extends AppIntegrationsServiceException {
271
+ /**
272
+ * @internal
273
+ */
274
+ constructor(opts) {
275
+ super({
276
+ name: "ThrottlingException",
277
+ $fault: "client",
278
+ ...opts
279
+ });
280
+ this.name = "ThrottlingException";
281
+ this.$fault = "client";
282
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
283
+ this.Message = opts.Message;
284
+ }
285
+ };
286
+ __name(_ThrottlingException, "ThrottlingException");
287
+ var ThrottlingException = _ThrottlingException;
288
+ var _UnsupportedOperationException = class _UnsupportedOperationException extends AppIntegrationsServiceException {
289
+ /**
290
+ * @internal
291
+ */
292
+ constructor(opts) {
293
+ super({
294
+ name: "UnsupportedOperationException",
295
+ $fault: "client",
296
+ ...opts
297
+ });
298
+ this.name = "UnsupportedOperationException";
299
+ this.$fault = "client";
300
+ Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
301
+ this.Message = opts.Message;
302
+ }
303
+ };
304
+ __name(_UnsupportedOperationException, "UnsupportedOperationException");
305
+ var UnsupportedOperationException = _UnsupportedOperationException;
306
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends AppIntegrationsServiceException {
307
+ /**
308
+ * @internal
309
+ */
310
+ constructor(opts) {
311
+ super({
312
+ name: "ResourceNotFoundException",
313
+ $fault: "client",
314
+ ...opts
315
+ });
316
+ this.name = "ResourceNotFoundException";
317
+ this.$fault = "client";
318
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
319
+ this.Message = opts.Message;
320
+ }
321
+ };
322
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
323
+ var ResourceNotFoundException = _ResourceNotFoundException;
324
+
325
+ // src/protocols/Aws_restJson1.ts
326
+ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
327
+ const b = (0, import_core.requestBuilder)(input, context);
328
+ const headers = {
329
+ "content-type": "application/json"
330
+ };
331
+ b.bp("/applications");
332
+ let body;
333
+ body = JSON.stringify(
334
+ (0, import_smithy_client.take)(input, {
335
+ ApplicationSourceConfig: (_) => (0, import_smithy_client._json)(_),
336
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
337
+ Description: [],
338
+ Name: [],
339
+ Namespace: [],
340
+ Permissions: (_) => (0, import_smithy_client._json)(_),
341
+ Publications: (_) => (0, import_smithy_client._json)(_),
342
+ Subscriptions: (_) => (0, import_smithy_client._json)(_),
343
+ Tags: (_) => (0, import_smithy_client._json)(_)
344
+ })
345
+ );
346
+ b.m("POST").h(headers).b(body);
347
+ return b.build();
348
+ }, "se_CreateApplicationCommand");
349
+ var se_CreateDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
350
+ const b = (0, import_core.requestBuilder)(input, context);
351
+ const headers = {
352
+ "content-type": "application/json"
353
+ };
354
+ b.bp("/dataIntegrations");
355
+ let body;
356
+ body = JSON.stringify(
357
+ (0, import_smithy_client.take)(input, {
358
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
359
+ Description: [],
360
+ FileConfiguration: (_) => (0, import_smithy_client._json)(_),
361
+ KmsKey: [],
362
+ Name: [],
363
+ ObjectConfiguration: (_) => (0, import_smithy_client._json)(_),
364
+ ScheduleConfig: (_) => (0, import_smithy_client._json)(_),
365
+ SourceURI: [],
366
+ Tags: (_) => (0, import_smithy_client._json)(_)
367
+ })
368
+ );
369
+ b.m("POST").h(headers).b(body);
370
+ return b.build();
371
+ }, "se_CreateDataIntegrationCommand");
372
+ var se_CreateEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
373
+ const b = (0, import_core.requestBuilder)(input, context);
374
+ const headers = {
375
+ "content-type": "application/json"
376
+ };
377
+ b.bp("/eventIntegrations");
378
+ let body;
379
+ body = JSON.stringify(
380
+ (0, import_smithy_client.take)(input, {
381
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
382
+ Description: [],
383
+ EventBridgeBus: [],
384
+ EventFilter: (_) => (0, import_smithy_client._json)(_),
385
+ Name: [],
386
+ Tags: (_) => (0, import_smithy_client._json)(_)
387
+ })
388
+ );
389
+ b.m("POST").h(headers).b(body);
390
+ return b.build();
391
+ }, "se_CreateEventIntegrationCommand");
392
+ var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
393
+ const b = (0, import_core.requestBuilder)(input, context);
394
+ const headers = {};
395
+ b.bp("/applications/{Arn}");
396
+ b.p("Arn", () => input.Arn, "{Arn}", false);
397
+ let body;
398
+ b.m("DELETE").h(headers).b(body);
399
+ return b.build();
400
+ }, "se_DeleteApplicationCommand");
401
+ var se_DeleteDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
402
+ const b = (0, import_core.requestBuilder)(input, context);
403
+ const headers = {};
404
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}");
405
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
406
+ let body;
407
+ b.m("DELETE").h(headers).b(body);
408
+ return b.build();
409
+ }, "se_DeleteDataIntegrationCommand");
410
+ var se_DeleteEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
411
+ const b = (0, import_core.requestBuilder)(input, context);
412
+ const headers = {};
413
+ b.bp("/eventIntegrations/{Name}");
414
+ b.p("Name", () => input.Name, "{Name}", false);
415
+ let body;
416
+ b.m("DELETE").h(headers).b(body);
417
+ return b.build();
418
+ }, "se_DeleteEventIntegrationCommand");
419
+ var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
420
+ const b = (0, import_core.requestBuilder)(input, context);
421
+ const headers = {};
422
+ b.bp("/applications/{Arn}");
423
+ b.p("Arn", () => input.Arn, "{Arn}", false);
424
+ let body;
425
+ b.m("GET").h(headers).b(body);
426
+ return b.build();
427
+ }, "se_GetApplicationCommand");
428
+ var se_GetDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
429
+ const b = (0, import_core.requestBuilder)(input, context);
430
+ const headers = {};
431
+ b.bp("/dataIntegrations/{Identifier}");
432
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
433
+ let body;
434
+ b.m("GET").h(headers).b(body);
435
+ return b.build();
436
+ }, "se_GetDataIntegrationCommand");
437
+ var se_GetEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
438
+ const b = (0, import_core.requestBuilder)(input, context);
439
+ const headers = {};
440
+ b.bp("/eventIntegrations/{Name}");
441
+ b.p("Name", () => input.Name, "{Name}", false);
442
+ let body;
443
+ b.m("GET").h(headers).b(body);
444
+ return b.build();
445
+ }, "se_GetEventIntegrationCommand");
446
+ var se_ListApplicationAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
447
+ const b = (0, import_core.requestBuilder)(input, context);
448
+ const headers = {};
449
+ b.bp("/applications/{ApplicationId}/associations");
450
+ b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
451
+ const query = (0, import_smithy_client.map)({
452
+ [_nT]: [, input[_NT]],
453
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
454
+ });
455
+ let body;
456
+ b.m("GET").h(headers).q(query).b(body);
457
+ return b.build();
458
+ }, "se_ListApplicationAssociationsCommand");
459
+ var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
460
+ const b = (0, import_core.requestBuilder)(input, context);
461
+ const headers = {};
462
+ b.bp("/applications");
463
+ const query = (0, import_smithy_client.map)({
464
+ [_nT]: [, input[_NT]],
465
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
466
+ });
467
+ let body;
468
+ b.m("GET").h(headers).q(query).b(body);
469
+ return b.build();
470
+ }, "se_ListApplicationsCommand");
471
+ var se_ListDataIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
472
+ const b = (0, import_core.requestBuilder)(input, context);
473
+ const headers = {};
474
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
475
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
476
+ const query = (0, import_smithy_client.map)({
477
+ [_nT]: [, input[_NT]],
478
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
479
+ });
480
+ let body;
481
+ b.m("GET").h(headers).q(query).b(body);
482
+ return b.build();
483
+ }, "se_ListDataIntegrationAssociationsCommand");
484
+ var se_ListDataIntegrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
485
+ const b = (0, import_core.requestBuilder)(input, context);
486
+ const headers = {};
487
+ b.bp("/dataIntegrations");
488
+ const query = (0, import_smithy_client.map)({
489
+ [_nT]: [, input[_NT]],
490
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
491
+ });
492
+ let body;
493
+ b.m("GET").h(headers).q(query).b(body);
494
+ return b.build();
495
+ }, "se_ListDataIntegrationsCommand");
496
+ var se_ListEventIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
497
+ const b = (0, import_core.requestBuilder)(input, context);
498
+ const headers = {};
499
+ b.bp("/eventIntegrations/{EventIntegrationName}/associations");
500
+ b.p("EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
501
+ const query = (0, import_smithy_client.map)({
502
+ [_nT]: [, input[_NT]],
503
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
504
+ });
505
+ let body;
506
+ b.m("GET").h(headers).q(query).b(body);
507
+ return b.build();
508
+ }, "se_ListEventIntegrationAssociationsCommand");
509
+ var se_ListEventIntegrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
510
+ const b = (0, import_core.requestBuilder)(input, context);
511
+ const headers = {};
512
+ b.bp("/eventIntegrations");
513
+ const query = (0, import_smithy_client.map)({
514
+ [_nT]: [, input[_NT]],
515
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
516
+ });
517
+ let body;
518
+ b.m("GET").h(headers).q(query).b(body);
519
+ return b.build();
520
+ }, "se_ListEventIntegrationsCommand");
521
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
522
+ const b = (0, import_core.requestBuilder)(input, context);
523
+ const headers = {};
524
+ b.bp("/tags/{resourceArn}");
525
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
526
+ let body;
527
+ b.m("GET").h(headers).b(body);
528
+ return b.build();
529
+ }, "se_ListTagsForResourceCommand");
530
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
531
+ const b = (0, import_core.requestBuilder)(input, context);
532
+ const headers = {
533
+ "content-type": "application/json"
534
+ };
535
+ b.bp("/tags/{resourceArn}");
536
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
537
+ let body;
538
+ body = JSON.stringify(
539
+ (0, import_smithy_client.take)(input, {
540
+ tags: (_) => (0, import_smithy_client._json)(_)
541
+ })
542
+ );
543
+ b.m("POST").h(headers).b(body);
544
+ return b.build();
545
+ }, "se_TagResourceCommand");
546
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
547
+ const b = (0, import_core.requestBuilder)(input, context);
548
+ const headers = {};
549
+ b.bp("/tags/{resourceArn}");
550
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
551
+ const query = (0, import_smithy_client.map)({
552
+ [_tK]: [
553
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
554
+ () => (input[_tK] || []).map((_entry) => _entry)
555
+ ]
556
+ });
557
+ let body;
558
+ b.m("DELETE").h(headers).q(query).b(body);
559
+ return b.build();
560
+ }, "se_UntagResourceCommand");
561
+ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
562
+ const b = (0, import_core.requestBuilder)(input, context);
563
+ const headers = {
564
+ "content-type": "application/json"
565
+ };
566
+ b.bp("/applications/{Arn}");
567
+ b.p("Arn", () => input.Arn, "{Arn}", false);
568
+ let body;
569
+ body = JSON.stringify(
570
+ (0, import_smithy_client.take)(input, {
571
+ ApplicationSourceConfig: (_) => (0, import_smithy_client._json)(_),
572
+ Description: [],
573
+ Name: [],
574
+ Permissions: (_) => (0, import_smithy_client._json)(_),
575
+ Publications: (_) => (0, import_smithy_client._json)(_),
576
+ Subscriptions: (_) => (0, import_smithy_client._json)(_)
577
+ })
578
+ );
579
+ b.m("PATCH").h(headers).b(body);
580
+ return b.build();
581
+ }, "se_UpdateApplicationCommand");
582
+ var se_UpdateDataIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
583
+ const b = (0, import_core.requestBuilder)(input, context);
584
+ const headers = {
585
+ "content-type": "application/json"
586
+ };
587
+ b.bp("/dataIntegrations/{Identifier}");
588
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
589
+ let body;
590
+ body = JSON.stringify(
591
+ (0, import_smithy_client.take)(input, {
592
+ Description: [],
593
+ Name: []
594
+ })
595
+ );
596
+ b.m("PATCH").h(headers).b(body);
597
+ return b.build();
598
+ }, "se_UpdateDataIntegrationCommand");
599
+ var se_UpdateEventIntegrationCommand = /* @__PURE__ */ __name(async (input, context) => {
600
+ const b = (0, import_core.requestBuilder)(input, context);
601
+ const headers = {
602
+ "content-type": "application/json"
603
+ };
604
+ b.bp("/eventIntegrations/{Name}");
605
+ b.p("Name", () => input.Name, "{Name}", false);
606
+ let body;
607
+ body = JSON.stringify(
608
+ (0, import_smithy_client.take)(input, {
609
+ Description: []
610
+ })
611
+ );
612
+ b.m("PATCH").h(headers).b(body);
613
+ return b.build();
614
+ }, "se_UpdateEventIntegrationCommand");
615
+ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
616
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
617
+ return de_CreateApplicationCommandError(output, context);
618
+ }
619
+ const contents = (0, import_smithy_client.map)({
620
+ $metadata: deserializeMetadata(output)
621
+ });
622
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
623
+ const doc = (0, import_smithy_client.take)(data, {
624
+ Arn: import_smithy_client.expectString,
625
+ Id: import_smithy_client.expectString
626
+ });
627
+ Object.assign(contents, doc);
628
+ return contents;
629
+ }, "de_CreateApplicationCommand");
630
+ var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
631
+ const parsedOutput = {
632
+ ...output,
633
+ body: await parseErrorBody(output.body, context)
634
+ };
635
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
636
+ switch (errorCode) {
637
+ case "AccessDeniedException":
638
+ case "com.amazonaws.appintegrations#AccessDeniedException":
639
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
640
+ case "DuplicateResourceException":
641
+ case "com.amazonaws.appintegrations#DuplicateResourceException":
642
+ throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
643
+ case "InternalServiceError":
644
+ case "com.amazonaws.appintegrations#InternalServiceError":
645
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
646
+ case "InvalidRequestException":
647
+ case "com.amazonaws.appintegrations#InvalidRequestException":
648
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
649
+ case "ResourceQuotaExceededException":
650
+ case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
651
+ throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
652
+ case "ThrottlingException":
653
+ case "com.amazonaws.appintegrations#ThrottlingException":
654
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
655
+ case "UnsupportedOperationException":
656
+ case "com.amazonaws.appintegrations#UnsupportedOperationException":
657
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
658
+ default:
659
+ const parsedBody = parsedOutput.body;
660
+ return throwDefaultError({
661
+ output,
662
+ parsedBody,
663
+ errorCode
664
+ });
665
+ }
666
+ }, "de_CreateApplicationCommandError");
667
+ var de_CreateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
668
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
669
+ return de_CreateDataIntegrationCommandError(output, context);
670
+ }
671
+ const contents = (0, import_smithy_client.map)({
672
+ $metadata: deserializeMetadata(output)
673
+ });
674
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
675
+ const doc = (0, import_smithy_client.take)(data, {
676
+ Arn: import_smithy_client.expectString,
677
+ ClientToken: import_smithy_client.expectString,
678
+ Description: import_smithy_client.expectString,
679
+ FileConfiguration: import_smithy_client._json,
680
+ Id: import_smithy_client.expectString,
681
+ KmsKey: import_smithy_client.expectString,
682
+ Name: import_smithy_client.expectString,
683
+ ObjectConfiguration: import_smithy_client._json,
684
+ ScheduleConfiguration: import_smithy_client._json,
685
+ SourceURI: import_smithy_client.expectString,
686
+ Tags: import_smithy_client._json
687
+ });
688
+ Object.assign(contents, doc);
689
+ return contents;
690
+ }, "de_CreateDataIntegrationCommand");
691
+ var de_CreateDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
692
+ const parsedOutput = {
693
+ ...output,
694
+ body: await parseErrorBody(output.body, context)
695
+ };
696
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
697
+ switch (errorCode) {
698
+ case "AccessDeniedException":
699
+ case "com.amazonaws.appintegrations#AccessDeniedException":
700
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
701
+ case "DuplicateResourceException":
702
+ case "com.amazonaws.appintegrations#DuplicateResourceException":
703
+ throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
704
+ case "InternalServiceError":
705
+ case "com.amazonaws.appintegrations#InternalServiceError":
706
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
707
+ case "InvalidRequestException":
708
+ case "com.amazonaws.appintegrations#InvalidRequestException":
709
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
710
+ case "ResourceQuotaExceededException":
711
+ case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
712
+ throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
713
+ case "ThrottlingException":
714
+ case "com.amazonaws.appintegrations#ThrottlingException":
715
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
716
+ default:
717
+ const parsedBody = parsedOutput.body;
718
+ return throwDefaultError({
719
+ output,
720
+ parsedBody,
721
+ errorCode
722
+ });
723
+ }
724
+ }, "de_CreateDataIntegrationCommandError");
725
+ var de_CreateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
726
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
727
+ return de_CreateEventIntegrationCommandError(output, context);
728
+ }
729
+ const contents = (0, import_smithy_client.map)({
730
+ $metadata: deserializeMetadata(output)
731
+ });
732
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
733
+ const doc = (0, import_smithy_client.take)(data, {
734
+ EventIntegrationArn: import_smithy_client.expectString
735
+ });
736
+ Object.assign(contents, doc);
737
+ return contents;
738
+ }, "de_CreateEventIntegrationCommand");
739
+ var de_CreateEventIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
740
+ const parsedOutput = {
741
+ ...output,
742
+ body: await parseErrorBody(output.body, context)
743
+ };
744
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
745
+ switch (errorCode) {
746
+ case "AccessDeniedException":
747
+ case "com.amazonaws.appintegrations#AccessDeniedException":
748
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
749
+ case "DuplicateResourceException":
750
+ case "com.amazonaws.appintegrations#DuplicateResourceException":
751
+ throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
752
+ case "InternalServiceError":
753
+ case "com.amazonaws.appintegrations#InternalServiceError":
754
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
755
+ case "InvalidRequestException":
756
+ case "com.amazonaws.appintegrations#InvalidRequestException":
757
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
758
+ case "ResourceQuotaExceededException":
759
+ case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
760
+ throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
761
+ case "ThrottlingException":
762
+ case "com.amazonaws.appintegrations#ThrottlingException":
763
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
764
+ default:
765
+ const parsedBody = parsedOutput.body;
766
+ return throwDefaultError({
767
+ output,
768
+ parsedBody,
769
+ errorCode
770
+ });
771
+ }
772
+ }, "de_CreateEventIntegrationCommandError");
773
+ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
774
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
775
+ return de_DeleteApplicationCommandError(output, context);
776
+ }
777
+ const contents = (0, import_smithy_client.map)({
778
+ $metadata: deserializeMetadata(output)
779
+ });
780
+ await (0, import_smithy_client.collectBody)(output.body, context);
781
+ return contents;
782
+ }, "de_DeleteApplicationCommand");
783
+ var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
784
+ const parsedOutput = {
785
+ ...output,
786
+ body: await parseErrorBody(output.body, context)
787
+ };
788
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
789
+ switch (errorCode) {
790
+ case "AccessDeniedException":
791
+ case "com.amazonaws.appintegrations#AccessDeniedException":
792
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
793
+ case "InternalServiceError":
794
+ case "com.amazonaws.appintegrations#InternalServiceError":
795
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
796
+ case "InvalidRequestException":
797
+ case "com.amazonaws.appintegrations#InvalidRequestException":
798
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
799
+ case "ResourceNotFoundException":
800
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
801
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
802
+ case "ThrottlingException":
803
+ case "com.amazonaws.appintegrations#ThrottlingException":
804
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
805
+ default:
806
+ const parsedBody = parsedOutput.body;
807
+ return throwDefaultError({
808
+ output,
809
+ parsedBody,
810
+ errorCode
811
+ });
812
+ }
813
+ }, "de_DeleteApplicationCommandError");
814
+ var de_DeleteDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
815
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
816
+ return de_DeleteDataIntegrationCommandError(output, context);
817
+ }
818
+ const contents = (0, import_smithy_client.map)({
819
+ $metadata: deserializeMetadata(output)
820
+ });
821
+ await (0, import_smithy_client.collectBody)(output.body, context);
822
+ return contents;
823
+ }, "de_DeleteDataIntegrationCommand");
824
+ var de_DeleteDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
825
+ const parsedOutput = {
826
+ ...output,
827
+ body: await parseErrorBody(output.body, context)
828
+ };
829
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
830
+ switch (errorCode) {
831
+ case "AccessDeniedException":
832
+ case "com.amazonaws.appintegrations#AccessDeniedException":
833
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
834
+ case "InternalServiceError":
835
+ case "com.amazonaws.appintegrations#InternalServiceError":
836
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
837
+ case "InvalidRequestException":
838
+ case "com.amazonaws.appintegrations#InvalidRequestException":
839
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
840
+ case "ResourceNotFoundException":
841
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
842
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
843
+ case "ThrottlingException":
844
+ case "com.amazonaws.appintegrations#ThrottlingException":
845
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
846
+ default:
847
+ const parsedBody = parsedOutput.body;
848
+ return throwDefaultError({
849
+ output,
850
+ parsedBody,
851
+ errorCode
852
+ });
853
+ }
854
+ }, "de_DeleteDataIntegrationCommandError");
855
+ var de_DeleteEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
856
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
857
+ return de_DeleteEventIntegrationCommandError(output, context);
858
+ }
859
+ const contents = (0, import_smithy_client.map)({
860
+ $metadata: deserializeMetadata(output)
861
+ });
862
+ await (0, import_smithy_client.collectBody)(output.body, context);
863
+ return contents;
864
+ }, "de_DeleteEventIntegrationCommand");
865
+ var de_DeleteEventIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
866
+ const parsedOutput = {
867
+ ...output,
868
+ body: await parseErrorBody(output.body, context)
869
+ };
870
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
871
+ switch (errorCode) {
872
+ case "AccessDeniedException":
873
+ case "com.amazonaws.appintegrations#AccessDeniedException":
874
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
875
+ case "InternalServiceError":
876
+ case "com.amazonaws.appintegrations#InternalServiceError":
877
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
878
+ case "InvalidRequestException":
879
+ case "com.amazonaws.appintegrations#InvalidRequestException":
880
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
881
+ case "ResourceNotFoundException":
882
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
883
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
884
+ case "ThrottlingException":
885
+ case "com.amazonaws.appintegrations#ThrottlingException":
886
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
887
+ default:
888
+ const parsedBody = parsedOutput.body;
889
+ return throwDefaultError({
890
+ output,
891
+ parsedBody,
892
+ errorCode
893
+ });
894
+ }
895
+ }, "de_DeleteEventIntegrationCommandError");
896
+ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
897
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
898
+ return de_GetApplicationCommandError(output, context);
899
+ }
900
+ const contents = (0, import_smithy_client.map)({
901
+ $metadata: deserializeMetadata(output)
902
+ });
903
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
904
+ const doc = (0, import_smithy_client.take)(data, {
905
+ ApplicationSourceConfig: import_smithy_client._json,
906
+ Arn: import_smithy_client.expectString,
907
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
908
+ Description: import_smithy_client.expectString,
909
+ Id: import_smithy_client.expectString,
910
+ LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
911
+ Name: import_smithy_client.expectString,
912
+ Namespace: import_smithy_client.expectString,
913
+ Permissions: import_smithy_client._json,
914
+ Publications: import_smithy_client._json,
915
+ Subscriptions: import_smithy_client._json,
916
+ Tags: import_smithy_client._json
917
+ });
918
+ Object.assign(contents, doc);
919
+ return contents;
920
+ }, "de_GetApplicationCommand");
921
+ var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
922
+ const parsedOutput = {
923
+ ...output,
924
+ body: await parseErrorBody(output.body, context)
925
+ };
926
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
927
+ switch (errorCode) {
928
+ case "AccessDeniedException":
929
+ case "com.amazonaws.appintegrations#AccessDeniedException":
930
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
931
+ case "InternalServiceError":
932
+ case "com.amazonaws.appintegrations#InternalServiceError":
933
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
934
+ case "InvalidRequestException":
935
+ case "com.amazonaws.appintegrations#InvalidRequestException":
936
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
937
+ case "ResourceNotFoundException":
938
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
939
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
940
+ case "ThrottlingException":
941
+ case "com.amazonaws.appintegrations#ThrottlingException":
942
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
943
+ default:
944
+ const parsedBody = parsedOutput.body;
945
+ return throwDefaultError({
946
+ output,
947
+ parsedBody,
948
+ errorCode
949
+ });
950
+ }
951
+ }, "de_GetApplicationCommandError");
952
+ var de_GetDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
954
+ return de_GetDataIntegrationCommandError(output, context);
955
+ }
956
+ const contents = (0, import_smithy_client.map)({
957
+ $metadata: deserializeMetadata(output)
958
+ });
959
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
960
+ const doc = (0, import_smithy_client.take)(data, {
961
+ Arn: import_smithy_client.expectString,
962
+ Description: import_smithy_client.expectString,
963
+ FileConfiguration: import_smithy_client._json,
964
+ Id: import_smithy_client.expectString,
965
+ KmsKey: import_smithy_client.expectString,
966
+ Name: import_smithy_client.expectString,
967
+ ObjectConfiguration: import_smithy_client._json,
968
+ ScheduleConfiguration: import_smithy_client._json,
969
+ SourceURI: import_smithy_client.expectString,
970
+ Tags: import_smithy_client._json
971
+ });
972
+ Object.assign(contents, doc);
973
+ return contents;
974
+ }, "de_GetDataIntegrationCommand");
975
+ var de_GetDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
976
+ const parsedOutput = {
977
+ ...output,
978
+ body: await parseErrorBody(output.body, context)
979
+ };
980
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
981
+ switch (errorCode) {
982
+ case "AccessDeniedException":
983
+ case "com.amazonaws.appintegrations#AccessDeniedException":
984
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
985
+ case "InternalServiceError":
986
+ case "com.amazonaws.appintegrations#InternalServiceError":
987
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
988
+ case "InvalidRequestException":
989
+ case "com.amazonaws.appintegrations#InvalidRequestException":
990
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
991
+ case "ResourceNotFoundException":
992
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
993
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
994
+ case "ThrottlingException":
995
+ case "com.amazonaws.appintegrations#ThrottlingException":
996
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
997
+ default:
998
+ const parsedBody = parsedOutput.body;
999
+ return throwDefaultError({
1000
+ output,
1001
+ parsedBody,
1002
+ errorCode
1003
+ });
1004
+ }
1005
+ }, "de_GetDataIntegrationCommandError");
1006
+ var de_GetEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1007
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1008
+ return de_GetEventIntegrationCommandError(output, context);
1009
+ }
1010
+ const contents = (0, import_smithy_client.map)({
1011
+ $metadata: deserializeMetadata(output)
1012
+ });
1013
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1014
+ const doc = (0, import_smithy_client.take)(data, {
1015
+ Description: import_smithy_client.expectString,
1016
+ EventBridgeBus: import_smithy_client.expectString,
1017
+ EventFilter: import_smithy_client._json,
1018
+ EventIntegrationArn: import_smithy_client.expectString,
1019
+ Name: import_smithy_client.expectString,
1020
+ Tags: import_smithy_client._json
1021
+ });
1022
+ Object.assign(contents, doc);
1023
+ return contents;
1024
+ }, "de_GetEventIntegrationCommand");
1025
+ var de_GetEventIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1026
+ const parsedOutput = {
1027
+ ...output,
1028
+ body: await parseErrorBody(output.body, context)
1029
+ };
1030
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1031
+ switch (errorCode) {
1032
+ case "AccessDeniedException":
1033
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1034
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1035
+ case "InternalServiceError":
1036
+ case "com.amazonaws.appintegrations#InternalServiceError":
1037
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1038
+ case "InvalidRequestException":
1039
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1040
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1041
+ case "ResourceNotFoundException":
1042
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1043
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1044
+ case "ThrottlingException":
1045
+ case "com.amazonaws.appintegrations#ThrottlingException":
1046
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1047
+ default:
1048
+ const parsedBody = parsedOutput.body;
1049
+ return throwDefaultError({
1050
+ output,
1051
+ parsedBody,
1052
+ errorCode
1053
+ });
1054
+ }
1055
+ }, "de_GetEventIntegrationCommandError");
1056
+ var de_ListApplicationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1057
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1058
+ return de_ListApplicationAssociationsCommandError(output, context);
1059
+ }
1060
+ const contents = (0, import_smithy_client.map)({
1061
+ $metadata: deserializeMetadata(output)
1062
+ });
1063
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1064
+ const doc = (0, import_smithy_client.take)(data, {
1065
+ ApplicationAssociations: import_smithy_client._json,
1066
+ NextToken: import_smithy_client.expectString
1067
+ });
1068
+ Object.assign(contents, doc);
1069
+ return contents;
1070
+ }, "de_ListApplicationAssociationsCommand");
1071
+ var de_ListApplicationAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1072
+ const parsedOutput = {
1073
+ ...output,
1074
+ body: await parseErrorBody(output.body, context)
1075
+ };
1076
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
+ switch (errorCode) {
1078
+ case "AccessDeniedException":
1079
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1080
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1081
+ case "InternalServiceError":
1082
+ case "com.amazonaws.appintegrations#InternalServiceError":
1083
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1084
+ case "InvalidRequestException":
1085
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1086
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1087
+ case "ResourceNotFoundException":
1088
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1089
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1090
+ case "ThrottlingException":
1091
+ case "com.amazonaws.appintegrations#ThrottlingException":
1092
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1093
+ default:
1094
+ const parsedBody = parsedOutput.body;
1095
+ return throwDefaultError({
1096
+ output,
1097
+ parsedBody,
1098
+ errorCode
1099
+ });
1100
+ }
1101
+ }, "de_ListApplicationAssociationsCommandError");
1102
+ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1103
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1104
+ return de_ListApplicationsCommandError(output, context);
1105
+ }
1106
+ const contents = (0, import_smithy_client.map)({
1107
+ $metadata: deserializeMetadata(output)
1108
+ });
1109
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1110
+ const doc = (0, import_smithy_client.take)(data, {
1111
+ Applications: (_) => de_ApplicationsList(_, context),
1112
+ NextToken: import_smithy_client.expectString
1113
+ });
1114
+ Object.assign(contents, doc);
1115
+ return contents;
1116
+ }, "de_ListApplicationsCommand");
1117
+ var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1118
+ const parsedOutput = {
1119
+ ...output,
1120
+ body: await parseErrorBody(output.body, context)
1121
+ };
1122
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1123
+ switch (errorCode) {
1124
+ case "AccessDeniedException":
1125
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1126
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1127
+ case "InternalServiceError":
1128
+ case "com.amazonaws.appintegrations#InternalServiceError":
1129
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1130
+ case "InvalidRequestException":
1131
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1132
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1133
+ case "ThrottlingException":
1134
+ case "com.amazonaws.appintegrations#ThrottlingException":
1135
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1136
+ default:
1137
+ const parsedBody = parsedOutput.body;
1138
+ return throwDefaultError({
1139
+ output,
1140
+ parsedBody,
1141
+ errorCode
1142
+ });
1143
+ }
1144
+ }, "de_ListApplicationsCommandError");
1145
+ var de_ListDataIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1146
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1147
+ return de_ListDataIntegrationAssociationsCommandError(output, context);
1148
+ }
1149
+ const contents = (0, import_smithy_client.map)({
1150
+ $metadata: deserializeMetadata(output)
1151
+ });
1152
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1153
+ const doc = (0, import_smithy_client.take)(data, {
1154
+ DataIntegrationAssociations: import_smithy_client._json,
1155
+ NextToken: import_smithy_client.expectString
1156
+ });
1157
+ Object.assign(contents, doc);
1158
+ return contents;
1159
+ }, "de_ListDataIntegrationAssociationsCommand");
1160
+ var de_ListDataIntegrationAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1161
+ const parsedOutput = {
1162
+ ...output,
1163
+ body: await parseErrorBody(output.body, context)
1164
+ };
1165
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
+ switch (errorCode) {
1167
+ case "AccessDeniedException":
1168
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1169
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1170
+ case "InternalServiceError":
1171
+ case "com.amazonaws.appintegrations#InternalServiceError":
1172
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1173
+ case "InvalidRequestException":
1174
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1175
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1176
+ case "ResourceNotFoundException":
1177
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1178
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1179
+ case "ThrottlingException":
1180
+ case "com.amazonaws.appintegrations#ThrottlingException":
1181
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1182
+ default:
1183
+ const parsedBody = parsedOutput.body;
1184
+ return throwDefaultError({
1185
+ output,
1186
+ parsedBody,
1187
+ errorCode
1188
+ });
1189
+ }
1190
+ }, "de_ListDataIntegrationAssociationsCommandError");
1191
+ var de_ListDataIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1192
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1193
+ return de_ListDataIntegrationsCommandError(output, context);
1194
+ }
1195
+ const contents = (0, import_smithy_client.map)({
1196
+ $metadata: deserializeMetadata(output)
1197
+ });
1198
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1199
+ const doc = (0, import_smithy_client.take)(data, {
1200
+ DataIntegrations: import_smithy_client._json,
1201
+ NextToken: import_smithy_client.expectString
1202
+ });
1203
+ Object.assign(contents, doc);
1204
+ return contents;
1205
+ }, "de_ListDataIntegrationsCommand");
1206
+ var de_ListDataIntegrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1207
+ const parsedOutput = {
1208
+ ...output,
1209
+ body: await parseErrorBody(output.body, context)
1210
+ };
1211
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1212
+ switch (errorCode) {
1213
+ case "AccessDeniedException":
1214
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1215
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1216
+ case "InternalServiceError":
1217
+ case "com.amazonaws.appintegrations#InternalServiceError":
1218
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1219
+ case "InvalidRequestException":
1220
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1221
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1222
+ case "ThrottlingException":
1223
+ case "com.amazonaws.appintegrations#ThrottlingException":
1224
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1225
+ default:
1226
+ const parsedBody = parsedOutput.body;
1227
+ return throwDefaultError({
1228
+ output,
1229
+ parsedBody,
1230
+ errorCode
1231
+ });
1232
+ }
1233
+ }, "de_ListDataIntegrationsCommandError");
1234
+ var de_ListEventIntegrationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1235
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1236
+ return de_ListEventIntegrationAssociationsCommandError(output, context);
1237
+ }
1238
+ const contents = (0, import_smithy_client.map)({
1239
+ $metadata: deserializeMetadata(output)
1240
+ });
1241
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1242
+ const doc = (0, import_smithy_client.take)(data, {
1243
+ EventIntegrationAssociations: import_smithy_client._json,
1244
+ NextToken: import_smithy_client.expectString
1245
+ });
1246
+ Object.assign(contents, doc);
1247
+ return contents;
1248
+ }, "de_ListEventIntegrationAssociationsCommand");
1249
+ var de_ListEventIntegrationAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1250
+ const parsedOutput = {
1251
+ ...output,
1252
+ body: await parseErrorBody(output.body, context)
1253
+ };
1254
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1255
+ switch (errorCode) {
1256
+ case "AccessDeniedException":
1257
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1258
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1259
+ case "InternalServiceError":
1260
+ case "com.amazonaws.appintegrations#InternalServiceError":
1261
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1262
+ case "InvalidRequestException":
1263
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1264
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1265
+ case "ResourceNotFoundException":
1266
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1267
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1268
+ case "ThrottlingException":
1269
+ case "com.amazonaws.appintegrations#ThrottlingException":
1270
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1271
+ default:
1272
+ const parsedBody = parsedOutput.body;
1273
+ return throwDefaultError({
1274
+ output,
1275
+ parsedBody,
1276
+ errorCode
1277
+ });
1278
+ }
1279
+ }, "de_ListEventIntegrationAssociationsCommandError");
1280
+ var de_ListEventIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1281
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1282
+ return de_ListEventIntegrationsCommandError(output, context);
1283
+ }
1284
+ const contents = (0, import_smithy_client.map)({
1285
+ $metadata: deserializeMetadata(output)
1286
+ });
1287
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1288
+ const doc = (0, import_smithy_client.take)(data, {
1289
+ EventIntegrations: import_smithy_client._json,
1290
+ NextToken: import_smithy_client.expectString
1291
+ });
1292
+ Object.assign(contents, doc);
1293
+ return contents;
1294
+ }, "de_ListEventIntegrationsCommand");
1295
+ var de_ListEventIntegrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1296
+ const parsedOutput = {
1297
+ ...output,
1298
+ body: await parseErrorBody(output.body, context)
1299
+ };
1300
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1301
+ switch (errorCode) {
1302
+ case "AccessDeniedException":
1303
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1304
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1305
+ case "InternalServiceError":
1306
+ case "com.amazonaws.appintegrations#InternalServiceError":
1307
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1308
+ case "InvalidRequestException":
1309
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1310
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1311
+ case "ThrottlingException":
1312
+ case "com.amazonaws.appintegrations#ThrottlingException":
1313
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1314
+ default:
1315
+ const parsedBody = parsedOutput.body;
1316
+ return throwDefaultError({
1317
+ output,
1318
+ parsedBody,
1319
+ errorCode
1320
+ });
1321
+ }
1322
+ }, "de_ListEventIntegrationsCommandError");
1323
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1324
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1325
+ return de_ListTagsForResourceCommandError(output, context);
1326
+ }
1327
+ const contents = (0, import_smithy_client.map)({
1328
+ $metadata: deserializeMetadata(output)
1329
+ });
1330
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1331
+ const doc = (0, import_smithy_client.take)(data, {
1332
+ tags: import_smithy_client._json
1333
+ });
1334
+ Object.assign(contents, doc);
1335
+ return contents;
1336
+ }, "de_ListTagsForResourceCommand");
1337
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1338
+ const parsedOutput = {
1339
+ ...output,
1340
+ body: await parseErrorBody(output.body, context)
1341
+ };
1342
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1343
+ switch (errorCode) {
1344
+ case "InternalServiceError":
1345
+ case "com.amazonaws.appintegrations#InternalServiceError":
1346
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1347
+ case "InvalidRequestException":
1348
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1349
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1350
+ case "ResourceNotFoundException":
1351
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1352
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1353
+ case "ThrottlingException":
1354
+ case "com.amazonaws.appintegrations#ThrottlingException":
1355
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1356
+ default:
1357
+ const parsedBody = parsedOutput.body;
1358
+ return throwDefaultError({
1359
+ output,
1360
+ parsedBody,
1361
+ errorCode
1362
+ });
1363
+ }
1364
+ }, "de_ListTagsForResourceCommandError");
1365
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1366
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1367
+ return de_TagResourceCommandError(output, context);
1368
+ }
1369
+ const contents = (0, import_smithy_client.map)({
1370
+ $metadata: deserializeMetadata(output)
1371
+ });
1372
+ await (0, import_smithy_client.collectBody)(output.body, context);
1373
+ return contents;
1374
+ }, "de_TagResourceCommand");
1375
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1376
+ const parsedOutput = {
1377
+ ...output,
1378
+ body: await parseErrorBody(output.body, context)
1379
+ };
1380
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1381
+ switch (errorCode) {
1382
+ case "InternalServiceError":
1383
+ case "com.amazonaws.appintegrations#InternalServiceError":
1384
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1385
+ case "InvalidRequestException":
1386
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1387
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1388
+ case "ResourceNotFoundException":
1389
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1390
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1391
+ case "ThrottlingException":
1392
+ case "com.amazonaws.appintegrations#ThrottlingException":
1393
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1394
+ default:
1395
+ const parsedBody = parsedOutput.body;
1396
+ return throwDefaultError({
1397
+ output,
1398
+ parsedBody,
1399
+ errorCode
1400
+ });
1401
+ }
1402
+ }, "de_TagResourceCommandError");
1403
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1404
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1405
+ return de_UntagResourceCommandError(output, context);
1406
+ }
1407
+ const contents = (0, import_smithy_client.map)({
1408
+ $metadata: deserializeMetadata(output)
1409
+ });
1410
+ await (0, import_smithy_client.collectBody)(output.body, context);
1411
+ return contents;
1412
+ }, "de_UntagResourceCommand");
1413
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1414
+ const parsedOutput = {
1415
+ ...output,
1416
+ body: await parseErrorBody(output.body, context)
1417
+ };
1418
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
+ switch (errorCode) {
1420
+ case "InternalServiceError":
1421
+ case "com.amazonaws.appintegrations#InternalServiceError":
1422
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1423
+ case "InvalidRequestException":
1424
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1425
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1426
+ case "ResourceNotFoundException":
1427
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1428
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1429
+ case "ThrottlingException":
1430
+ case "com.amazonaws.appintegrations#ThrottlingException":
1431
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1432
+ default:
1433
+ const parsedBody = parsedOutput.body;
1434
+ return throwDefaultError({
1435
+ output,
1436
+ parsedBody,
1437
+ errorCode
1438
+ });
1439
+ }
1440
+ }, "de_UntagResourceCommandError");
1441
+ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1442
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1443
+ return de_UpdateApplicationCommandError(output, context);
1444
+ }
1445
+ const contents = (0, import_smithy_client.map)({
1446
+ $metadata: deserializeMetadata(output)
1447
+ });
1448
+ await (0, import_smithy_client.collectBody)(output.body, context);
1449
+ return contents;
1450
+ }, "de_UpdateApplicationCommand");
1451
+ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1452
+ const parsedOutput = {
1453
+ ...output,
1454
+ body: await parseErrorBody(output.body, context)
1455
+ };
1456
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1457
+ switch (errorCode) {
1458
+ case "AccessDeniedException":
1459
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1460
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1461
+ case "InternalServiceError":
1462
+ case "com.amazonaws.appintegrations#InternalServiceError":
1463
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1464
+ case "InvalidRequestException":
1465
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1466
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1467
+ case "ResourceNotFoundException":
1468
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1469
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1470
+ case "ThrottlingException":
1471
+ case "com.amazonaws.appintegrations#ThrottlingException":
1472
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1473
+ case "UnsupportedOperationException":
1474
+ case "com.amazonaws.appintegrations#UnsupportedOperationException":
1475
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1476
+ default:
1477
+ const parsedBody = parsedOutput.body;
1478
+ return throwDefaultError({
1479
+ output,
1480
+ parsedBody,
1481
+ errorCode
1482
+ });
1483
+ }
1484
+ }, "de_UpdateApplicationCommandError");
1485
+ var de_UpdateDataIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1486
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1487
+ return de_UpdateDataIntegrationCommandError(output, context);
1488
+ }
1489
+ const contents = (0, import_smithy_client.map)({
1490
+ $metadata: deserializeMetadata(output)
1491
+ });
1492
+ await (0, import_smithy_client.collectBody)(output.body, context);
1493
+ return contents;
1494
+ }, "de_UpdateDataIntegrationCommand");
1495
+ var de_UpdateDataIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1496
+ const parsedOutput = {
1497
+ ...output,
1498
+ body: await parseErrorBody(output.body, context)
1499
+ };
1500
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1501
+ switch (errorCode) {
1502
+ case "AccessDeniedException":
1503
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1504
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1505
+ case "InternalServiceError":
1506
+ case "com.amazonaws.appintegrations#InternalServiceError":
1507
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1508
+ case "InvalidRequestException":
1509
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1510
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1511
+ case "ResourceNotFoundException":
1512
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1513
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1514
+ case "ThrottlingException":
1515
+ case "com.amazonaws.appintegrations#ThrottlingException":
1516
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1517
+ default:
1518
+ const parsedBody = parsedOutput.body;
1519
+ return throwDefaultError({
1520
+ output,
1521
+ parsedBody,
1522
+ errorCode
1523
+ });
1524
+ }
1525
+ }, "de_UpdateDataIntegrationCommandError");
1526
+ var de_UpdateEventIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1527
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1528
+ return de_UpdateEventIntegrationCommandError(output, context);
1529
+ }
1530
+ const contents = (0, import_smithy_client.map)({
1531
+ $metadata: deserializeMetadata(output)
1532
+ });
1533
+ await (0, import_smithy_client.collectBody)(output.body, context);
1534
+ return contents;
1535
+ }, "de_UpdateEventIntegrationCommand");
1536
+ var de_UpdateEventIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1537
+ const parsedOutput = {
1538
+ ...output,
1539
+ body: await parseErrorBody(output.body, context)
1540
+ };
1541
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1542
+ switch (errorCode) {
1543
+ case "AccessDeniedException":
1544
+ case "com.amazonaws.appintegrations#AccessDeniedException":
1545
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1546
+ case "InternalServiceError":
1547
+ case "com.amazonaws.appintegrations#InternalServiceError":
1548
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
1549
+ case "InvalidRequestException":
1550
+ case "com.amazonaws.appintegrations#InvalidRequestException":
1551
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1552
+ case "ResourceNotFoundException":
1553
+ case "com.amazonaws.appintegrations#ResourceNotFoundException":
1554
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1555
+ case "ThrottlingException":
1556
+ case "com.amazonaws.appintegrations#ThrottlingException":
1557
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1558
+ default:
1559
+ const parsedBody = parsedOutput.body;
1560
+ return throwDefaultError({
1561
+ output,
1562
+ parsedBody,
1563
+ errorCode
1564
+ });
1565
+ }
1566
+ }, "de_UpdateEventIntegrationCommandError");
1567
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(AppIntegrationsServiceException);
1568
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1569
+ const contents = (0, import_smithy_client.map)({});
1570
+ const data = parsedOutput.body;
1571
+ const doc = (0, import_smithy_client.take)(data, {
1572
+ Message: import_smithy_client.expectString
1573
+ });
1574
+ Object.assign(contents, doc);
1575
+ const exception = new AccessDeniedException({
1576
+ $metadata: deserializeMetadata(parsedOutput),
1577
+ ...contents
1578
+ });
1579
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1580
+ }, "de_AccessDeniedExceptionRes");
1581
+ var de_DuplicateResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1582
+ const contents = (0, import_smithy_client.map)({});
1583
+ const data = parsedOutput.body;
1584
+ const doc = (0, import_smithy_client.take)(data, {
1585
+ Message: import_smithy_client.expectString
1586
+ });
1587
+ Object.assign(contents, doc);
1588
+ const exception = new DuplicateResourceException({
1589
+ $metadata: deserializeMetadata(parsedOutput),
1590
+ ...contents
1591
+ });
1592
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1593
+ }, "de_DuplicateResourceExceptionRes");
1594
+ var de_InternalServiceErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1595
+ const contents = (0, import_smithy_client.map)({});
1596
+ const data = parsedOutput.body;
1597
+ const doc = (0, import_smithy_client.take)(data, {
1598
+ Message: import_smithy_client.expectString
1599
+ });
1600
+ Object.assign(contents, doc);
1601
+ const exception = new InternalServiceError({
1602
+ $metadata: deserializeMetadata(parsedOutput),
1603
+ ...contents
1604
+ });
1605
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1606
+ }, "de_InternalServiceErrorRes");
1607
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1608
+ const contents = (0, import_smithy_client.map)({});
1609
+ const data = parsedOutput.body;
1610
+ const doc = (0, import_smithy_client.take)(data, {
1611
+ Message: import_smithy_client.expectString
1612
+ });
1613
+ Object.assign(contents, doc);
1614
+ const exception = new InvalidRequestException({
1615
+ $metadata: deserializeMetadata(parsedOutput),
1616
+ ...contents
1617
+ });
1618
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1619
+ }, "de_InvalidRequestExceptionRes");
1620
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1621
+ const contents = (0, import_smithy_client.map)({});
1622
+ const data = parsedOutput.body;
1623
+ const doc = (0, import_smithy_client.take)(data, {
1624
+ Message: import_smithy_client.expectString
1625
+ });
1626
+ Object.assign(contents, doc);
1627
+ const exception = new ResourceNotFoundException({
1628
+ $metadata: deserializeMetadata(parsedOutput),
1629
+ ...contents
1630
+ });
1631
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1632
+ }, "de_ResourceNotFoundExceptionRes");
1633
+ var de_ResourceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1634
+ const contents = (0, import_smithy_client.map)({});
1635
+ const data = parsedOutput.body;
1636
+ const doc = (0, import_smithy_client.take)(data, {
1637
+ Message: import_smithy_client.expectString
1638
+ });
1639
+ Object.assign(contents, doc);
1640
+ const exception = new ResourceQuotaExceededException({
1641
+ $metadata: deserializeMetadata(parsedOutput),
1642
+ ...contents
1643
+ });
1644
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1645
+ }, "de_ResourceQuotaExceededExceptionRes");
1646
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1647
+ const contents = (0, import_smithy_client.map)({});
1648
+ const data = parsedOutput.body;
1649
+ const doc = (0, import_smithy_client.take)(data, {
1650
+ Message: import_smithy_client.expectString
1651
+ });
1652
+ Object.assign(contents, doc);
1653
+ const exception = new ThrottlingException({
1654
+ $metadata: deserializeMetadata(parsedOutput),
1655
+ ...contents
1656
+ });
1657
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1658
+ }, "de_ThrottlingExceptionRes");
1659
+ var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1660
+ const contents = (0, import_smithy_client.map)({});
1661
+ const data = parsedOutput.body;
1662
+ const doc = (0, import_smithy_client.take)(data, {
1663
+ Message: import_smithy_client.expectString
1664
+ });
1665
+ Object.assign(contents, doc);
1666
+ const exception = new UnsupportedOperationException({
1667
+ $metadata: deserializeMetadata(parsedOutput),
1668
+ ...contents
1669
+ });
1670
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1671
+ }, "de_UnsupportedOperationExceptionRes");
1672
+ var de_ApplicationsList = /* @__PURE__ */ __name((output, context) => {
1673
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1674
+ return de_ApplicationSummary(entry, context);
1675
+ });
1676
+ return retVal;
1677
+ }, "de_ApplicationsList");
1678
+ var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
1679
+ return (0, import_smithy_client.take)(output, {
1680
+ Arn: import_smithy_client.expectString,
1681
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1682
+ Id: import_smithy_client.expectString,
1683
+ LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1684
+ Name: import_smithy_client.expectString,
1685
+ Namespace: import_smithy_client.expectString
1686
+ });
1687
+ }, "de_ApplicationSummary");
1688
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1689
+ httpStatusCode: output.statusCode,
1690
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1691
+ extendedRequestId: output.headers["x-amz-id-2"],
1692
+ cfId: output.headers["x-amz-cf-id"]
1693
+ }), "deserializeMetadata");
1694
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1695
+ var _MR = "MaxResults";
1696
+ var _NT = "NextToken";
1697
+ var _mR = "maxResults";
1698
+ var _nT = "nextToken";
1699
+ var _tK = "tagKeys";
1700
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1701
+ if (encoded.length) {
1702
+ return JSON.parse(encoded);
1703
+ }
1704
+ return {};
1705
+ }), "parseBody");
1706
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1707
+ const value = await parseBody(errorBody, context);
1708
+ value.message = value.message ?? value.Message;
1709
+ return value;
1710
+ }, "parseErrorBody");
1711
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1712
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1713
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1714
+ let cleanValue = rawValue;
1715
+ if (typeof cleanValue === "number") {
1716
+ cleanValue = cleanValue.toString();
1717
+ }
1718
+ if (cleanValue.indexOf(",") >= 0) {
1719
+ cleanValue = cleanValue.split(",")[0];
1720
+ }
1721
+ if (cleanValue.indexOf(":") >= 0) {
1722
+ cleanValue = cleanValue.split(":")[0];
1723
+ }
1724
+ if (cleanValue.indexOf("#") >= 0) {
1725
+ cleanValue = cleanValue.split("#")[1];
1726
+ }
1727
+ return cleanValue;
1728
+ }, "sanitizeErrorCode");
1729
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1730
+ if (headerKey !== void 0) {
1731
+ return sanitizeErrorCode(output.headers[headerKey]);
1732
+ }
1733
+ if (data.code !== void 0) {
1734
+ return sanitizeErrorCode(data.code);
1735
+ }
1736
+ if (data["__type"] !== void 0) {
1737
+ return sanitizeErrorCode(data["__type"]);
1738
+ }
1739
+ }, "loadRestJsonErrorCode");
1740
+
1741
+ // src/commands/CreateApplicationCommand.ts
1742
+ var _CreateApplicationCommand = class _CreateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1743
+ ...commonParams
1744
+ }).m(function(Command, cs, config, o) {
1745
+ return [
1746
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1747
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1748
+ ];
1749
+ }).s("AmazonAppIntegrationService", "CreateApplication", {}).n("AppIntegrationsClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
1750
+ };
1751
+ __name(_CreateApplicationCommand, "CreateApplicationCommand");
1752
+ var CreateApplicationCommand = _CreateApplicationCommand;
1753
+
1754
+ // src/commands/CreateDataIntegrationCommand.ts
1755
+
1756
+
1757
+
1758
+
1759
+ var _CreateDataIntegrationCommand = class _CreateDataIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
1760
+ ...commonParams
1761
+ }).m(function(Command, cs, config, o) {
1762
+ return [
1763
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1764
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1765
+ ];
1766
+ }).s("AmazonAppIntegrationService", "CreateDataIntegration", {}).n("AppIntegrationsClient", "CreateDataIntegrationCommand").f(void 0, void 0).ser(se_CreateDataIntegrationCommand).de(de_CreateDataIntegrationCommand).build() {
1767
+ };
1768
+ __name(_CreateDataIntegrationCommand, "CreateDataIntegrationCommand");
1769
+ var CreateDataIntegrationCommand = _CreateDataIntegrationCommand;
1770
+
1771
+ // src/commands/CreateEventIntegrationCommand.ts
1772
+
1773
+
1774
+
1775
+
1776
+ var _CreateEventIntegrationCommand = class _CreateEventIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
1777
+ ...commonParams
1778
+ }).m(function(Command, cs, config, o) {
1779
+ return [
1780
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1781
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1782
+ ];
1783
+ }).s("AmazonAppIntegrationService", "CreateEventIntegration", {}).n("AppIntegrationsClient", "CreateEventIntegrationCommand").f(void 0, void 0).ser(se_CreateEventIntegrationCommand).de(de_CreateEventIntegrationCommand).build() {
1784
+ };
1785
+ __name(_CreateEventIntegrationCommand, "CreateEventIntegrationCommand");
1786
+ var CreateEventIntegrationCommand = _CreateEventIntegrationCommand;
1787
+
1788
+ // src/commands/DeleteApplicationCommand.ts
1789
+
1790
+
1791
+
1792
+
1793
+ var _DeleteApplicationCommand = class _DeleteApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1794
+ ...commonParams
1795
+ }).m(function(Command, cs, config, o) {
1796
+ return [
1797
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1798
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1799
+ ];
1800
+ }).s("AmazonAppIntegrationService", "DeleteApplication", {}).n("AppIntegrationsClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
1801
+ };
1802
+ __name(_DeleteApplicationCommand, "DeleteApplicationCommand");
1803
+ var DeleteApplicationCommand = _DeleteApplicationCommand;
1804
+
1805
+ // src/commands/DeleteDataIntegrationCommand.ts
1806
+
1807
+
1808
+
1809
+
1810
+ var _DeleteDataIntegrationCommand = class _DeleteDataIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
1811
+ ...commonParams
1812
+ }).m(function(Command, cs, config, o) {
1813
+ return [
1814
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1815
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1816
+ ];
1817
+ }).s("AmazonAppIntegrationService", "DeleteDataIntegration", {}).n("AppIntegrationsClient", "DeleteDataIntegrationCommand").f(void 0, void 0).ser(se_DeleteDataIntegrationCommand).de(de_DeleteDataIntegrationCommand).build() {
1818
+ };
1819
+ __name(_DeleteDataIntegrationCommand, "DeleteDataIntegrationCommand");
1820
+ var DeleteDataIntegrationCommand = _DeleteDataIntegrationCommand;
1821
+
1822
+ // src/commands/DeleteEventIntegrationCommand.ts
1823
+
1824
+
1825
+
1826
+
1827
+ var _DeleteEventIntegrationCommand = class _DeleteEventIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
1828
+ ...commonParams
1829
+ }).m(function(Command, cs, config, o) {
1830
+ return [
1831
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1832
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1833
+ ];
1834
+ }).s("AmazonAppIntegrationService", "DeleteEventIntegration", {}).n("AppIntegrationsClient", "DeleteEventIntegrationCommand").f(void 0, void 0).ser(se_DeleteEventIntegrationCommand).de(de_DeleteEventIntegrationCommand).build() {
1835
+ };
1836
+ __name(_DeleteEventIntegrationCommand, "DeleteEventIntegrationCommand");
1837
+ var DeleteEventIntegrationCommand = _DeleteEventIntegrationCommand;
1838
+
1839
+ // src/commands/GetApplicationCommand.ts
1840
+
1841
+
1842
+
1843
+
1844
+ var _GetApplicationCommand = class _GetApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1845
+ ...commonParams
1846
+ }).m(function(Command, cs, config, o) {
1847
+ return [
1848
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1849
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1850
+ ];
1851
+ }).s("AmazonAppIntegrationService", "GetApplication", {}).n("AppIntegrationsClient", "GetApplicationCommand").f(void 0, void 0).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
1852
+ };
1853
+ __name(_GetApplicationCommand, "GetApplicationCommand");
1854
+ var GetApplicationCommand = _GetApplicationCommand;
1855
+
1856
+ // src/commands/GetDataIntegrationCommand.ts
1857
+
1858
+
1859
+
1860
+
1861
+ var _GetDataIntegrationCommand = class _GetDataIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
1862
+ ...commonParams
1863
+ }).m(function(Command, cs, config, o) {
1864
+ return [
1865
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1866
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1867
+ ];
1868
+ }).s("AmazonAppIntegrationService", "GetDataIntegration", {}).n("AppIntegrationsClient", "GetDataIntegrationCommand").f(void 0, void 0).ser(se_GetDataIntegrationCommand).de(de_GetDataIntegrationCommand).build() {
1869
+ };
1870
+ __name(_GetDataIntegrationCommand, "GetDataIntegrationCommand");
1871
+ var GetDataIntegrationCommand = _GetDataIntegrationCommand;
1872
+
1873
+ // src/commands/GetEventIntegrationCommand.ts
1874
+
1875
+
1876
+
1877
+
1878
+ var _GetEventIntegrationCommand = class _GetEventIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
1879
+ ...commonParams
1880
+ }).m(function(Command, cs, config, o) {
1881
+ return [
1882
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1883
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1884
+ ];
1885
+ }).s("AmazonAppIntegrationService", "GetEventIntegration", {}).n("AppIntegrationsClient", "GetEventIntegrationCommand").f(void 0, void 0).ser(se_GetEventIntegrationCommand).de(de_GetEventIntegrationCommand).build() {
1886
+ };
1887
+ __name(_GetEventIntegrationCommand, "GetEventIntegrationCommand");
1888
+ var GetEventIntegrationCommand = _GetEventIntegrationCommand;
1889
+
1890
+ // src/commands/ListApplicationAssociationsCommand.ts
1891
+
1892
+
1893
+
1894
+
1895
+ var _ListApplicationAssociationsCommand = class _ListApplicationAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
1896
+ ...commonParams
1897
+ }).m(function(Command, cs, config, o) {
1898
+ return [
1899
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1900
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1901
+ ];
1902
+ }).s("AmazonAppIntegrationService", "ListApplicationAssociations", {}).n("AppIntegrationsClient", "ListApplicationAssociationsCommand").f(void 0, void 0).ser(se_ListApplicationAssociationsCommand).de(de_ListApplicationAssociationsCommand).build() {
1903
+ };
1904
+ __name(_ListApplicationAssociationsCommand, "ListApplicationAssociationsCommand");
1905
+ var ListApplicationAssociationsCommand = _ListApplicationAssociationsCommand;
1906
+
1907
+ // src/commands/ListApplicationsCommand.ts
1908
+
1909
+
1910
+
1911
+
1912
+ var _ListApplicationsCommand = class _ListApplicationsCommand extends import_smithy_client.Command.classBuilder().ep({
1913
+ ...commonParams
1914
+ }).m(function(Command, cs, config, o) {
1915
+ return [
1916
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1917
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1918
+ ];
1919
+ }).s("AmazonAppIntegrationService", "ListApplications", {}).n("AppIntegrationsClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
1920
+ };
1921
+ __name(_ListApplicationsCommand, "ListApplicationsCommand");
1922
+ var ListApplicationsCommand = _ListApplicationsCommand;
1923
+
1924
+ // src/commands/ListDataIntegrationAssociationsCommand.ts
1925
+
1926
+
1927
+
1928
+
1929
+ var _ListDataIntegrationAssociationsCommand = class _ListDataIntegrationAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
1930
+ ...commonParams
1931
+ }).m(function(Command, cs, config, o) {
1932
+ return [
1933
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1934
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1935
+ ];
1936
+ }).s("AmazonAppIntegrationService", "ListDataIntegrationAssociations", {}).n("AppIntegrationsClient", "ListDataIntegrationAssociationsCommand").f(void 0, void 0).ser(se_ListDataIntegrationAssociationsCommand).de(de_ListDataIntegrationAssociationsCommand).build() {
1937
+ };
1938
+ __name(_ListDataIntegrationAssociationsCommand, "ListDataIntegrationAssociationsCommand");
1939
+ var ListDataIntegrationAssociationsCommand = _ListDataIntegrationAssociationsCommand;
1940
+
1941
+ // src/commands/ListDataIntegrationsCommand.ts
1942
+
1943
+
1944
+
1945
+
1946
+ var _ListDataIntegrationsCommand = class _ListDataIntegrationsCommand extends import_smithy_client.Command.classBuilder().ep({
1947
+ ...commonParams
1948
+ }).m(function(Command, cs, config, o) {
1949
+ return [
1950
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1951
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1952
+ ];
1953
+ }).s("AmazonAppIntegrationService", "ListDataIntegrations", {}).n("AppIntegrationsClient", "ListDataIntegrationsCommand").f(void 0, void 0).ser(se_ListDataIntegrationsCommand).de(de_ListDataIntegrationsCommand).build() {
1954
+ };
1955
+ __name(_ListDataIntegrationsCommand, "ListDataIntegrationsCommand");
1956
+ var ListDataIntegrationsCommand = _ListDataIntegrationsCommand;
1957
+
1958
+ // src/commands/ListEventIntegrationAssociationsCommand.ts
1959
+
1960
+
1961
+
1962
+
1963
+ var _ListEventIntegrationAssociationsCommand = class _ListEventIntegrationAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
1964
+ ...commonParams
1965
+ }).m(function(Command, cs, config, o) {
1966
+ return [
1967
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1968
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1969
+ ];
1970
+ }).s("AmazonAppIntegrationService", "ListEventIntegrationAssociations", {}).n("AppIntegrationsClient", "ListEventIntegrationAssociationsCommand").f(void 0, void 0).ser(se_ListEventIntegrationAssociationsCommand).de(de_ListEventIntegrationAssociationsCommand).build() {
1971
+ };
1972
+ __name(_ListEventIntegrationAssociationsCommand, "ListEventIntegrationAssociationsCommand");
1973
+ var ListEventIntegrationAssociationsCommand = _ListEventIntegrationAssociationsCommand;
1974
+
1975
+ // src/commands/ListEventIntegrationsCommand.ts
1976
+
1977
+
1978
+
1979
+
1980
+ var _ListEventIntegrationsCommand = class _ListEventIntegrationsCommand extends import_smithy_client.Command.classBuilder().ep({
1981
+ ...commonParams
1982
+ }).m(function(Command, cs, config, o) {
1983
+ return [
1984
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1985
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1986
+ ];
1987
+ }).s("AmazonAppIntegrationService", "ListEventIntegrations", {}).n("AppIntegrationsClient", "ListEventIntegrationsCommand").f(void 0, void 0).ser(se_ListEventIntegrationsCommand).de(de_ListEventIntegrationsCommand).build() {
1988
+ };
1989
+ __name(_ListEventIntegrationsCommand, "ListEventIntegrationsCommand");
1990
+ var ListEventIntegrationsCommand = _ListEventIntegrationsCommand;
1991
+
1992
+ // src/commands/ListTagsForResourceCommand.ts
1993
+
1994
+
1995
+
1996
+
1997
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1998
+ ...commonParams
1999
+ }).m(function(Command, cs, config, o) {
2000
+ return [
2001
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2002
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2003
+ ];
2004
+ }).s("AmazonAppIntegrationService", "ListTagsForResource", {}).n("AppIntegrationsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2005
+ };
2006
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2007
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2008
+
2009
+ // src/commands/TagResourceCommand.ts
2010
+
2011
+
2012
+
2013
+
2014
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2015
+ ...commonParams
2016
+ }).m(function(Command, cs, config, o) {
2017
+ return [
2018
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2019
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2020
+ ];
2021
+ }).s("AmazonAppIntegrationService", "TagResource", {}).n("AppIntegrationsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2022
+ };
2023
+ __name(_TagResourceCommand, "TagResourceCommand");
2024
+ var TagResourceCommand = _TagResourceCommand;
2025
+
2026
+ // src/commands/UntagResourceCommand.ts
2027
+
2028
+
2029
+
2030
+
2031
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2032
+ ...commonParams
2033
+ }).m(function(Command, cs, config, o) {
2034
+ return [
2035
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2036
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2037
+ ];
2038
+ }).s("AmazonAppIntegrationService", "UntagResource", {}).n("AppIntegrationsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2039
+ };
2040
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2041
+ var UntagResourceCommand = _UntagResourceCommand;
2042
+
2043
+ // src/commands/UpdateApplicationCommand.ts
2044
+
2045
+
2046
+
2047
+
2048
+ var _UpdateApplicationCommand = class _UpdateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2049
+ ...commonParams
2050
+ }).m(function(Command, cs, config, o) {
2051
+ return [
2052
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2053
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2054
+ ];
2055
+ }).s("AmazonAppIntegrationService", "UpdateApplication", {}).n("AppIntegrationsClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
2056
+ };
2057
+ __name(_UpdateApplicationCommand, "UpdateApplicationCommand");
2058
+ var UpdateApplicationCommand = _UpdateApplicationCommand;
2059
+
2060
+ // src/commands/UpdateDataIntegrationCommand.ts
2061
+
2062
+
2063
+
2064
+
2065
+ var _UpdateDataIntegrationCommand = class _UpdateDataIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
2066
+ ...commonParams
2067
+ }).m(function(Command, cs, config, o) {
2068
+ return [
2069
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2070
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2071
+ ];
2072
+ }).s("AmazonAppIntegrationService", "UpdateDataIntegration", {}).n("AppIntegrationsClient", "UpdateDataIntegrationCommand").f(void 0, void 0).ser(se_UpdateDataIntegrationCommand).de(de_UpdateDataIntegrationCommand).build() {
2073
+ };
2074
+ __name(_UpdateDataIntegrationCommand, "UpdateDataIntegrationCommand");
2075
+ var UpdateDataIntegrationCommand = _UpdateDataIntegrationCommand;
2076
+
2077
+ // src/commands/UpdateEventIntegrationCommand.ts
2078
+
2079
+
2080
+
2081
+
2082
+ var _UpdateEventIntegrationCommand = class _UpdateEventIntegrationCommand extends import_smithy_client.Command.classBuilder().ep({
2083
+ ...commonParams
2084
+ }).m(function(Command, cs, config, o) {
2085
+ return [
2086
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2087
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2088
+ ];
2089
+ }).s("AmazonAppIntegrationService", "UpdateEventIntegration", {}).n("AppIntegrationsClient", "UpdateEventIntegrationCommand").f(void 0, void 0).ser(se_UpdateEventIntegrationCommand).de(de_UpdateEventIntegrationCommand).build() {
2090
+ };
2091
+ __name(_UpdateEventIntegrationCommand, "UpdateEventIntegrationCommand");
2092
+ var UpdateEventIntegrationCommand = _UpdateEventIntegrationCommand;
2093
+
2094
+ // src/AppIntegrations.ts
2095
+ var commands = {
2096
+ CreateApplicationCommand,
2097
+ CreateDataIntegrationCommand,
2098
+ CreateEventIntegrationCommand,
2099
+ DeleteApplicationCommand,
2100
+ DeleteDataIntegrationCommand,
2101
+ DeleteEventIntegrationCommand,
2102
+ GetApplicationCommand,
2103
+ GetDataIntegrationCommand,
2104
+ GetEventIntegrationCommand,
2105
+ ListApplicationAssociationsCommand,
2106
+ ListApplicationsCommand,
2107
+ ListDataIntegrationAssociationsCommand,
2108
+ ListDataIntegrationsCommand,
2109
+ ListEventIntegrationAssociationsCommand,
2110
+ ListEventIntegrationsCommand,
2111
+ ListTagsForResourceCommand,
2112
+ TagResourceCommand,
2113
+ UntagResourceCommand,
2114
+ UpdateApplicationCommand,
2115
+ UpdateDataIntegrationCommand,
2116
+ UpdateEventIntegrationCommand
2117
+ };
2118
+ var _AppIntegrations = class _AppIntegrations extends AppIntegrationsClient {
2119
+ };
2120
+ __name(_AppIntegrations, "AppIntegrations");
2121
+ var AppIntegrations = _AppIntegrations;
2122
+ (0, import_smithy_client.createAggregatedClient)(commands, AppIntegrations);
2123
+
2124
+ // src/pagination/ListApplicationAssociationsPaginator.ts
2125
+
2126
+ var paginateListApplicationAssociations = (0, import_core.createPaginator)(AppIntegrationsClient, ListApplicationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
2127
+
2128
+ // src/pagination/ListApplicationsPaginator.ts
2129
+
2130
+ var paginateListApplications = (0, import_core.createPaginator)(AppIntegrationsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
2131
+
2132
+ // src/pagination/ListDataIntegrationAssociationsPaginator.ts
2133
+
2134
+ var paginateListDataIntegrationAssociations = (0, import_core.createPaginator)(AppIntegrationsClient, ListDataIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
2135
+
2136
+ // src/pagination/ListDataIntegrationsPaginator.ts
2137
+
2138
+ var paginateListDataIntegrations = (0, import_core.createPaginator)(AppIntegrationsClient, ListDataIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
2139
+
2140
+ // src/pagination/ListEventIntegrationAssociationsPaginator.ts
2141
+
2142
+ var paginateListEventIntegrationAssociations = (0, import_core.createPaginator)(AppIntegrationsClient, ListEventIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
2143
+
2144
+ // src/pagination/ListEventIntegrationsPaginator.ts
2145
+
2146
+ var paginateListEventIntegrations = (0, import_core.createPaginator)(AppIntegrationsClient, ListEventIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
2147
+
2148
+ // src/index.ts
2149
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2150
+ // Annotate the CommonJS export names for ESM import in node:
2151
+
2152
+ 0 && (module.exports = {
2153
+ AccessDeniedException,
2154
+ AppIntegrations,
2155
+ AppIntegrationsClient,
2156
+ AppIntegrationsServiceException,
2157
+ CreateApplicationCommand,
2158
+ CreateDataIntegrationCommand,
2159
+ CreateEventIntegrationCommand,
2160
+ DeleteApplicationCommand,
2161
+ DeleteDataIntegrationCommand,
2162
+ DeleteEventIntegrationCommand,
2163
+ DuplicateResourceException,
2164
+ GetApplicationCommand,
2165
+ GetDataIntegrationCommand,
2166
+ GetEventIntegrationCommand,
2167
+ InternalServiceError,
2168
+ InvalidRequestException,
2169
+ ListApplicationAssociationsCommand,
2170
+ ListApplicationsCommand,
2171
+ ListDataIntegrationAssociationsCommand,
2172
+ ListDataIntegrationsCommand,
2173
+ ListEventIntegrationAssociationsCommand,
2174
+ ListEventIntegrationsCommand,
2175
+ ListTagsForResourceCommand,
2176
+ ResourceNotFoundException,
2177
+ ResourceQuotaExceededException,
2178
+ TagResourceCommand,
2179
+ ThrottlingException,
2180
+ UnsupportedOperationException,
2181
+ UntagResourceCommand,
2182
+ UpdateApplicationCommand,
2183
+ UpdateDataIntegrationCommand,
2184
+ UpdateEventIntegrationCommand,
2185
+ __Client,
2186
+ paginateListApplicationAssociations,
2187
+ paginateListApplications,
2188
+ paginateListDataIntegrationAssociations,
2189
+ paginateListDataIntegrations,
2190
+ paginateListEventIntegrationAssociations,
2191
+ paginateListEventIntegrations
2192
+ });
2193
+