@aws-sdk/client-s3tables 3.893.0 → 3.895.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 (48) hide show
  1. package/dist-cjs/index.js +2032 -10
  2. package/package.json +7 -7
  3. package/dist-cjs/S3Tables.js +0 -71
  4. package/dist-cjs/S3TablesClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateNamespaceCommand.js +0 -26
  7. package/dist-cjs/commands/CreateTableBucketCommand.js +0 -26
  8. package/dist-cjs/commands/CreateTableCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteNamespaceCommand.js +0 -26
  10. package/dist-cjs/commands/DeleteTableBucketCommand.js +0 -26
  11. package/dist-cjs/commands/DeleteTableBucketEncryptionCommand.js +0 -26
  12. package/dist-cjs/commands/DeleteTableBucketPolicyCommand.js +0 -26
  13. package/dist-cjs/commands/DeleteTableCommand.js +0 -26
  14. package/dist-cjs/commands/DeleteTablePolicyCommand.js +0 -26
  15. package/dist-cjs/commands/GetNamespaceCommand.js +0 -26
  16. package/dist-cjs/commands/GetTableBucketCommand.js +0 -26
  17. package/dist-cjs/commands/GetTableBucketEncryptionCommand.js +0 -26
  18. package/dist-cjs/commands/GetTableBucketMaintenanceConfigurationCommand.js +0 -26
  19. package/dist-cjs/commands/GetTableBucketPolicyCommand.js +0 -26
  20. package/dist-cjs/commands/GetTableCommand.js +0 -26
  21. package/dist-cjs/commands/GetTableEncryptionCommand.js +0 -26
  22. package/dist-cjs/commands/GetTableMaintenanceConfigurationCommand.js +0 -26
  23. package/dist-cjs/commands/GetTableMaintenanceJobStatusCommand.js +0 -26
  24. package/dist-cjs/commands/GetTableMetadataLocationCommand.js +0 -26
  25. package/dist-cjs/commands/GetTablePolicyCommand.js +0 -26
  26. package/dist-cjs/commands/ListNamespacesCommand.js +0 -26
  27. package/dist-cjs/commands/ListTableBucketsCommand.js +0 -26
  28. package/dist-cjs/commands/ListTablesCommand.js +0 -26
  29. package/dist-cjs/commands/PutTableBucketEncryptionCommand.js +0 -26
  30. package/dist-cjs/commands/PutTableBucketMaintenanceConfigurationCommand.js +0 -26
  31. package/dist-cjs/commands/PutTableBucketPolicyCommand.js +0 -26
  32. package/dist-cjs/commands/PutTableMaintenanceConfigurationCommand.js +0 -26
  33. package/dist-cjs/commands/PutTablePolicyCommand.js +0 -26
  34. package/dist-cjs/commands/RenameTableCommand.js +0 -26
  35. package/dist-cjs/commands/UpdateTableMetadataLocationCommand.js +0 -26
  36. package/dist-cjs/commands/index.js +0 -33
  37. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  38. package/dist-cjs/extensionConfiguration.js +0 -2
  39. package/dist-cjs/models/S3TablesServiceException.js +0 -12
  40. package/dist-cjs/models/index.js +0 -4
  41. package/dist-cjs/models/models_0.js +0 -164
  42. package/dist-cjs/pagination/Interfaces.js +0 -2
  43. package/dist-cjs/pagination/ListNamespacesPaginator.js +0 -7
  44. package/dist-cjs/pagination/ListTableBucketsPaginator.js +0 -7
  45. package/dist-cjs/pagination/ListTablesPaginator.js +0 -7
  46. package/dist-cjs/pagination/index.js +0 -7
  47. package/dist-cjs/protocols/Aws_restJson1.js +0 -1076
  48. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2033 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.S3TablesServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./S3TablesClient"), exports);
