@aws-sdk/client-appfabric 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 (44) hide show
  1. package/dist-cjs/AppFabric.js +1 -63
  2. package/dist-cjs/AppFabricClient.js +1 -43
  3. package/dist-cjs/commands/BatchGetUserAccessTasksCommand.js +1 -29
  4. package/dist-cjs/commands/ConnectAppAuthorizationCommand.js +1 -29
  5. package/dist-cjs/commands/CreateAppAuthorizationCommand.js +1 -29
  6. package/dist-cjs/commands/CreateAppBundleCommand.js +1 -28
  7. package/dist-cjs/commands/CreateIngestionCommand.js +1 -28
  8. package/dist-cjs/commands/CreateIngestionDestinationCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteAppAuthorizationCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteAppBundleCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteIngestionCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteIngestionDestinationCommand.js +1 -28
  13. package/dist-cjs/commands/GetAppAuthorizationCommand.js +1 -28
  14. package/dist-cjs/commands/GetAppBundleCommand.js +1 -28
  15. package/dist-cjs/commands/GetIngestionCommand.js +1 -28
  16. package/dist-cjs/commands/GetIngestionDestinationCommand.js +1 -28
  17. package/dist-cjs/commands/ListAppAuthorizationsCommand.js +1 -28
  18. package/dist-cjs/commands/ListAppBundlesCommand.js +1 -28
  19. package/dist-cjs/commands/ListIngestionDestinationsCommand.js +1 -28
  20. package/dist-cjs/commands/ListIngestionsCommand.js +1 -28
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  22. package/dist-cjs/commands/StartIngestionCommand.js +1 -28
  23. package/dist-cjs/commands/StartUserAccessTasksCommand.js +1 -29
  24. package/dist-cjs/commands/StopIngestionCommand.js +1 -28
  25. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  26. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateAppAuthorizationCommand.js +1 -29
  28. package/dist-cjs/commands/UpdateIngestionDestinationCommand.js +1 -28
  29. package/dist-cjs/commands/index.js +1 -29
  30. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  31. package/dist-cjs/extensionConfiguration.js +1 -2
  32. package/dist-cjs/index.js +2794 -11
  33. package/dist-cjs/models/AppFabricServiceException.js +1 -12
  34. package/dist-cjs/models/index.js +1 -4
  35. package/dist-cjs/models/models_0.js +1 -255
  36. package/dist-cjs/pagination/Interfaces.js +1 -2
  37. package/dist-cjs/pagination/ListAppAuthorizationsPaginator.js +1 -7
  38. package/dist-cjs/pagination/ListAppBundlesPaginator.js +1 -7
  39. package/dist-cjs/pagination/ListIngestionDestinationsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListIngestionsPaginator.js +1 -7
  41. package/dist-cjs/pagination/index.js +1 -8
  42. package/dist-cjs/protocols/Aws_restJson1.js +1 -1784
  43. package/dist-cjs/runtimeExtensions.js +1 -22
  44. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2795 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppFabricServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./AppFabricClient"), exports);
