@aws-sdk/client-appfabric 3.901.0 → 3.907.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 (2) hide show
  1. package/dist-cjs/index.js +1758 -1991
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,2032 +1,1799 @@
1
- "use strict";
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 index_exports = {};
23
- __export(index_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(index_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_user_agent = require("@aws-sdk/middleware-user-agent");
97
- var import_config_resolver = require("@smithy/config-resolver");
98
- var import_core = require("@smithy/core");
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
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
104
-
105
- // src/endpoint/EndpointParameters.ts
106
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
107
- return Object.assign(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" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "appfabric",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
118
33
  };
119
34
 
120
- // src/AppFabricClient.ts
121
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
122
73
 
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");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
127
79
 
128
- // src/auth/httpAuthExtensionConfiguration.ts
129
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
130
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
131
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
132
- let _credentials = runtimeConfig.credentials;
133
- return {
134
- setHttpAuthScheme(httpAuthScheme) {
135
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
136
- if (index === -1) {
137
- _httpAuthSchemes.push(httpAuthScheme);
138
- } else {
139
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
140
- }
141
- },
142
- httpAuthSchemes() {
143
- return _httpAuthSchemes;
144
- },
145
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
146
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
147
- },
148
- httpAuthSchemeProvider() {
149
- return _httpAuthSchemeProvider;
150
- },
151
- setCredentials(credentials) {
152
- _credentials = credentials;
153
- },
154
- credentials() {
155
- return _credentials;
80
+ class AppFabricClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultAppFabricHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
156
108
  }
157
- };
158
- }, "getHttpAuthExtensionConfiguration");
159
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
160
- return {
161
- httpAuthSchemes: config.httpAuthSchemes(),
162
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
163
- credentials: config.credentials()
164
- };
165
- }, "resolveHttpAuthRuntimeConfig");
166
-
167
- // src/runtimeExtensions.ts
168
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
169
- const extensionConfiguration = Object.assign(
170
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
171
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
172
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
173
- getHttpAuthExtensionConfiguration(runtimeConfig)
174
- );
175
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
176
- return Object.assign(
177
- runtimeConfig,
178
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
179
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
180
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
181
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
182
- );
183
- }, "resolveRuntimeExtensions");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
184
113
 
185
- // src/AppFabricClient.ts
186
- var AppFabricClient = class extends import_smithy_client.Client {
187
- static {
188
- __name(this, "AppFabricClient");
189
- }
190
- /**
191
- * The resolved configuration of AppFabricClient class. This is resolved and normalized from the {@link AppFabricClientConfig | constructor configuration interface}.
192
- */
193
- config;
194
- constructor(...[configuration]) {
195
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
196
- super(_config_0);
197
- this.initConfig = _config_0;
198
- const _config_1 = resolveClientEndpointParameters(_config_0);
199
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
200
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
201
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
202
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
203
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
204
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
205
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
206
- this.config = _config_8;
207
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
208
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
209
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
210
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
211
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
212
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
213
- this.middlewareStack.use(
214
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
215
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultAppFabricHttpAuthSchemeParametersProvider,
216
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
217
- "aws.auth#sigv4": config.credentials
218
- }), "identityProviderConfigProvider")
219
- })
220
- );
221
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
222
- }
223
- /**
224
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
225
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
226
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
227
- */
228
- destroy() {
229
- super.destroy();
230
- }
114
+ class AppFabricServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, AppFabricServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends AppFabricServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ }
132
+ }
133
+ const AuthType = {
134
+ API_KEY: "apiKey",
135
+ OAUTH2: "oauth2",
231
136
  };
