@aws-sdk/client-cloudhsm-v2 3.303.0 → 3.309.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/commands/CopyBackupToRegionCommand.js +2 -2
- package/dist-cjs/commands/CreateClusterCommand.js +2 -2
- package/dist-cjs/commands/CreateHsmCommand.js +2 -2
- package/dist-cjs/commands/DeleteBackupCommand.js +2 -2
- package/dist-cjs/commands/DeleteClusterCommand.js +2 -2
- package/dist-cjs/commands/DeleteHsmCommand.js +2 -2
- package/dist-cjs/commands/DescribeBackupsCommand.js +2 -2
- package/dist-cjs/commands/DescribeClustersCommand.js +2 -2
- package/dist-cjs/commands/InitializeClusterCommand.js +2 -2
- package/dist-cjs/commands/ListTagsCommand.js +2 -2
- package/dist-cjs/commands/ModifyBackupAttributesCommand.js +2 -2
- package/dist-cjs/commands/ModifyClusterCommand.js +2 -2
- package/dist-cjs/commands/RestoreBackupCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +302 -306
- package/dist-es/commands/CopyBackupToRegionCommand.js +3 -3
- package/dist-es/commands/CreateClusterCommand.js +3 -3
- package/dist-es/commands/CreateHsmCommand.js +3 -3
- package/dist-es/commands/DeleteBackupCommand.js +3 -3
- package/dist-es/commands/DeleteClusterCommand.js +3 -3
- package/dist-es/commands/DeleteHsmCommand.js +3 -3
- package/dist-es/commands/DescribeBackupsCommand.js +3 -3
- package/dist-es/commands/DescribeClustersCommand.js +3 -3
- package/dist-es/commands/InitializeClusterCommand.js +3 -3
- package/dist-es/commands/ListTagsCommand.js +3 -3
- package/dist-es/commands/ModifyBackupAttributesCommand.js +3 -3
- package/dist-es/commands/ModifyClusterCommand.js +3 -3
- package/dist-es/commands/RestoreBackupCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +271 -275
- package/dist-types/protocols/Aws_json1_1.d.ts +120 -30
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +30 -30
- package/package.json +29 -29
|
@@ -1,175 +1,175 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RestoreBackupCommand = exports.de_ModifyClusterCommand = exports.de_ModifyBackupAttributesCommand = exports.de_ListTagsCommand = exports.de_InitializeClusterCommand = exports.de_DescribeClustersCommand = exports.de_DescribeBackupsCommand = exports.de_DeleteHsmCommand = exports.de_DeleteClusterCommand = exports.de_DeleteBackupCommand = exports.de_CreateHsmCommand = exports.de_CreateClusterCommand = exports.de_CopyBackupToRegionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RestoreBackupCommand = exports.se_ModifyClusterCommand = exports.se_ModifyBackupAttributesCommand = exports.se_ListTagsCommand = exports.se_InitializeClusterCommand = exports.se_DescribeClustersCommand = exports.se_DescribeBackupsCommand = exports.se_DeleteHsmCommand = exports.se_DeleteClusterCommand = exports.se_DeleteBackupCommand = exports.se_CreateHsmCommand = exports.se_CreateClusterCommand = exports.se_CopyBackupToRegionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const CloudHSMV2ServiceException_1 = require("../models/CloudHSMV2ServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_CopyBackupToRegionCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "BaldrApiService.CopyBackupToRegion",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_CopyBackupToRegionRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_CopyBackupToRegionCommand = se_CopyBackupToRegionCommand;
|
|
18
|
+
const se_CreateClusterCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "BaldrApiService.CreateCluster",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_CreateClusterRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_CreateClusterCommand = se_CreateClusterCommand;
|
|
28
|
+
const se_CreateHsmCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "BaldrApiService.CreateHsm",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_CreateHsmRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_CreateHsmCommand = se_CreateHsmCommand;
|
|
38
|
+
const se_DeleteBackupCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "BaldrApiService.DeleteBackup",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_DeleteBackupRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_DeleteBackupCommand = se_DeleteBackupCommand;
|
|
48
|
+
const se_DeleteClusterCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "BaldrApiService.DeleteCluster",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_DeleteClusterRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
|
|
58
|
+
const se_DeleteHsmCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "BaldrApiService.DeleteHsm",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_DeleteHsmRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_DeleteHsmCommand = se_DeleteHsmCommand;
|
|
68
|
+
const se_DescribeBackupsCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "BaldrApiService.DescribeBackups",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DescribeBackupsRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_DescribeBackupsCommand = se_DescribeBackupsCommand;
|
|
78
|
+
const se_DescribeClustersCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "BaldrApiService.DescribeClusters",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DescribeClustersRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_DescribeClustersCommand = se_DescribeClustersCommand;
|
|
88
|
+
const se_InitializeClusterCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.1",
|
|
91
91
|
"x-amz-target": "BaldrApiService.InitializeCluster",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_InitializeClusterRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_InitializeClusterCommand = se_InitializeClusterCommand;
|
|
98
|
+
const se_ListTagsCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.1",
|
|
101
101
|
"x-amz-target": "BaldrApiService.ListTags",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_ListTagsRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
108
|
+
const se_ModifyBackupAttributesCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.1",
|
|
111
111
|
"x-amz-target": "BaldrApiService.ModifyBackupAttributes",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_ModifyBackupAttributesRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_ModifyBackupAttributesCommand = se_ModifyBackupAttributesCommand;
|
|
118
|
+
const se_ModifyClusterCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.1",
|
|
121
121
|
"x-amz-target": "BaldrApiService.ModifyCluster",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_ModifyClusterRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_ModifyClusterCommand = se_ModifyClusterCommand;
|
|
128
|
+
const se_RestoreBackupCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.1",
|
|
131
131
|
"x-amz-target": "BaldrApiService.RestoreBackup",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_RestoreBackupRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_RestoreBackupCommand = se_RestoreBackupCommand;
|
|
138
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/x-amz-json-1.1",
|
|
141
141
|
"x-amz-target": "BaldrApiService.TagResource",
|
|
142
142
|
};
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
148
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/x-amz-json-1.1",
|
|
151
151
|
"x-amz-target": "BaldrApiService.UntagResource",
|
|
152
152
|
};
|
|
153
153
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
154
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
155
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
156
|
};
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
157
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
158
|
+
const de_CopyBackupToRegionCommand = async (output, context) => {
|
|
159
159
|
if (output.statusCode >= 300) {
|
|
160
|
-
return
|
|
160
|
+
return de_CopyBackupToRegionCommandError(output, context);
|
|
161
161
|
}
|
|
162
162
|
const data = await parseBody(output.body, context);
|
|
163
163
|
let contents = {};
|
|
164
|
-
contents =
|
|
164
|
+
contents = de_CopyBackupToRegionResponse(data, context);
|
|
165
165
|
const response = {
|
|
166
166
|
$metadata: deserializeMetadata(output),
|
|
167
167
|
...contents,
|
|
168
168
|
};
|
|
169
169
|
return Promise.resolve(response);
|
|
170
170
|
};
|
|
171
|
-
exports.
|
|
172
|
-
const
|
|
171
|
+
exports.de_CopyBackupToRegionCommand = de_CopyBackupToRegionCommand;
|
|
172
|
+
const de_CopyBackupToRegionCommandError = async (output, context) => {
|
|
173
173
|
const parsedOutput = {
|
|
174
174
|
...output,
|
|
175
175
|
body: await parseErrorBody(output.body, context),
|
|
@@ -178,22 +178,22 @@ const deserializeAws_json1_1CopyBackupToRegionCommandError = async (output, cont
|
|
|
178
178
|
switch (errorCode) {
|
|
179
179
|
case "CloudHsmAccessDeniedException":
|
|
180
180
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
181
|
-
throw await
|
|
181
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
182
182
|
case "CloudHsmInternalFailureException":
|
|
183
183
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
184
|
-
throw await
|
|
184
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
185
185
|
case "CloudHsmInvalidRequestException":
|
|
186
186
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
187
|
-
throw await
|
|
187
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
188
188
|
case "CloudHsmResourceNotFoundException":
|
|
189
189
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
190
|
-
throw await
|
|
190
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
191
191
|
case "CloudHsmServiceException":
|
|
192
192
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
193
|
-
throw await
|
|
193
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
194
194
|
case "CloudHsmTagException":
|
|
195
195
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
196
|
-
throw await
|
|
196
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
197
197
|
default:
|
|
198
198
|
const parsedBody = parsedOutput.body;
|
|
199
199
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -204,21 +204,21 @@ const deserializeAws_json1_1CopyBackupToRegionCommandError = async (output, cont
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
const
|
|
207
|
+
const de_CreateClusterCommand = async (output, context) => {
|
|
208
208
|
if (output.statusCode >= 300) {
|
|
209
|
-
return
|
|
209
|
+
return de_CreateClusterCommandError(output, context);
|
|
210
210
|
}
|
|
211
211
|
const data = await parseBody(output.body, context);
|
|
212
212
|
let contents = {};
|
|
213
|
-
contents =
|
|
213
|
+
contents = de_CreateClusterResponse(data, context);
|
|
214
214
|
const response = {
|
|
215
215
|
$metadata: deserializeMetadata(output),
|
|
216
216
|
...contents,
|
|
217
217
|
};
|
|
218
218
|
return Promise.resolve(response);
|
|
219
219
|
};
|
|
220
|
-
exports.
|
|
221
|
-
const
|
|
220
|
+
exports.de_CreateClusterCommand = de_CreateClusterCommand;
|
|
221
|
+
const de_CreateClusterCommandError = async (output, context) => {
|
|
222
222
|
const parsedOutput = {
|
|
223
223
|
...output,
|
|
224
224
|
body: await parseErrorBody(output.body, context),
|
|
@@ -227,22 +227,22 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
227
227
|
switch (errorCode) {
|
|
228
228
|
case "CloudHsmAccessDeniedException":
|
|
229
229
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
230
|
-
throw await
|
|
230
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
231
231
|
case "CloudHsmInternalFailureException":
|
|
232
232
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
233
|
-
throw await
|
|
233
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
234
234
|
case "CloudHsmInvalidRequestException":
|
|
235
235
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
236
|
-
throw await
|
|
236
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
237
237
|
case "CloudHsmResourceNotFoundException":
|
|
238
238
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
239
|
-
throw await
|
|
239
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
240
240
|
case "CloudHsmServiceException":
|
|
241
241
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
242
|
-
throw await
|
|
242
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
243
243
|
case "CloudHsmTagException":
|
|
244
244
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
245
|
-
throw await
|
|
245
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
246
246
|
default:
|
|
247
247
|
const parsedBody = parsedOutput.body;
|
|
248
248
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -253,21 +253,21 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
|
-
const
|
|
256
|
+
const de_CreateHsmCommand = async (output, context) => {
|
|
257
257
|
if (output.statusCode >= 300) {
|
|
258
|
-
return
|
|
258
|
+
return de_CreateHsmCommandError(output, context);
|
|
259
259
|
}
|
|
260
260
|
const data = await parseBody(output.body, context);
|
|
261
261
|
let contents = {};
|
|
262
|
-
contents =
|
|
262
|
+
contents = de_CreateHsmResponse(data, context);
|
|
263
263
|
const response = {
|
|
264
264
|
$metadata: deserializeMetadata(output),
|
|
265
265
|
...contents,
|
|
266
266
|
};
|
|
267
267
|
return Promise.resolve(response);
|
|
268
268
|
};
|
|
269
|
-
exports.
|
|
270
|
-
const
|
|
269
|
+
exports.de_CreateHsmCommand = de_CreateHsmCommand;
|
|
270
|
+
const de_CreateHsmCommandError = async (output, context) => {
|
|
271
271
|
const parsedOutput = {
|
|
272
272
|
...output,
|
|
273
273
|
body: await parseErrorBody(output.body, context),
|
|
@@ -276,19 +276,19 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
276
276
|
switch (errorCode) {
|
|
277
277
|
case "CloudHsmAccessDeniedException":
|
|
278
278
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
279
|
-
throw await
|
|
279
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
280
280
|
case "CloudHsmInternalFailureException":
|
|
281
281
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
282
|
-
throw await
|
|
282
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
283
283
|
case "CloudHsmInvalidRequestException":
|
|
284
284
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
285
|
-
throw await
|
|
285
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
286
286
|
case "CloudHsmResourceNotFoundException":
|
|
287
287
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
288
|
-
throw await
|
|
288
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
289
289
|
case "CloudHsmServiceException":
|
|
290
290
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
291
|
-
throw await
|
|
291
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
292
292
|
default:
|
|
293
293
|
const parsedBody = parsedOutput.body;
|
|
294
294
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -299,21 +299,21 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
const
|
|
302
|
+
const de_DeleteBackupCommand = async (output, context) => {
|
|
303
303
|
if (output.statusCode >= 300) {
|
|
304
|
-
return
|
|
304
|
+
return de_DeleteBackupCommandError(output, context);
|
|
305
305
|
}
|
|
306
306
|
const data = await parseBody(output.body, context);
|
|
307
307
|
let contents = {};
|
|
308
|
-
contents =
|
|
308
|
+
contents = de_DeleteBackupResponse(data, context);
|
|
309
309
|
const response = {
|
|
310
310
|
$metadata: deserializeMetadata(output),
|
|
311
311
|
...contents,
|
|
312
312
|
};
|
|
313
313
|
return Promise.resolve(response);
|
|
314
314
|
};
|
|
315
|
-
exports.
|
|
316
|
-
const
|
|
315
|
+
exports.de_DeleteBackupCommand = de_DeleteBackupCommand;
|
|
316
|
+
const de_DeleteBackupCommandError = async (output, context) => {
|
|
317
317
|
const parsedOutput = {
|
|
318
318
|
...output,
|
|
319
319
|
body: await parseErrorBody(output.body, context),
|
|
@@ -322,19 +322,19 @@ const deserializeAws_json1_1DeleteBackupCommandError = async (output, context) =
|
|
|
322
322
|
switch (errorCode) {
|
|
323
323
|
case "CloudHsmAccessDeniedException":
|
|
324
324
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
325
|
-
throw await
|
|
325
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
326
326
|
case "CloudHsmInternalFailureException":
|
|
327
327
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
328
|
-
throw await
|
|
328
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
329
329
|
case "CloudHsmInvalidRequestException":
|
|
330
330
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
331
|
-
throw await
|
|
331
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
332
332
|
case "CloudHsmResourceNotFoundException":
|
|
333
333
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
334
|
-
throw await
|
|
334
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
335
335
|
case "CloudHsmServiceException":
|
|
336
336
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
337
|
-
throw await
|
|
337
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
338
338
|
default:
|
|
339
339
|
const parsedBody = parsedOutput.body;
|
|
340
340
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -345,21 +345,21 @@ const deserializeAws_json1_1DeleteBackupCommandError = async (output, context) =
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
|
-
const
|
|
348
|
+
const de_DeleteClusterCommand = async (output, context) => {
|
|
349
349
|
if (output.statusCode >= 300) {
|
|
350
|
-
return
|
|
350
|
+
return de_DeleteClusterCommandError(output, context);
|
|
351
351
|
}
|
|
352
352
|
const data = await parseBody(output.body, context);
|
|
353
353
|
let contents = {};
|
|
354
|
-
contents =
|
|
354
|
+
contents = de_DeleteClusterResponse(data, context);
|
|
355
355
|
const response = {
|
|
356
356
|
$metadata: deserializeMetadata(output),
|
|
357
357
|
...contents,
|
|
358
358
|
};
|
|
359
359
|
return Promise.resolve(response);
|
|
360
360
|
};
|
|
361
|
-
exports.
|
|
362
|
-
const
|
|
361
|
+
exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
|
|
362
|
+
const de_DeleteClusterCommandError = async (output, context) => {
|
|
363
363
|
const parsedOutput = {
|
|
364
364
|
...output,
|
|
365
365
|
body: await parseErrorBody(output.body, context),
|
|
@@ -368,22 +368,22 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
368
368
|
switch (errorCode) {
|
|
369
369
|
case "CloudHsmAccessDeniedException":
|
|
370
370
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
371
|
-
throw await
|
|
371
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
372
372
|
case "CloudHsmInternalFailureException":
|
|
373
373
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
374
|
-
throw await
|
|
374
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
375
375
|
case "CloudHsmInvalidRequestException":
|
|
376
376
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
377
|
-
throw await
|
|
377
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
378
378
|
case "CloudHsmResourceNotFoundException":
|
|
379
379
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
380
|
-
throw await
|
|
380
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
381
381
|
case "CloudHsmServiceException":
|
|
382
382
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
383
|
-
throw await
|
|
383
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
384
384
|
case "CloudHsmTagException":
|
|
385
385
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
386
|
-
throw await
|
|
386
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
387
387
|
default:
|
|
388
388
|
const parsedBody = parsedOutput.body;
|
|
389
389
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -394,21 +394,21 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
|
-
const
|
|
397
|
+
const de_DeleteHsmCommand = async (output, context) => {
|
|
398
398
|
if (output.statusCode >= 300) {
|
|
399
|
-
return
|
|
399
|
+
return de_DeleteHsmCommandError(output, context);
|
|
400
400
|
}
|
|
401
401
|
const data = await parseBody(output.body, context);
|
|
402
402
|
let contents = {};
|
|
403
|
-
contents =
|
|
403
|
+
contents = de_DeleteHsmResponse(data, context);
|
|
404
404
|
const response = {
|
|
405
405
|
$metadata: deserializeMetadata(output),
|
|
406
406
|
...contents,
|
|
407
407
|
};
|
|
408
408
|
return Promise.resolve(response);
|
|
409
409
|
};
|
|
410
|
-
exports.
|
|
411
|
-
const
|
|
410
|
+
exports.de_DeleteHsmCommand = de_DeleteHsmCommand;
|
|
411
|
+
const de_DeleteHsmCommandError = async (output, context) => {
|
|
412
412
|
const parsedOutput = {
|
|
413
413
|
...output,
|
|
414
414
|
body: await parseErrorBody(output.body, context),
|
|
@@ -417,19 +417,19 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
417
417
|
switch (errorCode) {
|
|
418
418
|
case "CloudHsmAccessDeniedException":
|
|
419
419
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
420
|
-
throw await
|
|
420
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
421
421
|
case "CloudHsmInternalFailureException":
|
|
422
422
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
423
|
-
throw await
|
|
423
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
424
424
|
case "CloudHsmInvalidRequestException":
|
|
425
425
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
426
|
-
throw await
|
|
426
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
427
427
|
case "CloudHsmResourceNotFoundException":
|
|
428
428
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
429
|
-
throw await
|
|
429
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
430
430
|
case "CloudHsmServiceException":
|
|
431
431
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
432
|
-
throw await
|
|
432
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
433
433
|
default:
|
|
434
434
|
const parsedBody = parsedOutput.body;
|
|
435
435
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -440,21 +440,21 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
const
|
|
443
|
+
const de_DescribeBackupsCommand = async (output, context) => {
|
|
444
444
|
if (output.statusCode >= 300) {
|
|
445
|
-
return
|
|
445
|
+
return de_DescribeBackupsCommandError(output, context);
|
|
446
446
|
}
|
|
447
447
|
const data = await parseBody(output.body, context);
|
|
448
448
|
let contents = {};
|
|
449
|
-
contents =
|
|
449
|
+
contents = de_DescribeBackupsResponse(data, context);
|
|
450
450
|
const response = {
|
|
451
451
|
$metadata: deserializeMetadata(output),
|
|
452
452
|
...contents,
|
|
453
453
|
};
|
|
454
454
|
return Promise.resolve(response);
|
|
455
455
|
};
|
|
456
|
-
exports.
|
|
457
|
-
const
|
|
456
|
+
exports.de_DescribeBackupsCommand = de_DescribeBackupsCommand;
|
|
457
|
+
const de_DescribeBackupsCommandError = async (output, context) => {
|
|
458
458
|
const parsedOutput = {
|
|
459
459
|
...output,
|
|
460
460
|
body: await parseErrorBody(output.body, context),
|
|
@@ -463,22 +463,22 @@ const deserializeAws_json1_1DescribeBackupsCommandError = async (output, context
|
|
|
463
463
|
switch (errorCode) {
|
|
464
464
|
case "CloudHsmAccessDeniedException":
|
|
465
465
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
466
|
-
throw await
|
|
466
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
467
467
|
case "CloudHsmInternalFailureException":
|
|
468
468
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
469
|
-
throw await
|
|
469
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
470
470
|
case "CloudHsmInvalidRequestException":
|
|
471
471
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
473
473
|
case "CloudHsmResourceNotFoundException":
|
|
474
474
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
475
|
-
throw await
|
|
475
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
476
476
|
case "CloudHsmServiceException":
|
|
477
477
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
478
|
-
throw await
|
|
478
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
479
479
|
case "CloudHsmTagException":
|
|
480
480
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
481
|
-
throw await
|
|
481
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
482
482
|
default:
|
|
483
483
|
const parsedBody = parsedOutput.body;
|
|
484
484
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -489,21 +489,21 @@ const deserializeAws_json1_1DescribeBackupsCommandError = async (output, context
|
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
491
|
};
|
|
492
|
-
const
|
|
492
|
+
const de_DescribeClustersCommand = async (output, context) => {
|
|
493
493
|
if (output.statusCode >= 300) {
|
|
494
|
-
return
|
|
494
|
+
return de_DescribeClustersCommandError(output, context);
|
|
495
495
|
}
|
|
496
496
|
const data = await parseBody(output.body, context);
|
|
497
497
|
let contents = {};
|
|
498
|
-
contents =
|
|
498
|
+
contents = de_DescribeClustersResponse(data, context);
|
|
499
499
|
const response = {
|
|
500
500
|
$metadata: deserializeMetadata(output),
|
|
501
501
|
...contents,
|
|
502
502
|
};
|
|
503
503
|
return Promise.resolve(response);
|
|
504
504
|
};
|
|
505
|
-
exports.
|
|
506
|
-
const
|
|
505
|
+
exports.de_DescribeClustersCommand = de_DescribeClustersCommand;
|
|
506
|
+
const de_DescribeClustersCommandError = async (output, context) => {
|
|
507
507
|
const parsedOutput = {
|
|
508
508
|
...output,
|
|
509
509
|
body: await parseErrorBody(output.body, context),
|
|
@@ -512,19 +512,19 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
512
512
|
switch (errorCode) {
|
|
513
513
|
case "CloudHsmAccessDeniedException":
|
|
514
514
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
515
|
-
throw await
|
|
515
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
516
516
|
case "CloudHsmInternalFailureException":
|
|
517
517
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
518
|
-
throw await
|
|
518
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
519
519
|
case "CloudHsmInvalidRequestException":
|
|
520
520
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
521
|
-
throw await
|
|
521
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
522
522
|
case "CloudHsmServiceException":
|
|
523
523
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
524
|
-
throw await
|
|
524
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
525
525
|
case "CloudHsmTagException":
|
|
526
526
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
527
|
-
throw await
|
|
527
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
528
528
|
default:
|
|
529
529
|
const parsedBody = parsedOutput.body;
|
|
530
530
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -535,21 +535,21 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
|
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
|
-
const
|
|
538
|
+
const de_InitializeClusterCommand = async (output, context) => {
|
|
539
539
|
if (output.statusCode >= 300) {
|
|
540
|
-
return
|
|
540
|
+
return de_InitializeClusterCommandError(output, context);
|
|
541
541
|
}
|
|
542
542
|
const data = await parseBody(output.body, context);
|
|
543
543
|
let contents = {};
|
|
544
|
-
contents =
|
|
544
|
+
contents = de_InitializeClusterResponse(data, context);
|
|
545
545
|
const response = {
|
|
546
546
|
$metadata: deserializeMetadata(output),
|
|
547
547
|
...contents,
|
|
548
548
|
};
|
|
549
549
|
return Promise.resolve(response);
|
|
550
550
|
};
|
|
551
|
-
exports.
|
|
552
|
-
const
|
|
551
|
+
exports.de_InitializeClusterCommand = de_InitializeClusterCommand;
|
|
552
|
+
const de_InitializeClusterCommandError = async (output, context) => {
|
|
553
553
|
const parsedOutput = {
|
|
554
554
|
...output,
|
|
555
555
|
body: await parseErrorBody(output.body, context),
|
|
@@ -558,19 +558,19 @@ const deserializeAws_json1_1InitializeClusterCommandError = async (output, conte
|
|
|
558
558
|
switch (errorCode) {
|
|
559
559
|
case "CloudHsmAccessDeniedException":
|
|
560
560
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
562
562
|
case "CloudHsmInternalFailureException":
|
|
563
563
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
564
|
-
throw await
|
|
564
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
565
565
|
case "CloudHsmInvalidRequestException":
|
|
566
566
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
567
|
-
throw await
|
|
567
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
568
568
|
case "CloudHsmResourceNotFoundException":
|
|
569
569
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
570
|
-
throw await
|
|
570
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
571
571
|
case "CloudHsmServiceException":
|
|
572
572
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
574
574
|
default:
|
|
575
575
|
const parsedBody = parsedOutput.body;
|
|
576
576
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -581,21 +581,21 @@ const deserializeAws_json1_1InitializeClusterCommandError = async (output, conte
|
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
const
|
|
584
|
+
const de_ListTagsCommand = async (output, context) => {
|
|
585
585
|
if (output.statusCode >= 300) {
|
|
586
|
-
return
|
|
586
|
+
return de_ListTagsCommandError(output, context);
|
|
587
587
|
}
|
|
588
588
|
const data = await parseBody(output.body, context);
|
|
589
589
|
let contents = {};
|
|
590
|
-
contents =
|
|
590
|
+
contents = de_ListTagsResponse(data, context);
|
|
591
591
|
const response = {
|
|
592
592
|
$metadata: deserializeMetadata(output),
|
|
593
593
|
...contents,
|
|
594
594
|
};
|
|
595
595
|
return Promise.resolve(response);
|
|
596
596
|
};
|
|
597
|
-
exports.
|
|
598
|
-
const
|
|
597
|
+
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
598
|
+
const de_ListTagsCommandError = async (output, context) => {
|
|
599
599
|
const parsedOutput = {
|
|
600
600
|
...output,
|
|
601
601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -604,22 +604,22 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
604
604
|
switch (errorCode) {
|
|
605
605
|
case "CloudHsmAccessDeniedException":
|
|
606
606
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
607
|
-
throw await
|
|
607
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
608
608
|
case "CloudHsmInternalFailureException":
|
|
609
609
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
610
|
-
throw await
|
|
610
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
611
611
|
case "CloudHsmInvalidRequestException":
|
|
612
612
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
613
|
-
throw await
|
|
613
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
614
614
|
case "CloudHsmResourceNotFoundException":
|
|
615
615
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
616
|
-
throw await
|
|
616
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
617
617
|
case "CloudHsmServiceException":
|
|
618
618
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
619
|
-
throw await
|
|
619
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
620
620
|
case "CloudHsmTagException":
|
|
621
621
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
622
|
-
throw await
|
|
622
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
623
623
|
default:
|
|
624
624
|
const parsedBody = parsedOutput.body;
|
|
625
625
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -630,21 +630,21 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
|
-
const
|
|
633
|
+
const de_ModifyBackupAttributesCommand = async (output, context) => {
|
|
634
634
|
if (output.statusCode >= 300) {
|
|
635
|
-
return
|
|
635
|
+
return de_ModifyBackupAttributesCommandError(output, context);
|
|
636
636
|
}
|
|
637
637
|
const data = await parseBody(output.body, context);
|
|
638
638
|
let contents = {};
|
|
639
|
-
contents =
|
|
639
|
+
contents = de_ModifyBackupAttributesResponse(data, context);
|
|
640
640
|
const response = {
|
|
641
641
|
$metadata: deserializeMetadata(output),
|
|
642
642
|
...contents,
|
|
643
643
|
};
|
|
644
644
|
return Promise.resolve(response);
|
|
645
645
|
};
|
|
646
|
-
exports.
|
|
647
|
-
const
|
|
646
|
+
exports.de_ModifyBackupAttributesCommand = de_ModifyBackupAttributesCommand;
|
|
647
|
+
const de_ModifyBackupAttributesCommandError = async (output, context) => {
|
|
648
648
|
const parsedOutput = {
|
|
649
649
|
...output,
|
|
650
650
|
body: await parseErrorBody(output.body, context),
|
|
@@ -653,19 +653,19 @@ const deserializeAws_json1_1ModifyBackupAttributesCommandError = async (output,
|
|
|
653
653
|
switch (errorCode) {
|
|
654
654
|
case "CloudHsmAccessDeniedException":
|
|
655
655
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
656
|
-
throw await
|
|
656
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
657
657
|
case "CloudHsmInternalFailureException":
|
|
658
658
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
659
|
-
throw await
|
|
659
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
660
660
|
case "CloudHsmInvalidRequestException":
|
|
661
661
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
662
|
-
throw await
|
|
662
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
663
663
|
case "CloudHsmResourceNotFoundException":
|
|
664
664
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
665
|
-
throw await
|
|
665
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
666
666
|
case "CloudHsmServiceException":
|
|
667
667
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
668
|
-
throw await
|
|
668
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
669
669
|
default:
|
|
670
670
|
const parsedBody = parsedOutput.body;
|
|
671
671
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -676,21 +676,21 @@ const deserializeAws_json1_1ModifyBackupAttributesCommandError = async (output,
|
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
const
|
|
679
|
+
const de_ModifyClusterCommand = async (output, context) => {
|
|
680
680
|
if (output.statusCode >= 300) {
|
|
681
|
-
return
|
|
681
|
+
return de_ModifyClusterCommandError(output, context);
|
|
682
682
|
}
|
|
683
683
|
const data = await parseBody(output.body, context);
|
|
684
684
|
let contents = {};
|
|
685
|
-
contents =
|
|
685
|
+
contents = de_ModifyClusterResponse(data, context);
|
|
686
686
|
const response = {
|
|
687
687
|
$metadata: deserializeMetadata(output),
|
|
688
688
|
...contents,
|
|
689
689
|
};
|
|
690
690
|
return Promise.resolve(response);
|
|
691
691
|
};
|
|
692
|
-
exports.
|
|
693
|
-
const
|
|
692
|
+
exports.de_ModifyClusterCommand = de_ModifyClusterCommand;
|
|
693
|
+
const de_ModifyClusterCommandError = async (output, context) => {
|
|
694
694
|
const parsedOutput = {
|
|
695
695
|
...output,
|
|
696
696
|
body: await parseErrorBody(output.body, context),
|
|
@@ -699,19 +699,19 @@ const deserializeAws_json1_1ModifyClusterCommandError = async (output, context)
|
|
|
699
699
|
switch (errorCode) {
|
|
700
700
|
case "CloudHsmAccessDeniedException":
|
|
701
701
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
702
|
-
throw await
|
|
702
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
703
703
|
case "CloudHsmInternalFailureException":
|
|
704
704
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
705
|
-
throw await
|
|
705
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
706
706
|
case "CloudHsmInvalidRequestException":
|
|
707
707
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
708
|
-
throw await
|
|
708
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
709
709
|
case "CloudHsmResourceNotFoundException":
|
|
710
710
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
711
|
-
throw await
|
|
711
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
712
712
|
case "CloudHsmServiceException":
|
|
713
713
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
714
|
-
throw await
|
|
714
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
715
715
|
default:
|
|
716
716
|
const parsedBody = parsedOutput.body;
|
|
717
717
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -722,21 +722,21 @@ const deserializeAws_json1_1ModifyClusterCommandError = async (output, context)
|
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
};
|
|
725
|
-
const
|
|
725
|
+
const de_RestoreBackupCommand = async (output, context) => {
|
|
726
726
|
if (output.statusCode >= 300) {
|
|
727
|
-
return
|
|
727
|
+
return de_RestoreBackupCommandError(output, context);
|
|
728
728
|
}
|
|
729
729
|
const data = await parseBody(output.body, context);
|
|
730
730
|
let contents = {};
|
|
731
|
-
contents =
|
|
731
|
+
contents = de_RestoreBackupResponse(data, context);
|
|
732
732
|
const response = {
|
|
733
733
|
$metadata: deserializeMetadata(output),
|
|
734
734
|
...contents,
|
|
735
735
|
};
|
|
736
736
|
return Promise.resolve(response);
|
|
737
737
|
};
|
|
738
|
-
exports.
|
|
739
|
-
const
|
|
738
|
+
exports.de_RestoreBackupCommand = de_RestoreBackupCommand;
|
|
739
|
+
const de_RestoreBackupCommandError = async (output, context) => {
|
|
740
740
|
const parsedOutput = {
|
|
741
741
|
...output,
|
|
742
742
|
body: await parseErrorBody(output.body, context),
|
|
@@ -745,19 +745,19 @@ const deserializeAws_json1_1RestoreBackupCommandError = async (output, context)
|
|
|
745
745
|
switch (errorCode) {
|
|
746
746
|
case "CloudHsmAccessDeniedException":
|
|
747
747
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
748
|
-
throw await
|
|
748
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
749
749
|
case "CloudHsmInternalFailureException":
|
|
750
750
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
752
752
|
case "CloudHsmInvalidRequestException":
|
|
753
753
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
754
|
-
throw await
|
|
754
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
755
755
|
case "CloudHsmResourceNotFoundException":
|
|
756
756
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
757
|
-
throw await
|
|
757
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
758
758
|
case "CloudHsmServiceException":
|
|
759
759
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
760
|
-
throw await
|
|
760
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
761
761
|
default:
|
|
762
762
|
const parsedBody = parsedOutput.body;
|
|
763
763
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -768,21 +768,21 @@ const deserializeAws_json1_1RestoreBackupCommandError = async (output, context)
|
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
|
-
const
|
|
771
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
772
772
|
if (output.statusCode >= 300) {
|
|
773
|
-
return
|
|
773
|
+
return de_TagResourceCommandError(output, context);
|
|
774
774
|
}
|
|
775
775
|
const data = await parseBody(output.body, context);
|
|
776
776
|
let contents = {};
|
|
777
|
-
contents =
|
|
777
|
+
contents = de_TagResourceResponse(data, context);
|
|
778
778
|
const response = {
|
|
779
779
|
$metadata: deserializeMetadata(output),
|
|
780
780
|
...contents,
|
|
781
781
|
};
|
|
782
782
|
return Promise.resolve(response);
|
|
783
783
|
};
|
|
784
|
-
exports.
|
|
785
|
-
const
|
|
784
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
785
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
786
786
|
const parsedOutput = {
|
|
787
787
|
...output,
|
|
788
788
|
body: await parseErrorBody(output.body, context),
|
|
@@ -791,22 +791,22 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
791
791
|
switch (errorCode) {
|
|
792
792
|
case "CloudHsmAccessDeniedException":
|
|
793
793
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
794
|
-
throw await
|
|
794
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
795
795
|
case "CloudHsmInternalFailureException":
|
|
796
796
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
797
|
-
throw await
|
|
797
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
798
798
|
case "CloudHsmInvalidRequestException":
|
|
799
799
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
800
|
-
throw await
|
|
800
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
801
801
|
case "CloudHsmResourceNotFoundException":
|
|
802
802
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
803
|
-
throw await
|
|
803
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
804
804
|
case "CloudHsmServiceException":
|
|
805
805
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
806
|
-
throw await
|
|
806
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
807
807
|
case "CloudHsmTagException":
|
|
808
808
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
809
|
-
throw await
|
|
809
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
810
810
|
default:
|
|
811
811
|
const parsedBody = parsedOutput.body;
|
|
812
812
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -817,21 +817,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
};
|
|
820
|
-
const
|
|
820
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
821
821
|
if (output.statusCode >= 300) {
|
|
822
|
-
return
|
|
822
|
+
return de_UntagResourceCommandError(output, context);
|
|
823
823
|
}
|
|
824
824
|
const data = await parseBody(output.body, context);
|
|
825
825
|
let contents = {};
|
|
826
|
-
contents =
|
|
826
|
+
contents = de_UntagResourceResponse(data, context);
|
|
827
827
|
const response = {
|
|
828
828
|
$metadata: deserializeMetadata(output),
|
|
829
829
|
...contents,
|
|
830
830
|
};
|
|
831
831
|
return Promise.resolve(response);
|
|
832
832
|
};
|
|
833
|
-
exports.
|
|
834
|
-
const
|
|
833
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
834
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
835
835
|
const parsedOutput = {
|
|
836
836
|
...output,
|
|
837
837
|
body: await parseErrorBody(output.body, context),
|
|
@@ -840,22 +840,22 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
840
840
|
switch (errorCode) {
|
|
841
841
|
case "CloudHsmAccessDeniedException":
|
|
842
842
|
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
843
|
-
throw await
|
|
843
|
+
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
844
844
|
case "CloudHsmInternalFailureException":
|
|
845
845
|
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
846
|
-
throw await
|
|
846
|
+
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
847
847
|
case "CloudHsmInvalidRequestException":
|
|
848
848
|
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
850
850
|
case "CloudHsmResourceNotFoundException":
|
|
851
851
|
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
853
853
|
case "CloudHsmServiceException":
|
|
854
854
|
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
856
856
|
case "CloudHsmTagException":
|
|
857
857
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
858
|
-
throw await
|
|
858
|
+
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
859
859
|
default:
|
|
860
860
|
const parsedBody = parsedOutput.body;
|
|
861
861
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -866,102 +866,102 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
868
|
};
|
|
869
|
-
const
|
|
869
|
+
const de_CloudHsmAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
870
870
|
const body = parsedOutput.body;
|
|
871
|
-
const deserialized =
|
|
871
|
+
const deserialized = de_CloudHsmAccessDeniedException(body, context);
|
|
872
872
|
const exception = new models_0_1.CloudHsmAccessDeniedException({
|
|
873
873
|
$metadata: deserializeMetadata(parsedOutput),
|
|
874
874
|
...deserialized,
|
|
875
875
|
});
|
|
876
876
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
877
877
|
};
|
|
878
|
-
const
|
|
878
|
+
const de_CloudHsmInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
879
879
|
const body = parsedOutput.body;
|
|
880
|
-
const deserialized =
|
|
880
|
+
const deserialized = de_CloudHsmInternalFailureException(body, context);
|
|
881
881
|
const exception = new models_0_1.CloudHsmInternalFailureException({
|
|
882
882
|
$metadata: deserializeMetadata(parsedOutput),
|
|
883
883
|
...deserialized,
|
|
884
884
|
});
|
|
885
885
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
886
886
|
};
|
|
887
|
-
const
|
|
887
|
+
const de_CloudHsmInvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
888
888
|
const body = parsedOutput.body;
|
|
889
|
-
const deserialized =
|
|
889
|
+
const deserialized = de_CloudHsmInvalidRequestException(body, context);
|
|
890
890
|
const exception = new models_0_1.CloudHsmInvalidRequestException({
|
|
891
891
|
$metadata: deserializeMetadata(parsedOutput),
|
|
892
892
|
...deserialized,
|
|
893
893
|
});
|
|
894
894
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
895
895
|
};
|
|
896
|
-
const
|
|
896
|
+
const de_CloudHsmResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
897
897
|
const body = parsedOutput.body;
|
|
898
|
-
const deserialized =
|
|
898
|
+
const deserialized = de_CloudHsmResourceNotFoundException(body, context);
|
|
899
899
|
const exception = new models_0_1.CloudHsmResourceNotFoundException({
|
|
900
900
|
$metadata: deserializeMetadata(parsedOutput),
|
|
901
901
|
...deserialized,
|
|
902
902
|
});
|
|
903
903
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
904
904
|
};
|
|
905
|
-
const
|
|
905
|
+
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
906
906
|
const body = parsedOutput.body;
|
|
907
|
-
const deserialized =
|
|
907
|
+
const deserialized = de_CloudHsmServiceException(body, context);
|
|
908
908
|
const exception = new models_0_1.CloudHsmServiceException({
|
|
909
909
|
$metadata: deserializeMetadata(parsedOutput),
|
|
910
910
|
...deserialized,
|
|
911
911
|
});
|
|
912
912
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
913
913
|
};
|
|
914
|
-
const
|
|
914
|
+
const de_CloudHsmTagExceptionRes = async (parsedOutput, context) => {
|
|
915
915
|
const body = parsedOutput.body;
|
|
916
|
-
const deserialized =
|
|
916
|
+
const deserialized = de_CloudHsmTagException(body, context);
|
|
917
917
|
const exception = new models_0_1.CloudHsmTagException({
|
|
918
918
|
$metadata: deserializeMetadata(parsedOutput),
|
|
919
919
|
...deserialized,
|
|
920
920
|
});
|
|
921
921
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
922
922
|
};
|
|
923
|
-
const
|
|
923
|
+
const se_BackupRetentionPolicy = (input, context) => {
|
|
924
924
|
return {
|
|
925
925
|
...(input.Type != null && { Type: input.Type }),
|
|
926
926
|
...(input.Value != null && { Value: input.Value }),
|
|
927
927
|
};
|
|
928
928
|
};
|
|
929
|
-
const
|
|
929
|
+
const se_CopyBackupToRegionRequest = (input, context) => {
|
|
930
930
|
return {
|
|
931
931
|
...(input.BackupId != null && { BackupId: input.BackupId }),
|
|
932
932
|
...(input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion }),
|
|
933
|
-
...(input.TagList != null && { TagList:
|
|
933
|
+
...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
|
|
934
934
|
};
|
|
935
935
|
};
|
|
936
|
-
const
|
|
936
|
+
const se_CreateClusterRequest = (input, context) => {
|
|
937
937
|
return {
|
|
938
938
|
...(input.BackupRetentionPolicy != null && {
|
|
939
|
-
BackupRetentionPolicy:
|
|
939
|
+
BackupRetentionPolicy: se_BackupRetentionPolicy(input.BackupRetentionPolicy, context),
|
|
940
940
|
}),
|
|
941
941
|
...(input.HsmType != null && { HsmType: input.HsmType }),
|
|
942
942
|
...(input.SourceBackupId != null && { SourceBackupId: input.SourceBackupId }),
|
|
943
|
-
...(input.SubnetIds != null && { SubnetIds:
|
|
944
|
-
...(input.TagList != null && { TagList:
|
|
943
|
+
...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
|
|
944
|
+
...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
|
|
945
945
|
};
|
|
946
946
|
};
|
|
947
|
-
const
|
|
947
|
+
const se_CreateHsmRequest = (input, context) => {
|
|
948
948
|
return {
|
|
949
949
|
...(input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone }),
|
|
950
950
|
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
951
951
|
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
952
952
|
};
|
|
953
953
|
};
|
|
954
|
-
const
|
|
954
|
+
const se_DeleteBackupRequest = (input, context) => {
|
|
955
955
|
return {
|
|
956
956
|
...(input.BackupId != null && { BackupId: input.BackupId }),
|
|
957
957
|
};
|
|
958
958
|
};
|
|
959
|
-
const
|
|
959
|
+
const se_DeleteClusterRequest = (input, context) => {
|
|
960
960
|
return {
|
|
961
961
|
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
962
962
|
};
|
|
963
963
|
};
|
|
964
|
-
const
|
|
964
|
+
const se_DeleteHsmRequest = (input, context) => {
|
|
965
965
|
return {
|
|
966
966
|
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
967
967
|
...(input.EniId != null && { EniId: input.EniId }),
|
|
@@ -969,110 +969,110 @@ const serializeAws_json1_1DeleteHsmRequest = (input, context) => {
|
|
|
969
969
|
...(input.HsmId != null && { HsmId: input.HsmId }),
|
|
970
970
|
};
|
|
971
971
|
};
|
|
972
|
-
const
|
|
972
|
+
const se_DescribeBackupsRequest = (input, context) => {
|
|
973
973
|
return {
|
|
974
|
-
...(input.Filters != null && { Filters:
|
|
974
|
+
...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
|
|
975
975
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
976
976
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
977
977
|
...(input.SortAscending != null && { SortAscending: input.SortAscending }),
|
|
978
978
|
};
|
|
979
979
|
};
|
|
980
|
-
const
|
|
980
|
+
const se_DescribeClustersRequest = (input, context) => {
|
|
981
981
|
return {
|
|
982
|
-
...(input.Filters != null && { Filters:
|
|
982
|
+
...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
|
|
983
983
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
984
984
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
985
985
|
};
|
|
986
986
|
};
|
|
987
|
-
const
|
|
987
|
+
const se_Filters = (input, context) => {
|
|
988
988
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
989
989
|
if (value === null) {
|
|
990
990
|
return acc;
|
|
991
991
|
}
|
|
992
|
-
acc[key] =
|
|
992
|
+
acc[key] = se_Strings(value, context);
|
|
993
993
|
return acc;
|
|
994
994
|
}, {});
|
|
995
995
|
};
|
|
996
|
-
const
|
|
996
|
+
const se_InitializeClusterRequest = (input, context) => {
|
|
997
997
|
return {
|
|
998
998
|
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
999
999
|
...(input.SignedCert != null && { SignedCert: input.SignedCert }),
|
|
1000
1000
|
...(input.TrustAnchor != null && { TrustAnchor: input.TrustAnchor }),
|
|
1001
1001
|
};
|
|
1002
1002
|
};
|
|
1003
|
-
const
|
|
1003
|
+
const se_ListTagsRequest = (input, context) => {
|
|
1004
1004
|
return {
|
|
1005
1005
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1006
1006
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1007
1007
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1008
1008
|
};
|
|
1009
1009
|
};
|
|
1010
|
-
const
|
|
1010
|
+
const se_ModifyBackupAttributesRequest = (input, context) => {
|
|
1011
1011
|
return {
|
|
1012
1012
|
...(input.BackupId != null && { BackupId: input.BackupId }),
|
|
1013
1013
|
...(input.NeverExpires != null && { NeverExpires: input.NeverExpires }),
|
|
1014
1014
|
};
|
|
1015
1015
|
};
|
|
1016
|
-
const
|
|
1016
|
+
const se_ModifyClusterRequest = (input, context) => {
|
|
1017
1017
|
return {
|
|
1018
1018
|
...(input.BackupRetentionPolicy != null && {
|
|
1019
|
-
BackupRetentionPolicy:
|
|
1019
|
+
BackupRetentionPolicy: se_BackupRetentionPolicy(input.BackupRetentionPolicy, context),
|
|
1020
1020
|
}),
|
|
1021
1021
|
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
1022
1022
|
};
|
|
1023
1023
|
};
|
|
1024
|
-
const
|
|
1024
|
+
const se_RestoreBackupRequest = (input, context) => {
|
|
1025
1025
|
return {
|
|
1026
1026
|
...(input.BackupId != null && { BackupId: input.BackupId }),
|
|
1027
1027
|
};
|
|
1028
1028
|
};
|
|
1029
|
-
const
|
|
1029
|
+
const se_Strings = (input, context) => {
|
|
1030
1030
|
return input
|
|
1031
1031
|
.filter((e) => e != null)
|
|
1032
1032
|
.map((entry) => {
|
|
1033
1033
|
return entry;
|
|
1034
1034
|
});
|
|
1035
1035
|
};
|
|
1036
|
-
const
|
|
1036
|
+
const se_SubnetIds = (input, context) => {
|
|
1037
1037
|
return input
|
|
1038
1038
|
.filter((e) => e != null)
|
|
1039
1039
|
.map((entry) => {
|
|
1040
1040
|
return entry;
|
|
1041
1041
|
});
|
|
1042
1042
|
};
|
|
1043
|
-
const
|
|
1043
|
+
const se_Tag = (input, context) => {
|
|
1044
1044
|
return {
|
|
1045
1045
|
...(input.Key != null && { Key: input.Key }),
|
|
1046
1046
|
...(input.Value != null && { Value: input.Value }),
|
|
1047
1047
|
};
|
|
1048
1048
|
};
|
|
1049
|
-
const
|
|
1049
|
+
const se_TagKeyList = (input, context) => {
|
|
1050
1050
|
return input
|
|
1051
1051
|
.filter((e) => e != null)
|
|
1052
1052
|
.map((entry) => {
|
|
1053
1053
|
return entry;
|
|
1054
1054
|
});
|
|
1055
1055
|
};
|
|
1056
|
-
const
|
|
1056
|
+
const se_TagList = (input, context) => {
|
|
1057
1057
|
return input
|
|
1058
1058
|
.filter((e) => e != null)
|
|
1059
1059
|
.map((entry) => {
|
|
1060
|
-
return
|
|
1060
|
+
return se_Tag(entry, context);
|
|
1061
1061
|
});
|
|
1062
1062
|
};
|
|
1063
|
-
const
|
|
1063
|
+
const se_TagResourceRequest = (input, context) => {
|
|
1064
1064
|
return {
|
|
1065
1065
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1066
|
-
...(input.TagList != null && { TagList:
|
|
1066
|
+
...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
|
|
1067
1067
|
};
|
|
1068
1068
|
};
|
|
1069
|
-
const
|
|
1069
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1070
1070
|
return {
|
|
1071
1071
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
1072
|
-
...(input.TagKeyList != null && { TagKeyList:
|
|
1072
|
+
...(input.TagKeyList != null && { TagKeyList: se_TagKeyList(input.TagKeyList, context) }),
|
|
1073
1073
|
};
|
|
1074
1074
|
};
|
|
1075
|
-
const
|
|
1075
|
+
const de_Backup = (output, context) => {
|
|
1076
1076
|
return {
|
|
1077
1077
|
BackupId: (0, smithy_client_1.expectString)(output.BackupId),
|
|
1078
1078
|
BackupState: (0, smithy_client_1.expectString)(output.BackupState),
|
|
@@ -1090,27 +1090,27 @@ const deserializeAws_json1_1Backup = (output, context) => {
|
|
|
1090
1090
|
SourceBackup: (0, smithy_client_1.expectString)(output.SourceBackup),
|
|
1091
1091
|
SourceCluster: (0, smithy_client_1.expectString)(output.SourceCluster),
|
|
1092
1092
|
SourceRegion: (0, smithy_client_1.expectString)(output.SourceRegion),
|
|
1093
|
-
TagList: output.TagList != null ?
|
|
1093
|
+
TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
|
|
1094
1094
|
};
|
|
1095
1095
|
};
|
|
1096
|
-
const
|
|
1096
|
+
const de_BackupRetentionPolicy = (output, context) => {
|
|
1097
1097
|
return {
|
|
1098
1098
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1099
1099
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1100
1100
|
};
|
|
1101
1101
|
};
|
|
1102
|
-
const
|
|
1102
|
+
const de_Backups = (output, context) => {
|
|
1103
1103
|
const retVal = (output || [])
|
|
1104
1104
|
.filter((e) => e != null)
|
|
1105
1105
|
.map((entry) => {
|
|
1106
1106
|
if (entry === null) {
|
|
1107
1107
|
return null;
|
|
1108
1108
|
}
|
|
1109
|
-
return
|
|
1109
|
+
return de_Backup(entry, context);
|
|
1110
1110
|
});
|
|
1111
1111
|
return retVal;
|
|
1112
1112
|
};
|
|
1113
|
-
const
|
|
1113
|
+
const de_Certificates = (output, context) => {
|
|
1114
1114
|
return {
|
|
1115
1115
|
AwsHardwareCertificate: (0, smithy_client_1.expectString)(output.AwsHardwareCertificate),
|
|
1116
1116
|
ClusterCertificate: (0, smithy_client_1.expectString)(output.ClusterCertificate),
|
|
@@ -1119,117 +1119,113 @@ const deserializeAws_json1_1Certificates = (output, context) => {
|
|
|
1119
1119
|
ManufacturerHardwareCertificate: (0, smithy_client_1.expectString)(output.ManufacturerHardwareCertificate),
|
|
1120
1120
|
};
|
|
1121
1121
|
};
|
|
1122
|
-
const
|
|
1122
|
+
const de_CloudHsmAccessDeniedException = (output, context) => {
|
|
1123
1123
|
return {
|
|
1124
1124
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1125
1125
|
};
|
|
1126
1126
|
};
|
|
1127
|
-
const
|
|
1127
|
+
const de_CloudHsmInternalFailureException = (output, context) => {
|
|
1128
1128
|
return {
|
|
1129
1129
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1130
1130
|
};
|
|
1131
1131
|
};
|
|
1132
|
-
const
|
|
1132
|
+
const de_CloudHsmInvalidRequestException = (output, context) => {
|
|
1133
1133
|
return {
|
|
1134
1134
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1135
1135
|
};
|
|
1136
1136
|
};
|
|
1137
|
-
const
|
|
1137
|
+
const de_CloudHsmResourceNotFoundException = (output, context) => {
|
|
1138
1138
|
return {
|
|
1139
1139
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1140
1140
|
};
|
|
1141
1141
|
};
|
|
1142
|
-
const
|
|
1142
|
+
const de_CloudHsmServiceException = (output, context) => {
|
|
1143
1143
|
return {
|
|
1144
1144
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1145
1145
|
};
|
|
1146
1146
|
};
|
|
1147
|
-
const
|
|
1147
|
+
const de_CloudHsmTagException = (output, context) => {
|
|
1148
1148
|
return {
|
|
1149
1149
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1150
1150
|
};
|
|
1151
1151
|
};
|
|
1152
|
-
const
|
|
1152
|
+
const de_Cluster = (output, context) => {
|
|
1153
1153
|
return {
|
|
1154
1154
|
BackupPolicy: (0, smithy_client_1.expectString)(output.BackupPolicy),
|
|
1155
1155
|
BackupRetentionPolicy: output.BackupRetentionPolicy != null
|
|
1156
|
-
?
|
|
1156
|
+
? de_BackupRetentionPolicy(output.BackupRetentionPolicy, context)
|
|
1157
1157
|
: undefined,
|
|
1158
|
-
Certificates: output.Certificates != null ?
|
|
1158
|
+
Certificates: output.Certificates != null ? de_Certificates(output.Certificates, context) : undefined,
|
|
1159
1159
|
ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
|
|
1160
1160
|
CreateTimestamp: output.CreateTimestamp != null
|
|
1161
1161
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
|
|
1162
1162
|
: undefined,
|
|
1163
1163
|
HsmType: (0, smithy_client_1.expectString)(output.HsmType),
|
|
1164
|
-
Hsms: output.Hsms != null ?
|
|
1164
|
+
Hsms: output.Hsms != null ? de_Hsms(output.Hsms, context) : undefined,
|
|
1165
1165
|
PreCoPassword: (0, smithy_client_1.expectString)(output.PreCoPassword),
|
|
1166
1166
|
SecurityGroup: (0, smithy_client_1.expectString)(output.SecurityGroup),
|
|
1167
1167
|
SourceBackupId: (0, smithy_client_1.expectString)(output.SourceBackupId),
|
|
1168
1168
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1169
1169
|
StateMessage: (0, smithy_client_1.expectString)(output.StateMessage),
|
|
1170
|
-
SubnetMapping: output.SubnetMapping != null
|
|
1171
|
-
|
|
1172
|
-
: undefined,
|
|
1173
|
-
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
1170
|
+
SubnetMapping: output.SubnetMapping != null ? de_ExternalSubnetMapping(output.SubnetMapping, context) : undefined,
|
|
1171
|
+
TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
|
|
1174
1172
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
1175
1173
|
};
|
|
1176
1174
|
};
|
|
1177
|
-
const
|
|
1175
|
+
const de_Clusters = (output, context) => {
|
|
1178
1176
|
const retVal = (output || [])
|
|
1179
1177
|
.filter((e) => e != null)
|
|
1180
1178
|
.map((entry) => {
|
|
1181
1179
|
if (entry === null) {
|
|
1182
1180
|
return null;
|
|
1183
1181
|
}
|
|
1184
|
-
return
|
|
1182
|
+
return de_Cluster(entry, context);
|
|
1185
1183
|
});
|
|
1186
1184
|
return retVal;
|
|
1187
1185
|
};
|
|
1188
|
-
const
|
|
1186
|
+
const de_CopyBackupToRegionResponse = (output, context) => {
|
|
1189
1187
|
return {
|
|
1190
|
-
DestinationBackup: output.DestinationBackup != null
|
|
1191
|
-
? deserializeAws_json1_1DestinationBackup(output.DestinationBackup, context)
|
|
1192
|
-
: undefined,
|
|
1188
|
+
DestinationBackup: output.DestinationBackup != null ? de_DestinationBackup(output.DestinationBackup, context) : undefined,
|
|
1193
1189
|
};
|
|
1194
1190
|
};
|
|
1195
|
-
const
|
|
1191
|
+
const de_CreateClusterResponse = (output, context) => {
|
|
1196
1192
|
return {
|
|
1197
|
-
Cluster: output.Cluster != null ?
|
|
1193
|
+
Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
|
|
1198
1194
|
};
|
|
1199
1195
|
};
|
|
1200
|
-
const
|
|
1196
|
+
const de_CreateHsmResponse = (output, context) => {
|
|
1201
1197
|
return {
|
|
1202
|
-
Hsm: output.Hsm != null ?
|
|
1198
|
+
Hsm: output.Hsm != null ? de_Hsm(output.Hsm, context) : undefined,
|
|
1203
1199
|
};
|
|
1204
1200
|
};
|
|
1205
|
-
const
|
|
1201
|
+
const de_DeleteBackupResponse = (output, context) => {
|
|
1206
1202
|
return {
|
|
1207
|
-
Backup: output.Backup != null ?
|
|
1203
|
+
Backup: output.Backup != null ? de_Backup(output.Backup, context) : undefined,
|
|
1208
1204
|
};
|
|
1209
1205
|
};
|
|
1210
|
-
const
|
|
1206
|
+
const de_DeleteClusterResponse = (output, context) => {
|
|
1211
1207
|
return {
|
|
1212
|
-
Cluster: output.Cluster != null ?
|
|
1208
|
+
Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
|
|
1213
1209
|
};
|
|
1214
1210
|
};
|
|
1215
|
-
const
|
|
1211
|
+
const de_DeleteHsmResponse = (output, context) => {
|
|
1216
1212
|
return {
|
|
1217
1213
|
HsmId: (0, smithy_client_1.expectString)(output.HsmId),
|
|
1218
1214
|
};
|
|
1219
1215
|
};
|
|
1220
|
-
const
|
|
1216
|
+
const de_DescribeBackupsResponse = (output, context) => {
|
|
1221
1217
|
return {
|
|
1222
|
-
Backups: output.Backups != null ?
|
|
1218
|
+
Backups: output.Backups != null ? de_Backups(output.Backups, context) : undefined,
|
|
1223
1219
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1224
1220
|
};
|
|
1225
1221
|
};
|
|
1226
|
-
const
|
|
1222
|
+
const de_DescribeClustersResponse = (output, context) => {
|
|
1227
1223
|
return {
|
|
1228
|
-
Clusters: output.Clusters != null ?
|
|
1224
|
+
Clusters: output.Clusters != null ? de_Clusters(output.Clusters, context) : undefined,
|
|
1229
1225
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1230
1226
|
};
|
|
1231
1227
|
};
|
|
1232
|
-
const
|
|
1228
|
+
const de_DestinationBackup = (output, context) => {
|
|
1233
1229
|
return {
|
|
1234
1230
|
CreateTimestamp: output.CreateTimestamp != null
|
|
1235
1231
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
|
|
@@ -1239,7 +1235,7 @@ const deserializeAws_json1_1DestinationBackup = (output, context) => {
|
|
|
1239
1235
|
SourceRegion: (0, smithy_client_1.expectString)(output.SourceRegion),
|
|
1240
1236
|
};
|
|
1241
1237
|
};
|
|
1242
|
-
const
|
|
1238
|
+
const de_ExternalSubnetMapping = (output, context) => {
|
|
1243
1239
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1244
1240
|
if (value === null) {
|
|
1245
1241
|
return acc;
|
|
@@ -1248,7 +1244,7 @@ const deserializeAws_json1_1ExternalSubnetMapping = (output, context) => {
|
|
|
1248
1244
|
return acc;
|
|
1249
1245
|
}, {});
|
|
1250
1246
|
};
|
|
1251
|
-
const
|
|
1247
|
+
const de_Hsm = (output, context) => {
|
|
1252
1248
|
return {
|
|
1253
1249
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
1254
1250
|
ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
|
|
@@ -1260,65 +1256,65 @@ const deserializeAws_json1_1Hsm = (output, context) => {
|
|
|
1260
1256
|
SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
|
|
1261
1257
|
};
|
|
1262
1258
|
};
|
|
1263
|
-
const
|
|
1259
|
+
const de_Hsms = (output, context) => {
|
|
1264
1260
|
const retVal = (output || [])
|
|
1265
1261
|
.filter((e) => e != null)
|
|
1266
1262
|
.map((entry) => {
|
|
1267
1263
|
if (entry === null) {
|
|
1268
1264
|
return null;
|
|
1269
1265
|
}
|
|
1270
|
-
return
|
|
1266
|
+
return de_Hsm(entry, context);
|
|
1271
1267
|
});
|
|
1272
1268
|
return retVal;
|
|
1273
1269
|
};
|
|
1274
|
-
const
|
|
1270
|
+
const de_InitializeClusterResponse = (output, context) => {
|
|
1275
1271
|
return {
|
|
1276
1272
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1277
1273
|
StateMessage: (0, smithy_client_1.expectString)(output.StateMessage),
|
|
1278
1274
|
};
|
|
1279
1275
|
};
|
|
1280
|
-
const
|
|
1276
|
+
const de_ListTagsResponse = (output, context) => {
|
|
1281
1277
|
return {
|
|
1282
1278
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1283
|
-
TagList: output.TagList != null ?
|
|
1279
|
+
TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
|
|
1284
1280
|
};
|
|
1285
1281
|
};
|
|
1286
|
-
const
|
|
1282
|
+
const de_ModifyBackupAttributesResponse = (output, context) => {
|
|
1287
1283
|
return {
|
|
1288
|
-
Backup: output.Backup != null ?
|
|
1284
|
+
Backup: output.Backup != null ? de_Backup(output.Backup, context) : undefined,
|
|
1289
1285
|
};
|
|
1290
1286
|
};
|
|
1291
|
-
const
|
|
1287
|
+
const de_ModifyClusterResponse = (output, context) => {
|
|
1292
1288
|
return {
|
|
1293
|
-
Cluster: output.Cluster != null ?
|
|
1289
|
+
Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
|
|
1294
1290
|
};
|
|
1295
1291
|
};
|
|
1296
|
-
const
|
|
1292
|
+
const de_RestoreBackupResponse = (output, context) => {
|
|
1297
1293
|
return {
|
|
1298
|
-
Backup: output.Backup != null ?
|
|
1294
|
+
Backup: output.Backup != null ? de_Backup(output.Backup, context) : undefined,
|
|
1299
1295
|
};
|
|
1300
1296
|
};
|
|
1301
|
-
const
|
|
1297
|
+
const de_Tag = (output, context) => {
|
|
1302
1298
|
return {
|
|
1303
1299
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1304
1300
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1305
1301
|
};
|
|
1306
1302
|
};
|
|
1307
|
-
const
|
|
1303
|
+
const de_TagList = (output, context) => {
|
|
1308
1304
|
const retVal = (output || [])
|
|
1309
1305
|
.filter((e) => e != null)
|
|
1310
1306
|
.map((entry) => {
|
|
1311
1307
|
if (entry === null) {
|
|
1312
1308
|
return null;
|
|
1313
1309
|
}
|
|
1314
|
-
return
|
|
1310
|
+
return de_Tag(entry, context);
|
|
1315
1311
|
});
|
|
1316
1312
|
return retVal;
|
|
1317
1313
|
};
|
|
1318
|
-
const
|
|
1314
|
+
const de_TagResourceResponse = (output, context) => {
|
|
1319
1315
|
return {};
|
|
1320
1316
|
};
|
|
1321
|
-
const
|
|
1317
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
1322
1318
|
return {};
|
|
1323
1319
|
};
|
|
1324
1320
|
const deserializeMetadata = (output) => ({
|