@aws-sdk/client-dsql 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/README.md +1 -6
- package/dist-cjs/index.js +497 -596
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/DSQLClient.js +2 -0
- package/dist-es/commands/CreateClusterCommand.js +3 -9
- package/dist-es/commands/DeleteClusterCommand.js +3 -9
- package/dist-es/commands/DeleteClusterPolicyCommand.js +3 -9
- package/dist-es/commands/GetClusterCommand.js +3 -9
- package/dist-es/commands/GetClusterPolicyCommand.js +3 -9
- package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +3 -9
- package/dist-es/commands/ListClustersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutClusterPolicyCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateClusterCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +463 -0
- package/dist-types/DSQL.d.ts +1 -6
- package/dist-types/DSQLClient.d.ts +11 -7
- package/dist-types/commands/CreateClusterCommand.d.ts +3 -67
- package/dist-types/commands/DeleteClusterCommand.d.ts +1 -2
- package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +1 -2
- package/dist-types/commands/GetClusterCommand.d.ts +2 -2
- package/dist-types/commands/GetClusterPolicyCommand.d.ts +1 -2
- package/dist-types/commands/GetVpcEndpointServiceNameCommand.d.ts +1 -2
- package/dist-types/commands/ListClustersCommand.d.ts +1 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
- package/dist-types/commands/PutClusterPolicyCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
- package/dist-types/commands/UpdateClusterCommand.d.ts +2 -91
- package/dist-types/index.d.ts +1 -6
- package/dist-types/models/models_0.d.ts +22 -38
- 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 +53 -0
- package/dist-types/ts3.4/DSQLClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -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 +58 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -502
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -149
|
@@ -1,502 +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, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { DSQLServiceException as __BaseException } from "../models/DSQLServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateClusterCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/cluster");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
bypassPolicyLockoutSafetyCheck: [],
|
|
16
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
|
-
deletionProtectionEnabled: [],
|
|
18
|
-
kmsEncryptionKey: [],
|
|
19
|
-
multiRegionProperties: (_) => _json(_),
|
|
20
|
-
policy: [],
|
|
21
|
-
tags: (_) => _json(_),
|
|
22
|
-
}));
|
|
23
|
-
b.m("POST").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
export const se_DeleteClusterCommand = async (input, context) => {
|
|
27
|
-
const b = rb(input, context);
|
|
28
|
-
const headers = {};
|
|
29
|
-
b.bp("/cluster/{identifier}");
|
|
30
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
31
|
-
const query = map({
|
|
32
|
-
[_ct]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
33
|
-
});
|
|
34
|
-
let body;
|
|
35
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
export const se_DeleteClusterPolicyCommand = async (input, context) => {
|
|
39
|
-
const b = rb(input, context);
|
|
40
|
-
const headers = {};
|
|
41
|
-
b.bp("/cluster/{identifier}/policy");
|
|
42
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
43
|
-
const query = map({
|
|
44
|
-
[_epv]: [, input[_ePV]],
|
|
45
|
-
[_ct]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
46
|
-
});
|
|
47
|
-
let body;
|
|
48
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
export const se_GetClusterCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {};
|
|
54
|
-
b.bp("/cluster/{identifier}");
|
|
55
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
56
|
-
let body;
|
|
57
|
-
b.m("GET").h(headers).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
export const se_GetClusterPolicyCommand = async (input, context) => {
|
|
61
|
-
const b = rb(input, context);
|
|
62
|
-
const headers = {};
|
|
63
|
-
b.bp("/cluster/{identifier}/policy");
|
|
64
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
65
|
-
let body;
|
|
66
|
-
b.m("GET").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
export const se_GetVpcEndpointServiceNameCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {};
|
|
72
|
-
b.bp("/clusters/{identifier}/vpc-endpoint-service-name");
|
|
73
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
74
|
-
let body;
|
|
75
|
-
b.m("GET").h(headers).b(body);
|
|
76
|
-
return b.build();
|
|
77
|
-
};
|
|
78
|
-
export const se_ListClustersCommand = async (input, context) => {
|
|
79
|
-
const b = rb(input, context);
|
|
80
|
-
const headers = {};
|
|
81
|
-
b.bp("/cluster");
|
|
82
|
-
const query = map({
|
|
83
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
84
|
-
[_nt]: [, input[_nT]],
|
|
85
|
-
});
|
|
86
|
-
let body;
|
|
87
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
88
|
-
return b.build();
|
|
89
|
-
};
|
|
90
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
91
|
-
const b = rb(input, context);
|
|
92
|
-
const headers = {};
|
|
93
|
-
b.bp("/tags/{resourceArn}");
|
|
94
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
95
|
-
let body;
|
|
96
|
-
b.m("GET").h(headers).b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
|
-
export const se_PutClusterPolicyCommand = async (input, context) => {
|
|
100
|
-
const b = rb(input, context);
|
|
101
|
-
const headers = {
|
|
102
|
-
"content-type": "application/json",
|
|
103
|
-
};
|
|
104
|
-
b.bp("/cluster/{identifier}/policy");
|
|
105
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
106
|
-
let body;
|
|
107
|
-
body = JSON.stringify(take(input, {
|
|
108
|
-
bypassPolicyLockoutSafetyCheck: [],
|
|
109
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
110
|
-
expectedPolicyVersion: [],
|
|
111
|
-
policy: [],
|
|
112
|
-
}));
|
|
113
|
-
b.m("POST").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
117
|
-
const b = rb(input, context);
|
|
118
|
-
const headers = {
|
|
119
|
-
"content-type": "application/json",
|
|
120
|
-
};
|
|
121
|
-
b.bp("/tags/{resourceArn}");
|
|
122
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(take(input, {
|
|
125
|
-
tags: (_) => _json(_),
|
|
126
|
-
}));
|
|
127
|
-
b.m("POST").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
131
|
-
const b = rb(input, context);
|
|
132
|
-
const headers = {};
|
|
133
|
-
b.bp("/tags/{resourceArn}");
|
|
134
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
135
|
-
const query = map({
|
|
136
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
137
|
-
});
|
|
138
|
-
let body;
|
|
139
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
export const se_UpdateClusterCommand = async (input, context) => {
|
|
143
|
-
const b = rb(input, context);
|
|
144
|
-
const headers = {
|
|
145
|
-
"content-type": "application/json",
|
|
146
|
-
};
|
|
147
|
-
b.bp("/cluster/{identifier}");
|
|
148
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify(take(input, {
|
|
151
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
152
|
-
deletionProtectionEnabled: [],
|
|
153
|
-
kmsEncryptionKey: [],
|
|
154
|
-
multiRegionProperties: (_) => _json(_),
|
|
155
|
-
}));
|
|
156
|
-
b.m("POST").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
export const de_CreateClusterCommand = async (output, context) => {
|
|
160
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
161
|
-
return de_CommandError(output, context);
|
|
162
|
-
}
|
|
163
|
-
const contents = map({
|
|
164
|
-
$metadata: deserializeMetadata(output),
|
|
165
|
-
});
|
|
166
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
167
|
-
const doc = take(data, {
|
|
168
|
-
arn: __expectString,
|
|
169
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
170
|
-
deletionProtectionEnabled: __expectBoolean,
|
|
171
|
-
encryptionDetails: _json,
|
|
172
|
-
identifier: __expectString,
|
|
173
|
-
multiRegionProperties: _json,
|
|
174
|
-
status: __expectString,
|
|
175
|
-
});
|
|
176
|
-
Object.assign(contents, doc);
|
|
177
|
-
return contents;
|
|
178
|
-
};
|
|
179
|
-
export const de_DeleteClusterCommand = async (output, context) => {
|
|
180
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
181
|
-
return de_CommandError(output, context);
|
|
182
|
-
}
|
|
183
|
-
const contents = map({
|
|
184
|
-
$metadata: deserializeMetadata(output),
|
|
185
|
-
});
|
|
186
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
187
|
-
const doc = take(data, {
|
|
188
|
-
arn: __expectString,
|
|
189
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
190
|
-
identifier: __expectString,
|
|
191
|
-
status: __expectString,
|
|
192
|
-
});
|
|
193
|
-
Object.assign(contents, doc);
|
|
194
|
-
return contents;
|
|
195
|
-
};
|
|
196
|
-
export const de_DeleteClusterPolicyCommand = async (output, context) => {
|
|
197
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
198
|
-
return de_CommandError(output, context);
|
|
199
|
-
}
|
|
200
|
-
const contents = map({
|
|
201
|
-
$metadata: deserializeMetadata(output),
|
|
202
|
-
});
|
|
203
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
204
|
-
const doc = take(data, {
|
|
205
|
-
policyVersion: __expectString,
|
|
206
|
-
});
|
|
207
|
-
Object.assign(contents, doc);
|
|
208
|
-
return contents;
|
|
209
|
-
};
|
|
210
|
-
export const de_GetClusterCommand = async (output, context) => {
|
|
211
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
212
|
-
return de_CommandError(output, context);
|
|
213
|
-
}
|
|
214
|
-
const contents = map({
|
|
215
|
-
$metadata: deserializeMetadata(output),
|
|
216
|
-
});
|
|
217
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
218
|
-
const doc = take(data, {
|
|
219
|
-
arn: __expectString,
|
|
220
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
221
|
-
deletionProtectionEnabled: __expectBoolean,
|
|
222
|
-
encryptionDetails: _json,
|
|
223
|
-
identifier: __expectString,
|
|
224
|
-
multiRegionProperties: _json,
|
|
225
|
-
status: __expectString,
|
|
226
|
-
tags: _json,
|
|
227
|
-
});
|
|
228
|
-
Object.assign(contents, doc);
|
|
229
|
-
return contents;
|
|
230
|
-
};
|
|
231
|
-
export const de_GetClusterPolicyCommand = async (output, context) => {
|
|
232
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
233
|
-
return de_CommandError(output, context);
|
|
234
|
-
}
|
|
235
|
-
const contents = map({
|
|
236
|
-
$metadata: deserializeMetadata(output),
|
|
237
|
-
});
|
|
238
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
239
|
-
const doc = take(data, {
|
|
240
|
-
policy: __expectString,
|
|
241
|
-
policyVersion: __expectString,
|
|
242
|
-
});
|
|
243
|
-
Object.assign(contents, doc);
|
|
244
|
-
return contents;
|
|
245
|
-
};
|
|
246
|
-
export const de_GetVpcEndpointServiceNameCommand = async (output, context) => {
|
|
247
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
248
|
-
return de_CommandError(output, context);
|
|
249
|
-
}
|
|
250
|
-
const contents = map({
|
|
251
|
-
$metadata: deserializeMetadata(output),
|
|
252
|
-
});
|
|
253
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
254
|
-
const doc = take(data, {
|
|
255
|
-
serviceName: __expectString,
|
|
256
|
-
});
|
|
257
|
-
Object.assign(contents, doc);
|
|
258
|
-
return contents;
|
|
259
|
-
};
|
|
260
|
-
export const de_ListClustersCommand = async (output, context) => {
|
|
261
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
262
|
-
return de_CommandError(output, context);
|
|
263
|
-
}
|
|
264
|
-
const contents = map({
|
|
265
|
-
$metadata: deserializeMetadata(output),
|
|
266
|
-
});
|
|
267
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
268
|
-
const doc = take(data, {
|
|
269
|
-
clusters: _json,
|
|
270
|
-
nextToken: __expectString,
|
|
271
|
-
});
|
|
272
|
-
Object.assign(contents, doc);
|
|
273
|
-
return contents;
|
|
274
|
-
};
|
|
275
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
|
-
return de_CommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const contents = map({
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
});
|
|
282
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
283
|
-
const doc = take(data, {
|
|
284
|
-
tags: _json,
|
|
285
|
-
});
|
|
286
|
-
Object.assign(contents, doc);
|
|
287
|
-
return contents;
|
|
288
|
-
};
|
|
289
|
-
export const de_PutClusterPolicyCommand = async (output, context) => {
|
|
290
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
291
|
-
return de_CommandError(output, context);
|
|
292
|
-
}
|
|
293
|
-
const contents = map({
|
|
294
|
-
$metadata: deserializeMetadata(output),
|
|
295
|
-
});
|
|
296
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
297
|
-
const doc = take(data, {
|
|
298
|
-
policyVersion: __expectString,
|
|
299
|
-
});
|
|
300
|
-
Object.assign(contents, doc);
|
|
301
|
-
return contents;
|
|
302
|
-
};
|
|
303
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
304
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
305
|
-
return de_CommandError(output, context);
|
|
306
|
-
}
|
|
307
|
-
const contents = map({
|
|
308
|
-
$metadata: deserializeMetadata(output),
|
|
309
|
-
});
|
|
310
|
-
await collectBody(output.body, context);
|
|
311
|
-
return contents;
|
|
312
|
-
};
|
|
313
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
314
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
315
|
-
return de_CommandError(output, context);
|
|
316
|
-
}
|
|
317
|
-
const contents = map({
|
|
318
|
-
$metadata: deserializeMetadata(output),
|
|
319
|
-
});
|
|
320
|
-
await collectBody(output.body, context);
|
|
321
|
-
return contents;
|
|
322
|
-
};
|
|
323
|
-
export const de_UpdateClusterCommand = async (output, context) => {
|
|
324
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
325
|
-
return de_CommandError(output, context);
|
|
326
|
-
}
|
|
327
|
-
const contents = map({
|
|
328
|
-
$metadata: deserializeMetadata(output),
|
|
329
|
-
});
|
|
330
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
331
|
-
const doc = take(data, {
|
|
332
|
-
arn: __expectString,
|
|
333
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
334
|
-
identifier: __expectString,
|
|
335
|
-
status: __expectString,
|
|
336
|
-
});
|
|
337
|
-
Object.assign(contents, doc);
|
|
338
|
-
return contents;
|
|
339
|
-
};
|
|
340
|
-
const de_CommandError = async (output, context) => {
|
|
341
|
-
const parsedOutput = {
|
|
342
|
-
...output,
|
|
343
|
-
body: await parseErrorBody(output.body, context),
|
|
344
|
-
};
|
|
345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
346
|
-
switch (errorCode) {
|
|
347
|
-
case "AccessDeniedException":
|
|
348
|
-
case "com.amazonaws.dsql#AccessDeniedException":
|
|
349
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ConflictException":
|
|
351
|
-
case "com.amazonaws.dsql#ConflictException":
|
|
352
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
353
|
-
case "InternalServerException":
|
|
354
|
-
case "com.amazonaws.dsql#InternalServerException":
|
|
355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
356
|
-
case "ServiceQuotaExceededException":
|
|
357
|
-
case "com.amazonaws.dsql#ServiceQuotaExceededException":
|
|
358
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
359
|
-
case "ThrottlingException":
|
|
360
|
-
case "com.amazonaws.dsql#ThrottlingException":
|
|
361
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
362
|
-
case "ValidationException":
|
|
363
|
-
case "com.amazonaws.dsql#ValidationException":
|
|
364
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
365
|
-
case "ResourceNotFoundException":
|
|
366
|
-
case "com.amazonaws.dsql#ResourceNotFoundException":
|
|
367
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
368
|
-
default:
|
|
369
|
-
const parsedBody = parsedOutput.body;
|
|
370
|
-
return throwDefaultError({
|
|
371
|
-
output,
|
|
372
|
-
parsedBody,
|
|
373
|
-
errorCode,
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
378
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
379
|
-
const contents = map({});
|
|
380
|
-
const data = parsedOutput.body;
|
|
381
|
-
const doc = take(data, {
|
|
382
|
-
message: __expectString,
|
|
383
|
-
});
|
|
384
|
-
Object.assign(contents, doc);
|
|
385
|
-
const exception = new AccessDeniedException({
|
|
386
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
387
|
-
...contents,
|
|
388
|
-
});
|
|
389
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
390
|
-
};
|
|
391
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
392
|
-
const contents = map({});
|
|
393
|
-
const data = parsedOutput.body;
|
|
394
|
-
const doc = take(data, {
|
|
395
|
-
message: __expectString,
|
|
396
|
-
resourceId: __expectString,
|
|
397
|
-
resourceType: __expectString,
|
|
398
|
-
});
|
|
399
|
-
Object.assign(contents, doc);
|
|
400
|
-
const exception = new ConflictException({
|
|
401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
402
|
-
...contents,
|
|
403
|
-
});
|
|
404
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
405
|
-
};
|
|
406
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
407
|
-
const contents = map({
|
|
408
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
409
|
-
});
|
|
410
|
-
const data = parsedOutput.body;
|
|
411
|
-
const doc = take(data, {
|
|
412
|
-
message: __expectString,
|
|
413
|
-
});
|
|
414
|
-
Object.assign(contents, doc);
|
|
415
|
-
const exception = new InternalServerException({
|
|
416
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
417
|
-
...contents,
|
|
418
|
-
});
|
|
419
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
420
|
-
};
|
|
421
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
422
|
-
const contents = map({});
|
|
423
|
-
const data = parsedOutput.body;
|
|
424
|
-
const doc = take(data, {
|
|
425
|
-
message: __expectString,
|
|
426
|
-
resourceId: __expectString,
|
|
427
|
-
resourceType: __expectString,
|
|
428
|
-
});
|
|
429
|
-
Object.assign(contents, doc);
|
|
430
|
-
const exception = new ResourceNotFoundException({
|
|
431
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
432
|
-
...contents,
|
|
433
|
-
});
|
|
434
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
435
|
-
};
|
|
436
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
437
|
-
const contents = map({});
|
|
438
|
-
const data = parsedOutput.body;
|
|
439
|
-
const doc = take(data, {
|
|
440
|
-
message: __expectString,
|
|
441
|
-
quotaCode: __expectString,
|
|
442
|
-
resourceId: __expectString,
|
|
443
|
-
resourceType: __expectString,
|
|
444
|
-
serviceCode: __expectString,
|
|
445
|
-
});
|
|
446
|
-
Object.assign(contents, doc);
|
|
447
|
-
const exception = new ServiceQuotaExceededException({
|
|
448
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
449
|
-
...contents,
|
|
450
|
-
});
|
|
451
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
452
|
-
};
|
|
453
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
454
|
-
const contents = map({
|
|
455
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
456
|
-
});
|
|
457
|
-
const data = parsedOutput.body;
|
|
458
|
-
const doc = take(data, {
|
|
459
|
-
message: __expectString,
|
|
460
|
-
quotaCode: __expectString,
|
|
461
|
-
serviceCode: __expectString,
|
|
462
|
-
});
|
|
463
|
-
Object.assign(contents, doc);
|
|
464
|
-
const exception = new ThrottlingException({
|
|
465
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
466
|
-
...contents,
|
|
467
|
-
});
|
|
468
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
469
|
-
};
|
|
470
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
471
|
-
const contents = map({});
|
|
472
|
-
const data = parsedOutput.body;
|
|
473
|
-
const doc = take(data, {
|
|
474
|
-
fieldList: _json,
|
|
475
|
-
message: __expectString,
|
|
476
|
-
reason: __expectString,
|
|
477
|
-
});
|
|
478
|
-
Object.assign(contents, doc);
|
|
479
|
-
const exception = new ValidationException({
|
|
480
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
481
|
-
...contents,
|
|
482
|
-
});
|
|
483
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
484
|
-
};
|
|
485
|
-
const deserializeMetadata = (output) => ({
|
|
486
|
-
httpStatusCode: output.statusCode,
|
|
487
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
488
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
489
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
490
|
-
});
|
|
491
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
492
|
-
const _cT = "clientToken";
|
|
493
|
-
const _ct = "client-token";
|
|
494
|
-
const _ePV = "expectedPolicyVersion";
|
|
495
|
-
const _epv = "expected-policy-version";
|
|
496
|
-
const _mR = "maxResults";
|
|
497
|
-
const _mr = "max-results";
|
|
498
|
-
const _nT = "nextToken";
|
|
499
|
-
const _nt = "next-token";
|
|
500
|
-
const _rAS = "retryAfterSeconds";
|
|
501
|
-
const _ra = "retry-after";
|
|
502
|
-
const _tK = "tagKeys";
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "../commands/CreateClusterCommand";
|
|
4
|
-
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "../commands/DeleteClusterCommand";
|
|
5
|
-
import { DeleteClusterPolicyCommandInput, DeleteClusterPolicyCommandOutput } from "../commands/DeleteClusterPolicyCommand";
|
|
6
|
-
import { GetClusterCommandInput, GetClusterCommandOutput } from "../commands/GetClusterCommand";
|
|
7
|
-
import { GetClusterPolicyCommandInput, GetClusterPolicyCommandOutput } from "../commands/GetClusterPolicyCommand";
|
|
8
|
-
import { GetVpcEndpointServiceNameCommandInput, GetVpcEndpointServiceNameCommandOutput } from "../commands/GetVpcEndpointServiceNameCommand";
|
|
9
|
-
import { ListClustersCommandInput, ListClustersCommandOutput } from "../commands/ListClustersCommand";
|
|
10
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
11
|
-
import { PutClusterPolicyCommandInput, PutClusterPolicyCommandOutput } from "../commands/PutClusterPolicyCommand";
|
|
12
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
13
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
14
|
-
import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "../commands/UpdateClusterCommand";
|
|
15
|
-
/**
|
|
16
|
-
* serializeAws_restJson1CreateClusterCommand
|
|
17
|
-
*/
|
|
18
|
-
export declare const se_CreateClusterCommand: (input: CreateClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* serializeAws_restJson1DeleteClusterCommand
|
|
21
|
-
*/
|
|
22
|
-
export declare const se_DeleteClusterCommand: (input: DeleteClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* serializeAws_restJson1DeleteClusterPolicyCommand
|
|
25
|
-
*/
|
|
26
|
-
export declare const se_DeleteClusterPolicyCommand: (input: DeleteClusterPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
|
-
/**
|
|
28
|
-
* serializeAws_restJson1GetClusterCommand
|
|
29
|
-
*/
|
|
30
|
-
export declare const se_GetClusterCommand: (input: GetClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
|
-
/**
|
|
32
|
-
* serializeAws_restJson1GetClusterPolicyCommand
|
|
33
|
-
*/
|
|
34
|
-
export declare const se_GetClusterPolicyCommand: (input: GetClusterPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
35
|
-
/**
|
|
36
|
-
* serializeAws_restJson1GetVpcEndpointServiceNameCommand
|
|
37
|
-
*/
|
|
38
|
-
export declare const se_GetVpcEndpointServiceNameCommand: (input: GetVpcEndpointServiceNameCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
|
-
/**
|
|
40
|
-
* serializeAws_restJson1ListClustersCommand
|
|
41
|
-
*/
|
|
42
|
-
export declare const se_ListClustersCommand: (input: ListClustersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
|
-
/**
|
|
44
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
45
|
-
*/
|
|
46
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
|
-
/**
|
|
48
|
-
* serializeAws_restJson1PutClusterPolicyCommand
|
|
49
|
-
*/
|
|
50
|
-
export declare const se_PutClusterPolicyCommand: (input: PutClusterPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
51
|
-
/**
|
|
52
|
-
* serializeAws_restJson1TagResourceCommand
|
|
53
|
-
*/
|
|
54
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
55
|
-
/**
|
|
56
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
57
|
-
*/
|
|
58
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
59
|
-
/**
|
|
60
|
-
* serializeAws_restJson1UpdateClusterCommand
|
|
61
|
-
*/
|
|
62
|
-
export declare const se_UpdateClusterCommand: (input: UpdateClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
63
|
-
/**
|
|
64
|
-
* deserializeAws_restJson1CreateClusterCommand
|
|
65
|
-
*/
|
|
66
|
-
export declare const de_CreateClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateClusterCommandOutput>;
|
|
67
|
-
/**
|
|
68
|
-
* deserializeAws_restJson1DeleteClusterCommand
|
|
69
|
-
*/
|
|
70
|
-
export declare const de_DeleteClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteClusterCommandOutput>;
|
|
71
|
-
/**
|
|
72
|
-
* deserializeAws_restJson1DeleteClusterPolicyCommand
|
|
73
|
-
*/
|
|
74
|
-
export declare const de_DeleteClusterPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteClusterPolicyCommandOutput>;
|
|
75
|
-
/**
|
|
76
|
-
* deserializeAws_restJson1GetClusterCommand
|
|
77
|
-
*/
|
|
78
|
-
export declare const de_GetClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetClusterCommandOutput>;
|
|
79
|
-
/**
|
|
80
|
-
* deserializeAws_restJson1GetClusterPolicyCommand
|
|
81
|
-
*/
|
|
82
|
-
export declare const de_GetClusterPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetClusterPolicyCommandOutput>;
|
|
83
|
-
/**
|
|
84
|
-
* deserializeAws_restJson1GetVpcEndpointServiceNameCommand
|
|
85
|
-
*/
|
|
86
|
-
export declare const de_GetVpcEndpointServiceNameCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetVpcEndpointServiceNameCommandOutput>;
|
|
87
|
-
/**
|
|
88
|
-
* deserializeAws_restJson1ListClustersCommand
|
|
89
|
-
*/
|
|
90
|
-
export declare const de_ListClustersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListClustersCommandOutput>;
|
|
91
|
-
/**
|
|
92
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
93
|
-
*/
|
|
94
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
95
|
-
/**
|
|
96
|
-
* deserializeAws_restJson1PutClusterPolicyCommand
|
|
97
|
-
*/
|
|
98
|
-
export declare const de_PutClusterPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutClusterPolicyCommandOutput>;
|
|
99
|
-
/**
|
|
100
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
101
|
-
*/
|
|
102
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
103
|
-
/**
|
|
104
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
105
|
-
*/
|
|
106
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
107
|
-
/**
|
|
108
|
-
* deserializeAws_restJson1UpdateClusterCommand
|
|
109
|
-
*/
|
|
110
|
-
export declare const de_UpdateClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateClusterCommandOutput>;
|