@aws-sdk/client-memorydb 3.490.0 → 3.495.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/MemoryDB.js +1 -87
- package/dist-cjs/MemoryDBClient.js +1 -43
- package/dist-cjs/commands/BatchUpdateClusterCommand.js +1 -28
- package/dist-cjs/commands/CopySnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateACLCommand.js +1 -28
- package/dist-cjs/commands/CreateClusterCommand.js +1 -28
- package/dist-cjs/commands/CreateParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateUserCommand.js +1 -28
- package/dist-cjs/commands/DeleteACLCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteUserCommand.js +1 -28
- package/dist-cjs/commands/DescribeACLsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClustersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEngineVersionsCommand.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/DescribeReservedNodesCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedNodesOfferingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeServiceUpdatesCommand.js +1 -28
- package/dist-cjs/commands/DescribeSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSubnetGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeUsersCommand.js +1 -28
- package/dist-cjs/commands/FailoverShardCommand.js +1 -28
- package/dist-cjs/commands/ListAllowedNodeTypeUpdatesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsCommand.js +1 -28
- package/dist-cjs/commands/PurchaseReservedNodesOfferingCommand.js +1 -28
- package/dist-cjs/commands/ResetParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateACLCommand.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/UpdateUserCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -41
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +4877 -11
- package/dist-cjs/models/MemoryDBServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -728
- package/dist-cjs/pagination/DescribeACLsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClustersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEngineVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEventsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeParameterGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedNodesOfferingsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeServiceUpdatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSubnetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeUsersPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -16
- package/dist-cjs/protocols/Aws_json1_1.js +1 -2934
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2934 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_DeleteSnapshotCommand = exports.de_DeleteParameterGroupCommand = exports.de_DeleteClusterCommand = exports.de_DeleteACLCommand = exports.de_CreateUserCommand = exports.de_CreateSubnetGroupCommand = exports.de_CreateSnapshotCommand = exports.de_CreateParameterGroupCommand = exports.de_CreateClusterCommand = exports.de_CreateACLCommand = exports.de_CopySnapshotCommand = exports.de_BatchUpdateClusterCommand = exports.se_UpdateUserCommand = exports.se_UpdateSubnetGroupCommand = exports.se_UpdateParameterGroupCommand = exports.se_UpdateClusterCommand = exports.se_UpdateACLCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ResetParameterGroupCommand = exports.se_PurchaseReservedNodesOfferingCommand = exports.se_ListTagsCommand = exports.se_ListAllowedNodeTypeUpdatesCommand = exports.se_FailoverShardCommand = exports.se_DescribeUsersCommand = exports.se_DescribeSubnetGroupsCommand = exports.se_DescribeSnapshotsCommand = exports.se_DescribeServiceUpdatesCommand = exports.se_DescribeReservedNodesOfferingsCommand = exports.se_DescribeReservedNodesCommand = exports.se_DescribeParametersCommand = exports.se_DescribeParameterGroupsCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEngineVersionsCommand = exports.se_DescribeClustersCommand = exports.se_DescribeACLsCommand = exports.se_DeleteUserCommand = exports.se_DeleteSubnetGroupCommand = exports.se_DeleteSnapshotCommand = exports.se_DeleteParameterGroupCommand = exports.se_DeleteClusterCommand = exports.se_DeleteACLCommand = exports.se_CreateUserCommand = exports.se_CreateSubnetGroupCommand = exports.se_CreateSnapshotCommand = exports.se_CreateParameterGroupCommand = exports.se_CreateClusterCommand = exports.se_CreateACLCommand = exports.se_CopySnapshotCommand = exports.se_BatchUpdateClusterCommand = void 0;
|
|
4
|
-
exports.de_UpdateUserCommand = exports.de_UpdateSubnetGroupCommand = exports.de_UpdateParameterGroupCommand = exports.de_UpdateClusterCommand = exports.de_UpdateACLCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ResetParameterGroupCommand = exports.de_PurchaseReservedNodesOfferingCommand = exports.de_ListTagsCommand = exports.de_ListAllowedNodeTypeUpdatesCommand = exports.de_FailoverShardCommand = exports.de_DescribeUsersCommand = exports.de_DescribeSubnetGroupsCommand = exports.de_DescribeSnapshotsCommand = exports.de_DescribeServiceUpdatesCommand = exports.de_DescribeReservedNodesOfferingsCommand = exports.de_DescribeReservedNodesCommand = exports.de_DescribeParametersCommand = exports.de_DescribeParameterGroupsCommand = exports.de_DescribeEventsCommand = exports.de_DescribeEngineVersionsCommand = exports.de_DescribeClustersCommand = exports.de_DescribeACLsCommand = exports.de_DeleteUserCommand = exports.de_DeleteSubnetGroupCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const MemoryDBServiceException_1 = require("../models/MemoryDBServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_BatchUpdateClusterCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("BatchUpdateCluster");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_BatchUpdateClusterCommand = se_BatchUpdateClusterCommand;
|
|
16
|
-
const se_CopySnapshotCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("CopySnapshot");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_CopySnapshotCommand = se_CopySnapshotCommand;
|
|
23
|
-
const se_CreateACLCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("CreateACL");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_CreateACLCommand = se_CreateACLCommand;
|
|
30
|
-
const se_CreateClusterCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateCluster");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_CreateClusterCommand = se_CreateClusterCommand;
|
|
37
|
-
const se_CreateParameterGroupCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateParameterGroup");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateParameterGroupCommand = se_CreateParameterGroupCommand;
|
|
44
|
-
const se_CreateSnapshotCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("CreateSnapshot");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
|
|
51
|
-
const se_CreateSubnetGroupCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("CreateSubnetGroup");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_CreateSubnetGroupCommand = se_CreateSubnetGroupCommand;
|
|
58
|
-
const se_CreateUserCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("CreateUser");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
65
|
-
const se_DeleteACLCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("DeleteACL");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_DeleteACLCommand = se_DeleteACLCommand;
|
|
72
|
-
const se_DeleteClusterCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DeleteCluster");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
|
|
79
|
-
const se_DeleteParameterGroupCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DeleteParameterGroup");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_DeleteParameterGroupCommand = se_DeleteParameterGroupCommand;
|
|
86
|
-
const se_DeleteSnapshotCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("DeleteSnapshot");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
|
|
93
|
-
const se_DeleteSubnetGroupCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("DeleteSubnetGroup");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_DeleteSubnetGroupCommand = se_DeleteSubnetGroupCommand;
|
|
100
|
-
const se_DeleteUserCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("DeleteUser");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
107
|
-
const se_DescribeACLsCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("DescribeACLs");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
exports.se_DescribeACLsCommand = se_DescribeACLsCommand;
|
|
114
|
-
const se_DescribeClustersCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DescribeClusters");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
exports.se_DescribeClustersCommand = se_DescribeClustersCommand;
|
|
121
|
-
const se_DescribeEngineVersionsCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("DescribeEngineVersions");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
exports.se_DescribeEngineVersionsCommand = se_DescribeEngineVersionsCommand;
|
|
128
|
-
const se_DescribeEventsCommand = async (input, context) => {
|
|
129
|
-
const headers = sharedHeaders("DescribeEvents");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
132
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
|
-
};
|
|
134
|
-
exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
|
|
135
|
-
const se_DescribeParameterGroupsCommand = async (input, context) => {
|
|
136
|
-
const headers = sharedHeaders("DescribeParameterGroups");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
exports.se_DescribeParameterGroupsCommand = se_DescribeParameterGroupsCommand;
|
|
142
|
-
const se_DescribeParametersCommand = async (input, context) => {
|
|
143
|
-
const headers = sharedHeaders("DescribeParameters");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
-
};
|
|
148
|
-
exports.se_DescribeParametersCommand = se_DescribeParametersCommand;
|
|
149
|
-
const se_DescribeReservedNodesCommand = async (input, context) => {
|
|
150
|
-
const headers = sharedHeaders("DescribeReservedNodes");
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
exports.se_DescribeReservedNodesCommand = se_DescribeReservedNodesCommand;
|
|
156
|
-
const se_DescribeReservedNodesOfferingsCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("DescribeReservedNodesOfferings");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
exports.se_DescribeReservedNodesOfferingsCommand = se_DescribeReservedNodesOfferingsCommand;
|
|
163
|
-
const se_DescribeServiceUpdatesCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("DescribeServiceUpdates");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
exports.se_DescribeServiceUpdatesCommand = se_DescribeServiceUpdatesCommand;
|
|
170
|
-
const se_DescribeSnapshotsCommand = async (input, context) => {
|
|
171
|
-
const headers = sharedHeaders("DescribeSnapshots");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
exports.se_DescribeSnapshotsCommand = se_DescribeSnapshotsCommand;
|
|
177
|
-
const se_DescribeSubnetGroupsCommand = async (input, context) => {
|
|
178
|
-
const headers = sharedHeaders("DescribeSubnetGroups");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
-
};
|
|
183
|
-
exports.se_DescribeSubnetGroupsCommand = se_DescribeSubnetGroupsCommand;
|
|
184
|
-
const se_DescribeUsersCommand = async (input, context) => {
|
|
185
|
-
const headers = sharedHeaders("DescribeUsers");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
-
};
|
|
190
|
-
exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
|
|
191
|
-
const se_FailoverShardCommand = async (input, context) => {
|
|
192
|
-
const headers = sharedHeaders("FailoverShard");
|
|
193
|
-
let body;
|
|
194
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
-
};
|
|
197
|
-
exports.se_FailoverShardCommand = se_FailoverShardCommand;
|
|
198
|
-
const se_ListAllowedNodeTypeUpdatesCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListAllowedNodeTypeUpdates");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
exports.se_ListAllowedNodeTypeUpdatesCommand = se_ListAllowedNodeTypeUpdatesCommand;
|
|
205
|
-
const se_ListTagsCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("ListTags");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
212
|
-
const se_PurchaseReservedNodesOfferingCommand = async (input, context) => {
|
|
213
|
-
const headers = sharedHeaders("PurchaseReservedNodesOffering");
|
|
214
|
-
let body;
|
|
215
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
exports.se_PurchaseReservedNodesOfferingCommand = se_PurchaseReservedNodesOfferingCommand;
|
|
219
|
-
const se_ResetParameterGroupCommand = async (input, context) => {
|
|
220
|
-
const headers = sharedHeaders("ResetParameterGroup");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
exports.se_ResetParameterGroupCommand = se_ResetParameterGroupCommand;
|
|
226
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
227
|
-
const headers = sharedHeaders("TagResource");
|
|
228
|
-
let body;
|
|
229
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
|
-
};
|
|
232
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
233
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
234
|
-
const headers = sharedHeaders("UntagResource");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
240
|
-
const se_UpdateACLCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("UpdateACL");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
exports.se_UpdateACLCommand = se_UpdateACLCommand;
|
|
247
|
-
const se_UpdateClusterCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("UpdateCluster");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
exports.se_UpdateClusterCommand = se_UpdateClusterCommand;
|
|
254
|
-
const se_UpdateParameterGroupCommand = async (input, context) => {
|
|
255
|
-
const headers = sharedHeaders("UpdateParameterGroup");
|
|
256
|
-
let body;
|
|
257
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
|
-
};
|
|
260
|
-
exports.se_UpdateParameterGroupCommand = se_UpdateParameterGroupCommand;
|
|
261
|
-
const se_UpdateSubnetGroupCommand = async (input, context) => {
|
|
262
|
-
const headers = sharedHeaders("UpdateSubnetGroup");
|
|
263
|
-
let body;
|
|
264
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
265
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
|
-
};
|
|
267
|
-
exports.se_UpdateSubnetGroupCommand = se_UpdateSubnetGroupCommand;
|
|
268
|
-
const se_UpdateUserCommand = async (input, context) => {
|
|
269
|
-
const headers = sharedHeaders("UpdateUser");
|
|
270
|
-
let body;
|
|
271
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
272
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
|
-
};
|
|
274
|
-
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
275
|
-
const de_BatchUpdateClusterCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode >= 300) {
|
|
277
|
-
return de_BatchUpdateClusterCommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const data = await parseBody(output.body, context);
|
|
280
|
-
let contents = {};
|
|
281
|
-
contents = de_BatchUpdateClusterResponse(data, context);
|
|
282
|
-
const response = {
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
...contents,
|
|
285
|
-
};
|
|
286
|
-
return response;
|
|
287
|
-
};
|
|
288
|
-
exports.de_BatchUpdateClusterCommand = de_BatchUpdateClusterCommand;
|
|
289
|
-
const de_BatchUpdateClusterCommandError = async (output, context) => {
|
|
290
|
-
const parsedOutput = {
|
|
291
|
-
...output,
|
|
292
|
-
body: await parseErrorBody(output.body, context),
|
|
293
|
-
};
|
|
294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
295
|
-
switch (errorCode) {
|
|
296
|
-
case "InvalidParameterValueException":
|
|
297
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
298
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
299
|
-
case "ServiceUpdateNotFoundFault":
|
|
300
|
-
case "com.amazonaws.memorydb#ServiceUpdateNotFoundFault":
|
|
301
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
302
|
-
default:
|
|
303
|
-
const parsedBody = parsedOutput.body;
|
|
304
|
-
return throwDefaultError({
|
|
305
|
-
output,
|
|
306
|
-
parsedBody,
|
|
307
|
-
errorCode,
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
const de_CopySnapshotCommand = async (output, context) => {
|
|
312
|
-
if (output.statusCode >= 300) {
|
|
313
|
-
return de_CopySnapshotCommandError(output, context);
|
|
314
|
-
}
|
|
315
|
-
const data = await parseBody(output.body, context);
|
|
316
|
-
let contents = {};
|
|
317
|
-
contents = de_CopySnapshotResponse(data, context);
|
|
318
|
-
const response = {
|
|
319
|
-
$metadata: deserializeMetadata(output),
|
|
320
|
-
...contents,
|
|
321
|
-
};
|
|
322
|
-
return response;
|
|
323
|
-
};
|
|
324
|
-
exports.de_CopySnapshotCommand = de_CopySnapshotCommand;
|
|
325
|
-
const de_CopySnapshotCommandError = async (output, context) => {
|
|
326
|
-
const parsedOutput = {
|
|
327
|
-
...output,
|
|
328
|
-
body: await parseErrorBody(output.body, context),
|
|
329
|
-
};
|
|
330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
|
-
switch (errorCode) {
|
|
332
|
-
case "InvalidParameterCombinationException":
|
|
333
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
334
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
335
|
-
case "InvalidParameterValueException":
|
|
336
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
337
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
338
|
-
case "InvalidSnapshotStateFault":
|
|
339
|
-
case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
|
|
340
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
341
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
342
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
343
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
344
|
-
case "SnapshotAlreadyExistsFault":
|
|
345
|
-
case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
|
|
346
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
347
|
-
case "SnapshotNotFoundFault":
|
|
348
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
349
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
350
|
-
case "SnapshotQuotaExceededFault":
|
|
351
|
-
case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
|
|
352
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
353
|
-
case "TagQuotaPerResourceExceeded":
|
|
354
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
355
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
356
|
-
default:
|
|
357
|
-
const parsedBody = parsedOutput.body;
|
|
358
|
-
return throwDefaultError({
|
|
359
|
-
output,
|
|
360
|
-
parsedBody,
|
|
361
|
-
errorCode,
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
const de_CreateACLCommand = async (output, context) => {
|
|
366
|
-
if (output.statusCode >= 300) {
|
|
367
|
-
return de_CreateACLCommandError(output, context);
|
|
368
|
-
}
|
|
369
|
-
const data = await parseBody(output.body, context);
|
|
370
|
-
let contents = {};
|
|
371
|
-
contents = (0, smithy_client_1._json)(data);
|
|
372
|
-
const response = {
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
...contents,
|
|
375
|
-
};
|
|
376
|
-
return response;
|
|
377
|
-
};
|
|
378
|
-
exports.de_CreateACLCommand = de_CreateACLCommand;
|
|
379
|
-
const de_CreateACLCommandError = async (output, context) => {
|
|
380
|
-
const parsedOutput = {
|
|
381
|
-
...output,
|
|
382
|
-
body: await parseErrorBody(output.body, context),
|
|
383
|
-
};
|
|
384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
|
-
switch (errorCode) {
|
|
386
|
-
case "ACLAlreadyExistsFault":
|
|
387
|
-
case "com.amazonaws.memorydb#ACLAlreadyExistsFault":
|
|
388
|
-
throw await de_ACLAlreadyExistsFaultRes(parsedOutput, context);
|
|
389
|
-
case "ACLQuotaExceededFault":
|
|
390
|
-
case "com.amazonaws.memorydb#ACLQuotaExceededFault":
|
|
391
|
-
throw await de_ACLQuotaExceededFaultRes(parsedOutput, context);
|
|
392
|
-
case "DefaultUserRequired":
|
|
393
|
-
case "com.amazonaws.memorydb#DefaultUserRequired":
|
|
394
|
-
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
395
|
-
case "DuplicateUserNameFault":
|
|
396
|
-
case "com.amazonaws.memorydb#DuplicateUserNameFault":
|
|
397
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
398
|
-
case "InvalidParameterValueException":
|
|
399
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
400
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
401
|
-
case "TagQuotaPerResourceExceeded":
|
|
402
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
403
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
404
|
-
case "UserNotFoundFault":
|
|
405
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
406
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
407
|
-
default:
|
|
408
|
-
const parsedBody = parsedOutput.body;
|
|
409
|
-
return throwDefaultError({
|
|
410
|
-
output,
|
|
411
|
-
parsedBody,
|
|
412
|
-
errorCode,
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
const de_CreateClusterCommand = async (output, context) => {
|
|
417
|
-
if (output.statusCode >= 300) {
|
|
418
|
-
return de_CreateClusterCommandError(output, context);
|
|
419
|
-
}
|
|
420
|
-
const data = await parseBody(output.body, context);
|
|
421
|
-
let contents = {};
|
|
422
|
-
contents = de_CreateClusterResponse(data, context);
|
|
423
|
-
const response = {
|
|
424
|
-
$metadata: deserializeMetadata(output),
|
|
425
|
-
...contents,
|
|
426
|
-
};
|
|
427
|
-
return response;
|
|
428
|
-
};
|
|
429
|
-
exports.de_CreateClusterCommand = de_CreateClusterCommand;
|
|
430
|
-
const de_CreateClusterCommandError = 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 "ACLNotFoundFault":
|
|
438
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
439
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
440
|
-
case "ClusterAlreadyExistsFault":
|
|
441
|
-
case "com.amazonaws.memorydb#ClusterAlreadyExistsFault":
|
|
442
|
-
throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
443
|
-
case "ClusterQuotaForCustomerExceededFault":
|
|
444
|
-
case "com.amazonaws.memorydb#ClusterQuotaForCustomerExceededFault":
|
|
445
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
446
|
-
case "InsufficientClusterCapacityFault":
|
|
447
|
-
case "com.amazonaws.memorydb#InsufficientClusterCapacityFault":
|
|
448
|
-
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
449
|
-
case "InvalidACLStateFault":
|
|
450
|
-
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
451
|
-
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
452
|
-
case "InvalidCredentialsException":
|
|
453
|
-
case "com.amazonaws.memorydb#InvalidCredentialsException":
|
|
454
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
455
|
-
case "InvalidParameterCombinationException":
|
|
456
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
457
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
458
|
-
case "InvalidParameterValueException":
|
|
459
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
460
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
461
|
-
case "InvalidVPCNetworkStateFault":
|
|
462
|
-
case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
|
|
463
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
464
|
-
case "NodeQuotaForClusterExceededFault":
|
|
465
|
-
case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
|
|
466
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
467
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
468
|
-
case "com.amazonaws.memorydb#NodeQuotaForCustomerExceededFault":
|
|
469
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
470
|
-
case "ParameterGroupNotFoundFault":
|
|
471
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
472
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
473
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
474
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
475
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
476
|
-
case "ShardsPerClusterQuotaExceededFault":
|
|
477
|
-
case "com.amazonaws.memorydb#ShardsPerClusterQuotaExceededFault":
|
|
478
|
-
throw await de_ShardsPerClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
479
|
-
case "SubnetGroupNotFoundFault":
|
|
480
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
481
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
482
|
-
case "TagQuotaPerResourceExceeded":
|
|
483
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
484
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
485
|
-
default:
|
|
486
|
-
const parsedBody = parsedOutput.body;
|
|
487
|
-
return throwDefaultError({
|
|
488
|
-
output,
|
|
489
|
-
parsedBody,
|
|
490
|
-
errorCode,
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
const de_CreateParameterGroupCommand = async (output, context) => {
|
|
495
|
-
if (output.statusCode >= 300) {
|
|
496
|
-
return de_CreateParameterGroupCommandError(output, context);
|
|
497
|
-
}
|
|
498
|
-
const data = await parseBody(output.body, context);
|
|
499
|
-
let contents = {};
|
|
500
|
-
contents = (0, smithy_client_1._json)(data);
|
|
501
|
-
const response = {
|
|
502
|
-
$metadata: deserializeMetadata(output),
|
|
503
|
-
...contents,
|
|
504
|
-
};
|
|
505
|
-
return response;
|
|
506
|
-
};
|
|
507
|
-
exports.de_CreateParameterGroupCommand = de_CreateParameterGroupCommand;
|
|
508
|
-
const de_CreateParameterGroupCommandError = async (output, context) => {
|
|
509
|
-
const parsedOutput = {
|
|
510
|
-
...output,
|
|
511
|
-
body: await parseErrorBody(output.body, context),
|
|
512
|
-
};
|
|
513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
514
|
-
switch (errorCode) {
|
|
515
|
-
case "InvalidParameterCombinationException":
|
|
516
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
517
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
518
|
-
case "InvalidParameterGroupStateFault":
|
|
519
|
-
case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
|
|
520
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
521
|
-
case "InvalidParameterValueException":
|
|
522
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
523
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ParameterGroupAlreadyExistsFault":
|
|
525
|
-
case "com.amazonaws.memorydb#ParameterGroupAlreadyExistsFault":
|
|
526
|
-
throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
527
|
-
case "ParameterGroupQuotaExceededFault":
|
|
528
|
-
case "com.amazonaws.memorydb#ParameterGroupQuotaExceededFault":
|
|
529
|
-
throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
530
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
531
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
532
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
533
|
-
case "TagQuotaPerResourceExceeded":
|
|
534
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
535
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
536
|
-
default:
|
|
537
|
-
const parsedBody = parsedOutput.body;
|
|
538
|
-
return throwDefaultError({
|
|
539
|
-
output,
|
|
540
|
-
parsedBody,
|
|
541
|
-
errorCode,
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
|
-
const de_CreateSnapshotCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode >= 300) {
|
|
547
|
-
return de_CreateSnapshotCommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const data = await parseBody(output.body, context);
|
|
550
|
-
let contents = {};
|
|
551
|
-
contents = de_CreateSnapshotResponse(data, context);
|
|
552
|
-
const response = {
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
...contents,
|
|
555
|
-
};
|
|
556
|
-
return response;
|
|
557
|
-
};
|
|
558
|
-
exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
|
|
559
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context),
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "ClusterNotFoundFault":
|
|
567
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
568
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
569
|
-
case "InvalidClusterStateFault":
|
|
570
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
571
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
572
|
-
case "InvalidParameterCombinationException":
|
|
573
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
574
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
575
|
-
case "InvalidParameterValueException":
|
|
576
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
577
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
579
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
580
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
581
|
-
case "SnapshotAlreadyExistsFault":
|
|
582
|
-
case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
|
|
583
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
584
|
-
case "SnapshotQuotaExceededFault":
|
|
585
|
-
case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
|
|
586
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
587
|
-
case "TagQuotaPerResourceExceeded":
|
|
588
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
589
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
590
|
-
default:
|
|
591
|
-
const parsedBody = parsedOutput.body;
|
|
592
|
-
return throwDefaultError({
|
|
593
|
-
output,
|
|
594
|
-
parsedBody,
|
|
595
|
-
errorCode,
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
const de_CreateSubnetGroupCommand = async (output, context) => {
|
|
600
|
-
if (output.statusCode >= 300) {
|
|
601
|
-
return de_CreateSubnetGroupCommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const data = await parseBody(output.body, context);
|
|
604
|
-
let contents = {};
|
|
605
|
-
contents = (0, smithy_client_1._json)(data);
|
|
606
|
-
const response = {
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
...contents,
|
|
609
|
-
};
|
|
610
|
-
return response;
|
|
611
|
-
};
|
|
612
|
-
exports.de_CreateSubnetGroupCommand = de_CreateSubnetGroupCommand;
|
|
613
|
-
const de_CreateSubnetGroupCommandError = async (output, context) => {
|
|
614
|
-
const parsedOutput = {
|
|
615
|
-
...output,
|
|
616
|
-
body: await parseErrorBody(output.body, context),
|
|
617
|
-
};
|
|
618
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
619
|
-
switch (errorCode) {
|
|
620
|
-
case "InvalidSubnet":
|
|
621
|
-
case "com.amazonaws.memorydb#InvalidSubnet":
|
|
622
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
623
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
624
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
625
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
626
|
-
case "SubnetGroupAlreadyExistsFault":
|
|
627
|
-
case "com.amazonaws.memorydb#SubnetGroupAlreadyExistsFault":
|
|
628
|
-
throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
629
|
-
case "SubnetGroupQuotaExceededFault":
|
|
630
|
-
case "com.amazonaws.memorydb#SubnetGroupQuotaExceededFault":
|
|
631
|
-
throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
632
|
-
case "SubnetNotAllowedFault":
|
|
633
|
-
case "com.amazonaws.memorydb#SubnetNotAllowedFault":
|
|
634
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
635
|
-
case "SubnetQuotaExceededFault":
|
|
636
|
-
case "com.amazonaws.memorydb#SubnetQuotaExceededFault":
|
|
637
|
-
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
638
|
-
case "TagQuotaPerResourceExceeded":
|
|
639
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
640
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
641
|
-
default:
|
|
642
|
-
const parsedBody = parsedOutput.body;
|
|
643
|
-
return throwDefaultError({
|
|
644
|
-
output,
|
|
645
|
-
parsedBody,
|
|
646
|
-
errorCode,
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
|
-
const de_CreateUserCommand = async (output, context) => {
|
|
651
|
-
if (output.statusCode >= 300) {
|
|
652
|
-
return de_CreateUserCommandError(output, context);
|
|
653
|
-
}
|
|
654
|
-
const data = await parseBody(output.body, context);
|
|
655
|
-
let contents = {};
|
|
656
|
-
contents = (0, smithy_client_1._json)(data);
|
|
657
|
-
const response = {
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
...contents,
|
|
660
|
-
};
|
|
661
|
-
return response;
|
|
662
|
-
};
|
|
663
|
-
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
664
|
-
const de_CreateUserCommandError = async (output, context) => {
|
|
665
|
-
const parsedOutput = {
|
|
666
|
-
...output,
|
|
667
|
-
body: await parseErrorBody(output.body, context),
|
|
668
|
-
};
|
|
669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
-
switch (errorCode) {
|
|
671
|
-
case "DuplicateUserNameFault":
|
|
672
|
-
case "com.amazonaws.memorydb#DuplicateUserNameFault":
|
|
673
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
674
|
-
case "InvalidParameterCombinationException":
|
|
675
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
676
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
677
|
-
case "InvalidParameterValueException":
|
|
678
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
679
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
680
|
-
case "TagQuotaPerResourceExceeded":
|
|
681
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
682
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
683
|
-
case "UserAlreadyExistsFault":
|
|
684
|
-
case "com.amazonaws.memorydb#UserAlreadyExistsFault":
|
|
685
|
-
throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
|
|
686
|
-
case "UserQuotaExceededFault":
|
|
687
|
-
case "com.amazonaws.memorydb#UserQuotaExceededFault":
|
|
688
|
-
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
689
|
-
default:
|
|
690
|
-
const parsedBody = parsedOutput.body;
|
|
691
|
-
return throwDefaultError({
|
|
692
|
-
output,
|
|
693
|
-
parsedBody,
|
|
694
|
-
errorCode,
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
const de_DeleteACLCommand = async (output, context) => {
|
|
699
|
-
if (output.statusCode >= 300) {
|
|
700
|
-
return de_DeleteACLCommandError(output, context);
|
|
701
|
-
}
|
|
702
|
-
const data = await parseBody(output.body, context);
|
|
703
|
-
let contents = {};
|
|
704
|
-
contents = (0, smithy_client_1._json)(data);
|
|
705
|
-
const response = {
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
...contents,
|
|
708
|
-
};
|
|
709
|
-
return response;
|
|
710
|
-
};
|
|
711
|
-
exports.de_DeleteACLCommand = de_DeleteACLCommand;
|
|
712
|
-
const de_DeleteACLCommandError = async (output, context) => {
|
|
713
|
-
const parsedOutput = {
|
|
714
|
-
...output,
|
|
715
|
-
body: await parseErrorBody(output.body, context),
|
|
716
|
-
};
|
|
717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
|
-
switch (errorCode) {
|
|
719
|
-
case "ACLNotFoundFault":
|
|
720
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
721
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
722
|
-
case "InvalidACLStateFault":
|
|
723
|
-
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
724
|
-
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
725
|
-
case "InvalidParameterValueException":
|
|
726
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
727
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
728
|
-
default:
|
|
729
|
-
const parsedBody = parsedOutput.body;
|
|
730
|
-
return throwDefaultError({
|
|
731
|
-
output,
|
|
732
|
-
parsedBody,
|
|
733
|
-
errorCode,
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
const de_DeleteClusterCommand = async (output, context) => {
|
|
738
|
-
if (output.statusCode >= 300) {
|
|
739
|
-
return de_DeleteClusterCommandError(output, context);
|
|
740
|
-
}
|
|
741
|
-
const data = await parseBody(output.body, context);
|
|
742
|
-
let contents = {};
|
|
743
|
-
contents = de_DeleteClusterResponse(data, context);
|
|
744
|
-
const response = {
|
|
745
|
-
$metadata: deserializeMetadata(output),
|
|
746
|
-
...contents,
|
|
747
|
-
};
|
|
748
|
-
return response;
|
|
749
|
-
};
|
|
750
|
-
exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
|
|
751
|
-
const de_DeleteClusterCommandError = async (output, context) => {
|
|
752
|
-
const parsedOutput = {
|
|
753
|
-
...output,
|
|
754
|
-
body: await parseErrorBody(output.body, context),
|
|
755
|
-
};
|
|
756
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
|
-
switch (errorCode) {
|
|
758
|
-
case "ClusterNotFoundFault":
|
|
759
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
760
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
761
|
-
case "InvalidClusterStateFault":
|
|
762
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
763
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
764
|
-
case "InvalidParameterCombinationException":
|
|
765
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
766
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
767
|
-
case "InvalidParameterValueException":
|
|
768
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
769
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
770
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
771
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
772
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
773
|
-
case "SnapshotAlreadyExistsFault":
|
|
774
|
-
case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
|
|
775
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
776
|
-
default:
|
|
777
|
-
const parsedBody = parsedOutput.body;
|
|
778
|
-
return throwDefaultError({
|
|
779
|
-
output,
|
|
780
|
-
parsedBody,
|
|
781
|
-
errorCode,
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
};
|
|
785
|
-
const de_DeleteParameterGroupCommand = async (output, context) => {
|
|
786
|
-
if (output.statusCode >= 300) {
|
|
787
|
-
return de_DeleteParameterGroupCommandError(output, context);
|
|
788
|
-
}
|
|
789
|
-
const data = await parseBody(output.body, context);
|
|
790
|
-
let contents = {};
|
|
791
|
-
contents = (0, smithy_client_1._json)(data);
|
|
792
|
-
const response = {
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
794
|
-
...contents,
|
|
795
|
-
};
|
|
796
|
-
return response;
|
|
797
|
-
};
|
|
798
|
-
exports.de_DeleteParameterGroupCommand = de_DeleteParameterGroupCommand;
|
|
799
|
-
const de_DeleteParameterGroupCommandError = async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context),
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "InvalidParameterCombinationException":
|
|
807
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
808
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
809
|
-
case "InvalidParameterGroupStateFault":
|
|
810
|
-
case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
|
|
811
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
812
|
-
case "InvalidParameterValueException":
|
|
813
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
814
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ParameterGroupNotFoundFault":
|
|
816
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
817
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
818
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
819
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
820
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
const de_DeleteSnapshotCommand = async (output, context) => {
|
|
831
|
-
if (output.statusCode >= 300) {
|
|
832
|
-
return de_DeleteSnapshotCommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const data = await parseBody(output.body, context);
|
|
835
|
-
let contents = {};
|
|
836
|
-
contents = de_DeleteSnapshotResponse(data, context);
|
|
837
|
-
const response = {
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
...contents,
|
|
840
|
-
};
|
|
841
|
-
return response;
|
|
842
|
-
};
|
|
843
|
-
exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
|
|
844
|
-
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
845
|
-
const parsedOutput = {
|
|
846
|
-
...output,
|
|
847
|
-
body: await parseErrorBody(output.body, context),
|
|
848
|
-
};
|
|
849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
|
-
switch (errorCode) {
|
|
851
|
-
case "InvalidParameterCombinationException":
|
|
852
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
853
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
854
|
-
case "InvalidParameterValueException":
|
|
855
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
856
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
857
|
-
case "InvalidSnapshotStateFault":
|
|
858
|
-
case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
|
|
859
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
860
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
861
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
862
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
863
|
-
case "SnapshotNotFoundFault":
|
|
864
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
865
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
866
|
-
default:
|
|
867
|
-
const parsedBody = parsedOutput.body;
|
|
868
|
-
return throwDefaultError({
|
|
869
|
-
output,
|
|
870
|
-
parsedBody,
|
|
871
|
-
errorCode,
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
|
-
const de_DeleteSubnetGroupCommand = async (output, context) => {
|
|
876
|
-
if (output.statusCode >= 300) {
|
|
877
|
-
return de_DeleteSubnetGroupCommandError(output, context);
|
|
878
|
-
}
|
|
879
|
-
const data = await parseBody(output.body, context);
|
|
880
|
-
let contents = {};
|
|
881
|
-
contents = (0, smithy_client_1._json)(data);
|
|
882
|
-
const response = {
|
|
883
|
-
$metadata: deserializeMetadata(output),
|
|
884
|
-
...contents,
|
|
885
|
-
};
|
|
886
|
-
return response;
|
|
887
|
-
};
|
|
888
|
-
exports.de_DeleteSubnetGroupCommand = de_DeleteSubnetGroupCommand;
|
|
889
|
-
const de_DeleteSubnetGroupCommandError = async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context),
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
897
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
898
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
899
|
-
case "SubnetGroupInUseFault":
|
|
900
|
-
case "com.amazonaws.memorydb#SubnetGroupInUseFault":
|
|
901
|
-
throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
|
|
902
|
-
case "SubnetGroupNotFoundFault":
|
|
903
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
904
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
905
|
-
default:
|
|
906
|
-
const parsedBody = parsedOutput.body;
|
|
907
|
-
return throwDefaultError({
|
|
908
|
-
output,
|
|
909
|
-
parsedBody,
|
|
910
|
-
errorCode,
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
};
|
|
914
|
-
const de_DeleteUserCommand = async (output, context) => {
|
|
915
|
-
if (output.statusCode >= 300) {
|
|
916
|
-
return de_DeleteUserCommandError(output, context);
|
|
917
|
-
}
|
|
918
|
-
const data = await parseBody(output.body, context);
|
|
919
|
-
let contents = {};
|
|
920
|
-
contents = (0, smithy_client_1._json)(data);
|
|
921
|
-
const response = {
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
...contents,
|
|
924
|
-
};
|
|
925
|
-
return response;
|
|
926
|
-
};
|
|
927
|
-
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
928
|
-
const de_DeleteUserCommandError = async (output, context) => {
|
|
929
|
-
const parsedOutput = {
|
|
930
|
-
...output,
|
|
931
|
-
body: await parseErrorBody(output.body, context),
|
|
932
|
-
};
|
|
933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
-
switch (errorCode) {
|
|
935
|
-
case "InvalidParameterValueException":
|
|
936
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
937
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
938
|
-
case "InvalidUserStateFault":
|
|
939
|
-
case "com.amazonaws.memorydb#InvalidUserStateFault":
|
|
940
|
-
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
941
|
-
case "UserNotFoundFault":
|
|
942
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
943
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
944
|
-
default:
|
|
945
|
-
const parsedBody = parsedOutput.body;
|
|
946
|
-
return throwDefaultError({
|
|
947
|
-
output,
|
|
948
|
-
parsedBody,
|
|
949
|
-
errorCode,
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
const de_DescribeACLsCommand = async (output, context) => {
|
|
954
|
-
if (output.statusCode >= 300) {
|
|
955
|
-
return de_DescribeACLsCommandError(output, context);
|
|
956
|
-
}
|
|
957
|
-
const data = await parseBody(output.body, context);
|
|
958
|
-
let contents = {};
|
|
959
|
-
contents = (0, smithy_client_1._json)(data);
|
|
960
|
-
const response = {
|
|
961
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
-
...contents,
|
|
963
|
-
};
|
|
964
|
-
return response;
|
|
965
|
-
};
|
|
966
|
-
exports.de_DescribeACLsCommand = de_DescribeACLsCommand;
|
|
967
|
-
const de_DescribeACLsCommandError = async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context),
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "ACLNotFoundFault":
|
|
975
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
976
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
977
|
-
case "InvalidParameterCombinationException":
|
|
978
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
979
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode,
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
|
-
const de_DescribeClustersCommand = async (output, context) => {
|
|
990
|
-
if (output.statusCode >= 300) {
|
|
991
|
-
return de_DescribeClustersCommandError(output, context);
|
|
992
|
-
}
|
|
993
|
-
const data = await parseBody(output.body, context);
|
|
994
|
-
let contents = {};
|
|
995
|
-
contents = de_DescribeClustersResponse(data, context);
|
|
996
|
-
const response = {
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
...contents,
|
|
999
|
-
};
|
|
1000
|
-
return response;
|
|
1001
|
-
};
|
|
1002
|
-
exports.de_DescribeClustersCommand = de_DescribeClustersCommand;
|
|
1003
|
-
const de_DescribeClustersCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "ClusterNotFoundFault":
|
|
1011
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1012
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1013
|
-
case "InvalidParameterCombinationException":
|
|
1014
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1015
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InvalidParameterValueException":
|
|
1017
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1018
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1020
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1021
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1022
|
-
default:
|
|
1023
|
-
const parsedBody = parsedOutput.body;
|
|
1024
|
-
return throwDefaultError({
|
|
1025
|
-
output,
|
|
1026
|
-
parsedBody,
|
|
1027
|
-
errorCode,
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
|
-
const de_DescribeEngineVersionsCommand = async (output, context) => {
|
|
1032
|
-
if (output.statusCode >= 300) {
|
|
1033
|
-
return de_DescribeEngineVersionsCommandError(output, context);
|
|
1034
|
-
}
|
|
1035
|
-
const data = await parseBody(output.body, context);
|
|
1036
|
-
let contents = {};
|
|
1037
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1038
|
-
const response = {
|
|
1039
|
-
$metadata: deserializeMetadata(output),
|
|
1040
|
-
...contents,
|
|
1041
|
-
};
|
|
1042
|
-
return response;
|
|
1043
|
-
};
|
|
1044
|
-
exports.de_DescribeEngineVersionsCommand = de_DescribeEngineVersionsCommand;
|
|
1045
|
-
const de_DescribeEngineVersionsCommandError = async (output, context) => {
|
|
1046
|
-
const parsedOutput = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseErrorBody(output.body, context),
|
|
1049
|
-
};
|
|
1050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
-
switch (errorCode) {
|
|
1052
|
-
case "InvalidParameterCombinationException":
|
|
1053
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1054
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "InvalidParameterValueException":
|
|
1056
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1057
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1059
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1060
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1061
|
-
default:
|
|
1062
|
-
const parsedBody = parsedOutput.body;
|
|
1063
|
-
return throwDefaultError({
|
|
1064
|
-
output,
|
|
1065
|
-
parsedBody,
|
|
1066
|
-
errorCode,
|
|
1067
|
-
});
|
|
1068
|
-
}
|
|
1069
|
-
};
|
|
1070
|
-
const de_DescribeEventsCommand = async (output, context) => {
|
|
1071
|
-
if (output.statusCode >= 300) {
|
|
1072
|
-
return de_DescribeEventsCommandError(output, context);
|
|
1073
|
-
}
|
|
1074
|
-
const data = await parseBody(output.body, context);
|
|
1075
|
-
let contents = {};
|
|
1076
|
-
contents = de_DescribeEventsResponse(data, context);
|
|
1077
|
-
const response = {
|
|
1078
|
-
$metadata: deserializeMetadata(output),
|
|
1079
|
-
...contents,
|
|
1080
|
-
};
|
|
1081
|
-
return response;
|
|
1082
|
-
};
|
|
1083
|
-
exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
|
|
1084
|
-
const de_DescribeEventsCommandError = async (output, context) => {
|
|
1085
|
-
const parsedOutput = {
|
|
1086
|
-
...output,
|
|
1087
|
-
body: await parseErrorBody(output.body, context),
|
|
1088
|
-
};
|
|
1089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
|
-
switch (errorCode) {
|
|
1091
|
-
case "InvalidParameterCombinationException":
|
|
1092
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1093
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "InvalidParameterValueException":
|
|
1095
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1096
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1098
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1099
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1100
|
-
default:
|
|
1101
|
-
const parsedBody = parsedOutput.body;
|
|
1102
|
-
return throwDefaultError({
|
|
1103
|
-
output,
|
|
1104
|
-
parsedBody,
|
|
1105
|
-
errorCode,
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
};
|
|
1109
|
-
const de_DescribeParameterGroupsCommand = async (output, context) => {
|
|
1110
|
-
if (output.statusCode >= 300) {
|
|
1111
|
-
return de_DescribeParameterGroupsCommandError(output, context);
|
|
1112
|
-
}
|
|
1113
|
-
const data = await parseBody(output.body, context);
|
|
1114
|
-
let contents = {};
|
|
1115
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1116
|
-
const response = {
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
...contents,
|
|
1119
|
-
};
|
|
1120
|
-
return response;
|
|
1121
|
-
};
|
|
1122
|
-
exports.de_DescribeParameterGroupsCommand = de_DescribeParameterGroupsCommand;
|
|
1123
|
-
const de_DescribeParameterGroupsCommandError = async (output, context) => {
|
|
1124
|
-
const parsedOutput = {
|
|
1125
|
-
...output,
|
|
1126
|
-
body: await parseErrorBody(output.body, context),
|
|
1127
|
-
};
|
|
1128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
-
switch (errorCode) {
|
|
1130
|
-
case "InvalidParameterCombinationException":
|
|
1131
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1132
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "InvalidParameterValueException":
|
|
1134
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1135
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ParameterGroupNotFoundFault":
|
|
1137
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1138
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1139
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1140
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1141
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1142
|
-
default:
|
|
1143
|
-
const parsedBody = parsedOutput.body;
|
|
1144
|
-
return throwDefaultError({
|
|
1145
|
-
output,
|
|
1146
|
-
parsedBody,
|
|
1147
|
-
errorCode,
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
|
-
const de_DescribeParametersCommand = async (output, context) => {
|
|
1152
|
-
if (output.statusCode >= 300) {
|
|
1153
|
-
return de_DescribeParametersCommandError(output, context);
|
|
1154
|
-
}
|
|
1155
|
-
const data = await parseBody(output.body, context);
|
|
1156
|
-
let contents = {};
|
|
1157
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1158
|
-
const response = {
|
|
1159
|
-
$metadata: deserializeMetadata(output),
|
|
1160
|
-
...contents,
|
|
1161
|
-
};
|
|
1162
|
-
return response;
|
|
1163
|
-
};
|
|
1164
|
-
exports.de_DescribeParametersCommand = de_DescribeParametersCommand;
|
|
1165
|
-
const de_DescribeParametersCommandError = async (output, context) => {
|
|
1166
|
-
const parsedOutput = {
|
|
1167
|
-
...output,
|
|
1168
|
-
body: await parseErrorBody(output.body, context),
|
|
1169
|
-
};
|
|
1170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
-
switch (errorCode) {
|
|
1172
|
-
case "InvalidParameterCombinationException":
|
|
1173
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1174
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "InvalidParameterValueException":
|
|
1176
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1177
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ParameterGroupNotFoundFault":
|
|
1179
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1180
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1181
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1182
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1183
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1184
|
-
default:
|
|
1185
|
-
const parsedBody = parsedOutput.body;
|
|
1186
|
-
return throwDefaultError({
|
|
1187
|
-
output,
|
|
1188
|
-
parsedBody,
|
|
1189
|
-
errorCode,
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
};
|
|
1193
|
-
const de_DescribeReservedNodesCommand = async (output, context) => {
|
|
1194
|
-
if (output.statusCode >= 300) {
|
|
1195
|
-
return de_DescribeReservedNodesCommandError(output, context);
|
|
1196
|
-
}
|
|
1197
|
-
const data = await parseBody(output.body, context);
|
|
1198
|
-
let contents = {};
|
|
1199
|
-
contents = de_DescribeReservedNodesResponse(data, context);
|
|
1200
|
-
const response = {
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
...contents,
|
|
1203
|
-
};
|
|
1204
|
-
return response;
|
|
1205
|
-
};
|
|
1206
|
-
exports.de_DescribeReservedNodesCommand = de_DescribeReservedNodesCommand;
|
|
1207
|
-
const de_DescribeReservedNodesCommandError = async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context),
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "InvalidParameterCombinationException":
|
|
1215
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1216
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "InvalidParameterValueException":
|
|
1218
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1219
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ReservedNodeNotFoundFault":
|
|
1221
|
-
case "com.amazonaws.memorydb#ReservedNodeNotFoundFault":
|
|
1222
|
-
throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
|
|
1223
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1224
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1225
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1226
|
-
default:
|
|
1227
|
-
const parsedBody = parsedOutput.body;
|
|
1228
|
-
return throwDefaultError({
|
|
1229
|
-
output,
|
|
1230
|
-
parsedBody,
|
|
1231
|
-
errorCode,
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
|
-
const de_DescribeReservedNodesOfferingsCommand = async (output, context) => {
|
|
1236
|
-
if (output.statusCode >= 300) {
|
|
1237
|
-
return de_DescribeReservedNodesOfferingsCommandError(output, context);
|
|
1238
|
-
}
|
|
1239
|
-
const data = await parseBody(output.body, context);
|
|
1240
|
-
let contents = {};
|
|
1241
|
-
contents = de_DescribeReservedNodesOfferingsResponse(data, context);
|
|
1242
|
-
const response = {
|
|
1243
|
-
$metadata: deserializeMetadata(output),
|
|
1244
|
-
...contents,
|
|
1245
|
-
};
|
|
1246
|
-
return response;
|
|
1247
|
-
};
|
|
1248
|
-
exports.de_DescribeReservedNodesOfferingsCommand = de_DescribeReservedNodesOfferingsCommand;
|
|
1249
|
-
const de_DescribeReservedNodesOfferingsCommandError = async (output, context) => {
|
|
1250
|
-
const parsedOutput = {
|
|
1251
|
-
...output,
|
|
1252
|
-
body: await parseErrorBody(output.body, context),
|
|
1253
|
-
};
|
|
1254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
-
switch (errorCode) {
|
|
1256
|
-
case "InvalidParameterCombinationException":
|
|
1257
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1258
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "InvalidParameterValueException":
|
|
1260
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1261
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "ReservedNodesOfferingNotFoundFault":
|
|
1263
|
-
case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
|
|
1264
|
-
throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
1265
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1266
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1267
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1268
|
-
default:
|
|
1269
|
-
const parsedBody = parsedOutput.body;
|
|
1270
|
-
return throwDefaultError({
|
|
1271
|
-
output,
|
|
1272
|
-
parsedBody,
|
|
1273
|
-
errorCode,
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
};
|
|
1277
|
-
const de_DescribeServiceUpdatesCommand = async (output, context) => {
|
|
1278
|
-
if (output.statusCode >= 300) {
|
|
1279
|
-
return de_DescribeServiceUpdatesCommandError(output, context);
|
|
1280
|
-
}
|
|
1281
|
-
const data = await parseBody(output.body, context);
|
|
1282
|
-
let contents = {};
|
|
1283
|
-
contents = de_DescribeServiceUpdatesResponse(data, context);
|
|
1284
|
-
const response = {
|
|
1285
|
-
$metadata: deserializeMetadata(output),
|
|
1286
|
-
...contents,
|
|
1287
|
-
};
|
|
1288
|
-
return response;
|
|
1289
|
-
};
|
|
1290
|
-
exports.de_DescribeServiceUpdatesCommand = de_DescribeServiceUpdatesCommand;
|
|
1291
|
-
const de_DescribeServiceUpdatesCommandError = async (output, context) => {
|
|
1292
|
-
const parsedOutput = {
|
|
1293
|
-
...output,
|
|
1294
|
-
body: await parseErrorBody(output.body, context),
|
|
1295
|
-
};
|
|
1296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
|
-
switch (errorCode) {
|
|
1298
|
-
case "InvalidParameterCombinationException":
|
|
1299
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1300
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "InvalidParameterValueException":
|
|
1302
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1303
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1304
|
-
default:
|
|
1305
|
-
const parsedBody = parsedOutput.body;
|
|
1306
|
-
return throwDefaultError({
|
|
1307
|
-
output,
|
|
1308
|
-
parsedBody,
|
|
1309
|
-
errorCode,
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
};
|
|
1313
|
-
const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
1314
|
-
if (output.statusCode >= 300) {
|
|
1315
|
-
return de_DescribeSnapshotsCommandError(output, context);
|
|
1316
|
-
}
|
|
1317
|
-
const data = await parseBody(output.body, context);
|
|
1318
|
-
let contents = {};
|
|
1319
|
-
contents = de_DescribeSnapshotsResponse(data, context);
|
|
1320
|
-
const response = {
|
|
1321
|
-
$metadata: deserializeMetadata(output),
|
|
1322
|
-
...contents,
|
|
1323
|
-
};
|
|
1324
|
-
return response;
|
|
1325
|
-
};
|
|
1326
|
-
exports.de_DescribeSnapshotsCommand = de_DescribeSnapshotsCommand;
|
|
1327
|
-
const de_DescribeSnapshotsCommandError = async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context),
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "InvalidParameterCombinationException":
|
|
1335
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1336
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "InvalidParameterValueException":
|
|
1338
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1339
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1341
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1342
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1343
|
-
case "SnapshotNotFoundFault":
|
|
1344
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1345
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1346
|
-
default:
|
|
1347
|
-
const parsedBody = parsedOutput.body;
|
|
1348
|
-
return throwDefaultError({
|
|
1349
|
-
output,
|
|
1350
|
-
parsedBody,
|
|
1351
|
-
errorCode,
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
};
|
|
1355
|
-
const de_DescribeSubnetGroupsCommand = async (output, context) => {
|
|
1356
|
-
if (output.statusCode >= 300) {
|
|
1357
|
-
return de_DescribeSubnetGroupsCommandError(output, context);
|
|
1358
|
-
}
|
|
1359
|
-
const data = await parseBody(output.body, context);
|
|
1360
|
-
let contents = {};
|
|
1361
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1362
|
-
const response = {
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
...contents,
|
|
1365
|
-
};
|
|
1366
|
-
return response;
|
|
1367
|
-
};
|
|
1368
|
-
exports.de_DescribeSubnetGroupsCommand = de_DescribeSubnetGroupsCommand;
|
|
1369
|
-
const de_DescribeSubnetGroupsCommandError = async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1377
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1378
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1379
|
-
case "SubnetGroupNotFoundFault":
|
|
1380
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1381
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1382
|
-
default:
|
|
1383
|
-
const parsedBody = parsedOutput.body;
|
|
1384
|
-
return throwDefaultError({
|
|
1385
|
-
output,
|
|
1386
|
-
parsedBody,
|
|
1387
|
-
errorCode,
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
|
-
const de_DescribeUsersCommand = async (output, context) => {
|
|
1392
|
-
if (output.statusCode >= 300) {
|
|
1393
|
-
return de_DescribeUsersCommandError(output, context);
|
|
1394
|
-
}
|
|
1395
|
-
const data = await parseBody(output.body, context);
|
|
1396
|
-
let contents = {};
|
|
1397
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1398
|
-
const response = {
|
|
1399
|
-
$metadata: deserializeMetadata(output),
|
|
1400
|
-
...contents,
|
|
1401
|
-
};
|
|
1402
|
-
return response;
|
|
1403
|
-
};
|
|
1404
|
-
exports.de_DescribeUsersCommand = de_DescribeUsersCommand;
|
|
1405
|
-
const de_DescribeUsersCommandError = async (output, context) => {
|
|
1406
|
-
const parsedOutput = {
|
|
1407
|
-
...output,
|
|
1408
|
-
body: await parseErrorBody(output.body, context),
|
|
1409
|
-
};
|
|
1410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
|
-
switch (errorCode) {
|
|
1412
|
-
case "InvalidParameterCombinationException":
|
|
1413
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1414
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "UserNotFoundFault":
|
|
1416
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1417
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1418
|
-
default:
|
|
1419
|
-
const parsedBody = parsedOutput.body;
|
|
1420
|
-
return throwDefaultError({
|
|
1421
|
-
output,
|
|
1422
|
-
parsedBody,
|
|
1423
|
-
errorCode,
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
1426
|
-
};
|
|
1427
|
-
const de_FailoverShardCommand = async (output, context) => {
|
|
1428
|
-
if (output.statusCode >= 300) {
|
|
1429
|
-
return de_FailoverShardCommandError(output, context);
|
|
1430
|
-
}
|
|
1431
|
-
const data = await parseBody(output.body, context);
|
|
1432
|
-
let contents = {};
|
|
1433
|
-
contents = de_FailoverShardResponse(data, context);
|
|
1434
|
-
const response = {
|
|
1435
|
-
$metadata: deserializeMetadata(output),
|
|
1436
|
-
...contents,
|
|
1437
|
-
};
|
|
1438
|
-
return response;
|
|
1439
|
-
};
|
|
1440
|
-
exports.de_FailoverShardCommand = de_FailoverShardCommand;
|
|
1441
|
-
const de_FailoverShardCommandError = async (output, context) => {
|
|
1442
|
-
const parsedOutput = {
|
|
1443
|
-
...output,
|
|
1444
|
-
body: await parseErrorBody(output.body, context),
|
|
1445
|
-
};
|
|
1446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
-
switch (errorCode) {
|
|
1448
|
-
case "APICallRateForCustomerExceededFault":
|
|
1449
|
-
case "com.amazonaws.memorydb#APICallRateForCustomerExceededFault":
|
|
1450
|
-
throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
|
|
1451
|
-
case "ClusterNotFoundFault":
|
|
1452
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1453
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1454
|
-
case "InvalidClusterStateFault":
|
|
1455
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1456
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1457
|
-
case "InvalidKMSKeyFault":
|
|
1458
|
-
case "com.amazonaws.memorydb#InvalidKMSKeyFault":
|
|
1459
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
1460
|
-
case "InvalidParameterCombinationException":
|
|
1461
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1462
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "InvalidParameterValueException":
|
|
1464
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1465
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ShardNotFoundFault":
|
|
1467
|
-
case "com.amazonaws.memorydb#ShardNotFoundFault":
|
|
1468
|
-
throw await de_ShardNotFoundFaultRes(parsedOutput, context);
|
|
1469
|
-
case "TestFailoverNotAvailableFault":
|
|
1470
|
-
case "com.amazonaws.memorydb#TestFailoverNotAvailableFault":
|
|
1471
|
-
throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
|
|
1472
|
-
default:
|
|
1473
|
-
const parsedBody = parsedOutput.body;
|
|
1474
|
-
return throwDefaultError({
|
|
1475
|
-
output,
|
|
1476
|
-
parsedBody,
|
|
1477
|
-
errorCode,
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
};
|
|
1481
|
-
const de_ListAllowedNodeTypeUpdatesCommand = async (output, context) => {
|
|
1482
|
-
if (output.statusCode >= 300) {
|
|
1483
|
-
return de_ListAllowedNodeTypeUpdatesCommandError(output, context);
|
|
1484
|
-
}
|
|
1485
|
-
const data = await parseBody(output.body, context);
|
|
1486
|
-
let contents = {};
|
|
1487
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1488
|
-
const response = {
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
...contents,
|
|
1491
|
-
};
|
|
1492
|
-
return response;
|
|
1493
|
-
};
|
|
1494
|
-
exports.de_ListAllowedNodeTypeUpdatesCommand = de_ListAllowedNodeTypeUpdatesCommand;
|
|
1495
|
-
const de_ListAllowedNodeTypeUpdatesCommandError = async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context),
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "ClusterNotFoundFault":
|
|
1503
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1504
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1505
|
-
case "InvalidParameterCombinationException":
|
|
1506
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1507
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "InvalidParameterValueException":
|
|
1509
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1510
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1512
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1513
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
const de_ListTagsCommand = async (output, context) => {
|
|
1524
|
-
if (output.statusCode >= 300) {
|
|
1525
|
-
return de_ListTagsCommandError(output, context);
|
|
1526
|
-
}
|
|
1527
|
-
const data = await parseBody(output.body, context);
|
|
1528
|
-
let contents = {};
|
|
1529
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1530
|
-
const response = {
|
|
1531
|
-
$metadata: deserializeMetadata(output),
|
|
1532
|
-
...contents,
|
|
1533
|
-
};
|
|
1534
|
-
return response;
|
|
1535
|
-
};
|
|
1536
|
-
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
1537
|
-
const de_ListTagsCommandError = async (output, context) => {
|
|
1538
|
-
const parsedOutput = {
|
|
1539
|
-
...output,
|
|
1540
|
-
body: await parseErrorBody(output.body, context),
|
|
1541
|
-
};
|
|
1542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
-
switch (errorCode) {
|
|
1544
|
-
case "ACLNotFoundFault":
|
|
1545
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1546
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1547
|
-
case "ClusterNotFoundFault":
|
|
1548
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1549
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1550
|
-
case "InvalidARNFault":
|
|
1551
|
-
case "com.amazonaws.memorydb#InvalidARNFault":
|
|
1552
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1553
|
-
case "InvalidClusterStateFault":
|
|
1554
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1555
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1556
|
-
case "ParameterGroupNotFoundFault":
|
|
1557
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1558
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1559
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1560
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1561
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1562
|
-
case "SnapshotNotFoundFault":
|
|
1563
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1564
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1565
|
-
case "SubnetGroupNotFoundFault":
|
|
1566
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1567
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1568
|
-
case "UserNotFoundFault":
|
|
1569
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1570
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1571
|
-
default:
|
|
1572
|
-
const parsedBody = parsedOutput.body;
|
|
1573
|
-
return throwDefaultError({
|
|
1574
|
-
output,
|
|
1575
|
-
parsedBody,
|
|
1576
|
-
errorCode,
|
|
1577
|
-
});
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
|
-
const de_PurchaseReservedNodesOfferingCommand = async (output, context) => {
|
|
1581
|
-
if (output.statusCode >= 300) {
|
|
1582
|
-
return de_PurchaseReservedNodesOfferingCommandError(output, context);
|
|
1583
|
-
}
|
|
1584
|
-
const data = await parseBody(output.body, context);
|
|
1585
|
-
let contents = {};
|
|
1586
|
-
contents = de_PurchaseReservedNodesOfferingResponse(data, context);
|
|
1587
|
-
const response = {
|
|
1588
|
-
$metadata: deserializeMetadata(output),
|
|
1589
|
-
...contents,
|
|
1590
|
-
};
|
|
1591
|
-
return response;
|
|
1592
|
-
};
|
|
1593
|
-
exports.de_PurchaseReservedNodesOfferingCommand = de_PurchaseReservedNodesOfferingCommand;
|
|
1594
|
-
const de_PurchaseReservedNodesOfferingCommandError = async (output, context) => {
|
|
1595
|
-
const parsedOutput = {
|
|
1596
|
-
...output,
|
|
1597
|
-
body: await parseErrorBody(output.body, context),
|
|
1598
|
-
};
|
|
1599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
|
-
switch (errorCode) {
|
|
1601
|
-
case "InvalidParameterCombinationException":
|
|
1602
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1603
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "InvalidParameterValueException":
|
|
1605
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1606
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ReservedNodeAlreadyExistsFault":
|
|
1608
|
-
case "com.amazonaws.memorydb#ReservedNodeAlreadyExistsFault":
|
|
1609
|
-
throw await de_ReservedNodeAlreadyExistsFaultRes(parsedOutput, context);
|
|
1610
|
-
case "ReservedNodeQuotaExceededFault":
|
|
1611
|
-
case "com.amazonaws.memorydb#ReservedNodeQuotaExceededFault":
|
|
1612
|
-
throw await de_ReservedNodeQuotaExceededFaultRes(parsedOutput, context);
|
|
1613
|
-
case "ReservedNodesOfferingNotFoundFault":
|
|
1614
|
-
case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
|
|
1615
|
-
throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
1616
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1617
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1618
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1619
|
-
case "TagQuotaPerResourceExceeded":
|
|
1620
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
1621
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1622
|
-
default:
|
|
1623
|
-
const parsedBody = parsedOutput.body;
|
|
1624
|
-
return throwDefaultError({
|
|
1625
|
-
output,
|
|
1626
|
-
parsedBody,
|
|
1627
|
-
errorCode,
|
|
1628
|
-
});
|
|
1629
|
-
}
|
|
1630
|
-
};
|
|
1631
|
-
const de_ResetParameterGroupCommand = async (output, context) => {
|
|
1632
|
-
if (output.statusCode >= 300) {
|
|
1633
|
-
return de_ResetParameterGroupCommandError(output, context);
|
|
1634
|
-
}
|
|
1635
|
-
const data = await parseBody(output.body, context);
|
|
1636
|
-
let contents = {};
|
|
1637
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1638
|
-
const response = {
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
...contents,
|
|
1641
|
-
};
|
|
1642
|
-
return response;
|
|
1643
|
-
};
|
|
1644
|
-
exports.de_ResetParameterGroupCommand = de_ResetParameterGroupCommand;
|
|
1645
|
-
const de_ResetParameterGroupCommandError = async (output, context) => {
|
|
1646
|
-
const parsedOutput = {
|
|
1647
|
-
...output,
|
|
1648
|
-
body: await parseErrorBody(output.body, context),
|
|
1649
|
-
};
|
|
1650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
|
-
switch (errorCode) {
|
|
1652
|
-
case "InvalidParameterCombinationException":
|
|
1653
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1654
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "InvalidParameterGroupStateFault":
|
|
1656
|
-
case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
|
|
1657
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1658
|
-
case "InvalidParameterValueException":
|
|
1659
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1660
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "ParameterGroupNotFoundFault":
|
|
1662
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1663
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1664
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1665
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1666
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1667
|
-
default:
|
|
1668
|
-
const parsedBody = parsedOutput.body;
|
|
1669
|
-
return throwDefaultError({
|
|
1670
|
-
output,
|
|
1671
|
-
parsedBody,
|
|
1672
|
-
errorCode,
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
};
|
|
1676
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1677
|
-
if (output.statusCode >= 300) {
|
|
1678
|
-
return de_TagResourceCommandError(output, context);
|
|
1679
|
-
}
|
|
1680
|
-
const data = await parseBody(output.body, context);
|
|
1681
|
-
let contents = {};
|
|
1682
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1683
|
-
const response = {
|
|
1684
|
-
$metadata: deserializeMetadata(output),
|
|
1685
|
-
...contents,
|
|
1686
|
-
};
|
|
1687
|
-
return response;
|
|
1688
|
-
};
|
|
1689
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1690
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1691
|
-
const parsedOutput = {
|
|
1692
|
-
...output,
|
|
1693
|
-
body: await parseErrorBody(output.body, context),
|
|
1694
|
-
};
|
|
1695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
|
-
switch (errorCode) {
|
|
1697
|
-
case "ACLNotFoundFault":
|
|
1698
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1699
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1700
|
-
case "ClusterNotFoundFault":
|
|
1701
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1702
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1703
|
-
case "InvalidARNFault":
|
|
1704
|
-
case "com.amazonaws.memorydb#InvalidARNFault":
|
|
1705
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1706
|
-
case "InvalidClusterStateFault":
|
|
1707
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1708
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1709
|
-
case "ParameterGroupNotFoundFault":
|
|
1710
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1711
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1712
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1713
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1714
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1715
|
-
case "SnapshotNotFoundFault":
|
|
1716
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1717
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1718
|
-
case "SubnetGroupNotFoundFault":
|
|
1719
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1720
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1721
|
-
case "TagQuotaPerResourceExceeded":
|
|
1722
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
1723
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1724
|
-
case "UserNotFoundFault":
|
|
1725
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1726
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1727
|
-
default:
|
|
1728
|
-
const parsedBody = parsedOutput.body;
|
|
1729
|
-
return throwDefaultError({
|
|
1730
|
-
output,
|
|
1731
|
-
parsedBody,
|
|
1732
|
-
errorCode,
|
|
1733
|
-
});
|
|
1734
|
-
}
|
|
1735
|
-
};
|
|
1736
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1737
|
-
if (output.statusCode >= 300) {
|
|
1738
|
-
return de_UntagResourceCommandError(output, context);
|
|
1739
|
-
}
|
|
1740
|
-
const data = await parseBody(output.body, context);
|
|
1741
|
-
let contents = {};
|
|
1742
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1743
|
-
const response = {
|
|
1744
|
-
$metadata: deserializeMetadata(output),
|
|
1745
|
-
...contents,
|
|
1746
|
-
};
|
|
1747
|
-
return response;
|
|
1748
|
-
};
|
|
1749
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1750
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1751
|
-
const parsedOutput = {
|
|
1752
|
-
...output,
|
|
1753
|
-
body: await parseErrorBody(output.body, context),
|
|
1754
|
-
};
|
|
1755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
|
-
switch (errorCode) {
|
|
1757
|
-
case "ACLNotFoundFault":
|
|
1758
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1759
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1760
|
-
case "ClusterNotFoundFault":
|
|
1761
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1762
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1763
|
-
case "InvalidARNFault":
|
|
1764
|
-
case "com.amazonaws.memorydb#InvalidARNFault":
|
|
1765
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1766
|
-
case "InvalidClusterStateFault":
|
|
1767
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1768
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1769
|
-
case "ParameterGroupNotFoundFault":
|
|
1770
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1771
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1772
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1773
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1774
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1775
|
-
case "SnapshotNotFoundFault":
|
|
1776
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1777
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1778
|
-
case "SubnetGroupNotFoundFault":
|
|
1779
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1780
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1781
|
-
case "TagNotFoundFault":
|
|
1782
|
-
case "com.amazonaws.memorydb#TagNotFoundFault":
|
|
1783
|
-
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
1784
|
-
case "UserNotFoundFault":
|
|
1785
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1786
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1787
|
-
default:
|
|
1788
|
-
const parsedBody = parsedOutput.body;
|
|
1789
|
-
return throwDefaultError({
|
|
1790
|
-
output,
|
|
1791
|
-
parsedBody,
|
|
1792
|
-
errorCode,
|
|
1793
|
-
});
|
|
1794
|
-
}
|
|
1795
|
-
};
|
|
1796
|
-
const de_UpdateACLCommand = async (output, context) => {
|
|
1797
|
-
if (output.statusCode >= 300) {
|
|
1798
|
-
return de_UpdateACLCommandError(output, context);
|
|
1799
|
-
}
|
|
1800
|
-
const data = await parseBody(output.body, context);
|
|
1801
|
-
let contents = {};
|
|
1802
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1803
|
-
const response = {
|
|
1804
|
-
$metadata: deserializeMetadata(output),
|
|
1805
|
-
...contents,
|
|
1806
|
-
};
|
|
1807
|
-
return response;
|
|
1808
|
-
};
|
|
1809
|
-
exports.de_UpdateACLCommand = de_UpdateACLCommand;
|
|
1810
|
-
const de_UpdateACLCommandError = async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context),
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "ACLNotFoundFault":
|
|
1818
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1819
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1820
|
-
case "DefaultUserRequired":
|
|
1821
|
-
case "com.amazonaws.memorydb#DefaultUserRequired":
|
|
1822
|
-
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
1823
|
-
case "DuplicateUserNameFault":
|
|
1824
|
-
case "com.amazonaws.memorydb#DuplicateUserNameFault":
|
|
1825
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
1826
|
-
case "InvalidACLStateFault":
|
|
1827
|
-
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
1828
|
-
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
1829
|
-
case "InvalidParameterCombinationException":
|
|
1830
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1831
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "InvalidParameterValueException":
|
|
1833
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1834
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "UserNotFoundFault":
|
|
1836
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1837
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1838
|
-
default:
|
|
1839
|
-
const parsedBody = parsedOutput.body;
|
|
1840
|
-
return throwDefaultError({
|
|
1841
|
-
output,
|
|
1842
|
-
parsedBody,
|
|
1843
|
-
errorCode,
|
|
1844
|
-
});
|
|
1845
|
-
}
|
|
1846
|
-
};
|
|
1847
|
-
const de_UpdateClusterCommand = async (output, context) => {
|
|
1848
|
-
if (output.statusCode >= 300) {
|
|
1849
|
-
return de_UpdateClusterCommandError(output, context);
|
|
1850
|
-
}
|
|
1851
|
-
const data = await parseBody(output.body, context);
|
|
1852
|
-
let contents = {};
|
|
1853
|
-
contents = de_UpdateClusterResponse(data, context);
|
|
1854
|
-
const response = {
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
...contents,
|
|
1857
|
-
};
|
|
1858
|
-
return response;
|
|
1859
|
-
};
|
|
1860
|
-
exports.de_UpdateClusterCommand = de_UpdateClusterCommand;
|
|
1861
|
-
const de_UpdateClusterCommandError = async (output, context) => {
|
|
1862
|
-
const parsedOutput = {
|
|
1863
|
-
...output,
|
|
1864
|
-
body: await parseErrorBody(output.body, context),
|
|
1865
|
-
};
|
|
1866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
-
switch (errorCode) {
|
|
1868
|
-
case "ACLNotFoundFault":
|
|
1869
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1870
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1871
|
-
case "ClusterNotFoundFault":
|
|
1872
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1873
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1874
|
-
case "ClusterQuotaForCustomerExceededFault":
|
|
1875
|
-
case "com.amazonaws.memorydb#ClusterQuotaForCustomerExceededFault":
|
|
1876
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1877
|
-
case "InvalidACLStateFault":
|
|
1878
|
-
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
1879
|
-
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
1880
|
-
case "InvalidClusterStateFault":
|
|
1881
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1882
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1883
|
-
case "InvalidKMSKeyFault":
|
|
1884
|
-
case "com.amazonaws.memorydb#InvalidKMSKeyFault":
|
|
1885
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
1886
|
-
case "InvalidNodeStateFault":
|
|
1887
|
-
case "com.amazonaws.memorydb#InvalidNodeStateFault":
|
|
1888
|
-
throw await de_InvalidNodeStateFaultRes(parsedOutput, context);
|
|
1889
|
-
case "InvalidParameterCombinationException":
|
|
1890
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1891
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "InvalidParameterValueException":
|
|
1893
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1894
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "InvalidVPCNetworkStateFault":
|
|
1896
|
-
case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
|
|
1897
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1898
|
-
case "NoOperationFault":
|
|
1899
|
-
case "com.amazonaws.memorydb#NoOperationFault":
|
|
1900
|
-
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
1901
|
-
case "NodeQuotaForClusterExceededFault":
|
|
1902
|
-
case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
|
|
1903
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
1904
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
1905
|
-
case "com.amazonaws.memorydb#NodeQuotaForCustomerExceededFault":
|
|
1906
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
1907
|
-
case "ParameterGroupNotFoundFault":
|
|
1908
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1909
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1910
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1911
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1912
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1913
|
-
case "ShardsPerClusterQuotaExceededFault":
|
|
1914
|
-
case "com.amazonaws.memorydb#ShardsPerClusterQuotaExceededFault":
|
|
1915
|
-
throw await de_ShardsPerClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
1916
|
-
default:
|
|
1917
|
-
const parsedBody = parsedOutput.body;
|
|
1918
|
-
return throwDefaultError({
|
|
1919
|
-
output,
|
|
1920
|
-
parsedBody,
|
|
1921
|
-
errorCode,
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
};
|
|
1925
|
-
const de_UpdateParameterGroupCommand = async (output, context) => {
|
|
1926
|
-
if (output.statusCode >= 300) {
|
|
1927
|
-
return de_UpdateParameterGroupCommandError(output, context);
|
|
1928
|
-
}
|
|
1929
|
-
const data = await parseBody(output.body, context);
|
|
1930
|
-
let contents = {};
|
|
1931
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1932
|
-
const response = {
|
|
1933
|
-
$metadata: deserializeMetadata(output),
|
|
1934
|
-
...contents,
|
|
1935
|
-
};
|
|
1936
|
-
return response;
|
|
1937
|
-
};
|
|
1938
|
-
exports.de_UpdateParameterGroupCommand = de_UpdateParameterGroupCommand;
|
|
1939
|
-
const de_UpdateParameterGroupCommandError = async (output, context) => {
|
|
1940
|
-
const parsedOutput = {
|
|
1941
|
-
...output,
|
|
1942
|
-
body: await parseErrorBody(output.body, context),
|
|
1943
|
-
};
|
|
1944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
|
-
switch (errorCode) {
|
|
1946
|
-
case "InvalidParameterCombinationException":
|
|
1947
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1948
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "InvalidParameterGroupStateFault":
|
|
1950
|
-
case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
|
|
1951
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1952
|
-
case "InvalidParameterValueException":
|
|
1953
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1954
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ParameterGroupNotFoundFault":
|
|
1956
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1957
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1958
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1959
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1960
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1961
|
-
default:
|
|
1962
|
-
const parsedBody = parsedOutput.body;
|
|
1963
|
-
return throwDefaultError({
|
|
1964
|
-
output,
|
|
1965
|
-
parsedBody,
|
|
1966
|
-
errorCode,
|
|
1967
|
-
});
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
|
-
const de_UpdateSubnetGroupCommand = async (output, context) => {
|
|
1971
|
-
if (output.statusCode >= 300) {
|
|
1972
|
-
return de_UpdateSubnetGroupCommandError(output, context);
|
|
1973
|
-
}
|
|
1974
|
-
const data = await parseBody(output.body, context);
|
|
1975
|
-
let contents = {};
|
|
1976
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1977
|
-
const response = {
|
|
1978
|
-
$metadata: deserializeMetadata(output),
|
|
1979
|
-
...contents,
|
|
1980
|
-
};
|
|
1981
|
-
return response;
|
|
1982
|
-
};
|
|
1983
|
-
exports.de_UpdateSubnetGroupCommand = de_UpdateSubnetGroupCommand;
|
|
1984
|
-
const de_UpdateSubnetGroupCommandError = async (output, context) => {
|
|
1985
|
-
const parsedOutput = {
|
|
1986
|
-
...output,
|
|
1987
|
-
body: await parseErrorBody(output.body, context),
|
|
1988
|
-
};
|
|
1989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
|
-
switch (errorCode) {
|
|
1991
|
-
case "InvalidSubnet":
|
|
1992
|
-
case "com.amazonaws.memorydb#InvalidSubnet":
|
|
1993
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1994
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1995
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1996
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1997
|
-
case "SubnetGroupNotFoundFault":
|
|
1998
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1999
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
2000
|
-
case "SubnetInUse":
|
|
2001
|
-
case "com.amazonaws.memorydb#SubnetInUse":
|
|
2002
|
-
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
2003
|
-
case "SubnetNotAllowedFault":
|
|
2004
|
-
case "com.amazonaws.memorydb#SubnetNotAllowedFault":
|
|
2005
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
2006
|
-
case "SubnetQuotaExceededFault":
|
|
2007
|
-
case "com.amazonaws.memorydb#SubnetQuotaExceededFault":
|
|
2008
|
-
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
2009
|
-
default:
|
|
2010
|
-
const parsedBody = parsedOutput.body;
|
|
2011
|
-
return throwDefaultError({
|
|
2012
|
-
output,
|
|
2013
|
-
parsedBody,
|
|
2014
|
-
errorCode,
|
|
2015
|
-
});
|
|
2016
|
-
}
|
|
2017
|
-
};
|
|
2018
|
-
const de_UpdateUserCommand = async (output, context) => {
|
|
2019
|
-
if (output.statusCode >= 300) {
|
|
2020
|
-
return de_UpdateUserCommandError(output, context);
|
|
2021
|
-
}
|
|
2022
|
-
const data = await parseBody(output.body, context);
|
|
2023
|
-
let contents = {};
|
|
2024
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2025
|
-
const response = {
|
|
2026
|
-
$metadata: deserializeMetadata(output),
|
|
2027
|
-
...contents,
|
|
2028
|
-
};
|
|
2029
|
-
return response;
|
|
2030
|
-
};
|
|
2031
|
-
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
2032
|
-
const de_UpdateUserCommandError = async (output, context) => {
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context),
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "InvalidParameterCombinationException":
|
|
2040
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
2041
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "InvalidParameterValueException":
|
|
2043
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
2044
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "InvalidUserStateFault":
|
|
2046
|
-
case "com.amazonaws.memorydb#InvalidUserStateFault":
|
|
2047
|
-
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
2048
|
-
case "UserNotFoundFault":
|
|
2049
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
2050
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
2051
|
-
default:
|
|
2052
|
-
const parsedBody = parsedOutput.body;
|
|
2053
|
-
return throwDefaultError({
|
|
2054
|
-
output,
|
|
2055
|
-
parsedBody,
|
|
2056
|
-
errorCode,
|
|
2057
|
-
});
|
|
2058
|
-
}
|
|
2059
|
-
};
|
|
2060
|
-
const de_ACLAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
2061
|
-
const body = parsedOutput.body;
|
|
2062
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2063
|
-
const exception = new models_0_1.ACLAlreadyExistsFault({
|
|
2064
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2065
|
-
...deserialized,
|
|
2066
|
-
});
|
|
2067
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2068
|
-
};
|
|
2069
|
-
const de_ACLNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2070
|
-
const body = parsedOutput.body;
|
|
2071
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2072
|
-
const exception = new models_0_1.ACLNotFoundFault({
|
|
2073
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2074
|
-
...deserialized,
|
|
2075
|
-
});
|
|
2076
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2077
|
-
};
|
|
2078
|
-
const de_ACLQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2079
|
-
const body = parsedOutput.body;
|
|
2080
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2081
|
-
const exception = new models_0_1.ACLQuotaExceededFault({
|
|
2082
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2083
|
-
...deserialized,
|
|
2084
|
-
});
|
|
2085
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2086
|
-
};
|
|
2087
|
-
const de_APICallRateForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
2088
|
-
const body = parsedOutput.body;
|
|
2089
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2090
|
-
const exception = new models_0_1.APICallRateForCustomerExceededFault({
|
|
2091
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2092
|
-
...deserialized,
|
|
2093
|
-
});
|
|
2094
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2095
|
-
};
|
|
2096
|
-
const de_ClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
2097
|
-
const body = parsedOutput.body;
|
|
2098
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2099
|
-
const exception = new models_0_1.ClusterAlreadyExistsFault({
|
|
2100
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2101
|
-
...deserialized,
|
|
2102
|
-
});
|
|
2103
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2104
|
-
};
|
|
2105
|
-
const de_ClusterNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2106
|
-
const body = parsedOutput.body;
|
|
2107
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2108
|
-
const exception = new models_0_1.ClusterNotFoundFault({
|
|
2109
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2110
|
-
...deserialized,
|
|
2111
|
-
});
|
|
2112
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2113
|
-
};
|
|
2114
|
-
const de_ClusterQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
2115
|
-
const body = parsedOutput.body;
|
|
2116
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2117
|
-
const exception = new models_0_1.ClusterQuotaForCustomerExceededFault({
|
|
2118
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2119
|
-
...deserialized,
|
|
2120
|
-
});
|
|
2121
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2122
|
-
};
|
|
2123
|
-
const de_DefaultUserRequiredRes = async (parsedOutput, context) => {
|
|
2124
|
-
const body = parsedOutput.body;
|
|
2125
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2126
|
-
const exception = new models_0_1.DefaultUserRequired({
|
|
2127
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2128
|
-
...deserialized,
|
|
2129
|
-
});
|
|
2130
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2131
|
-
};
|
|
2132
|
-
const de_DuplicateUserNameFaultRes = async (parsedOutput, context) => {
|
|
2133
|
-
const body = parsedOutput.body;
|
|
2134
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2135
|
-
const exception = new models_0_1.DuplicateUserNameFault({
|
|
2136
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2137
|
-
...deserialized,
|
|
2138
|
-
});
|
|
2139
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2140
|
-
};
|
|
2141
|
-
const de_InsufficientClusterCapacityFaultRes = async (parsedOutput, context) => {
|
|
2142
|
-
const body = parsedOutput.body;
|
|
2143
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2144
|
-
const exception = new models_0_1.InsufficientClusterCapacityFault({
|
|
2145
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2146
|
-
...deserialized,
|
|
2147
|
-
});
|
|
2148
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2149
|
-
};
|
|
2150
|
-
const de_InvalidACLStateFaultRes = async (parsedOutput, context) => {
|
|
2151
|
-
const body = parsedOutput.body;
|
|
2152
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2153
|
-
const exception = new models_0_1.InvalidACLStateFault({
|
|
2154
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2155
|
-
...deserialized,
|
|
2156
|
-
});
|
|
2157
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2158
|
-
};
|
|
2159
|
-
const de_InvalidARNFaultRes = async (parsedOutput, context) => {
|
|
2160
|
-
const body = parsedOutput.body;
|
|
2161
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2162
|
-
const exception = new models_0_1.InvalidARNFault({
|
|
2163
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2164
|
-
...deserialized,
|
|
2165
|
-
});
|
|
2166
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2167
|
-
};
|
|
2168
|
-
const de_InvalidClusterStateFaultRes = async (parsedOutput, context) => {
|
|
2169
|
-
const body = parsedOutput.body;
|
|
2170
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2171
|
-
const exception = new models_0_1.InvalidClusterStateFault({
|
|
2172
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2173
|
-
...deserialized,
|
|
2174
|
-
});
|
|
2175
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2176
|
-
};
|
|
2177
|
-
const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
|
|
2178
|
-
const body = parsedOutput.body;
|
|
2179
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2180
|
-
const exception = new models_0_1.InvalidCredentialsException({
|
|
2181
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2182
|
-
...deserialized,
|
|
2183
|
-
});
|
|
2184
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2185
|
-
};
|
|
2186
|
-
const de_InvalidKMSKeyFaultRes = async (parsedOutput, context) => {
|
|
2187
|
-
const body = parsedOutput.body;
|
|
2188
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2189
|
-
const exception = new models_0_1.InvalidKMSKeyFault({
|
|
2190
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2191
|
-
...deserialized,
|
|
2192
|
-
});
|
|
2193
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2194
|
-
};
|
|
2195
|
-
const de_InvalidNodeStateFaultRes = async (parsedOutput, context) => {
|
|
2196
|
-
const body = parsedOutput.body;
|
|
2197
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2198
|
-
const exception = new models_0_1.InvalidNodeStateFault({
|
|
2199
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2200
|
-
...deserialized,
|
|
2201
|
-
});
|
|
2202
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2203
|
-
};
|
|
2204
|
-
const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
|
|
2205
|
-
const body = parsedOutput.body;
|
|
2206
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2207
|
-
const exception = new models_0_1.InvalidParameterCombinationException({
|
|
2208
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2209
|
-
...deserialized,
|
|
2210
|
-
});
|
|
2211
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2212
|
-
};
|
|
2213
|
-
const de_InvalidParameterGroupStateFaultRes = async (parsedOutput, context) => {
|
|
2214
|
-
const body = parsedOutput.body;
|
|
2215
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2216
|
-
const exception = new models_0_1.InvalidParameterGroupStateFault({
|
|
2217
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2218
|
-
...deserialized,
|
|
2219
|
-
});
|
|
2220
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2221
|
-
};
|
|
2222
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2223
|
-
const body = parsedOutput.body;
|
|
2224
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2225
|
-
const exception = new models_0_1.InvalidParameterValueException({
|
|
2226
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2227
|
-
...deserialized,
|
|
2228
|
-
});
|
|
2229
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2230
|
-
};
|
|
2231
|
-
const de_InvalidSnapshotStateFaultRes = async (parsedOutput, context) => {
|
|
2232
|
-
const body = parsedOutput.body;
|
|
2233
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2234
|
-
const exception = new models_0_1.InvalidSnapshotStateFault({
|
|
2235
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2236
|
-
...deserialized,
|
|
2237
|
-
});
|
|
2238
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2239
|
-
};
|
|
2240
|
-
const de_InvalidSubnetRes = async (parsedOutput, context) => {
|
|
2241
|
-
const body = parsedOutput.body;
|
|
2242
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2243
|
-
const exception = new models_0_1.InvalidSubnet({
|
|
2244
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2245
|
-
...deserialized,
|
|
2246
|
-
});
|
|
2247
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2248
|
-
};
|
|
2249
|
-
const de_InvalidUserStateFaultRes = async (parsedOutput, context) => {
|
|
2250
|
-
const body = parsedOutput.body;
|
|
2251
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2252
|
-
const exception = new models_0_1.InvalidUserStateFault({
|
|
2253
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2254
|
-
...deserialized,
|
|
2255
|
-
});
|
|
2256
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2257
|
-
};
|
|
2258
|
-
const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
|
|
2259
|
-
const body = parsedOutput.body;
|
|
2260
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2261
|
-
const exception = new models_0_1.InvalidVPCNetworkStateFault({
|
|
2262
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2263
|
-
...deserialized,
|
|
2264
|
-
});
|
|
2265
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2266
|
-
};
|
|
2267
|
-
const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
|
|
2268
|
-
const body = parsedOutput.body;
|
|
2269
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2270
|
-
const exception = new models_0_1.NodeQuotaForClusterExceededFault({
|
|
2271
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2272
|
-
...deserialized,
|
|
2273
|
-
});
|
|
2274
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2275
|
-
};
|
|
2276
|
-
const de_NodeQuotaForCustomerExceededFaultRes = async (parsedOutput, context) => {
|
|
2277
|
-
const body = parsedOutput.body;
|
|
2278
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2279
|
-
const exception = new models_0_1.NodeQuotaForCustomerExceededFault({
|
|
2280
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2281
|
-
...deserialized,
|
|
2282
|
-
});
|
|
2283
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2284
|
-
};
|
|
2285
|
-
const de_NoOperationFaultRes = async (parsedOutput, context) => {
|
|
2286
|
-
const body = parsedOutput.body;
|
|
2287
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2288
|
-
const exception = new models_0_1.NoOperationFault({
|
|
2289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2290
|
-
...deserialized,
|
|
2291
|
-
});
|
|
2292
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2293
|
-
};
|
|
2294
|
-
const de_ParameterGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
2295
|
-
const body = parsedOutput.body;
|
|
2296
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2297
|
-
const exception = new models_0_1.ParameterGroupAlreadyExistsFault({
|
|
2298
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2299
|
-
...deserialized,
|
|
2300
|
-
});
|
|
2301
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2302
|
-
};
|
|
2303
|
-
const de_ParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2304
|
-
const body = parsedOutput.body;
|
|
2305
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2306
|
-
const exception = new models_0_1.ParameterGroupNotFoundFault({
|
|
2307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2308
|
-
...deserialized,
|
|
2309
|
-
});
|
|
2310
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2311
|
-
};
|
|
2312
|
-
const de_ParameterGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2313
|
-
const body = parsedOutput.body;
|
|
2314
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2315
|
-
const exception = new models_0_1.ParameterGroupQuotaExceededFault({
|
|
2316
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2317
|
-
...deserialized,
|
|
2318
|
-
});
|
|
2319
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2320
|
-
};
|
|
2321
|
-
const de_ReservedNodeAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
2322
|
-
const body = parsedOutput.body;
|
|
2323
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2324
|
-
const exception = new models_0_1.ReservedNodeAlreadyExistsFault({
|
|
2325
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2326
|
-
...deserialized,
|
|
2327
|
-
});
|
|
2328
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2329
|
-
};
|
|
2330
|
-
const de_ReservedNodeNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2331
|
-
const body = parsedOutput.body;
|
|
2332
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2333
|
-
const exception = new models_0_1.ReservedNodeNotFoundFault({
|
|
2334
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2335
|
-
...deserialized,
|
|
2336
|
-
});
|
|
2337
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2338
|
-
};
|
|
2339
|
-
const de_ReservedNodeQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2340
|
-
const body = parsedOutput.body;
|
|
2341
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2342
|
-
const exception = new models_0_1.ReservedNodeQuotaExceededFault({
|
|
2343
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2344
|
-
...deserialized,
|
|
2345
|
-
});
|
|
2346
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2347
|
-
};
|
|
2348
|
-
const de_ReservedNodesOfferingNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2349
|
-
const body = parsedOutput.body;
|
|
2350
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2351
|
-
const exception = new models_0_1.ReservedNodesOfferingNotFoundFault({
|
|
2352
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2353
|
-
...deserialized,
|
|
2354
|
-
});
|
|
2355
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2356
|
-
};
|
|
2357
|
-
const de_ServiceLinkedRoleNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2358
|
-
const body = parsedOutput.body;
|
|
2359
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2360
|
-
const exception = new models_0_1.ServiceLinkedRoleNotFoundFault({
|
|
2361
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2362
|
-
...deserialized,
|
|
2363
|
-
});
|
|
2364
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2365
|
-
};
|
|
2366
|
-
const de_ServiceUpdateNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2367
|
-
const body = parsedOutput.body;
|
|
2368
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2369
|
-
const exception = new models_0_1.ServiceUpdateNotFoundFault({
|
|
2370
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2371
|
-
...deserialized,
|
|
2372
|
-
});
|
|
2373
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2374
|
-
};
|
|
2375
|
-
const de_ShardNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2376
|
-
const body = parsedOutput.body;
|
|
2377
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2378
|
-
const exception = new models_0_1.ShardNotFoundFault({
|
|
2379
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2380
|
-
...deserialized,
|
|
2381
|
-
});
|
|
2382
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2383
|
-
};
|
|
2384
|
-
const de_ShardsPerClusterQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2385
|
-
const body = parsedOutput.body;
|
|
2386
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2387
|
-
const exception = new models_0_1.ShardsPerClusterQuotaExceededFault({
|
|
2388
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2389
|
-
...deserialized,
|
|
2390
|
-
});
|
|
2391
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2392
|
-
};
|
|
2393
|
-
const de_SnapshotAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
2394
|
-
const body = parsedOutput.body;
|
|
2395
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2396
|
-
const exception = new models_0_1.SnapshotAlreadyExistsFault({
|
|
2397
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2398
|
-
...deserialized,
|
|
2399
|
-
});
|
|
2400
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2401
|
-
};
|
|
2402
|
-
const de_SnapshotNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2403
|
-
const body = parsedOutput.body;
|
|
2404
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2405
|
-
const exception = new models_0_1.SnapshotNotFoundFault({
|
|
2406
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2407
|
-
...deserialized,
|
|
2408
|
-
});
|
|
2409
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2410
|
-
};
|
|
2411
|
-
const de_SnapshotQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2412
|
-
const body = parsedOutput.body;
|
|
2413
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2414
|
-
const exception = new models_0_1.SnapshotQuotaExceededFault({
|
|
2415
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2416
|
-
...deserialized,
|
|
2417
|
-
});
|
|
2418
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2419
|
-
};
|
|
2420
|
-
const de_SubnetGroupAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
2421
|
-
const body = parsedOutput.body;
|
|
2422
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2423
|
-
const exception = new models_0_1.SubnetGroupAlreadyExistsFault({
|
|
2424
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2425
|
-
...deserialized,
|
|
2426
|
-
});
|
|
2427
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2428
|
-
};
|
|
2429
|
-
const de_SubnetGroupInUseFaultRes = async (parsedOutput, context) => {
|
|
2430
|
-
const body = parsedOutput.body;
|
|
2431
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2432
|
-
const exception = new models_0_1.SubnetGroupInUseFault({
|
|
2433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2434
|
-
...deserialized,
|
|
2435
|
-
});
|
|
2436
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2437
|
-
};
|
|
2438
|
-
const de_SubnetGroupNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2439
|
-
const body = parsedOutput.body;
|
|
2440
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2441
|
-
const exception = new models_0_1.SubnetGroupNotFoundFault({
|
|
2442
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2443
|
-
...deserialized,
|
|
2444
|
-
});
|
|
2445
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2446
|
-
};
|
|
2447
|
-
const de_SubnetGroupQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2448
|
-
const body = parsedOutput.body;
|
|
2449
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2450
|
-
const exception = new models_0_1.SubnetGroupQuotaExceededFault({
|
|
2451
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2452
|
-
...deserialized,
|
|
2453
|
-
});
|
|
2454
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2455
|
-
};
|
|
2456
|
-
const de_SubnetInUseRes = async (parsedOutput, context) => {
|
|
2457
|
-
const body = parsedOutput.body;
|
|
2458
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2459
|
-
const exception = new models_0_1.SubnetInUse({
|
|
2460
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2461
|
-
...deserialized,
|
|
2462
|
-
});
|
|
2463
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2464
|
-
};
|
|
2465
|
-
const de_SubnetNotAllowedFaultRes = async (parsedOutput, context) => {
|
|
2466
|
-
const body = parsedOutput.body;
|
|
2467
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2468
|
-
const exception = new models_0_1.SubnetNotAllowedFault({
|
|
2469
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2470
|
-
...deserialized,
|
|
2471
|
-
});
|
|
2472
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2473
|
-
};
|
|
2474
|
-
const de_SubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2475
|
-
const body = parsedOutput.body;
|
|
2476
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2477
|
-
const exception = new models_0_1.SubnetQuotaExceededFault({
|
|
2478
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2479
|
-
...deserialized,
|
|
2480
|
-
});
|
|
2481
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2482
|
-
};
|
|
2483
|
-
const de_TagNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2484
|
-
const body = parsedOutput.body;
|
|
2485
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2486
|
-
const exception = new models_0_1.TagNotFoundFault({
|
|
2487
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2488
|
-
...deserialized,
|
|
2489
|
-
});
|
|
2490
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2491
|
-
};
|
|
2492
|
-
const de_TagQuotaPerResourceExceededRes = async (parsedOutput, context) => {
|
|
2493
|
-
const body = parsedOutput.body;
|
|
2494
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2495
|
-
const exception = new models_0_1.TagQuotaPerResourceExceeded({
|
|
2496
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2497
|
-
...deserialized,
|
|
2498
|
-
});
|
|
2499
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2500
|
-
};
|
|
2501
|
-
const de_TestFailoverNotAvailableFaultRes = async (parsedOutput, context) => {
|
|
2502
|
-
const body = parsedOutput.body;
|
|
2503
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2504
|
-
const exception = new models_0_1.TestFailoverNotAvailableFault({
|
|
2505
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2506
|
-
...deserialized,
|
|
2507
|
-
});
|
|
2508
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2509
|
-
};
|
|
2510
|
-
const de_UserAlreadyExistsFaultRes = async (parsedOutput, context) => {
|
|
2511
|
-
const body = parsedOutput.body;
|
|
2512
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2513
|
-
const exception = new models_0_1.UserAlreadyExistsFault({
|
|
2514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2515
|
-
...deserialized,
|
|
2516
|
-
});
|
|
2517
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2518
|
-
};
|
|
2519
|
-
const de_UserNotFoundFaultRes = async (parsedOutput, context) => {
|
|
2520
|
-
const body = parsedOutput.body;
|
|
2521
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2522
|
-
const exception = new models_0_1.UserNotFoundFault({
|
|
2523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2524
|
-
...deserialized,
|
|
2525
|
-
});
|
|
2526
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2527
|
-
};
|
|
2528
|
-
const de_UserQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
2529
|
-
const body = parsedOutput.body;
|
|
2530
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2531
|
-
const exception = new models_0_1.UserQuotaExceededFault({
|
|
2532
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2533
|
-
...deserialized,
|
|
2534
|
-
});
|
|
2535
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2536
|
-
};
|
|
2537
|
-
const se_DescribeEventsRequest = (input, context) => {
|
|
2538
|
-
return (0, smithy_client_1.take)(input, {
|
|
2539
|
-
Duration: [],
|
|
2540
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2541
|
-
MaxResults: [],
|
|
2542
|
-
NextToken: [],
|
|
2543
|
-
SourceName: [],
|
|
2544
|
-
SourceType: [],
|
|
2545
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2546
|
-
});
|
|
2547
|
-
};
|
|
2548
|
-
const de_BatchUpdateClusterResponse = (output, context) => {
|
|
2549
|
-
return (0, smithy_client_1.take)(output, {
|
|
2550
|
-
ProcessedClusters: (_) => de_ClusterList(_, context),
|
|
2551
|
-
UnprocessedClusters: smithy_client_1._json,
|
|
2552
|
-
});
|
|
2553
|
-
};
|
|
2554
|
-
const de_Cluster = (output, context) => {
|
|
2555
|
-
return (0, smithy_client_1.take)(output, {
|
|
2556
|
-
ACLName: smithy_client_1.expectString,
|
|
2557
|
-
ARN: smithy_client_1.expectString,
|
|
2558
|
-
AutoMinorVersionUpgrade: smithy_client_1.expectBoolean,
|
|
2559
|
-
AvailabilityMode: smithy_client_1.expectString,
|
|
2560
|
-
ClusterEndpoint: smithy_client_1._json,
|
|
2561
|
-
DataTiering: smithy_client_1.expectString,
|
|
2562
|
-
Description: smithy_client_1.expectString,
|
|
2563
|
-
EnginePatchVersion: smithy_client_1.expectString,
|
|
2564
|
-
EngineVersion: smithy_client_1.expectString,
|
|
2565
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
2566
|
-
MaintenanceWindow: smithy_client_1.expectString,
|
|
2567
|
-
Name: smithy_client_1.expectString,
|
|
2568
|
-
NodeType: smithy_client_1.expectString,
|
|
2569
|
-
NumberOfShards: smithy_client_1.expectInt32,
|
|
2570
|
-
ParameterGroupName: smithy_client_1.expectString,
|
|
2571
|
-
ParameterGroupStatus: smithy_client_1.expectString,
|
|
2572
|
-
PendingUpdates: (_) => de_ClusterPendingUpdates(_, context),
|
|
2573
|
-
SecurityGroups: smithy_client_1._json,
|
|
2574
|
-
Shards: (_) => de_ShardList(_, context),
|
|
2575
|
-
SnapshotRetentionLimit: smithy_client_1.expectInt32,
|
|
2576
|
-
SnapshotWindow: smithy_client_1.expectString,
|
|
2577
|
-
SnsTopicArn: smithy_client_1.expectString,
|
|
2578
|
-
SnsTopicStatus: smithy_client_1.expectString,
|
|
2579
|
-
Status: smithy_client_1.expectString,
|
|
2580
|
-
SubnetGroupName: smithy_client_1.expectString,
|
|
2581
|
-
TLSEnabled: smithy_client_1.expectBoolean,
|
|
2582
|
-
});
|
|
2583
|
-
};
|
|
2584
|
-
const de_ClusterConfiguration = (output, context) => {
|
|
2585
|
-
return (0, smithy_client_1.take)(output, {
|
|
2586
|
-
Description: smithy_client_1.expectString,
|
|
2587
|
-
EngineVersion: smithy_client_1.expectString,
|
|
2588
|
-
MaintenanceWindow: smithy_client_1.expectString,
|
|
2589
|
-
Name: smithy_client_1.expectString,
|
|
2590
|
-
NodeType: smithy_client_1.expectString,
|
|
2591
|
-
NumShards: smithy_client_1.expectInt32,
|
|
2592
|
-
ParameterGroupName: smithy_client_1.expectString,
|
|
2593
|
-
Port: smithy_client_1.expectInt32,
|
|
2594
|
-
Shards: (_) => de_ShardDetails(_, context),
|
|
2595
|
-
SnapshotRetentionLimit: smithy_client_1.expectInt32,
|
|
2596
|
-
SnapshotWindow: smithy_client_1.expectString,
|
|
2597
|
-
SubnetGroupName: smithy_client_1.expectString,
|
|
2598
|
-
TopicArn: smithy_client_1.expectString,
|
|
2599
|
-
VpcId: smithy_client_1.expectString,
|
|
2600
|
-
});
|
|
2601
|
-
};
|
|
2602
|
-
const de_ClusterList = (output, context) => {
|
|
2603
|
-
const retVal = (output || [])
|
|
2604
|
-
.filter((e) => e != null)
|
|
2605
|
-
.map((entry) => {
|
|
2606
|
-
return de_Cluster(entry, context);
|
|
2607
|
-
});
|
|
2608
|
-
return retVal;
|
|
2609
|
-
};
|
|
2610
|
-
const de_ClusterPendingUpdates = (output, context) => {
|
|
2611
|
-
return (0, smithy_client_1.take)(output, {
|
|
2612
|
-
ACLs: smithy_client_1._json,
|
|
2613
|
-
Resharding: (_) => de_ReshardingStatus(_, context),
|
|
2614
|
-
ServiceUpdates: smithy_client_1._json,
|
|
2615
|
-
});
|
|
2616
|
-
};
|
|
2617
|
-
const de_CopySnapshotResponse = (output, context) => {
|
|
2618
|
-
return (0, smithy_client_1.take)(output, {
|
|
2619
|
-
Snapshot: (_) => de_Snapshot(_, context),
|
|
2620
|
-
});
|
|
2621
|
-
};
|
|
2622
|
-
const de_CreateClusterResponse = (output, context) => {
|
|
2623
|
-
return (0, smithy_client_1.take)(output, {
|
|
2624
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
2625
|
-
});
|
|
2626
|
-
};
|
|
2627
|
-
const de_CreateSnapshotResponse = (output, context) => {
|
|
2628
|
-
return (0, smithy_client_1.take)(output, {
|
|
2629
|
-
Snapshot: (_) => de_Snapshot(_, context),
|
|
2630
|
-
});
|
|
2631
|
-
};
|
|
2632
|
-
const de_DeleteClusterResponse = (output, context) => {
|
|
2633
|
-
return (0, smithy_client_1.take)(output, {
|
|
2634
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
2635
|
-
});
|
|
2636
|
-
};
|
|
2637
|
-
const de_DeleteSnapshotResponse = (output, context) => {
|
|
2638
|
-
return (0, smithy_client_1.take)(output, {
|
|
2639
|
-
Snapshot: (_) => de_Snapshot(_, context),
|
|
2640
|
-
});
|
|
2641
|
-
};
|
|
2642
|
-
const de_DescribeClustersResponse = (output, context) => {
|
|
2643
|
-
return (0, smithy_client_1.take)(output, {
|
|
2644
|
-
Clusters: (_) => de_ClusterList(_, context),
|
|
2645
|
-
NextToken: smithy_client_1.expectString,
|
|
2646
|
-
});
|
|
2647
|
-
};
|
|
2648
|
-
const de_DescribeEventsResponse = (output, context) => {
|
|
2649
|
-
return (0, smithy_client_1.take)(output, {
|
|
2650
|
-
Events: (_) => de_EventList(_, context),
|
|
2651
|
-
NextToken: smithy_client_1.expectString,
|
|
2652
|
-
});
|
|
2653
|
-
};
|
|
2654
|
-
const de_DescribeReservedNodesOfferingsResponse = (output, context) => {
|
|
2655
|
-
return (0, smithy_client_1.take)(output, {
|
|
2656
|
-
NextToken: smithy_client_1.expectString,
|
|
2657
|
-
ReservedNodesOfferings: (_) => de_ReservedNodesOfferingList(_, context),
|
|
2658
|
-
});
|
|
2659
|
-
};
|
|
2660
|
-
const de_DescribeReservedNodesResponse = (output, context) => {
|
|
2661
|
-
return (0, smithy_client_1.take)(output, {
|
|
2662
|
-
NextToken: smithy_client_1.expectString,
|
|
2663
|
-
ReservedNodes: (_) => de_ReservedNodeList(_, context),
|
|
2664
|
-
});
|
|
2665
|
-
};
|
|
2666
|
-
const de_DescribeServiceUpdatesResponse = (output, context) => {
|
|
2667
|
-
return (0, smithy_client_1.take)(output, {
|
|
2668
|
-
NextToken: smithy_client_1.expectString,
|
|
2669
|
-
ServiceUpdates: (_) => de_ServiceUpdateList(_, context),
|
|
2670
|
-
});
|
|
2671
|
-
};
|
|
2672
|
-
const de_DescribeSnapshotsResponse = (output, context) => {
|
|
2673
|
-
return (0, smithy_client_1.take)(output, {
|
|
2674
|
-
NextToken: smithy_client_1.expectString,
|
|
2675
|
-
Snapshots: (_) => de_SnapshotList(_, context),
|
|
2676
|
-
});
|
|
2677
|
-
};
|
|
2678
|
-
const de_Event = (output, context) => {
|
|
2679
|
-
return (0, smithy_client_1.take)(output, {
|
|
2680
|
-
Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2681
|
-
Message: smithy_client_1.expectString,
|
|
2682
|
-
SourceName: smithy_client_1.expectString,
|
|
2683
|
-
SourceType: smithy_client_1.expectString,
|
|
2684
|
-
});
|
|
2685
|
-
};
|
|
2686
|
-
const de_EventList = (output, context) => {
|
|
2687
|
-
const retVal = (output || [])
|
|
2688
|
-
.filter((e) => e != null)
|
|
2689
|
-
.map((entry) => {
|
|
2690
|
-
return de_Event(entry, context);
|
|
2691
|
-
});
|
|
2692
|
-
return retVal;
|
|
2693
|
-
};
|
|
2694
|
-
const de_FailoverShardResponse = (output, context) => {
|
|
2695
|
-
return (0, smithy_client_1.take)(output, {
|
|
2696
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
2697
|
-
});
|
|
2698
|
-
};
|
|
2699
|
-
const de_Node = (output, context) => {
|
|
2700
|
-
return (0, smithy_client_1.take)(output, {
|
|
2701
|
-
AvailabilityZone: smithy_client_1.expectString,
|
|
2702
|
-
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2703
|
-
Endpoint: smithy_client_1._json,
|
|
2704
|
-
Name: smithy_client_1.expectString,
|
|
2705
|
-
Status: smithy_client_1.expectString,
|
|
2706
|
-
});
|
|
2707
|
-
};
|
|
2708
|
-
const de_NodeList = (output, context) => {
|
|
2709
|
-
const retVal = (output || [])
|
|
2710
|
-
.filter((e) => e != null)
|
|
2711
|
-
.map((entry) => {
|
|
2712
|
-
return de_Node(entry, context);
|
|
2713
|
-
});
|
|
2714
|
-
return retVal;
|
|
2715
|
-
};
|
|
2716
|
-
const de_PurchaseReservedNodesOfferingResponse = (output, context) => {
|
|
2717
|
-
return (0, smithy_client_1.take)(output, {
|
|
2718
|
-
ReservedNode: (_) => de_ReservedNode(_, context),
|
|
2719
|
-
});
|
|
2720
|
-
};
|
|
2721
|
-
const de_RecurringCharge = (output, context) => {
|
|
2722
|
-
return (0, smithy_client_1.take)(output, {
|
|
2723
|
-
RecurringChargeAmount: smithy_client_1.limitedParseDouble,
|
|
2724
|
-
RecurringChargeFrequency: smithy_client_1.expectString,
|
|
2725
|
-
});
|
|
2726
|
-
};
|
|
2727
|
-
const de_RecurringChargeList = (output, context) => {
|
|
2728
|
-
const retVal = (output || [])
|
|
2729
|
-
.filter((e) => e != null)
|
|
2730
|
-
.map((entry) => {
|
|
2731
|
-
return de_RecurringCharge(entry, context);
|
|
2732
|
-
});
|
|
2733
|
-
return retVal;
|
|
2734
|
-
};
|
|
2735
|
-
const de_ReservedNode = (output, context) => {
|
|
2736
|
-
return (0, smithy_client_1.take)(output, {
|
|
2737
|
-
ARN: smithy_client_1.expectString,
|
|
2738
|
-
Duration: smithy_client_1.expectInt32,
|
|
2739
|
-
FixedPrice: smithy_client_1.limitedParseDouble,
|
|
2740
|
-
NodeCount: smithy_client_1.expectInt32,
|
|
2741
|
-
NodeType: smithy_client_1.expectString,
|
|
2742
|
-
OfferingType: smithy_client_1.expectString,
|
|
2743
|
-
RecurringCharges: (_) => de_RecurringChargeList(_, context),
|
|
2744
|
-
ReservationId: smithy_client_1.expectString,
|
|
2745
|
-
ReservedNodesOfferingId: smithy_client_1.expectString,
|
|
2746
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2747
|
-
State: smithy_client_1.expectString,
|
|
2748
|
-
});
|
|
2749
|
-
};
|
|
2750
|
-
const de_ReservedNodeList = (output, context) => {
|
|
2751
|
-
const retVal = (output || [])
|
|
2752
|
-
.filter((e) => e != null)
|
|
2753
|
-
.map((entry) => {
|
|
2754
|
-
return de_ReservedNode(entry, context);
|
|
2755
|
-
});
|
|
2756
|
-
return retVal;
|
|
2757
|
-
};
|
|
2758
|
-
const de_ReservedNodesOffering = (output, context) => {
|
|
2759
|
-
return (0, smithy_client_1.take)(output, {
|
|
2760
|
-
Duration: smithy_client_1.expectInt32,
|
|
2761
|
-
FixedPrice: smithy_client_1.limitedParseDouble,
|
|
2762
|
-
NodeType: smithy_client_1.expectString,
|
|
2763
|
-
OfferingType: smithy_client_1.expectString,
|
|
2764
|
-
RecurringCharges: (_) => de_RecurringChargeList(_, context),
|
|
2765
|
-
ReservedNodesOfferingId: smithy_client_1.expectString,
|
|
2766
|
-
});
|
|
2767
|
-
};
|
|
2768
|
-
const de_ReservedNodesOfferingList = (output, context) => {
|
|
2769
|
-
const retVal = (output || [])
|
|
2770
|
-
.filter((e) => e != null)
|
|
2771
|
-
.map((entry) => {
|
|
2772
|
-
return de_ReservedNodesOffering(entry, context);
|
|
2773
|
-
});
|
|
2774
|
-
return retVal;
|
|
2775
|
-
};
|
|
2776
|
-
const de_ReshardingStatus = (output, context) => {
|
|
2777
|
-
return (0, smithy_client_1.take)(output, {
|
|
2778
|
-
SlotMigration: (_) => de_SlotMigration(_, context),
|
|
2779
|
-
});
|
|
2780
|
-
};
|
|
2781
|
-
const de_ServiceUpdate = (output, context) => {
|
|
2782
|
-
return (0, smithy_client_1.take)(output, {
|
|
2783
|
-
AutoUpdateStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2784
|
-
ClusterName: smithy_client_1.expectString,
|
|
2785
|
-
Description: smithy_client_1.expectString,
|
|
2786
|
-
NodesUpdated: smithy_client_1.expectString,
|
|
2787
|
-
ReleaseDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2788
|
-
ServiceUpdateName: smithy_client_1.expectString,
|
|
2789
|
-
Status: smithy_client_1.expectString,
|
|
2790
|
-
Type: smithy_client_1.expectString,
|
|
2791
|
-
});
|
|
2792
|
-
};
|
|
2793
|
-
const de_ServiceUpdateList = (output, context) => {
|
|
2794
|
-
const retVal = (output || [])
|
|
2795
|
-
.filter((e) => e != null)
|
|
2796
|
-
.map((entry) => {
|
|
2797
|
-
return de_ServiceUpdate(entry, context);
|
|
2798
|
-
});
|
|
2799
|
-
return retVal;
|
|
2800
|
-
};
|
|
2801
|
-
const de_Shard = (output, context) => {
|
|
2802
|
-
return (0, smithy_client_1.take)(output, {
|
|
2803
|
-
Name: smithy_client_1.expectString,
|
|
2804
|
-
Nodes: (_) => de_NodeList(_, context),
|
|
2805
|
-
NumberOfNodes: smithy_client_1.expectInt32,
|
|
2806
|
-
Slots: smithy_client_1.expectString,
|
|
2807
|
-
Status: smithy_client_1.expectString,
|
|
2808
|
-
});
|
|
2809
|
-
};
|
|
2810
|
-
const de_ShardDetail = (output, context) => {
|
|
2811
|
-
return (0, smithy_client_1.take)(output, {
|
|
2812
|
-
Configuration: smithy_client_1._json,
|
|
2813
|
-
Name: smithy_client_1.expectString,
|
|
2814
|
-
Size: smithy_client_1.expectString,
|
|
2815
|
-
SnapshotCreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2816
|
-
});
|
|
2817
|
-
};
|
|
2818
|
-
const de_ShardDetails = (output, context) => {
|
|
2819
|
-
const retVal = (output || [])
|
|
2820
|
-
.filter((e) => e != null)
|
|
2821
|
-
.map((entry) => {
|
|
2822
|
-
return de_ShardDetail(entry, context);
|
|
2823
|
-
});
|
|
2824
|
-
return retVal;
|
|
2825
|
-
};
|
|
2826
|
-
const de_ShardList = (output, context) => {
|
|
2827
|
-
const retVal = (output || [])
|
|
2828
|
-
.filter((e) => e != null)
|
|
2829
|
-
.map((entry) => {
|
|
2830
|
-
return de_Shard(entry, context);
|
|
2831
|
-
});
|
|
2832
|
-
return retVal;
|
|
2833
|
-
};
|
|
2834
|
-
const de_SlotMigration = (output, context) => {
|
|
2835
|
-
return (0, smithy_client_1.take)(output, {
|
|
2836
|
-
ProgressPercentage: smithy_client_1.limitedParseDouble,
|
|
2837
|
-
});
|
|
2838
|
-
};
|
|
2839
|
-
const de_Snapshot = (output, context) => {
|
|
2840
|
-
return (0, smithy_client_1.take)(output, {
|
|
2841
|
-
ARN: smithy_client_1.expectString,
|
|
2842
|
-
ClusterConfiguration: (_) => de_ClusterConfiguration(_, context),
|
|
2843
|
-
DataTiering: smithy_client_1.expectString,
|
|
2844
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
2845
|
-
Name: smithy_client_1.expectString,
|
|
2846
|
-
Source: smithy_client_1.expectString,
|
|
2847
|
-
Status: smithy_client_1.expectString,
|
|
2848
|
-
});
|
|
2849
|
-
};
|
|
2850
|
-
const de_SnapshotList = (output, context) => {
|
|
2851
|
-
const retVal = (output || [])
|
|
2852
|
-
.filter((e) => e != null)
|
|
2853
|
-
.map((entry) => {
|
|
2854
|
-
return de_Snapshot(entry, context);
|
|
2855
|
-
});
|
|
2856
|
-
return retVal;
|
|
2857
|
-
};
|
|
2858
|
-
const de_UpdateClusterResponse = (output, context) => {
|
|
2859
|
-
return (0, smithy_client_1.take)(output, {
|
|
2860
|
-
Cluster: (_) => de_Cluster(_, context),
|
|
2861
|
-
});
|
|
2862
|
-
};
|
|
2863
|
-
const deserializeMetadata = (output) => ({
|
|
2864
|
-
httpStatusCode: output.statusCode,
|
|
2865
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2866
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2867
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2868
|
-
});
|
|
2869
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2870
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MemoryDBServiceException_1.MemoryDBServiceException);
|
|
2871
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2872
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2873
|
-
const contents = {
|
|
2874
|
-
protocol,
|
|
2875
|
-
hostname,
|
|
2876
|
-
port,
|
|
2877
|
-
method: "POST",
|
|
2878
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2879
|
-
headers,
|
|
2880
|
-
};
|
|
2881
|
-
if (resolvedHostname !== undefined) {
|
|
2882
|
-
contents.hostname = resolvedHostname;
|
|
2883
|
-
}
|
|
2884
|
-
if (body !== undefined) {
|
|
2885
|
-
contents.body = body;
|
|
2886
|
-
}
|
|
2887
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
2888
|
-
};
|
|
2889
|
-
function sharedHeaders(operation) {
|
|
2890
|
-
return {
|
|
2891
|
-
"content-type": "application/x-amz-json-1.1",
|
|
2892
|
-
"x-amz-target": `AmazonMemoryDB.${operation}`,
|
|
2893
|
-
};
|
|
2894
|
-
}
|
|
2895
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2896
|
-
if (encoded.length) {
|
|
2897
|
-
return JSON.parse(encoded);
|
|
2898
|
-
}
|
|
2899
|
-
return {};
|
|
2900
|
-
});
|
|
2901
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2902
|
-
const value = await parseBody(errorBody, context);
|
|
2903
|
-
value.message = value.message ?? value.Message;
|
|
2904
|
-
return value;
|
|
2905
|
-
};
|
|
2906
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2907
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2908
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2909
|
-
let cleanValue = rawValue;
|
|
2910
|
-
if (typeof cleanValue === "number") {
|
|
2911
|
-
cleanValue = cleanValue.toString();
|
|
2912
|
-
}
|
|
2913
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2914
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2915
|
-
}
|
|
2916
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2917
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2918
|
-
}
|
|
2919
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2920
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2921
|
-
}
|
|
2922
|
-
return cleanValue;
|
|
2923
|
-
};
|
|
2924
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2925
|
-
if (headerKey !== undefined) {
|
|
2926
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2927
|
-
}
|
|
2928
|
-
if (data.code !== undefined) {
|
|
2929
|
-
return sanitizeErrorCode(data.code);
|
|
2930
|
-
}
|
|
2931
|
-
if (data["__type"] !== undefined) {
|
|
2932
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2933
|
-
}
|
|
2934
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|