232
-
233
- // src/AppFabric.ts
234
-
235
-
236
- // src/commands/BatchGetUserAccessTasksCommand.ts
237
-
238
- var import_middleware_serde = require("@smithy/middleware-serde");
239
-
240
-
241
- // src/models/models_0.ts
242
-
243
-
244
- // src/models/AppFabricServiceException.ts
245
-
246
- var AppFabricServiceException = class _AppFabricServiceException extends import_smithy_client.ServiceException {
247
- static {
248
- __name(this, "AppFabricServiceException");
249
- }
250
- /**
251
- * @internal
252
- */
253
- constructor(options) {
254
- super(options);
255
- Object.setPrototypeOf(this, _AppFabricServiceException.prototype);
256
- }
137
+ const Persona = {
138
+ ADMIN: "admin",
139
+ ENDUSER: "endUser",
257
140
  };
258
-
259
- // src/models/models_0.ts
260
- var AccessDeniedException = class _AccessDeniedException extends AppFabricServiceException {
261
- static {
262
- __name(this, "AccessDeniedException");
263
- }
264
- name = "AccessDeniedException";
265
- $fault = "client";
266
- /**
267
- * @internal
268
- */
269
- constructor(opts) {
270
- super({
271
- name: "AccessDeniedException",
272
- $fault: "client",
273
- ...opts
274
- });
275
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
276
- }
277
- };
278
- var AuthType = {
279
- API_KEY: "apiKey",
280
- OAUTH2: "oauth2"
281
- };
282
- var Persona = {
283
- ADMIN: "admin",
284
- ENDUSER: "endUser"
285
- };
286
- var AppAuthorizationStatus = {
287
- CONNECTED: "Connected",
288
- CONNECTION_VALIDATION_FAILED: "ConnectionValidationFailed",
289
- PENDING_CONNECT: "PendingConnect",
290
- TOKEN_AUTO_ROTATION_FAILED: "TokenAutoRotationFailed"
291
- };
292
- var Destination;
293
- ((Destination3) => {
294
- Destination3.visit = /* @__PURE__ */ __name((value, visitor) => {
295
- if (value.s3Bucket !== void 0) return visitor.s3Bucket(value.s3Bucket);
296
- if (value.firehoseStream !== void 0) return visitor.firehoseStream(value.firehoseStream);
297
- return visitor._(value.$unknown[0], value.$unknown[1]);
298
- }, "visit");
299
- })(Destination || (Destination = {}));
300
- var Format = {
301
- JSON: "json",
302
- PARQUET: "parquet"
303
- };
304
- var Schema = {
305
- OCSF: "ocsf",
306
- RAW: "raw"
307
- };
308
- var ResultStatus = {
309
- COMPLETED: "COMPLETED",
310
- EXPIRED: "EXPIRED",
311
- FAILED: "FAILED",
312
- IN_PROGRESS: "IN_PROGRESS"
313
- };
314
- var InternalServerException = class _InternalServerException extends AppFabricServiceException {
315
- static {
316
- __name(this, "InternalServerException");
317
- }
318
- name = "InternalServerException";
319
- $fault = "server";
320
- $retryable = {};
321
- /**
322
- * <p>The period of time after which you should retry your request.</p>
323
- * @public
324
- */
325
- retryAfterSeconds;
326
- /**
327
- * @internal
328
- */
329
- constructor(opts) {
330
- super({
331
- name: "InternalServerException",
332
- $fault: "server",
333
- ...opts
334
- });
335
- Object.setPrototypeOf(this, _InternalServerException.prototype);
336
- this.retryAfterSeconds = opts.retryAfterSeconds;
337
- }
338
- };
339
- var ResourceNotFoundException = class _ResourceNotFoundException extends AppFabricServiceException {
340
- static {
341
- __name(this, "ResourceNotFoundException");
342
- }
343
- name = "ResourceNotFoundException";
344
- $fault = "client";
345
- /**
346
- * <p>The resource ID.</p>
347
- * @public
348
- */
349
- resourceId;
350
- /**
351
- * <p>The resource type.</p>
352
- * @public
353
- */
354
- resourceType;
355
- /**
356
- * @internal
357
- */
358
- constructor(opts) {
359
- super({
360
- name: "ResourceNotFoundException",
361
- $fault: "client",
362
- ...opts
363
- });
364
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
365
- this.resourceId = opts.resourceId;
366
- this.resourceType = opts.resourceType;
367
- }
368
- };
369
- var ThrottlingException = class _ThrottlingException extends AppFabricServiceException {
370
- static {
371
- __name(this, "ThrottlingException");
372
- }
373
- name = "ThrottlingException";
374
- $fault = "client";
375
- $retryable = {
376
- throttling: true
377
- };
378
- /**
379
- * <p>The code of the service.</p>
380
- * @public
381
- */
382
- serviceCode;
383
- /**
384
- * <p>The code for the quota exceeded.</p>
385
- * @public
386
- */
387
- quotaCode;
388
- /**
389
- * <p>The period of time after which you should retry your request.</p>
390
- * @public
391
- */
392
- retryAfterSeconds;
393
- /**
394
- * @internal
395
- */
396
- constructor(opts) {
397
- super({
398
- name: "ThrottlingException",
399
- $fault: "client",
400
- ...opts
401
- });
402
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
403
- this.serviceCode = opts.serviceCode;
404
- this.quotaCode = opts.quotaCode;
405
- this.retryAfterSeconds = opts.retryAfterSeconds;
406
- }
407
- };
408
- var ValidationExceptionReason = {
409
- CANNOT_PARSE: "cannotParse",
410
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
411
- OTHER: "other",
412
- UNKNOWN_OPERATION: "unknownOperation"
413
- };
414
- var ValidationException = class _ValidationException extends AppFabricServiceException {
415
- static {
416
- __name(this, "ValidationException");
417
- }
418
- name = "ValidationException";
419
- $fault = "client";
420
- /**
421
- * <p>The reason for the exception.</p>
422
- * @public
423
- */
424
- reason;
425
- /**
426
- * <p>The field list.</p>
427
- * @public
428
- */
429
- fieldList;
430
- /**
431
- * @internal
432
- */
433
- constructor(opts) {
434
- super({
435
- name: "ValidationException",
436
- $fault: "client",
437
- ...opts
438
- });
439
- Object.setPrototypeOf(this, _ValidationException.prototype);
440
- this.reason = opts.reason;
441
- this.fieldList = opts.fieldList;
442
- }
443
- };
444
- var ConflictException = class _ConflictException extends AppFabricServiceException {
445
- static {
446
- __name(this, "ConflictException");
447
- }
448
- name = "ConflictException";
449
- $fault = "client";
450
- /**
451
- * <p>The resource ID.</p>
452
- * @public
453
- */
454
- resourceId;
455
- /**
456
- * <p>The resource type.</p>
457
- * @public
458
- */
459
- resourceType;
460
- /**
461
- * @internal
462
- */
463
- constructor(opts) {
464
- super({
465
- name: "ConflictException",
466
- $fault: "client",
467
- ...opts
468
- });
469
- Object.setPrototypeOf(this, _ConflictException.prototype);
470
- this.resourceId = opts.resourceId;
471
- this.resourceType = opts.resourceType;
472
- }
473
- };
474
- var Credential;
475
- ((Credential3) => {
476
- Credential3.visit = /* @__PURE__ */ __name((value, visitor) => {
477
- if (value.oauth2Credential !== void 0) return visitor.oauth2Credential(value.oauth2Credential);
478
- if (value.apiKeyCredential !== void 0) return visitor.apiKeyCredential(value.apiKeyCredential);
479
- return visitor._(value.$unknown[0], value.$unknown[1]);
480
- }, "visit");
481
- })(Credential || (Credential = {}));
482
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AppFabricServiceException {
483
- static {
484
- __name(this, "ServiceQuotaExceededException");
485
- }
486
- name = "ServiceQuotaExceededException";
487
- $fault = "client";
488
- /**
489
- * <p>The resource ID.</p>
490
- * @public
491
- */
492
- resourceId;
493
- /**
494
- * <p>The resource type.</p>
495
- * @public
496
- */
497
- resourceType;
498
- /**
499
- * <p>The code of the service.</p>
500
- * @public
501
- */
502
- serviceCode;
503
- /**
504
- * <p>The code for the quota exceeded.</p>
505
- * @public
506
- */
507
- quotaCode;
508
- /**
509
- * @internal
510
- */
511
- constructor(opts) {
512
- super({
513
- name: "ServiceQuotaExceededException",
514
- $fault: "client",
515
- ...opts
516
- });
517
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
518
- this.resourceId = opts.resourceId;
519
- this.resourceType = opts.resourceType;
520
- this.serviceCode = opts.serviceCode;
521
- this.quotaCode = opts.quotaCode;
522
- }
523
- };
524
- var IngestionType = {
525
- AUDIT_LOG: "auditLog"
526
- };
527
- var IngestionState = {
528
- DISABLED: "disabled",
529
- ENABLED: "enabled"
530
- };
531
- var DestinationConfiguration;
532
- ((DestinationConfiguration3) => {
533
- DestinationConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
534
- if (value.auditLog !== void 0) return visitor.auditLog(value.auditLog);
535
- return visitor._(value.$unknown[0], value.$unknown[1]);
536
- }, "visit");
537
- })(DestinationConfiguration || (DestinationConfiguration = {}));
538
- var ProcessingConfiguration;
539
- ((ProcessingConfiguration3) => {
540
- ProcessingConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
541
- if (value.auditLog !== void 0) return visitor.auditLog(value.auditLog);
542
- return visitor._(value.$unknown[0], value.$unknown[1]);
543
- }, "visit");
544
- })(ProcessingConfiguration || (ProcessingConfiguration = {}));
545
- var IngestionDestinationStatus = {
546
- ACTIVE: "Active",
547
- FAILED: "Failed"
548
- };
549
- var ApiKeyCredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
550
- ...obj,
551
- ...obj.apiKey && { apiKey: import_smithy_client.SENSITIVE_STRING }
552
- }), "ApiKeyCredentialFilterSensitiveLog");
553
- var AuthRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
554
- ...obj,
555
- ...obj.code && { code: import_smithy_client.SENSITIVE_STRING }
556
- }), "AuthRequestFilterSensitiveLog");
557
- var UserAccessResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
558
- ...obj,
559
- ...obj.email && { email: import_smithy_client.SENSITIVE_STRING },
560
- ...obj.userId && { userId: import_smithy_client.SENSITIVE_STRING },
561
- ...obj.userFullName && { userFullName: import_smithy_client.SENSITIVE_STRING },
562
- ...obj.userFirstName && { userFirstName: import_smithy_client.SENSITIVE_STRING },
563
- ...obj.userLastName && { userLastName: import_smithy_client.SENSITIVE_STRING }
564
- }), "UserAccessResultItemFilterSensitiveLog");
565
- var BatchGetUserAccessTasksResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
566
- ...obj,
567
- ...obj.userAccessResultsList && {
568
- userAccessResultsList: obj.userAccessResultsList.map((item) => UserAccessResultItemFilterSensitiveLog(item))
569
- }
570
- }), "BatchGetUserAccessTasksResponseFilterSensitiveLog");
571
- var ConnectAppAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
572
- ...obj,
573
- ...obj.authRequest && { authRequest: AuthRequestFilterSensitiveLog(obj.authRequest) }
574
- }), "ConnectAppAuthorizationRequestFilterSensitiveLog");
575
- var Oauth2CredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
576
- ...obj,
577
- ...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
578
- }), "Oauth2CredentialFilterSensitiveLog");
579
- var CredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
580
- if (obj.oauth2Credential !== void 0)
581
- return { oauth2Credential: Oauth2CredentialFilterSensitiveLog(obj.oauth2Credential) };
582
- if (obj.apiKeyCredential !== void 0)
583
- return { apiKeyCredential: ApiKeyCredentialFilterSensitiveLog(obj.apiKeyCredential) };
584
- if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
585
- }, "CredentialFilterSensitiveLog");
586
- var CreateAppAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
587
- ...obj,
588
- ...obj.credential && { credential: CredentialFilterSensitiveLog(obj.credential) }
589
- }), "CreateAppAuthorizationRequestFilterSensitiveLog");
590
- var StartUserAccessTasksRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
591
- ...obj,
592
- ...obj.email && { email: import_smithy_client.SENSITIVE_STRING }
593
- }), "StartUserAccessTasksRequestFilterSensitiveLog");
594
- var UpdateAppAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
595
- ...obj,
596
- ...obj.credential && { credential: CredentialFilterSensitiveLog(obj.credential) }
597
- }), "UpdateAppAuthorizationRequestFilterSensitiveLog");
598
-
599
- // src/protocols/Aws_restJson1.ts
600
- var import_core2 = require("@aws-sdk/core");
601
-
602
-
603
- var import_uuid = require("@smithy/uuid");
604
- var se_BatchGetUserAccessTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
605
- const b = (0, import_core.requestBuilder)(input, context);
606
- const headers = {
607
- "content-type": "application/json"
608
- };
609
- b.bp("/useraccess/batchget");
610
- let body;
611
- body = JSON.stringify(
612
- (0, import_smithy_client.take)(input, {
613
- appBundleIdentifier: [],
614
- taskIdList: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "taskIdList")
615
- })
616
- );
617
- b.m("POST").h(headers).b(body);
618
- return b.build();
619
- }, "se_BatchGetUserAccessTasksCommand");
620
- var se_ConnectAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
621
- const b = (0, import_core.requestBuilder)(input, context);
622
- const headers = {
623
- "content-type": "application/json"
624
- };
625
- b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect");
626
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
627
- b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
628
- let body;
629
- body = JSON.stringify(
630
- (0, import_smithy_client.take)(input, {
631
- authRequest: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "authRequest")
632
- })
633
- );
634
- b.m("POST").h(headers).b(body);
635
- return b.build();
636
- }, "se_ConnectAppAuthorizationCommand");
637
- var se_CreateAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
638
- const b = (0, import_core.requestBuilder)(input, context);
639
- const headers = {
640
- "content-type": "application/json"
641
- };
642
- b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
643
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
644
- let body;
645
- body = JSON.stringify(
646
- (0, import_smithy_client.take)(input, {
647
- app: [],
648
- authType: [],
649
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
650
- credential: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "credential"),
651
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
652
- tenant: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tenant")
653
- })
654
- );
655
- b.m("POST").h(headers).b(body);
656
- return b.build();
657
- }, "se_CreateAppAuthorizationCommand");
658
- var se_CreateAppBundleCommand = /* @__PURE__ */ __name(async (input, context) => {
659
- const b = (0, import_core.requestBuilder)(input, context);
660
- const headers = {
661
- "content-type": "application/json"
662
- };
663
- b.bp("/appbundles");
664
- let body;
665
- body = JSON.stringify(
666
- (0, import_smithy_client.take)(input, {
667
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
668
- customerManagedKeyIdentifier: [],
669
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
670
- })
671
- );
672
- b.m("POST").h(headers).b(body);
673
- return b.build();
674
- }, "se_CreateAppBundleCommand");
675
- var se_CreateIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
676
- const b = (0, import_core.requestBuilder)(input, context);
677
- const headers = {
678
- "content-type": "application/json"
679
- };
680
- b.bp("/appbundles/{appBundleIdentifier}/ingestions");
681
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
682
- let body;
683
- body = JSON.stringify(
684
- (0, import_smithy_client.take)(input, {
685
- app: [],
686
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
687
- ingestionType: [],
688
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
689
- tenantId: []
690
- })
691
- );
692
- b.m("POST").h(headers).b(body);
693
- return b.build();
694
- }, "se_CreateIngestionCommand");
695
- var se_CreateIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
696
- const b = (0, import_core.requestBuilder)(input, context);
697
- const headers = {
698
- "content-type": "application/json"
699
- };
700
- b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
701
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
702
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
703
- let body;
704
- body = JSON.stringify(
705
- (0, import_smithy_client.take)(input, {
706
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
707
- destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationConfiguration"),
708
- processingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "processingConfiguration"),
709
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
710
- })
711
- );
712
- b.m("POST").h(headers).b(body);
713
- return b.build();
714
- }, "se_CreateIngestionDestinationCommand");
715
- var se_DeleteAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
716
- const b = (0, import_core.requestBuilder)(input, context);
717
- const headers = {};
718
- b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
719
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
720
- b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
721
- let body;
722
- b.m("DELETE").h(headers).b(body);
723
- return b.build();
724
- }, "se_DeleteAppAuthorizationCommand");
725
- var se_DeleteAppBundleCommand = /* @__PURE__ */ __name(async (input, context) => {
726
- const b = (0, import_core.requestBuilder)(input, context);
727
- const headers = {};
728
- b.bp("/appbundles/{appBundleIdentifier}");
729
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
730
- let body;
731
- b.m("DELETE").h(headers).b(body);
732
- return b.build();
733
- }, "se_DeleteAppBundleCommand");
734
- var se_DeleteIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
735
- const b = (0, import_core.requestBuilder)(input, context);
736
- const headers = {};
737
- b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
738
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
739
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
740
- let body;
741
- b.m("DELETE").h(headers).b(body);
742
- return b.build();
743
- }, "se_DeleteIngestionCommand");
744
- var se_DeleteIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
745
- const b = (0, import_core.requestBuilder)(input, context);
746
- const headers = {};
747
- b.bp(
748
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"
749
- );
750
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
751
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
752
- b.p(
753
- "ingestionDestinationIdentifier",
754
- () => input.ingestionDestinationIdentifier,
755
- "{ingestionDestinationIdentifier}",
756
- false
757
- );
758
- let body;
759
- b.m("DELETE").h(headers).b(body);
760
- return b.build();
761
- }, "se_DeleteIngestionDestinationCommand");
762
- var se_GetAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
763
- const b = (0, import_core.requestBuilder)(input, context);
764
- const headers = {};
765
- b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
766
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
767
- b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
768
- let body;
769
- b.m("GET").h(headers).b(body);
770
- return b.build();
771
- }, "se_GetAppAuthorizationCommand");
772
- var se_GetAppBundleCommand = /* @__PURE__ */ __name(async (input, context) => {
773
- const b = (0, import_core.requestBuilder)(input, context);
774
- const headers = {};
775
- b.bp("/appbundles/{appBundleIdentifier}");
776
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
777
- let body;
778
- b.m("GET").h(headers).b(body);
779
- return b.build();
780
- }, "se_GetAppBundleCommand");
781
- var se_GetIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
782
- const b = (0, import_core.requestBuilder)(input, context);
783
- const headers = {};
784
- b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
785
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
786
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
787
- let body;
788
- b.m("GET").h(headers).b(body);
789
- return b.build();
790
- }, "se_GetIngestionCommand");
791
- var se_GetIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
792
- const b = (0, import_core.requestBuilder)(input, context);
793
- const headers = {};
794
- b.bp(
795
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"
796
- );
797
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
798
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
799
- b.p(
800
- "ingestionDestinationIdentifier",
801
- () => input.ingestionDestinationIdentifier,
802
- "{ingestionDestinationIdentifier}",
803
- false
804
- );
805
- let body;
806
- b.m("GET").h(headers).b(body);
807
- return b.build();
808
- }, "se_GetIngestionDestinationCommand");
809
- var se_ListAppAuthorizationsCommand = /* @__PURE__ */ __name(async (input, context) => {
810
- const b = (0, import_core.requestBuilder)(input, context);
811
- const headers = {};
812
- b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
813
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
814
- const query = (0, import_smithy_client.map)({
815
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
816
- [_nT]: [, input[_nT]]
817
- });
818
- let body;
819
- b.m("GET").h(headers).q(query).b(body);
820
- return b.build();
821
- }, "se_ListAppAuthorizationsCommand");
822
- var se_ListAppBundlesCommand = /* @__PURE__ */ __name(async (input, context) => {
823
- const b = (0, import_core.requestBuilder)(input, context);
824
- const headers = {};
825
- b.bp("/appbundles");
826
- const query = (0, import_smithy_client.map)({
827
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
828
- [_nT]: [, input[_nT]]
829
- });
830
- let body;
831
- b.m("GET").h(headers).q(query).b(body);
832
- return b.build();
833
- }, "se_ListAppBundlesCommand");
834
- var se_ListIngestionDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
835
- const b = (0, import_core.requestBuilder)(input, context);
836
- const headers = {};
837
- b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
838
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
839
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
840
- const query = (0, import_smithy_client.map)({
841
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
842
- [_nT]: [, input[_nT]]
843
- });
844
- let body;
845
- b.m("GET").h(headers).q(query).b(body);
846
- return b.build();
847
- }, "se_ListIngestionDestinationsCommand");
848
- var se_ListIngestionsCommand = /* @__PURE__ */ __name(async (input, context) => {
849
- const b = (0, import_core.requestBuilder)(input, context);
850
- const headers = {};
851
- b.bp("/appbundles/{appBundleIdentifier}/ingestions");
852
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
853
- const query = (0, import_smithy_client.map)({
854
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
855
- [_nT]: [, input[_nT]]
856
- });
857
- let body;
858
- b.m("GET").h(headers).q(query).b(body);
859
- return b.build();
860
- }, "se_ListIngestionsCommand");
861
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
862
- const b = (0, import_core.requestBuilder)(input, context);
863
- const headers = {};
864
- b.bp("/tags/{resourceArn}");
865
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
866
- let body;
867
- b.m("GET").h(headers).b(body);
868
- return b.build();
869
- }, "se_ListTagsForResourceCommand");
870
- var se_StartIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
871
- const b = (0, import_core.requestBuilder)(input, context);
872
- const headers = {};
873
- b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start");
874
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
875
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
876
- let body;
877
- b.m("POST").h(headers).b(body);
878
- return b.build();
879
- }, "se_StartIngestionCommand");
880
- var se_StartUserAccessTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
881
- const b = (0, import_core.requestBuilder)(input, context);
882
- const headers = {
883
- "content-type": "application/json"
884
- };
885
- b.bp("/useraccess/start");
886
- let body;
887
- body = JSON.stringify(
888
- (0, import_smithy_client.take)(input, {
889
- appBundleIdentifier: [],
890
- email: []
891
- })
892
- );
893
- b.m("POST").h(headers).b(body);
894
- return b.build();
895
- }, "se_StartUserAccessTasksCommand");
896
- var se_StopIngestionCommand = /* @__PURE__ */ __name(async (input, context) => {
897
- const b = (0, import_core.requestBuilder)(input, context);
898
- const headers = {};
899
- b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop");
900
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
901
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
902
- let body;
903
- b.m("POST").h(headers).b(body);
904
- return b.build();
905
- }, "se_StopIngestionCommand");
906
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
907
- const b = (0, import_core.requestBuilder)(input, context);
908
- const headers = {
909
- "content-type": "application/json"
910
- };
911
- b.bp("/tags/{resourceArn}");
912
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
913
- let body;
914
- body = JSON.stringify(
915
- (0, import_smithy_client.take)(input, {
916
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
917
- })
918
- );
919
- b.m("POST").h(headers).b(body);
920
- return b.build();
921
- }, "se_TagResourceCommand");
922
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
923
- const b = (0, import_core.requestBuilder)(input, context);
924
- const headers = {};
925
- b.bp("/tags/{resourceArn}");
926
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
927
- const query = (0, import_smithy_client.map)({
928
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
929
- });
930
- let body;
931
- b.m("DELETE").h(headers).q(query).b(body);
932
- return b.build();
933
- }, "se_UntagResourceCommand");
934
- var se_UpdateAppAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
935
- const b = (0, import_core.requestBuilder)(input, context);
936
- const headers = {
937
- "content-type": "application/json"
938
- };
939
- b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
940
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
941
- b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
942
- let body;
943
- body = JSON.stringify(
944
- (0, import_smithy_client.take)(input, {
945
- credential: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "credential"),
946
- tenant: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tenant")
947
- })
948
- );
949
- b.m("PATCH").h(headers).b(body);
950
- return b.build();
951
- }, "se_UpdateAppAuthorizationCommand");
952
- var se_UpdateIngestionDestinationCommand = /* @__PURE__ */ __name(async (input, context) => {
953
- const b = (0, import_core.requestBuilder)(input, context);
954
- const headers = {
955
- "content-type": "application/json"
956
- };
957
- b.bp(
958
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}"
959
- );
960
- b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
961
- b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
962
- b.p(
963
- "ingestionDestinationIdentifier",
964
- () => input.ingestionDestinationIdentifier,
965
- "{ingestionDestinationIdentifier}",
966
- false
967
- );
968
- let body;
969
- body = JSON.stringify(
970
- (0, import_smithy_client.take)(input, {
971
- destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationConfiguration")
972
- })
973
- );
974
- b.m("PATCH").h(headers).b(body);
975
- return b.build();
976
- }, "se_UpdateIngestionDestinationCommand");
977
- var de_BatchGetUserAccessTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
978
- if (output.statusCode !== 200 && output.statusCode >= 300) {
979
- return de_CommandError(output, context);
980
- }
981
- const contents = (0, import_smithy_client.map)({
982
- $metadata: deserializeMetadata(output)
983
- });
984
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
985
- const doc = (0, import_smithy_client.take)(data, {
986
- userAccessResultsList: import_smithy_client._json
987
- });
988
- Object.assign(contents, doc);
989
- return contents;
990
- }, "de_BatchGetUserAccessTasksCommand");
991
- var de_ConnectAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
992
- if (output.statusCode !== 200 && output.statusCode >= 300) {
993
- return de_CommandError(output, context);
994
- }
995
- const contents = (0, import_smithy_client.map)({
996
- $metadata: deserializeMetadata(output)
997
- });
998
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
999
- const doc = (0, import_smithy_client.take)(data, {
1000
- appAuthorizationSummary: /* @__PURE__ */ __name((_) => de_AppAuthorizationSummary(_, context), "appAuthorizationSummary")
1001
- });
1002
- Object.assign(contents, doc);
1003
- return contents;
1004
- }, "de_ConnectAppAuthorizationCommand");
1005
- var de_CreateAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1006
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1007
- return de_CommandError(output, context);
1008
- }
1009
- const contents = (0, import_smithy_client.map)({
1010
- $metadata: deserializeMetadata(output)
1011
- });
1012
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1013
- const doc = (0, import_smithy_client.take)(data, {
1014
- appAuthorization: /* @__PURE__ */ __name((_) => de_AppAuthorization(_, context), "appAuthorization")
1015
- });
1016
- Object.assign(contents, doc);
1017
- return contents;
1018
- }, "de_CreateAppAuthorizationCommand");
1019
- var de_CreateAppBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
1020
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1021
- return de_CommandError(output, context);
1022
- }
1023
- const contents = (0, import_smithy_client.map)({
1024
- $metadata: deserializeMetadata(output)
1025
- });
1026
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1027
- const doc = (0, import_smithy_client.take)(data, {
1028
- appBundle: import_smithy_client._json
1029
- });
1030
- Object.assign(contents, doc);
1031
- return contents;
1032
- }, "de_CreateAppBundleCommand");
1033
- var de_CreateIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1034
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1035
- return de_CommandError(output, context);
1036
- }
1037
- const contents = (0, import_smithy_client.map)({
1038
- $metadata: deserializeMetadata(output)
1039
- });
1040
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1041
- const doc = (0, import_smithy_client.take)(data, {
1042
- ingestion: /* @__PURE__ */ __name((_) => de_Ingestion(_, context), "ingestion")
1043
- });
1044
- Object.assign(contents, doc);
1045
- return contents;
1046
- }, "de_CreateIngestionCommand");
1047
- var de_CreateIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1048
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1049
- return de_CommandError(output, context);
1050
- }
1051
- const contents = (0, import_smithy_client.map)({
1052
- $metadata: deserializeMetadata(output)
1053
- });
1054
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1055
- const doc = (0, import_smithy_client.take)(data, {
1056
- ingestionDestination: /* @__PURE__ */ __name((_) => de_IngestionDestination(_, context), "ingestionDestination")
1057
- });
1058
- Object.assign(contents, doc);
1059
- return contents;
1060
- }, "de_CreateIngestionDestinationCommand");
1061
- var de_DeleteAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1062
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1063
- return de_CommandError(output, context);
1064
- }
1065
- const contents = (0, import_smithy_client.map)({
1066
- $metadata: deserializeMetadata(output)
1067
- });
1068
- await (0, import_smithy_client.collectBody)(output.body, context);
1069
- return contents;
1070
- }, "de_DeleteAppAuthorizationCommand");
1071
- var de_DeleteAppBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
1072
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1073
- return de_CommandError(output, context);
1074
- }
1075
- const contents = (0, import_smithy_client.map)({
1076
- $metadata: deserializeMetadata(output)
1077
- });
1078
- await (0, import_smithy_client.collectBody)(output.body, context);
1079
- return contents;
1080
- }, "de_DeleteAppBundleCommand");
1081
- var de_DeleteIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1082
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1083
- return de_CommandError(output, context);
1084
- }
1085
- const contents = (0, import_smithy_client.map)({
1086
- $metadata: deserializeMetadata(output)
1087
- });
1088
- await (0, import_smithy_client.collectBody)(output.body, context);
1089
- return contents;
1090
- }, "de_DeleteIngestionCommand");
1091
- var de_DeleteIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1092
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1093
- return de_CommandError(output, context);
1094
- }
1095
- const contents = (0, import_smithy_client.map)({
1096
- $metadata: deserializeMetadata(output)
1097
- });
1098
- await (0, import_smithy_client.collectBody)(output.body, context);
1099
- return contents;
1100
- }, "de_DeleteIngestionDestinationCommand");
1101
- var de_GetAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1102
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1103
- return de_CommandError(output, context);
1104
- }
1105
- const contents = (0, import_smithy_client.map)({
1106
- $metadata: deserializeMetadata(output)
1107
- });
1108
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1109
- const doc = (0, import_smithy_client.take)(data, {
1110
- appAuthorization: /* @__PURE__ */ __name((_) => de_AppAuthorization(_, context), "appAuthorization")
1111
- });
1112
- Object.assign(contents, doc);
1113
- return contents;
1114
- }, "de_GetAppAuthorizationCommand");
1115
- var de_GetAppBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
1116
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1117
- return de_CommandError(output, context);
1118
- }
1119
- const contents = (0, import_smithy_client.map)({
1120
- $metadata: deserializeMetadata(output)
1121
- });
1122
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1123
- const doc = (0, import_smithy_client.take)(data, {
1124
- appBundle: import_smithy_client._json
1125
- });
1126
- Object.assign(contents, doc);
1127
- return contents;
1128
- }, "de_GetAppBundleCommand");
1129
- var de_GetIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1130
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1131
- return de_CommandError(output, context);
1132
- }
1133
- const contents = (0, import_smithy_client.map)({
1134
- $metadata: deserializeMetadata(output)
1135
- });
1136
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1137
- const doc = (0, import_smithy_client.take)(data, {
1138
- ingestion: /* @__PURE__ */ __name((_) => de_Ingestion(_, context), "ingestion")
1139
- });
1140
- Object.assign(contents, doc);
1141
- return contents;
1142
- }, "de_GetIngestionCommand");
1143
- var de_GetIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const contents = (0, import_smithy_client.map)({
1148
- $metadata: deserializeMetadata(output)
1149
- });
1150
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1151
- const doc = (0, import_smithy_client.take)(data, {
1152
- ingestionDestination: /* @__PURE__ */ __name((_) => de_IngestionDestination(_, context), "ingestionDestination")
1153
- });
1154
- Object.assign(contents, doc);
1155
- return contents;
1156
- }, "de_GetIngestionDestinationCommand");
1157
- var de_ListAppAuthorizationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1158
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1159
- return de_CommandError(output, context);
1160
- }
1161
- const contents = (0, import_smithy_client.map)({
1162
- $metadata: deserializeMetadata(output)
1163
- });
1164
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1165
- const doc = (0, import_smithy_client.take)(data, {
1166
- appAuthorizationSummaryList: /* @__PURE__ */ __name((_) => de_AppAuthorizationSummaryList(_, context), "appAuthorizationSummaryList"),
1167
- nextToken: import_smithy_client.expectString
1168
- });
1169
- Object.assign(contents, doc);
1170
- return contents;
1171
- }, "de_ListAppAuthorizationsCommand");
1172
- var de_ListAppBundlesCommand = /* @__PURE__ */ __name(async (output, context) => {
1173
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1174
- return de_CommandError(output, context);
1175
- }
1176
- const contents = (0, import_smithy_client.map)({
1177
- $metadata: deserializeMetadata(output)
1178
- });
1179
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1180
- const doc = (0, import_smithy_client.take)(data, {
1181
- appBundleSummaryList: import_smithy_client._json,
1182
- nextToken: import_smithy_client.expectString
1183
- });
1184
- Object.assign(contents, doc);
1185
- return contents;
1186
- }, "de_ListAppBundlesCommand");
1187
- var de_ListIngestionDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1188
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
- return de_CommandError(output, context);
1190
- }
1191
- const contents = (0, import_smithy_client.map)({
1192
- $metadata: deserializeMetadata(output)
1193
- });
1194
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1195
- const doc = (0, import_smithy_client.take)(data, {
1196
- ingestionDestinations: import_smithy_client._json,
1197
- nextToken: import_smithy_client.expectString
1198
- });
1199
- Object.assign(contents, doc);
1200
- return contents;
1201
- }, "de_ListIngestionDestinationsCommand");
1202
- var de_ListIngestionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1203
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1204
- return de_CommandError(output, context);
1205
- }
1206
- const contents = (0, import_smithy_client.map)({
1207
- $metadata: deserializeMetadata(output)
1208
- });
1209
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1210
- const doc = (0, import_smithy_client.take)(data, {
1211
- ingestions: import_smithy_client._json,
1212
- nextToken: import_smithy_client.expectString
1213
- });
1214
- Object.assign(contents, doc);
1215
- return contents;
1216
- }, "de_ListIngestionsCommand");
1217
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1218
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1219
- return de_CommandError(output, context);
1220
- }
1221
- const contents = (0, import_smithy_client.map)({
1222
- $metadata: deserializeMetadata(output)
1223
- });
1224
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1225
- const doc = (0, import_smithy_client.take)(data, {
1226
- tags: import_smithy_client._json
1227
- });
1228
- Object.assign(contents, doc);
1229
- return contents;
1230
- }, "de_ListTagsForResourceCommand");
1231
- var de_StartIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1232
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1233
- return de_CommandError(output, context);
1234
- }
1235
- const contents = (0, import_smithy_client.map)({
1236
- $metadata: deserializeMetadata(output)
1237
- });
1238
- await (0, import_smithy_client.collectBody)(output.body, context);
1239
- return contents;
1240
- }, "de_StartIngestionCommand");
1241
- var de_StartUserAccessTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1242
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1243
- return de_CommandError(output, context);
1244
- }
1245
- const contents = (0, import_smithy_client.map)({
1246
- $metadata: deserializeMetadata(output)
1247
- });
1248
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1249
- const doc = (0, import_smithy_client.take)(data, {
1250
- userAccessTasksList: import_smithy_client._json
1251
- });
1252
- Object.assign(contents, doc);
1253
- return contents;
1254
- }, "de_StartUserAccessTasksCommand");
1255
- var de_StopIngestionCommand = /* @__PURE__ */ __name(async (output, context) => {
1256
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1257
- return de_CommandError(output, context);
1258
- }
1259
- const contents = (0, import_smithy_client.map)({
1260
- $metadata: deserializeMetadata(output)
1261
- });
1262
- await (0, import_smithy_client.collectBody)(output.body, context);
1263
- return contents;
1264
- }, "de_StopIngestionCommand");
1265
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1266
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1267
- return de_CommandError(output, context);
1268
- }
1269
- const contents = (0, import_smithy_client.map)({
1270
- $metadata: deserializeMetadata(output)
1271
- });
1272
- await (0, import_smithy_client.collectBody)(output.body, context);
1273
- return contents;
1274
- }, "de_TagResourceCommand");
1275
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1276
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1277
- return de_CommandError(output, context);
1278
- }
1279
- const contents = (0, import_smithy_client.map)({
1280
- $metadata: deserializeMetadata(output)
1281
- });
1282
- await (0, import_smithy_client.collectBody)(output.body, context);
1283
- return contents;
1284
- }, "de_UntagResourceCommand");
1285
- var de_UpdateAppAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
1286
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1287
- return de_CommandError(output, context);
1288
- }
1289
- const contents = (0, import_smithy_client.map)({
1290
- $metadata: deserializeMetadata(output)
1291
- });
1292
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1293
- const doc = (0, import_smithy_client.take)(data, {
1294
- appAuthorization: /* @__PURE__ */ __name((_) => de_AppAuthorization(_, context), "appAuthorization")
1295
- });
1296
- Object.assign(contents, doc);
1297
- return contents;
1298
- }, "de_UpdateAppAuthorizationCommand");
1299
- var de_UpdateIngestionDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1300
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
- return de_CommandError(output, context);
1302
- }
1303
- const contents = (0, import_smithy_client.map)({
1304
- $metadata: deserializeMetadata(output)
1305
- });
1306
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1307
- const doc = (0, import_smithy_client.take)(data, {
1308
- ingestionDestination: /* @__PURE__ */ __name((_) => de_IngestionDestination(_, context), "ingestionDestination")
1309
- });
1310
- Object.assign(contents, doc);
1311
- return contents;
1312
- }, "de_UpdateIngestionDestinationCommand");
1313
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1314
- const parsedOutput = {
1315
- ...output,
1316
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1317
- };
1318
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1319
- switch (errorCode) {
1320
- case "AccessDeniedException":
1321
- case "com.amazonaws.appfabric#AccessDeniedException":
1322
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1323
- case "InternalServerException":
1324
- case "com.amazonaws.appfabric#InternalServerException":
1325
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1326
- case "ResourceNotFoundException":
1327
- case "com.amazonaws.appfabric#ResourceNotFoundException":
1328
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1329
- case "ThrottlingException":
1330
- case "com.amazonaws.appfabric#ThrottlingException":
1331
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1332
- case "ValidationException":
1333
- case "com.amazonaws.appfabric#ValidationException":
1334
- throw await de_ValidationExceptionRes(parsedOutput, context);
1335
- case "ConflictException":
1336
- case "com.amazonaws.appfabric#ConflictException":
1337
- throw await de_ConflictExceptionRes(parsedOutput, context);
1338
- case "ServiceQuotaExceededException":
1339
- case "com.amazonaws.appfabric#ServiceQuotaExceededException":
1340
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1341
- default:
1342
- const parsedBody = parsedOutput.body;
1343
- return throwDefaultError({
1344
- output,
1345
- parsedBody,
1346
- errorCode
1347
- });
1348
- }
1349
- }, "de_CommandError");
1350
- var throwDefaultError = (0, import_smithy_client.withBaseException)(AppFabricServiceException);
1351
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1352
- const contents = (0, import_smithy_client.map)({});
1353
- const data = parsedOutput.body;
1354
- const doc = (0, import_smithy_client.take)(data, {
1355
- message: import_smithy_client.expectString
1356
- });
1357
- Object.assign(contents, doc);
1358
- const exception = new AccessDeniedException({
1359
- $metadata: deserializeMetadata(parsedOutput),
1360
- ...contents
1361
- });
1362
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1363
- }, "de_AccessDeniedExceptionRes");
1364
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1365
- const contents = (0, import_smithy_client.map)({});
1366
- const data = parsedOutput.body;
1367
- const doc = (0, import_smithy_client.take)(data, {
1368
- message: import_smithy_client.expectString,
1369
- resourceId: import_smithy_client.expectString,
1370
- resourceType: import_smithy_client.expectString
1371
- });
1372
- Object.assign(contents, doc);
1373
- const exception = new ConflictException({
1374
- $metadata: deserializeMetadata(parsedOutput),
1375
- ...contents
1376
- });
1377
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1378
- }, "de_ConflictExceptionRes");
1379
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1380
- const contents = (0, import_smithy_client.map)({
1381
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1382
- });
1383
- const data = parsedOutput.body;
1384
- const doc = (0, import_smithy_client.take)(data, {
1385
- message: import_smithy_client.expectString
1386
- });
1387
- Object.assign(contents, doc);
1388
- const exception = new InternalServerException({
1389
- $metadata: deserializeMetadata(parsedOutput),
1390
- ...contents
1391
- });
1392
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1393
- }, "de_InternalServerExceptionRes");
1394
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1395
- const contents = (0, import_smithy_client.map)({});
1396
- const data = parsedOutput.body;
1397
- const doc = (0, import_smithy_client.take)(data, {
1398
- message: import_smithy_client.expectString,
1399
- resourceId: import_smithy_client.expectString,
1400
- resourceType: import_smithy_client.expectString
1401
- });
1402
- Object.assign(contents, doc);
1403
- const exception = new ResourceNotFoundException({
1404
- $metadata: deserializeMetadata(parsedOutput),
1405
- ...contents
1406
- });
1407
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1408
- }, "de_ResourceNotFoundExceptionRes");
1409
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1410
- const contents = (0, import_smithy_client.map)({});
1411
- const data = parsedOutput.body;
1412
- const doc = (0, import_smithy_client.take)(data, {
1413
- message: import_smithy_client.expectString,
1414
- quotaCode: import_smithy_client.expectString,
1415
- resourceId: import_smithy_client.expectString,
1416
- resourceType: import_smithy_client.expectString,
1417
- serviceCode: import_smithy_client.expectString
1418
- });
1419
- Object.assign(contents, doc);
1420
- const exception = new ServiceQuotaExceededException({
1421
- $metadata: deserializeMetadata(parsedOutput),
1422
- ...contents
1423
- });
1424
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1425
- }, "de_ServiceQuotaExceededExceptionRes");
1426
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1427
- const contents = (0, import_smithy_client.map)({
1428
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1429
- });
1430
- const data = parsedOutput.body;
1431
- const doc = (0, import_smithy_client.take)(data, {
1432
- message: import_smithy_client.expectString,
1433
- quotaCode: import_smithy_client.expectString,
1434
- serviceCode: import_smithy_client.expectString
1435
- });
1436
- Object.assign(contents, doc);
1437
- const exception = new ThrottlingException({
1438
- $metadata: deserializeMetadata(parsedOutput),
1439
- ...contents
1440
- });
1441
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1442
- }, "de_ThrottlingExceptionRes");
1443
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1444
- const contents = (0, import_smithy_client.map)({});
1445
- const data = parsedOutput.body;
1446
- const doc = (0, import_smithy_client.take)(data, {
1447
- fieldList: import_smithy_client._json,
1448
- message: import_smithy_client.expectString,
1449
- reason: import_smithy_client.expectString
1450
- });
1451
- Object.assign(contents, doc);
1452
- const exception = new ValidationException({
1453
- $metadata: deserializeMetadata(parsedOutput),
1454
- ...contents
1455
- });
1456
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1457
- }, "de_ValidationExceptionRes");
1458
- var de_AppAuthorization = /* @__PURE__ */ __name((output, context) => {
1459
- return (0, import_smithy_client.take)(output, {
1460
- app: import_smithy_client.expectString,
1461
- appAuthorizationArn: import_smithy_client.expectString,
1462
- appBundleArn: import_smithy_client.expectString,
1463
- authType: import_smithy_client.expectString,
1464
- authUrl: import_smithy_client.expectString,
1465
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1466
- persona: import_smithy_client.expectString,
1467
- status: import_smithy_client.expectString,
1468
- tenant: import_smithy_client._json,
1469
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")
1470
- });
1471
- }, "de_AppAuthorization");
1472
- var de_AppAuthorizationSummary = /* @__PURE__ */ __name((output, context) => {
1473
- return (0, import_smithy_client.take)(output, {
1474
- app: import_smithy_client.expectString,
1475
- appAuthorizationArn: import_smithy_client.expectString,
1476
- appBundleArn: import_smithy_client.expectString,
1477
- status: import_smithy_client.expectString,
1478
- tenant: import_smithy_client._json,
1479
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")
1480
- });
1481
- }, "de_AppAuthorizationSummary");
1482
- var de_AppAuthorizationSummaryList = /* @__PURE__ */ __name((output, context) => {
1483
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1484
- return de_AppAuthorizationSummary(entry, context);
1485
- });
1486
- return retVal;
1487
- }, "de_AppAuthorizationSummaryList");
1488
- var de_Ingestion = /* @__PURE__ */ __name((output, context) => {
1489
- return (0, import_smithy_client.take)(output, {
1490
- app: import_smithy_client.expectString,
1491
- appBundleArn: import_smithy_client.expectString,
1492
- arn: import_smithy_client.expectString,
1493
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1494
- ingestionType: import_smithy_client.expectString,
1495
- state: import_smithy_client.expectString,
1496
- tenantId: import_smithy_client.expectString,
1497
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")
1498
- });
1499
- }, "de_Ingestion");
1500
- var de_IngestionDestination = /* @__PURE__ */ __name((output, context) => {
1501
- return (0, import_smithy_client.take)(output, {
1502
- arn: import_smithy_client.expectString,
1503
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1504
- destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "destinationConfiguration"),
1505
- ingestionArn: import_smithy_client.expectString,
1506
- processingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "processingConfiguration"),
1507
- status: import_smithy_client.expectString,
1508
- statusReason: import_smithy_client.expectString,
1509
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")
1510
- });
1511
- }, "de_IngestionDestination");
1512
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1513
- httpStatusCode: output.statusCode,
1514
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1515
- extendedRequestId: output.headers["x-amz-id-2"],
1516
- cfId: output.headers["x-amz-cf-id"]
1517
- }), "deserializeMetadata");
1518
- var _mR = "maxResults";
1519
- var _nT = "nextToken";
1520
- var _rAS = "retryAfterSeconds";
1521
- var _ra = "retry-after";
1522
- var _tK = "tagKeys";
1523
-
1524
- // src/commands/BatchGetUserAccessTasksCommand.ts
1525
- var BatchGetUserAccessTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1526
- return [
1527
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1528
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1529
- ];
1530
- }).s("FabricFrontEndService", "BatchGetUserAccessTasks", {}).n("AppFabricClient", "BatchGetUserAccessTasksCommand").f(void 0, BatchGetUserAccessTasksResponseFilterSensitiveLog).ser(se_BatchGetUserAccessTasksCommand).de(de_BatchGetUserAccessTasksCommand).build() {
1531
- static {
1532
- __name(this, "BatchGetUserAccessTasksCommand");
1533
- }
141
+ const AppAuthorizationStatus = {
142
+ CONNECTED: "Connected",
143
+ CONNECTION_VALIDATION_FAILED: "ConnectionValidationFailed",
144
+ PENDING_CONNECT: "PendingConnect",
145
+ TOKEN_AUTO_ROTATION_FAILED: "TokenAutoRotationFailed",
1534
146
  };
1535
-
1536
- // src/commands/ConnectAppAuthorizationCommand.ts
1537
-
1538
-
1539
-
1540
- var ConnectAppAuthorizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1541
- return [
1542
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1543
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1544
- ];
1545
- }).s("FabricFrontEndService", "ConnectAppAuthorization", {}).n("AppFabricClient", "ConnectAppAuthorizationCommand").f(ConnectAppAuthorizationRequestFilterSensitiveLog, void 0).ser(se_ConnectAppAuthorizationCommand).de(de_ConnectAppAuthorizationCommand).build() {
1546
- static {
1547
- __name(this, "ConnectAppAuthorizationCommand");
1548
- }
147
+ exports.Destination = void 0;
148
+ (function (Destination) {
149
+ Destination.visit = (value, visitor) => {
150
+ if (value.s3Bucket !== undefined)
151
+ return visitor.s3Bucket(value.s3Bucket);
152
+ if (value.firehoseStream !== undefined)
153
+ return visitor.firehoseStream(value.firehoseStream);
154
+ return visitor._(value.$unknown[0], value.$unknown[1]);
155
+ };
156
+ })(exports.Destination || (exports.Destination = {}));
157
+ const Format = {
158
+ JSON: "json",
159
+ PARQUET: "parquet",
1549
160
  };
1550
-
1551
- // src/commands/CreateAppAuthorizationCommand.ts
1552
-
1553
-
1554
-
1555
- var CreateAppAuthorizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1556
- return [
1557
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1558
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1559
- ];
1560
- }).s("FabricFrontEndService", "CreateAppAuthorization", {}).n("AppFabricClient", "CreateAppAuthorizationCommand").f(CreateAppAuthorizationRequestFilterSensitiveLog, void 0).ser(se_CreateAppAuthorizationCommand).de(de_CreateAppAuthorizationCommand).build() {
1561
- static {
1562
- __name(this, "CreateAppAuthorizationCommand");
1563
- }
161
+ const Schema = {
162
+ OCSF: "ocsf",
163
+ RAW: "raw",
1564
164
  };
1565
-
1566
- // src/commands/CreateAppBundleCommand.ts
1567
-
1568
-
1569
-
1570
- var CreateAppBundleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1571
- return [
1572
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1573
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1574
- ];
1575
- }).s("FabricFrontEndService", "CreateAppBundle", {}).n("AppFabricClient", "CreateAppBundleCommand").f(void 0, void 0).ser(se_CreateAppBundleCommand).de(de_CreateAppBundleCommand).build() {
1576
- static {
1577
- __name(this, "CreateAppBundleCommand");
1578
- }
165
+ const ResultStatus = {
166
+ COMPLETED: "COMPLETED",
167
+ EXPIRED: "EXPIRED",
168
+ FAILED: "FAILED",
169
+ IN_PROGRESS: "IN_PROGRESS",
1579
170
  };
1580
-
1581
- // src/commands/CreateIngestionCommand.ts
1582
-
1583
-
1584
-
1585
- var CreateIngestionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1586
- return [
1587
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1588
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1589
- ];
1590
- }).s("FabricFrontEndService", "CreateIngestion", {}).n("AppFabricClient", "CreateIngestionCommand").f(void 0, void 0).ser(se_CreateIngestionCommand).de(de_CreateIngestionCommand).build() {
1591
- static {
1592
- __name(this, "CreateIngestionCommand");
1593
- }
171
+ class InternalServerException extends AppFabricServiceException {
172
+ name = "InternalServerException";
173
+ $fault = "server";
174
+ $retryable = {};
175
+ retryAfterSeconds;
176
+ constructor(opts) {
177
+ super({
178
+ name: "InternalServerException",
179
+ $fault: "server",
180
+ ...opts,
181
+ });
182
+ Object.setPrototypeOf(this, InternalServerException.prototype);
183
+ this.retryAfterSeconds = opts.retryAfterSeconds;
184
+ }
185
+ }
186
+ class ResourceNotFoundException extends AppFabricServiceException {
187
+ name = "ResourceNotFoundException";
188
+ $fault = "client";
189
+ resourceId;
190
+ resourceType;
191
+ constructor(opts) {
192
+ super({
193
+ name: "ResourceNotFoundException",
194
+ $fault: "client",
195
+ ...opts,
196
+ });
197
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
198
+ this.resourceId = opts.resourceId;
199
+ this.resourceType = opts.resourceType;
200
+ }
201
+ }
202
+ class ThrottlingException extends AppFabricServiceException {
203
+ name = "ThrottlingException";
204
+ $fault = "client";
205
+ $retryable = {
206
+ throttling: true,
207
+ };
208
+ serviceCode;
209
+ quotaCode;
210
+ retryAfterSeconds;
211
+ constructor(opts) {
212
+ super({
213
+ name: "ThrottlingException",
214
+ $fault: "client",
215
+ ...opts,
216
+ });
217
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
218
+ this.serviceCode = opts.serviceCode;
219
+ this.quotaCode = opts.quotaCode;
220
+ this.retryAfterSeconds = opts.retryAfterSeconds;
221
+ }
222
+ }
223
+ const ValidationExceptionReason = {
224
+ CANNOT_PARSE: "cannotParse",
225
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
226
+ OTHER: "other",
227
+ UNKNOWN_OPERATION: "unknownOperation",
1594
228
  };
1595
-
1596
- // src/commands/CreateIngestionDestinationCommand.ts
1597
-
1598
-
1599
-
1600
- var CreateIngestionDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1601
- return [
1602
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1603
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1604
- ];
1605
- }).s("FabricFrontEndService", "CreateIngestionDestination", {}).n("AppFabricClient", "CreateIngestionDestinationCommand").f(void 0, void 0).ser(se_CreateIngestionDestinationCommand).de(de_CreateIngestionDestinationCommand).build() {
1606
- static {
1607
- __name(this, "CreateIngestionDestinationCommand");
1608
- }
229
+ class ValidationException extends AppFabricServiceException {
230
+ name = "ValidationException";
231
+ $fault = "client";
232
+ reason;
233
+ fieldList;
234
+ constructor(opts) {
235
+ super({
236
+ name: "ValidationException",
237
+ $fault: "client",
238
+ ...opts,
239
+ });
240
+ Object.setPrototypeOf(this, ValidationException.prototype);
241
+ this.reason = opts.reason;
242
+ this.fieldList = opts.fieldList;
243
+ }
244
+ }
245
+ class ConflictException extends AppFabricServiceException {
246
+ name = "ConflictException";
247
+ $fault = "client";
248
+ resourceId;
249
+ resourceType;
250
+ constructor(opts) {
251
+ super({
252
+ name: "ConflictException",
253
+ $fault: "client",
254
+ ...opts,
255
+ });
256
+ Object.setPrototypeOf(this, ConflictException.prototype);
257
+ this.resourceId = opts.resourceId;
258
+ this.resourceType = opts.resourceType;
259
+ }
260
+ }
261
+ exports.Credential = void 0;
262
+ (function (Credential) {
263
+ Credential.visit = (value, visitor) => {
264
+ if (value.oauth2Credential !== undefined)
265
+ return visitor.oauth2Credential(value.oauth2Credential);
266
+ if (value.apiKeyCredential !== undefined)
267
+ return visitor.apiKeyCredential(value.apiKeyCredential);
268
+ return visitor._(value.$unknown[0], value.$unknown[1]);
269
+ };
270
+ })(exports.Credential || (exports.Credential = {}));
271
+ class ServiceQuotaExceededException extends AppFabricServiceException {
272
+ name = "ServiceQuotaExceededException";
273
+ $fault = "client";
274
+ resourceId;
275
+ resourceType;
276
+ serviceCode;
277
+ quotaCode;
278
+ constructor(opts) {
279
+ super({
280
+ name: "ServiceQuotaExceededException",
281
+ $fault: "client",
282
+ ...opts,
283
+ });
284
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
285
+ this.resourceId = opts.resourceId;
286
+ this.resourceType = opts.resourceType;
287
+ this.serviceCode = opts.serviceCode;
288
+ this.quotaCode = opts.quotaCode;
289
+ }
290
+ }
291
+ const IngestionType = {
292
+ AUDIT_LOG: "auditLog",
1609
293
  };
1610
-
1611
- // src/commands/DeleteAppAuthorizationCommand.ts
1612
-
1613
-
1614
-
1615
- var DeleteAppAuthorizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1616
- return [
1617
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1618
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1619
- ];
1620
- }).s("FabricFrontEndService", "DeleteAppAuthorization", {}).n("AppFabricClient", "DeleteAppAuthorizationCommand").f(void 0, void 0).ser(se_DeleteAppAuthorizationCommand).de(de_DeleteAppAuthorizationCommand).build() {
1621
- static {
1622
- __name(this, "DeleteAppAuthorizationCommand");
1623
- }
294
+ const IngestionState = {
295
+ DISABLED: "disabled",
296
+ ENABLED: "enabled",
1624
297
  };
1625
-
1626
- // src/commands/DeleteAppBundleCommand.ts
1627
-
1628
-
1629
-
1630
- var DeleteAppBundleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1631
- return [
1632
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1633
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1634
- ];
1635
- }).s("FabricFrontEndService", "DeleteAppBundle", {}).n("AppFabricClient", "DeleteAppBundleCommand").f(void 0, void 0).ser(se_DeleteAppBundleCommand).de(de_DeleteAppBundleCommand).build() {
1636
- static {
1637
- __name(this, "DeleteAppBundleCommand");
1638
- }
298
+ exports.DestinationConfiguration = void 0;
299
+ (function (DestinationConfiguration) {
300
+ DestinationConfiguration.visit = (value, visitor) => {
301
+ if (value.auditLog !== undefined)
302
+ return visitor.auditLog(value.auditLog);
303
+ return visitor._(value.$unknown[0], value.$unknown[1]);
304
+ };
305
+ })(exports.DestinationConfiguration || (exports.DestinationConfiguration = {}));
306
+ exports.ProcessingConfiguration = void 0;
307
+ (function (ProcessingConfiguration) {
308
+ ProcessingConfiguration.visit = (value, visitor) => {
309
+ if (value.auditLog !== undefined)
310
+ return visitor.auditLog(value.auditLog);
311
+ return visitor._(value.$unknown[0], value.$unknown[1]);
312
+ };
313
+ })(exports.ProcessingConfiguration || (exports.ProcessingConfiguration = {}));
314
+ const IngestionDestinationStatus = {
315
+ ACTIVE: "Active",
316
+ FAILED: "Failed",
1639
317
  };
1640
-
1641
- // src/commands/DeleteIngestionCommand.ts
1642
-
1643
-
1644
-
1645
- var DeleteIngestionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1646
- return [
1647
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1648
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1649
- ];
1650
- }).s("FabricFrontEndService", "DeleteIngestion", {}).n("AppFabricClient", "DeleteIngestionCommand").f(void 0, void 0).ser(se_DeleteIngestionCommand).de(de_DeleteIngestionCommand).build() {
1651
- static {
1652
- __name(this, "DeleteIngestionCommand");
1653
- }
318
+ const ApiKeyCredentialFilterSensitiveLog = (obj) => ({
319
+ ...obj,
320
+ ...(obj.apiKey && { apiKey: smithyClient.SENSITIVE_STRING }),
321
+ });
322
+ const AuthRequestFilterSensitiveLog = (obj) => ({
323
+ ...obj,
324
+ ...(obj.code && { code: smithyClient.SENSITIVE_STRING }),
325
+ });
326
+ const UserAccessResultItemFilterSensitiveLog = (obj) => ({
327
+ ...obj,
328
+ ...(obj.email && { email: smithyClient.SENSITIVE_STRING }),
329
+ ...(obj.userId && { userId: smithyClient.SENSITIVE_STRING }),
330
+ ...(obj.userFullName && { userFullName: smithyClient.SENSITIVE_STRING }),
331
+ ...(obj.userFirstName && { userFirstName: smithyClient.SENSITIVE_STRING }),
332
+ ...(obj.userLastName && { userLastName: smithyClient.SENSITIVE_STRING }),
333
+ });
334
+ const BatchGetUserAccessTasksResponseFilterSensitiveLog = (obj) => ({
335
+ ...obj,
336
+ ...(obj.userAccessResultsList && {
337
+ userAccessResultsList: obj.userAccessResultsList.map((item) => UserAccessResultItemFilterSensitiveLog(item)),
338
+ }),
339
+ });
340
+ const ConnectAppAuthorizationRequestFilterSensitiveLog = (obj) => ({
341
+ ...obj,
342
+ ...(obj.authRequest && { authRequest: AuthRequestFilterSensitiveLog(obj.authRequest) }),
343
+ });
344
+ const Oauth2CredentialFilterSensitiveLog = (obj) => ({
345
+ ...obj,
346
+ ...(obj.clientSecret && { clientSecret: smithyClient.SENSITIVE_STRING }),
347
+ });
348
+ const CredentialFilterSensitiveLog = (obj) => {
349
+ if (obj.oauth2Credential !== undefined)
350
+ return { oauth2Credential: Oauth2CredentialFilterSensitiveLog(obj.oauth2Credential) };
351
+ if (obj.apiKeyCredential !== undefined)
352
+ return { apiKeyCredential: ApiKeyCredentialFilterSensitiveLog(obj.apiKeyCredential) };
353
+ if (obj.$unknown !== undefined)
354
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1654
355
  };
356
+ const CreateAppAuthorizationRequestFilterSensitiveLog = (obj) => ({
357
+ ...obj,
358
+ ...(obj.credential && { credential: CredentialFilterSensitiveLog(obj.credential) }),
359
+ });
360
+ const StartUserAccessTasksRequestFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ ...(obj.email && { email: smithyClient.SENSITIVE_STRING }),
363
+ });
364
+ const UpdateAppAuthorizationRequestFilterSensitiveLog = (obj) => ({
365
+ ...obj,
366
+ ...(obj.credential && { credential: CredentialFilterSensitiveLog(obj.credential) }),
367
+ });
1655
368
 