6
- tslib_1.__exportStar(require("./AppFabric"), 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 AppFabricServiceException_1 = require("./models/AppFabricServiceException");
12
- Object.defineProperty(exports, "AppFabricServiceException", { enumerable: true, get: function () { return AppFabricServiceException_1.AppFabricServiceException; } });
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
+ ApiKeyCredentialFilterSensitiveLog: () => ApiKeyCredentialFilterSensitiveLog,
26
+ AppAuthorizationStatus: () => AppAuthorizationStatus,
27
+ AppFabric: () => AppFabric,
28
+ AppFabricClient: () => AppFabricClient,
29
+ AppFabricServiceException: () => AppFabricServiceException,
30
+ AuthRequestFilterSensitiveLog: () => AuthRequestFilterSensitiveLog,
31
+ AuthType: () => AuthType,
32
+ BatchGetUserAccessTasksCommand: () => BatchGetUserAccessTasksCommand,
33
+ BatchGetUserAccessTasksResponseFilterSensitiveLog: () => BatchGetUserAccessTasksResponseFilterSensitiveLog,
34
+ ConflictException: () => ConflictException,
35
+ ConnectAppAuthorizationCommand: () => ConnectAppAuthorizationCommand,
36
+ ConnectAppAuthorizationRequestFilterSensitiveLog: () => ConnectAppAuthorizationRequestFilterSensitiveLog,
37
+ CreateAppAuthorizationCommand: () => CreateAppAuthorizationCommand,
38
+ CreateAppAuthorizationRequestFilterSensitiveLog: () => CreateAppAuthorizationRequestFilterSensitiveLog,
39
+ CreateAppBundleCommand: () => CreateAppBundleCommand,
40
+ CreateIngestionCommand: () => CreateIngestionCommand,
41
+ CreateIngestionDestinationCommand: () => CreateIngestionDestinationCommand,
42
+ Credential: () => Credential,
43
+ CredentialFilterSensitiveLog: () => CredentialFilterSensitiveLog,
44
+ DeleteAppAuthorizationCommand: () => DeleteAppAuthorizationCommand,
45
+ DeleteAppBundleCommand: () => DeleteAppBundleCommand,
46
+ DeleteIngestionCommand: () => DeleteIngestionCommand,
47
+ DeleteIngestionDestinationCommand: () => DeleteIngestionDestinationCommand,
48
+ Destination: () => Destination,
49
+ DestinationConfiguration: () => DestinationConfiguration,
50
+ Format: () => Format,
51
+ GetAppAuthorizationCommand: () => GetAppAuthorizationCommand,
52
+ GetAppBundleCommand: () => GetAppBundleCommand,
53
+ GetIngestionCommand: () => GetIngestionCommand,
54
+ GetIngestionDestinationCommand: () => GetIngestionDestinationCommand,
55
+ IngestionDestinationStatus: () => IngestionDestinationStatus,
56
+ IngestionState: () => IngestionState,
57
+ IngestionType: () => IngestionType,
58
+ InternalServerException: () => InternalServerException,
59
+ ListAppAuthorizationsCommand: () => ListAppAuthorizationsCommand,
60
+ ListAppBundlesCommand: () => ListAppBundlesCommand,
61
+ ListIngestionDestinationsCommand: () => ListIngestionDestinationsCommand,
62
+ ListIngestionsCommand: () => ListIngestionsCommand,
63
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
64
+ Oauth2CredentialFilterSensitiveLog: () => Oauth2CredentialFilterSensitiveLog,
65
+ Persona: () => Persona,
66
+ ProcessingConfiguration: () => ProcessingConfiguration,
67
+ ResourceNotFoundException: () => ResourceNotFoundException,
68
+ ResultStatus: () => ResultStatus,
69
+ Schema: () => Schema,
70
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
71
+ StartIngestionCommand: () => StartIngestionCommand,
72
+ StartUserAccessTasksCommand: () => StartUserAccessTasksCommand,
73
+ StartUserAccessTasksRequestFilterSensitiveLog: () => StartUserAccessTasksRequestFilterSensitiveLog,
74
+ StopIngestionCommand: () => StopIngestionCommand,
75
+ TagResourceCommand: () => TagResourceCommand,
76
+ ThrottlingException: () => ThrottlingException,
77
+ UntagResourceCommand: () => UntagResourceCommand,
78
+ UpdateAppAuthorizationCommand: () => UpdateAppAuthorizationCommand,
79
+ UpdateAppAuthorizationRequestFilterSensitiveLog: () => UpdateAppAuthorizationRequestFilterSensitiveLog,
80
+ UpdateIngestionDestinationCommand: () => UpdateIngestionDestinationCommand,
81
+ UserAccessResultItemFilterSensitiveLog: () => UserAccessResultItemFilterSensitiveLog,
82
+ ValidationException: () => ValidationException,
83
+ ValidationExceptionReason: () => ValidationExceptionReason,
84
+ __Client: () => import_smithy_client.Client,
85
+ paginateListAppAuthorizations: () => paginateListAppAuthorizations,
86
+ paginateListAppBundles: () => paginateListAppBundles,
87
+ paginateListIngestionDestinations: () => paginateListIngestionDestinations,
88
+ paginateListIngestions: () => paginateListIngestions
89
+ });
90
+ module.exports = __toCommonJS(src_exports);
91
+
92
+ // src/AppFabricClient.ts
93
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
94
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
95
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
96
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
97
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
98
+ var import_config_resolver = require("@smithy/config-resolver");
99
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
100
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
101
+ var import_middleware_retry = require("@smithy/middleware-retry");
102
+
103
+
104
+ // src/endpoint/EndpointParameters.ts
105
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
106
+ return {
107
+ ...options,
108
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
109
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
110
+ defaultSigningName: "appfabric"
111
+ };
112
+ }, "resolveClientEndpointParameters");
113
+ var commonParams = {
114
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
115
+ Endpoint: { type: "builtInParams", name: "endpoint" },
116
+ Region: { type: "builtInParams", name: "region" },
117
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
118
+ };
119
+
120
+ // src/AppFabricClient.ts
121
+ var import_runtimeConfig = require("././runtimeConfig");
122
+
123
+ // src/runtimeExtensions.ts
124
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
125
+ var import_protocol_http = require("@smithy/protocol-http");
126
+ var import_smithy_client = require("@smithy/smithy-client");
127
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
128
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
129
+ const extensionConfiguration = {
130
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
131
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
132
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
133
+ };
134
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
135
+ return {
136
+ ...runtimeConfig,
137
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
138
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
139
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
140
+ };
141
+ }, "resolveRuntimeExtensions");
142
+
143
+ // src/AppFabricClient.ts
144
+ var _AppFabricClient = class _AppFabricClient extends import_smithy_client.Client {
145
+ constructor(...[configuration]) {
146
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
147
+ const _config_1 = resolveClientEndpointParameters(_config_0);
148
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
149
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
150
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
151
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
152
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
153
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
154
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
155
+ super(_config_8);
156
+ this.config = _config_8;
157
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
158
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
161
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
162
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
163
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
164
+ }
165
+ /**
166
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
167
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
168
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
169
+ */
170
+ destroy() {
171
+ super.destroy();
172
+ }
173
+ };
174
+ __name(_AppFabricClient, "AppFabricClient");
175
+ var AppFabricClient = _AppFabricClient;
176
+
177
+ // src/AppFabric.ts
178
+
179
+
180
+ // src/commands/BatchGetUserAccessTasksCommand.ts
181
+
182
+ var import_middleware_serde = require("@smithy/middleware-serde");
183
+
184
+ var import_types = require("@smithy/types");
185
+
186
+ // src/models/models_0.ts
187
+
188
+
189
+ // src/models/AppFabricServiceException.ts
190
+
191
+ var _AppFabricServiceException = class _AppFabricServiceException extends import_smithy_client.ServiceException {
192
+ /**
193
+ * @internal
194
+ */
195
+ constructor(options) {
196
+ super(options);
197
+ Object.setPrototypeOf(this, _AppFabricServiceException.prototype);
198
+ }
199
+ };
200
+ __name(_AppFabricServiceException, "AppFabricServiceException");
201
+ var AppFabricServiceException = _AppFabricServiceException;
202
+
203
+ // src/models/models_0.ts
204
+ var _AccessDeniedException = class _AccessDeniedException extends AppFabricServiceException {
205
+ /**
206
+ * @internal
207
+ */
208
+ constructor(opts) {
209
+ super({
210
+ name: "AccessDeniedException",
211
+ $fault: "client",
212
+ ...opts
213
+ });
214
+ this.name = "AccessDeniedException";
215
+ this.$fault = "client";
216
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
217
+ }
218
+ };
219
+ __name(_AccessDeniedException, "AccessDeniedException");
220
+ var AccessDeniedException = _AccessDeniedException;
221
+ var AuthType = {
222
+ API_KEY: "apiKey",
223
+ OAUTH2: "oauth2"
224
+ };
225
+ var Persona = {
226
+ ADMIN: "admin",
227
+ ENDUSER: "endUser"
228
+ };
229
+ var AppAuthorizationStatus = {
230
+ CONNECTED: "Connected",
231
+ CONNECTION_VALIDATION_FAILED: "ConnectionValidationFailed",
232
+ PENDING_CONNECT: "PendingConnect",
233
+ TOKEN_AUTO_ROTATION_FAILED: "TokenAutoRotationFailed"
234
+ };
235
+ var Destination;
236
+ ((Destination3) => {
237
+ Destination3.visit = /* @__PURE__ */ __name((value, visitor) => {
238
+ if (value.s3Bucket !== void 0)
239
+ return visitor.s3Bucket(value.s3Bucket);
240
+ if (value.firehoseStream !== void 0)
241
+ return visitor.firehoseStream(value.firehoseStream);
242
+ return visitor._(value.$unknown[0], value.$unknown[1]);
243
+ }, "visit");
244
+ })(Destination || (Destination = {}));
245
+ var Format = {
246
+ JSON: "json",
247
+ PARQUET: "parquet"
248
+ };
249
+ var Schema = {
250
+ OCSF: "ocsf",
251
+ RAW: "raw"
252
+ };
253
+ var ResultStatus = {
254
+ COMPLETED: "COMPLETED",
255
+ EXPIRED: "EXPIRED",
256
+ FAILED: "FAILED",
257
+ IN_PROGRESS: "IN_PROGRESS"
258
+ };
259
+ var _InternalServerException = class _InternalServerException extends AppFabricServiceException {
260
+ /**
261
+ * @internal
262
+ */
263
+ constructor(opts) {
264
+ super({
265
+ name: "InternalServerException",
266
+ $fault: "server",
267
+ ...opts
268
+ });
269
+ this.name = "InternalServerException";
270
+ this.$fault = "server";
271
+ this.$retryable = {};
272
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
273
+ this.retryAfterSeconds = opts.retryAfterSeconds;
274
+ }
275
+ };
276
+ __name(_InternalServerException, "InternalServerException");
277
+ var InternalServerException = _InternalServerException;
278
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends AppFabricServiceException {
279
+ /**
280
+ * @internal
281
+ */
282
+ constructor(opts) {
283
+ super({
284
+ name: "ResourceNotFoundException",
285
+ $fault: "client",
286
+ ...opts
287
+ });
288
+ this.name = "ResourceNotFoundException";
289
+ this.$fault = "client";
290
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
291
+ this.resourceId = opts.resourceId;
292
+ this.resourceType = opts.resourceType;
293
+ }
294
+ };
295
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
296
+ var ResourceNotFoundException = _ResourceNotFoundException;
297
+ var _ThrottlingException = class _ThrottlingException extends AppFabricServiceException {
298
+ /**
299
+ * @internal
300
+ */
301
+ constructor(opts) {
302
+ super({
303
+ name: "ThrottlingException",
304
+ $fault: "client",
305
+ ...opts
306
+ });
307
+ this.name = "ThrottlingException";
308
+ this.$fault = "client";
309
+ this.$retryable = {
310
+ throttling: true
311
+ };
312
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
313
+ this.serviceCode = opts.serviceCode;
314
+ this.quotaCode = opts.quotaCode;
315
+ this.retryAfterSeconds = opts.retryAfterSeconds;
316
+ }
317
+ };
318
+ __name(_ThrottlingException, "ThrottlingException");
319
+ var ThrottlingException = _ThrottlingException;
320
+ var ValidationExceptionReason = {
321
+ CANNOT_PARSE: "cannotParse",
322
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
323
+ OTHER: "other",
324
+ UNKNOWN_OPERATION: "unknownOperation"
325
+ };
326
+ var _ValidationException = class _ValidationException extends AppFabricServiceException {
327
+ /**
328
+ * @internal
329
+ */
330
+ constructor(opts) {
331
+ super({
332
+ name: "ValidationException",
333
+ $fault: "client",
334
+ ...opts
335
+ });
336
+ this.name = "ValidationException";
337
+ this.$fault = "client";
338
+ Object.setPrototypeOf(this, _ValidationException.prototype);
339
+ this.reason = opts.reason;
340
+ this.fieldList = opts.fieldList;
341
+ }
342
+ };
343
+ __name(_ValidationException, "ValidationException");
344
+ var ValidationException = _ValidationException;
345
+ var _ConflictException = class _ConflictException extends AppFabricServiceException {
346
+ /**
347
+ * @internal
348
+ */
349
+ constructor(opts) {
350
+ super({
351
+ name: "ConflictException",
352
+ $fault: "client",
353
+ ...opts
354
+ });
355
+ this.name = "ConflictException";
356
+ this.$fault = "client";
357
+ Object.setPrototypeOf(this, _ConflictException.prototype);
358
+ this.resourceId = opts.resourceId;
359
+ this.resourceType = opts.resourceType;
360
+ }
361
+ };
362
+ __name(_ConflictException, "ConflictException");
363
+ var ConflictException = _ConflictException;
364
+ var Credential;
365
+ ((Credential3) => {
366
+ Credential3.visit = /* @__PURE__ */ __name((value, visitor) => {
367
+ if (value.oauth2Credential !== void 0)
368
+ return visitor.oauth2Credential(value.oauth2Credential);
369
+ if (value.apiKeyCredential !== void 0)
370
+ return visitor.apiKeyCredential(value.apiKeyCredential);
371
+ return visitor._(value.$unknown[0], value.$unknown[1]);
372
+ }, "visit");
373
+ })(Credential || (Credential = {}));
374
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AppFabricServiceException {
375
+ /**
376
+ * @internal
377
+ */
378
+ constructor(opts) {
379
+ super({
380
+ name: "ServiceQuotaExceededException",
381
+ $fault: "client",
382
+ ...opts
383
+ });
384
+ this.name = "ServiceQuotaExceededException";
385
+ this.$fault = "client";
386
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
387
+ this.resourceId = opts.resourceId;
388
+ this.resourceType = opts.resourceType;
389
+ this.serviceCode = opts.serviceCode;
390
+ this.quotaCode = opts.quotaCode;
391
+ }
392
+ };
393
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
394
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
395
+ var IngestionType = {
396
+ AUDIT_LOG: "auditLog"
397
+ };
398
+ var IngestionState = {
399
+ DISABLED: "disabled",
400
+ ENABLED: "enabled"
401
+ };
402
+ var DestinationConfiguration;
403
+ ((DestinationConfiguration3) => {
404
+ DestinationConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
405
+ if (value.auditLog !== void 0)
406
+ return visitor.auditLog(value.auditLog);
407
+ return visitor._(value.$unknown[0], value.$unknown[1]);
408
+ }, "visit");
409
+ })(DestinationConfiguration || (DestinationConfiguration = {}));
410
+ var ProcessingConfiguration;
411
+ ((ProcessingConfiguration3) => {
412
+ ProcessingConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
413
+ if (value.auditLog !== void 0)
414
+ return visitor.auditLog(value.auditLog);
415
+ return visitor._(value.$unknown[0], value.$unknown[1]);
416
+ }, "visit");
417
+ })(ProcessingConfiguration || (ProcessingConfiguration = {}));
418
+ var IngestionDestinationStatus = {
419
+ ACTIVE: "Active",
420
+ FAILED: "Failed"
421
+ };
422
+ var ApiKeyCredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
423
+ ...obj,
424
+ ...obj.apiKey && { apiKey: import_smithy_client.SENSITIVE_STRING }
425
+ }), "ApiKeyCredentialFilterSensitiveLog");
426
+ var AuthRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
427
+ ...obj,
428
+ ...obj.code && { code: import_smithy_client.SENSITIVE_STRING }
429
+ }), "AuthRequestFilterSensitiveLog");
430
+ var UserAccessResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
431
+ ...obj,
432
+ ...obj.email && { email: import_smithy_client.SENSITIVE_STRING },
433
+ ...obj.userId && { userId: import_smithy_client.SENSITIVE_STRING },
434
+ ...obj.userFullName && { userFullName: import_smithy_client.SENSITIVE_STRING },
435
+ ...obj.userFirstName && { userFirstName: import_smithy_client.SENSITIVE_STRING },
436
+ ...obj.userLastName && { userLastName: import_smithy_client.SENSITIVE_STRING }
437
+ }), "UserAccessResultItemFilterSensitiveLog");
438
+ var BatchGetUserAccessTasksResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
439
+ ...obj,
440
+ ...obj.userAccessResultsList && {
441
+ userAccessResultsList: obj.userAccessResultsList.map((item) => UserAccessResultItemFilterSensitiveLog(item))
442
+ }
443
+ }), "BatchGetUserAccessTasksResponseFilterSensitiveLog");
444
+ var ConnectAppAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
445
+ ...obj,
446
+ ...obj.authRequest && { authRequest: AuthRequestFilterSensitiveLog(obj.authRequest) }
447
+ }), "ConnectAppAuthorizationRequestFilterSensitiveLog");
448
+ var Oauth2CredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
449
+ ...obj,
450
+ ...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
451
+ }), "Oauth2CredentialFilterSensitiveLog");
452
+ var CredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
453
+ if (obj.oauth2Credential !== void 0)
454
+ return { oauth2Credential: Oauth2CredentialFilterSensitiveLog(obj.oauth2Credential) };
455
+ if (obj.apiKeyCredential !== void 0)
456
+ return { apiKeyCredential: ApiKeyCredentialFilterSensitiveLog(obj.apiKeyCredential) };
457
+ if (obj.$unknown !== void 0)
458
+ return { [obj.$unknown[0]]: "UNKNOWN" };
459
+ }, "CredentialFilterSensitiveLog");
460
+ var CreateAppAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
461
+ ...obj,
462
+ ...obj.credential && { credential: CredentialFilterSensitiveLog(obj.credential) }
463
+ }), "CreateAppAuthorizationRequestFilterSensitiveLog");
464
+ var StartUserAccessTasksRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
465
+ ...obj,
466
+ ...obj.email && { email: import_smithy_client.SENSITIVE_STRING }
467
+ }), "StartUserAccessTasksRequestFilterSensitiveLog");
468
+ var UpdateAppAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
469
+ ...obj,
470
+ ...obj.credential && { credential: CredentialFilterSensitiveLog(obj.credential) }
471
+ }), "UpdateAppAuthorizationRequestFilterSensitiveLog");
472
+
473
+ // src/protocols/Aws_restJson1.ts
474
+ var import_core = require("@aws-sdk/core");
475
+ var import_core2 = require("@smithy/core");
476
+
477
+ var import_uuid = require("uuid");
478
+ var se_BatchGetUserAccessTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
479
+ const b = (0, import_core2.requestBuilder)(input, context);
480
+ const headers = {
481
+ "content-type": "application/json"
482
+ };
483
+ b.bp("/useraccess/batchget");
484
+ let body;
485
+ body = JSON.stringify(
486
+ (0, import_smithy_client.take)(input, {
487
+ appBundleIdentifier: [],
488
+ taskIdList: (_) => (0, import_smithy_client._json)(_)
489
+ })
490
+ );
491
+ b.m("POST").h(headers).b(body);
492
+ return b.build();
493
+ }, "se_BatchGetUserAccessTasksCommand");
494
+ var se_ConnectAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
495
+ const b = (0, import_core2.requestBuilder)(input, context);
496
+ const headers = {
497
+ "content-type": "application/json"
498
+ };
499
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect");
500
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
501
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
502
+ let body;
503
+ body = JSON.stringify(
504
+ (0, import_smithy_client.take)(input, {
505
+ authRequest: (_) => (0, import_smithy_client._json)(_)
506
+ })
507
+ );
508
+ b.m("POST").h(headers).b(body);
509
+ return b.build();
510
+ }, "se_ConnectAppAuthorizationCommand");
511
+ var se_CreateAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
512
+ const b = (0, import_core2.requestBuilder)(input, context);
513
+ const headers = {
514
+ "content-type": "application/json"
515
+ };
516
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
517
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
518
+ let body;
519
+ body = JSON.stringify(
520
+ (0, import_smithy_client.take)(input, {
521
+ app: [],
522
+ authType: [],
523
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
524
+ credential: (_) => (0, import_smithy_client._json)(_),
525
+ tags: (_) => (0, import_smithy_client._json)(_),
526
+ tenant: (_) => (0, import_smithy_client._json)(_)
527
+ })
528
+ );
529
+ b.m("POST").h(headers).b(body);
530
+ return b.build();
531
+ }, "se_CreateAppAuthorizationCommand");
532
+ var se_CreateAppBundleCommand = /* @__PURE__ */ __name(async (input, context) => {
533
+ const b = (0, import_core2.requestBuilder)(input, context);
534
+ const headers = {
535
+ "content-type": "application/json"
536
+ };
537
+ b.bp("/appbundles");
538
+ let body;
539
+ body = JSON.stringify(
540
+ (0, import_smithy_client.take)(input, {
541
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
542
+ customerManagedKeyIdentifier: [],
543
+ tags: (_) => (0, import_smithy_client._json)(_)
544
+ })
545
+ );
546
+ b.m("POST").h(headers).b(body);
547
+ return b.build();
548
+ }, "se_CreateAppBundleCommand");
549
+ var se_CreateIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
550
+ const b = (0, import_core2.requestBuilder)(input, context);
551
+ const headers = {
552
+ "content-type": "application/json"
553
+ };
554
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions");
555
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
556
+ let body;
557
+ body = JSON.stringify(
558
+ (0, import_smithy_client.take)(input, {
559
+ app: [],
560
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
561
+ ingestionType: [],
562
+ tags: (_) => (0, import_smithy_client._json)(_),
563
+ tenantId: []
564
+ })
565
+ );
566
+ b.m("POST").h(headers).b(body);
567
+ return b.build();
568
+ }, "se_CreateIngestionCommand");
569
+ var se_CreateIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
570
+ const b = (0, import_core2.requestBuilder)(input, context);
571
+ const headers = {
572
+ "content-type": "application/json"
573
+ };
574
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
575
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
576
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
577
+ let body;
578
+ body = JSON.stringify(
579
+ (0, import_smithy_client.take)(input, {
580
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
581
+ destinationConfiguration: (_) => (0, import_smithy_client._json)(_),
582
+ processingConfiguration: (_) => (0, import_smithy_client._json)(_),
583
+ tags: (_) => (0, import_smithy_client._json)(_)
584
+ })
585
+ );
586
+ b.m("POST").h(headers).b(body);
587
+ return b.build();
588
+ }, "se_CreateIngestionDestinationCommand");
589
+ var se_DeleteAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
590
+ const b = (0, import_core2.requestBuilder)(input, context);
591
+ const headers = {};
592
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
593
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
594
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
595
+ let body;
596
+ b.m("DELETE").h(headers).b(body);
597
+ return b.build();
598
+ }, "se_DeleteAppAuthorizationCommand");
599
+ var se_DeleteAppBundleCommand = /* @__PURE__ */ __name(async (input, context) => {
600
+ const b = (0, import_core2.requestBuilder)(input, context);
601
+ const headers = {};
602
+ b.bp("/appbundles/{appBundleIdentifier}");
603
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
604
+ let body;
605
+ b.m("DELETE").h(headers).b(body);
606
+ return b.build();
607
+ }, "se_DeleteAppBundleCommand");
608
+ var se_DeleteIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const b = (0, import_core2.requestBuilder)(input, context);
610
+ const headers = {};
611
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
612
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
613
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
614
+ let body;
615
+ b.m("DELETE").h(headers).b(body);
616
+ return b.build();
617
+ }, "se_DeleteIngestionCommand");
618
+ var se_DeleteIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
619
+ const b = (0, import_core2.requestBuilder)(input, context);
620
+ const headers = {};
621
+ b.bp(
622
+ "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"
623
+ );
624
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
625
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
626
+ b.p(
627
+ "ingestionDestinationIdentifier",
628
+ () => input.ingestionDestinationIdentifier,
629
+ "{ingestionDestinationIdentifier}",
630
+ false
631
+ );
632
+ let body;
633
+ b.m("DELETE").h(headers).b(body);
634
+ return b.build();
635
+ }, "se_DeleteIngestionDestinationCommand");
636
+ var se_GetAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
637
+ const b = (0, import_core2.requestBuilder)(input, context);
638
+ const headers = {};
639
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
640
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
641
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
642
+ let body;
643
+ b.m("GET").h(headers).b(body);
644
+ return b.build();
645
+ }, "se_GetAppAuthorizationCommand");
646
+ var se_GetAppBundleCommand = /* @__PURE__ */ __name(async (input, context) => {
647
+ const b = (0, import_core2.requestBuilder)(input, context);
648
+ const headers = {};
649
+ b.bp("/appbundles/{appBundleIdentifier}");
650
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
651
+ let body;
652
+ b.m("GET").h(headers).b(body);
653
+ return b.build();
654
+ }, "se_GetAppBundleCommand");
655
+ var se_GetIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
656
+ const b = (0, import_core2.requestBuilder)(input, context);
657
+ const headers = {};
658
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
659
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
660
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
661
+ let body;
662
+ b.m("GET").h(headers).b(body);
663
+ return b.build();
664
+ }, "se_GetIngestionCommand");
665
+ var se_GetIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
666
+ const b = (0, import_core2.requestBuilder)(input, context);
667
+ const headers = {};
668
+ b.bp(
669
+ "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"
670
+ );
671
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
672
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
673
+ b.p(
674
+ "ingestionDestinationIdentifier",
675
+ () => input.ingestionDestinationIdentifier,
676
+ "{ingestionDestinationIdentifier}",
677
+ false
678
+ );
679
+ let body;
680
+ b.m("GET").h(headers).b(body);
681
+ return b.build();
682
+ }, "se_GetIngestionDestinationCommand");
683
+ var se_ListAppAuthorizationsCommand = /* @__PURE__ */ __name(async (input, context) => {
684
+ const b = (0, import_core2.requestBuilder)(input, context);
685
+ const headers = {};
686
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
687
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
688
+ const query = (0, import_smithy_client.map)({
689
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
690
+ [_nT]: [, input[_nT]]
691
+ });
692
+ let body;
693
+ b.m("GET").h(headers).q(query).b(body);
694
+ return b.build();
695
+ }, "se_ListAppAuthorizationsCommand");
696
+ var se_ListAppBundlesCommand = /* @__PURE__ */ __name(async (input, context) => {
697
+ const b = (0, import_core2.requestBuilder)(input, context);
698
+ const headers = {};
699
+ b.bp("/appbundles");
700
+ const query = (0, import_smithy_client.map)({
701
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
702
+ [_nT]: [, input[_nT]]
703
+ });
704
+ let body;
705
+ b.m("GET").h(headers).q(query).b(body);
706
+ return b.build();
707
+ }, "se_ListAppBundlesCommand");
708
+ var se_ListIngestionDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
709
+ const b = (0, import_core2.requestBuilder)(input, context);
710
+ const headers = {};
711
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
712
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
713
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
714
+ const query = (0, import_smithy_client.map)({
715
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
716
+ [_nT]: [, input[_nT]]
717
+ });
718
+ let body;
719
+ b.m("GET").h(headers).q(query).b(body);
720
+ return b.build();
721
+ }, "se_ListIngestionDestinationsCommand");
722
+ var se_ListIngestionsCommand = /* @__PURE__ */ __name(async (input, context) => {
723
+ const b = (0, import_core2.requestBuilder)(input, context);
724
+ const headers = {};
725
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions");
726
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
727
+ const query = (0, import_smithy_client.map)({
728
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
729
+ [_nT]: [, input[_nT]]
730
+ });
731
+ let body;
732
+ b.m("GET").h(headers).q(query).b(body);
733
+ return b.build();
734
+ }, "se_ListIngestionsCommand");
735
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
736
+ const b = (0, import_core2.requestBuilder)(input, context);
737
+ const headers = {};
738
+ b.bp("/tags/{resourceArn}");
739
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
740
+ let body;
741
+ b.m("GET").h(headers).b(body);
742
+ return b.build();
743
+ }, "se_ListTagsForResourceCommand");
744
+ var se_StartIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
745
+ const b = (0, import_core2.requestBuilder)(input, context);
746
+ const headers = {};
747
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start");
748
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
749
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
750
+ let body;
751
+ b.m("POST").h(headers).b(body);
752
+ return b.build();
753
+ }, "se_StartIngestionCommand");
754
+ var se_StartUserAccessTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
755
+ const b = (0, import_core2.requestBuilder)(input, context);
756
+ const headers = {
757
+ "content-type": "application/json"
758
+ };
759
+ b.bp("/useraccess/start");
760
+ let body;
761
+ body = JSON.stringify(
762
+ (0, import_smithy_client.take)(input, {
763
+ appBundleIdentifier: [],
764
+ email: []
765
+ })
766
+ );
767
+ b.m("POST").h(headers).b(body);
768
+ return b.build();
769
+ }, "se_StartUserAccessTasksCommand");
770
+ var se_StopIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
771
+ const b = (0, import_core2.requestBuilder)(input, context);
772
+ const headers = {};
773
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop");
774
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
775
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
776
+ let body;
777
+ b.m("POST").h(headers).b(body);
778
+ return b.build();
779
+ }, "se_StopIngestionCommand");
780
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
781
+ const b = (0, import_core2.requestBuilder)(input, context);
782
+ const headers = {
783
+ "content-type": "application/json"
784
+ };
785
+ b.bp("/tags/{resourceArn}");
786
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
787
+ let body;
788
+ body = JSON.stringify(
789
+ (0, import_smithy_client.take)(input, {
790
+ tags: (_) => (0, import_smithy_client._json)(_)
791
+ })
792
+ );
793
+ b.m("POST").h(headers).b(body);
794
+ return b.build();
795
+ }, "se_TagResourceCommand");
796
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
797
+ const b = (0, import_core2.requestBuilder)(input, context);
798
+ const headers = {};
799
+ b.bp("/tags/{resourceArn}");
800
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
801
+ const query = (0, import_smithy_client.map)({
802
+ [_tK]: [
803
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
804
+ () => (input[_tK] || []).map((_entry) => _entry)
805
+ ]
806
+ });
807
+ let body;
808
+ b.m("DELETE").h(headers).q(query).b(body);
809
+ return b.build();
810
+ }, "se_UntagResourceCommand");
811
+ var se_UpdateAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
812
+ const b = (0, import_core2.requestBuilder)(input, context);
813
+ const headers = {
814
+ "content-type": "application/json"
815
+ };
816
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
817
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
818
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
819
+ let body;
820
+ body = JSON.stringify(
821
+ (0, import_smithy_client.take)(input, {
822
+ credential: (_) => (0, import_smithy_client._json)(_),
823
+ tenant: (_) => (0, import_smithy_client._json)(_)
824
+ })
825
+ );
826
+ b.m("PATCH").h(headers).b(body);
827
+ return b.build();
828
+ }, "se_UpdateAppAuthorizationCommand");
829
+ var se_UpdateIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
830
+ const b = (0, import_core2.requestBuilder)(input, context);
831
+ const headers = {
832
+ "content-type": "application/json"
833
+ };
834
+ b.bp(
835
+ "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"
836
+ );
837
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
838
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
839
+ b.p(
840
+ "ingestionDestinationIdentifier",
841
+ () => input.ingestionDestinationIdentifier,
842
+ "{ingestionDestinationIdentifier}",
843
+ false
844
+ );
845
+ let body;
846
+ body = JSON.stringify(
847
+ (0, import_smithy_client.take)(input, {
848
+ destinationConfiguration: (_) => (0, import_smithy_client._json)(_)
849
+ })
850
+ );
851
+ b.m("PATCH").h(headers).b(body);
852
+ return b.build();
853
+ }, "se_UpdateIngestionDestinationCommand");
854
+ var de_BatchGetUserAccessTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
855
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
856
+ return de_BatchGetUserAccessTasksCommandError(output, context);
857
+ }
858
+ const contents = (0, import_smithy_client.map)({
859
+ $metadata: deserializeMetadata(output)
860
+ });
861
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
862
+ const doc = (0, import_smithy_client.take)(data, {
863
+ userAccessResultsList: import_smithy_client._json
864
+ });
865
+ Object.assign(contents, doc);
866
+ return contents;
867
+ }, "de_BatchGetUserAccessTasksCommand");
868
+ var de_BatchGetUserAccessTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
869
+ const parsedOutput = {
870
+ ...output,
871
+ body: await parseErrorBody(output.body, context)
872
+ };
873
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
874
+ switch (errorCode) {
875
+ case "AccessDeniedException":
876
+ case "com.amazonaws.appfabric#AccessDeniedException":
877
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
878
+ case "InternalServerException":
879
+ case "com.amazonaws.appfabric#InternalServerException":
880
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
881
+ case "ResourceNotFoundException":
882
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
883
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
884
+ case "ThrottlingException":
885
+ case "com.amazonaws.appfabric#ThrottlingException":
886
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
887
+ case "ValidationException":
888
+ case "com.amazonaws.appfabric#ValidationException":
889
+ throw await de_ValidationExceptionRes(parsedOutput, context);
890
+ default:
891
+ const parsedBody = parsedOutput.body;
892
+ return throwDefaultError({
893
+ output,
894
+ parsedBody,
895
+ errorCode
896
+ });
897
+ }
898
+ }, "de_BatchGetUserAccessTasksCommandError");
899
+ var de_ConnectAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
900
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
901
+ return de_ConnectAppAuthorizationCommandError(output, context);
902
+ }
903
+ const contents = (0, import_smithy_client.map)({
904
+ $metadata: deserializeMetadata(output)
905
+ });
906
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
907
+ const doc = (0, import_smithy_client.take)(data, {
908
+ appAuthorizationSummary: (_) => de_AppAuthorizationSummary(_, context)
909
+ });
910
+ Object.assign(contents, doc);
911
+ return contents;
912
+ }, "de_ConnectAppAuthorizationCommand");
913
+ var de_ConnectAppAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
914
+ const parsedOutput = {
915
+ ...output,
916
+ body: await parseErrorBody(output.body, context)
917
+ };
918
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
919
+ switch (errorCode) {
920
+ case "AccessDeniedException":
921
+ case "com.amazonaws.appfabric#AccessDeniedException":
922
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
923
+ case "InternalServerException":
924
+ case "com.amazonaws.appfabric#InternalServerException":
925
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
926
+ case "ResourceNotFoundException":
927
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
928
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
929
+ case "ThrottlingException":
930
+ case "com.amazonaws.appfabric#ThrottlingException":
931
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
932
+ case "ValidationException":
933
+ case "com.amazonaws.appfabric#ValidationException":
934
+ throw await de_ValidationExceptionRes(parsedOutput, context);
935
+ default:
936
+ const parsedBody = parsedOutput.body;
937
+ return throwDefaultError({
938
+ output,
939
+ parsedBody,
940
+ errorCode
941
+ });
942
+ }
943
+ }, "de_ConnectAppAuthorizationCommandError");
944
+ var de_CreateAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
945
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
946
+ return de_CreateAppAuthorizationCommandError(output, context);
947
+ }
948
+ const contents = (0, import_smithy_client.map)({
949
+ $metadata: deserializeMetadata(output)
950
+ });
951
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
952
+ const doc = (0, import_smithy_client.take)(data, {
953
+ appAuthorization: (_) => de_AppAuthorization(_, context)
954
+ });
955
+ Object.assign(contents, doc);
956
+ return contents;
957
+ }, "de_CreateAppAuthorizationCommand");
958
+ var de_CreateAppAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
959
+ const parsedOutput = {
960
+ ...output,
961
+ body: await parseErrorBody(output.body, context)
962
+ };
963
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
964
+ switch (errorCode) {
965
+ case "AccessDeniedException":
966
+ case "com.amazonaws.appfabric#AccessDeniedException":
967
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
968
+ case "ConflictException":
969
+ case "com.amazonaws.appfabric#ConflictException":
970
+ throw await de_ConflictExceptionRes(parsedOutput, context);
971
+ case "InternalServerException":
972
+ case "com.amazonaws.appfabric#InternalServerException":
973
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
974
+ case "ResourceNotFoundException":
975
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
976
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
977
+ case "ServiceQuotaExceededException":
978
+ case "com.amazonaws.appfabric#ServiceQuotaExceededException":
979
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
980
+ case "ThrottlingException":
981
+ case "com.amazonaws.appfabric#ThrottlingException":
982
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
983
+ case "ValidationException":
984
+ case "com.amazonaws.appfabric#ValidationException":
985
+ throw await de_ValidationExceptionRes(parsedOutput, context);
986
+ default:
987
+ const parsedBody = parsedOutput.body;
988
+ return throwDefaultError({
989
+ output,
990
+ parsedBody,
991
+ errorCode
992
+ });
993
+ }
994
+ }, "de_CreateAppAuthorizationCommandError");
995
+ var de_CreateAppBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
996
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
997
+ return de_CreateAppBundleCommandError(output, context);
998
+ }
999
+ const contents = (0, import_smithy_client.map)({
1000
+ $metadata: deserializeMetadata(output)
1001
+ });
1002
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1003
+ const doc = (0, import_smithy_client.take)(data, {
1004
+ appBundle: import_smithy_client._json
1005
+ });
1006
+ Object.assign(contents, doc);
1007
+ return contents;
1008
+ }, "de_CreateAppBundleCommand");
1009
+ var de_CreateAppBundleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1010
+ const parsedOutput = {
1011
+ ...output,
1012
+ body: await parseErrorBody(output.body, context)
1013
+ };
1014
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
+ switch (errorCode) {
1016
+ case "AccessDeniedException":
1017
+ case "com.amazonaws.appfabric#AccessDeniedException":
1018
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1019
+ case "ConflictException":
1020
+ case "com.amazonaws.appfabric#ConflictException":
1021
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1022
+ case "InternalServerException":
1023
+ case "com.amazonaws.appfabric#InternalServerException":
1024
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1025
+ case "ServiceQuotaExceededException":
1026
+ case "com.amazonaws.appfabric#ServiceQuotaExceededException":
1027
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1028
+ case "ThrottlingException":
1029
+ case "com.amazonaws.appfabric#ThrottlingException":
1030
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1031
+ case "ValidationException":
1032
+ case "com.amazonaws.appfabric#ValidationException":
1033
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1034
+ default:
1035
+ const parsedBody = parsedOutput.body;
1036
+ return throwDefaultError({
1037
+ output,
1038
+ parsedBody,
1039
+ errorCode
1040
+ });
1041
+ }
1042
+ }, "de_CreateAppBundleCommandError");
1043
+ var de_CreateIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1044
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1045
+ return de_CreateIngestionCommandError(output, context);
1046
+ }
1047
+ const contents = (0, import_smithy_client.map)({
1048
+ $metadata: deserializeMetadata(output)
1049
+ });
1050
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1051
+ const doc = (0, import_smithy_client.take)(data, {
1052
+ ingestion: (_) => de_Ingestion(_, context)
1053
+ });
1054
+ Object.assign(contents, doc);
1055
+ return contents;
1056
+ }, "de_CreateIngestionCommand");
1057
+ var de_CreateIngestionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1058
+ const parsedOutput = {
1059
+ ...output,
1060
+ body: await parseErrorBody(output.body, context)
1061
+ };
1062
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1063
+ switch (errorCode) {
1064
+ case "AccessDeniedException":
1065
+ case "com.amazonaws.appfabric#AccessDeniedException":
1066
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1067
+ case "ConflictException":
1068
+ case "com.amazonaws.appfabric#ConflictException":
1069
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1070
+ case "InternalServerException":
1071
+ case "com.amazonaws.appfabric#InternalServerException":
1072
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1073
+ case "ServiceQuotaExceededException":
1074
+ case "com.amazonaws.appfabric#ServiceQuotaExceededException":
1075
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1076
+ case "ThrottlingException":
1077
+ case "com.amazonaws.appfabric#ThrottlingException":
1078
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1079
+ case "ValidationException":
1080
+ case "com.amazonaws.appfabric#ValidationException":
1081
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1082
+ default:
1083
+ const parsedBody = parsedOutput.body;
1084
+ return throwDefaultError({
1085
+ output,
1086
+ parsedBody,
1087
+ errorCode
1088
+ });
1089
+ }
1090
+ }, "de_CreateIngestionCommandError");
1091
+ var de_CreateIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1092
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1093
+ return de_CreateIngestionDestinationCommandError(output, context);
1094
+ }
1095
+ const contents = (0, import_smithy_client.map)({
1096
+ $metadata: deserializeMetadata(output)
1097
+ });
1098
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1099
+ const doc = (0, import_smithy_client.take)(data, {
1100
+ ingestionDestination: (_) => de_IngestionDestination(_, context)
1101
+ });
1102
+ Object.assign(contents, doc);
1103
+ return contents;
1104
+ }, "de_CreateIngestionDestinationCommand");
1105
+ var de_CreateIngestionDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1106
+ const parsedOutput = {
1107
+ ...output,
1108
+ body: await parseErrorBody(output.body, context)
1109
+ };
1110
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1111
+ switch (errorCode) {
1112
+ case "AccessDeniedException":
1113
+ case "com.amazonaws.appfabric#AccessDeniedException":
1114
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1115
+ case "ConflictException":
1116
+ case "com.amazonaws.appfabric#ConflictException":
1117
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1118
+ case "InternalServerException":
1119
+ case "com.amazonaws.appfabric#InternalServerException":
1120
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1121
+ case "ServiceQuotaExceededException":
1122
+ case "com.amazonaws.appfabric#ServiceQuotaExceededException":
1123
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1124
+ case "ThrottlingException":
1125
+ case "com.amazonaws.appfabric#ThrottlingException":
1126
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1127
+ case "ValidationException":
1128
+ case "com.amazonaws.appfabric#ValidationException":
1129
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1130
+ default:
1131
+ const parsedBody = parsedOutput.body;
1132
+ return throwDefaultError({
1133
+ output,
1134
+ parsedBody,
1135
+ errorCode
1136
+ });
1137
+ }
1138
+ }, "de_CreateIngestionDestinationCommandError");
1139
+ var de_DeleteAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1140
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1141
+ return de_DeleteAppAuthorizationCommandError(output, context);
1142
+ }
1143
+ const contents = (0, import_smithy_client.map)({
1144
+ $metadata: deserializeMetadata(output)
1145
+ });
1146
+ await (0, import_smithy_client.collectBody)(output.body, context);
1147
+ return contents;
1148
+ }, "de_DeleteAppAuthorizationCommand");
1149
+ var de_DeleteAppAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1150
+ const parsedOutput = {
1151
+ ...output,
1152
+ body: await parseErrorBody(output.body, context)
1153
+ };
1154
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1155
+ switch (errorCode) {
1156
+ case "AccessDeniedException":
1157
+ case "com.amazonaws.appfabric#AccessDeniedException":
1158
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1159
+ case "InternalServerException":
1160
+ case "com.amazonaws.appfabric#InternalServerException":
1161
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1162
+ case "ResourceNotFoundException":
1163
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1164
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1165
+ case "ThrottlingException":
1166
+ case "com.amazonaws.appfabric#ThrottlingException":
1167
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1168
+ case "ValidationException":
1169
+ case "com.amazonaws.appfabric#ValidationException":
1170
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1171
+ default:
1172
+ const parsedBody = parsedOutput.body;
1173
+ return throwDefaultError({
1174
+ output,
1175
+ parsedBody,
1176
+ errorCode
1177
+ });
1178
+ }
1179
+ }, "de_DeleteAppAuthorizationCommandError");
1180
+ var de_DeleteAppBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
1181
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1182
+ return de_DeleteAppBundleCommandError(output, context);
1183
+ }
1184
+ const contents = (0, import_smithy_client.map)({
1185
+ $metadata: deserializeMetadata(output)
1186
+ });
1187
+ await (0, import_smithy_client.collectBody)(output.body, context);
1188
+ return contents;
1189
+ }, "de_DeleteAppBundleCommand");
1190
+ var de_DeleteAppBundleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1191
+ const parsedOutput = {
1192
+ ...output,
1193
+ body: await parseErrorBody(output.body, context)
1194
+ };
1195
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1196
+ switch (errorCode) {
1197
+ case "AccessDeniedException":
1198
+ case "com.amazonaws.appfabric#AccessDeniedException":
1199
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1200
+ case "ConflictException":
1201
+ case "com.amazonaws.appfabric#ConflictException":
1202
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1203
+ case "InternalServerException":
1204
+ case "com.amazonaws.appfabric#InternalServerException":
1205
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1206
+ case "ThrottlingException":
1207
+ case "com.amazonaws.appfabric#ThrottlingException":
1208
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1209
+ case "ValidationException":
1210
+ case "com.amazonaws.appfabric#ValidationException":
1211
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1212
+ default:
1213
+ const parsedBody = parsedOutput.body;
1214
+ return throwDefaultError({
1215
+ output,
1216
+ parsedBody,
1217
+ errorCode
1218
+ });
1219
+ }
1220
+ }, "de_DeleteAppBundleCommandError");
1221
+ var de_DeleteIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1222
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1223
+ return de_DeleteIngestionCommandError(output, context);
1224
+ }
1225
+ const contents = (0, import_smithy_client.map)({
1226
+ $metadata: deserializeMetadata(output)
1227
+ });
1228
+ await (0, import_smithy_client.collectBody)(output.body, context);
1229
+ return contents;
1230
+ }, "de_DeleteIngestionCommand");
1231
+ var de_DeleteIngestionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1232
+ const parsedOutput = {
1233
+ ...output,
1234
+ body: await parseErrorBody(output.body, context)
1235
+ };
1236
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1237
+ switch (errorCode) {
1238
+ case "AccessDeniedException":
1239
+ case "com.amazonaws.appfabric#AccessDeniedException":
1240
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1241
+ case "InternalServerException":
1242
+ case "com.amazonaws.appfabric#InternalServerException":
1243
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1244
+ case "ResourceNotFoundException":
1245
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1246
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1247
+ case "ThrottlingException":
1248
+ case "com.amazonaws.appfabric#ThrottlingException":
1249
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1250
+ case "ValidationException":
1251
+ case "com.amazonaws.appfabric#ValidationException":
1252
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1253
+ default:
1254
+ const parsedBody = parsedOutput.body;
1255
+ return throwDefaultError({
1256
+ output,
1257
+ parsedBody,
1258
+ errorCode
1259
+ });
1260
+ }
1261
+ }, "de_DeleteIngestionCommandError");
1262
+ var de_DeleteIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1263
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1264
+ return de_DeleteIngestionDestinationCommandError(output, context);
1265
+ }
1266
+ const contents = (0, import_smithy_client.map)({
1267
+ $metadata: deserializeMetadata(output)
1268
+ });
1269
+ await (0, import_smithy_client.collectBody)(output.body, context);
1270
+ return contents;
1271
+ }, "de_DeleteIngestionDestinationCommand");
1272
+ var de_DeleteIngestionDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1273
+ const parsedOutput = {
1274
+ ...output,
1275
+ body: await parseErrorBody(output.body, context)
1276
+ };
1277
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1278
+ switch (errorCode) {
1279
+ case "AccessDeniedException":
1280
+ case "com.amazonaws.appfabric#AccessDeniedException":
1281
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1282
+ case "InternalServerException":
1283
+ case "com.amazonaws.appfabric#InternalServerException":
1284
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1285
+ case "ResourceNotFoundException":
1286
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1287
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1288
+ case "ThrottlingException":
1289
+ case "com.amazonaws.appfabric#ThrottlingException":
1290
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1291
+ case "ValidationException":
1292
+ case "com.amazonaws.appfabric#ValidationException":
1293
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1294
+ default:
1295
+ const parsedBody = parsedOutput.body;
1296
+ return throwDefaultError({
1297
+ output,
1298
+ parsedBody,
1299
+ errorCode
1300
+ });
1301
+ }
1302
+ }, "de_DeleteIngestionDestinationCommandError");
1303
+ var de_GetAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1304
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1305
+ return de_GetAppAuthorizationCommandError(output, context);
1306
+ }
1307
+ const contents = (0, import_smithy_client.map)({
1308
+ $metadata: deserializeMetadata(output)
1309
+ });
1310
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1311
+ const doc = (0, import_smithy_client.take)(data, {
1312
+ appAuthorization: (_) => de_AppAuthorization(_, context)
1313
+ });
1314
+ Object.assign(contents, doc);
1315
+ return contents;
1316
+ }, "de_GetAppAuthorizationCommand");
1317
+ var de_GetAppAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1318
+ const parsedOutput = {
1319
+ ...output,
1320
+ body: await parseErrorBody(output.body, context)
1321
+ };
1322
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1323
+ switch (errorCode) {
1324
+ case "AccessDeniedException":
1325
+ case "com.amazonaws.appfabric#AccessDeniedException":
1326
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1327
+ case "InternalServerException":
1328
+ case "com.amazonaws.appfabric#InternalServerException":
1329
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1330
+ case "ResourceNotFoundException":
1331
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1332
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1333
+ case "ThrottlingException":
1334
+ case "com.amazonaws.appfabric#ThrottlingException":
1335
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1336
+ case "ValidationException":
1337
+ case "com.amazonaws.appfabric#ValidationException":
1338
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1339
+ default:
1340
+ const parsedBody = parsedOutput.body;
1341
+ return throwDefaultError({
1342
+ output,
1343
+ parsedBody,
1344
+ errorCode
1345
+ });
1346
+ }
1347
+ }, "de_GetAppAuthorizationCommandError");
1348
+ var de_GetAppBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
1349
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1350
+ return de_GetAppBundleCommandError(output, context);
1351
+ }
1352
+ const contents = (0, import_smithy_client.map)({
1353
+ $metadata: deserializeMetadata(output)
1354
+ });
1355
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1356
+ const doc = (0, import_smithy_client.take)(data, {
1357
+ appBundle: import_smithy_client._json
1358
+ });
1359
+ Object.assign(contents, doc);
1360
+ return contents;
1361
+ }, "de_GetAppBundleCommand");
1362
+ var de_GetAppBundleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1363
+ const parsedOutput = {
1364
+ ...output,
1365
+ body: await parseErrorBody(output.body, context)
1366
+ };
1367
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1368
+ switch (errorCode) {
1369
+ case "AccessDeniedException":
1370
+ case "com.amazonaws.appfabric#AccessDeniedException":
1371
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1372
+ case "InternalServerException":
1373
+ case "com.amazonaws.appfabric#InternalServerException":
1374
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1375
+ case "ResourceNotFoundException":
1376
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1377
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1378
+ case "ThrottlingException":
1379
+ case "com.amazonaws.appfabric#ThrottlingException":
1380
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1381
+ case "ValidationException":
1382
+ case "com.amazonaws.appfabric#ValidationException":
1383
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1384
+ default:
1385
+ const parsedBody = parsedOutput.body;
1386
+ return throwDefaultError({
1387
+ output,
1388
+ parsedBody,
1389
+ errorCode
1390
+ });
1391
+ }
1392
+ }, "de_GetAppBundleCommandError");
1393
+ var de_GetIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1394
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1395
+ return de_GetIngestionCommandError(output, context);
1396
+ }
1397
+ const contents = (0, import_smithy_client.map)({
1398
+ $metadata: deserializeMetadata(output)
1399
+ });
1400
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1401
+ const doc = (0, import_smithy_client.take)(data, {
1402
+ ingestion: (_) => de_Ingestion(_, context)
1403
+ });
1404
+ Object.assign(contents, doc);
1405
+ return contents;
1406
+ }, "de_GetIngestionCommand");
1407
+ var de_GetIngestionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1408
+ const parsedOutput = {
1409
+ ...output,
1410
+ body: await parseErrorBody(output.body, context)
1411
+ };
1412
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1413
+ switch (errorCode) {
1414
+ case "AccessDeniedException":
1415
+ case "com.amazonaws.appfabric#AccessDeniedException":
1416
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1417
+ case "InternalServerException":
1418
+ case "com.amazonaws.appfabric#InternalServerException":
1419
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1420
+ case "ResourceNotFoundException":
1421
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1422
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1423
+ case "ThrottlingException":
1424
+ case "com.amazonaws.appfabric#ThrottlingException":
1425
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1426
+ case "ValidationException":
1427
+ case "com.amazonaws.appfabric#ValidationException":
1428
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1429
+ default:
1430
+ const parsedBody = parsedOutput.body;
1431
+ return throwDefaultError({
1432
+ output,
1433
+ parsedBody,
1434
+ errorCode
1435
+ });
1436
+ }
1437
+ }, "de_GetIngestionCommandError");
1438
+ var de_GetIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1439
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1440
+ return de_GetIngestionDestinationCommandError(output, context);
1441
+ }
1442
+ const contents = (0, import_smithy_client.map)({
1443
+ $metadata: deserializeMetadata(output)
1444
+ });
1445
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1446
+ const doc = (0, import_smithy_client.take)(data, {
1447
+ ingestionDestination: (_) => de_IngestionDestination(_, context)
1448
+ });
1449
+ Object.assign(contents, doc);
1450
+ return contents;
1451
+ }, "de_GetIngestionDestinationCommand");
1452
+ var de_GetIngestionDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1453
+ const parsedOutput = {
1454
+ ...output,
1455
+ body: await parseErrorBody(output.body, context)
1456
+ };
1457
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1458
+ switch (errorCode) {
1459
+ case "AccessDeniedException":
1460
+ case "com.amazonaws.appfabric#AccessDeniedException":
1461
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1462
+ case "InternalServerException":
1463
+ case "com.amazonaws.appfabric#InternalServerException":
1464
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1465
+ case "ResourceNotFoundException":
1466
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1467
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1468
+ case "ThrottlingException":
1469
+ case "com.amazonaws.appfabric#ThrottlingException":
1470
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1471
+ case "ValidationException":
1472
+ case "com.amazonaws.appfabric#ValidationException":
1473
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1474
+ default:
1475
+ const parsedBody = parsedOutput.body;
1476
+ return throwDefaultError({
1477
+ output,
1478
+ parsedBody,
1479
+ errorCode
1480
+ });
1481
+ }
1482
+ }, "de_GetIngestionDestinationCommandError");
1483
+ var de_ListAppAuthorizationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1484
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1485
+ return de_ListAppAuthorizationsCommandError(output, context);
1486
+ }
1487
+ const contents = (0, import_smithy_client.map)({
1488
+ $metadata: deserializeMetadata(output)
1489
+ });
1490
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1491
+ const doc = (0, import_smithy_client.take)(data, {
1492
+ appAuthorizationSummaryList: (_) => de_AppAuthorizationSummaryList(_, context),
1493
+ nextToken: import_smithy_client.expectString
1494
+ });
1495
+ Object.assign(contents, doc);
1496
+ return contents;
1497
+ }, "de_ListAppAuthorizationsCommand");
1498
+ var de_ListAppAuthorizationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1499
+ const parsedOutput = {
1500
+ ...output,
1501
+ body: await parseErrorBody(output.body, context)
1502
+ };
1503
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1504
+ switch (errorCode) {
1505
+ case "AccessDeniedException":
1506
+ case "com.amazonaws.appfabric#AccessDeniedException":
1507
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1508
+ case "InternalServerException":
1509
+ case "com.amazonaws.appfabric#InternalServerException":
1510
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1511
+ case "ResourceNotFoundException":
1512
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1513
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1514
+ case "ThrottlingException":
1515
+ case "com.amazonaws.appfabric#ThrottlingException":
1516
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1517
+ case "ValidationException":
1518
+ case "com.amazonaws.appfabric#ValidationException":
1519
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1520
+ default:
1521
+ const parsedBody = parsedOutput.body;
1522
+ return throwDefaultError({
1523
+ output,
1524
+ parsedBody,
1525
+ errorCode
1526
+ });
1527
+ }
1528
+ }, "de_ListAppAuthorizationsCommandError");
1529
+ var de_ListAppBundlesCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
+ return de_ListAppBundlesCommandError(output, context);
1532
+ }
1533
+ const contents = (0, import_smithy_client.map)({
1534
+ $metadata: deserializeMetadata(output)
1535
+ });
1536
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1537
+ const doc = (0, import_smithy_client.take)(data, {
1538
+ appBundleSummaryList: import_smithy_client._json,
1539
+ nextToken: import_smithy_client.expectString
1540
+ });
1541
+ Object.assign(contents, doc);
1542
+ return contents;
1543
+ }, "de_ListAppBundlesCommand");
1544
+ var de_ListAppBundlesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1545
+ const parsedOutput = {
1546
+ ...output,
1547
+ body: await parseErrorBody(output.body, context)
1548
+ };
1549
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1550
+ switch (errorCode) {
1551
+ case "AccessDeniedException":
1552
+ case "com.amazonaws.appfabric#AccessDeniedException":
1553
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1554
+ case "InternalServerException":
1555
+ case "com.amazonaws.appfabric#InternalServerException":
1556
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1557
+ case "ThrottlingException":
1558
+ case "com.amazonaws.appfabric#ThrottlingException":
1559
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1560
+ case "ValidationException":
1561
+ case "com.amazonaws.appfabric#ValidationException":
1562
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1563
+ default:
1564
+ const parsedBody = parsedOutput.body;
1565
+ return throwDefaultError({
1566
+ output,
1567
+ parsedBody,
1568
+ errorCode
1569
+ });
1570
+ }
1571
+ }, "de_ListAppBundlesCommandError");
1572
+ var de_ListIngestionDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1573
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1574
+ return de_ListIngestionDestinationsCommandError(output, context);
1575
+ }
1576
+ const contents = (0, import_smithy_client.map)({
1577
+ $metadata: deserializeMetadata(output)
1578
+ });
1579
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1580
+ const doc = (0, import_smithy_client.take)(data, {
1581
+ ingestionDestinations: import_smithy_client._json,
1582
+ nextToken: import_smithy_client.expectString
1583
+ });
1584
+ Object.assign(contents, doc);
1585
+ return contents;
1586
+ }, "de_ListIngestionDestinationsCommand");
1587
+ var de_ListIngestionDestinationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1588
+ const parsedOutput = {
1589
+ ...output,
1590
+ body: await parseErrorBody(output.body, context)
1591
+ };
1592
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1593
+ switch (errorCode) {
1594
+ case "AccessDeniedException":
1595
+ case "com.amazonaws.appfabric#AccessDeniedException":
1596
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1597
+ case "InternalServerException":
1598
+ case "com.amazonaws.appfabric#InternalServerException":
1599
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1600
+ case "ResourceNotFoundException":
1601
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1602
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1603
+ case "ThrottlingException":
1604
+ case "com.amazonaws.appfabric#ThrottlingException":
1605
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1606
+ case "ValidationException":
1607
+ case "com.amazonaws.appfabric#ValidationException":
1608
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1609
+ default:
1610
+ const parsedBody = parsedOutput.body;
1611
+ return throwDefaultError({
1612
+ output,
1613
+ parsedBody,
1614
+ errorCode
1615
+ });
1616
+ }
1617
+ }, "de_ListIngestionDestinationsCommandError");
1618
+ var de_ListIngestionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1619
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1620
+ return de_ListIngestionsCommandError(output, context);
1621
+ }
1622
+ const contents = (0, import_smithy_client.map)({
1623
+ $metadata: deserializeMetadata(output)
1624
+ });
1625
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1626
+ const doc = (0, import_smithy_client.take)(data, {
1627
+ ingestions: import_smithy_client._json,
1628
+ nextToken: import_smithy_client.expectString
1629
+ });
1630
+ Object.assign(contents, doc);
1631
+ return contents;
1632
+ }, "de_ListIngestionsCommand");
1633
+ var de_ListIngestionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1634
+ const parsedOutput = {
1635
+ ...output,
1636
+ body: await parseErrorBody(output.body, context)
1637
+ };
1638
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1639
+ switch (errorCode) {
1640
+ case "AccessDeniedException":
1641
+ case "com.amazonaws.appfabric#AccessDeniedException":
1642
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1643
+ case "InternalServerException":
1644
+ case "com.amazonaws.appfabric#InternalServerException":
1645
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1646
+ case "ResourceNotFoundException":
1647
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1648
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1649
+ case "ThrottlingException":
1650
+ case "com.amazonaws.appfabric#ThrottlingException":
1651
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1652
+ case "ValidationException":
1653
+ case "com.amazonaws.appfabric#ValidationException":
1654
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1655
+ default:
1656
+ const parsedBody = parsedOutput.body;
1657
+ return throwDefaultError({
1658
+ output,
1659
+ parsedBody,
1660
+ errorCode
1661
+ });
1662
+ }
1663
+ }, "de_ListIngestionsCommandError");
1664
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1665
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
+ return de_ListTagsForResourceCommandError(output, context);
1667
+ }
1668
+ const contents = (0, import_smithy_client.map)({
1669
+ $metadata: deserializeMetadata(output)
1670
+ });
1671
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1672
+ const doc = (0, import_smithy_client.take)(data, {
1673
+ tags: import_smithy_client._json
1674
+ });
1675
+ Object.assign(contents, doc);
1676
+ return contents;
1677
+ }, "de_ListTagsForResourceCommand");
1678
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1679
+ const parsedOutput = {
1680
+ ...output,
1681
+ body: await parseErrorBody(output.body, context)
1682
+ };
1683
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1684
+ switch (errorCode) {
1685
+ case "AccessDeniedException":
1686
+ case "com.amazonaws.appfabric#AccessDeniedException":
1687
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1688
+ case "InternalServerException":
1689
+ case "com.amazonaws.appfabric#InternalServerException":
1690
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1691
+ case "ResourceNotFoundException":
1692
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1693
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1694
+ case "ThrottlingException":
1695
+ case "com.amazonaws.appfabric#ThrottlingException":
1696
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1697
+ case "ValidationException":
1698
+ case "com.amazonaws.appfabric#ValidationException":
1699
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1700
+ default:
1701
+ const parsedBody = parsedOutput.body;
1702
+ return throwDefaultError({
1703
+ output,
1704
+ parsedBody,
1705
+ errorCode
1706
+ });
1707
+ }
1708
+ }, "de_ListTagsForResourceCommandError");
1709
+ var de_StartIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1710
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1711
+ return de_StartIngestionCommandError(output, context);
1712
+ }
1713
+ const contents = (0, import_smithy_client.map)({
1714
+ $metadata: deserializeMetadata(output)
1715
+ });
1716
+ await (0, import_smithy_client.collectBody)(output.body, context);
1717
+ return contents;
1718
+ }, "de_StartIngestionCommand");
1719
+ var de_StartIngestionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1720
+ const parsedOutput = {
1721
+ ...output,
1722
+ body: await parseErrorBody(output.body, context)
1723
+ };
1724
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1725
+ switch (errorCode) {
1726
+ case "AccessDeniedException":
1727
+ case "com.amazonaws.appfabric#AccessDeniedException":
1728
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1729
+ case "ConflictException":
1730
+ case "com.amazonaws.appfabric#ConflictException":
1731
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1732
+ case "InternalServerException":
1733
+ case "com.amazonaws.appfabric#InternalServerException":
1734
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1735
+ case "ResourceNotFoundException":
1736
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1737
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1738
+ case "ThrottlingException":
1739
+ case "com.amazonaws.appfabric#ThrottlingException":
1740
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1741
+ case "ValidationException":
1742
+ case "com.amazonaws.appfabric#ValidationException":
1743
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1744
+ default:
1745
+ const parsedBody = parsedOutput.body;
1746
+ return throwDefaultError({
1747
+ output,
1748
+ parsedBody,
1749
+ errorCode
1750
+ });
1751
+ }
1752
+ }, "de_StartIngestionCommandError");
1753
+ var de_StartUserAccessTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1754
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1755
+ return de_StartUserAccessTasksCommandError(output, context);
1756
+ }
1757
+ const contents = (0, import_smithy_client.map)({
1758
+ $metadata: deserializeMetadata(output)
1759
+ });
1760
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1761
+ const doc = (0, import_smithy_client.take)(data, {
1762
+ userAccessTasksList: import_smithy_client._json
1763
+ });
1764
+ Object.assign(contents, doc);
1765
+ return contents;
1766
+ }, "de_StartUserAccessTasksCommand");
1767
+ var de_StartUserAccessTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1768
+ const parsedOutput = {
1769
+ ...output,
1770
+ body: await parseErrorBody(output.body, context)
1771
+ };
1772
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1773
+ switch (errorCode) {
1774
+ case "AccessDeniedException":
1775
+ case "com.amazonaws.appfabric#AccessDeniedException":
1776
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1777
+ case "InternalServerException":
1778
+ case "com.amazonaws.appfabric#InternalServerException":
1779
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1780
+ case "ResourceNotFoundException":
1781
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1782
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1783
+ case "ThrottlingException":
1784
+ case "com.amazonaws.appfabric#ThrottlingException":
1785
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1786
+ case "ValidationException":
1787
+ case "com.amazonaws.appfabric#ValidationException":
1788
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1789
+ default:
1790
+ const parsedBody = parsedOutput.body;
1791
+ return throwDefaultError({
1792
+ output,
1793
+ parsedBody,
1794
+ errorCode
1795
+ });
1796
+ }
1797
+ }, "de_StartUserAccessTasksCommandError");
1798
+ var de_StopIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1799
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1800
+ return de_StopIngestionCommandError(output, context);
1801
+ }
1802
+ const contents = (0, import_smithy_client.map)({
1803
+ $metadata: deserializeMetadata(output)
1804
+ });
1805
+ await (0, import_smithy_client.collectBody)(output.body, context);
1806
+ return contents;
1807
+ }, "de_StopIngestionCommand");
1808
+ var de_StopIngestionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1809
+ const parsedOutput = {
1810
+ ...output,
1811
+ body: await parseErrorBody(output.body, context)
1812
+ };
1813
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1814
+ switch (errorCode) {
1815
+ case "AccessDeniedException":
1816
+ case "com.amazonaws.appfabric#AccessDeniedException":
1817
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1818
+ case "ConflictException":
1819
+ case "com.amazonaws.appfabric#ConflictException":
1820
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1821
+ case "InternalServerException":
1822
+ case "com.amazonaws.appfabric#InternalServerException":
1823
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1824
+ case "ResourceNotFoundException":
1825
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1826
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1827
+ case "ThrottlingException":
1828
+ case "com.amazonaws.appfabric#ThrottlingException":
1829
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1830
+ case "ValidationException":
1831
+ case "com.amazonaws.appfabric#ValidationException":
1832
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1833
+ default:
1834
+ const parsedBody = parsedOutput.body;
1835
+ return throwDefaultError({
1836
+ output,
1837
+ parsedBody,
1838
+ errorCode
1839
+ });
1840
+ }
1841
+ }, "de_StopIngestionCommandError");
1842
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1843
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1844
+ return de_TagResourceCommandError(output, context);
1845
+ }
1846
+ const contents = (0, import_smithy_client.map)({
1847
+ $metadata: deserializeMetadata(output)
1848
+ });
1849
+ await (0, import_smithy_client.collectBody)(output.body, context);
1850
+ return contents;
1851
+ }, "de_TagResourceCommand");
1852
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1853
+ const parsedOutput = {
1854
+ ...output,
1855
+ body: await parseErrorBody(output.body, context)
1856
+ };
1857
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1858
+ switch (errorCode) {
1859
+ case "AccessDeniedException":
1860
+ case "com.amazonaws.appfabric#AccessDeniedException":
1861
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1862
+ case "InternalServerException":
1863
+ case "com.amazonaws.appfabric#InternalServerException":
1864
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1865
+ case "ResourceNotFoundException":
1866
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1867
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1868
+ case "ThrottlingException":
1869
+ case "com.amazonaws.appfabric#ThrottlingException":
1870
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1871
+ case "ValidationException":
1872
+ case "com.amazonaws.appfabric#ValidationException":
1873
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1874
+ default:
1875
+ const parsedBody = parsedOutput.body;
1876
+ return throwDefaultError({
1877
+ output,
1878
+ parsedBody,
1879
+ errorCode
1880
+ });
1881
+ }
1882
+ }, "de_TagResourceCommandError");
1883
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1884
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1885
+ return de_UntagResourceCommandError(output, context);
1886
+ }
1887
+ const contents = (0, import_smithy_client.map)({
1888
+ $metadata: deserializeMetadata(output)
1889
+ });
1890
+ await (0, import_smithy_client.collectBody)(output.body, context);
1891
+ return contents;
1892
+ }, "de_UntagResourceCommand");
1893
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1894
+ const parsedOutput = {
1895
+ ...output,
1896
+ body: await parseErrorBody(output.body, context)
1897
+ };
1898
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1899
+ switch (errorCode) {
1900
+ case "AccessDeniedException":
1901
+ case "com.amazonaws.appfabric#AccessDeniedException":
1902
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1903
+ case "InternalServerException":
1904
+ case "com.amazonaws.appfabric#InternalServerException":
1905
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1906
+ case "ResourceNotFoundException":
1907
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1908
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1909
+ case "ThrottlingException":
1910
+ case "com.amazonaws.appfabric#ThrottlingException":
1911
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1912
+ case "ValidationException":
1913
+ case "com.amazonaws.appfabric#ValidationException":
1914
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1915
+ default:
1916
+ const parsedBody = parsedOutput.body;
1917
+ return throwDefaultError({
1918
+ output,
1919
+ parsedBody,
1920
+ errorCode
1921
+ });
1922
+ }
1923
+ }, "de_UntagResourceCommandError");
1924
+ var de_UpdateAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1925
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1926
+ return de_UpdateAppAuthorizationCommandError(output, context);
1927
+ }
1928
+ const contents = (0, import_smithy_client.map)({
1929
+ $metadata: deserializeMetadata(output)
1930
+ });
1931
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1932
+ const doc = (0, import_smithy_client.take)(data, {
1933
+ appAuthorization: (_) => de_AppAuthorization(_, context)
1934
+ });
1935
+ Object.assign(contents, doc);
1936
+ return contents;
1937
+ }, "de_UpdateAppAuthorizationCommand");
1938
+ var de_UpdateAppAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1939
+ const parsedOutput = {
1940
+ ...output,
1941
+ body: await parseErrorBody(output.body, context)
1942
+ };
1943
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1944
+ switch (errorCode) {
1945
+ case "AccessDeniedException":
1946
+ case "com.amazonaws.appfabric#AccessDeniedException":
1947
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1948
+ case "InternalServerException":
1949
+ case "com.amazonaws.appfabric#InternalServerException":
1950
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1951
+ case "ResourceNotFoundException":
1952
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1953
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1954
+ case "ThrottlingException":
1955
+ case "com.amazonaws.appfabric#ThrottlingException":
1956
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1957
+ case "ValidationException":
1958
+ case "com.amazonaws.appfabric#ValidationException":
1959
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1960
+ default:
1961
+ const parsedBody = parsedOutput.body;
1962
+ return throwDefaultError({
1963
+ output,
1964
+ parsedBody,
1965
+ errorCode
1966
+ });
1967
+ }
1968
+ }, "de_UpdateAppAuthorizationCommandError");
1969
+ var de_UpdateIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1970
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1971
+ return de_UpdateIngestionDestinationCommandError(output, context);
1972
+ }
1973
+ const contents = (0, import_smithy_client.map)({
1974
+ $metadata: deserializeMetadata(output)
1975
+ });
1976
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1977
+ const doc = (0, import_smithy_client.take)(data, {
1978
+ ingestionDestination: (_) => de_IngestionDestination(_, context)
1979
+ });
1980
+ Object.assign(contents, doc);
1981
+ return contents;
1982
+ }, "de_UpdateIngestionDestinationCommand");
1983
+ var de_UpdateIngestionDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1984
+ const parsedOutput = {
1985
+ ...output,
1986
+ body: await parseErrorBody(output.body, context)
1987
+ };
1988
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1989
+ switch (errorCode) {
1990
+ case "AccessDeniedException":
1991
+ case "com.amazonaws.appfabric#AccessDeniedException":
1992
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1993
+ case "ConflictException":
1994
+ case "com.amazonaws.appfabric#ConflictException":
1995
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1996
+ case "InternalServerException":
1997
+ case "com.amazonaws.appfabric#InternalServerException":
1998
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1999
+ case "ResourceNotFoundException":
2000
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
2001
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2002
+ case "ServiceQuotaExceededException":
2003
+ case "com.amazonaws.appfabric#ServiceQuotaExceededException":
2004
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2005
+ case "ThrottlingException":
2006
+ case "com.amazonaws.appfabric#ThrottlingException":
2007
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2008
+ case "ValidationException":
2009
+ case "com.amazonaws.appfabric#ValidationException":
2010
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2011
+ default:
2012
+ const parsedBody = parsedOutput.body;
2013
+ return throwDefaultError({
2014
+ output,
2015
+ parsedBody,
2016
+ errorCode
2017
+ });
2018
+ }
2019
+ }, "de_UpdateIngestionDestinationCommandError");
2020
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(AppFabricServiceException);
2021
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2022
+ const contents = (0, import_smithy_client.map)({});
2023
+ const data = parsedOutput.body;
2024
+ const doc = (0, import_smithy_client.take)(data, {
2025
+ message: import_smithy_client.expectString
2026
+ });
2027
+ Object.assign(contents, doc);
2028
+ const exception = new AccessDeniedException({
2029
+ $metadata: deserializeMetadata(parsedOutput),
2030
+ ...contents
2031
+ });
2032
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2033
+ }, "de_AccessDeniedExceptionRes");
2034
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2035
+ const contents = (0, import_smithy_client.map)({});
2036
+ const data = parsedOutput.body;
2037
+ const doc = (0, import_smithy_client.take)(data, {
2038
+ message: import_smithy_client.expectString,
2039
+ resourceId: import_smithy_client.expectString,
2040
+ resourceType: import_smithy_client.expectString
2041
+ });
2042
+ Object.assign(contents, doc);
2043
+ const exception = new ConflictException({
2044
+ $metadata: deserializeMetadata(parsedOutput),
2045
+ ...contents
2046
+ });
2047
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2048
+ }, "de_ConflictExceptionRes");
2049
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2050
+ const contents = (0, import_smithy_client.map)({
2051
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
2052
+ });
2053
+ const data = parsedOutput.body;
2054
+ const doc = (0, import_smithy_client.take)(data, {
2055
+ message: import_smithy_client.expectString
2056
+ });
2057
+ Object.assign(contents, doc);
2058
+ const exception = new InternalServerException({
2059
+ $metadata: deserializeMetadata(parsedOutput),
2060
+ ...contents
2061
+ });
2062
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2063
+ }, "de_InternalServerExceptionRes");
2064
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2065
+ const contents = (0, import_smithy_client.map)({});
2066
+ const data = parsedOutput.body;
2067
+ const doc = (0, import_smithy_client.take)(data, {
2068
+ message: import_smithy_client.expectString,
2069
+ resourceId: import_smithy_client.expectString,
2070
+ resourceType: import_smithy_client.expectString
2071
+ });
2072
+ Object.assign(contents, doc);
2073
+ const exception = new ResourceNotFoundException({
2074
+ $metadata: deserializeMetadata(parsedOutput),
2075
+ ...contents
2076
+ });
2077
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2078
+ }, "de_ResourceNotFoundExceptionRes");
2079
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2080
+ const contents = (0, import_smithy_client.map)({});
2081
+ const data = parsedOutput.body;
2082
+ const doc = (0, import_smithy_client.take)(data, {
2083
+ message: import_smithy_client.expectString,
2084
+ quotaCode: import_smithy_client.expectString,
2085
+ resourceId: import_smithy_client.expectString,
2086
+ resourceType: import_smithy_client.expectString,
2087
+ serviceCode: import_smithy_client.expectString
2088
+ });
2089
+ Object.assign(contents, doc);
2090
+ const exception = new ServiceQuotaExceededException({
2091
+ $metadata: deserializeMetadata(parsedOutput),
2092
+ ...contents
2093
+ });
2094
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2095
+ }, "de_ServiceQuotaExceededExceptionRes");
2096
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2097
+ const contents = (0, import_smithy_client.map)({
2098
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
2099
+ });
2100
+ const data = parsedOutput.body;
2101
+ const doc = (0, import_smithy_client.take)(data, {
2102
+ message: import_smithy_client.expectString,
2103
+ quotaCode: import_smithy_client.expectString,
2104
+ serviceCode: import_smithy_client.expectString
2105
+ });
2106
+ Object.assign(contents, doc);
2107
+ const exception = new ThrottlingException({
2108
+ $metadata: deserializeMetadata(parsedOutput),
2109
+ ...contents
2110
+ });
2111
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2112
+ }, "de_ThrottlingExceptionRes");
2113
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2114
+ const contents = (0, import_smithy_client.map)({});
2115
+ const data = parsedOutput.body;
2116
+ const doc = (0, import_smithy_client.take)(data, {
2117
+ fieldList: import_smithy_client._json,
2118
+ message: import_smithy_client.expectString,
2119
+ reason: import_smithy_client.expectString
2120
+ });
2121
+ Object.assign(contents, doc);
2122
+ const exception = new ValidationException({
2123
+ $metadata: deserializeMetadata(parsedOutput),
2124
+ ...contents
2125
+ });
2126
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2127
+ }, "de_ValidationExceptionRes");
2128
+ var de_AppAuthorization = /* @__PURE__ */ __name((output, context) => {
2129
+ return (0, import_smithy_client.take)(output, {
2130
+ app: import_smithy_client.expectString,
2131
+ appAuthorizationArn: import_smithy_client.expectString,
2132
+ appBundleArn: import_smithy_client.expectString,
2133
+ authType: import_smithy_client.expectString,
2134
+ authUrl: import_smithy_client.expectString,
2135
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2136
+ persona: import_smithy_client.expectString,
2137
+ status: import_smithy_client.expectString,
2138
+ tenant: import_smithy_client._json,
2139
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2140
+ });
2141
+ }, "de_AppAuthorization");
2142
+ var de_AppAuthorizationSummary = /* @__PURE__ */ __name((output, context) => {
2143
+ return (0, import_smithy_client.take)(output, {
2144
+ app: import_smithy_client.expectString,
2145
+ appAuthorizationArn: import_smithy_client.expectString,
2146
+ appBundleArn: import_smithy_client.expectString,
2147
+ status: import_smithy_client.expectString,
2148
+ tenant: import_smithy_client._json,
2149
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2150
+ });
2151
+ }, "de_AppAuthorizationSummary");
2152
+ var de_AppAuthorizationSummaryList = /* @__PURE__ */ __name((output, context) => {
2153
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2154
+ return de_AppAuthorizationSummary(entry, context);
2155
+ });
2156
+ return retVal;
2157
+ }, "de_AppAuthorizationSummaryList");
2158
+ var de_Ingestion = /* @__PURE__ */ __name((output, context) => {
2159
+ return (0, import_smithy_client.take)(output, {
2160
+ app: import_smithy_client.expectString,
2161
+ appBundleArn: import_smithy_client.expectString,
2162
+ arn: import_smithy_client.expectString,
2163
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2164
+ ingestionType: import_smithy_client.expectString,
2165
+ state: import_smithy_client.expectString,
2166
+ tenantId: import_smithy_client.expectString,
2167
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2168
+ });
2169
+ }, "de_Ingestion");
2170
+ var de_IngestionDestination = /* @__PURE__ */ __name((output, context) => {
2171
+ return (0, import_smithy_client.take)(output, {
2172
+ arn: import_smithy_client.expectString,
2173
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2174
+ destinationConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2175
+ ingestionArn: import_smithy_client.expectString,
2176
+ processingConfiguration: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2177
+ status: import_smithy_client.expectString,
2178
+ statusReason: import_smithy_client.expectString,
2179
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
2180
+ });
2181
+ }, "de_IngestionDestination");
2182
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2183
+ httpStatusCode: output.statusCode,
2184
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2185
+ extendedRequestId: output.headers["x-amz-id-2"],
2186
+ cfId: output.headers["x-amz-cf-id"]
2187
+ }), "deserializeMetadata");
2188
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2189
+ var _mR = "maxResults";
2190
+ var _nT = "nextToken";
2191
+ var _rAS = "retryAfterSeconds";
2192
+ var _ra = "retry-after";
2193
+ var _tK = "tagKeys";
2194
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2195
+ if (encoded.length) {
2196
+ return JSON.parse(encoded);
2197
+ }
2198
+ return {};
2199
+ }), "parseBody");
2200
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2201
+ const value = await parseBody(errorBody, context);
2202
+ value.message = value.message ?? value.Message;
2203
+ return value;
2204
+ }, "parseErrorBody");
2205
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2206
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2207
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2208
+ let cleanValue = rawValue;
2209
+ if (typeof cleanValue === "number") {
2210
+ cleanValue = cleanValue.toString();
2211
+ }
2212
+ if (cleanValue.indexOf(",") >= 0) {
2213
+ cleanValue = cleanValue.split(",")[0];
2214
+ }
2215
+ if (cleanValue.indexOf(":") >= 0) {
2216
+ cleanValue = cleanValue.split(":")[0];
2217
+ }
2218
+ if (cleanValue.indexOf("#") >= 0) {
2219
+ cleanValue = cleanValue.split("#")[1];
2220
+ }
2221
+ return cleanValue;
2222
+ }, "sanitizeErrorCode");
2223
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2224
+ if (headerKey !== void 0) {
2225
+ return sanitizeErrorCode(output.headers[headerKey]);
2226
+ }
2227
+ if (data.code !== void 0) {
2228
+ return sanitizeErrorCode(data.code);
2229
+ }
2230
+ if (data["__type"] !== void 0) {
2231
+ return sanitizeErrorCode(data["__type"]);
2232
+ }
2233
+ }, "loadRestJsonErrorCode");
2234
+
2235
+ // src/commands/BatchGetUserAccessTasksCommand.ts
2236
+ var _BatchGetUserAccessTasksCommand = class _BatchGetUserAccessTasksCommand extends import_smithy_client.Command.classBuilder().ep({
2237
+ ...commonParams
2238
+ }).m(function(Command, cs, config, o) {
2239
+ return [
2240
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2241
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2242
+ ];
2243
+ }).s("FabricFrontEndService", "BatchGetUserAccessTasks", {}).n("AppFabricClient", "BatchGetUserAccessTasksCommand").f(void 0, BatchGetUserAccessTasksResponseFilterSensitiveLog).ser(se_BatchGetUserAccessTasksCommand).de(de_BatchGetUserAccessTasksCommand).build() {
2244
+ };
2245
+ __name(_BatchGetUserAccessTasksCommand, "BatchGetUserAccessTasksCommand");
2246
+ var BatchGetUserAccessTasksCommand = _BatchGetUserAccessTasksCommand;
2247
+
2248
+ // src/commands/ConnectAppAuthorizationCommand.ts
2249
+
2250
+
2251
+
2252
+
2253
+ var _ConnectAppAuthorizationCommand = class _ConnectAppAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
2254
+ ...commonParams
2255
+ }).m(function(Command, cs, config, o) {
2256
+ return [
2257
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2258
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2259
+ ];
2260
+ }).s("FabricFrontEndService", "ConnectAppAuthorization", {}).n("AppFabricClient", "ConnectAppAuthorizationCommand").f(ConnectAppAuthorizationRequestFilterSensitiveLog, void 0).ser(se_ConnectAppAuthorizationCommand).de(de_ConnectAppAuthorizationCommand).build() {
2261
+ };
2262
+ __name(_ConnectAppAuthorizationCommand, "ConnectAppAuthorizationCommand");
2263
+ var ConnectAppAuthorizationCommand = _ConnectAppAuthorizationCommand;
2264
+
2265
+ // src/commands/CreateAppAuthorizationCommand.ts
2266
+
2267
+
2268
+
2269
+
2270
+ var _CreateAppAuthorizationCommand = class _CreateAppAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
2271
+ ...commonParams
2272
+ }).m(function(Command, cs, config, o) {
2273
+ return [
2274
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2275
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2276
+ ];
2277
+ }).s("FabricFrontEndService", "CreateAppAuthorization", {}).n("AppFabricClient", "CreateAppAuthorizationCommand").f(CreateAppAuthorizationRequestFilterSensitiveLog, void 0).ser(se_CreateAppAuthorizationCommand).de(de_CreateAppAuthorizationCommand).build() {
2278
+ };
2279
+ __name(_CreateAppAuthorizationCommand, "CreateAppAuthorizationCommand");
2280
+ var CreateAppAuthorizationCommand = _CreateAppAuthorizationCommand;
2281
+
2282
+ // src/commands/CreateAppBundleCommand.ts
2283
+
2284
+
2285
+
2286
+
2287
+ var _CreateAppBundleCommand = class _CreateAppBundleCommand extends import_smithy_client.Command.classBuilder().ep({
2288
+ ...commonParams
2289
+ }).m(function(Command, cs, config, o) {
2290
+ return [
2291
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2292
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2293
+ ];
2294
+ }).s("FabricFrontEndService", "CreateAppBundle", {}).n("AppFabricClient", "CreateAppBundleCommand").f(void 0, void 0).ser(se_CreateAppBundleCommand).de(de_CreateAppBundleCommand).build() {
2295
+ };
2296
+ __name(_CreateAppBundleCommand, "CreateAppBundleCommand");
2297
+ var CreateAppBundleCommand = _CreateAppBundleCommand;
2298
+
2299
+ // src/commands/CreateIngestionCommand.ts
2300
+
2301
+
2302
+
2303
+
2304
+ var _CreateIngestionCommand = class _CreateIngestionCommand extends import_smithy_client.Command.classBuilder().ep({
2305
+ ...commonParams
2306
+ }).m(function(Command, cs, config, o) {
2307
+ return [
2308
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2309
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2310
+ ];
2311
+ }).s("FabricFrontEndService", "CreateIngestion", {}).n("AppFabricClient", "CreateIngestionCommand").f(void 0, void 0).ser(se_CreateIngestionCommand).de(de_CreateIngestionCommand).build() {
2312
+ };
2313
+ __name(_CreateIngestionCommand, "CreateIngestionCommand");
2314
+ var CreateIngestionCommand = _CreateIngestionCommand;
2315
+
2316
+ // src/commands/CreateIngestionDestinationCommand.ts
2317
+
2318
+
2319
+
2320
+
2321
+ var _CreateIngestionDestinationCommand = class _CreateIngestionDestinationCommand extends import_smithy_client.Command.classBuilder().ep({
2322
+ ...commonParams
2323
+ }).m(function(Command, cs, config, o) {
2324
+ return [
2325
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2326
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2327
+ ];
2328
+ }).s("FabricFrontEndService", "CreateIngestionDestination", {}).n("AppFabricClient", "CreateIngestionDestinationCommand").f(void 0, void 0).ser(se_CreateIngestionDestinationCommand).de(de_CreateIngestionDestinationCommand).build() {
2329
+ };
2330
+ __name(_CreateIngestionDestinationCommand, "CreateIngestionDestinationCommand");
2331
+ var CreateIngestionDestinationCommand = _CreateIngestionDestinationCommand;
2332
+
2333
+ // src/commands/DeleteAppAuthorizationCommand.ts
2334
+
2335
+
2336
+
2337
+
2338
+ var _DeleteAppAuthorizationCommand = class _DeleteAppAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
2339
+ ...commonParams
2340
+ }).m(function(Command, cs, config, o) {
2341
+ return [
2342
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2343
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2344
+ ];
2345
+ }).s("FabricFrontEndService", "DeleteAppAuthorization", {}).n("AppFabricClient", "DeleteAppAuthorizationCommand").f(void 0, void 0).ser(se_DeleteAppAuthorizationCommand).de(de_DeleteAppAuthorizationCommand).build() {
2346
+ };
2347
+ __name(_DeleteAppAuthorizationCommand, "DeleteAppAuthorizationCommand");
2348
+ var DeleteAppAuthorizationCommand = _DeleteAppAuthorizationCommand;
2349
+
2350
+ // src/commands/DeleteAppBundleCommand.ts
2351
+
2352
+
2353
+
2354
+
2355
+ var _DeleteAppBundleCommand = class _DeleteAppBundleCommand extends import_smithy_client.Command.classBuilder().ep({
2356
+ ...commonParams
2357
+ }).m(function(Command, cs, config, o) {
2358
+ return [
2359
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2360
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2361
+ ];
2362
+ }).s("FabricFrontEndService", "DeleteAppBundle", {}).n("AppFabricClient", "DeleteAppBundleCommand").f(void 0, void 0).ser(se_DeleteAppBundleCommand).de(de_DeleteAppBundleCommand).build() {
2363
+ };
2364
+ __name(_DeleteAppBundleCommand, "DeleteAppBundleCommand");
2365
+ var DeleteAppBundleCommand = _DeleteAppBundleCommand;
2366
+
2367
+ // src/commands/DeleteIngestionCommand.ts
2368
+
2369
+
2370
+
2371
+
2372
+ var _DeleteIngestionCommand = class _DeleteIngestionCommand extends import_smithy_client.Command.classBuilder().ep({
2373
+ ...commonParams
2374
+ }).m(function(Command, cs, config, o) {
2375
+ return [
2376
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2377
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2378
+ ];
2379
+ }).s("FabricFrontEndService", "DeleteIngestion", {}).n("AppFabricClient", "DeleteIngestionCommand").f(void 0, void 0).ser(se_DeleteIngestionCommand).de(de_DeleteIngestionCommand).build() {
2380
+ };
2381
+ __name(_DeleteIngestionCommand, "DeleteIngestionCommand");
2382
+ var DeleteIngestionCommand = _DeleteIngestionCommand;
2383
+
2384
+ // src/commands/DeleteIngestionDestinationCommand.ts
2385
+
2386
+
2387
+
2388
+
2389
+ var _DeleteIngestionDestinationCommand = class _DeleteIngestionDestinationCommand extends import_smithy_client.Command.classBuilder().ep({
2390
+ ...commonParams
2391
+ }).m(function(Command, cs, config, o) {
2392
+ return [
2393
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2394
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2395
+ ];
2396
+ }).s("FabricFrontEndService", "DeleteIngestionDestination", {}).n("AppFabricClient", "DeleteIngestionDestinationCommand").f(void 0, void 0).ser(se_DeleteIngestionDestinationCommand).de(de_DeleteIngestionDestinationCommand).build() {
2397
+ };
2398
+ __name(_DeleteIngestionDestinationCommand, "DeleteIngestionDestinationCommand");
2399
+ var DeleteIngestionDestinationCommand = _DeleteIngestionDestinationCommand;
2400
+
2401
+ // src/commands/GetAppAuthorizationCommand.ts
2402
+
2403
+
2404
+
2405
+
2406
+ var _GetAppAuthorizationCommand = class _GetAppAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
2407
+ ...commonParams
2408
+ }).m(function(Command, cs, config, o) {
2409
+ return [
2410
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2411
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2412
+ ];
2413
+ }).s("FabricFrontEndService", "GetAppAuthorization", {}).n("AppFabricClient", "GetAppAuthorizationCommand").f(void 0, void 0).ser(se_GetAppAuthorizationCommand).de(de_GetAppAuthorizationCommand).build() {
2414
+ };
2415
+ __name(_GetAppAuthorizationCommand, "GetAppAuthorizationCommand");
2416
+ var GetAppAuthorizationCommand = _GetAppAuthorizationCommand;
2417
+
2418
+ // src/commands/GetAppBundleCommand.ts
2419
+
2420
+
2421
+
2422
+
2423
+ var _GetAppBundleCommand = class _GetAppBundleCommand extends import_smithy_client.Command.classBuilder().ep({
2424
+ ...commonParams
2425
+ }).m(function(Command, cs, config, o) {
2426
+ return [
2427
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2428
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2429
+ ];
2430
+ }).s("FabricFrontEndService", "GetAppBundle", {}).n("AppFabricClient", "GetAppBundleCommand").f(void 0, void 0).ser(se_GetAppBundleCommand).de(de_GetAppBundleCommand).build() {
2431
+ };
2432
+ __name(_GetAppBundleCommand, "GetAppBundleCommand");
2433
+ var GetAppBundleCommand = _GetAppBundleCommand;
2434
+
2435
+ // src/commands/GetIngestionCommand.ts
2436
+
2437
+
2438
+
2439
+
2440
+ var _GetIngestionCommand = class _GetIngestionCommand extends import_smithy_client.Command.classBuilder().ep({
2441
+ ...commonParams
2442
+ }).m(function(Command, cs, config, o) {
2443
+ return [
2444
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2445
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2446
+ ];
2447
+ }).s("FabricFrontEndService", "GetIngestion", {}).n("AppFabricClient", "GetIngestionCommand").f(void 0, void 0).ser(se_GetIngestionCommand).de(de_GetIngestionCommand).build() {
2448
+ };
2449
+ __name(_GetIngestionCommand, "GetIngestionCommand");
2450
+ var GetIngestionCommand = _GetIngestionCommand;
2451
+
2452
+ // src/commands/GetIngestionDestinationCommand.ts
2453
+
2454
+
2455
+
2456
+
2457
+ var _GetIngestionDestinationCommand = class _GetIngestionDestinationCommand extends import_smithy_client.Command.classBuilder().ep({
2458
+ ...commonParams
2459
+ }).m(function(Command, cs, config, o) {
2460
+ return [
2461
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2462
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2463
+ ];
2464
+ }).s("FabricFrontEndService", "GetIngestionDestination", {}).n("AppFabricClient", "GetIngestionDestinationCommand").f(void 0, void 0).ser(se_GetIngestionDestinationCommand).de(de_GetIngestionDestinationCommand).build() {
2465
+ };
2466
+ __name(_GetIngestionDestinationCommand, "GetIngestionDestinationCommand");
2467
+ var GetIngestionDestinationCommand = _GetIngestionDestinationCommand;
2468
+
2469
+ // src/commands/ListAppAuthorizationsCommand.ts
2470
+
2471
+
2472
+
2473
+
2474
+ var _ListAppAuthorizationsCommand = class _ListAppAuthorizationsCommand extends import_smithy_client.Command.classBuilder().ep({
2475
+ ...commonParams
2476
+ }).m(function(Command, cs, config, o) {
2477
+ return [
2478
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2479
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2480
+ ];
2481
+ }).s("FabricFrontEndService", "ListAppAuthorizations", {}).n("AppFabricClient", "ListAppAuthorizationsCommand").f(void 0, void 0).ser(se_ListAppAuthorizationsCommand).de(de_ListAppAuthorizationsCommand).build() {
2482
+ };
2483
+ __name(_ListAppAuthorizationsCommand, "ListAppAuthorizationsCommand");
2484
+ var ListAppAuthorizationsCommand = _ListAppAuthorizationsCommand;
2485
+
2486
+ // src/commands/ListAppBundlesCommand.ts
2487
+
2488
+
2489
+
2490
+
2491
+ var _ListAppBundlesCommand = class _ListAppBundlesCommand extends import_smithy_client.Command.classBuilder().ep({
2492
+ ...commonParams
2493
+ }).m(function(Command, cs, config, o) {
2494
+ return [
2495
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2496
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2497
+ ];
2498
+ }).s("FabricFrontEndService", "ListAppBundles", {}).n("AppFabricClient", "ListAppBundlesCommand").f(void 0, void 0).ser(se_ListAppBundlesCommand).de(de_ListAppBundlesCommand).build() {
2499
+ };
2500
+ __name(_ListAppBundlesCommand, "ListAppBundlesCommand");
2501
+ var ListAppBundlesCommand = _ListAppBundlesCommand;
2502
+
2503
+ // src/commands/ListIngestionDestinationsCommand.ts
2504
+
2505
+
2506
+
2507
+
2508
+ var _ListIngestionDestinationsCommand = class _ListIngestionDestinationsCommand extends import_smithy_client.Command.classBuilder().ep({
2509
+ ...commonParams
2510
+ }).m(function(Command, cs, config, o) {
2511
+ return [
2512
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2513
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2514
+ ];
2515
+ }).s("FabricFrontEndService", "ListIngestionDestinations", {}).n("AppFabricClient", "ListIngestionDestinationsCommand").f(void 0, void 0).ser(se_ListIngestionDestinationsCommand).de(de_ListIngestionDestinationsCommand).build() {
2516
+ };
2517
+ __name(_ListIngestionDestinationsCommand, "ListIngestionDestinationsCommand");
2518
+ var ListIngestionDestinationsCommand = _ListIngestionDestinationsCommand;
2519
+
2520
+ // src/commands/ListIngestionsCommand.ts
2521
+
2522
+
2523
+
2524
+
2525
+ var _ListIngestionsCommand = class _ListIngestionsCommand extends import_smithy_client.Command.classBuilder().ep({
2526
+ ...commonParams
2527
+ }).m(function(Command, cs, config, o) {
2528
+ return [
2529
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2530
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2531
+ ];
2532
+ }).s("FabricFrontEndService", "ListIngestions", {}).n("AppFabricClient", "ListIngestionsCommand").f(void 0, void 0).ser(se_ListIngestionsCommand).de(de_ListIngestionsCommand).build() {
2533
+ };
2534
+ __name(_ListIngestionsCommand, "ListIngestionsCommand");
2535
+ var ListIngestionsCommand = _ListIngestionsCommand;
2536
+
2537
+ // src/commands/ListTagsForResourceCommand.ts
2538
+
2539
+
2540
+
2541
+
2542
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2543
+ ...commonParams
2544
+ }).m(function(Command, cs, config, o) {
2545
+ return [
2546
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2547
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2548
+ ];
2549
+ }).s("FabricFrontEndService", "ListTagsForResource", {}).n("AppFabricClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2550
+ };
2551
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2552
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2553
+
2554
+ // src/commands/StartIngestionCommand.ts
2555
+
2556
+
2557
+
2558
+
2559
+ var _StartIngestionCommand = class _StartIngestionCommand extends import_smithy_client.Command.classBuilder().ep({
2560
+ ...commonParams
2561
+ }).m(function(Command, cs, config, o) {
2562
+ return [
2563
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2564
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2565
+ ];
2566
+ }).s("FabricFrontEndService", "StartIngestion", {}).n("AppFabricClient", "StartIngestionCommand").f(void 0, void 0).ser(se_StartIngestionCommand).de(de_StartIngestionCommand).build() {
2567
+ };
2568
+ __name(_StartIngestionCommand, "StartIngestionCommand");
2569
+ var StartIngestionCommand = _StartIngestionCommand;
2570
+
2571
+ // src/commands/StartUserAccessTasksCommand.ts
2572
+
2573
+
2574
+
2575
+
2576
+ var _StartUserAccessTasksCommand = class _StartUserAccessTasksCommand extends import_smithy_client.Command.classBuilder().ep({
2577
+ ...commonParams
2578
+ }).m(function(Command, cs, config, o) {
2579
+ return [
2580
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2581
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2582
+ ];
2583
+ }).s("FabricFrontEndService", "StartUserAccessTasks", {}).n("AppFabricClient", "StartUserAccessTasksCommand").f(StartUserAccessTasksRequestFilterSensitiveLog, void 0).ser(se_StartUserAccessTasksCommand).de(de_StartUserAccessTasksCommand).build() {
2584
+ };
2585
+ __name(_StartUserAccessTasksCommand, "StartUserAccessTasksCommand");
2586
+ var StartUserAccessTasksCommand = _StartUserAccessTasksCommand;
2587
+
2588
+ // src/commands/StopIngestionCommand.ts
2589
+
2590
+
2591
+
2592
+
2593
+ var _StopIngestionCommand = class _StopIngestionCommand extends import_smithy_client.Command.classBuilder().ep({
2594
+ ...commonParams
2595
+ }).m(function(Command, cs, config, o) {
2596
+ return [
2597
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2598
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2599
+ ];
2600
+ }).s("FabricFrontEndService", "StopIngestion", {}).n("AppFabricClient", "StopIngestionCommand").f(void 0, void 0).ser(se_StopIngestionCommand).de(de_StopIngestionCommand).build() {
2601
+ };
2602
+ __name(_StopIngestionCommand, "StopIngestionCommand");
2603
+ var StopIngestionCommand = _StopIngestionCommand;
2604
+
2605
+ // src/commands/TagResourceCommand.ts
2606
+
2607
+
2608
+
2609
+
2610
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2611
+ ...commonParams
2612
+ }).m(function(Command, cs, config, o) {
2613
+ return [
2614
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2615
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2616
+ ];
2617
+ }).s("FabricFrontEndService", "TagResource", {}).n("AppFabricClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2618
+ };
2619
+ __name(_TagResourceCommand, "TagResourceCommand");
2620
+ var TagResourceCommand = _TagResourceCommand;
2621
+
2622
+ // src/commands/UntagResourceCommand.ts
2623
+
2624
+
2625
+
2626
+
2627
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2628
+ ...commonParams
2629
+ }).m(function(Command, cs, config, o) {
2630
+ return [
2631
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2632
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2633
+ ];
2634
+ }).s("FabricFrontEndService", "UntagResource", {}).n("AppFabricClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2635
+ };
2636
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2637
+ var UntagResourceCommand = _UntagResourceCommand;
2638
+
2639
+ // src/commands/UpdateAppAuthorizationCommand.ts
2640
+
2641
+
2642
+
2643
+
2644
+ var _UpdateAppAuthorizationCommand = class _UpdateAppAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
2645
+ ...commonParams
2646
+ }).m(function(Command, cs, config, o) {
2647
+ return [
2648
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2649
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2650
+ ];
2651
+ }).s("FabricFrontEndService", "UpdateAppAuthorization", {}).n("AppFabricClient", "UpdateAppAuthorizationCommand").f(UpdateAppAuthorizationRequestFilterSensitiveLog, void 0).ser(se_UpdateAppAuthorizationCommand).de(de_UpdateAppAuthorizationCommand).build() {
2652
+ };
2653
+ __name(_UpdateAppAuthorizationCommand, "UpdateAppAuthorizationCommand");
2654
+ var UpdateAppAuthorizationCommand = _UpdateAppAuthorizationCommand;
2655
+
2656
+ // src/commands/UpdateIngestionDestinationCommand.ts
2657
+
2658
+
2659
+
2660
+
2661
+ var _UpdateIngestionDestinationCommand = class _UpdateIngestionDestinationCommand extends import_smithy_client.Command.classBuilder().ep({
2662
+ ...commonParams
2663
+ }).m(function(Command, cs, config, o) {
2664
+ return [
2665
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2666
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2667
+ ];
2668
+ }).s("FabricFrontEndService", "UpdateIngestionDestination", {}).n("AppFabricClient", "UpdateIngestionDestinationCommand").f(void 0, void 0).ser(se_UpdateIngestionDestinationCommand).de(de_UpdateIngestionDestinationCommand).build() {
2669
+ };
2670
+ __name(_UpdateIngestionDestinationCommand, "UpdateIngestionDestinationCommand");
2671
+ var UpdateIngestionDestinationCommand = _UpdateIngestionDestinationCommand;
2672
+
2673
+ // src/AppFabric.ts
2674
+ var commands = {
2675
+ BatchGetUserAccessTasksCommand,
2676
+ ConnectAppAuthorizationCommand,
2677
+ CreateAppAuthorizationCommand,
2678
+ CreateAppBundleCommand,
2679
+ CreateIngestionCommand,
2680
+ CreateIngestionDestinationCommand,
2681
+ DeleteAppAuthorizationCommand,
2682
+ DeleteAppBundleCommand,
2683
+ DeleteIngestionCommand,
2684
+ DeleteIngestionDestinationCommand,
2685
+ GetAppAuthorizationCommand,
2686
+ GetAppBundleCommand,
2687
+ GetIngestionCommand,
2688
+ GetIngestionDestinationCommand,
2689
+ ListAppAuthorizationsCommand,
2690
+ ListAppBundlesCommand,
2691
+ ListIngestionDestinationsCommand,
2692
+ ListIngestionsCommand,
2693
+ ListTagsForResourceCommand,
2694
+ StartIngestionCommand,
2695
+ StartUserAccessTasksCommand,
2696
+ StopIngestionCommand,
2697
+ TagResourceCommand,
2698
+ UntagResourceCommand,
2699
+ UpdateAppAuthorizationCommand,
2700
+ UpdateIngestionDestinationCommand
2701
+ };
2702
+ var _AppFabric = class _AppFabric extends AppFabricClient {
2703
+ };
2704
+ __name(_AppFabric, "AppFabric");
2705
+ var AppFabric = _AppFabric;
2706
+ (0, import_smithy_client.createAggregatedClient)(commands, AppFabric);
2707
+
2708
+ // src/pagination/ListAppAuthorizationsPaginator.ts
2709
+ var import_core3 = require("@smithy/core");
2710
+ var paginateListAppAuthorizations = (0, import_core3.createPaginator)(AppFabricClient, ListAppAuthorizationsCommand, "nextToken", "nextToken", "maxResults");
2711
+
2712
+ // src/pagination/ListAppBundlesPaginator.ts
2713
+ var import_core4 = require("@smithy/core");
2714
+ var paginateListAppBundles = (0, import_core4.createPaginator)(AppFabricClient, ListAppBundlesCommand, "nextToken", "nextToken", "maxResults");
2715
+
2716
+ // src/pagination/ListIngestionDestinationsPaginator.ts
2717
+ var import_core5 = require("@smithy/core");
2718
+ var paginateListIngestionDestinations = (0, import_core5.createPaginator)(AppFabricClient, ListIngestionDestinationsCommand, "nextToken", "nextToken", "maxResults");
2719
+
2720
+ // src/pagination/ListIngestionsPaginator.ts
2721
+ var import_core6 = require("@smithy/core");
2722
+ var paginateListIngestions = (0, import_core6.createPaginator)(AppFabricClient, ListIngestionsCommand, "nextToken", "nextToken", "maxResults");
2723
+
2724
+ // src/index.ts
2725
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2726
+ // Annotate the CommonJS export names for ESM import in node:
2727
+
2728
+ 0 && (module.exports = {
2729
+ AccessDeniedException,
2730
+ ApiKeyCredentialFilterSensitiveLog,
2731
+ AppAuthorizationStatus,
2732
+ AppFabric,
2733
+ AppFabricClient,
2734
+ AppFabricServiceException,
2735
+ AuthRequestFilterSensitiveLog,
2736
+ AuthType,
2737
+ BatchGetUserAccessTasksCommand,
2738
+ BatchGetUserAccessTasksResponseFilterSensitiveLog,
2739
+ ConflictException,
2740
+ ConnectAppAuthorizationCommand,
2741
+ ConnectAppAuthorizationRequestFilterSensitiveLog,
2742
+ CreateAppAuthorizationCommand,
2743
+ CreateAppAuthorizationRequestFilterSensitiveLog,
2744
+ CreateAppBundleCommand,
2745
+ CreateIngestionCommand,
2746
+ CreateIngestionDestinationCommand,
2747
+ Credential,
2748
+ CredentialFilterSensitiveLog,
2749
+ DeleteAppAuthorizationCommand,
2750
+ DeleteAppBundleCommand,
2751
+ DeleteIngestionCommand,
2752
+ DeleteIngestionDestinationCommand,
2753
+ Destination,
2754
+ DestinationConfiguration,
2755
+ Format,
2756
+ GetAppAuthorizationCommand,
2757
+ GetAppBundleCommand,
2758
+ GetIngestionCommand,
2759
+ GetIngestionDestinationCommand,
2760
+ IngestionDestinationStatus,
2761
+ IngestionState,
2762
+ IngestionType,
2763
+ InternalServerException,
2764
+ ListAppAuthorizationsCommand,
2765
+ ListAppBundlesCommand,
2766
+ ListIngestionDestinationsCommand,
2767
+ ListIngestionsCommand,
2768
+ ListTagsForResourceCommand,
2769
+ Oauth2CredentialFilterSensitiveLog,
2770
+ Persona,
2771
+ ProcessingConfiguration,
2772
+ ResourceNotFoundException,
2773
+ ResultStatus,
2774
+ Schema,
2775
+ ServiceQuotaExceededException,
2776
+ StartIngestionCommand,
2777
+ StartUserAccessTasksCommand,
2778
+ StartUserAccessTasksRequestFilterSensitiveLog,
2779
+ StopIngestionCommand,
2780
+ TagResourceCommand,
2781
+ ThrottlingException,
2782
+ UntagResourceCommand,
2783
+ UpdateAppAuthorizationCommand,
2784
+ UpdateAppAuthorizationRequestFilterSensitiveLog,
2785
+ UpdateIngestionDestinationCommand,
2786
+ UserAccessResultItemFilterSensitiveLog,
2787
+ ValidationException,
2788
+ ValidationExceptionReason,
2789
+ __Client,
2790
+ paginateListAppAuthorizations,
2791
+ paginateListAppBundles,
2792
+ paginateListIngestionDestinations,
2793
+ paginateListIngestions
2794
+ });
2795
+