@aws-sdk/client-resource-explorer-2 3.490.0 → 3.496.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist-cjs/ResourceExplorer2.js +1 -53
  2. package/dist-cjs/ResourceExplorer2Client.js +1 -43
  3. package/dist-cjs/commands/AssociateDefaultViewCommand.js +1 -28
  4. package/dist-cjs/commands/BatchGetViewCommand.js +1 -29
  5. package/dist-cjs/commands/CreateIndexCommand.js +1 -29
  6. package/dist-cjs/commands/CreateViewCommand.js +1 -29
  7. package/dist-cjs/commands/DeleteIndexCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteViewCommand.js +1 -28
  9. package/dist-cjs/commands/DisassociateDefaultViewCommand.js +1 -28
  10. package/dist-cjs/commands/GetAccountLevelServiceConfigurationCommand.js +1 -28
  11. package/dist-cjs/commands/GetDefaultViewCommand.js +1 -28
  12. package/dist-cjs/commands/GetIndexCommand.js +1 -29
  13. package/dist-cjs/commands/GetViewCommand.js +1 -29
  14. package/dist-cjs/commands/ListIndexesCommand.js +1 -28
  15. package/dist-cjs/commands/ListIndexesForMembersCommand.js +1 -28
  16. package/dist-cjs/commands/ListSupportedResourceTypesCommand.js +1 -28
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
  18. package/dist-cjs/commands/ListViewsCommand.js +1 -28
  19. package/dist-cjs/commands/SearchCommand.js +1 -29
  20. package/dist-cjs/commands/TagResourceCommand.js +1 -29
  21. package/dist-cjs/commands/UntagResourceCommand.js +1 -29
  22. package/dist-cjs/commands/UpdateIndexTypeCommand.js +1 -28
  23. package/dist-cjs/commands/UpdateViewCommand.js +1 -29
  24. package/dist-cjs/commands/index.js +1 -24
  25. package/dist-cjs/endpoint/EndpointParameters.js +1 -16
  26. package/dist-cjs/extensionConfiguration.js +1 -2
  27. package/dist-cjs/index.js +2395 -11
  28. package/dist-cjs/models/ResourceExplorer2ServiceException.js +1 -12
  29. package/dist-cjs/models/index.js +1 -4
  30. package/dist-cjs/models/models_0.js +1 -206
  31. package/dist-cjs/pagination/Interfaces.js +1 -2
  32. package/dist-cjs/pagination/ListIndexesForMembersPaginator.js +1 -7
  33. package/dist-cjs/pagination/ListIndexesPaginator.js +1 -7
  34. package/dist-cjs/pagination/ListSupportedResourceTypesPaginator.js +1 -7
  35. package/dist-cjs/pagination/ListViewsPaginator.js +1 -7
  36. package/dist-cjs/pagination/SearchPaginator.js +1 -7
  37. package/dist-cjs/pagination/index.js +1 -9
  38. package/dist-cjs/protocols/Aws_restJson1.js +1 -1523
  39. package/dist-cjs/runtimeExtensions.js +1 -22
  40. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2396 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceExplorer2ServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ResourceExplorer2Client"), exports);