1656
- // src/commands/DeleteIngestionDestinationCommand.ts
1657
-
1658
-
1659
-
1660
- var DeleteIngestionDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1661
- return [
1662
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1663
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1664
- ];
1665
- }).s("FabricFrontEndService", "DeleteIngestionDestination", {}).n("AppFabricClient", "DeleteIngestionDestinationCommand").f(void 0, void 0).ser(se_DeleteIngestionDestinationCommand).de(de_DeleteIngestionDestinationCommand).build() {
1666
- static {
1667
- __name(this, "DeleteIngestionDestinationCommand");
1668
- }
369
+ const se_BatchGetUserAccessTasksCommand = async (input, context) => {
370
+ const b = core.requestBuilder(input, context);
371
+ const headers = {
372
+ "content-type": "application/json",
373
+ };
374
+ b.bp("/useraccess/batchget");
375
+ let body;
376
+ body = JSON.stringify(smithyClient.take(input, {
377
+ appBundleIdentifier: [],
378
+ taskIdList: (_) => smithyClient._json(_),
379
+ }));
380
+ b.m("POST").h(headers).b(body);
381
+ return b.build();
1669
382
  };
1670
-
1671
- // src/commands/GetAppAuthorizationCommand.ts
1672
-
1673
-
1674
-
1675
- var GetAppAuthorizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1676
- return [
1677
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1678
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1679
- ];
1680
- }).s("FabricFrontEndService", "GetAppAuthorization", {}).n("AppFabricClient", "GetAppAuthorizationCommand").f(void 0, void 0).ser(se_GetAppAuthorizationCommand).de(de_GetAppAuthorizationCommand).build() {
1681
- static {
1682
- __name(this, "GetAppAuthorizationCommand");
1683
- }
383
+ const se_ConnectAppAuthorizationCommand = async (input, context) => {
384
+ const b = core.requestBuilder(input, context);
385
+ const headers = {
386
+ "content-type": "application/json",
387
+ };
388
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect");
389
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
390
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
391
+ let body;
392
+ body = JSON.stringify(smithyClient.take(input, {
393
+ authRequest: (_) => smithyClient._json(_),
394
+ }));
395
+ b.m("POST").h(headers).b(body);
396
+ return b.build();
1684
397
  };
1685
-
1686
- // src/commands/GetAppBundleCommand.ts
1687
-
1688
-
1689
-
1690
- var GetAppBundleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1691
- return [
1692
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1693
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1694
- ];
1695
- }).s("FabricFrontEndService", "GetAppBundle", {}).n("AppFabricClient", "GetAppBundleCommand").f(void 0, void 0).ser(se_GetAppBundleCommand).de(de_GetAppBundleCommand).build() {
1696
- static {
1697
- __name(this, "GetAppBundleCommand");
1698
- }
398
+ const se_CreateAppAuthorizationCommand = async (input, context) => {
399
+ const b = core.requestBuilder(input, context);
400
+ const headers = {
401
+ "content-type": "application/json",
402
+ };
403
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
404
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
405
+ let body;
406
+ body = JSON.stringify(smithyClient.take(input, {
407
+ app: [],
408
+ authType: [],
409
+ clientToken: [true, (_) => _ ?? uuid.v4()],
410
+ credential: (_) => smithyClient._json(_),
411
+ tags: (_) => smithyClient._json(_),
412
+ tenant: (_) => smithyClient._json(_),
413
+ }));
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
1699
416
  };
1700
-
1701
- // src/commands/GetIngestionCommand.ts
1702
-
1703
-
1704
-
1705
- var GetIngestionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1706
- return [
1707
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1708
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1709
- ];
1710
- }).s("FabricFrontEndService", "GetIngestion", {}).n("AppFabricClient", "GetIngestionCommand").f(void 0, void 0).ser(se_GetIngestionCommand).de(de_GetIngestionCommand).build() {
1711
- static {
1712
- __name(this, "GetIngestionCommand");
1713
- }
417
+ const se_CreateAppBundleCommand = async (input, context) => {
418
+ const b = core.requestBuilder(input, context);
419
+ const headers = {
420
+ "content-type": "application/json",
421
+ };
422
+ b.bp("/appbundles");
423
+ let body;
424
+ body = JSON.stringify(smithyClient.take(input, {
425
+ clientToken: [true, (_) => _ ?? uuid.v4()],
426
+ customerManagedKeyIdentifier: [],
427
+ tags: (_) => smithyClient._json(_),
428
+ }));
429
+ b.m("POST").h(headers).b(body);
430
+ return b.build();
1714
431
  };
1715
-
1716
- // src/commands/GetIngestionDestinationCommand.ts
1717
-
1718
-
1719
-
1720
- var GetIngestionDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1721
- return [
1722
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1723
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1724
- ];
1725
- }).s("FabricFrontEndService", "GetIngestionDestination", {}).n("AppFabricClient", "GetIngestionDestinationCommand").f(void 0, void 0).ser(se_GetIngestionDestinationCommand).de(de_GetIngestionDestinationCommand).build() {
1726
- static {
1727
- __name(this, "GetIngestionDestinationCommand");
1728
- }
432
+ const se_CreateIngestionCommand = async (input, context) => {
433
+ const b = core.requestBuilder(input, context);
434
+ const headers = {
435
+ "content-type": "application/json",
436
+ };
437
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions");
438
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
439
+ let body;
440
+ body = JSON.stringify(smithyClient.take(input, {
441
+ app: [],
442
+ clientToken: [true, (_) => _ ?? uuid.v4()],
443
+ ingestionType: [],
444
+ tags: (_) => smithyClient._json(_),
445
+ tenantId: [],
446
+ }));
447
+ b.m("POST").h(headers).b(body);
448
+ return b.build();
1729
449
  };
1730
-
1731
- // src/commands/ListAppAuthorizationsCommand.ts
1732
-
1733
-
1734
-
1735
- var ListAppAuthorizationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1736
- return [
1737
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1738
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1739
- ];
1740
- }).s("FabricFrontEndService", "ListAppAuthorizations", {}).n("AppFabricClient", "ListAppAuthorizationsCommand").f(void 0, void 0).ser(se_ListAppAuthorizationsCommand).de(de_ListAppAuthorizationsCommand).build() {
1741
- static {
1742
- __name(this, "ListAppAuthorizationsCommand");
1743
- }
450
+ const se_CreateIngestionDestinationCommand = async (input, context) => {
451
+ const b = core.requestBuilder(input, context);
452
+ const headers = {
453
+ "content-type": "application/json",
454
+ };
455
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
456
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
457
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
458
+ let body;
459
+ body = JSON.stringify(smithyClient.take(input, {
460
+ clientToken: [true, (_) => _ ?? uuid.v4()],
461
+ destinationConfiguration: (_) => smithyClient._json(_),
462
+ processingConfiguration: (_) => smithyClient._json(_),
463
+ tags: (_) => smithyClient._json(_),
464
+ }));
465
+ b.m("POST").h(headers).b(body);
466
+ return b.build();
1744
467
  };
1745
-
1746
- // src/commands/ListAppBundlesCommand.ts
1747
-
1748
-
1749
-
1750
- var ListAppBundlesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1751
- return [
1752
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1753
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1754
- ];
1755
- }).s("FabricFrontEndService", "ListAppBundles", {}).n("AppFabricClient", "ListAppBundlesCommand").f(void 0, void 0).ser(se_ListAppBundlesCommand).de(de_ListAppBundlesCommand).build() {
1756
- static {
1757
- __name(this, "ListAppBundlesCommand");
1758
- }
468
+ const se_DeleteAppAuthorizationCommand = async (input, context) => {
469
+ const b = core.requestBuilder(input, context);
470
+ const headers = {};
471
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
472
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
473
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
474
+ let body;
475
+ b.m("DELETE").h(headers).b(body);
476
+ return b.build();
1759
477
  };
1760
-
1761
- // src/commands/ListIngestionDestinationsCommand.ts
1762
-
1763
-
1764
-
1765
- var ListIngestionDestinationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1766
- return [
1767
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1768
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1769
- ];
1770
- }).s("FabricFrontEndService", "ListIngestionDestinations", {}).n("AppFabricClient", "ListIngestionDestinationsCommand").f(void 0, void 0).ser(se_ListIngestionDestinationsCommand).de(de_ListIngestionDestinationsCommand).build() {
1771
- static {
1772
- __name(this, "ListIngestionDestinationsCommand");
1773
- }
478
+ const se_DeleteAppBundleCommand = async (input, context) => {
479
+ const b = core.requestBuilder(input, context);
480
+ const headers = {};
481
+ b.bp("/appbundles/{appBundleIdentifier}");
482
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
483
+ let body;
484
+ b.m("DELETE").h(headers).b(body);
485
+ return b.build();
1774
486
  };
1775
-
1776
- // src/commands/ListIngestionsCommand.ts
1777
-
1778
-
1779
-
1780
- var ListIngestionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1781
- return [
1782
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1783
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1784
- ];
1785
- }).s("FabricFrontEndService", "ListIngestions", {}).n("AppFabricClient", "ListIngestionsCommand").f(void 0, void 0).ser(se_ListIngestionsCommand).de(de_ListIngestionsCommand).build() {
1786
- static {
1787
- __name(this, "ListIngestionsCommand");
1788
- }
487
+ const se_DeleteIngestionCommand = async (input, context) => {
488
+ const b = core.requestBuilder(input, context);
489
+ const headers = {};
490
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
491
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
492
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
493
+ let body;
494
+ b.m("DELETE").h(headers).b(body);
495
+ return b.build();
1789
496
  };
1790
-
1791
- // src/commands/ListTagsForResourceCommand.ts
1792
-
1793
-
1794
-
1795
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1796
- return [
1797
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1798
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1799
- ];
1800
- }).s("FabricFrontEndService", "ListTagsForResource", {}).n("AppFabricClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1801
- static {
1802
- __name(this, "ListTagsForResourceCommand");
1803
- }
497
+ const se_DeleteIngestionDestinationCommand = async (input, context) => {
498
+ const b = core.requestBuilder(input, context);
499
+ const headers = {};
500
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
501
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
502
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
503
+ b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
504
+ let body;
505
+ b.m("DELETE").h(headers).b(body);
506
+ return b.build();
1804
507
  };
1805
-
1806
- // src/commands/StartIngestionCommand.ts
1807
-
1808
-
1809
-
1810
- var StartIngestionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1811
- return [
1812
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1813
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1814
- ];
1815
- }).s("FabricFrontEndService", "StartIngestion", {}).n("AppFabricClient", "StartIngestionCommand").f(void 0, void 0).ser(se_StartIngestionCommand).de(de_StartIngestionCommand).build() {
1816
- static {
1817
- __name(this, "StartIngestionCommand");
1818
- }
508
+ const se_GetAppAuthorizationCommand = async (input, context) => {
509
+ const b = core.requestBuilder(input, context);
510
+ const headers = {};
511
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
512
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
513
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
514
+ let body;
515
+ b.m("GET").h(headers).b(body);
516
+ return b.build();
1819
517
  };
1820
-
1821
- // src/commands/StartUserAccessTasksCommand.ts
1822
-
1823
-
1824
-
1825
- var StartUserAccessTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1826
- return [
1827
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1828
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1829
- ];
1830
- }).s("FabricFrontEndService", "StartUserAccessTasks", {}).n("AppFabricClient", "StartUserAccessTasksCommand").f(StartUserAccessTasksRequestFilterSensitiveLog, void 0).ser(se_StartUserAccessTasksCommand).de(de_StartUserAccessTasksCommand).build() {
1831
- static {
1832
- __name(this, "StartUserAccessTasksCommand");
1833
- }
518
+ const se_GetAppBundleCommand = async (input, context) => {
519
+ const b = core.requestBuilder(input, context);
520
+ const headers = {};
521
+ b.bp("/appbundles/{appBundleIdentifier}");
522
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
523
+ let body;
524
+ b.m("GET").h(headers).b(body);
525
+ return b.build();
1834
526
  };
1835
-
1836
- // src/commands/StopIngestionCommand.ts
1837
-
1838
-
1839
-
1840
- var StopIngestionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1841
- return [
1842
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1843
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1844
- ];
1845
- }).s("FabricFrontEndService", "StopIngestion", {}).n("AppFabricClient", "StopIngestionCommand").f(void 0, void 0).ser(se_StopIngestionCommand).de(de_StopIngestionCommand).build() {
1846
- static {
1847
- __name(this, "StopIngestionCommand");
1848
- }
527
+ const se_GetIngestionCommand = async (input, context) => {
528
+ const b = core.requestBuilder(input, context);
529
+ const headers = {};
530
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
531
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
532
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
533
+ let body;
534
+ b.m("GET").h(headers).b(body);
535
+ return b.build();
1849
536
  };
1850
-
1851
- // src/commands/TagResourceCommand.ts
1852
-
1853
-
1854
-
1855
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1856
- return [
1857
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1858
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1859
- ];
1860
- }).s("FabricFrontEndService", "TagResource", {}).n("AppFabricClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1861
- static {
1862
- __name(this, "TagResourceCommand");
1863
- }
537
+ const se_GetIngestionDestinationCommand = async (input, context) => {
538
+ const b = core.requestBuilder(input, context);
539
+ const headers = {};
540
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
541
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
542
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
543
+ b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
544
+ let body;
545
+ b.m("GET").h(headers).b(body);
546
+ return b.build();
1864
547
  };
1865
-
1866
- // src/commands/UntagResourceCommand.ts
1867
-
1868
-
1869
-
1870
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1871
- return [
1872
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1873
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1874
- ];
1875
- }).s("FabricFrontEndService", "UntagResource", {}).n("AppFabricClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1876
- static {
1877
- __name(this, "UntagResourceCommand");
1878
- }
548
+ const se_ListAppAuthorizationsCommand = async (input, context) => {
549
+ const b = core.requestBuilder(input, context);
550
+ const headers = {};
551
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
552
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
553
+ const query = smithyClient.map({
554
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
555
+ [_nT]: [, input[_nT]],
556
+ });
557
+ let body;
558
+ b.m("GET").h(headers).q(query).b(body);
559
+ return b.build();
1879
560
  };
1880
-
1881
- // src/commands/UpdateAppAuthorizationCommand.ts
1882
-
1883
-
1884
-
1885
- var UpdateAppAuthorizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1886
- return [
1887
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1888
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1889
- ];
1890
- }).s("FabricFrontEndService", "UpdateAppAuthorization", {}).n("AppFabricClient", "UpdateAppAuthorizationCommand").f(UpdateAppAuthorizationRequestFilterSensitiveLog, void 0).ser(se_UpdateAppAuthorizationCommand).de(de_UpdateAppAuthorizationCommand).build() {
1891
- static {
1892
- __name(this, "UpdateAppAuthorizationCommand");
1893
- }
561
+ const se_ListAppBundlesCommand = async (input, context) => {
562
+ const b = core.requestBuilder(input, context);
563
+ const headers = {};
564
+ b.bp("/appbundles");
565
+ const query = smithyClient.map({
566
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
567
+ [_nT]: [, input[_nT]],
568
+ });
569
+ let body;
570
+ b.m("GET").h(headers).q(query).b(body);
571
+ return b.build();
1894
572
  };
1895
-
1896
- // src/commands/UpdateIngestionDestinationCommand.ts
1897
-
1898
-
1899
-
1900
- var UpdateIngestionDestinationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1901
- return [
1902
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1903
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1904
- ];
1905
- }).s("FabricFrontEndService", "UpdateIngestionDestination", {}).n("AppFabricClient", "UpdateIngestionDestinationCommand").f(void 0, void 0).ser(se_UpdateIngestionDestinationCommand).de(de_UpdateIngestionDestinationCommand).build() {
1906
- static {
1907
- __name(this, "UpdateIngestionDestinationCommand");
1908
- }
573
+ const se_ListIngestionDestinationsCommand = async (input, context) => {
574
+ const b = core.requestBuilder(input, context);
575
+ const headers = {};
576
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
577
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
578
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
579
+ const query = smithyClient.map({
580
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
581
+ [_nT]: [, input[_nT]],
582
+ });
583
+ let body;
584
+ b.m("GET").h(headers).q(query).b(body);
585
+ return b.build();
1909
586
  };
587
+ const se_ListIngestionsCommand = async (input, context) => {
588
+ const b = core.requestBuilder(input, context);
589
+ const headers = {};
590
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions");
591
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
592
+ const query = smithyClient.map({
593
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
594
+ [_nT]: [, input[_nT]],
595
+ });
596
+ let body;
597
+ b.m("GET").h(headers).q(query).b(body);
598
+ return b.build();
599
+ };
600
+ const se_ListTagsForResourceCommand = async (input, context) => {
601
+ const b = core.requestBuilder(input, context);
602
+ const headers = {};
603
+ b.bp("/tags/{resourceArn}");
604
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
605
+ let body;
606
+ b.m("GET").h(headers).b(body);
607
+ return b.build();
608
+ };
609
+ const se_StartIngestionCommand = async (input, context) => {
610
+ const b = core.requestBuilder(input, context);
611
+ const headers = {};
612
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start");
613
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
614
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
615
+ let body;
616
+ b.m("POST").h(headers).b(body);
617
+ return b.build();
618
+ };
619
+ const se_StartUserAccessTasksCommand = async (input, context) => {
620
+ const b = core.requestBuilder(input, context);
621
+ const headers = {
622
+ "content-type": "application/json",
623
+ };
624
+ b.bp("/useraccess/start");
625
+ let body;
626
+ body = JSON.stringify(smithyClient.take(input, {
627
+ appBundleIdentifier: [],
628
+ email: [],
629
+ }));
630
+ b.m("POST").h(headers).b(body);
631
+ return b.build();
632
+ };
633
+ const se_StopIngestionCommand = async (input, context) => {
634
+ const b = core.requestBuilder(input, context);
635
+ const headers = {};
636
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop");
637
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
638
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
639
+ let body;
640
+ b.m("POST").h(headers).b(body);
641
+ return b.build();
642
+ };
643
+ const se_TagResourceCommand = async (input, context) => {
644
+ const b = core.requestBuilder(input, context);
645
+ const headers = {
646
+ "content-type": "application/json",
647
+ };
648
+ b.bp("/tags/{resourceArn}");
649
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
650
+ let body;
651
+ body = JSON.stringify(smithyClient.take(input, {
652
+ tags: (_) => smithyClient._json(_),
653
+ }));
654
+ b.m("POST").h(headers).b(body);
655
+ return b.build();
656
+ };
657
+ const se_UntagResourceCommand = async (input, context) => {
658
+ const b = core.requestBuilder(input, context);
659
+ const headers = {};
660
+ b.bp("/tags/{resourceArn}");
661
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
662
+ const query = smithyClient.map({
663
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
664
+ });
665
+ let body;
666
+ b.m("DELETE").h(headers).q(query).b(body);
667
+ return b.build();
668
+ };
669
+ const se_UpdateAppAuthorizationCommand = async (input, context) => {
670
+ const b = core.requestBuilder(input, context);
671
+ const headers = {
672
+ "content-type": "application/json",
673
+ };
674
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
675
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
676
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
677
+ let body;
678
+ body = JSON.stringify(smithyClient.take(input, {
679
+ credential: (_) => smithyClient._json(_),
680
+ tenant: (_) => smithyClient._json(_),
681
+ }));
682
+ b.m("PATCH").h(headers).b(body);
683
+ return b.build();
684
+ };
685
+ const se_UpdateIngestionDestinationCommand = async (input, context) => {
686
+ const b = core.requestBuilder(input, context);
687
+ const headers = {
688
+ "content-type": "application/json",
689
+ };
690
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
691
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
692
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
693
+ b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
694
+ let body;
695
+ body = JSON.stringify(smithyClient.take(input, {
696
+ destinationConfiguration: (_) => smithyClient._json(_),
697
+ }));
698
+ b.m("PATCH").h(headers).b(body);
699
+ return b.build();
700
+ };
701
+ const de_BatchGetUserAccessTasksCommand = async (output, context) => {
702
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
703
+ return de_CommandError(output, context);
704
+ }
705
+ const contents = smithyClient.map({
706
+ $metadata: deserializeMetadata(output),
707
+ });
708
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
709
+ const doc = smithyClient.take(data, {
710
+ userAccessResultsList: smithyClient._json,
711
+ });
712
+ Object.assign(contents, doc);
713
+ return contents;
714
+ };
715
+ const de_ConnectAppAuthorizationCommand = async (output, context) => {
716
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
717
+ return de_CommandError(output, context);
718
+ }
719
+ const contents = smithyClient.map({
720
+ $metadata: deserializeMetadata(output),
721
+ });
722
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
723
+ const doc = smithyClient.take(data, {
724
+ appAuthorizationSummary: (_) => de_AppAuthorizationSummary(_),
725
+ });
726
+ Object.assign(contents, doc);
727
+ return contents;
728
+ };
729
+ const de_CreateAppAuthorizationCommand = async (output, context) => {
730
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
731
+ return de_CommandError(output, context);
732
+ }
733
+ const contents = smithyClient.map({
734
+ $metadata: deserializeMetadata(output),
735
+ });
736
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
737
+ const doc = smithyClient.take(data, {
738
+ appAuthorization: (_) => de_AppAuthorization(_),
739
+ });
740
+ Object.assign(contents, doc);
741
+ return contents;
742
+ };
743
+ const de_CreateAppBundleCommand = async (output, context) => {
744
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
745
+ return de_CommandError(output, context);
746
+ }
747
+ const contents = smithyClient.map({
748
+ $metadata: deserializeMetadata(output),
749
+ });
750
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
751
+ const doc = smithyClient.take(data, {
752
+ appBundle: smithyClient._json,
753
+ });
754
+ Object.assign(contents, doc);
755
+ return contents;
756
+ };
757
+ const de_CreateIngestionCommand = async (output, context) => {
758
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
759
+ return de_CommandError(output, context);
760
+ }
761
+ const contents = smithyClient.map({
762
+ $metadata: deserializeMetadata(output),
763
+ });
764
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
765
+ const doc = smithyClient.take(data, {
766
+ ingestion: (_) => de_Ingestion(_),
767
+ });
768
+ Object.assign(contents, doc);
769
+ return contents;
770
+ };
771
+ const de_CreateIngestionDestinationCommand = async (output, context) => {
772
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
773
+ return de_CommandError(output, context);
774
+ }
775
+ const contents = smithyClient.map({
776
+ $metadata: deserializeMetadata(output),
777
+ });
778
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
779
+ const doc = smithyClient.take(data, {
780
+ ingestionDestination: (_) => de_IngestionDestination(_),
781
+ });
782
+ Object.assign(contents, doc);
783
+ return contents;
784
+ };
785
+ const de_DeleteAppAuthorizationCommand = async (output, context) => {
786
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
787
+ return de_CommandError(output, context);
788
+ }
789
+ const contents = smithyClient.map({
790
+ $metadata: deserializeMetadata(output),
791
+ });
792
+ await smithyClient.collectBody(output.body, context);
793
+ return contents;
794
+ };
795
+ const de_DeleteAppBundleCommand = async (output, context) => {
796
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
797
+ return de_CommandError(output, context);
798
+ }
799
+ const contents = smithyClient.map({
800
+ $metadata: deserializeMetadata(output),
801
+ });
802
+ await smithyClient.collectBody(output.body, context);
803
+ return contents;
804
+ };
805
+ const de_DeleteIngestionCommand = async (output, context) => {
806
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
807
+ return de_CommandError(output, context);
808
+ }
809
+ const contents = smithyClient.map({
810
+ $metadata: deserializeMetadata(output),
811
+ });
812
+ await smithyClient.collectBody(output.body, context);
813
+ return contents;
814
+ };
815
+ const de_DeleteIngestionDestinationCommand = async (output, context) => {
816
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
817
+ return de_CommandError(output, context);
818
+ }
819
+ const contents = smithyClient.map({
820
+ $metadata: deserializeMetadata(output),
821
+ });
822
+ await smithyClient.collectBody(output.body, context);
823
+ return contents;
824
+ };
825
+ const de_GetAppAuthorizationCommand = async (output, context) => {
826
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
827
+ return de_CommandError(output, context);
828
+ }
829
+ const contents = smithyClient.map({
830
+ $metadata: deserializeMetadata(output),
831
+ });
832
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
833
+ const doc = smithyClient.take(data, {
834
+ appAuthorization: (_) => de_AppAuthorization(_),
835
+ });
836
+ Object.assign(contents, doc);
837
+ return contents;
838
+ };
839
+ const de_GetAppBundleCommand = async (output, context) => {
840
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
841
+ return de_CommandError(output, context);
842
+ }
843
+ const contents = smithyClient.map({
844
+ $metadata: deserializeMetadata(output),
845
+ });
846
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
847
+ const doc = smithyClient.take(data, {
848
+ appBundle: smithyClient._json,
849
+ });
850
+ Object.assign(contents, doc);
851
+ return contents;
852
+ };
853
+ const de_GetIngestionCommand = async (output, context) => {
854
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
855
+ return de_CommandError(output, context);
856
+ }
857
+ const contents = smithyClient.map({
858
+ $metadata: deserializeMetadata(output),
859
+ });
860
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
861
+ const doc = smithyClient.take(data, {
862
+ ingestion: (_) => de_Ingestion(_),
863
+ });
864
+ Object.assign(contents, doc);
865
+ return contents;
866
+ };
867
+ const de_GetIngestionDestinationCommand = async (output, context) => {
868
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
869
+ return de_CommandError(output, context);
870
+ }
871
+ const contents = smithyClient.map({
872
+ $metadata: deserializeMetadata(output),
873
+ });
874
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
875
+ const doc = smithyClient.take(data, {
876
+ ingestionDestination: (_) => de_IngestionDestination(_),
877
+ });
878
+ Object.assign(contents, doc);
879
+ return contents;
880
+ };
881
+ const de_ListAppAuthorizationsCommand = async (output, context) => {
882
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
883
+ return de_CommandError(output, context);
884
+ }
885
+ const contents = smithyClient.map({
886
+ $metadata: deserializeMetadata(output),
887
+ });
888
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
889
+ const doc = smithyClient.take(data, {
890
+ appAuthorizationSummaryList: (_) => de_AppAuthorizationSummaryList(_),
891
+ nextToken: smithyClient.expectString,
892
+ });
893
+ Object.assign(contents, doc);
894
+ return contents;
895
+ };
896
+ const de_ListAppBundlesCommand = async (output, context) => {
897
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
898
+ return de_CommandError(output, context);
899
+ }
900
+ const contents = smithyClient.map({
901
+ $metadata: deserializeMetadata(output),
902
+ });
903
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
904
+ const doc = smithyClient.take(data, {
905
+ appBundleSummaryList: smithyClient._json,
906
+ nextToken: smithyClient.expectString,
907
+ });
908
+ Object.assign(contents, doc);
909
+ return contents;
910
+ };
911
+ const de_ListIngestionDestinationsCommand = async (output, context) => {
912
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
913
+ return de_CommandError(output, context);
914
+ }
915
+ const contents = smithyClient.map({
916
+ $metadata: deserializeMetadata(output),
917
+ });
918
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
919
+ const doc = smithyClient.take(data, {
920
+ ingestionDestinations: smithyClient._json,
921
+ nextToken: smithyClient.expectString,
922
+ });
923
+ Object.assign(contents, doc);
924
+ return contents;
925
+ };
926
+ const de_ListIngestionsCommand = async (output, context) => {
927
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
928
+ return de_CommandError(output, context);
929
+ }
930
+ const contents = smithyClient.map({
931
+ $metadata: deserializeMetadata(output),
932
+ });
933
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
934
+ const doc = smithyClient.take(data, {
935
+ ingestions: smithyClient._json,
936
+ nextToken: smithyClient.expectString,
937
+ });
938
+ Object.assign(contents, doc);
939
+ return contents;
940
+ };
941
+ const de_ListTagsForResourceCommand = async (output, context) => {
942
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
943
+ return de_CommandError(output, context);
944
+ }
945
+ const contents = smithyClient.map({
946
+ $metadata: deserializeMetadata(output),
947
+ });
948
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
949
+ const doc = smithyClient.take(data, {
950
+ tags: smithyClient._json,
951
+ });
952
+ Object.assign(contents, doc);
953
+ return contents;
954
+ };
955
+ const de_StartIngestionCommand = async (output, context) => {
956
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
957
+ return de_CommandError(output, context);
958
+ }
959
+ const contents = smithyClient.map({
960
+ $metadata: deserializeMetadata(output),
961
+ });
962
+ await smithyClient.collectBody(output.body, context);
963
+ return contents;
964
+ };
965
+ const de_StartUserAccessTasksCommand = async (output, context) => {
966
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
967
+ return de_CommandError(output, context);
968
+ }
969
+ const contents = smithyClient.map({
970
+ $metadata: deserializeMetadata(output),
971
+ });
972
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
973
+ const doc = smithyClient.take(data, {
974
+ userAccessTasksList: smithyClient._json,
975
+ });
976
+ Object.assign(contents, doc);
977
+ return contents;
978
+ };
979
+ const de_StopIngestionCommand = async (output, context) => {
980
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
981
+ return de_CommandError(output, context);
982
+ }
983
+ const contents = smithyClient.map({
984
+ $metadata: deserializeMetadata(output),
985
+ });
986
+ await smithyClient.collectBody(output.body, context);
987
+ return contents;
988
+ };
989
+ const de_TagResourceCommand = async (output, context) => {
990
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
991
+ return de_CommandError(output, context);
992
+ }
993
+ const contents = smithyClient.map({
994
+ $metadata: deserializeMetadata(output),
995
+ });
996
+ await smithyClient.collectBody(output.body, context);
997
+ return contents;
998
+ };
999
+ const de_UntagResourceCommand = async (output, context) => {
1000
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1001
+ return de_CommandError(output, context);
1002
+ }
1003
+ const contents = smithyClient.map({
1004
+ $metadata: deserializeMetadata(output),
1005
+ });
1006
+ await smithyClient.collectBody(output.body, context);
1007
+ return contents;
1008
+ };
1009
+ const de_UpdateAppAuthorizationCommand = async (output, context) => {
1010
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
+ return de_CommandError(output, context);
1012
+ }
1013
+ const contents = smithyClient.map({
1014
+ $metadata: deserializeMetadata(output),
1015
+ });
1016
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1017
+ const doc = smithyClient.take(data, {
1018
+ appAuthorization: (_) => de_AppAuthorization(_),
1019
+ });
1020
+ Object.assign(contents, doc);
1021
+ return contents;
1022
+ };
1023
+ const de_UpdateIngestionDestinationCommand = async (output, context) => {
1024
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1025
+ return de_CommandError(output, context);
1026
+ }
1027
+ const contents = smithyClient.map({
1028
+ $metadata: deserializeMetadata(output),
1029
+ });
1030
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1031
+ const doc = smithyClient.take(data, {
1032
+ ingestionDestination: (_) => de_IngestionDestination(_),
1033
+ });
1034
+ Object.assign(contents, doc);
1035
+ return contents;
1036
+ };
1037
+ const de_CommandError = async (output, context) => {
1038
+ const parsedOutput = {
1039
+ ...output,
1040
+ body: await core$1.parseJsonErrorBody(output.body, context),
1041
+ };
1042
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1043
+ switch (errorCode) {
1044
+ case "AccessDeniedException":
1045
+ case "com.amazonaws.appfabric#AccessDeniedException":
1046
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1047
+ case "InternalServerException":
1048
+ case "com.amazonaws.appfabric#InternalServerException":
1049
+ throw await de_InternalServerExceptionRes(parsedOutput);
1050
+ case "ResourceNotFoundException":
1051
+ case "com.amazonaws.appfabric#ResourceNotFoundException":
1052
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1053
+ case "ThrottlingException":
1054
+ case "com.amazonaws.appfabric#ThrottlingException":
1055
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1056
+ case "ValidationException":
1057
+ case "com.amazonaws.appfabric#ValidationException":
1058
+ throw await de_ValidationExceptionRes(parsedOutput);
1059
+ case "ConflictException":
1060
+ case "com.amazonaws.appfabric#ConflictException":
1061
+ throw await de_ConflictExceptionRes(parsedOutput);
1062
+ case "ServiceQuotaExceededException":
1063
+ case "com.amazonaws.appfabric#ServiceQuotaExceededException":
1064
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1065
+ default:
1066
+ const parsedBody = parsedOutput.body;
1067
+ return throwDefaultError({
1068
+ output,
1069
+ parsedBody,
1070
+ errorCode,
1071
+ });
1072
+ }
1073
+ };
1074
+ const throwDefaultError = smithyClient.withBaseException(AppFabricServiceException);
1075
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1076
+ const contents = smithyClient.map({});
1077
+ const data = parsedOutput.body;
1078
+ const doc = smithyClient.take(data, {
1079
+ message: smithyClient.expectString,
1080
+ });
1081
+ Object.assign(contents, doc);
1082
+ const exception = new AccessDeniedException({
1083
+ $metadata: deserializeMetadata(parsedOutput),
1084
+ ...contents,
1085
+ });
1086
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1087
+ };
1088
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1089
+ const contents = smithyClient.map({});
1090
+ const data = parsedOutput.body;
1091
+ const doc = smithyClient.take(data, {
1092
+ message: smithyClient.expectString,
1093
+ resourceId: smithyClient.expectString,
1094
+ resourceType: smithyClient.expectString,
1095
+ });
1096
+ Object.assign(contents, doc);
1097
+ const exception = new ConflictException({
1098
+ $metadata: deserializeMetadata(parsedOutput),
1099
+ ...contents,
1100
+ });
1101
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1102
+ };
1103
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1104
+ const contents = smithyClient.map({
1105
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
1106
+ });
1107
+ const data = parsedOutput.body;
1108
+ const doc = smithyClient.take(data, {
1109
+ message: smithyClient.expectString,
1110
+ });
1111
+ Object.assign(contents, doc);
1112
+ const exception = new InternalServerException({
1113
+ $metadata: deserializeMetadata(parsedOutput),
1114
+ ...contents,
1115
+ });
1116
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1117
+ };
1118
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1119
+ const contents = smithyClient.map({});
1120
+ const data = parsedOutput.body;
1121
+ const doc = smithyClient.take(data, {
1122
+ message: smithyClient.expectString,
1123
+ resourceId: smithyClient.expectString,
1124
+ resourceType: smithyClient.expectString,
1125
+ });
1126
+ Object.assign(contents, doc);
1127
+ const exception = new ResourceNotFoundException({
1128
+ $metadata: deserializeMetadata(parsedOutput),
1129
+ ...contents,
1130
+ });
1131
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1132
+ };
1133
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1134
+ const contents = smithyClient.map({});
1135
+ const data = parsedOutput.body;
1136
+ const doc = smithyClient.take(data, {
1137
+ message: smithyClient.expectString,
1138
+ quotaCode: smithyClient.expectString,
1139
+ resourceId: smithyClient.expectString,
1140
+ resourceType: smithyClient.expectString,
1141
+ serviceCode: smithyClient.expectString,
1142
+ });
1143
+ Object.assign(contents, doc);
1144
+ const exception = new ServiceQuotaExceededException({
1145
+ $metadata: deserializeMetadata(parsedOutput),
1146
+ ...contents,
1147
+ });
1148
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1149
+ };
1150
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1151
+ const contents = smithyClient.map({
1152
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
1153
+ });
1154
+ const data = parsedOutput.body;
1155
+ const doc = smithyClient.take(data, {
1156
+ message: smithyClient.expectString,
1157
+ quotaCode: smithyClient.expectString,
1158
+ serviceCode: smithyClient.expectString,
1159
+ });
1160
+ Object.assign(contents, doc);
1161
+ const exception = new ThrottlingException({
1162
+ $metadata: deserializeMetadata(parsedOutput),
1163
+ ...contents,
1164
+ });
1165
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1166
+ };
1167
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1168
+ const contents = smithyClient.map({});
1169
+ const data = parsedOutput.body;
1170
+ const doc = smithyClient.take(data, {
1171
+ fieldList: smithyClient._json,
1172
+ message: smithyClient.expectString,
1173
+ reason: smithyClient.expectString,
1174
+ });
1175
+ Object.assign(contents, doc);
1176
+ const exception = new ValidationException({
1177
+ $metadata: deserializeMetadata(parsedOutput),
1178
+ ...contents,
1179
+ });
1180
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1181
+ };
1182
+ const de_AppAuthorization = (output, context) => {
1183
+ return smithyClient.take(output, {
1184
+ app: smithyClient.expectString,
1185
+ appAuthorizationArn: smithyClient.expectString,
1186
+ appBundleArn: smithyClient.expectString,
1187
+ authType: smithyClient.expectString,
1188
+ authUrl: smithyClient.expectString,
1189
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1190
+ persona: smithyClient.expectString,
1191
+ status: smithyClient.expectString,
1192
+ tenant: smithyClient._json,
1193
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1194
+ });
1195
+ };
1196
+ const de_AppAuthorizationSummary = (output, context) => {
1197
+ return smithyClient.take(output, {
1198
+ app: smithyClient.expectString,
1199
+ appAuthorizationArn: smithyClient.expectString,
1200
+ appBundleArn: smithyClient.expectString,
1201
+ status: smithyClient.expectString,
1202
+ tenant: smithyClient._json,
1203
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1204
+ });
1205
+ };
1206
+ const de_AppAuthorizationSummaryList = (output, context) => {
1207
+ const retVal = (output || [])
1208
+ .filter((e) => e != null)
1209
+ .map((entry) => {
1210
+ return de_AppAuthorizationSummary(entry);
1211
+ });
1212
+ return retVal;
1213
+ };
1214
+ const de_Ingestion = (output, context) => {
1215
+ return smithyClient.take(output, {
1216
+ app: smithyClient.expectString,
1217
+ appBundleArn: smithyClient.expectString,
1218
+ arn: smithyClient.expectString,
1219
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1220
+ ingestionType: smithyClient.expectString,
1221
+ state: smithyClient.expectString,
1222
+ tenantId: smithyClient.expectString,
1223
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1224
+ });
1225
+ };
1226
+ const de_IngestionDestination = (output, context) => {
1227
+ return smithyClient.take(output, {
1228
+ arn: smithyClient.expectString,
1229
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1230
+ destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
1231
+ ingestionArn: smithyClient.expectString,
1232
+ processingConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
1233
+ status: smithyClient.expectString,
1234
+ statusReason: smithyClient.expectString,
1235
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1236
+ });
1237
+ };
1238
+ const deserializeMetadata = (output) => ({
1239
+ httpStatusCode: output.statusCode,
1240
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1241
+ extendedRequestId: output.headers["x-amz-id-2"],
1242
+ cfId: output.headers["x-amz-cf-id"],
1243
+ });
1244
+ const _mR = "maxResults";
1245
+ const _nT = "nextToken";
1246
+ const _rAS = "retryAfterSeconds";
1247
+ const _ra = "retry-after";
1248
+ const _tK = "tagKeys";
1249
+
1250
+ class BatchGetUserAccessTasksCommand extends smithyClient.Command
1251
+ .classBuilder()
1252
+ .ep(commonParams)
1253
+ .m(function (Command, cs, config, o) {
1254
+ return [
1255
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1256
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1257
+ ];
1258
+ })
1259
+ .s("FabricFrontEndService", "BatchGetUserAccessTasks", {})
1260
+ .n("AppFabricClient", "BatchGetUserAccessTasksCommand")
1261
+ .f(void 0, BatchGetUserAccessTasksResponseFilterSensitiveLog)
1262
+ .ser(se_BatchGetUserAccessTasksCommand)
1263
+ .de(de_BatchGetUserAccessTasksCommand)
1264
+ .build() {
1265
+ }
1266
+
1267
+ class ConnectAppAuthorizationCommand extends smithyClient.Command
1268
+ .classBuilder()
1269
+ .ep(commonParams)
1270
+ .m(function (Command, cs, config, o) {
1271
+ return [
1272
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1273
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1274
+ ];
1275
+ })
1276
+ .s("FabricFrontEndService", "ConnectAppAuthorization", {})
1277
+ .n("AppFabricClient", "ConnectAppAuthorizationCommand")
1278
+ .f(ConnectAppAuthorizationRequestFilterSensitiveLog, void 0)
1279
+ .ser(se_ConnectAppAuthorizationCommand)
1280
+ .de(de_ConnectAppAuthorizationCommand)
1281
+ .build() {
1282
+ }
1283
+
1284
+ class CreateAppAuthorizationCommand extends smithyClient.Command
1285
+ .classBuilder()
1286
+ .ep(commonParams)
1287
+ .m(function (Command, cs, config, o) {
1288
+ return [
1289
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1290
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1291
+ ];
1292
+ })
1293
+ .s("FabricFrontEndService", "CreateAppAuthorization", {})
1294
+ .n("AppFabricClient", "CreateAppAuthorizationCommand")
1295
+ .f(CreateAppAuthorizationRequestFilterSensitiveLog, void 0)
1296
+ .ser(se_CreateAppAuthorizationCommand)
1297
+ .de(de_CreateAppAuthorizationCommand)
1298
+ .build() {
1299
+ }
1300
+
1301
+ class CreateAppBundleCommand extends smithyClient.Command
1302
+ .classBuilder()
1303
+ .ep(commonParams)
1304
+ .m(function (Command, cs, config, o) {
1305
+ return [
1306
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1307
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1308
+ ];
1309
+ })
1310
+ .s("FabricFrontEndService", "CreateAppBundle", {})
1311
+ .n("AppFabricClient", "CreateAppBundleCommand")
1312
+ .f(void 0, void 0)
1313
+ .ser(se_CreateAppBundleCommand)
1314
+ .de(de_CreateAppBundleCommand)
1315
+ .build() {
1316
+ }
1317
+
1318
+ class CreateIngestionCommand extends smithyClient.Command
1319
+ .classBuilder()
1320
+ .ep(commonParams)
1321
+ .m(function (Command, cs, config, o) {
1322
+ return [
1323
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1324
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1325
+ ];
1326
+ })
1327
+ .s("FabricFrontEndService", "CreateIngestion", {})
1328
+ .n("AppFabricClient", "CreateIngestionCommand")
1329
+ .f(void 0, void 0)
1330
+ .ser(se_CreateIngestionCommand)
1331
+ .de(de_CreateIngestionCommand)
1332
+ .build() {
1333
+ }
1334
+
1335
+ class CreateIngestionDestinationCommand extends smithyClient.Command
1336
+ .classBuilder()
1337
+ .ep(commonParams)
1338
+ .m(function (Command, cs, config, o) {
1339
+ return [
1340
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1341
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1342
+ ];
1343
+ })
1344
+ .s("FabricFrontEndService", "CreateIngestionDestination", {})
1345
+ .n("AppFabricClient", "CreateIngestionDestinationCommand")
1346
+ .f(void 0, void 0)
1347
+ .ser(se_CreateIngestionDestinationCommand)
1348
+ .de(de_CreateIngestionDestinationCommand)
1349
+ .build() {
1350
+ }
1351
+
1352
+ class DeleteAppAuthorizationCommand extends smithyClient.Command
1353
+ .classBuilder()
1354
+ .ep(commonParams)
1355
+ .m(function (Command, cs, config, o) {
1356
+ return [
1357
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1358
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1359
+ ];
1360
+ })
1361
+ .s("FabricFrontEndService", "DeleteAppAuthorization", {})
1362
+ .n("AppFabricClient", "DeleteAppAuthorizationCommand")
1363
+ .f(void 0, void 0)
1364
+ .ser(se_DeleteAppAuthorizationCommand)
1365
+ .de(de_DeleteAppAuthorizationCommand)
1366
+ .build() {
1367
+ }
1368
+
1369
+ class DeleteAppBundleCommand extends smithyClient.Command
1370
+ .classBuilder()
1371
+ .ep(commonParams)
1372
+ .m(function (Command, cs, config, o) {
1373
+ return [
1374
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1375
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1376
+ ];
1377
+ })
1378
+ .s("FabricFrontEndService", "DeleteAppBundle", {})
1379
+ .n("AppFabricClient", "DeleteAppBundleCommand")
1380
+ .f(void 0, void 0)
1381
+ .ser(se_DeleteAppBundleCommand)
1382
+ .de(de_DeleteAppBundleCommand)
1383
+ .build() {
1384
+ }
1385
+
1386
+ class DeleteIngestionCommand extends smithyClient.Command
1387
+ .classBuilder()
1388
+ .ep(commonParams)
1389
+ .m(function (Command, cs, config, o) {
1390
+ return [
1391
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1392
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1393
+ ];
1394
+ })
1395
+ .s("FabricFrontEndService", "DeleteIngestion", {})
1396
+ .n("AppFabricClient", "DeleteIngestionCommand")
1397
+ .f(void 0, void 0)
1398
+ .ser(se_DeleteIngestionCommand)
1399
+ .de(de_DeleteIngestionCommand)
1400
+ .build() {
1401
+ }
1402
+
1403
+ class DeleteIngestionDestinationCommand extends smithyClient.Command
1404
+ .classBuilder()
1405
+ .ep(commonParams)
1406
+ .m(function (Command, cs, config, o) {
1407
+ return [
1408
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1409
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1410
+ ];
1411
+ })
1412
+ .s("FabricFrontEndService", "DeleteIngestionDestination", {})
1413
+ .n("AppFabricClient", "DeleteIngestionDestinationCommand")
1414
+ .f(void 0, void 0)
1415
+ .ser(se_DeleteIngestionDestinationCommand)
1416
+ .de(de_DeleteIngestionDestinationCommand)
1417
+ .build() {
1418
+ }
1419
+
1420
+ class GetAppAuthorizationCommand extends smithyClient.Command
1421
+ .classBuilder()
1422
+ .ep(commonParams)
1423
+ .m(function (Command, cs, config, o) {
1424
+ return [
1425
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1426
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1427
+ ];
1428
+ })
1429
+ .s("FabricFrontEndService", "GetAppAuthorization", {})
1430
+ .n("AppFabricClient", "GetAppAuthorizationCommand")
1431
+ .f(void 0, void 0)
1432
+ .ser(se_GetAppAuthorizationCommand)
1433
+ .de(de_GetAppAuthorizationCommand)
1434
+ .build() {
1435
+ }
1436
+
1437
+ class GetAppBundleCommand extends smithyClient.Command
1438
+ .classBuilder()
1439
+ .ep(commonParams)
1440
+ .m(function (Command, cs, config, o) {
1441
+ return [
1442
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1443
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1444
+ ];
1445
+ })
1446
+ .s("FabricFrontEndService", "GetAppBundle", {})
1447
+ .n("AppFabricClient", "GetAppBundleCommand")
1448
+ .f(void 0, void 0)
1449
+ .ser(se_GetAppBundleCommand)
1450
+ .de(de_GetAppBundleCommand)
1451
+ .build() {
1452
+ }
1453
+
1454
+ class GetIngestionCommand extends smithyClient.Command
1455
+ .classBuilder()
1456
+ .ep(commonParams)
1457
+ .m(function (Command, cs, config, o) {
1458
+ return [
1459
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1460
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1461
+ ];
1462
+ })
1463
+ .s("FabricFrontEndService", "GetIngestion", {})
1464
+ .n("AppFabricClient", "GetIngestionCommand")
1465
+ .f(void 0, void 0)
1466
+ .ser(se_GetIngestionCommand)
1467
+ .de(de_GetIngestionCommand)
1468
+ .build() {
1469
+ }
1470
+
1471
+ class GetIngestionDestinationCommand extends smithyClient.Command
1472
+ .classBuilder()
1473
+ .ep(commonParams)
1474
+ .m(function (Command, cs, config, o) {
1475
+ return [
1476
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1477
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1478
+ ];
1479
+ })
1480
+ .s("FabricFrontEndService", "GetIngestionDestination", {})
1481
+ .n("AppFabricClient", "GetIngestionDestinationCommand")
1482
+ .f(void 0, void 0)
1483
+ .ser(se_GetIngestionDestinationCommand)
1484
+ .de(de_GetIngestionDestinationCommand)
1485
+ .build() {
1486
+ }
1487
+
1488
+ class ListAppAuthorizationsCommand extends smithyClient.Command
1489
+ .classBuilder()
1490
+ .ep(commonParams)
1491
+ .m(function (Command, cs, config, o) {
1492
+ return [
1493
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1494
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1495
+ ];
1496
+ })
1497
+ .s("FabricFrontEndService", "ListAppAuthorizations", {})
1498
+ .n("AppFabricClient", "ListAppAuthorizationsCommand")
1499
+ .f(void 0, void 0)
1500
+ .ser(se_ListAppAuthorizationsCommand)
1501
+ .de(de_ListAppAuthorizationsCommand)
1502
+ .build() {
1503
+ }
1504
+
1505
+ class ListAppBundlesCommand extends smithyClient.Command
1506
+ .classBuilder()
1507
+ .ep(commonParams)
1508
+ .m(function (Command, cs, config, o) {
1509
+ return [
1510
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1511
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1512
+ ];
1513
+ })
1514
+ .s("FabricFrontEndService", "ListAppBundles", {})
1515
+ .n("AppFabricClient", "ListAppBundlesCommand")
1516
+ .f(void 0, void 0)
1517
+ .ser(se_ListAppBundlesCommand)
1518
+ .de(de_ListAppBundlesCommand)
1519
+ .build() {
1520
+ }
1521
+
1522
+ class ListIngestionDestinationsCommand extends smithyClient.Command
1523
+ .classBuilder()
1524
+ .ep(commonParams)
1525
+ .m(function (Command, cs, config, o) {
1526
+ return [
1527
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1528
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1529
+ ];
1530
+ })
1531
+ .s("FabricFrontEndService", "ListIngestionDestinations", {})
1532
+ .n("AppFabricClient", "ListIngestionDestinationsCommand")
1533
+ .f(void 0, void 0)
1534
+ .ser(se_ListIngestionDestinationsCommand)
1535
+ .de(de_ListIngestionDestinationsCommand)
1536
+ .build() {
1537
+ }
1538
+
1539
+ class ListIngestionsCommand extends smithyClient.Command
1540
+ .classBuilder()
1541
+ .ep(commonParams)
1542
+ .m(function (Command, cs, config, o) {
1543
+ return [
1544
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1545
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1546
+ ];
1547
+ })
1548
+ .s("FabricFrontEndService", "ListIngestions", {})
1549
+ .n("AppFabricClient", "ListIngestionsCommand")
1550
+ .f(void 0, void 0)
1551
+ .ser(se_ListIngestionsCommand)
1552
+ .de(de_ListIngestionsCommand)
1553
+ .build() {
1554
+ }
1555
+
1556
+ class ListTagsForResourceCommand extends smithyClient.Command
1557
+ .classBuilder()
1558
+ .ep(commonParams)
1559
+ .m(function (Command, cs, config, o) {
1560
+ return [
1561
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1562
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1563
+ ];
1564
+ })
1565
+ .s("FabricFrontEndService", "ListTagsForResource", {})
1566
+ .n("AppFabricClient", "ListTagsForResourceCommand")
1567
+ .f(void 0, void 0)
1568
+ .ser(se_ListTagsForResourceCommand)
1569
+ .de(de_ListTagsForResourceCommand)
1570
+ .build() {
1571
+ }
1572
+
1573
+ class StartIngestionCommand extends smithyClient.Command
1574
+ .classBuilder()
1575
+ .ep(commonParams)
1576
+ .m(function (Command, cs, config, o) {
1577
+ return [
1578
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1579
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1580
+ ];
1581
+ })
1582
+ .s("FabricFrontEndService", "StartIngestion", {})
1583
+ .n("AppFabricClient", "StartIngestionCommand")
1584
+ .f(void 0, void 0)
1585
+ .ser(se_StartIngestionCommand)
1586
+ .de(de_StartIngestionCommand)
1587
+ .build() {
1588
+ }
1589
+
1590
+ class StartUserAccessTasksCommand extends smithyClient.Command
1591
+ .classBuilder()
1592
+ .ep(commonParams)
1593
+ .m(function (Command, cs, config, o) {
1594
+ return [
1595
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1596
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1597
+ ];
1598
+ })
1599
+ .s("FabricFrontEndService", "StartUserAccessTasks", {})
1600
+ .n("AppFabricClient", "StartUserAccessTasksCommand")
1601
+ .f(StartUserAccessTasksRequestFilterSensitiveLog, void 0)
1602
+ .ser(se_StartUserAccessTasksCommand)
1603
+ .de(de_StartUserAccessTasksCommand)
1604
+ .build() {
1605
+ }
1606
+
1607
+ class StopIngestionCommand extends smithyClient.Command
1608
+ .classBuilder()
1609
+ .ep(commonParams)
1610
+ .m(function (Command, cs, config, o) {
1611
+ return [
1612
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1613
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1614
+ ];
1615
+ })
1616
+ .s("FabricFrontEndService", "StopIngestion", {})
1617
+ .n("AppFabricClient", "StopIngestionCommand")
1618
+ .f(void 0, void 0)
1619
+ .ser(se_StopIngestionCommand)
1620
+ .de(de_StopIngestionCommand)
1621
+ .build() {
1622
+ }
1623
+
1624
+ class TagResourceCommand extends smithyClient.Command
1625
+ .classBuilder()
1626
+ .ep(commonParams)
1627
+ .m(function (Command, cs, config, o) {
1628
+ return [
1629
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1630
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1631
+ ];
1632
+ })
1633
+ .s("FabricFrontEndService", "TagResource", {})
1634
+ .n("AppFabricClient", "TagResourceCommand")
1635
+ .f(void 0, void 0)
1636
+ .ser(se_TagResourceCommand)
1637
+ .de(de_TagResourceCommand)
1638
+ .build() {
1639
+ }
1640
+
1641
+ class UntagResourceCommand extends smithyClient.Command
1642
+ .classBuilder()
1643
+ .ep(commonParams)
1644
+ .m(function (Command, cs, config, o) {
1645
+ return [
1646
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1647
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1648
+ ];
1649
+ })
1650
+ .s("FabricFrontEndService", "UntagResource", {})
1651
+ .n("AppFabricClient", "UntagResourceCommand")
1652
+ .f(void 0, void 0)
1653
+ .ser(se_UntagResourceCommand)
1654
+ .de(de_UntagResourceCommand)
1655
+ .build() {
1656
+ }
1657
+
1658
+ class UpdateAppAuthorizationCommand extends smithyClient.Command
1659
+ .classBuilder()
1660
+ .ep(commonParams)
1661
+ .m(function (Command, cs, config, o) {
1662
+ return [
1663
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1664
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1665
+ ];
1666
+ })
1667
+ .s("FabricFrontEndService", "UpdateAppAuthorization", {})
1668
+ .n("AppFabricClient", "UpdateAppAuthorizationCommand")
1669
+ .f(UpdateAppAuthorizationRequestFilterSensitiveLog, void 0)
1670
+ .ser(se_UpdateAppAuthorizationCommand)
1671
+ .de(de_UpdateAppAuthorizationCommand)
1672
+ .build() {
1673
+ }
1674
+
1675
+ class UpdateIngestionDestinationCommand extends smithyClient.Command
1676
+ .classBuilder()
1677
+ .ep(commonParams)
1678
+ .m(function (Command, cs, config, o) {
1679
+ return [
1680
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1681
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1682
+ ];
1683
+ })
1684
+ .s("FabricFrontEndService", "UpdateIngestionDestination", {})
1685
+ .n("AppFabricClient", "UpdateIngestionDestinationCommand")
1686
+ .f(void 0, void 0)
1687
+ .ser(se_UpdateIngestionDestinationCommand)
1688
+ .de(de_UpdateIngestionDestinationCommand)
1689
+ .build() {
1690
+ }
1691
+
1692
+ const commands = {
1693
+ BatchGetUserAccessTasksCommand,
1694
+ ConnectAppAuthorizationCommand,
1695
+ CreateAppAuthorizationCommand,
1696
+ CreateAppBundleCommand,
1697
+ CreateIngestionCommand,
1698
+ CreateIngestionDestinationCommand,
1699
+ DeleteAppAuthorizationCommand,
1700
+ DeleteAppBundleCommand,
1701
+ DeleteIngestionCommand,
1702
+ DeleteIngestionDestinationCommand,
1703
+ GetAppAuthorizationCommand,
1704
+ GetAppBundleCommand,
1705
+ GetIngestionCommand,
1706
+ GetIngestionDestinationCommand,
1707
+ ListAppAuthorizationsCommand,
1708
+ ListAppBundlesCommand,
1709
+ ListIngestionDestinationsCommand,
1710
+ ListIngestionsCommand,
1711
+ ListTagsForResourceCommand,
1712
+ StartIngestionCommand,
1713
+ StartUserAccessTasksCommand,
1714
+ StopIngestionCommand,
1715
+ TagResourceCommand,
1716
+ UntagResourceCommand,
1717
+ UpdateAppAuthorizationCommand,
1718
+ UpdateIngestionDestinationCommand,
1719
+ };
1720
+ class AppFabric extends AppFabricClient {
1721
+ }
1722
+ smithyClient.createAggregatedClient(commands, AppFabric);
1910
1723
 
