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