6
- tslib_1.__exportStar(require("./ResourceExplorer2"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var ResourceExplorer2ServiceException_1 = require("./models/ResourceExplorer2ServiceException");
12
- Object.defineProperty(exports, "ResourceExplorer2ServiceException", { enumerable: true, get: function () { return ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AWSServiceAccessStatus: () => AWSServiceAccessStatus,
25
+ AccessDeniedException: () => AccessDeniedException,
26
+ AssociateDefaultViewCommand: () => AssociateDefaultViewCommand,
27
+ BatchGetViewCommand: () => BatchGetViewCommand,
28
+ BatchGetViewOutputFilterSensitiveLog: () => BatchGetViewOutputFilterSensitiveLog,
29
+ ConflictException: () => ConflictException,
30
+ CreateIndexCommand: () => CreateIndexCommand,
31
+ CreateIndexInputFilterSensitiveLog: () => CreateIndexInputFilterSensitiveLog,
32
+ CreateViewCommand: () => CreateViewCommand,
33
+ CreateViewInputFilterSensitiveLog: () => CreateViewInputFilterSensitiveLog,
34
+ CreateViewOutputFilterSensitiveLog: () => CreateViewOutputFilterSensitiveLog,
35
+ DeleteIndexCommand: () => DeleteIndexCommand,
36
+ DeleteViewCommand: () => DeleteViewCommand,
37
+ DisassociateDefaultViewCommand: () => DisassociateDefaultViewCommand,
38
+ GetAccountLevelServiceConfigurationCommand: () => GetAccountLevelServiceConfigurationCommand,
39
+ GetDefaultViewCommand: () => GetDefaultViewCommand,
40
+ GetIndexCommand: () => GetIndexCommand,
41
+ GetIndexOutputFilterSensitiveLog: () => GetIndexOutputFilterSensitiveLog,
42
+ GetViewCommand: () => GetViewCommand,
43
+ GetViewOutputFilterSensitiveLog: () => GetViewOutputFilterSensitiveLog,
44
+ IndexState: () => IndexState,
45
+ IndexType: () => IndexType,
46
+ InternalServerException: () => InternalServerException,
47
+ ListIndexesCommand: () => ListIndexesCommand,
48
+ ListIndexesForMembersCommand: () => ListIndexesForMembersCommand,
49
+ ListSupportedResourceTypesCommand: () => ListSupportedResourceTypesCommand,
50
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
51
+ ListTagsForResourceOutputFilterSensitiveLog: () => ListTagsForResourceOutputFilterSensitiveLog,
52
+ ListViewsCommand: () => ListViewsCommand,
53
+ ResourceExplorer2: () => ResourceExplorer2,
54
+ ResourceExplorer2Client: () => ResourceExplorer2Client,
55
+ ResourceExplorer2ServiceException: () => ResourceExplorer2ServiceException,
56
+ ResourceNotFoundException: () => ResourceNotFoundException,
57
+ SearchCommand: () => SearchCommand,
58
+ SearchFilterFilterSensitiveLog: () => SearchFilterFilterSensitiveLog,
59
+ SearchInputFilterSensitiveLog: () => SearchInputFilterSensitiveLog,
60
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
61
+ TagResourceCommand: () => TagResourceCommand,
62
+ TagResourceInputFilterSensitiveLog: () => TagResourceInputFilterSensitiveLog,
63
+ ThrottlingException: () => ThrottlingException,
64
+ UnauthorizedException: () => UnauthorizedException,
65
+ UntagResourceCommand: () => UntagResourceCommand,
66
+ UntagResourceInputFilterSensitiveLog: () => UntagResourceInputFilterSensitiveLog,
67
+ UpdateIndexTypeCommand: () => UpdateIndexTypeCommand,
68
+ UpdateViewCommand: () => UpdateViewCommand,
69
+ UpdateViewInputFilterSensitiveLog: () => UpdateViewInputFilterSensitiveLog,
70
+ UpdateViewOutputFilterSensitiveLog: () => UpdateViewOutputFilterSensitiveLog,
71
+ ValidationException: () => ValidationException,
72
+ ViewFilterSensitiveLog: () => ViewFilterSensitiveLog,
73
+ __Client: () => import_smithy_client.Client,
74
+ paginateListIndexes: () => paginateListIndexes,
75
+ paginateListIndexesForMembers: () => paginateListIndexesForMembers,
76
+ paginateListSupportedResourceTypes: () => paginateListSupportedResourceTypes,
77
+ paginateListViews: () => paginateListViews,
78
+ paginateSearch: () => paginateSearch
79
+ });
80
+ module.exports = __toCommonJS(src_exports);
81
+
82
+ // src/ResourceExplorer2Client.ts
83
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
84
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
85
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
86
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
87
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
88
+ var import_config_resolver = require("@smithy/config-resolver");
89
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
90
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
91
+ var import_middleware_retry = require("@smithy/middleware-retry");
92
+
93
+
94
+ // src/endpoint/EndpointParameters.ts
95
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
96
+ return {
97
+ ...options,
98
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
99
+ defaultSigningName: "resource-explorer-2"
100
+ };
101
+ }, "resolveClientEndpointParameters");
102
+ var commonParams = {
103
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
104
+ Endpoint: { type: "builtInParams", name: "endpoint" },
105
+ Region: { type: "builtInParams", name: "region" }
106
+ };
107
+
108
+ // src/ResourceExplorer2Client.ts
109
+ var import_runtimeConfig = require("././runtimeConfig");
110
+
111
+ // src/runtimeExtensions.ts
112
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
113
+ var import_protocol_http = require("@smithy/protocol-http");
114
+ var import_smithy_client = require("@smithy/smithy-client");
115
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
116
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
117
+ const extensionConfiguration = {
118
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
119
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
120
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
121
+ };
122
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
123
+ return {
124
+ ...runtimeConfig,
125
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
126
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
127
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
128
+ };
129
+ }, "resolveRuntimeExtensions");
130
+
131
+ // src/ResourceExplorer2Client.ts
132
+ var _ResourceExplorer2Client = class _ResourceExplorer2Client extends import_smithy_client.Client {
133
+ constructor(...[configuration]) {
134
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
135
+ const _config_1 = resolveClientEndpointParameters(_config_0);
136
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
137
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
138
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
139
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
140
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
141
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
142
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
143
+ super(_config_8);
144
+ this.config = _config_8;
145
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
146
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
147
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
148
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
149
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
150
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
151
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
152
+ }
153
+ /**
154
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
155
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
156
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
157
+ */
158
+ destroy() {
159
+ super.destroy();
160
+ }
161
+ };
162
+ __name(_ResourceExplorer2Client, "ResourceExplorer2Client");
163
+ var ResourceExplorer2Client = _ResourceExplorer2Client;
164
+
165
+ // src/ResourceExplorer2.ts
166
+
167
+
168
+ // src/commands/AssociateDefaultViewCommand.ts
169
+
170
+ var import_middleware_serde = require("@smithy/middleware-serde");
171
+
172
+ var import_types = require("@smithy/types");
173
+
174
+ // src/protocols/Aws_restJson1.ts
175
+ var import_core = require("@smithy/core");
176
+
177
+ var import_uuid = require("uuid");
178
+
179
+ // src/models/models_0.ts
180
+
181
+
182
+ // src/models/ResourceExplorer2ServiceException.ts
183
+
184
+ var _ResourceExplorer2ServiceException = class _ResourceExplorer2ServiceException extends import_smithy_client.ServiceException {
185
+ /**
186
+ * @internal
187
+ */
188
+ constructor(options) {
189
+ super(options);
190
+ Object.setPrototypeOf(this, _ResourceExplorer2ServiceException.prototype);
191
+ }
192
+ };
193
+ __name(_ResourceExplorer2ServiceException, "ResourceExplorer2ServiceException");
194
+ var ResourceExplorer2ServiceException = _ResourceExplorer2ServiceException;
195
+
196
+ // src/models/models_0.ts
197
+ var _AccessDeniedException = class _AccessDeniedException extends ResourceExplorer2ServiceException {
198
+ /**
199
+ * @internal
200
+ */
201
+ constructor(opts) {
202
+ super({
203
+ name: "AccessDeniedException",
204
+ $fault: "client",
205
+ ...opts
206
+ });
207
+ this.name = "AccessDeniedException";
208
+ this.$fault = "client";
209
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
210
+ this.Message = opts.Message;
211
+ }
212
+ };
213
+ __name(_AccessDeniedException, "AccessDeniedException");
214
+ var AccessDeniedException = _AccessDeniedException;
215
+ var _InternalServerException = class _InternalServerException extends ResourceExplorer2ServiceException {
216
+ /**
217
+ * @internal
218
+ */
219
+ constructor(opts) {
220
+ super({
221
+ name: "InternalServerException",
222
+ $fault: "server",
223
+ ...opts
224
+ });
225
+ this.name = "InternalServerException";
226
+ this.$fault = "server";
227
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
228
+ this.Message = opts.Message;
229
+ }
230
+ };
231
+ __name(_InternalServerException, "InternalServerException");
232
+ var InternalServerException = _InternalServerException;
233
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends ResourceExplorer2ServiceException {
234
+ /**
235
+ * @internal
236
+ */
237
+ constructor(opts) {
238
+ super({
239
+ name: "ResourceNotFoundException",
240
+ $fault: "client",
241
+ ...opts
242
+ });
243
+ this.name = "ResourceNotFoundException";
244
+ this.$fault = "client";
245
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
246
+ this.Message = opts.Message;
247
+ }
248
+ };
249
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
250
+ var ResourceNotFoundException = _ResourceNotFoundException;
251
+ var _ThrottlingException = class _ThrottlingException extends ResourceExplorer2ServiceException {
252
+ /**
253
+ * @internal
254
+ */
255
+ constructor(opts) {
256
+ super({
257
+ name: "ThrottlingException",
258
+ $fault: "client",
259
+ ...opts
260
+ });
261
+ this.name = "ThrottlingException";
262
+ this.$fault = "client";
263
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
264
+ this.Message = opts.Message;
265
+ }
266
+ };
267
+ __name(_ThrottlingException, "ThrottlingException");
268
+ var ThrottlingException = _ThrottlingException;
269
+ var _ValidationException = class _ValidationException extends ResourceExplorer2ServiceException {
270
+ /**
271
+ * @internal
272
+ */
273
+ constructor(opts) {
274
+ super({
275
+ name: "ValidationException",
276
+ $fault: "client",
277
+ ...opts
278
+ });
279
+ this.name = "ValidationException";
280
+ this.$fault = "client";
281
+ Object.setPrototypeOf(this, _ValidationException.prototype);
282
+ this.Message = opts.Message;
283
+ this.FieldList = opts.FieldList;
284
+ }
285
+ };
286
+ __name(_ValidationException, "ValidationException");
287
+ var ValidationException = _ValidationException;
288
+ var AWSServiceAccessStatus = {
289
+ DISABLED: "DISABLED",
290
+ ENABLED: "ENABLED"
291
+ };
292
+ var _UnauthorizedException = class _UnauthorizedException extends ResourceExplorer2ServiceException {
293
+ /**
294
+ * @internal
295
+ */
296
+ constructor(opts) {
297
+ super({
298
+ name: "UnauthorizedException",
299
+ $fault: "client",
300
+ ...opts
301
+ });
302
+ this.name = "UnauthorizedException";
303
+ this.$fault = "client";
304
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
305
+ this.Message = opts.Message;
306
+ }
307
+ };
308
+ __name(_UnauthorizedException, "UnauthorizedException");
309
+ var UnauthorizedException = _UnauthorizedException;
310
+ var _ConflictException = class _ConflictException extends ResourceExplorer2ServiceException {
311
+ /**
312
+ * @internal
313
+ */
314
+ constructor(opts) {
315
+ super({
316
+ name: "ConflictException",
317
+ $fault: "client",
318
+ ...opts
319
+ });
320
+ this.name = "ConflictException";
321
+ this.$fault = "client";
322
+ Object.setPrototypeOf(this, _ConflictException.prototype);
323
+ this.Message = opts.Message;
324
+ }
325
+ };
326
+ __name(_ConflictException, "ConflictException");
327
+ var ConflictException = _ConflictException;
328
+ var IndexState = {
329
+ /**
330
+ * Index is active.
331
+ */
332
+ ACTIVE: "ACTIVE",
333
+ /**
334
+ * Resource Explorer is creating the index.
335
+ */
336
+ CREATING: "CREATING",
337
+ /**
338
+ * Resource Explorer successfully deleted the index.
339
+ */
340
+ DELETED: "DELETED",
341
+ /**
342
+ * Resource Explorer is deleting the index.
343
+ */
344
+ DELETING: "DELETING",
345
+ /**
346
+ * Resource Explorer is switching the index type between local and aggregator.
347
+ */
348
+ UPDATING: "UPDATING"
349
+ };
350
+ var IndexType = {
351
+ /**
352
+ * aggregator index
353
+ */
354
+ AGGREGATOR: "AGGREGATOR",
355
+ /**
356
+ * local index
357
+ */
358
+ LOCAL: "LOCAL"
359
+ };
360
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ResourceExplorer2ServiceException {
361
+ /**
362
+ * @internal
363
+ */
364
+ constructor(opts) {
365
+ super({
366
+ name: "ServiceQuotaExceededException",
367
+ $fault: "client",
368
+ ...opts
369
+ });
370
+ this.name = "ServiceQuotaExceededException";
371
+ this.$fault = "client";
372
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
373
+ this.Message = opts.Message;
374
+ this.Name = opts.Name;
375
+ this.Value = opts.Value;
376
+ }
377
+ };
378
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
379
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
380
+ var SearchFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
381
+ ...obj
382
+ }), "SearchFilterFilterSensitiveLog");
383
+ var ViewFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
384
+ ...obj,
385
+ ...obj.Filters && { Filters: import_smithy_client.SENSITIVE_STRING }
386
+ }), "ViewFilterSensitiveLog");
387
+ var BatchGetViewOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
388
+ ...obj,
389
+ ...obj.Views && { Views: obj.Views.map((item) => ViewFilterSensitiveLog(item)) }
390
+ }), "BatchGetViewOutputFilterSensitiveLog");
391
+ var CreateIndexInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
392
+ ...obj,
393
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
394
+ }), "CreateIndexInputFilterSensitiveLog");
395
+ var CreateViewInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
396
+ ...obj,
397
+ ...obj.Filters && { Filters: import_smithy_client.SENSITIVE_STRING },
398
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
399
+ }), "CreateViewInputFilterSensitiveLog");
400
+ var CreateViewOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
401
+ ...obj,
402
+ ...obj.View && { View: ViewFilterSensitiveLog(obj.View) }
403
+ }), "CreateViewOutputFilterSensitiveLog");
404
+ var GetViewOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
405
+ ...obj,
406
+ ...obj.View && { View: ViewFilterSensitiveLog(obj.View) },
407
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
408
+ }), "GetViewOutputFilterSensitiveLog");
409
+ var UpdateViewInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
410
+ ...obj,
411
+ ...obj.Filters && { Filters: import_smithy_client.SENSITIVE_STRING }
412
+ }), "UpdateViewInputFilterSensitiveLog");
413
+ var UpdateViewOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
414
+ ...obj,
415
+ ...obj.View && { View: ViewFilterSensitiveLog(obj.View) }
416
+ }), "UpdateViewOutputFilterSensitiveLog");
417
+ var GetIndexOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
418
+ ...obj,
419
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
420
+ }), "GetIndexOutputFilterSensitiveLog");
421
+ var ListTagsForResourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
422
+ ...obj,
423
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
424
+ }), "ListTagsForResourceOutputFilterSensitiveLog");
425
+ var SearchInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
426
+ ...obj,
427
+ ...obj.QueryString && { QueryString: import_smithy_client.SENSITIVE_STRING }
428
+ }), "SearchInputFilterSensitiveLog");
429
+ var TagResourceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
430
+ ...obj,
431
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
432
+ }), "TagResourceInputFilterSensitiveLog");
433
+ var UntagResourceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
434
+ ...obj,
435
+ ...obj.tagKeys && { tagKeys: import_smithy_client.SENSITIVE_STRING }
436
+ }), "UntagResourceInputFilterSensitiveLog");
437
+
438
+ // src/protocols/Aws_restJson1.ts
439
+ var se_AssociateDefaultViewCommand = /* @__PURE__ */ __name(async (input, context) => {
440
+ const b = (0, import_core.requestBuilder)(input, context);
441
+ const headers = {
442
+ "content-type": "application/json"
443
+ };
444
+ b.bp("/AssociateDefaultView");
445
+ let body;
446
+ body = JSON.stringify(
447
+ (0, import_smithy_client.take)(input, {
448
+ ViewArn: []
449
+ })
450
+ );
451
+ b.m("POST").h(headers).b(body);
452
+ return b.build();
453
+ }, "se_AssociateDefaultViewCommand");
454
+ var se_BatchGetViewCommand = /* @__PURE__ */ __name(async (input, context) => {
455
+ const b = (0, import_core.requestBuilder)(input, context);
456
+ const headers = {
457
+ "content-type": "application/json"
458
+ };
459
+ b.bp("/BatchGetView");
460
+ let body;
461
+ body = JSON.stringify(
462
+ (0, import_smithy_client.take)(input, {
463
+ ViewArns: (_) => (0, import_smithy_client._json)(_)
464
+ })
465
+ );
466
+ b.m("POST").h(headers).b(body);
467
+ return b.build();
468
+ }, "se_BatchGetViewCommand");
469
+ var se_CreateIndexCommand = /* @__PURE__ */ __name(async (input, context) => {
470
+ const b = (0, import_core.requestBuilder)(input, context);
471
+ const headers = {
472
+ "content-type": "application/json"
473
+ };
474
+ b.bp("/CreateIndex");
475
+ let body;
476
+ body = JSON.stringify(
477
+ (0, import_smithy_client.take)(input, {
478
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
479
+ Tags: (_) => (0, import_smithy_client._json)(_)
480
+ })
481
+ );
482
+ b.m("POST").h(headers).b(body);
483
+ return b.build();
484
+ }, "se_CreateIndexCommand");
485
+ var se_CreateViewCommand = /* @__PURE__ */ __name(async (input, context) => {
486
+ const b = (0, import_core.requestBuilder)(input, context);
487
+ const headers = {
488
+ "content-type": "application/json"
489
+ };
490
+ b.bp("/CreateView");
491
+ let body;
492
+ body = JSON.stringify(
493
+ (0, import_smithy_client.take)(input, {
494
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
495
+ Filters: (_) => (0, import_smithy_client._json)(_),
496
+ IncludedProperties: (_) => (0, import_smithy_client._json)(_),
497
+ Scope: [],
498
+ Tags: (_) => (0, import_smithy_client._json)(_),
499
+ ViewName: []
500
+ })
501
+ );
502
+ b.m("POST").h(headers).b(body);
503
+ return b.build();
504
+ }, "se_CreateViewCommand");
505
+ var se_DeleteIndexCommand = /* @__PURE__ */ __name(async (input, context) => {
506
+ const b = (0, import_core.requestBuilder)(input, context);
507
+ const headers = {
508
+ "content-type": "application/json"
509
+ };
510
+ b.bp("/DeleteIndex");
511
+ let body;
512
+ body = JSON.stringify(
513
+ (0, import_smithy_client.take)(input, {
514
+ Arn: []
515
+ })
516
+ );
517
+ b.m("POST").h(headers).b(body);
518
+ return b.build();
519
+ }, "se_DeleteIndexCommand");
520
+ var se_DeleteViewCommand = /* @__PURE__ */ __name(async (input, context) => {
521
+ const b = (0, import_core.requestBuilder)(input, context);
522
+ const headers = {
523
+ "content-type": "application/json"
524
+ };
525
+ b.bp("/DeleteView");
526
+ let body;
527
+ body = JSON.stringify(
528
+ (0, import_smithy_client.take)(input, {
529
+ ViewArn: []
530
+ })
531
+ );
532
+ b.m("POST").h(headers).b(body);
533
+ return b.build();
534
+ }, "se_DeleteViewCommand");
535
+ var se_DisassociateDefaultViewCommand = /* @__PURE__ */ __name(async (input, context) => {
536
+ const b = (0, import_core.requestBuilder)(input, context);
537
+ const headers = {
538
+ "content-type": "application/json"
539
+ };
540
+ b.bp("/DisassociateDefaultView");
541
+ let body;
542
+ body = "";
543
+ b.m("POST").h(headers).b(body);
544
+ return b.build();
545
+ }, "se_DisassociateDefaultViewCommand");
546
+ var se_GetAccountLevelServiceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
547
+ const b = (0, import_core.requestBuilder)(input, context);
548
+ const headers = {
549
+ "content-type": "application/json"
550
+ };
551
+ b.bp("/GetAccountLevelServiceConfiguration");
552
+ let body;
553
+ body = "";
554
+ b.m("POST").h(headers).b(body);
555
+ return b.build();
556
+ }, "se_GetAccountLevelServiceConfigurationCommand");
557
+ var se_GetDefaultViewCommand = /* @__PURE__ */ __name(async (input, context) => {
558
+ const b = (0, import_core.requestBuilder)(input, context);
559
+ const headers = {
560
+ "content-type": "application/json"
561
+ };
562
+ b.bp("/GetDefaultView");
563
+ let body;
564
+ body = "";
565
+ b.m("POST").h(headers).b(body);
566
+ return b.build();
567
+ }, "se_GetDefaultViewCommand");
568
+ var se_GetIndexCommand = /* @__PURE__ */ __name(async (input, context) => {
569
+ const b = (0, import_core.requestBuilder)(input, context);
570
+ const headers = {
571
+ "content-type": "application/json"
572
+ };
573
+ b.bp("/GetIndex");
574
+ let body;
575
+ body = "";
576
+ b.m("POST").h(headers).b(body);
577
+ return b.build();
578
+ }, "se_GetIndexCommand");
579
+ var se_GetViewCommand = /* @__PURE__ */ __name(async (input, context) => {
580
+ const b = (0, import_core.requestBuilder)(input, context);
581
+ const headers = {
582
+ "content-type": "application/json"
583
+ };
584
+ b.bp("/GetView");
585
+ let body;
586
+ body = JSON.stringify(
587
+ (0, import_smithy_client.take)(input, {
588
+ ViewArn: []
589
+ })
590
+ );
591
+ b.m("POST").h(headers).b(body);
592
+ return b.build();
593
+ }, "se_GetViewCommand");
594
+ var se_ListIndexesCommand = /* @__PURE__ */ __name(async (input, context) => {
595
+ const b = (0, import_core.requestBuilder)(input, context);
596
+ const headers = {
597
+ "content-type": "application/json"
598
+ };
599
+ b.bp("/ListIndexes");
600
+ let body;
601
+ body = JSON.stringify(
602
+ (0, import_smithy_client.take)(input, {
603
+ MaxResults: [],
604
+ NextToken: [],
605
+ Regions: (_) => (0, import_smithy_client._json)(_),
606
+ Type: []
607
+ })
608
+ );
609
+ b.m("POST").h(headers).b(body);
610
+ return b.build();
611
+ }, "se_ListIndexesCommand");
612
+ var se_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
613
+ const b = (0, import_core.requestBuilder)(input, context);
614
+ const headers = {
615
+ "content-type": "application/json"
616
+ };
617
+ b.bp("/ListIndexesForMembers");
618
+ let body;
619
+ body = JSON.stringify(
620
+ (0, import_smithy_client.take)(input, {
621
+ AccountIdList: (_) => (0, import_smithy_client._json)(_),
622
+ MaxResults: [],
623
+ NextToken: []
624
+ })
625
+ );
626
+ b.m("POST").h(headers).b(body);
627
+ return b.build();
628
+ }, "se_ListIndexesForMembersCommand");
629
+ var se_ListSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
630
+ const b = (0, import_core.requestBuilder)(input, context);
631
+ const headers = {
632
+ "content-type": "application/json"
633
+ };
634
+ b.bp("/ListSupportedResourceTypes");
635
+ let body;
636
+ body = JSON.stringify(
637
+ (0, import_smithy_client.take)(input, {
638
+ MaxResults: [],
639
+ NextToken: []
640
+ })
641
+ );
642
+ b.m("POST").h(headers).b(body);
643
+ return b.build();
644
+ }, "se_ListSupportedResourceTypesCommand");
645
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const b = (0, import_core.requestBuilder)(input, context);
647
+ const headers = {};
648
+ b.bp("/tags/{resourceArn}");
649
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
650
+ let body;
651
+ b.m("GET").h(headers).b(body);
652
+ return b.build();
653
+ }, "se_ListTagsForResourceCommand");
654
+ var se_ListViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
655
+ const b = (0, import_core.requestBuilder)(input, context);
656
+ const headers = {
657
+ "content-type": "application/json"
658
+ };
659
+ b.bp("/ListViews");
660
+ let body;
661
+ body = JSON.stringify(
662
+ (0, import_smithy_client.take)(input, {
663
+ MaxResults: [],
664
+ NextToken: []
665
+ })
666
+ );
667
+ b.m("POST").h(headers).b(body);
668
+ return b.build();
669
+ }, "se_ListViewsCommand");
670
+ var se_SearchCommand = /* @__PURE__ */ __name(async (input, context) => {
671
+ const b = (0, import_core.requestBuilder)(input, context);
672
+ const headers = {
673
+ "content-type": "application/json"
674
+ };
675
+ b.bp("/Search");
676
+ let body;
677
+ body = JSON.stringify(
678
+ (0, import_smithy_client.take)(input, {
679
+ MaxResults: [],
680
+ NextToken: [],
681
+ QueryString: [],
682
+ ViewArn: []
683
+ })
684
+ );
685
+ b.m("POST").h(headers).b(body);
686
+ return b.build();
687
+ }, "se_SearchCommand");
688
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
689
+ const b = (0, import_core.requestBuilder)(input, context);
690
+ const headers = {
691
+ "content-type": "application/json"
692
+ };
693
+ b.bp("/tags/{resourceArn}");
694
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
695
+ let body;
696
+ body = JSON.stringify(
697
+ (0, import_smithy_client.take)(input, {
698
+ Tags: (_) => (0, import_smithy_client._json)(_)
699
+ })
700
+ );
701
+ b.m("POST").h(headers).b(body);
702
+ return b.build();
703
+ }, "se_TagResourceCommand");
704
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
705
+ const b = (0, import_core.requestBuilder)(input, context);
706
+ const headers = {};
707
+ b.bp("/tags/{resourceArn}");
708
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
709
+ const query = (0, import_smithy_client.map)({
710
+ [_tK]: [
711
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
712
+ () => (input[_tK] || []).map((_entry) => _entry)
713
+ ]
714
+ });
715
+ let body;
716
+ b.m("DELETE").h(headers).q(query).b(body);
717
+ return b.build();
718
+ }, "se_UntagResourceCommand");
719
+ var se_UpdateIndexTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
720
+ const b = (0, import_core.requestBuilder)(input, context);
721
+ const headers = {
722
+ "content-type": "application/json"
723
+ };
724
+ b.bp("/UpdateIndexType");
725
+ let body;
726
+ body = JSON.stringify(
727
+ (0, import_smithy_client.take)(input, {
728
+ Arn: [],
729
+ Type: []
730
+ })
731
+ );
732
+ b.m("POST").h(headers).b(body);
733
+ return b.build();
734
+ }, "se_UpdateIndexTypeCommand");
735
+ var se_UpdateViewCommand = /* @__PURE__ */ __name(async (input, context) => {
736
+ const b = (0, import_core.requestBuilder)(input, context);
737
+ const headers = {
738
+ "content-type": "application/json"
739
+ };
740
+ b.bp("/UpdateView");
741
+ let body;
742
+ body = JSON.stringify(
743
+ (0, import_smithy_client.take)(input, {
744
+ Filters: (_) => (0, import_smithy_client._json)(_),
745
+ IncludedProperties: (_) => (0, import_smithy_client._json)(_),
746
+ ViewArn: []
747
+ })
748
+ );
749
+ b.m("POST").h(headers).b(body);
750
+ return b.build();
751
+ }, "se_UpdateViewCommand");
752
+ var de_AssociateDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) => {
753
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
754
+ return de_AssociateDefaultViewCommandError(output, context);
755
+ }
756
+ const contents = (0, import_smithy_client.map)({
757
+ $metadata: deserializeMetadata(output)
758
+ });
759
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
760
+ const doc = (0, import_smithy_client.take)(data, {
761
+ ViewArn: import_smithy_client.expectString
762
+ });
763
+ Object.assign(contents, doc);
764
+ return contents;
765
+ }, "de_AssociateDefaultViewCommand");
766
+ var de_AssociateDefaultViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
767
+ const parsedOutput = {
768
+ ...output,
769
+ body: await parseErrorBody(output.body, context)
770
+ };
771
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
772
+ switch (errorCode) {
773
+ case "AccessDeniedException":
774
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
775
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
776
+ case "InternalServerException":
777
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
778
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
779
+ case "ResourceNotFoundException":
780
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
781
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
782
+ case "ThrottlingException":
783
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
784
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
785
+ case "ValidationException":
786
+ case "com.amazonaws.resourceexplorer2#ValidationException":
787
+ throw await de_ValidationExceptionRes(parsedOutput, context);
788
+ default:
789
+ const parsedBody = parsedOutput.body;
790
+ return throwDefaultError({
791
+ output,
792
+ parsedBody,
793
+ errorCode
794
+ });
795
+ }
796
+ }, "de_AssociateDefaultViewCommandError");
797
+ var de_BatchGetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
798
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
799
+ return de_BatchGetViewCommandError(output, context);
800
+ }
801
+ const contents = (0, import_smithy_client.map)({
802
+ $metadata: deserializeMetadata(output)
803
+ });
804
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
805
+ const doc = (0, import_smithy_client.take)(data, {
806
+ Errors: import_smithy_client._json,
807
+ Views: (_) => de_ViewList(_, context)
808
+ });
809
+ Object.assign(contents, doc);
810
+ return contents;
811
+ }, "de_BatchGetViewCommand");
812
+ var de_BatchGetViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
813
+ const parsedOutput = {
814
+ ...output,
815
+ body: await parseErrorBody(output.body, context)
816
+ };
817
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
818
+ switch (errorCode) {
819
+ case "AccessDeniedException":
820
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
821
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
822
+ case "InternalServerException":
823
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
824
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
825
+ case "ThrottlingException":
826
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
827
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
828
+ case "UnauthorizedException":
829
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
830
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
831
+ case "ValidationException":
832
+ case "com.amazonaws.resourceexplorer2#ValidationException":
833
+ throw await de_ValidationExceptionRes(parsedOutput, context);
834
+ default:
835
+ const parsedBody = parsedOutput.body;
836
+ return throwDefaultError({
837
+ output,
838
+ parsedBody,
839
+ errorCode
840
+ });
841
+ }
842
+ }, "de_BatchGetViewCommandError");
843
+ var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
844
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
845
+ return de_CreateIndexCommandError(output, context);
846
+ }
847
+ const contents = (0, import_smithy_client.map)({
848
+ $metadata: deserializeMetadata(output)
849
+ });
850
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
851
+ const doc = (0, import_smithy_client.take)(data, {
852
+ Arn: import_smithy_client.expectString,
853
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
854
+ State: import_smithy_client.expectString
855
+ });
856
+ Object.assign(contents, doc);
857
+ return contents;
858
+ }, "de_CreateIndexCommand");
859
+ var de_CreateIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
860
+ const parsedOutput = {
861
+ ...output,
862
+ body: await parseErrorBody(output.body, context)
863
+ };
864
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
865
+ switch (errorCode) {
866
+ case "AccessDeniedException":
867
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
868
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
869
+ case "ConflictException":
870
+ case "com.amazonaws.resourceexplorer2#ConflictException":
871
+ throw await de_ConflictExceptionRes(parsedOutput, context);
872
+ case "InternalServerException":
873
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
874
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
875
+ case "ThrottlingException":
876
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
877
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
878
+ case "ValidationException":
879
+ case "com.amazonaws.resourceexplorer2#ValidationException":
880
+ throw await de_ValidationExceptionRes(parsedOutput, context);
881
+ default:
882
+ const parsedBody = parsedOutput.body;
883
+ return throwDefaultError({
884
+ output,
885
+ parsedBody,
886
+ errorCode
887
+ });
888
+ }
889
+ }, "de_CreateIndexCommandError");
890
+ var de_CreateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
891
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
892
+ return de_CreateViewCommandError(output, context);
893
+ }
894
+ const contents = (0, import_smithy_client.map)({
895
+ $metadata: deserializeMetadata(output)
896
+ });
897
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
898
+ const doc = (0, import_smithy_client.take)(data, {
899
+ View: (_) => de_View(_, context)
900
+ });
901
+ Object.assign(contents, doc);
902
+ return contents;
903
+ }, "de_CreateViewCommand");
904
+ var de_CreateViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
905
+ const parsedOutput = {
906
+ ...output,
907
+ body: await parseErrorBody(output.body, context)
908
+ };
909
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
910
+ switch (errorCode) {
911
+ case "AccessDeniedException":
912
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
913
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
914
+ case "ConflictException":
915
+ case "com.amazonaws.resourceexplorer2#ConflictException":
916
+ throw await de_ConflictExceptionRes(parsedOutput, context);
917
+ case "InternalServerException":
918
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
919
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
920
+ case "ServiceQuotaExceededException":
921
+ case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
922
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
923
+ case "ThrottlingException":
924
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
925
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
926
+ case "UnauthorizedException":
927
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
928
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
929
+ case "ValidationException":
930
+ case "com.amazonaws.resourceexplorer2#ValidationException":
931
+ throw await de_ValidationExceptionRes(parsedOutput, context);
932
+ default:
933
+ const parsedBody = parsedOutput.body;
934
+ return throwDefaultError({
935
+ output,
936
+ parsedBody,
937
+ errorCode
938
+ });
939
+ }
940
+ }, "de_CreateViewCommandError");
941
+ var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
942
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
943
+ return de_DeleteIndexCommandError(output, context);
944
+ }
945
+ const contents = (0, import_smithy_client.map)({
946
+ $metadata: deserializeMetadata(output)
947
+ });
948
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
949
+ const doc = (0, import_smithy_client.take)(data, {
950
+ Arn: import_smithy_client.expectString,
951
+ LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
952
+ State: import_smithy_client.expectString
953
+ });
954
+ Object.assign(contents, doc);
955
+ return contents;
956
+ }, "de_DeleteIndexCommand");
957
+ var de_DeleteIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
958
+ const parsedOutput = {
959
+ ...output,
960
+ body: await parseErrorBody(output.body, context)
961
+ };
962
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
963
+ switch (errorCode) {
964
+ case "AccessDeniedException":
965
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
966
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
967
+ case "InternalServerException":
968
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
969
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
970
+ case "ResourceNotFoundException":
971
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
972
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
973
+ case "ThrottlingException":
974
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
975
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
976
+ case "ValidationException":
977
+ case "com.amazonaws.resourceexplorer2#ValidationException":
978
+ throw await de_ValidationExceptionRes(parsedOutput, context);
979
+ default:
980
+ const parsedBody = parsedOutput.body;
981
+ return throwDefaultError({
982
+ output,
983
+ parsedBody,
984
+ errorCode
985
+ });
986
+ }
987
+ }, "de_DeleteIndexCommandError");
988
+ var de_DeleteViewCommand = /* @__PURE__ */ __name(async (output, context) => {
989
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
990
+ return de_DeleteViewCommandError(output, context);
991
+ }
992
+ const contents = (0, import_smithy_client.map)({
993
+ $metadata: deserializeMetadata(output)
994
+ });
995
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
996
+ const doc = (0, import_smithy_client.take)(data, {
997
+ ViewArn: import_smithy_client.expectString
998
+ });
999
+ Object.assign(contents, doc);
1000
+ return contents;
1001
+ }, "de_DeleteViewCommand");
1002
+ var de_DeleteViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1003
+ const parsedOutput = {
1004
+ ...output,
1005
+ body: await parseErrorBody(output.body, context)
1006
+ };
1007
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1008
+ switch (errorCode) {
1009
+ case "AccessDeniedException":
1010
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1011
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1012
+ case "InternalServerException":
1013
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1014
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1015
+ case "ResourceNotFoundException":
1016
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1017
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1018
+ case "ThrottlingException":
1019
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1020
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1021
+ case "UnauthorizedException":
1022
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
1023
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1024
+ case "ValidationException":
1025
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1026
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1027
+ default:
1028
+ const parsedBody = parsedOutput.body;
1029
+ return throwDefaultError({
1030
+ output,
1031
+ parsedBody,
1032
+ errorCode
1033
+ });
1034
+ }
1035
+ }, "de_DeleteViewCommandError");
1036
+ var de_DisassociateDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) => {
1037
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1038
+ return de_DisassociateDefaultViewCommandError(output, context);
1039
+ }
1040
+ const contents = (0, import_smithy_client.map)({
1041
+ $metadata: deserializeMetadata(output)
1042
+ });
1043
+ await (0, import_smithy_client.collectBody)(output.body, context);
1044
+ return contents;
1045
+ }, "de_DisassociateDefaultViewCommand");
1046
+ var de_DisassociateDefaultViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1047
+ const parsedOutput = {
1048
+ ...output,
1049
+ body: await parseErrorBody(output.body, context)
1050
+ };
1051
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1052
+ switch (errorCode) {
1053
+ case "AccessDeniedException":
1054
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1055
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1056
+ case "InternalServerException":
1057
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1058
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1059
+ case "ResourceNotFoundException":
1060
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1061
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1062
+ case "ThrottlingException":
1063
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1064
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1065
+ case "ValidationException":
1066
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1067
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1068
+ default:
1069
+ const parsedBody = parsedOutput.body;
1070
+ return throwDefaultError({
1071
+ output,
1072
+ parsedBody,
1073
+ errorCode
1074
+ });
1075
+ }
1076
+ }, "de_DisassociateDefaultViewCommandError");
1077
+ var de_GetAccountLevelServiceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1078
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1079
+ return de_GetAccountLevelServiceConfigurationCommandError(output, context);
1080
+ }
1081
+ const contents = (0, import_smithy_client.map)({
1082
+ $metadata: deserializeMetadata(output)
1083
+ });
1084
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1085
+ const doc = (0, import_smithy_client.take)(data, {
1086
+ OrgConfiguration: import_smithy_client._json
1087
+ });
1088
+ Object.assign(contents, doc);
1089
+ return contents;
1090
+ }, "de_GetAccountLevelServiceConfigurationCommand");
1091
+ var de_GetAccountLevelServiceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1092
+ const parsedOutput = {
1093
+ ...output,
1094
+ body: await parseErrorBody(output.body, context)
1095
+ };
1096
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1097
+ switch (errorCode) {
1098
+ case "AccessDeniedException":
1099
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1100
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1101
+ case "InternalServerException":
1102
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1103
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1104
+ case "ResourceNotFoundException":
1105
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1106
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1107
+ case "ThrottlingException":
1108
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1109
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1110
+ default:
1111
+ const parsedBody = parsedOutput.body;
1112
+ return throwDefaultError({
1113
+ output,
1114
+ parsedBody,
1115
+ errorCode
1116
+ });
1117
+ }
1118
+ }, "de_GetAccountLevelServiceConfigurationCommandError");
1119
+ var de_GetDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) => {
1120
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1121
+ return de_GetDefaultViewCommandError(output, context);
1122
+ }
1123
+ const contents = (0, import_smithy_client.map)({
1124
+ $metadata: deserializeMetadata(output)
1125
+ });
1126
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1127
+ const doc = (0, import_smithy_client.take)(data, {
1128
+ ViewArn: import_smithy_client.expectString
1129
+ });
1130
+ Object.assign(contents, doc);
1131
+ return contents;
1132
+ }, "de_GetDefaultViewCommand");
1133
+ var de_GetDefaultViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1134
+ const parsedOutput = {
1135
+ ...output,
1136
+ body: await parseErrorBody(output.body, context)
1137
+ };
1138
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1139
+ switch (errorCode) {
1140
+ case "AccessDeniedException":
1141
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1142
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1143
+ case "InternalServerException":
1144
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1145
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1146
+ case "ResourceNotFoundException":
1147
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1148
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1149
+ case "ThrottlingException":
1150
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1151
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1152
+ case "ValidationException":
1153
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1154
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1155
+ default:
1156
+ const parsedBody = parsedOutput.body;
1157
+ return throwDefaultError({
1158
+ output,
1159
+ parsedBody,
1160
+ errorCode
1161
+ });
1162
+ }
1163
+ }, "de_GetDefaultViewCommandError");
1164
+ var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
1165
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1166
+ return de_GetIndexCommandError(output, context);
1167
+ }
1168
+ const contents = (0, import_smithy_client.map)({
1169
+ $metadata: deserializeMetadata(output)
1170
+ });
1171
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1172
+ const doc = (0, import_smithy_client.take)(data, {
1173
+ Arn: import_smithy_client.expectString,
1174
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1175
+ LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1176
+ ReplicatingFrom: import_smithy_client._json,
1177
+ ReplicatingTo: import_smithy_client._json,
1178
+ State: import_smithy_client.expectString,
1179
+ Tags: import_smithy_client._json,
1180
+ Type: import_smithy_client.expectString
1181
+ });
1182
+ Object.assign(contents, doc);
1183
+ return contents;
1184
+ }, "de_GetIndexCommand");
1185
+ var de_GetIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
1186
+ const parsedOutput = {
1187
+ ...output,
1188
+ body: await parseErrorBody(output.body, context)
1189
+ };
1190
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1191
+ switch (errorCode) {
1192
+ case "AccessDeniedException":
1193
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1194
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1195
+ case "InternalServerException":
1196
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1197
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1198
+ case "ResourceNotFoundException":
1199
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1200
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1201
+ case "ThrottlingException":
1202
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1203
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1204
+ case "ValidationException":
1205
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1206
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1207
+ default:
1208
+ const parsedBody = parsedOutput.body;
1209
+ return throwDefaultError({
1210
+ output,
1211
+ parsedBody,
1212
+ errorCode
1213
+ });
1214
+ }
1215
+ }, "de_GetIndexCommandError");
1216
+ var de_GetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
1217
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1218
+ return de_GetViewCommandError(output, context);
1219
+ }
1220
+ const contents = (0, import_smithy_client.map)({
1221
+ $metadata: deserializeMetadata(output)
1222
+ });
1223
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1224
+ const doc = (0, import_smithy_client.take)(data, {
1225
+ Tags: import_smithy_client._json,
1226
+ View: (_) => de_View(_, context)
1227
+ });
1228
+ Object.assign(contents, doc);
1229
+ return contents;
1230
+ }, "de_GetViewCommand");
1231
+ var de_GetViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1232
+ const parsedOutput = {
1233
+ ...output,
1234
+ body: await parseErrorBody(output.body, context)
1235
+ };
1236
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1237
+ switch (errorCode) {
1238
+ case "AccessDeniedException":
1239
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1240
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1241
+ case "InternalServerException":
1242
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1243
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1244
+ case "ResourceNotFoundException":
1245
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1246
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1247
+ case "ThrottlingException":
1248
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1249
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1250
+ case "UnauthorizedException":
1251
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
1252
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1253
+ case "ValidationException":
1254
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1255
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1256
+ default:
1257
+ const parsedBody = parsedOutput.body;
1258
+ return throwDefaultError({
1259
+ output,
1260
+ parsedBody,
1261
+ errorCode
1262
+ });
1263
+ }
1264
+ }, "de_GetViewCommandError");
1265
+ var de_ListIndexesCommand = /* @__PURE__ */ __name(async (output, context) => {
1266
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1267
+ return de_ListIndexesCommandError(output, context);
1268
+ }
1269
+ const contents = (0, import_smithy_client.map)({
1270
+ $metadata: deserializeMetadata(output)
1271
+ });
1272
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1273
+ const doc = (0, import_smithy_client.take)(data, {
1274
+ Indexes: import_smithy_client._json,
1275
+ NextToken: import_smithy_client.expectString
1276
+ });
1277
+ Object.assign(contents, doc);
1278
+ return contents;
1279
+ }, "de_ListIndexesCommand");
1280
+ var de_ListIndexesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1281
+ const parsedOutput = {
1282
+ ...output,
1283
+ body: await parseErrorBody(output.body, context)
1284
+ };
1285
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1286
+ switch (errorCode) {
1287
+ case "AccessDeniedException":
1288
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1289
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1290
+ case "InternalServerException":
1291
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1292
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1293
+ case "ThrottlingException":
1294
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1295
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1296
+ case "ValidationException":
1297
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1298
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1299
+ default:
1300
+ const parsedBody = parsedOutput.body;
1301
+ return throwDefaultError({
1302
+ output,
1303
+ parsedBody,
1304
+ errorCode
1305
+ });
1306
+ }
1307
+ }, "de_ListIndexesCommandError");
1308
+ var de_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1309
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
+ return de_ListIndexesForMembersCommandError(output, context);
1311
+ }
1312
+ const contents = (0, import_smithy_client.map)({
1313
+ $metadata: deserializeMetadata(output)
1314
+ });
1315
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1316
+ const doc = (0, import_smithy_client.take)(data, {
1317
+ Indexes: import_smithy_client._json,
1318
+ NextToken: import_smithy_client.expectString
1319
+ });
1320
+ Object.assign(contents, doc);
1321
+ return contents;
1322
+ }, "de_ListIndexesForMembersCommand");
1323
+ var de_ListIndexesForMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1324
+ const parsedOutput = {
1325
+ ...output,
1326
+ body: await parseErrorBody(output.body, context)
1327
+ };
1328
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1329
+ switch (errorCode) {
1330
+ case "AccessDeniedException":
1331
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1332
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1333
+ case "InternalServerException":
1334
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1335
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1336
+ case "ThrottlingException":
1337
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1338
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1339
+ case "ValidationException":
1340
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1341
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1342
+ default:
1343
+ const parsedBody = parsedOutput.body;
1344
+ return throwDefaultError({
1345
+ output,
1346
+ parsedBody,
1347
+ errorCode
1348
+ });
1349
+ }
1350
+ }, "de_ListIndexesForMembersCommandError");
1351
+ var de_ListSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
1352
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1353
+ return de_ListSupportedResourceTypesCommandError(output, context);
1354
+ }
1355
+ const contents = (0, import_smithy_client.map)({
1356
+ $metadata: deserializeMetadata(output)
1357
+ });
1358
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1359
+ const doc = (0, import_smithy_client.take)(data, {
1360
+ NextToken: import_smithy_client.expectString,
1361
+ ResourceTypes: import_smithy_client._json
1362
+ });
1363
+ Object.assign(contents, doc);
1364
+ return contents;
1365
+ }, "de_ListSupportedResourceTypesCommand");
1366
+ var de_ListSupportedResourceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1367
+ const parsedOutput = {
1368
+ ...output,
1369
+ body: await parseErrorBody(output.body, context)
1370
+ };
1371
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1372
+ switch (errorCode) {
1373
+ case "AccessDeniedException":
1374
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1375
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1376
+ case "InternalServerException":
1377
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1378
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1379
+ case "ThrottlingException":
1380
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1381
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1382
+ case "ValidationException":
1383
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1384
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1385
+ default:
1386
+ const parsedBody = parsedOutput.body;
1387
+ return throwDefaultError({
1388
+ output,
1389
+ parsedBody,
1390
+ errorCode
1391
+ });
1392
+ }
1393
+ }, "de_ListSupportedResourceTypesCommandError");
1394
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1395
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1396
+ return de_ListTagsForResourceCommandError(output, context);
1397
+ }
1398
+ const contents = (0, import_smithy_client.map)({
1399
+ $metadata: deserializeMetadata(output)
1400
+ });
1401
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1402
+ const doc = (0, import_smithy_client.take)(data, {
1403
+ Tags: import_smithy_client._json
1404
+ });
1405
+ Object.assign(contents, doc);
1406
+ return contents;
1407
+ }, "de_ListTagsForResourceCommand");
1408
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1409
+ const parsedOutput = {
1410
+ ...output,
1411
+ body: await parseErrorBody(output.body, context)
1412
+ };
1413
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1414
+ switch (errorCode) {
1415
+ case "AccessDeniedException":
1416
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1417
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1418
+ case "InternalServerException":
1419
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1420
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1421
+ case "ResourceNotFoundException":
1422
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1423
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1424
+ case "ThrottlingException":
1425
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1426
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1427
+ case "UnauthorizedException":
1428
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
1429
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1430
+ case "ValidationException":
1431
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1432
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1433
+ default:
1434
+ const parsedBody = parsedOutput.body;
1435
+ return throwDefaultError({
1436
+ output,
1437
+ parsedBody,
1438
+ errorCode
1439
+ });
1440
+ }
1441
+ }, "de_ListTagsForResourceCommandError");
1442
+ var de_ListViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
1443
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1444
+ return de_ListViewsCommandError(output, context);
1445
+ }
1446
+ const contents = (0, import_smithy_client.map)({
1447
+ $metadata: deserializeMetadata(output)
1448
+ });
1449
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1450
+ const doc = (0, import_smithy_client.take)(data, {
1451
+ NextToken: import_smithy_client.expectString,
1452
+ Views: import_smithy_client._json
1453
+ });
1454
+ Object.assign(contents, doc);
1455
+ return contents;
1456
+ }, "de_ListViewsCommand");
1457
+ var de_ListViewsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1458
+ const parsedOutput = {
1459
+ ...output,
1460
+ body: await parseErrorBody(output.body, context)
1461
+ };
1462
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
+ switch (errorCode) {
1464
+ case "AccessDeniedException":
1465
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1466
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1467
+ case "InternalServerException":
1468
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1469
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1470
+ case "ThrottlingException":
1471
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1472
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1473
+ case "ValidationException":
1474
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1475
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1476
+ default:
1477
+ const parsedBody = parsedOutput.body;
1478
+ return throwDefaultError({
1479
+ output,
1480
+ parsedBody,
1481
+ errorCode
1482
+ });
1483
+ }
1484
+ }, "de_ListViewsCommandError");
1485
+ var de_SearchCommand = /* @__PURE__ */ __name(async (output, context) => {
1486
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1487
+ return de_SearchCommandError(output, context);
1488
+ }
1489
+ const contents = (0, import_smithy_client.map)({
1490
+ $metadata: deserializeMetadata(output)
1491
+ });
1492
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1493
+ const doc = (0, import_smithy_client.take)(data, {
1494
+ Count: import_smithy_client._json,
1495
+ NextToken: import_smithy_client.expectString,
1496
+ Resources: (_) => de_ResourceList(_, context),
1497
+ ViewArn: import_smithy_client.expectString
1498
+ });
1499
+ Object.assign(contents, doc);
1500
+ return contents;
1501
+ }, "de_SearchCommand");
1502
+ var de_SearchCommandError = /* @__PURE__ */ __name(async (output, context) => {
1503
+ const parsedOutput = {
1504
+ ...output,
1505
+ body: await parseErrorBody(output.body, context)
1506
+ };
1507
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1508
+ switch (errorCode) {
1509
+ case "AccessDeniedException":
1510
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1511
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1512
+ case "InternalServerException":
1513
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1514
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1515
+ case "ResourceNotFoundException":
1516
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1517
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1518
+ case "ThrottlingException":
1519
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1520
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1521
+ case "UnauthorizedException":
1522
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
1523
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1524
+ case "ValidationException":
1525
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1526
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1527
+ default:
1528
+ const parsedBody = parsedOutput.body;
1529
+ return throwDefaultError({
1530
+ output,
1531
+ parsedBody,
1532
+ errorCode
1533
+ });
1534
+ }
1535
+ }, "de_SearchCommandError");
1536
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1537
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1538
+ return de_TagResourceCommandError(output, context);
1539
+ }
1540
+ const contents = (0, import_smithy_client.map)({
1541
+ $metadata: deserializeMetadata(output)
1542
+ });
1543
+ await (0, import_smithy_client.collectBody)(output.body, context);
1544
+ return contents;
1545
+ }, "de_TagResourceCommand");
1546
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1547
+ const parsedOutput = {
1548
+ ...output,
1549
+ body: await parseErrorBody(output.body, context)
1550
+ };
1551
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1552
+ switch (errorCode) {
1553
+ case "AccessDeniedException":
1554
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1555
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1556
+ case "ConflictException":
1557
+ case "com.amazonaws.resourceexplorer2#ConflictException":
1558
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1559
+ case "InternalServerException":
1560
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1561
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1562
+ case "ThrottlingException":
1563
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1564
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1565
+ case "UnauthorizedException":
1566
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
1567
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1568
+ case "ValidationException":
1569
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1570
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1571
+ default:
1572
+ const parsedBody = parsedOutput.body;
1573
+ return throwDefaultError({
1574
+ output,
1575
+ parsedBody,
1576
+ errorCode
1577
+ });
1578
+ }
1579
+ }, "de_TagResourceCommandError");
1580
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
+ return de_UntagResourceCommandError(output, context);
1583
+ }
1584
+ const contents = (0, import_smithy_client.map)({
1585
+ $metadata: deserializeMetadata(output)
1586
+ });
1587
+ await (0, import_smithy_client.collectBody)(output.body, context);
1588
+ return contents;
1589
+ }, "de_UntagResourceCommand");
1590
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1591
+ const parsedOutput = {
1592
+ ...output,
1593
+ body: await parseErrorBody(output.body, context)
1594
+ };
1595
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1596
+ switch (errorCode) {
1597
+ case "AccessDeniedException":
1598
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1599
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1600
+ case "InternalServerException":
1601
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1602
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1603
+ case "ResourceNotFoundException":
1604
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1605
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1606
+ case "ThrottlingException":
1607
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1608
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1609
+ case "UnauthorizedException":
1610
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
1611
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1612
+ case "ValidationException":
1613
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1614
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1615
+ default:
1616
+ const parsedBody = parsedOutput.body;
1617
+ return throwDefaultError({
1618
+ output,
1619
+ parsedBody,
1620
+ errorCode
1621
+ });
1622
+ }
1623
+ }, "de_UntagResourceCommandError");
1624
+ var de_UpdateIndexTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1625
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1626
+ return de_UpdateIndexTypeCommandError(output, context);
1627
+ }
1628
+ const contents = (0, import_smithy_client.map)({
1629
+ $metadata: deserializeMetadata(output)
1630
+ });
1631
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1632
+ const doc = (0, import_smithy_client.take)(data, {
1633
+ Arn: import_smithy_client.expectString,
1634
+ LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1635
+ State: import_smithy_client.expectString,
1636
+ Type: import_smithy_client.expectString
1637
+ });
1638
+ Object.assign(contents, doc);
1639
+ return contents;
1640
+ }, "de_UpdateIndexTypeCommand");
1641
+ var de_UpdateIndexTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1642
+ const parsedOutput = {
1643
+ ...output,
1644
+ body: await parseErrorBody(output.body, context)
1645
+ };
1646
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1647
+ switch (errorCode) {
1648
+ case "AccessDeniedException":
1649
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1650
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1651
+ case "ConflictException":
1652
+ case "com.amazonaws.resourceexplorer2#ConflictException":
1653
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1654
+ case "InternalServerException":
1655
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1656
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1657
+ case "ResourceNotFoundException":
1658
+ case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
1659
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1660
+ case "ServiceQuotaExceededException":
1661
+ case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
1662
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1663
+ case "ThrottlingException":
1664
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1665
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1666
+ case "ValidationException":
1667
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1668
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1669
+ default:
1670
+ const parsedBody = parsedOutput.body;
1671
+ return throwDefaultError({
1672
+ output,
1673
+ parsedBody,
1674
+ errorCode
1675
+ });
1676
+ }
1677
+ }, "de_UpdateIndexTypeCommandError");
1678
+ var de_UpdateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
1679
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1680
+ return de_UpdateViewCommandError(output, context);
1681
+ }
1682
+ const contents = (0, import_smithy_client.map)({
1683
+ $metadata: deserializeMetadata(output)
1684
+ });
1685
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1686
+ const doc = (0, import_smithy_client.take)(data, {
1687
+ View: (_) => de_View(_, context)
1688
+ });
1689
+ Object.assign(contents, doc);
1690
+ return contents;
1691
+ }, "de_UpdateViewCommand");
1692
+ var de_UpdateViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
1693
+ const parsedOutput = {
1694
+ ...output,
1695
+ body: await parseErrorBody(output.body, context)
1696
+ };
1697
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1698
+ switch (errorCode) {
1699
+ case "AccessDeniedException":
1700
+ case "com.amazonaws.resourceexplorer2#AccessDeniedException":
1701
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1702
+ case "InternalServerException":
1703
+ case "com.amazonaws.resourceexplorer2#InternalServerException":
1704
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1705
+ case "ServiceQuotaExceededException":
1706
+ case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
1707
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1708
+ case "ThrottlingException":
1709
+ case "com.amazonaws.resourceexplorer2#ThrottlingException":
1710
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1711
+ case "UnauthorizedException":
1712
+ case "com.amazonaws.resourceexplorer2#UnauthorizedException":
1713
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1714
+ case "ValidationException":
1715
+ case "com.amazonaws.resourceexplorer2#ValidationException":
1716
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1717
+ default:
1718
+ const parsedBody = parsedOutput.body;
1719
+ return throwDefaultError({
1720
+ output,
1721
+ parsedBody,
1722
+ errorCode
1723
+ });
1724
+ }
1725
+ }, "de_UpdateViewCommandError");
1726
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ResourceExplorer2ServiceException);
1727
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1728
+ const contents = (0, import_smithy_client.map)({});
1729
+ const data = parsedOutput.body;
1730
+ const doc = (0, import_smithy_client.take)(data, {
1731
+ Message: import_smithy_client.expectString
1732
+ });
1733
+ Object.assign(contents, doc);
1734
+ const exception = new AccessDeniedException({
1735
+ $metadata: deserializeMetadata(parsedOutput),
1736
+ ...contents
1737
+ });
1738
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1739
+ }, "de_AccessDeniedExceptionRes");
1740
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1741
+ const contents = (0, import_smithy_client.map)({});
1742
+ const data = parsedOutput.body;
1743
+ const doc = (0, import_smithy_client.take)(data, {
1744
+ Message: import_smithy_client.expectString
1745
+ });
1746
+ Object.assign(contents, doc);
1747
+ const exception = new ConflictException({
1748
+ $metadata: deserializeMetadata(parsedOutput),
1749
+ ...contents
1750
+ });
1751
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1752
+ }, "de_ConflictExceptionRes");
1753
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1754
+ const contents = (0, import_smithy_client.map)({});
1755
+ const data = parsedOutput.body;
1756
+ const doc = (0, import_smithy_client.take)(data, {
1757
+ Message: import_smithy_client.expectString
1758
+ });
1759
+ Object.assign(contents, doc);
1760
+ const exception = new InternalServerException({
1761
+ $metadata: deserializeMetadata(parsedOutput),
1762
+ ...contents
1763
+ });
1764
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1765
+ }, "de_InternalServerExceptionRes");
1766
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1767
+ const contents = (0, import_smithy_client.map)({});
1768
+ const data = parsedOutput.body;
1769
+ const doc = (0, import_smithy_client.take)(data, {
1770
+ Message: import_smithy_client.expectString
1771
+ });
1772
+ Object.assign(contents, doc);
1773
+ const exception = new ResourceNotFoundException({
1774
+ $metadata: deserializeMetadata(parsedOutput),
1775
+ ...contents
1776
+ });
1777
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1778
+ }, "de_ResourceNotFoundExceptionRes");
1779
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1780
+ const contents = (0, import_smithy_client.map)({});
1781
+ const data = parsedOutput.body;
1782
+ const doc = (0, import_smithy_client.take)(data, {
1783
+ Message: import_smithy_client.expectString,
1784
+ Name: import_smithy_client.expectString,
1785
+ Value: import_smithy_client.expectString
1786
+ });
1787
+ Object.assign(contents, doc);
1788
+ const exception = new ServiceQuotaExceededException({
1789
+ $metadata: deserializeMetadata(parsedOutput),
1790
+ ...contents
1791
+ });
1792
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1793
+ }, "de_ServiceQuotaExceededExceptionRes");
1794
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1795
+ const contents = (0, import_smithy_client.map)({});
1796
+ const data = parsedOutput.body;
1797
+ const doc = (0, import_smithy_client.take)(data, {
1798
+ Message: import_smithy_client.expectString
1799
+ });
1800
+ Object.assign(contents, doc);
1801
+ const exception = new ThrottlingException({
1802
+ $metadata: deserializeMetadata(parsedOutput),
1803
+ ...contents
1804
+ });
1805
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1806
+ }, "de_ThrottlingExceptionRes");
1807
+ var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1808
+ const contents = (0, import_smithy_client.map)({});
1809
+ const data = parsedOutput.body;
1810
+ const doc = (0, import_smithy_client.take)(data, {
1811
+ Message: import_smithy_client.expectString
1812
+ });
1813
+ Object.assign(contents, doc);
1814
+ const exception = new UnauthorizedException({
1815
+ $metadata: deserializeMetadata(parsedOutput),
1816
+ ...contents
1817
+ });
1818
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1819
+ }, "de_UnauthorizedExceptionRes");
1820
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1821
+ const contents = (0, import_smithy_client.map)({});
1822
+ const data = parsedOutput.body;
1823
+ const doc = (0, import_smithy_client.take)(data, {
1824
+ FieldList: import_smithy_client._json,
1825
+ Message: import_smithy_client.expectString
1826
+ });
1827
+ Object.assign(contents, doc);
1828
+ const exception = new ValidationException({
1829
+ $metadata: deserializeMetadata(parsedOutput),
1830
+ ...contents
1831
+ });
1832
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1833
+ }, "de_ValidationExceptionRes");
1834
+ var de_Resource = /* @__PURE__ */ __name((output, context) => {
1835
+ return (0, import_smithy_client.take)(output, {
1836
+ Arn: import_smithy_client.expectString,
1837
+ LastReportedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1838
+ OwningAccountId: import_smithy_client.expectString,
1839
+ Properties: (_) => de_ResourcePropertyList(_, context),
1840
+ Region: import_smithy_client.expectString,
1841
+ ResourceType: import_smithy_client.expectString,
1842
+ Service: import_smithy_client.expectString
1843
+ });
1844
+ }, "de_Resource");
1845
+ var de_ResourceList = /* @__PURE__ */ __name((output, context) => {
1846
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1847
+ return de_Resource(entry, context);
1848
+ });
1849
+ return retVal;
1850
+ }, "de_ResourceList");
1851
+ var de_ResourceProperty = /* @__PURE__ */ __name((output, context) => {
1852
+ return (0, import_smithy_client.take)(output, {
1853
+ Data: (_) => de_Document(_, context),
1854
+ LastReportedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1855
+ Name: import_smithy_client.expectString
1856
+ });
1857
+ }, "de_ResourceProperty");
1858
+ var de_ResourcePropertyList = /* @__PURE__ */ __name((output, context) => {
1859
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1860
+ return de_ResourceProperty(entry, context);
1861
+ });
1862
+ return retVal;
1863
+ }, "de_ResourcePropertyList");
1864
+ var de_View = /* @__PURE__ */ __name((output, context) => {
1865
+ return (0, import_smithy_client.take)(output, {
1866
+ Filters: import_smithy_client._json,
1867
+ IncludedProperties: import_smithy_client._json,
1868
+ LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1869
+ Owner: import_smithy_client.expectString,
1870
+ Scope: import_smithy_client.expectString,
1871
+ ViewArn: import_smithy_client.expectString
1872
+ });
1873
+ }, "de_View");
1874
+ var de_ViewList = /* @__PURE__ */ __name((output, context) => {
1875
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1876
+ return de_View(entry, context);
1877
+ });
1878
+ return retVal;
1879
+ }, "de_ViewList");
1880
+ var de_Document = /* @__PURE__ */ __name((output, context) => {
1881
+ return output;
1882
+ }, "de_Document");
1883
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1884
+ httpStatusCode: output.statusCode,
1885
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1886
+ extendedRequestId: output.headers["x-amz-id-2"],
1887
+ cfId: output.headers["x-amz-cf-id"]
1888
+ }), "deserializeMetadata");
1889
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1890
+ var _tK = "tagKeys";
1891
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1892
+ if (encoded.length) {
1893
+ return JSON.parse(encoded);
1894
+ }
1895
+ return {};
1896
+ }), "parseBody");
1897
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1898
+ const value = await parseBody(errorBody, context);
1899
+ value.message = value.message ?? value.Message;
1900
+ return value;
1901
+ }, "parseErrorBody");
1902
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1903
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1904
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1905
+ let cleanValue = rawValue;
1906
+ if (typeof cleanValue === "number") {
1907
+ cleanValue = cleanValue.toString();
1908
+ }
1909
+ if (cleanValue.indexOf(",") >= 0) {
1910
+ cleanValue = cleanValue.split(",")[0];
1911
+ }
1912
+ if (cleanValue.indexOf(":") >= 0) {
1913
+ cleanValue = cleanValue.split(":")[0];
1914
+ }
1915
+ if (cleanValue.indexOf("#") >= 0) {
1916
+ cleanValue = cleanValue.split("#")[1];
1917
+ }
1918
+ return cleanValue;
1919
+ }, "sanitizeErrorCode");
1920
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1921
+ if (headerKey !== void 0) {
1922
+ return sanitizeErrorCode(output.headers[headerKey]);
1923
+ }
1924
+ if (data.code !== void 0) {
1925
+ return sanitizeErrorCode(data.code);
1926
+ }
1927
+ if (data["__type"] !== void 0) {
1928
+ return sanitizeErrorCode(data["__type"]);
1929
+ }
1930
+ }, "loadRestJsonErrorCode");
1931
+
1932
+ // src/commands/AssociateDefaultViewCommand.ts
1933
+ var _AssociateDefaultViewCommand = class _AssociateDefaultViewCommand extends import_smithy_client.Command.classBuilder().ep({
1934
+ ...commonParams
1935
+ }).m(function(Command, cs, config, o) {
1936
+ return [
1937
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1938
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1939
+ ];
1940
+ }).s("ResourceExplorer", "AssociateDefaultView", {}).n("ResourceExplorer2Client", "AssociateDefaultViewCommand").f(void 0, void 0).ser(se_AssociateDefaultViewCommand).de(de_AssociateDefaultViewCommand).build() {
1941
+ };
1942
+ __name(_AssociateDefaultViewCommand, "AssociateDefaultViewCommand");
1943
+ var AssociateDefaultViewCommand = _AssociateDefaultViewCommand;
1944
+
1945
+ // src/commands/BatchGetViewCommand.ts
1946
+
1947
+
1948
+
1949
+
1950
+ var _BatchGetViewCommand = class _BatchGetViewCommand extends import_smithy_client.Command.classBuilder().ep({
1951
+ ...commonParams
1952
+ }).m(function(Command, cs, config, o) {
1953
+ return [
1954
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1955
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1956
+ ];
1957
+ }).s("ResourceExplorer", "BatchGetView", {}).n("ResourceExplorer2Client", "BatchGetViewCommand").f(void 0, BatchGetViewOutputFilterSensitiveLog).ser(se_BatchGetViewCommand).de(de_BatchGetViewCommand).build() {
1958
+ };
1959
+ __name(_BatchGetViewCommand, "BatchGetViewCommand");
1960
+ var BatchGetViewCommand = _BatchGetViewCommand;
1961
+
1962
+ // src/commands/CreateIndexCommand.ts
1963
+
1964
+
1965
+
1966
+
1967
+ var _CreateIndexCommand = class _CreateIndexCommand extends import_smithy_client.Command.classBuilder().ep({
1968
+ ...commonParams
1969
+ }).m(function(Command, cs, config, o) {
1970
+ return [
1971
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1972
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1973
+ ];
1974
+ }).s("ResourceExplorer", "CreateIndex", {}).n("ResourceExplorer2Client", "CreateIndexCommand").f(CreateIndexInputFilterSensitiveLog, void 0).ser(se_CreateIndexCommand).de(de_CreateIndexCommand).build() {
1975
+ };
1976
+ __name(_CreateIndexCommand, "CreateIndexCommand");
1977
+ var CreateIndexCommand = _CreateIndexCommand;
1978
+
1979
+ // src/commands/CreateViewCommand.ts
1980
+
1981
+
1982
+
1983
+
1984
+ var _CreateViewCommand = class _CreateViewCommand extends import_smithy_client.Command.classBuilder().ep({
1985
+ ...commonParams
1986
+ }).m(function(Command, cs, config, o) {
1987
+ return [
1988
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1989
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1990
+ ];
1991
+ }).s("ResourceExplorer", "CreateView", {}).n("ResourceExplorer2Client", "CreateViewCommand").f(CreateViewInputFilterSensitiveLog, CreateViewOutputFilterSensitiveLog).ser(se_CreateViewCommand).de(de_CreateViewCommand).build() {
1992
+ };
1993
+ __name(_CreateViewCommand, "CreateViewCommand");
1994
+ var CreateViewCommand = _CreateViewCommand;
1995
+
1996
+ // src/commands/DeleteIndexCommand.ts
1997
+
1998
+
1999
+
2000
+
2001
+ var _DeleteIndexCommand = class _DeleteIndexCommand extends import_smithy_client.Command.classBuilder().ep({
2002
+ ...commonParams
2003
+ }).m(function(Command, cs, config, o) {
2004
+ return [
2005
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2006
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2007
+ ];
2008
+ }).s("ResourceExplorer", "DeleteIndex", {}).n("ResourceExplorer2Client", "DeleteIndexCommand").f(void 0, void 0).ser(se_DeleteIndexCommand).de(de_DeleteIndexCommand).build() {
2009
+ };
2010
+ __name(_DeleteIndexCommand, "DeleteIndexCommand");
2011
+ var DeleteIndexCommand = _DeleteIndexCommand;
2012
+
2013
+ // src/commands/DeleteViewCommand.ts
2014
+
2015
+
2016
+
2017
+
2018
+ var _DeleteViewCommand = class _DeleteViewCommand extends import_smithy_client.Command.classBuilder().ep({
2019
+ ...commonParams
2020
+ }).m(function(Command, cs, config, o) {
2021
+ return [
2022
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2023
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2024
+ ];
2025
+ }).s("ResourceExplorer", "DeleteView", {}).n("ResourceExplorer2Client", "DeleteViewCommand").f(void 0, void 0).ser(se_DeleteViewCommand).de(de_DeleteViewCommand).build() {
2026
+ };
2027
+ __name(_DeleteViewCommand, "DeleteViewCommand");
2028
+ var DeleteViewCommand = _DeleteViewCommand;
2029
+
2030
+ // src/commands/DisassociateDefaultViewCommand.ts
2031
+
2032
+
2033
+
2034
+
2035
+ var _DisassociateDefaultViewCommand = class _DisassociateDefaultViewCommand extends import_smithy_client.Command.classBuilder().ep({
2036
+ ...commonParams
2037
+ }).m(function(Command, cs, config, o) {
2038
+ return [
2039
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2040
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2041
+ ];
2042
+ }).s("ResourceExplorer", "DisassociateDefaultView", {}).n("ResourceExplorer2Client", "DisassociateDefaultViewCommand").f(void 0, void 0).ser(se_DisassociateDefaultViewCommand).de(de_DisassociateDefaultViewCommand).build() {
2043
+ };
2044
+ __name(_DisassociateDefaultViewCommand, "DisassociateDefaultViewCommand");
2045
+ var DisassociateDefaultViewCommand = _DisassociateDefaultViewCommand;
2046
+
2047
+ // src/commands/GetAccountLevelServiceConfigurationCommand.ts
2048
+
2049
+
2050
+
2051
+
2052
+ var _GetAccountLevelServiceConfigurationCommand = class _GetAccountLevelServiceConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
2053
+ ...commonParams
2054
+ }).m(function(Command, cs, config, o) {
2055
+ return [
2056
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2057
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2058
+ ];
2059
+ }).s("ResourceExplorer", "GetAccountLevelServiceConfiguration", {}).n("ResourceExplorer2Client", "GetAccountLevelServiceConfigurationCommand").f(void 0, void 0).ser(se_GetAccountLevelServiceConfigurationCommand).de(de_GetAccountLevelServiceConfigurationCommand).build() {
2060
+ };
2061
+ __name(_GetAccountLevelServiceConfigurationCommand, "GetAccountLevelServiceConfigurationCommand");
2062
+ var GetAccountLevelServiceConfigurationCommand = _GetAccountLevelServiceConfigurationCommand;
2063
+
2064
+ // src/commands/GetDefaultViewCommand.ts
2065
+
2066
+
2067
+
2068
+
2069
+ var _GetDefaultViewCommand = class _GetDefaultViewCommand extends import_smithy_client.Command.classBuilder().ep({
2070
+ ...commonParams
2071
+ }).m(function(Command, cs, config, o) {
2072
+ return [
2073
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2074
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2075
+ ];
2076
+ }).s("ResourceExplorer", "GetDefaultView", {}).n("ResourceExplorer2Client", "GetDefaultViewCommand").f(void 0, void 0).ser(se_GetDefaultViewCommand).de(de_GetDefaultViewCommand).build() {
2077
+ };
2078
+ __name(_GetDefaultViewCommand, "GetDefaultViewCommand");
2079
+ var GetDefaultViewCommand = _GetDefaultViewCommand;
2080
+
2081
+ // src/commands/GetIndexCommand.ts
2082
+
2083
+
2084
+
2085
+
2086
+ var _GetIndexCommand = class _GetIndexCommand extends import_smithy_client.Command.classBuilder().ep({
2087
+ ...commonParams
2088
+ }).m(function(Command, cs, config, o) {
2089
+ return [
2090
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2091
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2092
+ ];
2093
+ }).s("ResourceExplorer", "GetIndex", {}).n("ResourceExplorer2Client", "GetIndexCommand").f(void 0, GetIndexOutputFilterSensitiveLog).ser(se_GetIndexCommand).de(de_GetIndexCommand).build() {
2094
+ };
2095
+ __name(_GetIndexCommand, "GetIndexCommand");
2096
+ var GetIndexCommand = _GetIndexCommand;
2097
+
2098
+ // src/commands/GetViewCommand.ts
2099
+
2100
+
2101
+
2102
+
2103
+ var _GetViewCommand = class _GetViewCommand extends import_smithy_client.Command.classBuilder().ep({
2104
+ ...commonParams
2105
+ }).m(function(Command, cs, config, o) {
2106
+ return [
2107
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2108
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2109
+ ];
2110
+ }).s("ResourceExplorer", "GetView", {}).n("ResourceExplorer2Client", "GetViewCommand").f(void 0, GetViewOutputFilterSensitiveLog).ser(se_GetViewCommand).de(de_GetViewCommand).build() {
2111
+ };
2112
+ __name(_GetViewCommand, "GetViewCommand");
2113
+ var GetViewCommand = _GetViewCommand;
2114
+
2115
+ // src/commands/ListIndexesCommand.ts
2116
+
2117
+
2118
+
2119
+
2120
+ var _ListIndexesCommand = class _ListIndexesCommand extends import_smithy_client.Command.classBuilder().ep({
2121
+ ...commonParams
2122
+ }).m(function(Command, cs, config, o) {
2123
+ return [
2124
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2125
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2126
+ ];
2127
+ }).s("ResourceExplorer", "ListIndexes", {}).n("ResourceExplorer2Client", "ListIndexesCommand").f(void 0, void 0).ser(se_ListIndexesCommand).de(de_ListIndexesCommand).build() {
2128
+ };
2129
+ __name(_ListIndexesCommand, "ListIndexesCommand");
2130
+ var ListIndexesCommand = _ListIndexesCommand;
2131
+
2132
+ // src/commands/ListIndexesForMembersCommand.ts
2133
+
2134
+
2135
+
2136
+
2137
+ var _ListIndexesForMembersCommand = class _ListIndexesForMembersCommand extends import_smithy_client.Command.classBuilder().ep({
2138
+ ...commonParams
2139
+ }).m(function(Command, cs, config, o) {
2140
+ return [
2141
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2142
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2143
+ ];
2144
+ }).s("ResourceExplorer", "ListIndexesForMembers", {}).n("ResourceExplorer2Client", "ListIndexesForMembersCommand").f(void 0, void 0).ser(se_ListIndexesForMembersCommand).de(de_ListIndexesForMembersCommand).build() {
2145
+ };
2146
+ __name(_ListIndexesForMembersCommand, "ListIndexesForMembersCommand");
2147
+ var ListIndexesForMembersCommand = _ListIndexesForMembersCommand;
2148
+
2149
+ // src/commands/ListSupportedResourceTypesCommand.ts
2150
+
2151
+
2152
+
2153
+
2154
+ var _ListSupportedResourceTypesCommand = class _ListSupportedResourceTypesCommand extends import_smithy_client.Command.classBuilder().ep({
2155
+ ...commonParams
2156
+ }).m(function(Command, cs, config, o) {
2157
+ return [
2158
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2159
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2160
+ ];
2161
+ }).s("ResourceExplorer", "ListSupportedResourceTypes", {}).n("ResourceExplorer2Client", "ListSupportedResourceTypesCommand").f(void 0, void 0).ser(se_ListSupportedResourceTypesCommand).de(de_ListSupportedResourceTypesCommand).build() {
2162
+ };
2163
+ __name(_ListSupportedResourceTypesCommand, "ListSupportedResourceTypesCommand");
2164
+ var ListSupportedResourceTypesCommand = _ListSupportedResourceTypesCommand;
2165
+
2166
+ // src/commands/ListTagsForResourceCommand.ts
2167
+
2168
+
2169
+
2170
+
2171
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2172
+ ...commonParams
2173
+ }).m(function(Command, cs, config, o) {
2174
+ return [
2175
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2176
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2177
+ ];
2178
+ }).s("ResourceExplorer", "ListTagsForResource", {}).n("ResourceExplorer2Client", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceOutputFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2179
+ };
2180
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2181
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2182
+
2183
+ // src/commands/ListViewsCommand.ts
2184
+
2185
+
2186
+
2187
+
2188
+ var _ListViewsCommand = class _ListViewsCommand extends import_smithy_client.Command.classBuilder().ep({
2189
+ ...commonParams
2190
+ }).m(function(Command, cs, config, o) {
2191
+ return [
2192
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2193
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2194
+ ];
2195
+ }).s("ResourceExplorer", "ListViews", {}).n("ResourceExplorer2Client", "ListViewsCommand").f(void 0, void 0).ser(se_ListViewsCommand).de(de_ListViewsCommand).build() {
2196
+ };
2197
+ __name(_ListViewsCommand, "ListViewsCommand");
2198
+ var ListViewsCommand = _ListViewsCommand;
2199
+
2200
+ // src/commands/SearchCommand.ts
2201
+
2202
+
2203
+
2204
+
2205
+ var _SearchCommand = class _SearchCommand extends import_smithy_client.Command.classBuilder().ep({
2206
+ ...commonParams
2207
+ }).m(function(Command, cs, config, o) {
2208
+ return [
2209
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2210
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2211
+ ];
2212
+ }).s("ResourceExplorer", "Search", {}).n("ResourceExplorer2Client", "SearchCommand").f(SearchInputFilterSensitiveLog, void 0).ser(se_SearchCommand).de(de_SearchCommand).build() {
2213
+ };
2214
+ __name(_SearchCommand, "SearchCommand");
2215
+ var SearchCommand = _SearchCommand;
2216
+
2217
+ // src/commands/TagResourceCommand.ts
2218
+
2219
+
2220
+
2221
+
2222
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2223
+ ...commonParams
2224
+ }).m(function(Command, cs, config, o) {
2225
+ return [
2226
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2227
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2228
+ ];
2229
+ }).s("ResourceExplorer", "TagResource", {}).n("ResourceExplorer2Client", "TagResourceCommand").f(TagResourceInputFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2230
+ };
2231
+ __name(_TagResourceCommand, "TagResourceCommand");
2232
+ var TagResourceCommand = _TagResourceCommand;
2233
+
2234
+ // src/commands/UntagResourceCommand.ts
2235
+
2236
+
2237
+
2238
+
2239
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2240
+ ...commonParams
2241
+ }).m(function(Command, cs, config, o) {
2242
+ return [
2243
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2244
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2245
+ ];
2246
+ }).s("ResourceExplorer", "UntagResource", {}).n("ResourceExplorer2Client", "UntagResourceCommand").f(UntagResourceInputFilterSensitiveLog, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2247
+ };
2248
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2249
+ var UntagResourceCommand = _UntagResourceCommand;
2250
+
2251
+ // src/commands/UpdateIndexTypeCommand.ts
2252
+
2253
+
2254
+
2255
+
2256
+ var _UpdateIndexTypeCommand = class _UpdateIndexTypeCommand extends import_smithy_client.Command.classBuilder().ep({
2257
+ ...commonParams
2258
+ }).m(function(Command, cs, config, o) {
2259
+ return [
2260
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2261
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2262
+ ];
2263
+ }).s("ResourceExplorer", "UpdateIndexType", {}).n("ResourceExplorer2Client", "UpdateIndexTypeCommand").f(void 0, void 0).ser(se_UpdateIndexTypeCommand).de(de_UpdateIndexTypeCommand).build() {
2264
+ };
2265
+ __name(_UpdateIndexTypeCommand, "UpdateIndexTypeCommand");
2266
+ var UpdateIndexTypeCommand = _UpdateIndexTypeCommand;
2267
+
2268
+ // src/commands/UpdateViewCommand.ts
2269
+
2270
+
2271
+
2272
+
2273
+ var _UpdateViewCommand = class _UpdateViewCommand extends import_smithy_client.Command.classBuilder().ep({
2274
+ ...commonParams
2275
+ }).m(function(Command, cs, config, o) {
2276
+ return [
2277
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2278
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2279
+ ];
2280
+ }).s("ResourceExplorer", "UpdateView", {}).n("ResourceExplorer2Client", "UpdateViewCommand").f(UpdateViewInputFilterSensitiveLog, UpdateViewOutputFilterSensitiveLog).ser(se_UpdateViewCommand).de(de_UpdateViewCommand).build() {
2281
+ };
2282
+ __name(_UpdateViewCommand, "UpdateViewCommand");
2283
+ var UpdateViewCommand = _UpdateViewCommand;
2284
+
2285
+ // src/ResourceExplorer2.ts
2286
+ var commands = {
2287
+ AssociateDefaultViewCommand,
2288
+ BatchGetViewCommand,
2289
+ CreateIndexCommand,
2290
+ CreateViewCommand,
2291
+ DeleteIndexCommand,
2292
+ DeleteViewCommand,
2293
+ DisassociateDefaultViewCommand,
2294
+ GetAccountLevelServiceConfigurationCommand,
2295
+ GetDefaultViewCommand,
2296
+ GetIndexCommand,
2297
+ GetViewCommand,
2298
+ ListIndexesCommand,
2299
+ ListIndexesForMembersCommand,
2300
+ ListSupportedResourceTypesCommand,
2301
+ ListTagsForResourceCommand,
2302
+ ListViewsCommand,
2303
+ SearchCommand,
2304
+ TagResourceCommand,
2305
+ UntagResourceCommand,
2306
+ UpdateIndexTypeCommand,
2307
+ UpdateViewCommand
2308
+ };
2309
+ var _ResourceExplorer2 = class _ResourceExplorer2 extends ResourceExplorer2Client {
2310
+ };
2311
+ __name(_ResourceExplorer2, "ResourceExplorer2");
2312
+ var ResourceExplorer2 = _ResourceExplorer2;
2313
+ (0, import_smithy_client.createAggregatedClient)(commands, ResourceExplorer2);
2314
+
2315
+ // src/pagination/ListIndexesForMembersPaginator.ts
2316
+
2317
+ var paginateListIndexesForMembers = (0, import_core.createPaginator)(ResourceExplorer2Client, ListIndexesForMembersCommand, "NextToken", "NextToken", "MaxResults");
2318
+
2319
+ // src/pagination/ListIndexesPaginator.ts
2320
+
2321
+ var paginateListIndexes = (0, import_core.createPaginator)(ResourceExplorer2Client, ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
2322
+
2323
+ // src/pagination/ListSupportedResourceTypesPaginator.ts
2324
+
2325
+ var paginateListSupportedResourceTypes = (0, import_core.createPaginator)(ResourceExplorer2Client, ListSupportedResourceTypesCommand, "NextToken", "NextToken", "MaxResults");
2326
+
2327
+ // src/pagination/ListViewsPaginator.ts
2328
+
2329
+ var paginateListViews = (0, import_core.createPaginator)(ResourceExplorer2Client, ListViewsCommand, "NextToken", "NextToken", "MaxResults");
2330
+
2331
+ // src/pagination/SearchPaginator.ts
2332
+
2333
+ var paginateSearch = (0, import_core.createPaginator)(ResourceExplorer2Client, SearchCommand, "NextToken", "NextToken", "MaxResults");
2334
+
2335
+ // src/index.ts
2336
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2337
+ // Annotate the CommonJS export names for ESM import in node:
2338
+
2339
+ 0 && (module.exports = {
2340
+ AWSServiceAccessStatus,
2341
+ AccessDeniedException,
2342
+ AssociateDefaultViewCommand,
2343
+ BatchGetViewCommand,
2344
+ BatchGetViewOutputFilterSensitiveLog,
2345
+ ConflictException,
2346
+ CreateIndexCommand,
2347
+ CreateIndexInputFilterSensitiveLog,
2348
+ CreateViewCommand,
2349
+ CreateViewInputFilterSensitiveLog,
2350
+ CreateViewOutputFilterSensitiveLog,
2351
+ DeleteIndexCommand,
2352
+ DeleteViewCommand,
2353
+ DisassociateDefaultViewCommand,
2354
+ GetAccountLevelServiceConfigurationCommand,
2355
+ GetDefaultViewCommand,
2356
+ GetIndexCommand,
2357
+ GetIndexOutputFilterSensitiveLog,
2358
+ GetViewCommand,
2359
+ GetViewOutputFilterSensitiveLog,
2360
+ IndexState,
2361
+ IndexType,
2362
+ InternalServerException,
2363
+ ListIndexesCommand,
2364
+ ListIndexesForMembersCommand,
2365
+ ListSupportedResourceTypesCommand,
2366
+ ListTagsForResourceCommand,
2367
+ ListTagsForResourceOutputFilterSensitiveLog,
2368
+ ListViewsCommand,
2369
+ ResourceExplorer2,
2370
+ ResourceExplorer2Client,
2371
+ ResourceExplorer2ServiceException,
2372
+ ResourceNotFoundException,
2373
+ SearchCommand,
2374
+ SearchFilterFilterSensitiveLog,
2375
+ SearchInputFilterSensitiveLog,
2376
+ ServiceQuotaExceededException,
2377
+ TagResourceCommand,
2378
+ TagResourceInputFilterSensitiveLog,
2379
+ ThrottlingException,
2380
+ UnauthorizedException,
2381
+ UntagResourceCommand,
2382
+ UntagResourceInputFilterSensitiveLog,
2383
+ UpdateIndexTypeCommand,
2384
+ UpdateViewCommand,
2385
+ UpdateViewInputFilterSensitiveLog,
2386
+ UpdateViewOutputFilterSensitiveLog,
2387
+ ValidationException,
2388
+ ViewFilterSensitiveLog,
2389
+ __Client,
2390
+ paginateListIndexes,
2391
+ paginateListIndexesForMembers,
2392
+ paginateListSupportedResourceTypes,
2393
+ paginateListViews,
2394
+ paginateSearch
2395
+ });
2396
+