1911
- // src/AppFabric.ts
1912
- var commands = {
1913
- BatchGetUserAccessTasksCommand,
1914
- ConnectAppAuthorizationCommand,
1915
- CreateAppAuthorizationCommand,
1916
- CreateAppBundleCommand,
1917
- CreateIngestionCommand,
1918
- CreateIngestionDestinationCommand,
1919
- DeleteAppAuthorizationCommand,
1920
- DeleteAppBundleCommand,
1921
- DeleteIngestionCommand,
1922
- DeleteIngestionDestinationCommand,
1923
- GetAppAuthorizationCommand,
1924
- GetAppBundleCommand,
1925
- GetIngestionCommand,
1926
- GetIngestionDestinationCommand,
1927
- ListAppAuthorizationsCommand,
1928
- ListAppBundlesCommand,
1929
- ListIngestionDestinationsCommand,
1930
- ListIngestionsCommand,
1931
- ListTagsForResourceCommand,
1932
- StartIngestionCommand,
1933
- StartUserAccessTasksCommand,
1934
- StopIngestionCommand,
1935
- TagResourceCommand,
1936
- UntagResourceCommand,
1937
- UpdateAppAuthorizationCommand,
1938
- UpdateIngestionDestinationCommand
1939
- };
1940
- var AppFabric = class extends AppFabricClient {
1941
- static {
1942
- __name(this, "AppFabric");
1943
- }
1944
- };
1945
- (0, import_smithy_client.createAggregatedClient)(commands, AppFabric);
1946
-
1947
- // src/pagination/ListAppAuthorizationsPaginator.ts
1948
-
1949
- var paginateListAppAuthorizations = (0, import_core.createPaginator)(AppFabricClient, ListAppAuthorizationsCommand, "nextToken", "nextToken", "maxResults");
1950
-
1951
- // src/pagination/ListAppBundlesPaginator.ts
1952
-
1953
- var paginateListAppBundles = (0, import_core.createPaginator)(AppFabricClient, ListAppBundlesCommand, "nextToken", "nextToken", "maxResults");
1954
-
1955
- // src/pagination/ListIngestionDestinationsPaginator.ts
1724
+ const paginateListAppAuthorizations = core.createPaginator(AppFabricClient, ListAppAuthorizationsCommand, "nextToken", "nextToken", "maxResults");
1956
1725
 
