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