@aws-sdk/client-dax 3.490.0 → 3.496.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/DAX.js +1 -53
- package/dist-cjs/DAXClient.js +1 -43
- package/dist-cjs/commands/CreateClusterCommand.js +1 -28
- package/dist-cjs/commands/CreateParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/DecreaseReplicationFactorCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/DescribeClustersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDefaultParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventsCommand.js +1 -28
- package/dist-cjs/commands/DescribeParameterGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeSubnetGroupsCommand.js +1 -28
- package/dist-cjs/commands/IncreaseReplicationFactorCommand.js +1 -28
- package/dist-cjs/commands/ListTagsCommand.js +1 -28
- package/dist-cjs/commands/RebootNodeCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateClusterCommand.js +1 -28
- package/dist-cjs/commands/UpdateParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/UpdateSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -24
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2647 -10
- package/dist-cjs/models/DAXServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -383
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1567
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +39 -39
|
@@ -1,1567 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateSubnetGroupCommand = exports.de_UpdateParameterGroupCommand = exports.de_UpdateClusterCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RebootNodeCommand = exports.de_ListTagsCommand = exports.de_IncreaseReplicationFactorCommand = exports.de_DescribeSubnetGroupsCommand = exports.de_DescribeParametersCommand = exports.de_DescribeParameterGroupsCommand = exports.de_DescribeEventsCommand = exports.de_DescribeDefaultParametersCommand = exports.de_DescribeClustersCommand = exports.de_DeleteSubnetGroupCommand = exports.de_DeleteParameterGroupCommand = exports.de_DeleteClusterCommand = exports.de_DecreaseReplicationFactorCommand = exports.de_CreateSubnetGroupCommand = exports.de_CreateParameterGroupCommand = exports.de_CreateClusterCommand = exports.se_UpdateSubnetGroupCommand = exports.se_UpdateParameterGroupCommand = exports.se_UpdateClusterCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RebootNodeCommand = exports.se_ListTagsCommand = exports.se_IncreaseReplicationFactorCommand = exports.se_DescribeSubnetGroupsCommand = exports.se_DescribeParametersCommand = exports.se_DescribeParameterGroupsCommand = exports.se_DescribeEventsCommand = exports.se_DescribeDefaultParametersCommand = exports.se_DescribeClustersCommand = exports.se_DeleteSubnetGroupCommand = exports.se_DeleteParameterGroupCommand = exports.se_DeleteClusterCommand = exports.se_DecreaseReplicationFactorCommand = exports.se_CreateSubnetGroupCommand = exports.se_CreateParameterGroupCommand = exports.se_CreateClusterCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const DAXServiceException_1 = require("../models/DAXServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_CreateClusterCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("CreateCluster");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_CreateClusterCommand = se_CreateClusterCommand;
|
|
15
|
-
const se_CreateParameterGroupCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("CreateParameterGroup");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_CreateParameterGroupCommand = se_CreateParameterGroupCommand;
|
|
22
|
-
const se_CreateSubnetGroupCommand = async (input, context) => {
|
|
23
|
-
const headers = sharedHeaders("CreateSubnetGroup");
|
|
24
|
-
let body;
|
|
25
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
-
};
|
|
28
|
-
exports.se_CreateSubnetGroupCommand = se_CreateSubnetGroupCommand;
|
|
29
|
-
const se_DecreaseReplicationFactorCommand = async (input, context) => {
|
|
30
|
-
const headers = sharedHeaders("DecreaseReplicationFactor");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.se_DecreaseReplicationFactorCommand = se_DecreaseReplicationFactorCommand;
|
|
36
|
-
const se_DeleteClusterCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteCluster");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
|
|
43
|
-
const se_DeleteParameterGroupCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteParameterGroup");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
exports.se_DeleteParameterGroupCommand = se_DeleteParameterGroupCommand;
|
|
50
|
-
const se_DeleteSubnetGroupCommand = async (input, context) => {
|
|
51
|
-
const headers = sharedHeaders("DeleteSubnetGroup");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
exports.se_DeleteSubnetGroupCommand = se_DeleteSubnetGroupCommand;
|
|
57
|
-
const se_DescribeClustersCommand = async (input, context) => {
|
|
58
|
-
const headers = sharedHeaders("DescribeClusters");
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
|
-
};
|
|
63
|
-
exports.se_DescribeClustersCommand = se_DescribeClustersCommand;
|
|
64
|
-
const se_DescribeDefaultParametersCommand = async (input, context) => {
|
|
65
|
-
const headers = sharedHeaders("DescribeDefaultParameters");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
|
-
};
|
|
70
|
-
exports.se_DescribeDefaultParametersCommand = se_DescribeDefaultParametersCommand;
|
|
71
|
-
const se_DescribeEventsCommand = async (input, context) => {
|
|
72
|
-
const headers = sharedHeaders("DescribeEvents");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
|
|
78
|
-
const se_DescribeParameterGroupsCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DescribeParameterGroups");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
exports.se_DescribeParameterGroupsCommand = se_DescribeParameterGroupsCommand;
|
|
85
|
-
const se_DescribeParametersCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DescribeParameters");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
exports.se_DescribeParametersCommand = se_DescribeParametersCommand;
|
|
92
|
-
const se_DescribeSubnetGroupsCommand = async (input, context) => {
|
|
93
|
-
const headers = sharedHeaders("DescribeSubnetGroups");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
-
};
|
|
98
|
-
exports.se_DescribeSubnetGroupsCommand = se_DescribeSubnetGroupsCommand;
|
|
99
|
-
const se_IncreaseReplicationFactorCommand = async (input, context) => {
|
|
100
|
-
const headers = sharedHeaders("IncreaseReplicationFactor");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
exports.se_IncreaseReplicationFactorCommand = se_IncreaseReplicationFactorCommand;
|
|
106
|
-
const se_ListTagsCommand = async (input, context) => {
|
|
107
|
-
const headers = sharedHeaders("ListTags");
|
|
108
|
-
let body;
|
|
109
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
|
-
};
|
|
112
|
-
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
113
|
-
const se_RebootNodeCommand = async (input, context) => {
|
|
114
|
-
const headers = sharedHeaders("RebootNode");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
exports.se_RebootNodeCommand = se_RebootNodeCommand;
|
|
120
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("TagResource");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
127
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("UntagResource");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
134
|
-
const se_UpdateClusterCommand = async (input, context) => {
|
|
135
|
-
const headers = sharedHeaders("UpdateCluster");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
-
};
|
|
140
|
-
exports.se_UpdateClusterCommand = se_UpdateClusterCommand;
|
|
141
|
-
const se_UpdateParameterGroupCommand = async (input, context) => {
|
|
142
|
-
const headers = sharedHeaders("UpdateParameterGroup");
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
|
-
};
|
|
147
|
-
exports.se_UpdateParameterGroupCommand = se_UpdateParameterGroupCommand;
|
|
148
|
-
const se_UpdateSubnetGroupCommand = async (input, context) => {
|
|
149
|
-
const headers = sharedHeaders("UpdateSubnetGroup");
|
|
150
|
-
let body;
|
|
151
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
152
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
153
|
-
};
|
|
154
|
-
exports.se_UpdateSubnetGroupCommand = se_UpdateSubnetGroupCommand;
|
|
155
|
-
const de_CreateClusterCommand = async (output, context) => {
|
|
156
|
-
if (output.statusCode >= 300) {
|
|
157
|
-
return de_CreateClusterCommandError(output, context);
|
|
158
|
-
}
|
|
159
|
-
const data = await parseBody(output.body, context);
|
|
160
|
-
let contents = {};
|
|
161
|
-
contents = de_CreateClusterResponse(data, context);
|
|
162
|
-
const response = {
|
|
163
|
-
$metadata: deserializeMetadata(output),
|
|
164
|
-
...contents,
|
|
165
|
-
};
|
|
166
|
-
return response;
|
|
167
|
-
};
|
|
168
|
-
exports.de_CreateClusterCommand = de_CreateClusterCommand;
|
|
169
|
-
const de_CreateClusterCommandError = async (output, context) => {
|
|
170
|
-
const parsedOutput = {
|
|
171
|
-
...output,
|
|
172
|
-
body: await parseErrorBody(output.body, context),
|
|
173
|
-
};
|
|
174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
175
|
-
switch (errorCode) {
|
|
176
|
-
case "ClusterAlreadyExistsFault":
|
|
177
|
-
case "com.amazonaws.dax#ClusterAlreadyExistsFault":
|
|
178
|
-
throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
179
|
-
case "ClusterQuotaForCustomerExceededFault":
|
|
180
|
-
case "com.amazonaws.dax#ClusterQuotaForCustomerExceededFault":
|
|
181
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
182
|
-
case "InsufficientClusterCapacityFault":
|
|
183
|
-
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
184
|
-
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
185
|
-
case "InvalidClusterStateFault":
|
|
186
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
187
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
188
|
-
case "InvalidParameterCombinationException":
|
|
189
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
190
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
191
|
-
case "InvalidParameterGroupStateFault":
|
|
192
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
193
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
194
|
-
case "InvalidParameterValueException":
|
|
195
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
196
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
197
|
-
case "InvalidVPCNetworkStateFault":
|
|
198
|
-
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
199
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
200
|
-
case "NodeQuotaForClusterExceededFault":
|
|
201
|
-
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
202
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
203
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
204
|
-
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
205
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
206
|
-
case "ParameterGroupNotFoundFault":
|
|
207
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
208
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
209
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
210
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
211
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
212
|
-
case "ServiceQuotaExceededException":
|
|
213
|
-
case "com.amazonaws.dax#ServiceQuotaExceededException":
|
|
214
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
215
|
-
case "SubnetGroupNotFoundFault":
|
|
216
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
217
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
218
|
-
case "TagQuotaPerResourceExceeded":
|
|
219
|
-
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
220
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
221
|
-
default:
|
|
222
|
-
const parsedBody = parsedOutput.body;
|
|
223
|
-
return throwDefaultError({
|
|
224
|
-
output,
|
|
225
|
-
parsedBody,
|
|
226
|
-
errorCode,
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
const de_CreateParameterGroupCommand = async (output, context) => {
|
|
231
|
-
if (output.statusCode >= 300) {
|
|
232
|
-
return de_CreateParameterGroupCommandError(output, context);
|
|
233
|
-
}
|
|
234
|
-
const data = await parseBody(output.body, context);
|
|
235
|
-
let contents = {};
|
|
236
|
-
contents = (0, smithy_client_1._json)(data);
|
|
237
|
-
const response = {
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
...contents,
|
|
240
|
-
};
|
|
241
|
-
return response;
|
|
242
|
-
};
|
|
243
|
-
exports.de_CreateParameterGroupCommand = de_CreateParameterGroupCommand;
|
|
244
|
-
const de_CreateParameterGroupCommandError = async (output, context) => {
|
|
245
|
-
const parsedOutput = {
|
|
246
|
-
...output,
|
|
247
|
-
body: await parseErrorBody(output.body, context),
|
|
248
|
-
};
|
|
249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
250
|
-
switch (errorCode) {
|
|
251
|
-
case "InvalidParameterCombinationException":
|
|
252
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
253
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
254
|
-
case "InvalidParameterGroupStateFault":
|
|
255
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
256
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
257
|
-
case "InvalidParameterValueException":
|
|
258
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
259
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
260
|
-
case "ParameterGroupAlreadyExistsFault":
|
|
261
|
-
case "com.amazonaws.dax#ParameterGroupAlreadyExistsFault":
|
|
262
|
-
throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
263
|
-
case "ParameterGroupQuotaExceededFault":
|
|
264
|
-
case "com.amazonaws.dax#ParameterGroupQuotaExceededFault":
|
|
265
|
-
throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
266
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
267
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
268
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
269
|
-
default:
|
|
270
|
-
const parsedBody = parsedOutput.body;
|
|
271
|
-
return throwDefaultError({
|
|
272
|
-
output,
|
|
273
|
-
parsedBody,
|
|
274
|
-
errorCode,
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
const de_CreateSubnetGroupCommand = async (output, context) => {
|
|
279
|
-
if (output.statusCode >= 300) {
|
|
280
|
-
return de_CreateSubnetGroupCommandError(output, context);
|
|
281
|
-
}
|
|
282
|
-
const data = await parseBody(output.body, context);
|
|
283
|
-
let contents = {};
|
|
284
|
-
contents = (0, smithy_client_1._json)(data);
|
|
285
|
-
const response = {
|
|
286
|
-
$metadata: deserializeMetadata(output),
|
|
287
|
-
...contents,
|
|
288
|
-
};
|
|
289
|
-
return response;
|
|
290
|
-
};
|
|
291
|
-
exports.de_CreateSubnetGroupCommand = de_CreateSubnetGroupCommand;
|
|
292
|
-
const de_CreateSubnetGroupCommandError = async (output, context) => {
|
|
293
|
-
const parsedOutput = {
|
|
294
|
-
...output,
|
|
295
|
-
body: await parseErrorBody(output.body, context),
|
|
296
|
-
};
|
|
297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
298
|
-
switch (errorCode) {
|
|
299
|
-
case "InvalidSubnet":
|
|
300
|
-
case "com.amazonaws.dax#InvalidSubnet":
|
|
301
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
302
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
303
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
304
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
305
|
-
case "SubnetGroupAlreadyExistsFault":
|
|
306
|
-
case "com.amazonaws.dax#SubnetGroupAlreadyExistsFault":
|
|
307
|
-
throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
308
|
-
case "SubnetGroupQuotaExceededFault":
|
|
309
|
-
case "com.amazonaws.dax#SubnetGroupQuotaExceededFault":
|
|
310
|
-
throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
311
|
-
case "SubnetQuotaExceededFault":
|
|
312
|
-
case "com.amazonaws.dax#SubnetQuotaExceededFault":
|
|
313
|
-
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
314
|
-
default:
|
|
315
|
-
const parsedBody = parsedOutput.body;
|
|
316
|
-
return throwDefaultError({
|
|
317
|
-
output,
|
|
318
|
-
parsedBody,
|
|
319
|
-
errorCode,
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
const de_DecreaseReplicationFactorCommand = async (output, context) => {
|
|
324
|
-
if (output.statusCode >= 300) {
|
|
325
|
-
return de_DecreaseReplicationFactorCommandError(output, context);
|
|
326
|
-
}
|
|
327
|
-
const data = await parseBody(output.body, context);
|
|
328
|
-
let contents = {};
|
|
329
|
-
contents = de_DecreaseReplicationFactorResponse(data, context);
|
|
330
|
-
const response = {
|
|
331
|
-
$metadata: deserializeMetadata(output),
|
|
332
|
-
...contents,
|
|
333
|
-
};
|
|
334
|
-
return response;
|
|
335
|
-
};
|
|
336
|
-
exports.de_DecreaseReplicationFactorCommand = de_DecreaseReplicationFactorCommand;
|
|
337
|
-
const de_DecreaseReplicationFactorCommandError = async (output, context) => {
|
|
338
|
-
const parsedOutput = {
|
|
339
|
-
...output,
|
|
340
|
-
body: await parseErrorBody(output.body, context),
|
|
341
|
-
};
|
|
342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
-
switch (errorCode) {
|
|
344
|
-
case "ClusterNotFoundFault":
|
|
345
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
346
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
347
|
-
case "InvalidClusterStateFault":
|
|
348
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
349
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
350
|
-
case "InvalidParameterCombinationException":
|
|
351
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
352
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
353
|
-
case "InvalidParameterValueException":
|
|
354
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
355
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
356
|
-
case "NodeNotFoundFault":
|
|
357
|
-
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
358
|
-
throw await de_NodeNotFoundFaultRes(parsedOutput, context);
|
|
359
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
360
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
361
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
362
|
-
default:
|
|
363
|
-
const parsedBody = parsedOutput.body;
|
|
364
|
-
return throwDefaultError({
|
|
365
|
-
output,
|
|
366
|
-
parsedBody,
|
|
367
|
-
errorCode,
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
const de_DeleteClusterCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode >= 300) {
|
|
373
|
-
return de_DeleteClusterCommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const data = await parseBody(output.body, context);
|
|
376
|
-
let contents = {};
|
|
377
|
-
contents = de_DeleteClusterResponse(data, context);
|
|
378
|
-
const response = {
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
...contents,
|
|
381
|
-
};
|
|
382
|
-
return response;
|
|
383
|
-
};
|
|
384
|
-
exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
|
|
385
|
-
const de_DeleteClusterCommandError = async (output, context) => {
|
|
386
|
-
const parsedOutput = {
|
|
387
|
-
...output,
|
|
388
|
-
body: await parseErrorBody(output.body, context),
|
|
389
|
-
};
|
|
390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
391
|
-
switch (errorCode) {
|
|
392
|
-
case "ClusterNotFoundFault":
|
|
393
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
394
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
395
|
-
case "InvalidClusterStateFault":
|
|
396
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
397
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
398
|
-
case "InvalidParameterCombinationException":
|
|
399
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
400
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
401
|
-
case "InvalidParameterValueException":
|
|
402
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
403
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
405
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
406
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
407
|
-
default:
|
|
408
|
-
const parsedBody = parsedOutput.body;
|
|
409
|
-
return throwDefaultError({
|
|
410
|
-
output,
|
|
411
|
-
parsedBody,
|
|
412
|
-
errorCode,
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
const de_DeleteParameterGroupCommand = async (output, context) => {
|
|
417
|
-
if (output.statusCode >= 300) {
|
|
418
|
-
return de_DeleteParameterGroupCommandError(output, context);
|
|
419
|
-
}
|
|
420
|
-
const data = await parseBody(output.body, context);
|
|
421
|
-
let contents = {};
|
|
422
|
-
contents = (0, smithy_client_1._json)(data);
|
|
423
|
-
const response = {
|
|
424
|
-
$metadata: deserializeMetadata(output),
|
|
425
|
-
...contents,
|
|
426
|
-
};
|
|
427
|
-
return response;
|
|
428
|
-
};
|
|
429
|
-
exports.de_DeleteParameterGroupCommand = de_DeleteParameterGroupCommand;
|
|
430
|
-
const de_DeleteParameterGroupCommandError = async (output, context) => {
|
|
431
|
-
const parsedOutput = {
|
|
432
|
-
...output,
|
|
433
|
-
body: await parseErrorBody(output.body, context),
|
|
434
|
-
};
|
|
435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
436
|
-
switch (errorCode) {
|
|
437
|
-
case "InvalidParameterCombinationException":
|
|
438
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
439
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
440
|
-
case "InvalidParameterGroupStateFault":
|
|
441
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
442
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
443
|
-
case "InvalidParameterValueException":
|
|
444
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
445
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ParameterGroupNotFoundFault":
|
|
447
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
448
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
449
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
450
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
451
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
452
|
-
default:
|
|
453
|
-
const parsedBody = parsedOutput.body;
|
|
454
|
-
return throwDefaultError({
|
|
455
|
-
output,
|
|
456
|
-
parsedBody,
|
|
457
|
-
errorCode,
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
const de_DeleteSubnetGroupCommand = async (output, context) => {
|
|
462
|
-
if (output.statusCode >= 300) {
|
|
463
|
-
return de_DeleteSubnetGroupCommandError(output, context);
|
|
464
|
-
}
|
|
465
|
-
const data = await parseBody(output.body, context);
|
|
466
|
-
let contents = {};
|
|
467
|
-
contents = (0, smithy_client_1._json)(data);
|
|
468
|
-
const response = {
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
...contents,
|
|
471
|
-
};
|
|
472
|
-
return response;
|
|
473
|
-
};
|
|
474
|
-
exports.de_DeleteSubnetGroupCommand = de_DeleteSubnetGroupCommand;
|
|
475
|
-
const de_DeleteSubnetGroupCommandError = async (output, context) => {
|
|
476
|
-
const parsedOutput = {
|
|
477
|
-
...output,
|
|
478
|
-
body: await parseErrorBody(output.body, context),
|
|
479
|
-
};
|
|
480
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
481
|
-
switch (errorCode) {
|
|
482
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
483
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
484
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
485
|
-
case "SubnetGroupInUseFault":
|
|
486
|
-
case "com.amazonaws.dax#SubnetGroupInUseFault":
|
|
487
|
-
throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
|
|
488
|
-
case "SubnetGroupNotFoundFault":
|
|
489
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
490
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
491
|
-
default:
|
|
492
|
-
const parsedBody = parsedOutput.body;
|
|
493
|
-
return throwDefaultError({
|
|
494
|
-
output,
|
|
495
|
-
parsedBody,
|
|
496
|
-
errorCode,
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
const de_DescribeClustersCommand = async (output, context) => {
|
|
501
|
-
if (output.statusCode >= 300) {
|
|
502
|
-
return de_DescribeClustersCommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const data = await parseBody(output.body, context);
|
|
505
|
-
let contents = {};
|
|
506
|
-
contents = de_DescribeClustersResponse(data, context);
|
|
507
|
-
const response = {
|
|
508
|
-
$metadata: deserializeMetadata(output),
|
|
509
|
-
...contents,
|
|
510
|
-
};
|
|
511
|
-
return response;
|
|
512
|
-
};
|
|
513
|
-
exports.de_DescribeClustersCommand = de_DescribeClustersCommand;
|
|
514
|
-
const de_DescribeClustersCommandError = async (output, context) => {
|
|
515
|
-
const parsedOutput = {
|
|
516
|
-
...output,
|
|
517
|
-
body: await parseErrorBody(output.body, context),
|
|
518
|
-
};
|
|
519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
-
switch (errorCode) {
|
|
521
|
-
case "ClusterNotFoundFault":
|
|
522
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
523
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
524
|
-
case "InvalidParameterCombinationException":
|
|
525
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
526
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
527
|
-
case "InvalidParameterValueException":
|
|
528
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
529
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
531
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
532
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
533
|
-
default:
|
|
534
|
-
const parsedBody = parsedOutput.body;
|
|
535
|
-
return throwDefaultError({
|
|
536
|
-
output,
|
|
537
|
-
parsedBody,
|
|
538
|
-
errorCode,
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
const de_DescribeDefaultParametersCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode >= 300) {
|
|
544
|
-
return de_DescribeDefaultParametersCommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const data = await parseBody(output.body, context);
|
|
547
|
-
let contents = {};
|
|
548
|
-
contents = (0, smithy_client_1._json)(data);
|
|
549
|
-
const response = {
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
...contents,
|
|
552
|
-
};
|
|
553
|
-
return response;
|
|
554
|
-
};
|
|
555
|
-
exports.de_DescribeDefaultParametersCommand = de_DescribeDefaultParametersCommand;
|
|
556
|
-
const de_DescribeDefaultParametersCommandError = async (output, context) => {
|
|
557
|
-
const parsedOutput = {
|
|
558
|
-
...output,
|
|
559
|
-
body: await parseErrorBody(output.body, context),
|
|
560
|
-
};
|
|
561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
|
-
switch (errorCode) {
|
|
563
|
-
case "InvalidParameterCombinationException":
|
|
564
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
565
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
566
|
-
case "InvalidParameterValueException":
|
|
567
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
568
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
570
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
571
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
572
|
-
default:
|
|
573
|
-
const parsedBody = parsedOutput.body;
|
|
574
|
-
return throwDefaultError({
|
|
575
|
-
output,
|
|
576
|
-
parsedBody,
|
|
577
|
-
errorCode,
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
|
-
const de_DescribeEventsCommand = async (output, context) => {
|
|
582
|
-
if (output.statusCode >= 300) {
|
|
583
|
-
return de_DescribeEventsCommandError(output, context);
|
|
584
|
-
}
|
|
585
|
-
const data = await parseBody(output.body, context);
|
|
586
|
-
let contents = {};
|
|
587
|
-
contents = de_DescribeEventsResponse(data, context);
|
|
588
|
-
const response = {
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
...contents,
|
|
591
|
-
};
|
|
592
|
-
return response;
|
|
593
|
-
};
|
|
594
|
-
exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
|
|
595
|
-
const de_DescribeEventsCommandError = async (output, context) => {
|
|
596
|
-
const parsedOutput = {
|
|
597
|
-
...output,
|
|
598
|
-
body: await parseErrorBody(output.body, context),
|
|
599
|
-
};
|
|
600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
601
|
-
switch (errorCode) {
|
|
602
|
-
case "InvalidParameterCombinationException":
|
|
603
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
604
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
605
|
-
case "InvalidParameterValueException":
|
|
606
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
607
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
609
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
610
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
611
|
-
default:
|
|
612
|
-
const parsedBody = parsedOutput.body;
|
|
613
|
-
return throwDefaultError({
|
|
614
|
-
output,
|
|
615
|
-
parsedBody,
|
|
616
|
-
errorCode,
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
const de_DescribeParameterGroupsCommand = async (output, context) => {
|
|
621
|
-
if (output.statusCode >= 300) {
|
|
622
|
-
return de_DescribeParameterGroupsCommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const data = await parseBody(output.body, context);
|
|
625
|
-
let contents = {};
|
|
626
|
-
contents = (0, smithy_client_1._json)(data);
|
|
627
|
-
const response = {
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
...contents,
|
|
630
|
-
};
|
|
631
|
-
return response;
|
|
632
|
-
};
|
|
633
|
-
exports.de_DescribeParameterGroupsCommand = de_DescribeParameterGroupsCommand;
|
|
634
|
-
const de_DescribeParameterGroupsCommandError = async (output, context) => {
|
|
635
|
-
const parsedOutput = {
|
|
636
|
-
...output,
|
|
637
|
-
body: await parseErrorBody(output.body, context),
|
|
638
|
-
};
|
|
639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
-
switch (errorCode) {
|
|
641
|
-
case "InvalidParameterCombinationException":
|
|
642
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
643
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
644
|
-
case "InvalidParameterValueException":
|
|
645
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
646
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ParameterGroupNotFoundFault":
|
|
648
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
649
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
650
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
651
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
652
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
653
|
-
default:
|
|
654
|
-
const parsedBody = parsedOutput.body;
|
|
655
|
-
return throwDefaultError({
|
|
656
|
-
output,
|
|
657
|
-
parsedBody,
|
|
658
|
-
errorCode,
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
const de_DescribeParametersCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode >= 300) {
|
|
664
|
-
return de_DescribeParametersCommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const data = await parseBody(output.body, context);
|
|
667
|
-
let contents = {};
|
|
668
|
-
contents = (0, smithy_client_1._json)(data);
|
|
669
|
-
const response = {
|
|
670
|
-
$metadata: deserializeMetadata(output),
|
|
671
|
-
...contents,
|
|
672
|
-
};
|
|
673
|
-
return response;
|
|
674
|
-
};
|
|
675
|
-
exports.de_DescribeParametersCommand = de_DescribeParametersCommand;
|
|
676
|
-
const de_DescribeParametersCommandError = async (output, context) => {
|
|
677
|
-
const parsedOutput = {
|
|
678
|
-
...output,
|
|
679
|
-
body: await parseErrorBody(output.body, context),
|
|
680
|
-
};
|
|
681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
-
switch (errorCode) {
|
|
683
|
-
case "InvalidParameterCombinationException":
|
|
684
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
685
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
686
|
-
case "InvalidParameterValueException":
|
|
687
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
688
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ParameterGroupNotFoundFault":
|
|
690
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
691
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
692
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
693
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
694
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
const de_DescribeSubnetGroupsCommand = async (output, context) => {
|
|
705
|
-
if (output.statusCode >= 300) {
|
|
706
|
-
return de_DescribeSubnetGroupsCommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const data = await parseBody(output.body, context);
|
|
709
|
-
let contents = {};
|
|
710
|
-
contents = (0, smithy_client_1._json)(data);
|
|
711
|
-
const response = {
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
...contents,
|
|
714
|
-
};
|
|
715
|
-
return response;
|
|
716
|
-
};
|
|
717
|
-
exports.de_DescribeSubnetGroupsCommand = de_DescribeSubnetGroupsCommand;
|
|
718
|
-
const de_DescribeSubnetGroupsCommandError = async (output, context) => {
|
|
719
|
-
const parsedOutput = {
|
|
720
|
-
...output,
|
|
721
|
-
body: await parseErrorBody(output.body, context),
|
|
722
|
-
};
|
|
723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
-
switch (errorCode) {
|
|
725
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
726
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
727
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
728
|
-
case "SubnetGroupNotFoundFault":
|
|
729
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
730
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
return throwDefaultError({
|
|
734
|
-
output,
|
|
735
|
-
parsedBody,
|
|
736
|
-
errorCode,
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
const de_IncreaseReplicationFactorCommand = async (output, context) => {
|
|
741
|
-
if (output.statusCode >= 300) {
|
|
742
|
-
return de_IncreaseReplicationFactorCommandError(output, context);
|
|
743
|
-
}
|
|
744
|
-
const data = await parseBody(output.body, context);
|
|
745
|
-
let contents = {};
|
|
746
|
-
contents = de_IncreaseReplicationFactorResponse(data, context);
|
|
747
|
-
const response = {
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
...contents,
|
|
750
|
-
};
|
|
751
|
-
return response;
|
|
752
|
-
};
|
|
753
|
-
exports.de_IncreaseReplicationFactorCommand = de_IncreaseReplicationFactorCommand;
|
|
754
|
-
const de_IncreaseReplicationFactorCommandError = async (output, context) => {
|
|
755
|
-
const parsedOutput = {
|
|
756
|
-
...output,
|
|
757
|
-
body: await parseErrorBody(output.body, context),
|
|
758
|
-
};
|
|
759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
|
-
switch (errorCode) {
|
|
761
|
-
case "ClusterNotFoundFault":
|
|
762
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
763
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
764
|
-
case "InsufficientClusterCapacityFault":
|
|
765
|
-
case "com.amazonaws.dax#InsufficientClusterCapacityFault":
|
|
766
|
-
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
767
|
-
case "InvalidClusterStateFault":
|
|
768
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
769
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
770
|
-
case "InvalidParameterCombinationException":
|
|
771
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
772
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
773
|
-
case "InvalidParameterValueException":
|
|
774
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
775
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
776
|
-
case "InvalidVPCNetworkStateFault":
|
|
777
|
-
case "com.amazonaws.dax#InvalidVPCNetworkStateFault":
|
|
778
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
779
|
-
case "NodeQuotaForClusterExceededFault":
|
|
780
|
-
case "com.amazonaws.dax#NodeQuotaForClusterExceededFault":
|
|
781
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
782
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
783
|
-
case "com.amazonaws.dax#NodeQuotaForCustomerExceededFault":
|
|
784
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
785
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
786
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
787
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
const de_ListTagsCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode >= 300) {
|
|
799
|
-
return de_ListTagsCommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const data = await parseBody(output.body, context);
|
|
802
|
-
let contents = {};
|
|
803
|
-
contents = (0, smithy_client_1._json)(data);
|
|
804
|
-
const response = {
|
|
805
|
-
$metadata: deserializeMetadata(output),
|
|
806
|
-
...contents,
|
|
807
|
-
};
|
|
808
|
-
return response;
|
|
809
|
-
};
|
|
810
|
-
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
811
|
-
const de_ListTagsCommandError = async (output, context) => {
|
|
812
|
-
const parsedOutput = {
|
|
813
|
-
...output,
|
|
814
|
-
body: await parseErrorBody(output.body, context),
|
|
815
|
-
};
|
|
816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
|
-
switch (errorCode) {
|
|
818
|
-
case "ClusterNotFoundFault":
|
|
819
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
820
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
821
|
-
case "InvalidARNFault":
|
|
822
|
-
case "com.amazonaws.dax#InvalidARNFault":
|
|
823
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
824
|
-
case "InvalidClusterStateFault":
|
|
825
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
826
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
827
|
-
case "InvalidParameterCombinationException":
|
|
828
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
829
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
830
|
-
case "InvalidParameterValueException":
|
|
831
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
832
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
833
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
834
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
835
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
836
|
-
default:
|
|
837
|
-
const parsedBody = parsedOutput.body;
|
|
838
|
-
return throwDefaultError({
|
|
839
|
-
output,
|
|
840
|
-
parsedBody,
|
|
841
|
-
errorCode,
|
|
842
|
-
});
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
|
-
const de_RebootNodeCommand = async (output, context) => {
|
|
846
|
-
if (output.statusCode >= 300) {
|
|
847
|
-
return de_RebootNodeCommandError(output, context);
|
|
848
|
-
}
|
|
849
|
-
const data = await parseBody(output.body, context);
|
|
850
|
-
let contents = {};
|
|
851
|
-
contents = de_RebootNodeResponse(data, context);
|
|
852
|
-
const response = {
|
|
853
|
-
$metadata: deserializeMetadata(output),
|
|
854
|
-
...contents,
|
|
855
|
-
};
|
|
856
|
-
return response;
|
|
857
|
-
};
|
|
858
|
-
exports.de_RebootNodeCommand = de_RebootNodeCommand;
|
|
859
|
-
const de_RebootNodeCommandError = async (output, context) => {
|
|
860
|
-
const parsedOutput = {
|
|
861
|
-
...output,
|
|
862
|
-
body: await parseErrorBody(output.body, context),
|
|
863
|
-
};
|
|
864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
|
-
switch (errorCode) {
|
|
866
|
-
case "ClusterNotFoundFault":
|
|
867
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
868
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
869
|
-
case "InvalidClusterStateFault":
|
|
870
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
871
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
872
|
-
case "InvalidParameterCombinationException":
|
|
873
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
874
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
875
|
-
case "InvalidParameterValueException":
|
|
876
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
877
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
878
|
-
case "NodeNotFoundFault":
|
|
879
|
-
case "com.amazonaws.dax#NodeNotFoundFault":
|
|
880
|
-
throw await de_NodeNotFoundFaultRes(parsedOutput, context);
|
|
881
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
882
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
883
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
884
|
-
default:
|
|
885
|
-
const parsedBody = parsedOutput.body;
|
|
886
|
-
return throwDefaultError({
|
|
887
|
-
output,
|
|
888
|
-
parsedBody,
|
|
889
|
-
errorCode,
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
894
|
-
if (output.statusCode >= 300) {
|
|
895
|
-
return de_TagResourceCommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
const data = await parseBody(output.body, context);
|
|
898
|
-
let contents = {};
|
|
899
|
-
contents = (0, smithy_client_1._json)(data);
|
|
900
|
-
const response = {
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
...contents,
|
|
903
|
-
};
|
|
904
|
-
return response;
|
|
905
|
-
};
|
|
906
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
907
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
908
|
-
const parsedOutput = {
|
|
909
|
-
...output,
|
|
910
|
-
body: await parseErrorBody(output.body, context),
|
|
911
|
-
};
|
|
912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
|
-
switch (errorCode) {
|
|
914
|
-
case "ClusterNotFoundFault":
|
|
915
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
916
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
917
|
-
case "InvalidARNFault":
|
|
918
|
-
case "com.amazonaws.dax#InvalidARNFault":
|
|
919
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
920
|
-
case "InvalidClusterStateFault":
|
|
921
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
922
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
923
|
-
case "InvalidParameterCombinationException":
|
|
924
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
925
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
926
|
-
case "InvalidParameterValueException":
|
|
927
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
928
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
930
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
931
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
932
|
-
case "TagQuotaPerResourceExceeded":
|
|
933
|
-
case "com.amazonaws.dax#TagQuotaPerResourceExceeded":
|
|
934
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
935
|
-
default:
|
|
936
|
-
const parsedBody = parsedOutput.body;
|
|
937
|
-
return throwDefaultError({
|
|
938
|
-
output,
|
|
939
|
-
parsedBody,
|
|
940
|
-
errorCode,
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
945
|
-
if (output.statusCode >= 300) {
|
|
946
|
-
return de_UntagResourceCommandError(output, context);
|
|
947
|
-
}
|
|
948
|
-
const data = await parseBody(output.body, context);
|
|
949
|
-
let contents = {};
|
|
950
|
-
contents = (0, smithy_client_1._json)(data);
|
|
951
|
-
const response = {
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
...contents,
|
|
954
|
-
};
|
|
955
|
-
return response;
|
|
956
|
-
};
|
|
957
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
958
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
959
|
-
const parsedOutput = {
|
|
960
|
-
...output,
|
|
961
|
-
body: await parseErrorBody(output.body, context),
|
|
962
|
-
};
|
|
963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
|
-
switch (errorCode) {
|
|
965
|
-
case "ClusterNotFoundFault":
|
|
966
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
967
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
968
|
-
case "InvalidARNFault":
|
|
969
|
-
case "com.amazonaws.dax#InvalidARNFault":
|
|
970
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
971
|
-
case "InvalidClusterStateFault":
|
|
972
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
973
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
974
|
-
case "InvalidParameterCombinationException":
|
|
975
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
976
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
977
|
-
case "InvalidParameterValueException":
|
|
978
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
979
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
981
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
982
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
983
|
-
case "TagNotFoundFault":
|
|
984
|
-
case "com.amazonaws.dax#TagNotFoundFault":
|
|
985
|
-
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
986
|
-
default:
|
|
987
|
-
const parsedBody = parsedOutput.body;
|
|
988
|
-
return throwDefaultError({
|
|
989
|
-
output,
|
|
990
|
-
parsedBody,
|
|
991
|
-
errorCode,
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
|
-
};
|
|
995
|
-
const de_UpdateClusterCommand = async (output, context) => {
|
|
996
|
-
if (output.statusCode >= 300) {
|
|
997
|
-
return de_UpdateClusterCommandError(output, context);
|
|
998
|
-
}
|
|
999
|
-
const data = await parseBody(output.body, context);
|
|
1000
|
-
let contents = {};
|
|
1001
|
-
contents = de_UpdateClusterResponse(data, context);
|
|
1002
|
-
const response = {
|
|
1003
|
-
$metadata: deserializeMetadata(output),
|
|
1004
|
-
...contents,
|
|
1005
|
-
};
|
|
1006
|
-
return response;
|
|
1007
|
-
};
|
|
1008
|
-
exports.de_UpdateClusterCommand = de_UpdateClusterCommand;
|
|
1009
|
-
const de_UpdateClusterCommandError = async (output, context) => {
|
|
1010
|
-
const parsedOutput = {
|
|
1011
|
-
...output,
|
|
1012
|
-
body: await parseErrorBody(output.body, context),
|
|
1013
|
-
};
|
|
1014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
-
switch (errorCode) {
|
|
1016
|
-
case "ClusterNotFoundFault":
|
|
1017
|
-
case "com.amazonaws.dax#ClusterNotFoundFault":
|
|
1018
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1019
|
-
case "InvalidClusterStateFault":
|
|
1020
|
-
case "com.amazonaws.dax#InvalidClusterStateFault":
|
|
1021
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1022
|
-
case "InvalidParameterCombinationException":
|
|
1023
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1024
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "InvalidParameterGroupStateFault":
|
|
1026
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1027
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1028
|
-
case "InvalidParameterValueException":
|
|
1029
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1030
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ParameterGroupNotFoundFault":
|
|
1032
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1033
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1034
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1035
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1036
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1037
|
-
default:
|
|
1038
|
-
const parsedBody = parsedOutput.body;
|
|
1039
|
-
return throwDefaultError({
|
|
1040
|
-
output,
|
|
1041
|
-
parsedBody,
|
|
1042
|
-
errorCode,
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
const de_UpdateParameterGroupCommand = async (output, context) => {
|
|
1047
|
-
if (output.statusCode >= 300) {
|
|
1048
|
-
return de_UpdateParameterGroupCommandError(output, context);
|
|
1049
|
-
}
|
|
1050
|
-
const data = await parseBody(output.body, context);
|
|
1051
|
-
let contents = {};
|
|
1052
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1053
|
-
const response = {
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
...contents,
|
|
1056
|
-
};
|
|
1057
|
-
return response;
|
|
1058
|
-
};
|
|
1059
|
-
exports.de_UpdateParameterGroupCommand = de_UpdateParameterGroupCommand;
|
|
1060
|
-
const de_UpdateParameterGroupCommandError = async (output, context) => {
|
|
1061
|
-
const parsedOutput = {
|
|
1062
|
-
...output,
|
|
1063
|
-
body: await parseErrorBody(output.body, context),
|
|
1064
|
-
};
|
|
1065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
-
switch (errorCode) {
|
|
1067
|
-
case "InvalidParameterCombinationException":
|
|
1068
|
-
case "com.amazonaws.dax#InvalidParameterCombinationException":
|
|
1069
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "InvalidParameterGroupStateFault":
|
|
1071
|
-
case "com.amazonaws.dax#InvalidParameterGroupStateFault":
|
|
1072
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1073
|
-
case "InvalidParameterValueException":
|
|
1074
|
-
case "com.amazonaws.dax#InvalidParameterValueException":
|
|
1075
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ParameterGroupNotFoundFault":
|
|
1077
|
-
case "com.amazonaws.dax#ParameterGroupNotFoundFault":
|
|
1078
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1079
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1080
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1081
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode,
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
const de_UpdateSubnetGroupCommand = async (output, context) => {
|
|
1092
|
-
if (output.statusCode >= 300) {
|
|
1093
|
-
return de_UpdateSubnetGroupCommandError(output, context);
|
|
1094
|
-
}
|
|
1095
|
-
const data = await parseBody(output.body, context);
|
|
1096
|
-
let contents = {};
|
|
1097
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1098
|
-
const response = {
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
...contents,
|
|
1101
|
-
};
|
|
1102
|
-
return response;
|
|
1103
|
-
};
|
|
1104
|
-
exports.de_UpdateSubnetGroupCommand = de_UpdateSubnetGroupCommand;
|
|
1105
|
-
const de_UpdateSubnetGroupCommandError = async (output, context) => {
|
|
1106
|
-
const parsedOutput = {
|
|
1107
|
-
...output,
|
|
1108
|
-
body: await parseErrorBody(output.body, context),
|
|
1109
|
-
};
|
|
1110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
-
switch (errorCode) {
|
|
1112
|
-
case "InvalidSubnet":
|
|
1113
|
-
case "com.amazonaws.dax#InvalidSubnet":
|
|
1114
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1115
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1116
|
-
case "com.amazonaws.dax#ServiceLinkedRoleNotFoundFault":
|
|
1117
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1118
|
-
case "SubnetGroupNotFoundFault":
|
|
1119
|
-
case "com.amazonaws.dax#SubnetGroupNotFoundFault":
|
|
1120
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1121
|
-
case "SubnetInUse":
|
|
1122
|
-
case "com.amazonaws.dax#SubnetInUse":
|
|
1123
|
-
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
1124
|
-
case "SubnetQuotaExceededFault":
|
|
1125
|
-
case "com.amazonaws.dax#SubnetQuotaExceededFault":
|
|
1126
|
-
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode,
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
|
-
const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
1137
|
-
const body = parsedOutput.body;
|
|
1138
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1139
|
-
const exception = new models_0_1.ClusterAlreadyExistsFault({
|
|
1140
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1141
|
-
...deserialized,
|
|
1142
|
-
});
|
|
1143
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1144
|
-
};
|
|
1145
|
-
const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
|
|
1146
|
-
const body = parsedOutput.body;
|
|
1147
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1148
|
-
const exception = new models_0_1.ClusterNotFoundFault({
|
|
1149
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1150
|
-
...deserialized,
|
|
1151
|
-
});
|
|
1152
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1153
|
-
};
|
|
1154
|
-
const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
1155
|
-
const body = parsedOutput.body;
|
|
1156
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1157
|
-
const exception = new models_0_1.ClusterQuotaForCustomerExceededFault({
|
|
1158
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
-
...deserialized,
|
|
1160
|
-
});
|
|
1161
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1162
|
-
};
|
|
1163
|
-
const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) => {
|
|
1164
|
-
const body = parsedOutput.body;
|
|
1165
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1166
|
-
const exception = new models_0_1.InsufficientClusterCapacityFault({
|
|
1167
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1168
|
-
...deserialized,
|
|
1169
|
-
});
|
|
1170
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1171
|
-
};
|
|
1172
|
-
const de_InvalidARNFaultRes = async (parsedOutput, context) => {
|
|
1173
|
-
const body = parsedOutput.body;
|
|
1174
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1175
|
-
const exception = new models_0_1.InvalidARNFault({
|
|
1176
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1177
|
-
...deserialized,
|
|
1178
|
-
});
|
|
1179
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1180
|
-
};
|
|
1181
|
-
const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
|
|
1182
|
-
const body = parsedOutput.body;
|
|
1183
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1184
|
-
const exception = new models_0_1.InvalidClusterStateFault({
|
|
1185
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1186
|
-
...deserialized,
|
|
1187
|
-
});
|
|
1188
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1189
|
-
};
|
|
1190
|
-
const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
|
|
1191
|
-
const body = parsedOutput.body;
|
|
1192
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1193
|
-
const exception = new models_0_1.InvalidParameterCombinationException({
|
|
1194
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1195
|
-
...deserialized,
|
|
1196
|
-
});
|
|
1197
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1198
|
-
};
|
|
1199
|
-
const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
|
|
1200
|
-
const body = parsedOutput.body;
|
|
1201
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1202
|
-
const exception = new models_0_1.InvalidParameterGroupStateFault({
|
|
1203
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
-
...deserialized,
|
|
1205
|
-
});
|
|
1206
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1207
|
-
};
|
|
1208
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1209
|
-
const body = parsedOutput.body;
|
|
1210
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1211
|
-
const exception = new models_0_1.InvalidParameterValueException({
|
|
1212
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1213
|
-
...deserialized,
|
|
1214
|
-
});
|
|
1215
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1216
|
-
};
|
|
1217
|
-
const de_InvalidSubnetRes = async (parsedOutput, context) => {
|
|
1218
|
-
const body = parsedOutput.body;
|
|
1219
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1220
|
-
const exception = new models_0_1.InvalidSubnet({
|
|
1221
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
|
-
...deserialized,
|
|
1223
|
-
});
|
|
1224
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1225
|
-
};
|
|
1226
|
-
const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
|
|
1227
|
-
const body = parsedOutput.body;
|
|
1228
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1229
|
-
const exception = new models_0_1.InvalidVPCNetworkStateFault({
|
|
1230
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1231
|
-
...deserialized,
|
|
1232
|
-
});
|
|
1233
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1234
|
-
};
|
|
1235
|
-
const de_NodeNotFoundFaultRes = async (parsedOutput, context) => {
|
|
1236
|
-
const body = parsedOutput.body;
|
|
1237
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1238
|
-
const exception = new models_0_1.NodeNotFoundFault({
|
|
1239
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1240
|
-
...deserialized,
|
|
1241
|
-
});
|
|
1242
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1243
|
-
};
|
|
1244
|
-
const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
|
|
1245
|
-
const body = parsedOutput.body;
|
|
1246
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1247
|
-
const exception = new models_0_1.NodeQuotaForClusterExceededFault({
|
|
1248
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
|
-
...deserialized,
|
|
1250
|
-
});
|
|
1251
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1252
|
-
};
|
|
1253
|
-
const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
1254
|
-
const body = parsedOutput.body;
|
|
1255
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1256
|
-
const exception = new models_0_1.NodeQuotaForCustomerExceededFault({
|
|
1257
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1258
|
-
...deserialized,
|
|
1259
|
-
});
|
|
1260
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1261
|
-
};
|
|
1262
|
-
const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
1263
|
-
const body = parsedOutput.body;
|
|
1264
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1265
|
-
const exception = new models_0_1.ParameterGroupAlreadyExistsFault({
|
|
1266
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
|
-
...deserialized,
|
|
1268
|
-
});
|
|
1269
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1270
|
-
};
|
|
1271
|
-
const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
|
|
1272
|
-
const body = parsedOutput.body;
|
|
1273
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1274
|
-
const exception = new models_0_1.ParameterGroupNotFoundFault({
|
|
1275
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1276
|
-
...deserialized,
|
|
1277
|
-
});
|
|
1278
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1279
|
-
};
|
|
1280
|
-
const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
1281
|
-
const body = parsedOutput.body;
|
|
1282
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1283
|
-
const exception = new models_0_1.ParameterGroupQuotaExceededFault({
|
|
1284
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1285
|
-
...deserialized,
|
|
1286
|
-
});
|
|
1287
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1288
|
-
};
|
|
1289
|
-
const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
|
|
1290
|
-
const body = parsedOutput.body;
|
|
1291
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1292
|
-
const exception = new models_0_1.ServiceLinkedRoleNotFoundFault({
|
|
1293
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1294
|
-
...deserialized,
|
|
1295
|
-
});
|
|
1296
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1297
|
-
};
|
|
1298
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1299
|
-
const body = parsedOutput.body;
|
|
1300
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1301
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1302
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
|
-
...deserialized,
|
|
1304
|
-
});
|
|
1305
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1306
|
-
};
|
|
1307
|
-
const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
1308
|
-
const body = parsedOutput.body;
|
|
1309
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1310
|
-
const exception = new models_0_1.SubnetGroupAlreadyExistsFault({
|
|
1311
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1312
|
-
...deserialized,
|
|
1313
|
-
});
|
|
1314
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1315
|
-
};
|
|
1316
|
-
const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
|
|
1317
|
-
const body = parsedOutput.body;
|
|
1318
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1319
|
-
const exception = new models_0_1.SubnetGroupInUseFault({
|
|
1320
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1321
|
-
...deserialized,
|
|
1322
|
-
});
|
|
1323
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1324
|
-
};
|
|
1325
|
-
const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
|
|
1326
|
-
const body = parsedOutput.body;
|
|
1327
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1328
|
-
const exception = new models_0_1.SubnetGroupNotFoundFault({
|
|
1329
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1330
|
-
...deserialized,
|
|
1331
|
-
});
|
|
1332
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1333
|
-
};
|
|
1334
|
-
const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
1335
|
-
const body = parsedOutput.body;
|
|
1336
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1337
|
-
const exception = new models_0_1.SubnetGroupQuotaExceededFault({
|
|
1338
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1339
|
-
...deserialized,
|
|
1340
|
-
});
|
|
1341
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1342
|
-
};
|
|
1343
|
-
const de_SubnetInUseRes = async (parsedOutput, context) => {
|
|
1344
|
-
const body = parsedOutput.body;
|
|
1345
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1346
|
-
const exception = new models_0_1.SubnetInUse({
|
|
1347
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1348
|
-
...deserialized,
|
|
1349
|
-
});
|
|
1350
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1351
|
-
};
|
|
1352
|
-
const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
1353
|
-
const body = parsedOutput.body;
|
|
1354
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1355
|
-
const exception = new models_0_1.SubnetQuotaExceededFault({
|
|
1356
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1357
|
-
...deserialized,
|
|
1358
|
-
});
|
|
1359
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1360
|
-
};
|
|
1361
|
-
const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
|
|
1362
|
-
const body = parsedOutput.body;
|
|
1363
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1364
|
-
const exception = new models_0_1.TagNotFoundFault({
|
|
1365
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
|
-
...deserialized,
|
|
1367
|
-
});
|
|
1368
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1369
|
-
};
|
|
1370
|
-
const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
|
|
1371
|
-
const body = parsedOutput.body;
|
|
1372
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1373
|
-
const exception = new models_0_1.TagQuotaPerResourceExceeded({
|
|
1374
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1375
|
-
...deserialized,
|
|
1376
|
-
});
|
|
1377
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1378
|
-
};
|
|
1379
|
-
const se_DescribeEventsRequest = (input, context) => {
|
|
1380
|
-
return (0, smithy_client_1.take)(input, {
|
|
1381
|
-
Duration: [],
|
|
1382
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1383
|
-
MaxResults: [],
|
|
1384
|
-
NextToken: [],
|
|
1385
|
-
SourceName: [],
|
|
1386
|
-
SourceType: [],
|
|
1387
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1388
|
-
});
|
|
1389
|
-
};
|
|
1390
|
-
const de_Cluster = (output, context) => {
|
|
1391
|
-
return (0, smithy_client_1.take)(output, {
|
|
1392
|
-
ActiveNodes: smithy_client_1.expectInt32,
|
|
1393
|
-
ClusterArn: smithy_client_1.expectString,
|
|
1394
|
-
ClusterDiscoveryEndpoint: smithy_client_1._json,
|
|
1395
|
-
ClusterEndpointEncryptionType: smithy_client_1.expectString,
|
|
1396
|
-
ClusterName: smithy_client_1.expectString,
|
|
1397
|
-
Description: smithy_client_1.expectString,
|
|
1398
|
-
IamRoleArn: smithy_client_1.expectString,
|
|
1399
|
-
NodeIdsToRemove: smithy_client_1._json,
|
|
1400
|
-
NodeType: smithy_client_1.expectString,
|
|
1401
|
-
Nodes: (_) => de_NodeList(_, context),
|
|
1402
|
-
NotificationConfiguration: smithy_client_1._json,
|
|
1403
|
-
ParameterGroup: smithy_client_1._json,
|
|
1404
|
-
PreferredMaintenanceWindow: smithy_client_1.expectString,
|
|
1405
|
-
SSEDescription: smithy_client_1._json,
|
|
1406
|
-
SecurityGroups: smithy_client_1._json,
|
|
1407
|
-
Status: smithy_client_1.expectString,
|
|
1408
|
-
SubnetGroup: smithy_client_1.expectString,
|
|
1409
|
-
TotalNodes: smithy_client_1.expectInt32,
|
|
1410
|
-
});
|
|
1411
|
-
};
|
|
1412
|
-
const de_ClusterList = (output, context) => {
|
|
1413
|
-
const retVal = (output || [])
|
|
1414
|
-
.filter((e) => e != null)
|
|
1415
|
-
.map((entry) => {
|
|
1416
|
-
return de_Cluster(entry, context);
|
|
1417
|
-
});
|
|
1418
|
-
return retVal;
|
|
1419
|
-
};
|
|
1420
|
-
const de_CreateClusterResponse = (output, context) => {
|
|
1421
|
-
return (0, smithy_client_1.take)(output, {
|
|
1422
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
1423
|
-
});
|
|
1424
|
-
};
|
|
1425
|
-
const de_DecreaseReplicationFactorResponse = (output, context) => {
|
|
1426
|
-
return (0, smithy_client_1.take)(output, {
|
|
1427
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
1428
|
-
});
|
|
1429
|
-
};
|
|
1430
|
-
const de_DeleteClusterResponse = (output, context) => {
|
|
1431
|
-
return (0, smithy_client_1.take)(output, {
|
|
1432
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
1433
|
-
});
|
|
1434
|
-
};
|
|
1435
|
-
const de_DescribeClustersResponse = (output, context) => {
|
|
1436
|
-
return (0, smithy_client_1.take)(output, {
|
|
1437
|
-
Clusters: (_) => de_ClusterList(_, context),
|
|
1438
|
-
NextToken: smithy_client_1.expectString,
|
|
1439
|
-
});
|
|
1440
|
-
};
|
|
1441
|
-
const de_DescribeEventsResponse = (output, context) => {
|
|
1442
|
-
return (0, smithy_client_1.take)(output, {
|
|
1443
|
-
Events: (_) => de_EventList(_, context),
|
|
1444
|
-
NextToken: smithy_client_1.expectString,
|
|
1445
|
-
});
|
|
1446
|
-
};
|
|
1447
|
-
const de_Event = (output, context) => {
|
|
1448
|
-
return (0, smithy_client_1.take)(output, {
|
|
1449
|
-
Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1450
|
-
Message: smithy_client_1.expectString,
|
|
1451
|
-
SourceName: smithy_client_1.expectString,
|
|
1452
|
-
SourceType: smithy_client_1.expectString,
|
|
1453
|
-
});
|
|
1454
|
-
};
|
|
1455
|
-
const de_EventList = (output, context) => {
|
|
1456
|
-
const retVal = (output || [])
|
|
1457
|
-
.filter((e) => e != null)
|
|
1458
|
-
.map((entry) => {
|
|
1459
|
-
return de_Event(entry, context);
|
|
1460
|
-
});
|
|
1461
|
-
return retVal;
|
|
1462
|
-
};
|
|
1463
|
-
const de_IncreaseReplicationFactorResponse = (output, context) => {
|
|
1464
|
-
return (0, smithy_client_1.take)(output, {
|
|
1465
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
1466
|
-
});
|
|
1467
|
-
};
|
|
1468
|
-
const de_Node = (output, context) => {
|
|
1469
|
-
return (0, smithy_client_1.take)(output, {
|
|
1470
|
-
AvailabilityZone: smithy_client_1.expectString,
|
|
1471
|
-
Endpoint: smithy_client_1._json,
|
|
1472
|
-
NodeCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1473
|
-
NodeId: smithy_client_1.expectString,
|
|
1474
|
-
NodeStatus: smithy_client_1.expectString,
|
|
1475
|
-
ParameterGroupStatus: smithy_client_1.expectString,
|
|
1476
|
-
});
|
|
1477
|
-
};
|
|
1478
|
-
const de_NodeList = (output, context) => {
|
|
1479
|
-
const retVal = (output || [])
|
|
1480
|
-
.filter((e) => e != null)
|
|
1481
|
-
.map((entry) => {
|
|
1482
|
-
return de_Node(entry, context);
|
|
1483
|
-
});
|
|
1484
|
-
return retVal;
|
|
1485
|
-
};
|
|
1486
|
-
const de_RebootNodeResponse = (output, context) => {
|
|
1487
|
-
return (0, smithy_client_1.take)(output, {
|
|
1488
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
1489
|
-
});
|
|
1490
|
-
};
|
|
1491
|
-
const de_UpdateClusterResponse = (output, context) => {
|
|
1492
|
-
return (0, smithy_client_1.take)(output, {
|
|
1493
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
1494
|
-
});
|
|
1495
|
-
};
|
|
1496
|
-
const deserializeMetadata = (output) => ({
|
|
1497
|
-
httpStatusCode: output.statusCode,
|
|
1498
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1499
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1500
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1501
|
-
});
|
|
1502
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1503
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(DAXServiceException_1.DAXServiceException);
|
|
1504
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1505
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1506
|
-
const contents = {
|
|
1507
|
-
protocol,
|
|
1508
|
-
hostname,
|
|
1509
|
-
port,
|
|
1510
|
-
method: "POST",
|
|
1511
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1512
|
-
headers,
|
|
1513
|
-
};
|
|
1514
|
-
if (resolvedHostname !== undefined) {
|
|
1515
|
-
contents.hostname = resolvedHostname;
|
|
1516
|
-
}
|
|
1517
|
-
if (body !== undefined) {
|
|
1518
|
-
contents.body = body;
|
|
1519
|
-
}
|
|
1520
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
1521
|
-
};
|
|
1522
|
-
function sharedHeaders(operation) {
|
|
1523
|
-
return {
|
|
1524
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1525
|
-
"x-amz-target": `AmazonDAXV3.${operation}`,
|
|
1526
|
-
};
|
|
1527
|
-
}
|
|
1528
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1529
|
-
if (encoded.length) {
|
|
1530
|
-
return JSON.parse(encoded);
|
|
1531
|
-
}
|
|
1532
|
-
return {};
|
|
1533
|
-
});
|
|
1534
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1535
|
-
const value = await parseBody(errorBody, context);
|
|
1536
|
-
value.message = value.message ?? value.Message;
|
|
1537
|
-
return value;
|
|
1538
|
-
};
|
|
1539
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1540
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1541
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1542
|
-
let cleanValue = rawValue;
|
|
1543
|
-
if (typeof cleanValue === "number") {
|
|
1544
|
-
cleanValue = cleanValue.toString();
|
|
1545
|
-
}
|
|
1546
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1547
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1548
|
-
}
|
|
1549
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1550
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1551
|
-
}
|
|
1552
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1553
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1554
|
-
}
|
|
1555
|
-
return cleanValue;
|
|
1556
|
-
};
|
|
1557
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1558
|
-
if (headerKey !== undefined) {
|
|
1559
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1560
|
-
}
|
|
1561
|
-
if (data.code !== undefined) {
|
|
1562
|
-
return sanitizeErrorCode(data.code);
|
|
1563
|
-
}
|
|
1564
|
-
if (data["__type"] !== undefined) {
|
|
1565
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1566
|
-
}
|
|
1567
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|