1957
- var paginateListIngestionDestinations = (0, import_core.createPaginator)(AppFabricClient, ListIngestionDestinationsCommand, "nextToken", "nextToken", "maxResults");
1726
+ const paginateListAppBundles = core.createPaginator(AppFabricClient, ListAppBundlesCommand, "nextToken", "nextToken", "maxResults");
1958
1727
 
1959
- // src/pagination/ListIngestionsPaginator.ts
1728
+ const paginateListIngestionDestinations = core.createPaginator(AppFabricClient, ListIngestionDestinationsCommand, "nextToken", "nextToken", "maxResults");
1960
1729
 
1961
- var paginateListIngestions = (0, import_core.createPaginator)(AppFabricClient, ListIngestionsCommand, "nextToken", "nextToken", "maxResults");
1962
- // Annotate the CommonJS export names for ESM import in node:
1730
+ const paginateListIngestions = core.createPaginator(AppFabricClient, ListIngestionsCommand, "nextToken", "nextToken", "maxResults");
1963
1731
 
1964
- 0 && (module.exports = {
1965
- AppFabricServiceException,
1966
- __Client,
1967
- AppFabricClient,
1968
- AppFabric,
1969
- $Command,
1970
- BatchGetUserAccessTasksCommand,
1971
- ConnectAppAuthorizationCommand,
1972
- CreateAppAuthorizationCommand,
1973
- CreateAppBundleCommand,
1974
- CreateIngestionCommand,
1975
- CreateIngestionDestinationCommand,
1976
- DeleteAppAuthorizationCommand,
1977
- DeleteAppBundleCommand,
1978
- DeleteIngestionCommand,
1979
- DeleteIngestionDestinationCommand,
1980
- GetAppAuthorizationCommand,
1981
- GetAppBundleCommand,
1982
- GetIngestionCommand,
1983
- GetIngestionDestinationCommand,
1984
- ListAppAuthorizationsCommand,
1985
- ListAppBundlesCommand,
1986
- ListIngestionDestinationsCommand,
1987
- ListIngestionsCommand,
1988
- ListTagsForResourceCommand,
1989
- StartIngestionCommand,
1990
- StartUserAccessTasksCommand,
1991
- StopIngestionCommand,
1992
- TagResourceCommand,
1993
- UntagResourceCommand,
1994
- UpdateAppAuthorizationCommand,
1995
- UpdateIngestionDestinationCommand,
1996
- paginateListAppAuthorizations,
1997
- paginateListAppBundles,
1998
- paginateListIngestionDestinations,
1999
- paginateListIngestions,
2000
- AccessDeniedException,
2001
- AuthType,
2002
- Persona,
2003
- AppAuthorizationStatus,
2004
- Destination,
2005
- Format,
2006
- Schema,
2007
- ResultStatus,
2008
- InternalServerException,
2009
- ResourceNotFoundException,
2010
- ThrottlingException,
2011
- ValidationExceptionReason,
2012
- ValidationException,
2013
- ConflictException,
2014
- Credential,
2015
- ServiceQuotaExceededException,
2016
- IngestionType,
2017
- IngestionState,
2018
- DestinationConfiguration,
2019
- ProcessingConfiguration,
2020
- IngestionDestinationStatus,
2021
- ApiKeyCredentialFilterSensitiveLog,
2022
- AuthRequestFilterSensitiveLog,
2023
- UserAccessResultItemFilterSensitiveLog,
2024
- BatchGetUserAccessTasksResponseFilterSensitiveLog,
2025
- ConnectAppAuthorizationRequestFilterSensitiveLog,
2026
- Oauth2CredentialFilterSensitiveLog,
2027
- CredentialFilterSensitiveLog,
2028
- CreateAppAuthorizationRequestFilterSensitiveLog,
2029
- StartUserAccessTasksRequestFilterSensitiveLog,
2030
- UpdateAppAuthorizationRequestFilterSensitiveLog
1732
+ Object.defineProperty(exports, "$Command", {
1733
+ enumerable: true,
1734
+ get: function () { return smithyClient.Command; }
2031
1735
  });
2032
-
1736
+ Object.defineProperty(exports, "__Client", {
1737
+ enumerable: true,
1738
+ get: function () { return smithyClient.Client; }
1739
+ });
1740
+ exports.AccessDeniedException = AccessDeniedException;
1741
+ exports.ApiKeyCredentialFilterSensitiveLog = ApiKeyCredentialFilterSensitiveLog;
1742
+ exports.AppAuthorizationStatus = AppAuthorizationStatus;
1743
+ exports.AppFabric = AppFabric;
1744
+ exports.AppFabricClient = AppFabricClient;
1745
+ exports.AppFabricServiceException = AppFabricServiceException;
1746
+ exports.AuthRequestFilterSensitiveLog = AuthRequestFilterSensitiveLog;
1747
+ exports.AuthType = AuthType;
1748
+ exports.BatchGetUserAccessTasksCommand = BatchGetUserAccessTasksCommand;
1749
+ exports.BatchGetUserAccessTasksResponseFilterSensitiveLog = BatchGetUserAccessTasksResponseFilterSensitiveLog;
1750
+ exports.ConflictException = ConflictException;
1751
+ exports.ConnectAppAuthorizationCommand = ConnectAppAuthorizationCommand;
1752
+ exports.ConnectAppAuthorizationRequestFilterSensitiveLog = ConnectAppAuthorizationRequestFilterSensitiveLog;
1753
+ exports.CreateAppAuthorizationCommand = CreateAppAuthorizationCommand;
1754
+ exports.CreateAppAuthorizationRequestFilterSensitiveLog = CreateAppAuthorizationRequestFilterSensitiveLog;
1755
+ exports.CreateAppBundleCommand = CreateAppBundleCommand;
1756
+ exports.CreateIngestionCommand = CreateIngestionCommand;
1757
+ exports.CreateIngestionDestinationCommand = CreateIngestionDestinationCommand;
1758
+ exports.CredentialFilterSensitiveLog = CredentialFilterSensitiveLog;
1759
+ exports.DeleteAppAuthorizationCommand = DeleteAppAuthorizationCommand;
1760
+ exports.DeleteAppBundleCommand = DeleteAppBundleCommand;
1761
+ exports.DeleteIngestionCommand = DeleteIngestionCommand;
1762
+ exports.DeleteIngestionDestinationCommand = DeleteIngestionDestinationCommand;
1763
+ exports.Format = Format;
1764
+ exports.GetAppAuthorizationCommand = GetAppAuthorizationCommand;
1765
+ exports.GetAppBundleCommand = GetAppBundleCommand;
1766
+ exports.GetIngestionCommand = GetIngestionCommand;
1767
+ exports.GetIngestionDestinationCommand = GetIngestionDestinationCommand;
1768
+ exports.IngestionDestinationStatus = IngestionDestinationStatus;
1769
+ exports.IngestionState = IngestionState;
1770
+ exports.IngestionType = IngestionType;
1771
+ exports.InternalServerException = InternalServerException;
1772
+ exports.ListAppAuthorizationsCommand = ListAppAuthorizationsCommand;
1773
+ exports.ListAppBundlesCommand = ListAppBundlesCommand;
1774
+ exports.ListIngestionDestinationsCommand = ListIngestionDestinationsCommand;
1775
+ exports.ListIngestionsCommand = ListIngestionsCommand;
1776
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1777
+ exports.Oauth2CredentialFilterSensitiveLog = Oauth2CredentialFilterSensitiveLog;
1778
+ exports.Persona = Persona;
1779
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1780
+ exports.ResultStatus = ResultStatus;
1781
+ exports.Schema = Schema;
1782
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1783
+ exports.StartIngestionCommand = StartIngestionCommand;
1784
+ exports.StartUserAccessTasksCommand = StartUserAccessTasksCommand;
1785
+ exports.StartUserAccessTasksRequestFilterSensitiveLog = StartUserAccessTasksRequestFilterSensitiveLog;
1786
+ exports.StopIngestionCommand = StopIngestionCommand;
1787
+ exports.TagResourceCommand = TagResourceCommand;
1788
+ exports.ThrottlingException = ThrottlingException;
1789
+ exports.UntagResourceCommand = UntagResourceCommand;
1790
+ exports.UpdateAppAuthorizationCommand = UpdateAppAuthorizationCommand;
1791
+ exports.UpdateAppAuthorizationRequestFilterSensitiveLog = UpdateAppAuthorizationRequestFilterSensitiveLog;
1792
+ exports.UpdateIngestionDestinationCommand = UpdateIngestionDestinationCommand;
1793
+ exports.UserAccessResultItemFilterSensitiveLog = UserAccessResultItemFilterSensitiveLog;
1794
+ exports.ValidationException = ValidationException;
1795
+ exports.ValidationExceptionReason = ValidationExceptionReason;
1796
+ exports.paginateListAppAuthorizations = paginateListAppAuthorizations;
1797
+ exports.paginateListAppBundles = paginateListAppBundles;
1798
+ exports.paginateListIngestionDestinations = paginateListIngestionDestinations;
1799
+ exports.paginateListIngestions = paginateListIngestions;