@aws-sdk/client-s3tables 3.705.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.
- package/LICENSE +201 -0
- package/README.md +413 -0
- package/dist-cjs/S3Tables.js +63 -0
- package/dist-cjs/S3TablesClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateNamespaceCommand.js +26 -0
- package/dist-cjs/commands/CreateTableBucketCommand.js +26 -0
- package/dist-cjs/commands/CreateTableCommand.js +26 -0
- package/dist-cjs/commands/DeleteNamespaceCommand.js +26 -0
- package/dist-cjs/commands/DeleteTableBucketCommand.js +26 -0
- package/dist-cjs/commands/DeleteTableBucketPolicyCommand.js +26 -0
- package/dist-cjs/commands/DeleteTableCommand.js +26 -0
- package/dist-cjs/commands/DeleteTablePolicyCommand.js +26 -0
- package/dist-cjs/commands/GetNamespaceCommand.js +26 -0
- package/dist-cjs/commands/GetTableBucketCommand.js +26 -0
- package/dist-cjs/commands/GetTableBucketMaintenanceConfigurationCommand.js +26 -0
- package/dist-cjs/commands/GetTableBucketPolicyCommand.js +26 -0
- package/dist-cjs/commands/GetTableCommand.js +26 -0
- package/dist-cjs/commands/GetTableMaintenanceConfigurationCommand.js +26 -0
- package/dist-cjs/commands/GetTableMaintenanceJobStatusCommand.js +26 -0
- package/dist-cjs/commands/GetTableMetadataLocationCommand.js +26 -0
- package/dist-cjs/commands/GetTablePolicyCommand.js +26 -0
- package/dist-cjs/commands/ListNamespacesCommand.js +26 -0
- package/dist-cjs/commands/ListTableBucketsCommand.js +26 -0
- package/dist-cjs/commands/ListTablesCommand.js +26 -0
- package/dist-cjs/commands/PutTableBucketMaintenanceConfigurationCommand.js +26 -0
- package/dist-cjs/commands/PutTableBucketPolicyCommand.js +26 -0
- package/dist-cjs/commands/PutTableMaintenanceConfigurationCommand.js +26 -0
- package/dist-cjs/commands/PutTablePolicyCommand.js +26 -0
- package/dist-cjs/commands/RenameTableCommand.js +26 -0
- package/dist-cjs/commands/UpdateTableMetadataLocationCommand.js +26 -0
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/S3TablesServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +142 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListNamespacesPaginator.js +7 -0
- package/dist-cjs/pagination/ListTableBucketsPaginator.js +7 -0
- package/dist-cjs/pagination/ListTablesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +954 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/S3Tables.js +59 -0
- package/dist-es/S3TablesClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateNamespaceCommand.js +22 -0
- package/dist-es/commands/CreateTableBucketCommand.js +22 -0
- package/dist-es/commands/CreateTableCommand.js +22 -0
- package/dist-es/commands/DeleteNamespaceCommand.js +22 -0
- package/dist-es/commands/DeleteTableBucketCommand.js +22 -0
- package/dist-es/commands/DeleteTableBucketPolicyCommand.js +22 -0
- package/dist-es/commands/DeleteTableCommand.js +22 -0
- package/dist-es/commands/DeleteTablePolicyCommand.js +22 -0
- package/dist-es/commands/GetNamespaceCommand.js +22 -0
- package/dist-es/commands/GetTableBucketCommand.js +22 -0
- package/dist-es/commands/GetTableBucketMaintenanceConfigurationCommand.js +22 -0
- package/dist-es/commands/GetTableBucketPolicyCommand.js +22 -0
- package/dist-es/commands/GetTableCommand.js +22 -0
- package/dist-es/commands/GetTableMaintenanceConfigurationCommand.js +22 -0
- package/dist-es/commands/GetTableMaintenanceJobStatusCommand.js +22 -0
- package/dist-es/commands/GetTableMetadataLocationCommand.js +22 -0
- package/dist-es/commands/GetTablePolicyCommand.js +22 -0
- package/dist-es/commands/ListNamespacesCommand.js +22 -0
- package/dist-es/commands/ListTableBucketsCommand.js +22 -0
- package/dist-es/commands/ListTablesCommand.js +22 -0
- package/dist-es/commands/PutTableBucketMaintenanceConfigurationCommand.js +22 -0
- package/dist-es/commands/PutTableBucketPolicyCommand.js +22 -0
- package/dist-es/commands/PutTableMaintenanceConfigurationCommand.js +22 -0
- package/dist-es/commands/PutTablePolicyCommand.js +22 -0
- package/dist-es/commands/RenameTableCommand.js +22 -0
- package/dist-es/commands/UpdateTableMetadataLocationCommand.js +22 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/S3TablesServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +132 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListNamespacesPaginator.js +4 -0
- package/dist-es/pagination/ListTableBucketsPaginator.js +4 -0
- package/dist-es/pagination/ListTablesPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +898 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/S3Tables.d.ts +193 -0
- package/dist-types/S3TablesClient.d.ts +195 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateNamespaceCommand.d.ts +96 -0
- package/dist-types/commands/CreateTableBucketCommand.d.ts +90 -0
- package/dist-types/commands/CreateTableCommand.d.ts +94 -0
- package/dist-types/commands/DeleteNamespaceCommand.d.ts +89 -0
- package/dist-types/commands/DeleteTableBucketCommand.d.ts +88 -0
- package/dist-types/commands/DeleteTableBucketPolicyCommand.d.ts +88 -0
- package/dist-types/commands/DeleteTableCommand.d.ts +91 -0
- package/dist-types/commands/DeleteTablePolicyCommand.d.ts +90 -0
- package/dist-types/commands/GetNamespaceCommand.d.ts +99 -0
- package/dist-types/commands/GetTableBucketCommand.d.ts +96 -0
- package/dist-types/commands/GetTableBucketMaintenanceConfigurationCommand.d.ts +101 -0
- package/dist-types/commands/GetTableBucketPolicyCommand.d.ts +90 -0
- package/dist-types/commands/GetTableCommand.d.ts +110 -0
- package/dist-types/commands/GetTableMaintenanceConfigurationCommand.d.ts +106 -0
- package/dist-types/commands/GetTableMaintenanceJobStatusCommand.d.ts +99 -0
- package/dist-types/commands/GetTableMetadataLocationCommand.d.ts +94 -0
- package/dist-types/commands/GetTablePolicyCommand.d.ts +92 -0
- package/dist-types/commands/ListNamespacesCommand.d.ts +106 -0
- package/dist-types/commands/ListTableBucketsCommand.d.ts +103 -0
- package/dist-types/commands/ListTablesCommand.d.ts +106 -0
- package/dist-types/commands/PutTableBucketMaintenanceConfigurationCommand.d.ts +99 -0
- package/dist-types/commands/PutTableBucketPolicyCommand.d.ts +90 -0
- package/dist-types/commands/PutTableMaintenanceConfigurationCommand.d.ts +104 -0
- package/dist-types/commands/PutTablePolicyCommand.d.ts +92 -0
- package/dist-types/commands/RenameTableCommand.d.ts +93 -0
- package/dist-types/commands/UpdateTableMetadataLocationCommand.d.ts +100 -0
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/S3TablesServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1280 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListNamespacesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTableBucketsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTablesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/S3Tables.d.ts +460 -0
- package/dist-types/ts3.4/S3TablesClient.d.ts +274 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/CreateNamespaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateTableBucketCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteNamespaceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/DeleteTableBucketCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DeleteTableBucketPolicyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/DeleteTablePolicyCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/GetNamespaceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetTableBucketCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetTableBucketMaintenanceConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTableBucketPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTableCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetTableMaintenanceConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTableMaintenanceJobStatusCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTableMetadataLocationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTablePolicyCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListNamespacesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListTableBucketsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/PutTableBucketMaintenanceConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/PutTableBucketPolicyCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/PutTableMaintenanceConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/PutTablePolicyCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/RenameTableCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UpdateTableMetadataLocationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/S3TablesServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +399 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListNamespacesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTableBucketsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +317 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,954 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_PutTablePolicyCommand = exports.de_PutTableMaintenanceConfigurationCommand = exports.de_PutTableBucketPolicyCommand = exports.de_PutTableBucketMaintenanceConfigurationCommand = exports.de_ListTablesCommand = exports.de_ListTableBucketsCommand = exports.de_ListNamespacesCommand = exports.de_GetTablePolicyCommand = exports.de_GetTableMetadataLocationCommand = exports.de_GetTableMaintenanceJobStatusCommand = exports.de_GetTableMaintenanceConfigurationCommand = exports.de_GetTableBucketPolicyCommand = exports.de_GetTableBucketMaintenanceConfigurationCommand = exports.de_GetTableBucketCommand = exports.de_GetTableCommand = exports.de_GetNamespaceCommand = exports.de_DeleteTablePolicyCommand = exports.de_DeleteTableBucketPolicyCommand = exports.de_DeleteTableBucketCommand = exports.de_DeleteTableCommand = exports.de_DeleteNamespaceCommand = exports.de_CreateTableBucketCommand = exports.de_CreateTableCommand = exports.de_CreateNamespaceCommand = exports.se_UpdateTableMetadataLocationCommand = exports.se_RenameTableCommand = exports.se_PutTablePolicyCommand = exports.se_PutTableMaintenanceConfigurationCommand = exports.se_PutTableBucketPolicyCommand = exports.se_PutTableBucketMaintenanceConfigurationCommand = exports.se_ListTablesCommand = exports.se_ListTableBucketsCommand = exports.se_ListNamespacesCommand = exports.se_GetTablePolicyCommand = exports.se_GetTableMetadataLocationCommand = exports.se_GetTableMaintenanceJobStatusCommand = exports.se_GetTableMaintenanceConfigurationCommand = exports.se_GetTableBucketPolicyCommand = exports.se_GetTableBucketMaintenanceConfigurationCommand = exports.se_GetTableBucketCommand = exports.se_GetTableCommand = exports.se_GetNamespaceCommand = exports.se_DeleteTablePolicyCommand = exports.se_DeleteTableBucketPolicyCommand = exports.se_DeleteTableBucketCommand = exports.se_DeleteTableCommand = exports.se_DeleteNamespaceCommand = exports.se_CreateTableBucketCommand = exports.se_CreateTableCommand = exports.se_CreateNamespaceCommand = void 0;
|
|
4
|
+
exports.de_UpdateTableMetadataLocationCommand = exports.de_RenameTableCommand = void 0;
|
|
5
|
+
const core_1 = require("@aws-sdk/core");
|
|
6
|
+
const core_2 = require("@smithy/core");
|
|
7
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const S3TablesServiceException_1 = require("../models/S3TablesServiceException");
|
|
10
|
+
const se_CreateNamespaceCommand = async (input, context) => {
|
|
11
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
+
const headers = {
|
|
13
|
+
"content-type": "application/json",
|
|
14
|
+
};
|
|
15
|
+
b.bp("/namespaces/{tableBucketARN}");
|
|
16
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
17
|
+
let body;
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
+
namespace: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
}));
|
|
21
|
+
b.m("PUT").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
23
|
+
};
|
|
24
|
+
exports.se_CreateNamespaceCommand = se_CreateNamespaceCommand;
|
|
25
|
+
const se_CreateTableCommand = async (input, context) => {
|
|
26
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
27
|
+
const headers = {
|
|
28
|
+
"content-type": "application/json",
|
|
29
|
+
};
|
|
30
|
+
b.bp("/tables/{tableBucketARN}/{namespace}");
|
|
31
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
32
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
35
|
+
format: [],
|
|
36
|
+
name: [],
|
|
37
|
+
}));
|
|
38
|
+
b.m("PUT").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
40
|
+
};
|
|
41
|
+
exports.se_CreateTableCommand = se_CreateTableCommand;
|
|
42
|
+
const se_CreateTableBucketCommand = async (input, context) => {
|
|
43
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
44
|
+
const headers = {
|
|
45
|
+
"content-type": "application/json",
|
|
46
|
+
};
|
|
47
|
+
b.bp("/buckets");
|
|
48
|
+
let body;
|
|
49
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
|
+
name: [],
|
|
51
|
+
}));
|
|
52
|
+
b.m("PUT").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
54
|
+
};
|
|
55
|
+
exports.se_CreateTableBucketCommand = se_CreateTableBucketCommand;
|
|
56
|
+
const se_DeleteNamespaceCommand = async (input, context) => {
|
|
57
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
58
|
+
const headers = {};
|
|
59
|
+
b.bp("/namespaces/{tableBucketARN}/{namespace}");
|
|
60
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
61
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
62
|
+
let body;
|
|
63
|
+
b.m("DELETE").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
65
|
+
};
|
|
66
|
+
exports.se_DeleteNamespaceCommand = se_DeleteNamespaceCommand;
|
|
67
|
+
const se_DeleteTableCommand = async (input, context) => {
|
|
68
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
69
|
+
const headers = {};
|
|
70
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}");
|
|
71
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
72
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
73
|
+
b.p("name", () => input.name, "{name}", false);
|
|
74
|
+
const query = (0, smithy_client_1.map)({
|
|
75
|
+
[_vT]: [, input[_vT]],
|
|
76
|
+
});
|
|
77
|
+
let body;
|
|
78
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
79
|
+
return b.build();
|
|
80
|
+
};
|
|
81
|
+
exports.se_DeleteTableCommand = se_DeleteTableCommand;
|
|
82
|
+
const se_DeleteTableBucketCommand = async (input, context) => {
|
|
83
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
84
|
+
const headers = {};
|
|
85
|
+
b.bp("/buckets/{tableBucketARN}");
|
|
86
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
87
|
+
let body;
|
|
88
|
+
b.m("DELETE").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
90
|
+
};
|
|
91
|
+
exports.se_DeleteTableBucketCommand = se_DeleteTableBucketCommand;
|
|
92
|
+
const se_DeleteTableBucketPolicyCommand = async (input, context) => {
|
|
93
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
94
|
+
const headers = {};
|
|
95
|
+
b.bp("/buckets/{tableBucketARN}/policy");
|
|
96
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
97
|
+
let body;
|
|
98
|
+
b.m("DELETE").h(headers).b(body);
|
|
99
|
+
return b.build();
|
|
100
|
+
};
|
|
101
|
+
exports.se_DeleteTableBucketPolicyCommand = se_DeleteTableBucketPolicyCommand;
|
|
102
|
+
const se_DeleteTablePolicyCommand = async (input, context) => {
|
|
103
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
104
|
+
const headers = {};
|
|
105
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/policy");
|
|
106
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
107
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
108
|
+
b.p("name", () => input.name, "{name}", false);
|
|
109
|
+
let body;
|
|
110
|
+
b.m("DELETE").h(headers).b(body);
|
|
111
|
+
return b.build();
|
|
112
|
+
};
|
|
113
|
+
exports.se_DeleteTablePolicyCommand = se_DeleteTablePolicyCommand;
|
|
114
|
+
const se_GetNamespaceCommand = async (input, context) => {
|
|
115
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
116
|
+
const headers = {};
|
|
117
|
+
b.bp("/namespaces/{tableBucketARN}/{namespace}");
|
|
118
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
119
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
120
|
+
let body;
|
|
121
|
+
b.m("GET").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
123
|
+
};
|
|
124
|
+
exports.se_GetNamespaceCommand = se_GetNamespaceCommand;
|
|
125
|
+
const se_GetTableCommand = async (input, context) => {
|
|
126
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
127
|
+
const headers = {};
|
|
128
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}");
|
|
129
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
130
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
131
|
+
b.p("name", () => input.name, "{name}", false);
|
|
132
|
+
let body;
|
|
133
|
+
b.m("GET").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
135
|
+
};
|
|
136
|
+
exports.se_GetTableCommand = se_GetTableCommand;
|
|
137
|
+
const se_GetTableBucketCommand = async (input, context) => {
|
|
138
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
139
|
+
const headers = {};
|
|
140
|
+
b.bp("/buckets/{tableBucketARN}");
|
|
141
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
142
|
+
let body;
|
|
143
|
+
b.m("GET").h(headers).b(body);
|
|
144
|
+
return b.build();
|
|
145
|
+
};
|
|
146
|
+
exports.se_GetTableBucketCommand = se_GetTableBucketCommand;
|
|
147
|
+
const se_GetTableBucketMaintenanceConfigurationCommand = async (input, context) => {
|
|
148
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
149
|
+
const headers = {};
|
|
150
|
+
b.bp("/buckets/{tableBucketARN}/maintenance");
|
|
151
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
152
|
+
let body;
|
|
153
|
+
b.m("GET").h(headers).b(body);
|
|
154
|
+
return b.build();
|
|
155
|
+
};
|
|
156
|
+
exports.se_GetTableBucketMaintenanceConfigurationCommand = se_GetTableBucketMaintenanceConfigurationCommand;
|
|
157
|
+
const se_GetTableBucketPolicyCommand = async (input, context) => {
|
|
158
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
159
|
+
const headers = {};
|
|
160
|
+
b.bp("/buckets/{tableBucketARN}/policy");
|
|
161
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
162
|
+
let body;
|
|
163
|
+
b.m("GET").h(headers).b(body);
|
|
164
|
+
return b.build();
|
|
165
|
+
};
|
|
166
|
+
exports.se_GetTableBucketPolicyCommand = se_GetTableBucketPolicyCommand;
|
|
167
|
+
const se_GetTableMaintenanceConfigurationCommand = async (input, context) => {
|
|
168
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
169
|
+
const headers = {};
|
|
170
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/maintenance");
|
|
171
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
172
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
173
|
+
b.p("name", () => input.name, "{name}", false);
|
|
174
|
+
let body;
|
|
175
|
+
b.m("GET").h(headers).b(body);
|
|
176
|
+
return b.build();
|
|
177
|
+
};
|
|
178
|
+
exports.se_GetTableMaintenanceConfigurationCommand = se_GetTableMaintenanceConfigurationCommand;
|
|
179
|
+
const se_GetTableMaintenanceJobStatusCommand = async (input, context) => {
|
|
180
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
181
|
+
const headers = {};
|
|
182
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/maintenance-job-status");
|
|
183
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
184
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
185
|
+
b.p("name", () => input.name, "{name}", false);
|
|
186
|
+
let body;
|
|
187
|
+
b.m("GET").h(headers).b(body);
|
|
188
|
+
return b.build();
|
|
189
|
+
};
|
|
190
|
+
exports.se_GetTableMaintenanceJobStatusCommand = se_GetTableMaintenanceJobStatusCommand;
|
|
191
|
+
const se_GetTableMetadataLocationCommand = async (input, context) => {
|
|
192
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
193
|
+
const headers = {};
|
|
194
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/metadata-location");
|
|
195
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
196
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
197
|
+
b.p("name", () => input.name, "{name}", false);
|
|
198
|
+
let body;
|
|
199
|
+
b.m("GET").h(headers).b(body);
|
|
200
|
+
return b.build();
|
|
201
|
+
};
|
|
202
|
+
exports.se_GetTableMetadataLocationCommand = se_GetTableMetadataLocationCommand;
|
|
203
|
+
const se_GetTablePolicyCommand = async (input, context) => {
|
|
204
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
205
|
+
const headers = {};
|
|
206
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/policy");
|
|
207
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
208
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
209
|
+
b.p("name", () => input.name, "{name}", false);
|
|
210
|
+
let body;
|
|
211
|
+
b.m("GET").h(headers).b(body);
|
|
212
|
+
return b.build();
|
|
213
|
+
};
|
|
214
|
+
exports.se_GetTablePolicyCommand = se_GetTablePolicyCommand;
|
|
215
|
+
const se_ListNamespacesCommand = async (input, context) => {
|
|
216
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
217
|
+
const headers = {};
|
|
218
|
+
b.bp("/namespaces/{tableBucketARN}");
|
|
219
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
220
|
+
const query = (0, smithy_client_1.map)({
|
|
221
|
+
[_p]: [, input[_p]],
|
|
222
|
+
[_cT]: [, input[_cT]],
|
|
223
|
+
[_mN]: [() => input.maxNamespaces !== void 0, () => input[_mN].toString()],
|
|
224
|
+
});
|
|
225
|
+
let body;
|
|
226
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
227
|
+
return b.build();
|
|
228
|
+
};
|
|
229
|
+
exports.se_ListNamespacesCommand = se_ListNamespacesCommand;
|
|
230
|
+
const se_ListTableBucketsCommand = async (input, context) => {
|
|
231
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
232
|
+
const headers = {};
|
|
233
|
+
b.bp("/buckets");
|
|
234
|
+
const query = (0, smithy_client_1.map)({
|
|
235
|
+
[_p]: [, input[_p]],
|
|
236
|
+
[_cT]: [, input[_cT]],
|
|
237
|
+
[_mB]: [() => input.maxBuckets !== void 0, () => input[_mB].toString()],
|
|
238
|
+
});
|
|
239
|
+
let body;
|
|
240
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
241
|
+
return b.build();
|
|
242
|
+
};
|
|
243
|
+
exports.se_ListTableBucketsCommand = se_ListTableBucketsCommand;
|
|
244
|
+
const se_ListTablesCommand = async (input, context) => {
|
|
245
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
246
|
+
const headers = {};
|
|
247
|
+
b.bp("/tables/{tableBucketARN}");
|
|
248
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
249
|
+
const query = (0, smithy_client_1.map)({
|
|
250
|
+
[_n]: [, input[_n]],
|
|
251
|
+
[_p]: [, input[_p]],
|
|
252
|
+
[_cT]: [, input[_cT]],
|
|
253
|
+
[_mT]: [() => input.maxTables !== void 0, () => input[_mT].toString()],
|
|
254
|
+
});
|
|
255
|
+
let body;
|
|
256
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
257
|
+
return b.build();
|
|
258
|
+
};
|
|
259
|
+
exports.se_ListTablesCommand = se_ListTablesCommand;
|
|
260
|
+
const se_PutTableBucketMaintenanceConfigurationCommand = async (input, context) => {
|
|
261
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
262
|
+
const headers = {
|
|
263
|
+
"content-type": "application/json",
|
|
264
|
+
};
|
|
265
|
+
b.bp("/buckets/{tableBucketARN}/maintenance/{type}");
|
|
266
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
267
|
+
b.p("type", () => input.type, "{type}", false);
|
|
268
|
+
let body;
|
|
269
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
270
|
+
value: (_) => (0, smithy_client_1._json)(_),
|
|
271
|
+
}));
|
|
272
|
+
b.m("PUT").h(headers).b(body);
|
|
273
|
+
return b.build();
|
|
274
|
+
};
|
|
275
|
+
exports.se_PutTableBucketMaintenanceConfigurationCommand = se_PutTableBucketMaintenanceConfigurationCommand;
|
|
276
|
+
const se_PutTableBucketPolicyCommand = async (input, context) => {
|
|
277
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
278
|
+
const headers = {
|
|
279
|
+
"content-type": "application/json",
|
|
280
|
+
};
|
|
281
|
+
b.bp("/buckets/{tableBucketARN}/policy");
|
|
282
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
285
|
+
resourcePolicy: [],
|
|
286
|
+
}));
|
|
287
|
+
b.m("PUT").h(headers).b(body);
|
|
288
|
+
return b.build();
|
|
289
|
+
};
|
|
290
|
+
exports.se_PutTableBucketPolicyCommand = se_PutTableBucketPolicyCommand;
|
|
291
|
+
const se_PutTableMaintenanceConfigurationCommand = async (input, context) => {
|
|
292
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
293
|
+
const headers = {
|
|
294
|
+
"content-type": "application/json",
|
|
295
|
+
};
|
|
296
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/maintenance/{type}");
|
|
297
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
298
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
299
|
+
b.p("name", () => input.name, "{name}", false);
|
|
300
|
+
b.p("type", () => input.type, "{type}", false);
|
|
301
|
+
let body;
|
|
302
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
303
|
+
value: (_) => (0, smithy_client_1._json)(_),
|
|
304
|
+
}));
|
|
305
|
+
b.m("PUT").h(headers).b(body);
|
|
306
|
+
return b.build();
|
|
307
|
+
};
|
|
308
|
+
exports.se_PutTableMaintenanceConfigurationCommand = se_PutTableMaintenanceConfigurationCommand;
|
|
309
|
+
const se_PutTablePolicyCommand = async (input, context) => {
|
|
310
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
311
|
+
const headers = {
|
|
312
|
+
"content-type": "application/json",
|
|
313
|
+
};
|
|
314
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/policy");
|
|
315
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
316
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
317
|
+
b.p("name", () => input.name, "{name}", false);
|
|
318
|
+
let body;
|
|
319
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
320
|
+
resourcePolicy: [],
|
|
321
|
+
}));
|
|
322
|
+
b.m("PUT").h(headers).b(body);
|
|
323
|
+
return b.build();
|
|
324
|
+
};
|
|
325
|
+
exports.se_PutTablePolicyCommand = se_PutTablePolicyCommand;
|
|
326
|
+
const se_RenameTableCommand = async (input, context) => {
|
|
327
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/json",
|
|
330
|
+
};
|
|
331
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/rename");
|
|
332
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
333
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
334
|
+
b.p("name", () => input.name, "{name}", false);
|
|
335
|
+
let body;
|
|
336
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
337
|
+
newName: [],
|
|
338
|
+
newNamespaceName: [],
|
|
339
|
+
versionToken: [],
|
|
340
|
+
}));
|
|
341
|
+
b.m("PUT").h(headers).b(body);
|
|
342
|
+
return b.build();
|
|
343
|
+
};
|
|
344
|
+
exports.se_RenameTableCommand = se_RenameTableCommand;
|
|
345
|
+
const se_UpdateTableMetadataLocationCommand = async (input, context) => {
|
|
346
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
347
|
+
const headers = {
|
|
348
|
+
"content-type": "application/json",
|
|
349
|
+
};
|
|
350
|
+
b.bp("/tables/{tableBucketARN}/{namespace}/{name}/metadata-location");
|
|
351
|
+
b.p("tableBucketARN", () => input.tableBucketARN, "{tableBucketARN}", false);
|
|
352
|
+
b.p("namespace", () => input.namespace, "{namespace}", false);
|
|
353
|
+
b.p("name", () => input.name, "{name}", false);
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
356
|
+
metadataLocation: [],
|
|
357
|
+
versionToken: [],
|
|
358
|
+
}));
|
|
359
|
+
b.m("PUT").h(headers).b(body);
|
|
360
|
+
return b.build();
|
|
361
|
+
};
|
|
362
|
+
exports.se_UpdateTableMetadataLocationCommand = se_UpdateTableMetadataLocationCommand;
|
|
363
|
+
const de_CreateNamespaceCommand = async (output, context) => {
|
|
364
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
+
return de_CommandError(output, context);
|
|
366
|
+
}
|
|
367
|
+
const contents = (0, smithy_client_1.map)({
|
|
368
|
+
$metadata: deserializeMetadata(output),
|
|
369
|
+
});
|
|
370
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
371
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
372
|
+
namespace: smithy_client_1._json,
|
|
373
|
+
tableBucketARN: smithy_client_1.expectString,
|
|
374
|
+
});
|
|
375
|
+
Object.assign(contents, doc);
|
|
376
|
+
return contents;
|
|
377
|
+
};
|
|
378
|
+
exports.de_CreateNamespaceCommand = de_CreateNamespaceCommand;
|
|
379
|
+
const de_CreateTableCommand = async (output, context) => {
|
|
380
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
381
|
+
return de_CommandError(output, context);
|
|
382
|
+
}
|
|
383
|
+
const contents = (0, smithy_client_1.map)({
|
|
384
|
+
$metadata: deserializeMetadata(output),
|
|
385
|
+
});
|
|
386
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
387
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
388
|
+
tableARN: smithy_client_1.expectString,
|
|
389
|
+
versionToken: smithy_client_1.expectString,
|
|
390
|
+
});
|
|
391
|
+
Object.assign(contents, doc);
|
|
392
|
+
return contents;
|
|
393
|
+
};
|
|
394
|
+
exports.de_CreateTableCommand = de_CreateTableCommand;
|
|
395
|
+
const de_CreateTableBucketCommand = async (output, context) => {
|
|
396
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
397
|
+
return de_CommandError(output, context);
|
|
398
|
+
}
|
|
399
|
+
const contents = (0, smithy_client_1.map)({
|
|
400
|
+
$metadata: deserializeMetadata(output),
|
|
401
|
+
});
|
|
402
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
403
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
404
|
+
arn: smithy_client_1.expectString,
|
|
405
|
+
});
|
|
406
|
+
Object.assign(contents, doc);
|
|
407
|
+
return contents;
|
|
408
|
+
};
|
|
409
|
+
exports.de_CreateTableBucketCommand = de_CreateTableBucketCommand;
|
|
410
|
+
const de_DeleteNamespaceCommand = async (output, context) => {
|
|
411
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
412
|
+
return de_CommandError(output, context);
|
|
413
|
+
}
|
|
414
|
+
const contents = (0, smithy_client_1.map)({
|
|
415
|
+
$metadata: deserializeMetadata(output),
|
|
416
|
+
});
|
|
417
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
418
|
+
return contents;
|
|
419
|
+
};
|
|
420
|
+
exports.de_DeleteNamespaceCommand = de_DeleteNamespaceCommand;
|
|
421
|
+
const de_DeleteTableCommand = async (output, context) => {
|
|
422
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
423
|
+
return de_CommandError(output, context);
|
|
424
|
+
}
|
|
425
|
+
const contents = (0, smithy_client_1.map)({
|
|
426
|
+
$metadata: deserializeMetadata(output),
|
|
427
|
+
});
|
|
428
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
429
|
+
return contents;
|
|
430
|
+
};
|
|
431
|
+
exports.de_DeleteTableCommand = de_DeleteTableCommand;
|
|
432
|
+
const de_DeleteTableBucketCommand = async (output, context) => {
|
|
433
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
434
|
+
return de_CommandError(output, context);
|
|
435
|
+
}
|
|
436
|
+
const contents = (0, smithy_client_1.map)({
|
|
437
|
+
$metadata: deserializeMetadata(output),
|
|
438
|
+
});
|
|
439
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
440
|
+
return contents;
|
|
441
|
+
};
|
|
442
|
+
exports.de_DeleteTableBucketCommand = de_DeleteTableBucketCommand;
|
|
443
|
+
const de_DeleteTableBucketPolicyCommand = async (output, context) => {
|
|
444
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
445
|
+
return de_CommandError(output, context);
|
|
446
|
+
}
|
|
447
|
+
const contents = (0, smithy_client_1.map)({
|
|
448
|
+
$metadata: deserializeMetadata(output),
|
|
449
|
+
});
|
|
450
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
451
|
+
return contents;
|
|
452
|
+
};
|
|
453
|
+
exports.de_DeleteTableBucketPolicyCommand = de_DeleteTableBucketPolicyCommand;
|
|
454
|
+
const de_DeleteTablePolicyCommand = async (output, context) => {
|
|
455
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
456
|
+
return de_CommandError(output, context);
|
|
457
|
+
}
|
|
458
|
+
const contents = (0, smithy_client_1.map)({
|
|
459
|
+
$metadata: deserializeMetadata(output),
|
|
460
|
+
});
|
|
461
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
462
|
+
return contents;
|
|
463
|
+
};
|
|
464
|
+
exports.de_DeleteTablePolicyCommand = de_DeleteTablePolicyCommand;
|
|
465
|
+
const de_GetNamespaceCommand = async (output, context) => {
|
|
466
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
467
|
+
return de_CommandError(output, context);
|
|
468
|
+
}
|
|
469
|
+
const contents = (0, smithy_client_1.map)({
|
|
470
|
+
$metadata: deserializeMetadata(output),
|
|
471
|
+
});
|
|
472
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
473
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
474
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
475
|
+
createdBy: smithy_client_1.expectString,
|
|
476
|
+
namespace: smithy_client_1._json,
|
|
477
|
+
ownerAccountId: smithy_client_1.expectString,
|
|
478
|
+
});
|
|
479
|
+
Object.assign(contents, doc);
|
|
480
|
+
return contents;
|
|
481
|
+
};
|
|
482
|
+
exports.de_GetNamespaceCommand = de_GetNamespaceCommand;
|
|
483
|
+
const de_GetTableCommand = async (output, context) => {
|
|
484
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
485
|
+
return de_CommandError(output, context);
|
|
486
|
+
}
|
|
487
|
+
const contents = (0, smithy_client_1.map)({
|
|
488
|
+
$metadata: deserializeMetadata(output),
|
|
489
|
+
});
|
|
490
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
491
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
492
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
493
|
+
createdBy: smithy_client_1.expectString,
|
|
494
|
+
format: smithy_client_1.expectString,
|
|
495
|
+
managedByService: smithy_client_1.expectString,
|
|
496
|
+
metadataLocation: smithy_client_1.expectString,
|
|
497
|
+
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
498
|
+
modifiedBy: smithy_client_1.expectString,
|
|
499
|
+
name: smithy_client_1.expectString,
|
|
500
|
+
namespace: smithy_client_1._json,
|
|
501
|
+
ownerAccountId: smithy_client_1.expectString,
|
|
502
|
+
tableARN: smithy_client_1.expectString,
|
|
503
|
+
type: smithy_client_1.expectString,
|
|
504
|
+
versionToken: smithy_client_1.expectString,
|
|
505
|
+
warehouseLocation: smithy_client_1.expectString,
|
|
506
|
+
});
|
|
507
|
+
Object.assign(contents, doc);
|
|
508
|
+
return contents;
|
|
509
|
+
};
|
|
510
|
+
exports.de_GetTableCommand = de_GetTableCommand;
|
|
511
|
+
const de_GetTableBucketCommand = async (output, context) => {
|
|
512
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
513
|
+
return de_CommandError(output, context);
|
|
514
|
+
}
|
|
515
|
+
const contents = (0, smithy_client_1.map)({
|
|
516
|
+
$metadata: deserializeMetadata(output),
|
|
517
|
+
});
|
|
518
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
519
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
520
|
+
arn: smithy_client_1.expectString,
|
|
521
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
522
|
+
name: smithy_client_1.expectString,
|
|
523
|
+
ownerAccountId: smithy_client_1.expectString,
|
|
524
|
+
});
|
|
525
|
+
Object.assign(contents, doc);
|
|
526
|
+
return contents;
|
|
527
|
+
};
|
|
528
|
+
exports.de_GetTableBucketCommand = de_GetTableBucketCommand;
|
|
529
|
+
const de_GetTableBucketMaintenanceConfigurationCommand = async (output, context) => {
|
|
530
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
531
|
+
return de_CommandError(output, context);
|
|
532
|
+
}
|
|
533
|
+
const contents = (0, smithy_client_1.map)({
|
|
534
|
+
$metadata: deserializeMetadata(output),
|
|
535
|
+
});
|
|
536
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
537
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
538
|
+
configuration: smithy_client_1._json,
|
|
539
|
+
tableBucketARN: smithy_client_1.expectString,
|
|
540
|
+
});
|
|
541
|
+
Object.assign(contents, doc);
|
|
542
|
+
return contents;
|
|
543
|
+
};
|
|
544
|
+
exports.de_GetTableBucketMaintenanceConfigurationCommand = de_GetTableBucketMaintenanceConfigurationCommand;
|
|
545
|
+
const de_GetTableBucketPolicyCommand = async (output, context) => {
|
|
546
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
|
+
return de_CommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
const contents = (0, smithy_client_1.map)({
|
|
550
|
+
$metadata: deserializeMetadata(output),
|
|
551
|
+
});
|
|
552
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
553
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
554
|
+
resourcePolicy: smithy_client_1.expectString,
|
|
555
|
+
});
|
|
556
|
+
Object.assign(contents, doc);
|
|
557
|
+
return contents;
|
|
558
|
+
};
|
|
559
|
+
exports.de_GetTableBucketPolicyCommand = de_GetTableBucketPolicyCommand;
|
|
560
|
+
const de_GetTableMaintenanceConfigurationCommand = async (output, context) => {
|
|
561
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
562
|
+
return de_CommandError(output, context);
|
|
563
|
+
}
|
|
564
|
+
const contents = (0, smithy_client_1.map)({
|
|
565
|
+
$metadata: deserializeMetadata(output),
|
|
566
|
+
});
|
|
567
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
568
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
569
|
+
configuration: smithy_client_1._json,
|
|
570
|
+
tableARN: smithy_client_1.expectString,
|
|
571
|
+
});
|
|
572
|
+
Object.assign(contents, doc);
|
|
573
|
+
return contents;
|
|
574
|
+
};
|
|
575
|
+
exports.de_GetTableMaintenanceConfigurationCommand = de_GetTableMaintenanceConfigurationCommand;
|
|
576
|
+
const de_GetTableMaintenanceJobStatusCommand = async (output, context) => {
|
|
577
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
578
|
+
return de_CommandError(output, context);
|
|
579
|
+
}
|
|
580
|
+
const contents = (0, smithy_client_1.map)({
|
|
581
|
+
$metadata: deserializeMetadata(output),
|
|
582
|
+
});
|
|
583
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
584
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
585
|
+
status: (_) => de_TableMaintenanceJobStatus(_, context),
|
|
586
|
+
tableARN: smithy_client_1.expectString,
|
|
587
|
+
});
|
|
588
|
+
Object.assign(contents, doc);
|
|
589
|
+
return contents;
|
|
590
|
+
};
|
|
591
|
+
exports.de_GetTableMaintenanceJobStatusCommand = de_GetTableMaintenanceJobStatusCommand;
|
|
592
|
+
const de_GetTableMetadataLocationCommand = async (output, context) => {
|
|
593
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
594
|
+
return de_CommandError(output, context);
|
|
595
|
+
}
|
|
596
|
+
const contents = (0, smithy_client_1.map)({
|
|
597
|
+
$metadata: deserializeMetadata(output),
|
|
598
|
+
});
|
|
599
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
600
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
601
|
+
metadataLocation: smithy_client_1.expectString,
|
|
602
|
+
versionToken: smithy_client_1.expectString,
|
|
603
|
+
warehouseLocation: smithy_client_1.expectString,
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
606
|
+
return contents;
|
|
607
|
+
};
|
|
608
|
+
exports.de_GetTableMetadataLocationCommand = de_GetTableMetadataLocationCommand;
|
|
609
|
+
const de_GetTablePolicyCommand = async (output, context) => {
|
|
610
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
+
return de_CommandError(output, context);
|
|
612
|
+
}
|
|
613
|
+
const contents = (0, smithy_client_1.map)({
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
});
|
|
616
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
617
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
618
|
+
resourcePolicy: smithy_client_1.expectString,
|
|
619
|
+
});
|
|
620
|
+
Object.assign(contents, doc);
|
|
621
|
+
return contents;
|
|
622
|
+
};
|
|
623
|
+
exports.de_GetTablePolicyCommand = de_GetTablePolicyCommand;
|
|
624
|
+
const de_ListNamespacesCommand = async (output, context) => {
|
|
625
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
+
return de_CommandError(output, context);
|
|
627
|
+
}
|
|
628
|
+
const contents = (0, smithy_client_1.map)({
|
|
629
|
+
$metadata: deserializeMetadata(output),
|
|
630
|
+
});
|
|
631
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
632
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
633
|
+
continuationToken: smithy_client_1.expectString,
|
|
634
|
+
namespaces: (_) => de_NamespaceSummaryList(_, context),
|
|
635
|
+
});
|
|
636
|
+
Object.assign(contents, doc);
|
|
637
|
+
return contents;
|
|
638
|
+
};
|
|
639
|
+
exports.de_ListNamespacesCommand = de_ListNamespacesCommand;
|
|
640
|
+
const de_ListTableBucketsCommand = async (output, context) => {
|
|
641
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
+
return de_CommandError(output, context);
|
|
643
|
+
}
|
|
644
|
+
const contents = (0, smithy_client_1.map)({
|
|
645
|
+
$metadata: deserializeMetadata(output),
|
|
646
|
+
});
|
|
647
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
648
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
649
|
+
continuationToken: smithy_client_1.expectString,
|
|
650
|
+
tableBuckets: (_) => de_TableBucketSummaryList(_, context),
|
|
651
|
+
});
|
|
652
|
+
Object.assign(contents, doc);
|
|
653
|
+
return contents;
|
|
654
|
+
};
|
|
655
|
+
exports.de_ListTableBucketsCommand = de_ListTableBucketsCommand;
|
|
656
|
+
const de_ListTablesCommand = async (output, context) => {
|
|
657
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
+
return de_CommandError(output, context);
|
|
659
|
+
}
|
|
660
|
+
const contents = (0, smithy_client_1.map)({
|
|
661
|
+
$metadata: deserializeMetadata(output),
|
|
662
|
+
});
|
|
663
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
664
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
665
|
+
continuationToken: smithy_client_1.expectString,
|
|
666
|
+
tables: (_) => de_TableSummaryList(_, context),
|
|
667
|
+
});
|
|
668
|
+
Object.assign(contents, doc);
|
|
669
|
+
return contents;
|
|
670
|
+
};
|
|
671
|
+
exports.de_ListTablesCommand = de_ListTablesCommand;
|
|
672
|
+
const de_PutTableBucketMaintenanceConfigurationCommand = async (output, context) => {
|
|
673
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
674
|
+
return de_CommandError(output, context);
|
|
675
|
+
}
|
|
676
|
+
const contents = (0, smithy_client_1.map)({
|
|
677
|
+
$metadata: deserializeMetadata(output),
|
|
678
|
+
});
|
|
679
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
680
|
+
return contents;
|
|
681
|
+
};
|
|
682
|
+
exports.de_PutTableBucketMaintenanceConfigurationCommand = de_PutTableBucketMaintenanceConfigurationCommand;
|
|
683
|
+
const de_PutTableBucketPolicyCommand = async (output, context) => {
|
|
684
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
+
return de_CommandError(output, context);
|
|
686
|
+
}
|
|
687
|
+
const contents = (0, smithy_client_1.map)({
|
|
688
|
+
$metadata: deserializeMetadata(output),
|
|
689
|
+
});
|
|
690
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
691
|
+
return contents;
|
|
692
|
+
};
|
|
693
|
+
exports.de_PutTableBucketPolicyCommand = de_PutTableBucketPolicyCommand;
|
|
694
|
+
const de_PutTableMaintenanceConfigurationCommand = async (output, context) => {
|
|
695
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
696
|
+
return de_CommandError(output, context);
|
|
697
|
+
}
|
|
698
|
+
const contents = (0, smithy_client_1.map)({
|
|
699
|
+
$metadata: deserializeMetadata(output),
|
|
700
|
+
});
|
|
701
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
702
|
+
return contents;
|
|
703
|
+
};
|
|
704
|
+
exports.de_PutTableMaintenanceConfigurationCommand = de_PutTableMaintenanceConfigurationCommand;
|
|
705
|
+
const de_PutTablePolicyCommand = async (output, context) => {
|
|
706
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
+
return de_CommandError(output, context);
|
|
708
|
+
}
|
|
709
|
+
const contents = (0, smithy_client_1.map)({
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
});
|
|
712
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
713
|
+
return contents;
|
|
714
|
+
};
|
|
715
|
+
exports.de_PutTablePolicyCommand = de_PutTablePolicyCommand;
|
|
716
|
+
const de_RenameTableCommand = async (output, context) => {
|
|
717
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
718
|
+
return de_CommandError(output, context);
|
|
719
|
+
}
|
|
720
|
+
const contents = (0, smithy_client_1.map)({
|
|
721
|
+
$metadata: deserializeMetadata(output),
|
|
722
|
+
});
|
|
723
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
724
|
+
return contents;
|
|
725
|
+
};
|
|
726
|
+
exports.de_RenameTableCommand = de_RenameTableCommand;
|
|
727
|
+
const de_UpdateTableMetadataLocationCommand = async (output, context) => {
|
|
728
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
|
+
return de_CommandError(output, context);
|
|
730
|
+
}
|
|
731
|
+
const contents = (0, smithy_client_1.map)({
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
});
|
|
734
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
735
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
736
|
+
metadataLocation: smithy_client_1.expectString,
|
|
737
|
+
name: smithy_client_1.expectString,
|
|
738
|
+
namespace: smithy_client_1._json,
|
|
739
|
+
tableARN: smithy_client_1.expectString,
|
|
740
|
+
versionToken: smithy_client_1.expectString,
|
|
741
|
+
});
|
|
742
|
+
Object.assign(contents, doc);
|
|
743
|
+
return contents;
|
|
744
|
+
};
|
|
745
|
+
exports.de_UpdateTableMetadataLocationCommand = de_UpdateTableMetadataLocationCommand;
|
|
746
|
+
const de_CommandError = async (output, context) => {
|
|
747
|
+
const parsedOutput = {
|
|
748
|
+
...output,
|
|
749
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
750
|
+
};
|
|
751
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
752
|
+
switch (errorCode) {
|
|
753
|
+
case "BadRequestException":
|
|
754
|
+
case "com.amazonaws.s3tables#BadRequestException":
|
|
755
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
756
|
+
case "ConflictException":
|
|
757
|
+
case "com.amazonaws.s3tables#ConflictException":
|
|
758
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
759
|
+
case "ForbiddenException":
|
|
760
|
+
case "com.amazonaws.s3tables#ForbiddenException":
|
|
761
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
762
|
+
case "InternalServerErrorException":
|
|
763
|
+
case "com.amazonaws.s3tables#InternalServerErrorException":
|
|
764
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
765
|
+
case "NotFoundException":
|
|
766
|
+
case "com.amazonaws.s3tables#NotFoundException":
|
|
767
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
768
|
+
case "TooManyRequestsException":
|
|
769
|
+
case "com.amazonaws.s3tables#TooManyRequestsException":
|
|
770
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
771
|
+
case "AccessDeniedException":
|
|
772
|
+
case "com.amazonaws.s3tables#AccessDeniedException":
|
|
773
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
774
|
+
default:
|
|
775
|
+
const parsedBody = parsedOutput.body;
|
|
776
|
+
return throwDefaultError({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
errorCode,
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(S3TablesServiceException_1.S3TablesServiceException);
|
|
784
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
785
|
+
const contents = (0, smithy_client_1.map)({});
|
|
786
|
+
const data = parsedOutput.body;
|
|
787
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
788
|
+
message: smithy_client_1.expectString,
|
|
789
|
+
});
|
|
790
|
+
Object.assign(contents, doc);
|
|
791
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
792
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
793
|
+
...contents,
|
|
794
|
+
});
|
|
795
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
796
|
+
};
|
|
797
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
798
|
+
const contents = (0, smithy_client_1.map)({});
|
|
799
|
+
const data = parsedOutput.body;
|
|
800
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
801
|
+
message: smithy_client_1.expectString,
|
|
802
|
+
});
|
|
803
|
+
Object.assign(contents, doc);
|
|
804
|
+
const exception = new models_0_1.BadRequestException({
|
|
805
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
806
|
+
...contents,
|
|
807
|
+
});
|
|
808
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
809
|
+
};
|
|
810
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
811
|
+
const contents = (0, smithy_client_1.map)({});
|
|
812
|
+
const data = parsedOutput.body;
|
|
813
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
814
|
+
message: smithy_client_1.expectString,
|
|
815
|
+
});
|
|
816
|
+
Object.assign(contents, doc);
|
|
817
|
+
const exception = new models_0_1.ConflictException({
|
|
818
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
819
|
+
...contents,
|
|
820
|
+
});
|
|
821
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
822
|
+
};
|
|
823
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
824
|
+
const contents = (0, smithy_client_1.map)({});
|
|
825
|
+
const data = parsedOutput.body;
|
|
826
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
827
|
+
message: smithy_client_1.expectString,
|
|
828
|
+
});
|
|
829
|
+
Object.assign(contents, doc);
|
|
830
|
+
const exception = new models_0_1.ForbiddenException({
|
|
831
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
832
|
+
...contents,
|
|
833
|
+
});
|
|
834
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
835
|
+
};
|
|
836
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
837
|
+
const contents = (0, smithy_client_1.map)({});
|
|
838
|
+
const data = parsedOutput.body;
|
|
839
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
840
|
+
message: smithy_client_1.expectString,
|
|
841
|
+
});
|
|
842
|
+
Object.assign(contents, doc);
|
|
843
|
+
const exception = new models_0_1.InternalServerErrorException({
|
|
844
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
845
|
+
...contents,
|
|
846
|
+
});
|
|
847
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
848
|
+
};
|
|
849
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
850
|
+
const contents = (0, smithy_client_1.map)({});
|
|
851
|
+
const data = parsedOutput.body;
|
|
852
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
853
|
+
message: smithy_client_1.expectString,
|
|
854
|
+
});
|
|
855
|
+
Object.assign(contents, doc);
|
|
856
|
+
const exception = new models_0_1.NotFoundException({
|
|
857
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
858
|
+
...contents,
|
|
859
|
+
});
|
|
860
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
861
|
+
};
|
|
862
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
863
|
+
const contents = (0, smithy_client_1.map)({});
|
|
864
|
+
const data = parsedOutput.body;
|
|
865
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
866
|
+
message: smithy_client_1.expectString,
|
|
867
|
+
});
|
|
868
|
+
Object.assign(contents, doc);
|
|
869
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
870
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
871
|
+
...contents,
|
|
872
|
+
});
|
|
873
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
874
|
+
};
|
|
875
|
+
const de_NamespaceSummary = (output, context) => {
|
|
876
|
+
return (0, smithy_client_1.take)(output, {
|
|
877
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
878
|
+
createdBy: smithy_client_1.expectString,
|
|
879
|
+
namespace: smithy_client_1._json,
|
|
880
|
+
ownerAccountId: smithy_client_1.expectString,
|
|
881
|
+
});
|
|
882
|
+
};
|
|
883
|
+
const de_NamespaceSummaryList = (output, context) => {
|
|
884
|
+
const retVal = (output || [])
|
|
885
|
+
.filter((e) => e != null)
|
|
886
|
+
.map((entry) => {
|
|
887
|
+
return de_NamespaceSummary(entry, context);
|
|
888
|
+
});
|
|
889
|
+
return retVal;
|
|
890
|
+
};
|
|
891
|
+
const de_TableBucketSummary = (output, context) => {
|
|
892
|
+
return (0, smithy_client_1.take)(output, {
|
|
893
|
+
arn: smithy_client_1.expectString,
|
|
894
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
895
|
+
name: smithy_client_1.expectString,
|
|
896
|
+
ownerAccountId: smithy_client_1.expectString,
|
|
897
|
+
});
|
|
898
|
+
};
|
|
899
|
+
const de_TableBucketSummaryList = (output, context) => {
|
|
900
|
+
const retVal = (output || [])
|
|
901
|
+
.filter((e) => e != null)
|
|
902
|
+
.map((entry) => {
|
|
903
|
+
return de_TableBucketSummary(entry, context);
|
|
904
|
+
});
|
|
905
|
+
return retVal;
|
|
906
|
+
};
|
|
907
|
+
const de_TableMaintenanceJobStatus = (output, context) => {
|
|
908
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
909
|
+
if (value === null) {
|
|
910
|
+
return acc;
|
|
911
|
+
}
|
|
912
|
+
acc[key] = de_TableMaintenanceJobStatusValue(value, context);
|
|
913
|
+
return acc;
|
|
914
|
+
}, {});
|
|
915
|
+
};
|
|
916
|
+
const de_TableMaintenanceJobStatusValue = (output, context) => {
|
|
917
|
+
return (0, smithy_client_1.take)(output, {
|
|
918
|
+
failureMessage: smithy_client_1.expectString,
|
|
919
|
+
lastRunTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
920
|
+
status: smithy_client_1.expectString,
|
|
921
|
+
});
|
|
922
|
+
};
|
|
923
|
+
const de_TableSummary = (output, context) => {
|
|
924
|
+
return (0, smithy_client_1.take)(output, {
|
|
925
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
926
|
+
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
927
|
+
name: smithy_client_1.expectString,
|
|
928
|
+
namespace: smithy_client_1._json,
|
|
929
|
+
tableARN: smithy_client_1.expectString,
|
|
930
|
+
type: smithy_client_1.expectString,
|
|
931
|
+
});
|
|
932
|
+
};
|
|
933
|
+
const de_TableSummaryList = (output, context) => {
|
|
934
|
+
const retVal = (output || [])
|
|
935
|
+
.filter((e) => e != null)
|
|
936
|
+
.map((entry) => {
|
|
937
|
+
return de_TableSummary(entry, context);
|
|
938
|
+
});
|
|
939
|
+
return retVal;
|
|
940
|
+
};
|
|
941
|
+
const deserializeMetadata = (output) => ({
|
|
942
|
+
httpStatusCode: output.statusCode,
|
|
943
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
944
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
945
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
946
|
+
});
|
|
947
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
948
|
+
const _cT = "continuationToken";
|
|
949
|
+
const _mB = "maxBuckets";
|
|
950
|
+
const _mN = "maxNamespaces";
|
|
951
|
+
const _mT = "maxTables";
|
|
952
|
+
const _n = "namespace";
|
|
953
|
+
const _p = "prefix";
|
|
954
|
+
const _vT = "versionToken";
|