@aws-sdk/client-dax 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 +1038 -1133
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/DAXClient.js +2 -0
- package/dist-es/commands/CreateClusterCommand.js +3 -9
- package/dist-es/commands/CreateParameterGroupCommand.js +3 -9
- package/dist-es/commands/CreateSubnetGroupCommand.js +3 -9
- package/dist-es/commands/DecreaseReplicationFactorCommand.js +3 -9
- package/dist-es/commands/DeleteClusterCommand.js +3 -9
- package/dist-es/commands/DeleteParameterGroupCommand.js +3 -9
- package/dist-es/commands/DeleteSubnetGroupCommand.js +3 -9
- package/dist-es/commands/DescribeClustersCommand.js +3 -9
- package/dist-es/commands/DescribeDefaultParametersCommand.js +3 -9
- package/dist-es/commands/DescribeEventsCommand.js +3 -9
- package/dist-es/commands/DescribeParameterGroupsCommand.js +3 -9
- package/dist-es/commands/DescribeParametersCommand.js +3 -9
- package/dist-es/commands/DescribeSubnetGroupsCommand.js +3 -9
- package/dist-es/commands/IncreaseReplicationFactorCommand.js +3 -9
- package/dist-es/commands/ListTagsCommand.js +3 -9
- package/dist-es/commands/RebootNodeCommand.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/commands/UpdateParameterGroupCommand.js +3 -9
- package/dist-es/commands/UpdateSubnetGroupCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +920 -0
- package/dist-types/DAXClient.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 +130 -0
- package/dist-types/ts3.4/DAXClient.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 +135 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -906
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -191
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -257
|
@@ -1,906 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { DAXServiceException as __BaseException } from "../models/DAXServiceException";
|
|
5
|
-
import { ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterQuotaForCustomerExceededFault, InsufficientClusterCapacityFault, InvalidARNFault, InvalidClusterStateFault, InvalidParameterCombinationException, InvalidParameterGroupStateFault, InvalidParameterValueException, InvalidSubnet, InvalidVPCNetworkStateFault, NodeNotFoundFault, NodeQuotaForClusterExceededFault, NodeQuotaForCustomerExceededFault, ParameterGroupAlreadyExistsFault, ParameterGroupNotFoundFault, ParameterGroupQuotaExceededFault, ServiceLinkedRoleNotFoundFault, ServiceQuotaExceededException, SubnetGroupAlreadyExistsFault, SubnetGroupInUseFault, SubnetGroupNotFoundFault, SubnetGroupQuotaExceededFault, SubnetInUse, SubnetNotAllowedFault, SubnetQuotaExceededFault, TagNotFoundFault, TagQuotaPerResourceExceeded, } from "../models/models_0";
|
|
6
|
-
export const se_CreateClusterCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateCluster");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateParameterGroupCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateParameterGroup");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateSubnetGroupCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateSubnetGroup");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DecreaseReplicationFactorCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DecreaseReplicationFactor");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteClusterCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteCluster");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteParameterGroupCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteParameterGroup");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeleteSubnetGroupCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeleteSubnetGroup");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DescribeClustersCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DescribeClusters");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeDefaultParametersCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DescribeDefaultParameters");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DescribeEventsCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DescribeEvents");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DescribeParameterGroupsCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DescribeParameterGroups");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DescribeParametersCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeParameters");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DescribeSubnetGroupsCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DescribeSubnetGroups");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_IncreaseReplicationFactorCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("IncreaseReplicationFactor");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_ListTagsCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("ListTags");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_RebootNodeCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("RebootNode");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("TagResource");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("UntagResource");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_UpdateClusterCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("UpdateCluster");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_UpdateParameterGroupCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("UpdateParameterGroup");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_UpdateSubnetGroupCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("UpdateSubnetGroup");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const de_CreateClusterCommand = async (output, context) => {
|
|
133
|
-
if (output.statusCode >= 300) {
|
|
134
|
-
return de_CommandError(output, context);
|
|
135
|
-
}
|
|
136
|
-
const data = await parseBody(output.body, context);
|
|
137
|
-
let contents = {};
|
|
138
|
-
contents = de_CreateClusterResponse(data, context);
|
|
139
|
-
const response = {
|
|
140
|
-
$metadata: deserializeMetadata(output),
|
|
141
|
-
...contents,
|
|
142
|
-
};
|
|
143
|
-
return response;
|
|
144
|
-
};
|
|
145
|
-
export const de_CreateParameterGroupCommand = async (output, context) => {
|
|
146
|
-
if (output.statusCode >= 300) {
|
|
147
|
-
return de_CommandError(output, context);
|
|
148
|
-
}
|
|
149
|
-
const data = await parseBody(output.body, context);
|
|
150
|
-
let contents = {};
|
|
151
|
-
contents = _json(data);
|
|
152
|
-
const response = {
|
|
153
|
-
$metadata: deserializeMetadata(output),
|
|
154
|
-
...contents,
|
|
155
|
-
};
|
|
156
|
-
return response;
|
|
157
|
-
};
|
|
158
|
-
export const de_CreateSubnetGroupCommand = async (output, context) => {
|
|
159
|
-
if (output.statusCode >= 300) {
|
|
160
|
-
return de_CommandError(output, context);
|
|
161
|
-
}
|
|
162
|
-
const data = await parseBody(output.body, context);
|
|
163
|
-
let contents = {};
|
|
164
|
-
contents = _json(data);
|
|
165
|
-
const response = {
|
|
166
|
-
$metadata: deserializeMetadata(output),
|
|
167
|
-
...contents,
|
|
168
|
-
};
|
|
169
|
-
return response;
|
|
170
|
-
};
|
|
171
|
-
export const de_DecreaseReplicationFactorCommand = async (output, context) => {
|
|
172
|
-
if (output.statusCode >= 300) {
|
|
173
|
-
return de_CommandError(output, context);
|
|
174
|
-
}
|
|
175
|
-
const data = await parseBody(output.body, context);
|
|
176
|
-
let contents = {};
|
|
177
|
-
contents = de_DecreaseReplicationFactorResponse(data, context);
|
|
178
|
-
const response = {
|
|
179
|
-
$metadata: deserializeMetadata(output),
|
|
180
|
-
...contents,
|
|
181
|
-
};
|
|
182
|
-
return response;
|
|
183
|
-
};
|
|
184
|
-
export const de_DeleteClusterCommand = async (output, context) => {
|
|
185
|
-
if (output.statusCode >= 300) {
|
|
186
|
-
return de_CommandError(output, context);
|
|
187
|
-
}
|
|
188
|
-
const data = await parseBody(output.body, context);
|
|
189
|
-
let contents = {};
|
|
190
|
-
contents = de_DeleteClusterResponse(data, context);
|
|
191
|
-
const response = {
|
|
192
|
-
$metadata: deserializeMetadata(output),
|
|
193
|
-
...contents,
|
|
194
|
-
};
|
|
195
|
-
return response;
|
|
196
|
-
};
|
|
197
|
-
export const de_DeleteParameterGroupCommand = async (output, context) => {
|
|
198
|
-
if (output.statusCode >= 300) {
|
|
199
|
-
return de_CommandError(output, context);
|
|
200
|
-
}
|
|
201
|
-
const data = await parseBody(output.body, context);
|
|
202
|
-
let contents = {};
|
|
203
|
-
contents = _json(data);
|
|
204
|
-
const response = {
|
|
205
|
-
$metadata: deserializeMetadata(output),
|
|
206
|
-
...contents,
|
|
207
|
-
};
|
|
208
|
-
return response;
|
|
209
|
-
};
|
|
210
|
-
export const de_DeleteSubnetGroupCommand = async (output, context) => {
|
|
211
|
-
if (output.statusCode >= 300) {
|
|
212
|
-
return de_CommandError(output, context);
|
|
213
|
-
}
|
|
214
|
-
const data = await parseBody(output.body, context);
|
|
215
|
-
let contents = {};
|
|
216
|
-
contents = _json(data);
|
|
217
|
-
const response = {
|
|
218
|
-
$metadata: deserializeMetadata(output),
|
|
219
|
-
...contents,
|
|
220
|
-
};
|
|
221
|
-
return response;
|
|
222
|
-
};
|
|
223
|
-
export const de_DescribeClustersCommand = async (output, context) => {
|
|
224
|
-
if (output.statusCode >= 300) {
|
|
225
|
-
return de_CommandError(output, context);
|
|
226
|
-
}
|
|
227
|
-
const data = await parseBody(output.body, context);
|
|
228
|
-
let contents = {};
|
|
229
|
-
contents = de_DescribeClustersResponse(data, context);
|
|
230
|
-
const response = {
|
|
231
|
-
$metadata: deserializeMetadata(output),
|
|
232
|
-
...contents,
|
|
233
|
-
};
|
|
234
|
-
return response;
|
|
235
|
-
};
|
|
236
|
-
export const de_DescribeDefaultParametersCommand = async (output, context) => {
|
|
237
|
-
if (output.statusCode >= 300) {
|
|
238
|
-
return de_CommandError(output, context);
|
|
239
|
-
}
|
|
240
|
-
const data = await parseBody(output.body, context);
|
|
241
|
-
let contents = {};
|
|
242
|
-
contents = _json(data);
|
|
243
|
-
const response = {
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
...contents,
|
|
246
|
-
};
|
|
247
|
-
return response;
|
|
248
|
-
};
|
|
249
|
-
export const de_DescribeEventsCommand = async (output, context) => {
|
|
250
|
-
if (output.statusCode >= 300) {
|
|
251
|
-
return de_CommandError(output, context);
|
|
252
|
-
}
|
|
253
|
-
const data = await parseBody(output.body, context);
|
|
254
|
-
let contents = {};
|
|
255
|
-
contents = de_DescribeEventsResponse(data, context);
|
|
256
|
-
const response = {
|
|
257
|
-
$metadata: deserializeMetadata(output),
|
|
258
|
-
...contents,
|
|
259
|
-
};
|
|
260
|
-
return response;
|
|
261
|
-
};
|
|
262
|
-
export const de_DescribeParameterGroupsCommand = async (output, context) => {
|
|
263
|
-
if (output.statusCode >= 300) {
|
|
264
|
-
return de_CommandError(output, context);
|
|
265
|
-
}
|
|
266
|
-
const data = await parseBody(output.body, context);
|
|
267
|
-
let contents = {};
|
|
268
|
-
contents = _json(data);
|
|
269
|
-
const response = {
|
|
270
|
-
$metadata: deserializeMetadata(output),
|
|
271
|
-
...contents,
|
|
272
|
-
};
|
|
273
|
-
return response;
|
|
274
|
-
};
|
|
275
|
-
export const de_DescribeParametersCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode >= 300) {
|
|
277
|
-
return de_CommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const data = await parseBody(output.body, context);
|
|
280
|
-
let contents = {};
|
|
281
|
-
contents = _json(data);
|
|
282
|
-
const response = {
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
...contents,
|
|
285
|
-
};
|
|
286
|
-
return response;
|
|
287
|
-
};
|
|
288
|
-
export const de_DescribeSubnetGroupsCommand = async (output, context) => {
|
|
289
|
-
if (output.statusCode >= 300) {
|
|
290
|
-
return de_CommandError(output, context);
|
|
291
|
-
}
|
|
292
|
-
const data = await parseBody(output.body, context);
|
|
293
|
-
let contents = {};
|
|
294
|
-
contents = _json(data);
|
|
295
|
-
const response = {
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
...contents,
|
|
298
|
-
};
|
|
299
|
-
return response;
|
|
300
|
-
};
|
|
301
|
-
export const de_IncreaseReplicationFactorCommand = async (output, context) => {
|
|
302
|
-
if (output.statusCode >= 300) {
|
|
303
|
-
return de_CommandError(output, context);
|
|
304
|
-
}
|
|
305
|
-
const data = await parseBody(output.body, context);
|
|
306
|
-
let contents = {};
|
|
307
|
-
contents = de_IncreaseReplicationFactorResponse(data, context);
|
|
308
|
-
const response = {
|
|
309
|
-
$metadata: deserializeMetadata(output),
|
|
310
|
-
...contents,
|
|
311
|
-
};
|
|
312
|
-
return response;
|
|
313
|
-
};
|
|
314
|
-
export const de_ListTagsCommand = async (output, context) => {
|
|
315
|
-
if (output.statusCode >= 300) {
|
|
316
|
-
return de_CommandError(output, context);
|
|
317
|
-
}
|
|
318
|
-
const data = await parseBody(output.body, context);
|
|
319
|
-
let contents = {};
|
|
320
|
-
contents = _json(data);
|
|
321
|
-
const response = {
|
|
322
|
-
$metadata: deserializeMetadata(output),
|
|
323
|
-
...contents,
|
|
324
|
-
};
|
|
325
|
-
return response;
|
|
326
|
-
};
|
|
327
|
-
export const de_RebootNodeCommand = async (output, context) => {
|
|
328
|
-
if (output.statusCode >= 300) {
|
|
329
|
-
return de_CommandError(output, context);
|
|
330
|
-
}
|
|
331
|
-
const data = await parseBody(output.body, context);
|
|
332
|
-
let contents = {};
|
|
333
|
-
contents = de_RebootNodeResponse(data, context);
|
|
334
|
-
const response = {
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
...contents,
|
|
337
|
-
};
|
|
338
|
-
return response;
|
|
339
|
-
};
|
|
340
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
341
|
-
if (output.statusCode >= 300) {
|
|
342
|
-
return de_CommandError(output, context);
|
|
343
|
-
}
|
|
344
|
-
const data = await parseBody(output.body, context);
|
|
345
|
-
let contents = {};
|
|
346
|
-
contents = _json(data);
|
|
347
|
-
const response = {
|
|
348
|
-
$metadata: deserializeMetadata(output),
|
|
349
|
-
...contents,
|
|
350
|
-
};
|
|
351
|
-
return response;
|
|
352
|
-
};
|
|
353
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
354
|
-
if (output.statusCode >= 300) {
|
|
355
|
-
return de_CommandError(output, context);
|
|
356
|
-
}
|
|
357
|
-
const data = await parseBody(output.body, context);
|
|
358
|
-
let contents = {};
|
|
359
|
-
contents = _json(data);
|
|
360
|
-
const response = {
|
|
361
|
-
$metadata: deserializeMetadata(output),
|
|
362
|
-
...contents,
|
|
363
|
-
};
|
|
364
|
-
return response;
|
|
365
|
-
};
|
|
366
|
-
export const de_UpdateClusterCommand = async (output, context) => {
|
|
367
|
-
if (output.statusCode >= 300) {
|
|
368
|
-
return de_CommandError(output, context);
|
|
369
|
-
}
|
|
370
|
-
const data = await parseBody(output.body, context);
|
|
371
|
-
let contents = {};
|
|
372
|
-
contents = de_UpdateClusterResponse(data, context);
|
|
373
|
-
const response = {
|
|
374
|
-
$metadata: deserializeMetadata(output),
|
|
375
|
-
...contents,
|
|
376
|
-
};
|
|
377
|
-
return response;
|
|
378
|
-
};
|
|
379
|
-
export const de_UpdateParameterGroupCommand = async (output, context) => {
|
|
380
|
-
if (output.statusCode >= 300) {
|
|
381
|
-
return de_CommandError(output, context);
|
|
382
|
-
}
|
|
383
|
-
const data = await parseBody(output.body, context);
|
|
384
|
-
let contents = {};
|
|
385
|
-
contents = _json(data);
|
|
386
|
-
const response = {
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
...contents,
|
|
389
|
-
};
|
|
390
|
-
return response;
|
|
391
|
-
};
|
|
392
|
-
export const de_UpdateSubnetGroupCommand = async (output, context) => {
|
|
393
|
-
if (output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const data = await parseBody(output.body, context);
|
|
397
|
-
let contents = {};
|
|
398
|
-
contents = _json(data);
|
|
399
|
-
const response = {
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
...contents,
|
|
402
|
-
};
|
|
403
|
-
return response;
|
|
404
|
-
};
|
|
405
|
-
const de_CommandError = async (output, context) => {
|
|
406
|
-
const parsedOutput = {
|
|
407
|
-
...output,
|
|
408
|
-
body: await parseErrorBody(output.body, context),
|
|
409
|
-
};
|
|
410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
-
switch (errorCode) {
|
|
412
|
-
case "ClusterAlreadyExistsFault":
|
|
413
|
-
case "com.amazonaws.dax#ClusterAlreadyExistsFault":
|
|
414
|
-
throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
415
|
-
case "ClusterQuotaForCustomerExceededFault":
|
|
416
|
-
case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
|
|
417
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
418
|
-
case "InsufficientClusterCapacityFault":
|
|
419
|
-
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
420
|
-
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
421
|
-
case "InvalidClusterStateFault":
|
|
422
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
423
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
424
|
-
case "InvalidParameterCombinationException":
|
|
425
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
426
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
427
|
-
case "InvalidParameterGroupStateFault":
|
|
428
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
429
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
430
|
-
case "InvalidParameterValueException":
|
|
431
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
432
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
433
|
-
case "InvalidVPCNetworkStateFault":
|
|
434
|
-
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
435
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
436
|
-
case "NodeQuotaForClusterExceededFault":
|
|
437
|
-
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
438
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
439
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
440
|
-
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
441
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
442
|
-
case "ParameterGroupNotFoundFault":
|
|
443
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
444
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
445
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
446
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
447
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
448
|
-
case "ServiceQuotaExceededException":
|
|
449
|
-
case "com.amazonaws.dax#ServiceQuotaExceededException":
|
|
450
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
451
|
-
case "SubnetGroupNotFoundFault":
|
|
452
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
453
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
454
|
-
case "TagQuotaPerResourceExceeded":
|
|
455
|
-
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
456
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
457
|
-
case "ParameterGroupAlreadyExistsFault":
|
|
458
|
-
case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
|
|
459
|
-
throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
460
|
-
case "ParameterGroupQuotaExceededFault":
|
|
461
|
-
case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
|
|
462
|
-
throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
463
|
-
case "InvalidSubnet":
|
|
464
|
-
case "com.amazonaws.dax#InvalidSubnet":
|
|
465
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
466
|
-
case "SubnetGroupAlreadyExistsFault":
|
|
467
|
-
case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
|
|
468
|
-
throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
469
|
-
case "SubnetGroupQuotaExceededFault":
|
|
470
|
-
case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
|
|
471
|
-
throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
472
|
-
case "SubnetNotAllowedFault":
|
|
473
|
-
case "com.amazonaws.dax#SubnetNotAllowedFault":
|
|
474
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
475
|
-
case "SubnetQuotaExceededFault":
|
|
476
|
-
case "com.amazonaws.dax#SubnetQuotaExceededFault":
|
|
477
|
-
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
478
|
-
case "ClusterNotFoundFault":
|
|
479
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
480
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
481
|
-
case "NodeNotFoundFault":
|
|
482
|
-
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
483
|
-
throw await de_NodeNotFoundFaultRes(parsedOutput, context);
|
|
484
|
-
case "SubnetGroupInUseFault":
|
|
485
|
-
case "com.amazonaws.dax#SubnetGroupInUseFault":
|
|
486
|
-
throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
|
|
487
|
-
case "InvalidARNFault":
|
|
488
|
-
case "com.amazonaws.dax#InvalidARNFault":
|
|
489
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
490
|
-
case "TagNotFoundFault":
|
|
491
|
-
case "com.amazonaws.dax#TagNotFoundFault":
|
|
492
|
-
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
493
|
-
case "SubnetInUse":
|
|
494
|
-
case "com.amazonaws.dax#SubnetInUse":
|
|
495
|
-
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
496
|
-
default:
|
|
497
|
-
const parsedBody = parsedOutput.body;
|
|
498
|
-
return throwDefaultError({
|
|
499
|
-
output,
|
|
500
|
-
parsedBody,
|
|
501
|
-
errorCode,
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
506
|
-
const body = parsedOutput.body;
|
|
507
|
-
const deserialized = _json(body);
|
|
508
|
-
const exception = new ClusterAlreadyExistsFault({
|
|
509
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
510
|
-
...deserialized,
|
|
511
|
-
});
|
|
512
|
-
return __decorateServiceException(exception, body);
|
|
513
|
-
};
|
|
514
|
-
const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
|
|
515
|
-
const body = parsedOutput.body;
|
|
516
|
-
const deserialized = _json(body);
|
|
517
|
-
const exception = new ClusterNotFoundFault({
|
|
518
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
519
|
-
...deserialized,
|
|
520
|
-
});
|
|
521
|
-
return __decorateServiceException(exception, body);
|
|
522
|
-
};
|
|
523
|
-
const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
524
|
-
const body = parsedOutput.body;
|
|
525
|
-
const deserialized = _json(body);
|
|
526
|
-
const exception = new ClusterQuotaForCustomerExceededFault({
|
|
527
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
528
|
-
...deserialized,
|
|
529
|
-
});
|
|
530
|
-
return __decorateServiceException(exception, body);
|
|
531
|
-
};
|
|
532
|
-
const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) => {
|
|
533
|
-
const body = parsedOutput.body;
|
|
534
|
-
const deserialized = _json(body);
|
|
535
|
-
const exception = new InsufficientClusterCapacityFault({
|
|
536
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
537
|
-
...deserialized,
|
|
538
|
-
});
|
|
539
|
-
return __decorateServiceException(exception, body);
|
|
540
|
-
};
|
|
541
|
-
const de_InvalidARNFaultRes = async (parsedOutput, context) => {
|
|
542
|
-
const body = parsedOutput.body;
|
|
543
|
-
const deserialized = _json(body);
|
|
544
|
-
const exception = new InvalidARNFault({
|
|
545
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
546
|
-
...deserialized,
|
|
547
|
-
});
|
|
548
|
-
return __decorateServiceException(exception, body);
|
|
549
|
-
};
|
|
550
|
-
const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
|
|
551
|
-
const body = parsedOutput.body;
|
|
552
|
-
const deserialized = _json(body);
|
|
553
|
-
const exception = new InvalidClusterStateFault({
|
|
554
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
555
|
-
...deserialized,
|
|
556
|
-
});
|
|
557
|
-
return __decorateServiceException(exception, body);
|
|
558
|
-
};
|
|
559
|
-
const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
|
|
560
|
-
const body = parsedOutput.body;
|
|
561
|
-
const deserialized = _json(body);
|
|
562
|
-
const exception = new InvalidParameterCombinationException({
|
|
563
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
564
|
-
...deserialized,
|
|
565
|
-
});
|
|
566
|
-
return __decorateServiceException(exception, body);
|
|
567
|
-
};
|
|
568
|
-
const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
|
|
569
|
-
const body = parsedOutput.body;
|
|
570
|
-
const deserialized = _json(body);
|
|
571
|
-
const exception = new InvalidParameterGroupStateFault({
|
|
572
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
573
|
-
...deserialized,
|
|
574
|
-
});
|
|
575
|
-
return __decorateServiceException(exception, body);
|
|
576
|
-
};
|
|
577
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
578
|
-
const body = parsedOutput.body;
|
|
579
|
-
const deserialized = _json(body);
|
|
580
|
-
const exception = new InvalidParameterValueException({
|
|
581
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
582
|
-
...deserialized,
|
|
583
|
-
});
|
|
584
|
-
return __decorateServiceException(exception, body);
|
|
585
|
-
};
|
|
586
|
-
const de_InvalidSubnetRes = async (parsedOutput, context) => {
|
|
587
|
-
const body = parsedOutput.body;
|
|
588
|
-
const deserialized = _json(body);
|
|
589
|
-
const exception = new InvalidSubnet({
|
|
590
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
591
|
-
...deserialized,
|
|
592
|
-
});
|
|
593
|
-
return __decorateServiceException(exception, body);
|
|
594
|
-
};
|
|
595
|
-
const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
|
|
596
|
-
const body = parsedOutput.body;
|
|
597
|
-
const deserialized = _json(body);
|
|
598
|
-
const exception = new InvalidVPCNetworkStateFault({
|
|
599
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
600
|
-
...deserialized,
|
|
601
|
-
});
|
|
602
|
-
return __decorateServiceException(exception, body);
|
|
603
|
-
};
|
|
604
|
-
const de_NodeNotFoundFaultRes = async (parsedOutput, context) => {
|
|
605
|
-
const body = parsedOutput.body;
|
|
606
|
-
const deserialized = _json(body);
|
|
607
|
-
const exception = new NodeNotFoundFault({
|
|
608
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
609
|
-
...deserialized,
|
|
610
|
-
});
|
|
611
|
-
return __decorateServiceException(exception, body);
|
|
612
|
-
};
|
|
613
|
-
const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
|
|
614
|
-
const body = parsedOutput.body;
|
|
615
|
-
const deserialized = _json(body);
|
|
616
|
-
const exception = new NodeQuotaForClusterExceededFault({
|
|
617
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
618
|
-
...deserialized,
|
|
619
|
-
});
|
|
620
|
-
return __decorateServiceException(exception, body);
|
|
621
|
-
};
|
|
622
|
-
const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
623
|
-
const body = parsedOutput.body;
|
|
624
|
-
const deserialized = _json(body);
|
|
625
|
-
const exception = new NodeQuotaForCustomerExceededFault({
|
|
626
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
627
|
-
...deserialized,
|
|
628
|
-
});
|
|
629
|
-
return __decorateServiceException(exception, body);
|
|
630
|
-
};
|
|
631
|
-
const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
632
|
-
const body = parsedOutput.body;
|
|
633
|
-
const deserialized = _json(body);
|
|
634
|
-
const exception = new ParameterGroupAlreadyExistsFault({
|
|
635
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
636
|
-
...deserialized,
|
|
637
|
-
});
|
|
638
|
-
return __decorateServiceException(exception, body);
|
|
639
|
-
};
|
|
640
|
-
const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
|
|
641
|
-
const body = parsedOutput.body;
|
|
642
|
-
const deserialized = _json(body);
|
|
643
|
-
const exception = new ParameterGroupNotFoundFault({
|
|
644
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
645
|
-
...deserialized,
|
|
646
|
-
});
|
|
647
|
-
return __decorateServiceException(exception, body);
|
|
648
|
-
};
|
|
649
|
-
const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
650
|
-
const body = parsedOutput.body;
|
|
651
|
-
const deserialized = _json(body);
|
|
652
|
-
const exception = new ParameterGroupQuotaExceededFault({
|
|
653
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
654
|
-
...deserialized,
|
|
655
|
-
});
|
|
656
|
-
return __decorateServiceException(exception, body);
|
|
657
|
-
};
|
|
658
|
-
const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
|
|
659
|
-
const body = parsedOutput.body;
|
|
660
|
-
const deserialized = _json(body);
|
|
661
|
-
const exception = new ServiceLinkedRoleNotFoundFault({
|
|
662
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
663
|
-
...deserialized,
|
|
664
|
-
});
|
|
665
|
-
return __decorateServiceException(exception, body);
|
|
666
|
-
};
|
|
667
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
668
|
-
const body = parsedOutput.body;
|
|
669
|
-
const deserialized = _json(body);
|
|
670
|
-
const exception = new ServiceQuotaExceededException({
|
|
671
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
672
|
-
...deserialized,
|
|
673
|
-
});
|
|
674
|
-
return __decorateServiceException(exception, body);
|
|
675
|
-
};
|
|
676
|
-
const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
677
|
-
const body = parsedOutput.body;
|
|
678
|
-
const deserialized = _json(body);
|
|
679
|
-
const exception = new SubnetGroupAlreadyExistsFault({
|
|
680
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
681
|
-
...deserialized,
|
|
682
|
-
});
|
|
683
|
-
return __decorateServiceException(exception, body);
|
|
684
|
-
};
|
|
685
|
-
const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
|
|
686
|
-
const body = parsedOutput.body;
|
|
687
|
-
const deserialized = _json(body);
|
|
688
|
-
const exception = new SubnetGroupInUseFault({
|
|
689
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
690
|
-
...deserialized,
|
|
691
|
-
});
|
|
692
|
-
return __decorateServiceException(exception, body);
|
|
693
|
-
};
|
|
694
|
-
const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
|
|
695
|
-
const body = parsedOutput.body;
|
|
696
|
-
const deserialized = _json(body);
|
|
697
|
-
const exception = new SubnetGroupNotFoundFault({
|
|
698
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
699
|
-
...deserialized,
|
|
700
|
-
});
|
|
701
|
-
return __decorateServiceException(exception, body);
|
|
702
|
-
};
|
|
703
|
-
const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
704
|
-
const body = parsedOutput.body;
|
|
705
|
-
const deserialized = _json(body);
|
|
706
|
-
const exception = new SubnetGroupQuotaExceededFault({
|
|
707
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
708
|
-
...deserialized,
|
|
709
|
-
});
|
|
710
|
-
return __decorateServiceException(exception, body);
|
|
711
|
-
};
|
|
712
|
-
const de_SubnetInUseRes = async (parsedOutput, context) => {
|
|
713
|
-
const body = parsedOutput.body;
|
|
714
|
-
const deserialized = _json(body);
|
|
715
|
-
const exception = new SubnetInUse({
|
|
716
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
717
|
-
...deserialized,
|
|
718
|
-
});
|
|
719
|
-
return __decorateServiceException(exception, body);
|
|
720
|
-
};
|
|
721
|
-
const de_SubnetNotAllowedFaultRes = async (parsedOutput, context) => {
|
|
722
|
-
const body = parsedOutput.body;
|
|
723
|
-
const deserialized = _json(body);
|
|
724
|
-
const exception = new SubnetNotAllowedFault({
|
|
725
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
726
|
-
...deserialized,
|
|
727
|
-
});
|
|
728
|
-
return __decorateServiceException(exception, body);
|
|
729
|
-
};
|
|
730
|
-
const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
731
|
-
const body = parsedOutput.body;
|
|
732
|
-
const deserialized = _json(body);
|
|
733
|
-
const exception = new SubnetQuotaExceededFault({
|
|
734
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
735
|
-
...deserialized,
|
|
736
|
-
});
|
|
737
|
-
return __decorateServiceException(exception, body);
|
|
738
|
-
};
|
|
739
|
-
const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
|
|
740
|
-
const body = parsedOutput.body;
|
|
741
|
-
const deserialized = _json(body);
|
|
742
|
-
const exception = new TagNotFoundFault({
|
|
743
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
744
|
-
...deserialized,
|
|
745
|
-
});
|
|
746
|
-
return __decorateServiceException(exception, body);
|
|
747
|
-
};
|
|
748
|
-
const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
|
|
749
|
-
const body = parsedOutput.body;
|
|
750
|
-
const deserialized = _json(body);
|
|
751
|
-
const exception = new TagQuotaPerResourceExceeded({
|
|
752
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
753
|
-
...deserialized,
|
|
754
|
-
});
|
|
755
|
-
return __decorateServiceException(exception, body);
|
|
756
|
-
};
|
|
757
|
-
const se_DescribeEventsRequest = (input, context) => {
|
|
758
|
-
return take(input, {
|
|
759
|
-
Duration: [],
|
|
760
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
761
|
-
MaxResults: [],
|
|
762
|
-
NextToken: [],
|
|
763
|
-
SourceName: [],
|
|
764
|
-
SourceType: [],
|
|
765
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
766
|
-
});
|
|
767
|
-
};
|
|
768
|
-
const de_Cluster = (output, context) => {
|
|
769
|
-
return take(output, {
|
|
770
|
-
ActiveNodes: __expectInt32,
|
|
771
|
-
ClusterArn: __expectString,
|
|
772
|
-
ClusterDiscoveryEndpoint: _json,
|
|
773
|
-
ClusterEndpointEncryptionType: __expectString,
|
|
774
|
-
ClusterName: __expectString,
|
|
775
|
-
Description: __expectString,
|
|
776
|
-
IamRoleArn: __expectString,
|
|
777
|
-
NetworkType: __expectString,
|
|
778
|
-
NodeIdsToRemove: _json,
|
|
779
|
-
NodeType: __expectString,
|
|
780
|
-
Nodes: (_) => de_NodeList(_, context),
|
|
781
|
-
NotificationConfiguration: _json,
|
|
782
|
-
ParameterGroup: _json,
|
|
783
|
-
PreferredMaintenanceWindow: __expectString,
|
|
784
|
-
SSEDescription: _json,
|
|
785
|
-
SecurityGroups: _json,
|
|
786
|
-
Status: __expectString,
|
|
787
|
-
SubnetGroup: __expectString,
|
|
788
|
-
TotalNodes: __expectInt32,
|
|
789
|
-
});
|
|
790
|
-
};
|
|
791
|
-
const de_ClusterList = (output, context) => {
|
|
792
|
-
const retVal = (output || [])
|
|
793
|
-
.filter((e) => e != null)
|
|
794
|
-
.map((entry) => {
|
|
795
|
-
return de_Cluster(entry, context);
|
|
796
|
-
});
|
|
797
|
-
return retVal;
|
|
798
|
-
};
|
|
799
|
-
const de_CreateClusterResponse = (output, context) => {
|
|
800
|
-
return take(output, {
|
|
801
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
802
|
-
});
|
|
803
|
-
};
|
|
804
|
-
const de_DecreaseReplicationFactorResponse = (output, context) => {
|
|
805
|
-
return take(output, {
|
|
806
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
807
|
-
});
|
|
808
|
-
};
|
|
809
|
-
const de_DeleteClusterResponse = (output, context) => {
|
|
810
|
-
return take(output, {
|
|
811
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
812
|
-
});
|
|
813
|
-
};
|
|
814
|
-
const de_DescribeClustersResponse = (output, context) => {
|
|
815
|
-
return take(output, {
|
|
816
|
-
Clusters: (_) => de_ClusterList(_, context),
|
|
817
|
-
NextToken: __expectString,
|
|
818
|
-
});
|
|
819
|
-
};
|
|
820
|
-
const de_DescribeEventsResponse = (output, context) => {
|
|
821
|
-
return take(output, {
|
|
822
|
-
Events: (_) => de_EventList(_, context),
|
|
823
|
-
NextToken: __expectString,
|
|
824
|
-
});
|
|
825
|
-
};
|
|
826
|
-
const de_Event = (output, context) => {
|
|
827
|
-
return take(output, {
|
|
828
|
-
Date: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
829
|
-
Message: __expectString,
|
|
830
|
-
SourceName: __expectString,
|
|
831
|
-
SourceType: __expectString,
|
|
832
|
-
});
|
|
833
|
-
};
|
|
834
|
-
const de_EventList = (output, context) => {
|
|
835
|
-
const retVal = (output || [])
|
|
836
|
-
.filter((e) => e != null)
|
|
837
|
-
.map((entry) => {
|
|
838
|
-
return de_Event(entry, context);
|
|
839
|
-
});
|
|
840
|
-
return retVal;
|
|
841
|
-
};
|
|
842
|
-
const de_IncreaseReplicationFactorResponse = (output, context) => {
|
|
843
|
-
return take(output, {
|
|
844
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
845
|
-
});
|
|
846
|
-
};
|
|
847
|
-
const de_Node = (output, context) => {
|
|
848
|
-
return take(output, {
|
|
849
|
-
AvailabilityZone: __expectString,
|
|
850
|
-
Endpoint: _json,
|
|
851
|
-
NodeCreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
852
|
-
NodeId: __expectString,
|
|
853
|
-
NodeStatus: __expectString,
|
|
854
|
-
ParameterGroupStatus: __expectString,
|
|
855
|
-
});
|
|
856
|
-
};
|
|
857
|
-
const de_NodeList = (output, context) => {
|
|
858
|
-
const retVal = (output || [])
|
|
859
|
-
.filter((e) => e != null)
|
|
860
|
-
.map((entry) => {
|
|
861
|
-
return de_Node(entry, context);
|
|
862
|
-
});
|
|
863
|
-
return retVal;
|
|
864
|
-
};
|
|
865
|
-
const de_RebootNodeResponse = (output, context) => {
|
|
866
|
-
return take(output, {
|
|
867
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
868
|
-
});
|
|
869
|
-
};
|
|
870
|
-
const de_UpdateClusterResponse = (output, context) => {
|
|
871
|
-
return take(output, {
|
|
872
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
873
|
-
});
|
|
874
|
-
};
|
|
875
|
-
const deserializeMetadata = (output) => ({
|
|
876
|
-
httpStatusCode: output.statusCode,
|
|
877
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
878
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
879
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
880
|
-
});
|
|
881
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
882
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
883
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
884
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
885
|
-
const contents = {
|
|
886
|
-
protocol,
|
|
887
|
-
hostname,
|
|
888
|
-
port,
|
|
889
|
-
method: "POST",
|
|
890
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
891
|
-
headers,
|
|
892
|
-
};
|
|
893
|
-
if (resolvedHostname !== undefined) {
|
|
894
|
-
contents.hostname = resolvedHostname;
|
|
895
|
-
}
|
|
896
|
-
if (body !== undefined) {
|
|
897
|
-
contents.body = body;
|
|
898
|
-
}
|
|
899
|
-
return new __HttpRequest(contents);
|
|
900
|
-
};
|
|
901
|
-
function sharedHeaders(operation) {
|
|
902
|
-
return {
|
|
903
|
-
"content-type": "application/x-amz-json-1.1",
|
|
904
|
-
"x-amz-target": `AmazonDAXV3.${operation}`,
|
|
905
|
-
};
|
|
906
|
-
}
|