6
- tslib_1.__exportStar(require("./S3Tables"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var S3TablesServiceException_1 = require("./models/S3TablesServiceException");
11
- Object.defineProperty(exports, "S3TablesServiceException", { enumerable: true, get: function () { return S3TablesServiceException_1.S3TablesServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ BadRequestException: () => BadRequestException,
26
+ ConflictException: () => ConflictException,
27
+ CreateNamespaceCommand: () => CreateNamespaceCommand,
28
+ CreateTableBucketCommand: () => CreateTableBucketCommand,
29
+ CreateTableCommand: () => CreateTableCommand,
30
+ DeleteNamespaceCommand: () => DeleteNamespaceCommand,
31
+ DeleteTableBucketCommand: () => DeleteTableBucketCommand,
32
+ DeleteTableBucketEncryptionCommand: () => DeleteTableBucketEncryptionCommand,
33
+ DeleteTableBucketPolicyCommand: () => DeleteTableBucketPolicyCommand,
34
+ DeleteTableCommand: () => DeleteTableCommand,
35
+ DeleteTablePolicyCommand: () => DeleteTablePolicyCommand,
36
+ ForbiddenException: () => ForbiddenException,
37
+ GetNamespaceCommand: () => GetNamespaceCommand,
38
+ GetTableBucketCommand: () => GetTableBucketCommand,
39
+ GetTableBucketEncryptionCommand: () => GetTableBucketEncryptionCommand,
40
+ GetTableBucketMaintenanceConfigurationCommand: () => GetTableBucketMaintenanceConfigurationCommand,
41
+ GetTableBucketPolicyCommand: () => GetTableBucketPolicyCommand,
42
+ GetTableCommand: () => GetTableCommand,
43
+ GetTableEncryptionCommand: () => GetTableEncryptionCommand,
44
+ GetTableMaintenanceConfigurationCommand: () => GetTableMaintenanceConfigurationCommand,
45
+ GetTableMaintenanceJobStatusCommand: () => GetTableMaintenanceJobStatusCommand,
46
+ GetTableMetadataLocationCommand: () => GetTableMetadataLocationCommand,
47
+ GetTablePolicyCommand: () => GetTablePolicyCommand,
48
+ IcebergCompactionStrategy: () => IcebergCompactionStrategy,
49
+ InternalServerErrorException: () => InternalServerErrorException,
50
+ JobStatus: () => JobStatus,
51
+ ListNamespacesCommand: () => ListNamespacesCommand,
52
+ ListTableBucketsCommand: () => ListTableBucketsCommand,
53
+ ListTablesCommand: () => ListTablesCommand,
54
+ MaintenanceStatus: () => MaintenanceStatus,
55
+ NotFoundException: () => NotFoundException,
56
+ OpenTableFormat: () => OpenTableFormat,
57
+ PutTableBucketEncryptionCommand: () => PutTableBucketEncryptionCommand,
58
+ PutTableBucketMaintenanceConfigurationCommand: () => PutTableBucketMaintenanceConfigurationCommand,
59
+ PutTableBucketPolicyCommand: () => PutTableBucketPolicyCommand,
60
+ PutTableMaintenanceConfigurationCommand: () => PutTableMaintenanceConfigurationCommand,
61
+ PutTablePolicyCommand: () => PutTablePolicyCommand,
62
+ RenameTableCommand: () => RenameTableCommand,
63
+ S3Tables: () => S3Tables,
64
+ S3TablesClient: () => S3TablesClient,
65
+ S3TablesServiceException: () => S3TablesServiceException,
66
+ SSEAlgorithm: () => SSEAlgorithm,
67
+ TableBucketMaintenanceSettings: () => TableBucketMaintenanceSettings,
68
+ TableBucketMaintenanceType: () => TableBucketMaintenanceType,
69
+ TableBucketType: () => TableBucketType,
70
+ TableMaintenanceJobType: () => TableMaintenanceJobType,
71
+ TableMaintenanceSettings: () => TableMaintenanceSettings,
72
+ TableMaintenanceType: () => TableMaintenanceType,
73
+ TableMetadata: () => TableMetadata,
74
+ TableType: () => TableType,
75
+ TooManyRequestsException: () => TooManyRequestsException,
76
+ UpdateTableMetadataLocationCommand: () => UpdateTableMetadataLocationCommand,
77
+ __Client: () => import_smithy_client.Client,
78
+ paginateListNamespaces: () => paginateListNamespaces,
79
+ paginateListTableBuckets: () => paginateListTableBuckets,
80
+ paginateListTables: () => paginateListTables
81
+ });
82
+ module.exports = __toCommonJS(index_exports);
83
+
84
+ // src/S3TablesClient.ts
85
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
86
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
87
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
88
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
89
+ var import_config_resolver = require("@smithy/config-resolver");
90
+ var import_core = require("@smithy/core");
91
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
92
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
93
+ var import_middleware_retry = require("@smithy/middleware-retry");
94
+
95
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
96
+
97
+ // src/endpoint/EndpointParameters.ts
98
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
99
+ return Object.assign(options, {
100
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
101
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
102
+ defaultSigningName: "s3tables"
103
+ });
104
+ }, "resolveClientEndpointParameters");
105
+ var commonParams = {
106
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
107
+ Endpoint: { type: "builtInParams", name: "endpoint" },
108
+ Region: { type: "builtInParams", name: "region" },
109
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
110
+ };
111
+
112
+ // src/S3TablesClient.ts
113
+ var import_runtimeConfig = require("././runtimeConfig");
114
+
115
+ // src/runtimeExtensions.ts
116
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
117
+ var import_protocol_http = require("@smithy/protocol-http");
118
+ var import_smithy_client = require("@smithy/smithy-client");
119
+
120
+ // src/auth/httpAuthExtensionConfiguration.ts
121
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
122
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
123
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
124
+ let _credentials = runtimeConfig.credentials;
125
+ return {
126
+ setHttpAuthScheme(httpAuthScheme) {
127
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
128
+ if (index === -1) {
129
+ _httpAuthSchemes.push(httpAuthScheme);
130
+ } else {
131
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
132
+ }
133
+ },
134
+ httpAuthSchemes() {
135
+ return _httpAuthSchemes;
136
+ },
137
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
138
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
139
+ },
140
+ httpAuthSchemeProvider() {
141
+ return _httpAuthSchemeProvider;
142
+ },
143
+ setCredentials(credentials) {
144
+ _credentials = credentials;
145
+ },
146
+ credentials() {
147
+ return _credentials;
148
+ }
149
+ };
150
+ }, "getHttpAuthExtensionConfiguration");
151
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
152
+ return {
153
+ httpAuthSchemes: config.httpAuthSchemes(),
154
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
155
+ credentials: config.credentials()
156
+ };
157
+ }, "resolveHttpAuthRuntimeConfig");
158
+
159
+ // src/runtimeExtensions.ts
160
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
161
+ const extensionConfiguration = Object.assign(
162
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
163
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
164
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
165
+ getHttpAuthExtensionConfiguration(runtimeConfig)
166
+ );
167
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
168
+ return Object.assign(
169
+ runtimeConfig,
170
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
171
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
172
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
173
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
174
+ );
175
+ }, "resolveRuntimeExtensions");
176
+
177
+ // src/S3TablesClient.ts
178
+ var S3TablesClient = class extends import_smithy_client.Client {
179
+ static {
180
+ __name(this, "S3TablesClient");
181
+ }
182
+ /**
183
+ * The resolved configuration of S3TablesClient class. This is resolved and normalized from the {@link S3TablesClientConfig | constructor configuration interface}.
184
+ */
185
+ config;
186
+ constructor(...[configuration]) {
187
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
188
+ super(_config_0);
189
+ this.initConfig = _config_0;
190
+ const _config_1 = resolveClientEndpointParameters(_config_0);
191
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
192
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
193
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
194
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
195
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
196
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
197
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
198
+ this.config = _config_8;
199
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
200
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
201
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
202
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
203
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
204
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
205
+ this.middlewareStack.use(
206
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
207
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultS3TablesHttpAuthSchemeParametersProvider,
208
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
209
+ "aws.auth#sigv4": config.credentials
210
+ }), "identityProviderConfigProvider")
211
+ })
212
+ );
213
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
214
+ }
215
+ /**
216
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
217
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
218
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
219
+ */
220
+ destroy() {
221
+ super.destroy();
222
+ }
223
+ };
224
+
225
+ // src/S3Tables.ts
226
+
227
+
228
+ // src/commands/CreateNamespaceCommand.ts
229
+
230
+ var import_middleware_serde = require("@smithy/middleware-serde");
231
+
232
+
233
+ // src/protocols/Aws_restJson1.ts
234
+ var import_core2 = require("@aws-sdk/core");
235
+
236
+
237
+
238
+ // src/models/S3TablesServiceException.ts
239
+
240
+ var S3TablesServiceException = class _S3TablesServiceException extends import_smithy_client.ServiceException {
241
+ static {
242
+ __name(this, "S3TablesServiceException");
243
+ }
244
+ /**
245
+ * @internal
246
+ */
247
+ constructor(options) {
248
+ super(options);
249
+ Object.setPrototypeOf(this, _S3TablesServiceException.prototype);
250
+ }
251
+ };
252
+
253
+ // src/models/models_0.ts
254
+ var AccessDeniedException = class _AccessDeniedException extends S3TablesServiceException {
255
+ static {
256
+ __name(this, "AccessDeniedException");
257
+ }
258
+ name = "AccessDeniedException";
259
+ $fault = "client";
260
+ /**
261
+ * @internal
262
+ */
263
+ constructor(opts) {
264
+ super({
265
+ name: "AccessDeniedException",
266
+ $fault: "client",
267
+ ...opts
268
+ });
269
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
270
+ }
271
+ };
272
+ var BadRequestException = class _BadRequestException extends S3TablesServiceException {
273
+ static {
274
+ __name(this, "BadRequestException");
275
+ }
276
+ name = "BadRequestException";
277
+ $fault = "client";
278
+ /**
279
+ * @internal
280
+ */
281
+ constructor(opts) {
282
+ super({
283
+ name: "BadRequestException",
284
+ $fault: "client",
285
+ ...opts
286
+ });
287
+ Object.setPrototypeOf(this, _BadRequestException.prototype);
288
+ }
289
+ };
290
+ var ConflictException = class _ConflictException extends S3TablesServiceException {
291
+ static {
292
+ __name(this, "ConflictException");
293
+ }
294
+ name = "ConflictException";
295
+ $fault = "client";
296
+ /**
297
+ * @internal
298
+ */
299
+ constructor(opts) {
300
+ super({
301
+ name: "ConflictException",
302
+ $fault: "client",
303
+ ...opts
304
+ });
305
+ Object.setPrototypeOf(this, _ConflictException.prototype);
306
+ }
307
+ };
308
+ var ForbiddenException = class _ForbiddenException extends S3TablesServiceException {
309
+ static {
310
+ __name(this, "ForbiddenException");
311
+ }
312
+ name = "ForbiddenException";
313
+ $fault = "client";
314
+ /**
315
+ * @internal
316
+ */
317
+ constructor(opts) {
318
+ super({
319
+ name: "ForbiddenException",
320
+ $fault: "client",
321
+ ...opts
322
+ });
323
+ Object.setPrototypeOf(this, _ForbiddenException.prototype);
324
+ }
325
+ };
326
+ var InternalServerErrorException = class _InternalServerErrorException extends S3TablesServiceException {
327
+ static {
328
+ __name(this, "InternalServerErrorException");
329
+ }
330
+ name = "InternalServerErrorException";
331
+ $fault = "server";
332
+ /**
333
+ * @internal
334
+ */
335
+ constructor(opts) {
336
+ super({
337
+ name: "InternalServerErrorException",
338
+ $fault: "server",
339
+ ...opts
340
+ });
341
+ Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
342
+ }
343
+ };
344
+ var NotFoundException = class _NotFoundException extends S3TablesServiceException {
345
+ static {
346
+ __name(this, "NotFoundException");
347
+ }
348
+ name = "NotFoundException";
349
+ $fault = "client";
350
+ /**
351
+ * @internal
352
+ */
353
+ constructor(opts) {
354
+ super({
355
+ name: "NotFoundException",
356
+ $fault: "client",
357
+ ...opts
358
+ });
359
+ Object.setPrototypeOf(this, _NotFoundException.prototype);
360
+ }
361
+ };
362
+ var TooManyRequestsException = class _TooManyRequestsException extends S3TablesServiceException {
363
+ static {
364
+ __name(this, "TooManyRequestsException");
365
+ }
366
+ name = "TooManyRequestsException";
367
+ $fault = "client";
368
+ /**
369
+ * @internal
370
+ */
371
+ constructor(opts) {
372
+ super({
373
+ name: "TooManyRequestsException",
374
+ $fault: "client",
375
+ ...opts
376
+ });
377
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
378
+ }
379
+ };
380
+ var SSEAlgorithm = {
381
+ AES256: "AES256",
382
+ AWS_KMS: "aws:kms"
383
+ };
384
+ var OpenTableFormat = {
385
+ ICEBERG: "ICEBERG"
386
+ };
387
+ var TableMetadata;
388
+ ((TableMetadata3) => {
389
+ TableMetadata3.visit = /* @__PURE__ */ __name((value, visitor) => {
390
+ if (value.iceberg !== void 0) return visitor.iceberg(value.iceberg);
391
+ return visitor._(value.$unknown[0], value.$unknown[1]);
392
+ }, "visit");
393
+ })(TableMetadata || (TableMetadata = {}));
394
+ var TableType = {
395
+ AWS: "aws",
396
+ CUSTOMER: "customer"
397
+ };
398
+ var TableBucketType = {
399
+ AWS: "aws",
400
+ CUSTOMER: "customer"
401
+ };
402
+ var TableBucketMaintenanceType = {
403
+ ICEBERG_UNREFERENCED_FILE_REMOVAL: "icebergUnreferencedFileRemoval"
404
+ };
405
+ var TableBucketMaintenanceSettings;
406
+ ((TableBucketMaintenanceSettings3) => {
407
+ TableBucketMaintenanceSettings3.visit = /* @__PURE__ */ __name((value, visitor) => {
408
+ if (value.icebergUnreferencedFileRemoval !== void 0)
409
+ return visitor.icebergUnreferencedFileRemoval(value.icebergUnreferencedFileRemoval);
410
+ return visitor._(value.$unknown[0], value.$unknown[1]);
411
+ }, "visit");
412
+ })(TableBucketMaintenanceSettings || (TableBucketMaintenanceSettings = {}));
413
+ var MaintenanceStatus = {
414
+ DISABLED: "disabled",
415
+ ENABLED: "enabled"
416
+ };
417
+ var TableMaintenanceType = {
418
+ ICEBERG_COMPACTION: "icebergCompaction",
419
+ ICEBERG_SNAPSHOT_MANAGEMENT: "icebergSnapshotManagement"
420
+ };
421
+ var IcebergCompactionStrategy = {
422
+ AUTO: "auto",
423
+ BINPACK: "binpack",
424
+ SORT: "sort",
425
+ ZORDER: "z-order"
426
+ };
427
+ var TableMaintenanceSettings;
428
+ ((TableMaintenanceSettings3) => {
429
+ TableMaintenanceSettings3.visit = /* @__PURE__ */ __name((value, visitor) => {
430
+ if (value.icebergCompaction !== void 0) return visitor.icebergCompaction(value.icebergCompaction);
431
+ if (value.icebergSnapshotManagement !== void 0)
432
+ return visitor.icebergSnapshotManagement(value.icebergSnapshotManagement);
433
+ return visitor._(value.$unknown[0], value.$unknown[1]);
434
+ }, "visit");
435
+ })(TableMaintenanceSettings || (TableMaintenanceSettings = {}));
436
+ var TableMaintenanceJobType = {
437
+ ICEBERG_COMPACTION: "icebergCompaction",
438
+ ICEBERG_SNAPSHOT_MANAGEMENT: "icebergSnapshotManagement",
439
+ ICEBERG_UNREFERENCED_FILE_REMOVAL: "icebergUnreferencedFileRemoval"
440
+ };
441
+ var JobStatus = {
442
+ DISABLED: "Disabled",
443
+ FAILED: "Failed",
444
+ NOT_YET_RUN: "Not_Yet_Run",
445
+ SUCCESSFUL: "Successful"
446
+ };
447
+
448
+ // src/protocols/Aws_restJson1.ts
449
+ var se_CreateNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
450
+ const b = (0, import_core.requestBuilder)(input, context);
451
+ const headers = {
452
+ "content-type": "application/json"
453
+ };
454
+ b.bp("/namespaces/{tableBucketARN}");
455
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
456
+ let body;
457
+ body = JSON.stringify(
458
+ (0, import_smithy_client.take)(input, {
459
+ namespace: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "namespace")
460
+ })
461
+ );
462
+ b.m("PUT").h(headers).b(body);
463
+ return b.build();
464
+ }, "se_CreateNamespaceCommand");
465
+ var se_CreateTableCommand = /* @__PURE__ */ __name(async (input, context) => {
466
+ const b = (0, import_core.requestBuilder)(input, context);
467
+ const headers = {
468
+ "content-type": "application/json"
469
+ };
470
+ b.bp("/tables/{tableBucketARN}/{namespace}");
471
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
472
+ b.p("namespace", () => input.namespace, "{namespace}", false);
473
+ let body;
474
+ body = JSON.stringify(
475
+ (0, import_smithy_client.take)(input, {
476
+ encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
477
+ format: [],
478
+ metadata: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "metadata"),
479
+ name: []
480
+ })
481
+ );
482
+ b.m("PUT").h(headers).b(body);
483
+ return b.build();
484
+ }, "se_CreateTableCommand");
485
+ var se_CreateTableBucketCommand = /* @__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("/buckets");
491
+ let body;
492
+ body = JSON.stringify(
493
+ (0, import_smithy_client.take)(input, {
494
+ encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
495
+ name: []
496
+ })
497
+ );
498
+ b.m("PUT").h(headers).b(body);
499
+ return b.build();
500
+ }, "se_CreateTableBucketCommand");
501
+ var se_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
502
+ const b = (0, import_core.requestBuilder)(input, context);
503
+ const headers = {};
504
+ b.bp("/namespaces/{tableBucketARN}/{namespace}");
505
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
506
+ b.p("namespace", () => input.namespace, "{namespace}", false);
507
+ let body;
508
+ b.m("DELETE").h(headers).b(body);
509
+ return b.build();
510
+ }, "se_DeleteNamespaceCommand");
511
+ var se_DeleteTableCommand = /* @__PURE__ */ __name(async (input, context) => {
512
+ const b = (0, import_core.requestBuilder)(input, context);
513
+ const headers = {};
514
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}");
515
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
516
+ b.p("namespace", () => input.namespace, "{namespace}", false);
517
+ b.p("name", () => input.name, "{name}", false);
518
+ const query = (0, import_smithy_client.map)({
519
+ [_vT]: [, input[_vT]]
520
+ });
521
+ let body;
522
+ b.m("DELETE").h(headers).q(query).b(body);
523
+ return b.build();
524
+ }, "se_DeleteTableCommand");
525
+ var se_DeleteTableBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
526
+ const b = (0, import_core.requestBuilder)(input, context);
527
+ const headers = {};
528
+ b.bp("/buckets/{tableBucketARN}");
529
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
530
+ let body;
531
+ b.m("DELETE").h(headers).b(body);
532
+ return b.build();
533
+ }, "se_DeleteTableBucketCommand");
534
+ var se_DeleteTableBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
535
+ const b = (0, import_core.requestBuilder)(input, context);
536
+ const headers = {};
537
+ b.bp("/buckets/{tableBucketARN}/encryption");
538
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
539
+ let body;
540
+ b.m("DELETE").h(headers).b(body);
541
+ return b.build();
542
+ }, "se_DeleteTableBucketEncryptionCommand");
543
+ var se_DeleteTableBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
544
+ const b = (0, import_core.requestBuilder)(input, context);
545
+ const headers = {};
546
+ b.bp("/buckets/{tableBucketARN}/policy");
547
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
548
+ let body;
549
+ b.m("DELETE").h(headers).b(body);
550
+ return b.build();
551
+ }, "se_DeleteTableBucketPolicyCommand");
552
+ var se_DeleteTablePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
553
+ const b = (0, import_core.requestBuilder)(input, context);
554
+ const headers = {};
555
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/policy");
556
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
557
+ b.p("namespace", () => input.namespace, "{namespace}", false);
558
+ b.p("name", () => input.name, "{name}", false);
559
+ let body;
560
+ b.m("DELETE").h(headers).b(body);
561
+ return b.build();
562
+ }, "se_DeleteTablePolicyCommand");
563
+ var se_GetNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
564
+ const b = (0, import_core.requestBuilder)(input, context);
565
+ const headers = {};
566
+ b.bp("/namespaces/{tableBucketARN}/{namespace}");
567
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
568
+ b.p("namespace", () => input.namespace, "{namespace}", false);
569
+ let body;
570
+ b.m("GET").h(headers).b(body);
571
+ return b.build();
572
+ }, "se_GetNamespaceCommand");
573
+ var se_GetTableCommand = /* @__PURE__ */ __name(async (input, context) => {
574
+ const b = (0, import_core.requestBuilder)(input, context);
575
+ const headers = {};
576
+ b.bp("/get-table");
577
+ const query = (0, import_smithy_client.map)({
578
+ [_tBARN]: [, input[_tBARN]],
579
+ [_n]: [, input[_n]],
580
+ [_na]: [, input[_na]],
581
+ [_tA]: [, input[_tA]]
582
+ });
583
+ let body;
584
+ b.m("GET").h(headers).q(query).b(body);
585
+ return b.build();
586
+ }, "se_GetTableCommand");
587
+ var se_GetTableBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
588
+ const b = (0, import_core.requestBuilder)(input, context);
589
+ const headers = {};
590
+ b.bp("/buckets/{tableBucketARN}");
591
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
592
+ let body;
593
+ b.m("GET").h(headers).b(body);
594
+ return b.build();
595
+ }, "se_GetTableBucketCommand");
596
+ var se_GetTableBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
597
+ const b = (0, import_core.requestBuilder)(input, context);
598
+ const headers = {};
599
+ b.bp("/buckets/{tableBucketARN}/encryption");
600
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
601
+ let body;
602
+ b.m("GET").h(headers).b(body);
603
+ return b.build();
604
+ }, "se_GetTableBucketEncryptionCommand");
605
+ var se_GetTableBucketMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
606
+ const b = (0, import_core.requestBuilder)(input, context);
607
+ const headers = {};
608
+ b.bp("/buckets/{tableBucketARN}/maintenance");
609
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
610
+ let body;
611
+ b.m("GET").h(headers).b(body);
612
+ return b.build();
613
+ }, "se_GetTableBucketMaintenanceConfigurationCommand");
614
+ var se_GetTableBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
615
+ const b = (0, import_core.requestBuilder)(input, context);
616
+ const headers = {};
617
+ b.bp("/buckets/{tableBucketARN}/policy");
618
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
619
+ let body;
620
+ b.m("GET").h(headers).b(body);
621
+ return b.build();
622
+ }, "se_GetTableBucketPolicyCommand");
623
+ var se_GetTableEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
624
+ const b = (0, import_core.requestBuilder)(input, context);
625
+ const headers = {};
626
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/encryption");
627
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
628
+ b.p("namespace", () => input.namespace, "{namespace}", false);
629
+ b.p("name", () => input.name, "{name}", false);
630
+ let body;
631
+ b.m("GET").h(headers).b(body);
632
+ return b.build();
633
+ }, "se_GetTableEncryptionCommand");
634
+ var se_GetTableMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
635
+ const b = (0, import_core.requestBuilder)(input, context);
636
+ const headers = {};
637
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/maintenance");
638
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
639
+ b.p("namespace", () => input.namespace, "{namespace}", false);
640
+ b.p("name", () => input.name, "{name}", false);
641
+ let body;
642
+ b.m("GET").h(headers).b(body);
643
+ return b.build();
644
+ }, "se_GetTableMaintenanceConfigurationCommand");
645
+ var se_GetTableMaintenanceJobStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const b = (0, import_core.requestBuilder)(input, context);
647
+ const headers = {};
648
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/maintenance-job-status");
649
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
650
+ b.p("namespace", () => input.namespace, "{namespace}", false);
651
+ b.p("name", () => input.name, "{name}", false);
652
+ let body;
653
+ b.m("GET").h(headers).b(body);
654
+ return b.build();
655
+ }, "se_GetTableMaintenanceJobStatusCommand");
656
+ var se_GetTableMetadataLocationCommand = /* @__PURE__ */ __name(async (input, context) => {
657
+ const b = (0, import_core.requestBuilder)(input, context);
658
+ const headers = {};
659
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/metadata-location");
660
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
661
+ b.p("namespace", () => input.namespace, "{namespace}", false);
662
+ b.p("name", () => input.name, "{name}", false);
663
+ let body;
664
+ b.m("GET").h(headers).b(body);
665
+ return b.build();
666
+ }, "se_GetTableMetadataLocationCommand");
667
+ var se_GetTablePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
668
+ const b = (0, import_core.requestBuilder)(input, context);
669
+ const headers = {};
670
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/policy");
671
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
672
+ b.p("namespace", () => input.namespace, "{namespace}", false);
673
+ b.p("name", () => input.name, "{name}", false);
674
+ let body;
675
+ b.m("GET").h(headers).b(body);
676
+ return b.build();
677
+ }, "se_GetTablePolicyCommand");
678
+ var se_ListNamespacesCommand = /* @__PURE__ */ __name(async (input, context) => {
679
+ const b = (0, import_core.requestBuilder)(input, context);
680
+ const headers = {};
681
+ b.bp("/namespaces/{tableBucketARN}");
682
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
683
+ const query = (0, import_smithy_client.map)({
684
+ [_p]: [, input[_p]],
685
+ [_cT]: [, input[_cT]],
686
+ [_mN]: [() => input.maxNamespaces !== void 0, () => input[_mN].toString()]
687
+ });
688
+ let body;
689
+ b.m("GET").h(headers).q(query).b(body);
690
+ return b.build();
691
+ }, "se_ListNamespacesCommand");
692
+ var se_ListTableBucketsCommand = /* @__PURE__ */ __name(async (input, context) => {
693
+ const b = (0, import_core.requestBuilder)(input, context);
694
+ const headers = {};
695
+ b.bp("/buckets");
696
+ const query = (0, import_smithy_client.map)({
697
+ [_p]: [, input[_p]],
698
+ [_cT]: [, input[_cT]],
699
+ [_mB]: [() => input.maxBuckets !== void 0, () => input[_mB].toString()],
700
+ [_t]: [, input[_t]]
701
+ });
702
+ let body;
703
+ b.m("GET").h(headers).q(query).b(body);
704
+ return b.build();
705
+ }, "se_ListTableBucketsCommand");
706
+ var se_ListTablesCommand = /* @__PURE__ */ __name(async (input, context) => {
707
+ const b = (0, import_core.requestBuilder)(input, context);
708
+ const headers = {};
709
+ b.bp("/tables/{tableBucketARN}");
710
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
711
+ const query = (0, import_smithy_client.map)({
712
+ [_n]: [, input[_n]],
713
+ [_p]: [, input[_p]],
714
+ [_cT]: [, input[_cT]],
715
+ [_mT]: [() => input.maxTables !== void 0, () => input[_mT].toString()]
716
+ });
717
+ let body;
718
+ b.m("GET").h(headers).q(query).b(body);
719
+ return b.build();
720
+ }, "se_ListTablesCommand");
721
+ var se_PutTableBucketEncryptionCommand = /* @__PURE__ */ __name(async (input, context) => {
722
+ const b = (0, import_core.requestBuilder)(input, context);
723
+ const headers = {
724
+ "content-type": "application/json"
725
+ };
726
+ b.bp("/buckets/{tableBucketARN}/encryption");
727
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
728
+ let body;
729
+ body = JSON.stringify(
730
+ (0, import_smithy_client.take)(input, {
731
+ encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration")
732
+ })
733
+ );
734
+ b.m("PUT").h(headers).b(body);
735
+ return b.build();
736
+ }, "se_PutTableBucketEncryptionCommand");
737
+ var se_PutTableBucketMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
738
+ const b = (0, import_core.requestBuilder)(input, context);
739
+ const headers = {
740
+ "content-type": "application/json"
741
+ };
742
+ b.bp("/buckets/{tableBucketARN}/maintenance/{type}");
743
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
744
+ b.p("type", () => input.type, "{type}", false);
745
+ let body;
746
+ body = JSON.stringify(
747
+ (0, import_smithy_client.take)(input, {
748
+ value: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "value")
749
+ })
750
+ );
751
+ b.m("PUT").h(headers).b(body);
752
+ return b.build();
753
+ }, "se_PutTableBucketMaintenanceConfigurationCommand");
754
+ var se_PutTableBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
755
+ const b = (0, import_core.requestBuilder)(input, context);
756
+ const headers = {
757
+ "content-type": "application/json"
758
+ };
759
+ b.bp("/buckets/{tableBucketARN}/policy");
760
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
761
+ let body;
762
+ body = JSON.stringify(
763
+ (0, import_smithy_client.take)(input, {
764
+ resourcePolicy: []
765
+ })
766
+ );
767
+ b.m("PUT").h(headers).b(body);
768
+ return b.build();
769
+ }, "se_PutTableBucketPolicyCommand");
770
+ var se_PutTableMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
771
+ const b = (0, import_core.requestBuilder)(input, context);
772
+ const headers = {
773
+ "content-type": "application/json"
774
+ };
775
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/maintenance/{type}");
776
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
777
+ b.p("namespace", () => input.namespace, "{namespace}", false);
778
+ b.p("name", () => input.name, "{name}", false);
779
+ b.p("type", () => input.type, "{type}", false);
780
+ let body;
781
+ body = JSON.stringify(
782
+ (0, import_smithy_client.take)(input, {
783
+ value: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "value")
784
+ })
785
+ );
786
+ b.m("PUT").h(headers).b(body);
787
+ return b.build();
788
+ }, "se_PutTableMaintenanceConfigurationCommand");
789
+ var se_PutTablePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
790
+ const b = (0, import_core.requestBuilder)(input, context);
791
+ const headers = {
792
+ "content-type": "application/json"
793
+ };
794
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/policy");
795
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
796
+ b.p("namespace", () => input.namespace, "{namespace}", false);
797
+ b.p("name", () => input.name, "{name}", false);
798
+ let body;
799
+ body = JSON.stringify(
800
+ (0, import_smithy_client.take)(input, {
801
+ resourcePolicy: []
802
+ })
803
+ );
804
+ b.m("PUT").h(headers).b(body);
805
+ return b.build();
806
+ }, "se_PutTablePolicyCommand");
807
+ var se_RenameTableCommand = /* @__PURE__ */ __name(async (input, context) => {
808
+ const b = (0, import_core.requestBuilder)(input, context);
809
+ const headers = {
810
+ "content-type": "application/json"
811
+ };
812
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/rename");
813
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
814
+ b.p("namespace", () => input.namespace, "{namespace}", false);
815
+ b.p("name", () => input.name, "{name}", false);
816
+ let body;
817
+ body = JSON.stringify(
818
+ (0, import_smithy_client.take)(input, {
819
+ newName: [],
820
+ newNamespaceName: [],
821
+ versionToken: []
822
+ })
823
+ );
824
+ b.m("PUT").h(headers).b(body);
825
+ return b.build();
826
+ }, "se_RenameTableCommand");
827
+ var se_UpdateTableMetadataLocationCommand = /* @__PURE__ */ __name(async (input, context) => {
828
+ const b = (0, import_core.requestBuilder)(input, context);
829
+ const headers = {
830
+ "content-type": "application/json"
831
+ };
832
+ b.bp("/tables/{tableBucketARN}/{namespace}/{name}/metadata-location");
833
+ b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
834
+ b.p("namespace", () => input.namespace, "{namespace}", false);
835
+ b.p("name", () => input.name, "{name}", false);
836
+ let body;
837
+ body = JSON.stringify(
838
+ (0, import_smithy_client.take)(input, {
839
+ metadataLocation: [],
840
+ versionToken: []
841
+ })
842
+ );
843
+ b.m("PUT").h(headers).b(body);
844
+ return b.build();
845
+ }, "se_UpdateTableMetadataLocationCommand");
846
+ var de_CreateNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
847
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
848
+ return de_CommandError(output, context);
849
+ }
850
+ const contents = (0, import_smithy_client.map)({
851
+ $metadata: deserializeMetadata(output)
852
+ });
853
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
854
+ const doc = (0, import_smithy_client.take)(data, {
855
+ namespace: import_smithy_client._json,
856
+ tableBucketARN: import_smithy_client.expectString
857
+ });
858
+ Object.assign(contents, doc);
859
+ return contents;
860
+ }, "de_CreateNamespaceCommand");
861
+ var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
862
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
863
+ return de_CommandError(output, context);
864
+ }
865
+ const contents = (0, import_smithy_client.map)({
866
+ $metadata: deserializeMetadata(output)
867
+ });
868
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
869
+ const doc = (0, import_smithy_client.take)(data, {
870
+ tableARN: import_smithy_client.expectString,
871
+ versionToken: import_smithy_client.expectString
872
+ });
873
+ Object.assign(contents, doc);
874
+ return contents;
875
+ }, "de_CreateTableCommand");
876
+ var de_CreateTableBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
877
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
878
+ return de_CommandError(output, context);
879
+ }
880
+ const contents = (0, import_smithy_client.map)({
881
+ $metadata: deserializeMetadata(output)
882
+ });
883
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
884
+ const doc = (0, import_smithy_client.take)(data, {
885
+ arn: import_smithy_client.expectString
886
+ });
887
+ Object.assign(contents, doc);
888
+ return contents;
889
+ }, "de_CreateTableBucketCommand");
890
+ var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
891
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
892
+ return de_CommandError(output, context);
893
+ }
894
+ const contents = (0, import_smithy_client.map)({
895
+ $metadata: deserializeMetadata(output)
896
+ });
897
+ await (0, import_smithy_client.collectBody)(output.body, context);
898
+ return contents;
899
+ }, "de_DeleteNamespaceCommand");
900
+ var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
901
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
902
+ return de_CommandError(output, context);
903
+ }
904
+ const contents = (0, import_smithy_client.map)({
905
+ $metadata: deserializeMetadata(output)
906
+ });
907
+ await (0, import_smithy_client.collectBody)(output.body, context);
908
+ return contents;
909
+ }, "de_DeleteTableCommand");
910
+ var de_DeleteTableBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
911
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
912
+ return de_CommandError(output, context);
913
+ }
914
+ const contents = (0, import_smithy_client.map)({
915
+ $metadata: deserializeMetadata(output)
916
+ });
917
+ await (0, import_smithy_client.collectBody)(output.body, context);
918
+ return contents;
919
+ }, "de_DeleteTableBucketCommand");
920
+ var de_DeleteTableBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
921
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
922
+ return de_CommandError(output, context);
923
+ }
924
+ const contents = (0, import_smithy_client.map)({
925
+ $metadata: deserializeMetadata(output)
926
+ });
927
+ await (0, import_smithy_client.collectBody)(output.body, context);
928
+ return contents;
929
+ }, "de_DeleteTableBucketEncryptionCommand");
930
+ var de_DeleteTableBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
931
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
932
+ return de_CommandError(output, context);
933
+ }
934
+ const contents = (0, import_smithy_client.map)({
935
+ $metadata: deserializeMetadata(output)
936
+ });
937
+ await (0, import_smithy_client.collectBody)(output.body, context);
938
+ return contents;
939
+ }, "de_DeleteTableBucketPolicyCommand");
940
+ var de_DeleteTablePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
941
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
942
+ return de_CommandError(output, context);
943
+ }
944
+ const contents = (0, import_smithy_client.map)({
945
+ $metadata: deserializeMetadata(output)
946
+ });
947
+ await (0, import_smithy_client.collectBody)(output.body, context);
948
+ return contents;
949
+ }, "de_DeleteTablePolicyCommand");
950
+ var de_GetNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
951
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
952
+ return de_CommandError(output, context);
953
+ }
954
+ const contents = (0, import_smithy_client.map)({
955
+ $metadata: deserializeMetadata(output)
956
+ });
957
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
958
+ const doc = (0, import_smithy_client.take)(data, {
959
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
960
+ createdBy: import_smithy_client.expectString,
961
+ namespace: import_smithy_client._json,
962
+ namespaceId: import_smithy_client.expectString,
963
+ ownerAccountId: import_smithy_client.expectString,
964
+ tableBucketId: import_smithy_client.expectString
965
+ });
966
+ Object.assign(contents, doc);
967
+ return contents;
968
+ }, "de_GetNamespaceCommand");
969
+ var de_GetTableCommand = /* @__PURE__ */ __name(async (output, context) => {
970
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
971
+ return de_CommandError(output, context);
972
+ }
973
+ const contents = (0, import_smithy_client.map)({
974
+ $metadata: deserializeMetadata(output)
975
+ });
976
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
977
+ const doc = (0, import_smithy_client.take)(data, {
978
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
979
+ createdBy: import_smithy_client.expectString,
980
+ format: import_smithy_client.expectString,
981
+ managedByService: import_smithy_client.expectString,
982
+ metadataLocation: import_smithy_client.expectString,
983
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
984
+ modifiedBy: import_smithy_client.expectString,
985
+ name: import_smithy_client.expectString,
986
+ namespace: import_smithy_client._json,
987
+ namespaceId: import_smithy_client.expectString,
988
+ ownerAccountId: import_smithy_client.expectString,
989
+ tableARN: import_smithy_client.expectString,
990
+ tableBucketId: import_smithy_client.expectString,
991
+ type: import_smithy_client.expectString,
992
+ versionToken: import_smithy_client.expectString,
993
+ warehouseLocation: import_smithy_client.expectString
994
+ });
995
+ Object.assign(contents, doc);
996
+ return contents;
997
+ }, "de_GetTableCommand");
998
+ var de_GetTableBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
999
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1000
+ return de_CommandError(output, context);
1001
+ }
1002
+ const contents = (0, import_smithy_client.map)({
1003
+ $metadata: deserializeMetadata(output)
1004
+ });
1005
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1006
+ const doc = (0, import_smithy_client.take)(data, {
1007
+ arn: import_smithy_client.expectString,
1008
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1009
+ name: import_smithy_client.expectString,
1010
+ ownerAccountId: import_smithy_client.expectString,
1011
+ tableBucketId: import_smithy_client.expectString,
1012
+ type: import_smithy_client.expectString
1013
+ });
1014
+ Object.assign(contents, doc);
1015
+ return contents;
1016
+ }, "de_GetTableBucketCommand");
1017
+ var de_GetTableBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1018
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1019
+ return de_CommandError(output, context);
1020
+ }
1021
+ const contents = (0, import_smithy_client.map)({
1022
+ $metadata: deserializeMetadata(output)
1023
+ });
1024
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1025
+ const doc = (0, import_smithy_client.take)(data, {
1026
+ encryptionConfiguration: import_smithy_client._json
1027
+ });
1028
+ Object.assign(contents, doc);
1029
+ return contents;
1030
+ }, "de_GetTableBucketEncryptionCommand");
1031
+ var de_GetTableBucketMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1032
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1033
+ return de_CommandError(output, context);
1034
+ }
1035
+ const contents = (0, import_smithy_client.map)({
1036
+ $metadata: deserializeMetadata(output)
1037
+ });
1038
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1039
+ const doc = (0, import_smithy_client.take)(data, {
1040
+ configuration: import_smithy_client._json,
1041
+ tableBucketARN: import_smithy_client.expectString
1042
+ });
1043
+ Object.assign(contents, doc);
1044
+ return contents;
1045
+ }, "de_GetTableBucketMaintenanceConfigurationCommand");
1046
+ var de_GetTableBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1047
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1048
+ return de_CommandError(output, context);
1049
+ }
1050
+ const contents = (0, import_smithy_client.map)({
1051
+ $metadata: deserializeMetadata(output)
1052
+ });
1053
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1054
+ const doc = (0, import_smithy_client.take)(data, {
1055
+ resourcePolicy: import_smithy_client.expectString
1056
+ });
1057
+ Object.assign(contents, doc);
1058
+ return contents;
1059
+ }, "de_GetTableBucketPolicyCommand");
1060
+ var de_GetTableEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1062
+ return de_CommandError(output, context);
1063
+ }
1064
+ const contents = (0, import_smithy_client.map)({
1065
+ $metadata: deserializeMetadata(output)
1066
+ });
1067
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1068
+ const doc = (0, import_smithy_client.take)(data, {
1069
+ encryptionConfiguration: import_smithy_client._json
1070
+ });
1071
+ Object.assign(contents, doc);
1072
+ return contents;
1073
+ }, "de_GetTableEncryptionCommand");
1074
+ var de_GetTableMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1075
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1076
+ return de_CommandError(output, context);
1077
+ }
1078
+ const contents = (0, import_smithy_client.map)({
1079
+ $metadata: deserializeMetadata(output)
1080
+ });
1081
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1082
+ const doc = (0, import_smithy_client.take)(data, {
1083
+ configuration: import_smithy_client._json,
1084
+ tableARN: import_smithy_client.expectString
1085
+ });
1086
+ Object.assign(contents, doc);
1087
+ return contents;
1088
+ }, "de_GetTableMaintenanceConfigurationCommand");
1089
+ var de_GetTableMaintenanceJobStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1090
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1091
+ return de_CommandError(output, context);
1092
+ }
1093
+ const contents = (0, import_smithy_client.map)({
1094
+ $metadata: deserializeMetadata(output)
1095
+ });
1096
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1097
+ const doc = (0, import_smithy_client.take)(data, {
1098
+ status: /* @__PURE__ */ __name((_) => de_TableMaintenanceJobStatus(_, context), "status"),
1099
+ tableARN: import_smithy_client.expectString
1100
+ });
1101
+ Object.assign(contents, doc);
1102
+ return contents;
1103
+ }, "de_GetTableMaintenanceJobStatusCommand");
1104
+ var de_GetTableMetadataLocationCommand = /* @__PURE__ */ __name(async (output, context) => {
1105
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1106
+ return de_CommandError(output, context);
1107
+ }
1108
+ const contents = (0, import_smithy_client.map)({
1109
+ $metadata: deserializeMetadata(output)
1110
+ });
1111
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1112
+ const doc = (0, import_smithy_client.take)(data, {
1113
+ metadataLocation: import_smithy_client.expectString,
1114
+ versionToken: import_smithy_client.expectString,
1115
+ warehouseLocation: import_smithy_client.expectString
1116
+ });
1117
+ Object.assign(contents, doc);
1118
+ return contents;
1119
+ }, "de_GetTableMetadataLocationCommand");
1120
+ var de_GetTablePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1121
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1122
+ return de_CommandError(output, context);
1123
+ }
1124
+ const contents = (0, import_smithy_client.map)({
1125
+ $metadata: deserializeMetadata(output)
1126
+ });
1127
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1128
+ const doc = (0, import_smithy_client.take)(data, {
1129
+ resourcePolicy: import_smithy_client.expectString
1130
+ });
1131
+ Object.assign(contents, doc);
1132
+ return contents;
1133
+ }, "de_GetTablePolicyCommand");
1134
+ var de_ListNamespacesCommand = /* @__PURE__ */ __name(async (output, context) => {
1135
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1136
+ return de_CommandError(output, context);
1137
+ }
1138
+ const contents = (0, import_smithy_client.map)({
1139
+ $metadata: deserializeMetadata(output)
1140
+ });
1141
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1142
+ const doc = (0, import_smithy_client.take)(data, {
1143
+ continuationToken: import_smithy_client.expectString,
1144
+ namespaces: /* @__PURE__ */ __name((_) => de_NamespaceSummaryList(_, context), "namespaces")
1145
+ });
1146
+ Object.assign(contents, doc);
1147
+ return contents;
1148
+ }, "de_ListNamespacesCommand");
1149
+ var de_ListTableBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
1150
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1151
+ return de_CommandError(output, context);
1152
+ }
1153
+ const contents = (0, import_smithy_client.map)({
1154
+ $metadata: deserializeMetadata(output)
1155
+ });
1156
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1157
+ const doc = (0, import_smithy_client.take)(data, {
1158
+ continuationToken: import_smithy_client.expectString,
1159
+ tableBuckets: /* @__PURE__ */ __name((_) => de_TableBucketSummaryList(_, context), "tableBuckets")
1160
+ });
1161
+ Object.assign(contents, doc);
1162
+ return contents;
1163
+ }, "de_ListTableBucketsCommand");
1164
+ var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
1165
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1166
+ return de_CommandError(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 (0, import_core2.parseJsonBody)(output.body, context)), "body");
1172
+ const doc = (0, import_smithy_client.take)(data, {
1173
+ continuationToken: import_smithy_client.expectString,
1174
+ tables: /* @__PURE__ */ __name((_) => de_TableSummaryList(_, context), "tables")
1175
+ });
1176
+ Object.assign(contents, doc);
1177
+ return contents;
1178
+ }, "de_ListTablesCommand");
1179
+ var de_PutTableBucketEncryptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1180
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1181
+ return de_CommandError(output, context);
1182
+ }
1183
+ const contents = (0, import_smithy_client.map)({
1184
+ $metadata: deserializeMetadata(output)
1185
+ });
1186
+ await (0, import_smithy_client.collectBody)(output.body, context);
1187
+ return contents;
1188
+ }, "de_PutTableBucketEncryptionCommand");
1189
+ var de_PutTableBucketMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1190
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1191
+ return de_CommandError(output, context);
1192
+ }
1193
+ const contents = (0, import_smithy_client.map)({
1194
+ $metadata: deserializeMetadata(output)
1195
+ });
1196
+ await (0, import_smithy_client.collectBody)(output.body, context);
1197
+ return contents;
1198
+ }, "de_PutTableBucketMaintenanceConfigurationCommand");
1199
+ var de_PutTableBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1200
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1201
+ return de_CommandError(output, context);
1202
+ }
1203
+ const contents = (0, import_smithy_client.map)({
1204
+ $metadata: deserializeMetadata(output)
1205
+ });
1206
+ await (0, import_smithy_client.collectBody)(output.body, context);
1207
+ return contents;
1208
+ }, "de_PutTableBucketPolicyCommand");
1209
+ var de_PutTableMaintenanceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1210
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1211
+ return de_CommandError(output, context);
1212
+ }
1213
+ const contents = (0, import_smithy_client.map)({
1214
+ $metadata: deserializeMetadata(output)
1215
+ });
1216
+ await (0, import_smithy_client.collectBody)(output.body, context);
1217
+ return contents;
1218
+ }, "de_PutTableMaintenanceConfigurationCommand");
1219
+ var de_PutTablePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1220
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1221
+ return de_CommandError(output, context);
1222
+ }
1223
+ const contents = (0, import_smithy_client.map)({
1224
+ $metadata: deserializeMetadata(output)
1225
+ });
1226
+ await (0, import_smithy_client.collectBody)(output.body, context);
1227
+ return contents;
1228
+ }, "de_PutTablePolicyCommand");
1229
+ var de_RenameTableCommand = /* @__PURE__ */ __name(async (output, context) => {
1230
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1231
+ return de_CommandError(output, context);
1232
+ }
1233
+ const contents = (0, import_smithy_client.map)({
1234
+ $metadata: deserializeMetadata(output)
1235
+ });
1236
+ await (0, import_smithy_client.collectBody)(output.body, context);
1237
+ return contents;
1238
+ }, "de_RenameTableCommand");
1239
+ var de_UpdateTableMetadataLocationCommand = /* @__PURE__ */ __name(async (output, context) => {
1240
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1241
+ return de_CommandError(output, context);
1242
+ }
1243
+ const contents = (0, import_smithy_client.map)({
1244
+ $metadata: deserializeMetadata(output)
1245
+ });
1246
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1247
+ const doc = (0, import_smithy_client.take)(data, {
1248
+ metadataLocation: import_smithy_client.expectString,
1249
+ name: import_smithy_client.expectString,
1250
+ namespace: import_smithy_client._json,
1251
+ tableARN: import_smithy_client.expectString,
1252
+ versionToken: import_smithy_client.expectString
1253
+ });
1254
+ Object.assign(contents, doc);
1255
+ return contents;
1256
+ }, "de_UpdateTableMetadataLocationCommand");
1257
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1258
+ const parsedOutput = {
1259
+ ...output,
1260
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1261
+ };
1262
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1263
+ switch (errorCode) {
1264
+ case "BadRequestException":
1265
+ case "com.amazonaws.s3tables#BadRequestException":
1266
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1267
+ case "ConflictException":
1268
+ case "com.amazonaws.s3tables#ConflictException":
1269
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1270
+ case "ForbiddenException":
1271
+ case "com.amazonaws.s3tables#ForbiddenException":
1272
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1273
+ case "InternalServerErrorException":
1274
+ case "com.amazonaws.s3tables#InternalServerErrorException":
1275
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1276
+ case "NotFoundException":
1277
+ case "com.amazonaws.s3tables#NotFoundException":
1278
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1279
+ case "TooManyRequestsException":
1280
+ case "com.amazonaws.s3tables#TooManyRequestsException":
1281
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1282
+ case "AccessDeniedException":
1283
+ case "com.amazonaws.s3tables#AccessDeniedException":
1284
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1285
+ default:
1286
+ const parsedBody = parsedOutput.body;
1287
+ return throwDefaultError({
1288
+ output,
1289
+ parsedBody,
1290
+ errorCode
1291
+ });
1292
+ }
1293
+ }, "de_CommandError");
1294
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(S3TablesServiceException);
1295
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1296
+ const contents = (0, import_smithy_client.map)({});
1297
+ const data = parsedOutput.body;
1298
+ const doc = (0, import_smithy_client.take)(data, {
1299
+ message: import_smithy_client.expectString
1300
+ });
1301
+ Object.assign(contents, doc);
1302
+ const exception = new AccessDeniedException({
1303
+ $metadata: deserializeMetadata(parsedOutput),
1304
+ ...contents
1305
+ });
1306
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1307
+ }, "de_AccessDeniedExceptionRes");
1308
+ var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1309
+ const contents = (0, import_smithy_client.map)({});
1310
+ const data = parsedOutput.body;
1311
+ const doc = (0, import_smithy_client.take)(data, {
1312
+ message: import_smithy_client.expectString
1313
+ });
1314
+ Object.assign(contents, doc);
1315
+ const exception = new BadRequestException({
1316
+ $metadata: deserializeMetadata(parsedOutput),
1317
+ ...contents
1318
+ });
1319
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1320
+ }, "de_BadRequestExceptionRes");
1321
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1322
+ const contents = (0, import_smithy_client.map)({});
1323
+ const data = parsedOutput.body;
1324
+ const doc = (0, import_smithy_client.take)(data, {
1325
+ message: import_smithy_client.expectString
1326
+ });
1327
+ Object.assign(contents, doc);
1328
+ const exception = new ConflictException({
1329
+ $metadata: deserializeMetadata(parsedOutput),
1330
+ ...contents
1331
+ });
1332
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1333
+ }, "de_ConflictExceptionRes");
1334
+ var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1335
+ const contents = (0, import_smithy_client.map)({});
1336
+ const data = parsedOutput.body;
1337
+ const doc = (0, import_smithy_client.take)(data, {
1338
+ message: import_smithy_client.expectString
1339
+ });
1340
+ Object.assign(contents, doc);
1341
+ const exception = new ForbiddenException({
1342
+ $metadata: deserializeMetadata(parsedOutput),
1343
+ ...contents
1344
+ });
1345
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1346
+ }, "de_ForbiddenExceptionRes");
1347
+ var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1348
+ const contents = (0, import_smithy_client.map)({});
1349
+ const data = parsedOutput.body;
1350
+ const doc = (0, import_smithy_client.take)(data, {
1351
+ message: import_smithy_client.expectString
1352
+ });
1353
+ Object.assign(contents, doc);
1354
+ const exception = new InternalServerErrorException({
1355
+ $metadata: deserializeMetadata(parsedOutput),
1356
+ ...contents
1357
+ });
1358
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1359
+ }, "de_InternalServerErrorExceptionRes");
1360
+ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1361
+ const contents = (0, import_smithy_client.map)({});
1362
+ const data = parsedOutput.body;
1363
+ const doc = (0, import_smithy_client.take)(data, {
1364
+ message: import_smithy_client.expectString
1365
+ });
1366
+ Object.assign(contents, doc);
1367
+ const exception = new NotFoundException({
1368
+ $metadata: deserializeMetadata(parsedOutput),
1369
+ ...contents
1370
+ });
1371
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1372
+ }, "de_NotFoundExceptionRes");
1373
+ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1374
+ const contents = (0, import_smithy_client.map)({});
1375
+ const data = parsedOutput.body;
1376
+ const doc = (0, import_smithy_client.take)(data, {
1377
+ message: import_smithy_client.expectString
1378
+ });
1379
+ Object.assign(contents, doc);
1380
+ const exception = new TooManyRequestsException({
1381
+ $metadata: deserializeMetadata(parsedOutput),
1382
+ ...contents
1383
+ });
1384
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1385
+ }, "de_TooManyRequestsExceptionRes");
1386
+ var de_NamespaceSummary = /* @__PURE__ */ __name((output, context) => {
1387
+ return (0, import_smithy_client.take)(output, {
1388
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1389
+ createdBy: import_smithy_client.expectString,
1390
+ namespace: import_smithy_client._json,
1391
+ namespaceId: import_smithy_client.expectString,
1392
+ ownerAccountId: import_smithy_client.expectString,
1393
+ tableBucketId: import_smithy_client.expectString
1394
+ });
1395
+ }, "de_NamespaceSummary");
1396
+ var de_NamespaceSummaryList = /* @__PURE__ */ __name((output, context) => {
1397
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1398
+ return de_NamespaceSummary(entry, context);
1399
+ });
1400
+ return retVal;
1401
+ }, "de_NamespaceSummaryList");
1402
+ var de_TableBucketSummary = /* @__PURE__ */ __name((output, context) => {
1403
+ return (0, import_smithy_client.take)(output, {
1404
+ arn: import_smithy_client.expectString,
1405
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1406
+ name: import_smithy_client.expectString,
1407
+ ownerAccountId: import_smithy_client.expectString,
1408
+ tableBucketId: import_smithy_client.expectString,
1409
+ type: import_smithy_client.expectString
1410
+ });
1411
+ }, "de_TableBucketSummary");
1412
+ var de_TableBucketSummaryList = /* @__PURE__ */ __name((output, context) => {
1413
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1414
+ return de_TableBucketSummary(entry, context);
1415
+ });
1416
+ return retVal;
1417
+ }, "de_TableBucketSummaryList");
1418
+ var de_TableMaintenanceJobStatus = /* @__PURE__ */ __name((output, context) => {
1419
+ return Object.entries(output).reduce(
1420
+ (acc, [key, value]) => {
1421
+ if (value === null) {
1422
+ return acc;
1423
+ }
1424
+ acc[key] = de_TableMaintenanceJobStatusValue(value, context);
1425
+ return acc;
1426
+ },
1427
+ {}
1428
+ );
1429
+ }, "de_TableMaintenanceJobStatus");
1430
+ var de_TableMaintenanceJobStatusValue = /* @__PURE__ */ __name((output, context) => {
1431
+ return (0, import_smithy_client.take)(output, {
1432
+ failureMessage: import_smithy_client.expectString,
1433
+ lastRunTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastRunTimestamp"),
1434
+ status: import_smithy_client.expectString
1435
+ });
1436
+ }, "de_TableMaintenanceJobStatusValue");
1437
+ var de_TableSummary = /* @__PURE__ */ __name((output, context) => {
1438
+ return (0, import_smithy_client.take)(output, {
1439
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1440
+ modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "modifiedAt"),
1441
+ name: import_smithy_client.expectString,
1442
+ namespace: import_smithy_client._json,
1443
+ namespaceId: import_smithy_client.expectString,
1444
+ tableARN: import_smithy_client.expectString,
1445
+ tableBucketId: import_smithy_client.expectString,
1446
+ type: import_smithy_client.expectString
1447
+ });
1448
+ }, "de_TableSummary");
1449
+ var de_TableSummaryList = /* @__PURE__ */ __name((output, context) => {
1450
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1451
+ return de_TableSummary(entry, context);
1452
+ });
1453
+ return retVal;
1454
+ }, "de_TableSummaryList");
1455
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1456
+ httpStatusCode: output.statusCode,
1457
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1458
+ extendedRequestId: output.headers["x-amz-id-2"],
1459
+ cfId: output.headers["x-amz-cf-id"]
1460
+ }), "deserializeMetadata");
1461
+ var _cT = "continuationToken";
1462
+ var _mB = "maxBuckets";
1463
+ var _mN = "maxNamespaces";
1464
+ var _mT = "maxTables";
1465
+ var _n = "namespace";
1466
+ var _na = "name";
1467
+ var _p = "prefix";
1468
+ var _t = "type";
1469
+ var _tA = "tableArn";
1470
+ var _tBARN = "tableBucketARN";
1471
+ var _vT = "versionToken";
1472
+
1473
+ // src/commands/CreateNamespaceCommand.ts
1474
+ var CreateNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1475
+ return [
1476
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1477
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1478
+ ];
1479
+ }).s("S3TableBuckets", "CreateNamespace", {}).n("S3TablesClient", "CreateNamespaceCommand").f(void 0, void 0).ser(se_CreateNamespaceCommand).de(de_CreateNamespaceCommand).build() {
1480
+ static {
1481
+ __name(this, "CreateNamespaceCommand");
1482
+ }
1483
+ };
1484
+
1485
+ // src/commands/CreateTableBucketCommand.ts
1486
+
1487
+
1488
+
1489
+ var CreateTableBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1490
+ return [
1491
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1492
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1493
+ ];
1494
+ }).s("S3TableBuckets", "CreateTableBucket", {}).n("S3TablesClient", "CreateTableBucketCommand").f(void 0, void 0).ser(se_CreateTableBucketCommand).de(de_CreateTableBucketCommand).build() {
1495
+ static {
1496
+ __name(this, "CreateTableBucketCommand");
1497
+ }
1498
+ };
1499
+
1500
+ // src/commands/CreateTableCommand.ts
1501
+
1502
+
1503
+
1504
+ var CreateTableCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1505
+ return [
1506
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1507
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1508
+ ];
1509
+ }).s("S3TableBuckets", "CreateTable", {}).n("S3TablesClient", "CreateTableCommand").f(void 0, void 0).ser(se_CreateTableCommand).de(de_CreateTableCommand).build() {
1510
+ static {
1511
+ __name(this, "CreateTableCommand");
1512
+ }
1513
+ };
1514
+
1515
+ // src/commands/DeleteNamespaceCommand.ts
1516
+
1517
+
1518
+
1519
+ var DeleteNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1520
+ return [
1521
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1522
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1523
+ ];
1524
+ }).s("S3TableBuckets", "DeleteNamespace", {}).n("S3TablesClient", "DeleteNamespaceCommand").f(void 0, void 0).ser(se_DeleteNamespaceCommand).de(de_DeleteNamespaceCommand).build() {
1525
+ static {
1526
+ __name(this, "DeleteNamespaceCommand");
1527
+ }
1528
+ };
1529
+
1530
+ // src/commands/DeleteTableBucketCommand.ts
1531
+
1532
+
1533
+
1534
+ var DeleteTableBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1535
+ return [
1536
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1537
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1538
+ ];
1539
+ }).s("S3TableBuckets", "DeleteTableBucket", {}).n("S3TablesClient", "DeleteTableBucketCommand").f(void 0, void 0).ser(se_DeleteTableBucketCommand).de(de_DeleteTableBucketCommand).build() {
1540
+ static {
1541
+ __name(this, "DeleteTableBucketCommand");
1542
+ }
1543
+ };
1544
+
1545
+ // src/commands/DeleteTableBucketEncryptionCommand.ts
1546
+
1547
+
1548
+
1549
+ var DeleteTableBucketEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1550
+ return [
1551
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1552
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1553
+ ];
1554
+ }).s("S3TableBuckets", "DeleteTableBucketEncryption", {}).n("S3TablesClient", "DeleteTableBucketEncryptionCommand").f(void 0, void 0).ser(se_DeleteTableBucketEncryptionCommand).de(de_DeleteTableBucketEncryptionCommand).build() {
1555
+ static {
1556
+ __name(this, "DeleteTableBucketEncryptionCommand");
1557
+ }
1558
+ };
1559
+
1560
+ // src/commands/DeleteTableBucketPolicyCommand.ts
1561
+
1562
+
1563
+
1564
+ var DeleteTableBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1565
+ return [
1566
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1567
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1568
+ ];
1569
+ }).s("S3TableBuckets", "DeleteTableBucketPolicy", {}).n("S3TablesClient", "DeleteTableBucketPolicyCommand").f(void 0, void 0).ser(se_DeleteTableBucketPolicyCommand).de(de_DeleteTableBucketPolicyCommand).build() {
1570
+ static {
1571
+ __name(this, "DeleteTableBucketPolicyCommand");
1572
+ }
1573
+ };
1574
+
1575
+ // src/commands/DeleteTableCommand.ts
1576
+
1577
+
1578
+
1579
+ var DeleteTableCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1580
+ return [
1581
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1582
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1583
+ ];
1584
+ }).s("S3TableBuckets", "DeleteTable", {}).n("S3TablesClient", "DeleteTableCommand").f(void 0, void 0).ser(se_DeleteTableCommand).de(de_DeleteTableCommand).build() {
1585
+ static {
1586
+ __name(this, "DeleteTableCommand");
1587
+ }
1588
+ };
1589
+
1590
+ // src/commands/DeleteTablePolicyCommand.ts
1591
+
1592
+
1593
+
1594
+ var DeleteTablePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1595
+ return [
1596
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1597
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1598
+ ];
1599
+ }).s("S3TableBuckets", "DeleteTablePolicy", {}).n("S3TablesClient", "DeleteTablePolicyCommand").f(void 0, void 0).ser(se_DeleteTablePolicyCommand).de(de_DeleteTablePolicyCommand).build() {
1600
+ static {
1601
+ __name(this, "DeleteTablePolicyCommand");
1602
+ }
1603
+ };
1604
+
1605
+ // src/commands/GetNamespaceCommand.ts
1606
+
1607
+
1608
+
1609
+ var GetNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1610
+ return [
1611
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1612
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1613
+ ];
1614
+ }).s("S3TableBuckets", "GetNamespace", {}).n("S3TablesClient", "GetNamespaceCommand").f(void 0, void 0).ser(se_GetNamespaceCommand).de(de_GetNamespaceCommand).build() {
1615
+ static {
1616
+ __name(this, "GetNamespaceCommand");
1617
+ }
1618
+ };
1619
+
1620
+ // src/commands/GetTableBucketCommand.ts
1621
+
1622
+
1623
+
1624
+ var GetTableBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1625
+ return [
1626
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1627
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1628
+ ];
1629
+ }).s("S3TableBuckets", "GetTableBucket", {}).n("S3TablesClient", "GetTableBucketCommand").f(void 0, void 0).ser(se_GetTableBucketCommand).de(de_GetTableBucketCommand).build() {
1630
+ static {
1631
+ __name(this, "GetTableBucketCommand");
1632
+ }
1633
+ };
1634
+
1635
+ // src/commands/GetTableBucketEncryptionCommand.ts
1636
+
1637
+
1638
+
1639
+ var GetTableBucketEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1640
+ return [
1641
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1642
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1643
+ ];
1644
+ }).s("S3TableBuckets", "GetTableBucketEncryption", {}).n("S3TablesClient", "GetTableBucketEncryptionCommand").f(void 0, void 0).ser(se_GetTableBucketEncryptionCommand).de(de_GetTableBucketEncryptionCommand).build() {
1645
+ static {
1646
+ __name(this, "GetTableBucketEncryptionCommand");
1647
+ }
1648
+ };
1649
+
1650
+ // src/commands/GetTableBucketMaintenanceConfigurationCommand.ts
1651
+
1652
+
1653
+
1654
+ var GetTableBucketMaintenanceConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1655
+ return [
1656
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1657
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1658
+ ];
1659
+ }).s("S3TableBuckets", "GetTableBucketMaintenanceConfiguration", {}).n("S3TablesClient", "GetTableBucketMaintenanceConfigurationCommand").f(void 0, void 0).ser(se_GetTableBucketMaintenanceConfigurationCommand).de(de_GetTableBucketMaintenanceConfigurationCommand).build() {
1660
+ static {
1661
+ __name(this, "GetTableBucketMaintenanceConfigurationCommand");
1662
+ }
1663
+ };
1664
+
1665
+ // src/commands/GetTableBucketPolicyCommand.ts
1666
+
1667
+
1668
+
1669
+ var GetTableBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1670
+ return [
1671
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1672
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1673
+ ];
1674
+ }).s("S3TableBuckets", "GetTableBucketPolicy", {}).n("S3TablesClient", "GetTableBucketPolicyCommand").f(void 0, void 0).ser(se_GetTableBucketPolicyCommand).de(de_GetTableBucketPolicyCommand).build() {
1675
+ static {
1676
+ __name(this, "GetTableBucketPolicyCommand");
1677
+ }
1678
+ };
1679
+
1680
+ // src/commands/GetTableCommand.ts
1681
+
1682
+
1683
+
1684
+ var GetTableCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1685
+ return [
1686
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1687
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1688
+ ];
1689
+ }).s("S3TableBuckets", "GetTable", {}).n("S3TablesClient", "GetTableCommand").f(void 0, void 0).ser(se_GetTableCommand).de(de_GetTableCommand).build() {
1690
+ static {
1691
+ __name(this, "GetTableCommand");
1692
+ }
1693
+ };
1694
+
1695
+ // src/commands/GetTableEncryptionCommand.ts
1696
+
1697
+
1698
+
1699
+ var GetTableEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1700
+ return [
1701
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1702
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1703
+ ];
1704
+ }).s("S3TableBuckets", "GetTableEncryption", {}).n("S3TablesClient", "GetTableEncryptionCommand").f(void 0, void 0).ser(se_GetTableEncryptionCommand).de(de_GetTableEncryptionCommand).build() {
1705
+ static {
1706
+ __name(this, "GetTableEncryptionCommand");
1707
+ }
1708
+ };
1709
+
1710
+ // src/commands/GetTableMaintenanceConfigurationCommand.ts
1711
+
1712
+
1713
+
1714
+ var GetTableMaintenanceConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1715
+ return [
1716
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1717
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1718
+ ];
1719
+ }).s("S3TableBuckets", "GetTableMaintenanceConfiguration", {}).n("S3TablesClient", "GetTableMaintenanceConfigurationCommand").f(void 0, void 0).ser(se_GetTableMaintenanceConfigurationCommand).de(de_GetTableMaintenanceConfigurationCommand).build() {
1720
+ static {
1721
+ __name(this, "GetTableMaintenanceConfigurationCommand");
1722
+ }
1723
+ };
1724
+
1725
+ // src/commands/GetTableMaintenanceJobStatusCommand.ts
1726
+
1727
+
1728
+
1729
+ var GetTableMaintenanceJobStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1730
+ return [
1731
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1732
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1733
+ ];
1734
+ }).s("S3TableBuckets", "GetTableMaintenanceJobStatus", {}).n("S3TablesClient", "GetTableMaintenanceJobStatusCommand").f(void 0, void 0).ser(se_GetTableMaintenanceJobStatusCommand).de(de_GetTableMaintenanceJobStatusCommand).build() {
1735
+ static {
1736
+ __name(this, "GetTableMaintenanceJobStatusCommand");
1737
+ }
1738
+ };
1739
+
1740
+ // src/commands/GetTableMetadataLocationCommand.ts
1741
+
1742
+
1743
+
1744
+ var GetTableMetadataLocationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1745
+ return [
1746
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1747
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1748
+ ];
1749
+ }).s("S3TableBuckets", "GetTableMetadataLocation", {}).n("S3TablesClient", "GetTableMetadataLocationCommand").f(void 0, void 0).ser(se_GetTableMetadataLocationCommand).de(de_GetTableMetadataLocationCommand).build() {
1750
+ static {
1751
+ __name(this, "GetTableMetadataLocationCommand");
1752
+ }
1753
+ };
1754
+
1755
+ // src/commands/GetTablePolicyCommand.ts
1756
+
1757
+
1758
+
1759
+ var GetTablePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1760
+ return [
1761
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1762
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1763
+ ];
1764
+ }).s("S3TableBuckets", "GetTablePolicy", {}).n("S3TablesClient", "GetTablePolicyCommand").f(void 0, void 0).ser(se_GetTablePolicyCommand).de(de_GetTablePolicyCommand).build() {
1765
+ static {
1766
+ __name(this, "GetTablePolicyCommand");
1767
+ }
1768
+ };
1769
+
1770
+ // src/commands/ListNamespacesCommand.ts
1771
+
1772
+
1773
+
1774
+ var ListNamespacesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1775
+ return [
1776
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1777
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1778
+ ];
1779
+ }).s("S3TableBuckets", "ListNamespaces", {}).n("S3TablesClient", "ListNamespacesCommand").f(void 0, void 0).ser(se_ListNamespacesCommand).de(de_ListNamespacesCommand).build() {
1780
+ static {
1781
+ __name(this, "ListNamespacesCommand");
1782
+ }
1783
+ };
1784
+
1785
+ // src/commands/ListTableBucketsCommand.ts
1786
+
1787
+
1788
+
1789
+ var ListTableBucketsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1790
+ return [
1791
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1792
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1793
+ ];
1794
+ }).s("S3TableBuckets", "ListTableBuckets", {}).n("S3TablesClient", "ListTableBucketsCommand").f(void 0, void 0).ser(se_ListTableBucketsCommand).de(de_ListTableBucketsCommand).build() {
1795
+ static {
1796
+ __name(this, "ListTableBucketsCommand");
1797
+ }
1798
+ };
1799
+
1800
+ // src/commands/ListTablesCommand.ts
1801
+
1802
+
1803
+
1804
+ var ListTablesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1805
+ return [
1806
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1807
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1808
+ ];
1809
+ }).s("S3TableBuckets", "ListTables", {}).n("S3TablesClient", "ListTablesCommand").f(void 0, void 0).ser(se_ListTablesCommand).de(de_ListTablesCommand).build() {
1810
+ static {
1811
+ __name(this, "ListTablesCommand");
1812
+ }
1813
+ };
1814
+
1815
+ // src/commands/PutTableBucketEncryptionCommand.ts
1816
+
1817
+
1818
+
1819
+ var PutTableBucketEncryptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1820
+ return [
1821
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1822
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1823
+ ];
1824
+ }).s("S3TableBuckets", "PutTableBucketEncryption", {}).n("S3TablesClient", "PutTableBucketEncryptionCommand").f(void 0, void 0).ser(se_PutTableBucketEncryptionCommand).de(de_PutTableBucketEncryptionCommand).build() {
1825
+ static {
1826
+ __name(this, "PutTableBucketEncryptionCommand");
1827
+ }
1828
+ };
1829
+
1830
+ // src/commands/PutTableBucketMaintenanceConfigurationCommand.ts
1831
+
1832
+
1833
+
1834
+ var PutTableBucketMaintenanceConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1835
+ return [
1836
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1837
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1838
+ ];
1839
+ }).s("S3TableBuckets", "PutTableBucketMaintenanceConfiguration", {}).n("S3TablesClient", "PutTableBucketMaintenanceConfigurationCommand").f(void 0, void 0).ser(se_PutTableBucketMaintenanceConfigurationCommand).de(de_PutTableBucketMaintenanceConfigurationCommand).build() {
1840
+ static {
1841
+ __name(this, "PutTableBucketMaintenanceConfigurationCommand");
1842
+ }
1843
+ };
1844
+
1845
+ // src/commands/PutTableBucketPolicyCommand.ts
1846
+
1847
+
1848
+
1849
+ var PutTableBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1850
+ return [
1851
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1852
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1853
+ ];
1854
+ }).s("S3TableBuckets", "PutTableBucketPolicy", {}).n("S3TablesClient", "PutTableBucketPolicyCommand").f(void 0, void 0).ser(se_PutTableBucketPolicyCommand).de(de_PutTableBucketPolicyCommand).build() {
1855
+ static {
1856
+ __name(this, "PutTableBucketPolicyCommand");
1857
+ }
1858
+ };
1859
+
1860
+ // src/commands/PutTableMaintenanceConfigurationCommand.ts
1861
+
1862
+
1863
+
1864
+ var PutTableMaintenanceConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1865
+ return [
1866
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1867
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1868
+ ];
1869
+ }).s("S3TableBuckets", "PutTableMaintenanceConfiguration", {}).n("S3TablesClient", "PutTableMaintenanceConfigurationCommand").f(void 0, void 0).ser(se_PutTableMaintenanceConfigurationCommand).de(de_PutTableMaintenanceConfigurationCommand).build() {
1870
+ static {
1871
+ __name(this, "PutTableMaintenanceConfigurationCommand");
1872
+ }
1873
+ };
1874
+
1875
+ // src/commands/PutTablePolicyCommand.ts
1876
+
1877
+
1878
+
1879
+ var PutTablePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1880
+ return [
1881
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1882
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1883
+ ];
1884
+ }).s("S3TableBuckets", "PutTablePolicy", {}).n("S3TablesClient", "PutTablePolicyCommand").f(void 0, void 0).ser(se_PutTablePolicyCommand).de(de_PutTablePolicyCommand).build() {
1885
+ static {
1886
+ __name(this, "PutTablePolicyCommand");
1887
+ }
1888
+ };
1889
+
1890
+ // src/commands/RenameTableCommand.ts
1891
+
1892
+
1893
+
1894
+ var RenameTableCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1895
+ return [
1896
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1897
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1898
+ ];
1899
+ }).s("S3TableBuckets", "RenameTable", {}).n("S3TablesClient", "RenameTableCommand").f(void 0, void 0).ser(se_RenameTableCommand).de(de_RenameTableCommand).build() {
1900
+ static {
1901
+ __name(this, "RenameTableCommand");
1902
+ }
1903
+ };
1904
+
1905
+ // src/commands/UpdateTableMetadataLocationCommand.ts
1906
+
1907
+
1908
+
1909
+ var UpdateTableMetadataLocationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1910
+ return [
1911
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1912
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1913
+ ];
1914
+ }).s("S3TableBuckets", "UpdateTableMetadataLocation", {}).n("S3TablesClient", "UpdateTableMetadataLocationCommand").f(void 0, void 0).ser(se_UpdateTableMetadataLocationCommand).de(de_UpdateTableMetadataLocationCommand).build() {
1915
+ static {
1916
+ __name(this, "UpdateTableMetadataLocationCommand");
1917
+ }
1918
+ };
1919
+
1920
+ // src/S3Tables.ts
1921
+ var commands = {
1922
+ CreateNamespaceCommand,
1923
+ CreateTableCommand,
1924
+ CreateTableBucketCommand,
1925
+ DeleteNamespaceCommand,
1926
+ DeleteTableCommand,
1927
+ DeleteTableBucketCommand,
1928
+ DeleteTableBucketEncryptionCommand,
1929
+ DeleteTableBucketPolicyCommand,
1930
+ DeleteTablePolicyCommand,
1931
+ GetNamespaceCommand,
1932
+ GetTableCommand,
1933
+ GetTableBucketCommand,
1934
+ GetTableBucketEncryptionCommand,
1935
+ GetTableBucketMaintenanceConfigurationCommand,
1936
+ GetTableBucketPolicyCommand,
1937
+ GetTableEncryptionCommand,
1938
+ GetTableMaintenanceConfigurationCommand,
1939
+ GetTableMaintenanceJobStatusCommand,
1940
+ GetTableMetadataLocationCommand,
1941
+ GetTablePolicyCommand,
1942
+ ListNamespacesCommand,
1943
+ ListTableBucketsCommand,
1944
+ ListTablesCommand,
1945
+ PutTableBucketEncryptionCommand,
1946
+ PutTableBucketMaintenanceConfigurationCommand,
1947
+ PutTableBucketPolicyCommand,
1948
+ PutTableMaintenanceConfigurationCommand,
1949
+ PutTablePolicyCommand,
1950
+ RenameTableCommand,
1951
+ UpdateTableMetadataLocationCommand
1952
+ };
1953
+ var S3Tables = class extends S3TablesClient {
1954
+ static {
1955
+ __name(this, "S3Tables");
1956
+ }
1957
+ };
1958
+ (0, import_smithy_client.createAggregatedClient)(commands, S3Tables);
1959
+
1960
+ // src/pagination/ListNamespacesPaginator.ts
1961
+
1962
+ var paginateListNamespaces = (0, import_core.createPaginator)(S3TablesClient, ListNamespacesCommand, "continuationToken", "continuationToken", "maxNamespaces");
1963
+
1964
+ // src/pagination/ListTableBucketsPaginator.ts
1965
+
1966
+ var paginateListTableBuckets = (0, import_core.createPaginator)(S3TablesClient, ListTableBucketsCommand, "continuationToken", "continuationToken", "maxBuckets");
1967
+
1968
+ // src/pagination/ListTablesPaginator.ts
1969
+
1970
+ var paginateListTables = (0, import_core.createPaginator)(S3TablesClient, ListTablesCommand, "continuationToken", "continuationToken", "maxTables");
1971
+ // Annotate the CommonJS export names for ESM import in node:
1972
+
1973
+ 0 && (module.exports = {
1974
+ S3TablesServiceException,
1975
+ __Client,
1976
+ S3TablesClient,
1977
+ S3Tables,
1978
+ $Command,
1979
+ CreateNamespaceCommand,
1980
+ CreateTableBucketCommand,
1981
+ CreateTableCommand,
1982
+ DeleteNamespaceCommand,
1983
+ DeleteTableBucketCommand,
1984
+ DeleteTableBucketEncryptionCommand,
1985
+ DeleteTableBucketPolicyCommand,
1986
+ DeleteTableCommand,
1987
+ DeleteTablePolicyCommand,
1988
+ GetNamespaceCommand,
1989
+ GetTableBucketCommand,
1990
+ GetTableBucketEncryptionCommand,
1991
+ GetTableBucketMaintenanceConfigurationCommand,
1992
+ GetTableBucketPolicyCommand,
1993
+ GetTableCommand,
1994
+ GetTableEncryptionCommand,
1995
+ GetTableMaintenanceConfigurationCommand,
1996
+ GetTableMaintenanceJobStatusCommand,
1997
+ GetTableMetadataLocationCommand,
1998
+ GetTablePolicyCommand,
1999
+ ListNamespacesCommand,
2000
+ ListTableBucketsCommand,
2001
+ ListTablesCommand,
2002
+ PutTableBucketEncryptionCommand,
2003
+ PutTableBucketMaintenanceConfigurationCommand,
2004
+ PutTableBucketPolicyCommand,
2005
+ PutTableMaintenanceConfigurationCommand,
2006
+ PutTablePolicyCommand,
2007
+ RenameTableCommand,
2008
+ UpdateTableMetadataLocationCommand,
2009
+ paginateListNamespaces,
2010
+ paginateListTableBuckets,
2011
+ paginateListTables,
2012
+ AccessDeniedException,
2013
+ BadRequestException,
2014
+ ConflictException,
2015
+ ForbiddenException,
2016
+ InternalServerErrorException,
2017
+ NotFoundException,
2018
+ TooManyRequestsException,
2019
+ SSEAlgorithm,
2020
+ OpenTableFormat,
2021
+ TableMetadata,
2022
+ TableType,
2023
+ TableBucketType,
2024
+ TableBucketMaintenanceType,
2025
+ TableBucketMaintenanceSettings,
2026
+ MaintenanceStatus,
2027
+ TableMaintenanceType,
2028
+ IcebergCompactionStrategy,
2029
+ TableMaintenanceSettings,
2030
+ TableMaintenanceJobType,
2031
+ JobStatus
2032
+ });
2033
+