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