@aws-sdk/client-cloudhsm 3.306.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/AddTagsToResourceCommand.js +2 -2
- package/dist-cjs/commands/CreateHapgCommand.js +2 -2
- package/dist-cjs/commands/CreateHsmCommand.js +2 -2
- package/dist-cjs/commands/CreateLunaClientCommand.js +2 -2
- package/dist-cjs/commands/DeleteHapgCommand.js +2 -2
- package/dist-cjs/commands/DeleteHsmCommand.js +2 -2
- package/dist-cjs/commands/DeleteLunaClientCommand.js +2 -2
- package/dist-cjs/commands/DescribeHapgCommand.js +2 -2
- package/dist-cjs/commands/DescribeHsmCommand.js +2 -2
- package/dist-cjs/commands/DescribeLunaClientCommand.js +2 -2
- package/dist-cjs/commands/GetConfigCommand.js +2 -2
- package/dist-cjs/commands/ListAvailableZonesCommand.js +2 -2
- package/dist-cjs/commands/ListHapgsCommand.js +2 -2
- package/dist-cjs/commands/ListHsmsCommand.js +2 -2
- package/dist-cjs/commands/ListLunaClientsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ModifyHapgCommand.js +2 -2
- package/dist-cjs/commands/ModifyHsmCommand.js +2 -2
- package/dist-cjs/commands/ModifyLunaClientCommand.js +2 -2
- package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +297 -305
- package/dist-es/commands/AddTagsToResourceCommand.js +3 -3
- package/dist-es/commands/CreateHapgCommand.js +3 -3
- package/dist-es/commands/CreateHsmCommand.js +3 -3
- package/dist-es/commands/CreateLunaClientCommand.js +3 -3
- package/dist-es/commands/DeleteHapgCommand.js +3 -3
- package/dist-es/commands/DeleteHsmCommand.js +3 -3
- package/dist-es/commands/DeleteLunaClientCommand.js +3 -3
- package/dist-es/commands/DescribeHapgCommand.js +3 -3
- package/dist-es/commands/DescribeHsmCommand.js +3 -3
- package/dist-es/commands/DescribeLunaClientCommand.js +3 -3
- package/dist-es/commands/GetConfigCommand.js +3 -3
- package/dist-es/commands/ListAvailableZonesCommand.js +3 -3
- package/dist-es/commands/ListHapgsCommand.js +3 -3
- package/dist-es/commands/ListHsmsCommand.js +3 -3
- package/dist-es/commands/ListLunaClientsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ModifyHapgCommand.js +3 -3
- package/dist-es/commands/ModifyHsmCommand.js +3 -3
- package/dist-es/commands/ModifyLunaClientCommand.js +3 -3
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +256 -264
- package/dist-types/protocols/Aws_json1_1.d.ts +160 -40
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +40 -40
- package/package.json +6 -6
|
@@ -2,200 +2,200 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CloudHSMServiceException as __BaseException } from "../models/CloudHSMServiceException";
|
|
4
4
|
import { CloudHsmInternalException, CloudHsmServiceException, InvalidRequestException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_AddTagsToResourceCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "CloudHsmFrontendService.AddTagsToResource",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_AddTagsToResourceRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_CreateHapgCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "CloudHsmFrontendService.CreateHapg",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_CreateHapgRequest(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": "CloudHsmFrontendService.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_CreateLunaClientCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "CloudHsmFrontendService.CreateLunaClient",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_CreateLunaClientRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_DeleteHapgCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "CloudHsmFrontendService.DeleteHapg",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_DeleteHapgRequest(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": "CloudHsmFrontendService.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_DeleteLunaClientCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "CloudHsmFrontendService.DeleteLunaClient",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DeleteLunaClientRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_DescribeHapgCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "CloudHsmFrontendService.DescribeHapg",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DescribeHapgRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_DescribeHsmCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "CloudHsmFrontendService.DescribeHsm",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_DescribeHsmRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_DescribeLunaClientCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "CloudHsmFrontendService.DescribeLunaClient",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_DescribeLunaClientRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_GetConfigCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "CloudHsmFrontendService.GetConfig",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_GetConfigRequest(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_ListAvailableZonesCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.1",
|
|
107
107
|
"x-amz-target": "CloudHsmFrontendService.ListAvailableZones",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_ListAvailableZonesRequest(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_ListHapgsCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.1",
|
|
116
116
|
"x-amz-target": "CloudHsmFrontendService.ListHapgs",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_ListHapgsRequest(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_ListHsmsCommand = async (input, context) => {
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/x-amz-json-1.1",
|
|
125
125
|
"x-amz-target": "CloudHsmFrontendService.ListHsms",
|
|
126
126
|
};
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(se_ListHsmsRequest(input, context));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const se_ListLunaClientsCommand = async (input, context) => {
|
|
132
132
|
const headers = {
|
|
133
133
|
"content-type": "application/x-amz-json-1.1",
|
|
134
134
|
"x-amz-target": "CloudHsmFrontendService.ListLunaClients",
|
|
135
135
|
};
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify(se_ListLunaClientsRequest(input, context));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/x-amz-json-1.1",
|
|
143
143
|
"x-amz-target": "CloudHsmFrontendService.ListTagsForResource",
|
|
144
144
|
};
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const se_ModifyHapgCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "CloudHsmFrontendService.ModifyHapg",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_ModifyHapgRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
export const
|
|
158
|
+
export const se_ModifyHsmCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.1",
|
|
161
161
|
"x-amz-target": "CloudHsmFrontendService.ModifyHsm",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_ModifyHsmRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
export const
|
|
167
|
+
export const se_ModifyLunaClientCommand = async (input, context) => {
|
|
168
168
|
const headers = {
|
|
169
169
|
"content-type": "application/x-amz-json-1.1",
|
|
170
170
|
"x-amz-target": "CloudHsmFrontendService.ModifyLunaClient",
|
|
171
171
|
};
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify(se_ModifyLunaClientRequest(input, context));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
177
177
|
const headers = {
|
|
178
178
|
"content-type": "application/x-amz-json-1.1",
|
|
179
179
|
"x-amz-target": "CloudHsmFrontendService.RemoveTagsFromResource",
|
|
180
180
|
};
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(se_RemoveTagsFromResourceRequest(input, context));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
186
186
|
if (output.statusCode >= 300) {
|
|
187
|
-
return
|
|
187
|
+
return de_AddTagsToResourceCommandError(output, context);
|
|
188
188
|
}
|
|
189
189
|
const data = await parseBody(output.body, context);
|
|
190
190
|
let contents = {};
|
|
191
|
-
contents =
|
|
191
|
+
contents = de_AddTagsToResourceResponse(data, context);
|
|
192
192
|
const response = {
|
|
193
193
|
$metadata: deserializeMetadata(output),
|
|
194
194
|
...contents,
|
|
195
195
|
};
|
|
196
196
|
return Promise.resolve(response);
|
|
197
197
|
};
|
|
198
|
-
const
|
|
198
|
+
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
199
199
|
const parsedOutput = {
|
|
200
200
|
...output,
|
|
201
201
|
body: await parseErrorBody(output.body, context),
|
|
@@ -204,13 +204,13 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
204
204
|
switch (errorCode) {
|
|
205
205
|
case "CloudHsmInternalException":
|
|
206
206
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
208
208
|
case "CloudHsmServiceException":
|
|
209
209
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
211
211
|
case "InvalidRequestException":
|
|
212
212
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
213
|
-
throw await
|
|
213
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
214
214
|
default:
|
|
215
215
|
const parsedBody = parsedOutput.body;
|
|
216
216
|
throwDefaultError({
|
|
@@ -221,20 +221,20 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
-
export const
|
|
224
|
+
export const de_CreateHapgCommand = async (output, context) => {
|
|
225
225
|
if (output.statusCode >= 300) {
|
|
226
|
-
return
|
|
226
|
+
return de_CreateHapgCommandError(output, context);
|
|
227
227
|
}
|
|
228
228
|
const data = await parseBody(output.body, context);
|
|
229
229
|
let contents = {};
|
|
230
|
-
contents =
|
|
230
|
+
contents = de_CreateHapgResponse(data, context);
|
|
231
231
|
const response = {
|
|
232
232
|
$metadata: deserializeMetadata(output),
|
|
233
233
|
...contents,
|
|
234
234
|
};
|
|
235
235
|
return Promise.resolve(response);
|
|
236
236
|
};
|
|
237
|
-
const
|
|
237
|
+
const de_CreateHapgCommandError = async (output, context) => {
|
|
238
238
|
const parsedOutput = {
|
|
239
239
|
...output,
|
|
240
240
|
body: await parseErrorBody(output.body, context),
|
|
@@ -243,13 +243,13 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
243
243
|
switch (errorCode) {
|
|
244
244
|
case "CloudHsmInternalException":
|
|
245
245
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
247
247
|
case "CloudHsmServiceException":
|
|
248
248
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
249
|
-
throw await
|
|
249
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
250
250
|
case "InvalidRequestException":
|
|
251
251
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
252
|
-
throw await
|
|
252
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
253
253
|
default:
|
|
254
254
|
const parsedBody = parsedOutput.body;
|
|
255
255
|
throwDefaultError({
|
|
@@ -260,20 +260,20 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
|
-
export const
|
|
263
|
+
export const de_CreateHsmCommand = async (output, context) => {
|
|
264
264
|
if (output.statusCode >= 300) {
|
|
265
|
-
return
|
|
265
|
+
return de_CreateHsmCommandError(output, context);
|
|
266
266
|
}
|
|
267
267
|
const data = await parseBody(output.body, context);
|
|
268
268
|
let contents = {};
|
|
269
|
-
contents =
|
|
269
|
+
contents = de_CreateHsmResponse(data, context);
|
|
270
270
|
const response = {
|
|
271
271
|
$metadata: deserializeMetadata(output),
|
|
272
272
|
...contents,
|
|
273
273
|
};
|
|
274
274
|
return Promise.resolve(response);
|
|
275
275
|
};
|
|
276
|
-
const
|
|
276
|
+
const de_CreateHsmCommandError = async (output, context) => {
|
|
277
277
|
const parsedOutput = {
|
|
278
278
|
...output,
|
|
279
279
|
body: await parseErrorBody(output.body, context),
|
|
@@ -282,13 +282,13 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
282
282
|
switch (errorCode) {
|
|
283
283
|
case "CloudHsmInternalException":
|
|
284
284
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
285
|
-
throw await
|
|
285
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
286
286
|
case "CloudHsmServiceException":
|
|
287
287
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
288
|
-
throw await
|
|
288
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
289
289
|
case "InvalidRequestException":
|
|
290
290
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
291
|
-
throw await
|
|
291
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
292
292
|
default:
|
|
293
293
|
const parsedBody = parsedOutput.body;
|
|
294
294
|
throwDefaultError({
|
|
@@ -299,20 +299,20 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
export const
|
|
302
|
+
export const de_CreateLunaClientCommand = async (output, context) => {
|
|
303
303
|
if (output.statusCode >= 300) {
|
|
304
|
-
return
|
|
304
|
+
return de_CreateLunaClientCommandError(output, context);
|
|
305
305
|
}
|
|
306
306
|
const data = await parseBody(output.body, context);
|
|
307
307
|
let contents = {};
|
|
308
|
-
contents =
|
|
308
|
+
contents = de_CreateLunaClientResponse(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
|
-
const
|
|
315
|
+
const de_CreateLunaClientCommandError = async (output, context) => {
|
|
316
316
|
const parsedOutput = {
|
|
317
317
|
...output,
|
|
318
318
|
body: await parseErrorBody(output.body, context),
|
|
@@ -321,13 +321,13 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
321
321
|
switch (errorCode) {
|
|
322
322
|
case "CloudHsmInternalException":
|
|
323
323
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
324
|
-
throw await
|
|
324
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
325
325
|
case "CloudHsmServiceException":
|
|
326
326
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
327
|
-
throw await
|
|
327
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
328
328
|
case "InvalidRequestException":
|
|
329
329
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
330
|
-
throw await
|
|
330
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
331
331
|
default:
|
|
332
332
|
const parsedBody = parsedOutput.body;
|
|
333
333
|
throwDefaultError({
|
|
@@ -338,20 +338,20 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
|
-
export const
|
|
341
|
+
export const de_DeleteHapgCommand = async (output, context) => {
|
|
342
342
|
if (output.statusCode >= 300) {
|
|
343
|
-
return
|
|
343
|
+
return de_DeleteHapgCommandError(output, context);
|
|
344
344
|
}
|
|
345
345
|
const data = await parseBody(output.body, context);
|
|
346
346
|
let contents = {};
|
|
347
|
-
contents =
|
|
347
|
+
contents = de_DeleteHapgResponse(data, context);
|
|
348
348
|
const response = {
|
|
349
349
|
$metadata: deserializeMetadata(output),
|
|
350
350
|
...contents,
|
|
351
351
|
};
|
|
352
352
|
return Promise.resolve(response);
|
|
353
353
|
};
|
|
354
|
-
const
|
|
354
|
+
const de_DeleteHapgCommandError = async (output, context) => {
|
|
355
355
|
const parsedOutput = {
|
|
356
356
|
...output,
|
|
357
357
|
body: await parseErrorBody(output.body, context),
|
|
@@ -360,13 +360,13 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
360
360
|
switch (errorCode) {
|
|
361
361
|
case "CloudHsmInternalException":
|
|
362
362
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
363
|
-
throw await
|
|
363
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
364
364
|
case "CloudHsmServiceException":
|
|
365
365
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
366
|
-
throw await
|
|
366
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
367
367
|
case "InvalidRequestException":
|
|
368
368
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
369
|
-
throw await
|
|
369
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
370
370
|
default:
|
|
371
371
|
const parsedBody = parsedOutput.body;
|
|
372
372
|
throwDefaultError({
|
|
@@ -377,20 +377,20 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
export const
|
|
380
|
+
export const de_DeleteHsmCommand = async (output, context) => {
|
|
381
381
|
if (output.statusCode >= 300) {
|
|
382
|
-
return
|
|
382
|
+
return de_DeleteHsmCommandError(output, context);
|
|
383
383
|
}
|
|
384
384
|
const data = await parseBody(output.body, context);
|
|
385
385
|
let contents = {};
|
|
386
|
-
contents =
|
|
386
|
+
contents = de_DeleteHsmResponse(data, context);
|
|
387
387
|
const response = {
|
|
388
388
|
$metadata: deserializeMetadata(output),
|
|
389
389
|
...contents,
|
|
390
390
|
};
|
|
391
391
|
return Promise.resolve(response);
|
|
392
392
|
};
|
|
393
|
-
const
|
|
393
|
+
const de_DeleteHsmCommandError = async (output, context) => {
|
|
394
394
|
const parsedOutput = {
|
|
395
395
|
...output,
|
|
396
396
|
body: await parseErrorBody(output.body, context),
|
|
@@ -399,13 +399,13 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
399
399
|
switch (errorCode) {
|
|
400
400
|
case "CloudHsmInternalException":
|
|
401
401
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
403
403
|
case "CloudHsmServiceException":
|
|
404
404
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
405
|
-
throw await
|
|
405
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
406
406
|
case "InvalidRequestException":
|
|
407
407
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
408
|
-
throw await
|
|
408
|
+
throw await de_InvalidRequestExceptionRes(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_DeleteLunaClientCommand = async (output, context) => {
|
|
420
420
|
if (output.statusCode >= 300) {
|
|
421
|
-
return
|
|
421
|
+
return de_DeleteLunaClientCommandError(output, context);
|
|
422
422
|
}
|
|
423
423
|
const data = await parseBody(output.body, context);
|
|
424
424
|
let contents = {};
|
|
425
|
-
contents =
|
|
425
|
+
contents = de_DeleteLunaClientResponse(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_DeleteLunaClientCommandError = async (output, context) => {
|
|
433
433
|
const parsedOutput = {
|
|
434
434
|
...output,
|
|
435
435
|
body: await parseErrorBody(output.body, context),
|
|
@@ -438,13 +438,13 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
438
438
|
switch (errorCode) {
|
|
439
439
|
case "CloudHsmInternalException":
|
|
440
440
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
441
|
-
throw await
|
|
441
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
442
442
|
case "CloudHsmServiceException":
|
|
443
443
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
444
|
-
throw await
|
|
444
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
445
445
|
case "InvalidRequestException":
|
|
446
446
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
447
|
-
throw await
|
|
447
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
448
448
|
default:
|
|
449
449
|
const parsedBody = parsedOutput.body;
|
|
450
450
|
throwDefaultError({
|
|
@@ -455,20 +455,20 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
export const
|
|
458
|
+
export const de_DescribeHapgCommand = async (output, context) => {
|
|
459
459
|
if (output.statusCode >= 300) {
|
|
460
|
-
return
|
|
460
|
+
return de_DescribeHapgCommandError(output, context);
|
|
461
461
|
}
|
|
462
462
|
const data = await parseBody(output.body, context);
|
|
463
463
|
let contents = {};
|
|
464
|
-
contents =
|
|
464
|
+
contents = de_DescribeHapgResponse(data, context);
|
|
465
465
|
const response = {
|
|
466
466
|
$metadata: deserializeMetadata(output),
|
|
467
467
|
...contents,
|
|
468
468
|
};
|
|
469
469
|
return Promise.resolve(response);
|
|
470
470
|
};
|
|
471
|
-
const
|
|
471
|
+
const de_DescribeHapgCommandError = async (output, context) => {
|
|
472
472
|
const parsedOutput = {
|
|
473
473
|
...output,
|
|
474
474
|
body: await parseErrorBody(output.body, context),
|
|
@@ -477,13 +477,13 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
477
477
|
switch (errorCode) {
|
|
478
478
|
case "CloudHsmInternalException":
|
|
479
479
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
480
|
-
throw await
|
|
480
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
481
481
|
case "CloudHsmServiceException":
|
|
482
482
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
483
|
-
throw await
|
|
483
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
484
484
|
case "InvalidRequestException":
|
|
485
485
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
486
|
-
throw await
|
|
486
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
487
487
|
default:
|
|
488
488
|
const parsedBody = parsedOutput.body;
|
|
489
489
|
throwDefaultError({
|
|
@@ -494,20 +494,20 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
|
-
export const
|
|
497
|
+
export const de_DescribeHsmCommand = async (output, context) => {
|
|
498
498
|
if (output.statusCode >= 300) {
|
|
499
|
-
return
|
|
499
|
+
return de_DescribeHsmCommandError(output, context);
|
|
500
500
|
}
|
|
501
501
|
const data = await parseBody(output.body, context);
|
|
502
502
|
let contents = {};
|
|
503
|
-
contents =
|
|
503
|
+
contents = de_DescribeHsmResponse(data, context);
|
|
504
504
|
const response = {
|
|
505
505
|
$metadata: deserializeMetadata(output),
|
|
506
506
|
...contents,
|
|
507
507
|
};
|
|
508
508
|
return Promise.resolve(response);
|
|
509
509
|
};
|
|
510
|
-
const
|
|
510
|
+
const de_DescribeHsmCommandError = async (output, context) => {
|
|
511
511
|
const parsedOutput = {
|
|
512
512
|
...output,
|
|
513
513
|
body: await parseErrorBody(output.body, context),
|
|
@@ -516,13 +516,13 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
516
516
|
switch (errorCode) {
|
|
517
517
|
case "CloudHsmInternalException":
|
|
518
518
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
520
520
|
case "CloudHsmServiceException":
|
|
521
521
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
522
|
-
throw await
|
|
522
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
523
523
|
case "InvalidRequestException":
|
|
524
524
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
525
|
-
throw await
|
|
525
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
526
526
|
default:
|
|
527
527
|
const parsedBody = parsedOutput.body;
|
|
528
528
|
throwDefaultError({
|
|
@@ -533,20 +533,20 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
|
-
export const
|
|
536
|
+
export const de_DescribeLunaClientCommand = async (output, context) => {
|
|
537
537
|
if (output.statusCode >= 300) {
|
|
538
|
-
return
|
|
538
|
+
return de_DescribeLunaClientCommandError(output, context);
|
|
539
539
|
}
|
|
540
540
|
const data = await parseBody(output.body, context);
|
|
541
541
|
let contents = {};
|
|
542
|
-
contents =
|
|
542
|
+
contents = de_DescribeLunaClientResponse(data, context);
|
|
543
543
|
const response = {
|
|
544
544
|
$metadata: deserializeMetadata(output),
|
|
545
545
|
...contents,
|
|
546
546
|
};
|
|
547
547
|
return Promise.resolve(response);
|
|
548
548
|
};
|
|
549
|
-
const
|
|
549
|
+
const de_DescribeLunaClientCommandError = async (output, context) => {
|
|
550
550
|
const parsedOutput = {
|
|
551
551
|
...output,
|
|
552
552
|
body: await parseErrorBody(output.body, context),
|
|
@@ -555,13 +555,13 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
555
555
|
switch (errorCode) {
|
|
556
556
|
case "CloudHsmInternalException":
|
|
557
557
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
559
559
|
case "CloudHsmServiceException":
|
|
560
560
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
562
562
|
case "InvalidRequestException":
|
|
563
563
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
564
|
-
throw await
|
|
564
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
565
565
|
default:
|
|
566
566
|
const parsedBody = parsedOutput.body;
|
|
567
567
|
throwDefaultError({
|
|
@@ -572,20 +572,20 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
574
|
};
|
|
575
|
-
export const
|
|
575
|
+
export const de_GetConfigCommand = async (output, context) => {
|
|
576
576
|
if (output.statusCode >= 300) {
|
|
577
|
-
return
|
|
577
|
+
return de_GetConfigCommandError(output, context);
|
|
578
578
|
}
|
|
579
579
|
const data = await parseBody(output.body, context);
|
|
580
580
|
let contents = {};
|
|
581
|
-
contents =
|
|
581
|
+
contents = de_GetConfigResponse(data, context);
|
|
582
582
|
const response = {
|
|
583
583
|
$metadata: deserializeMetadata(output),
|
|
584
584
|
...contents,
|
|
585
585
|
};
|
|
586
586
|
return Promise.resolve(response);
|
|
587
587
|
};
|
|
588
|
-
const
|
|
588
|
+
const de_GetConfigCommandError = async (output, context) => {
|
|
589
589
|
const parsedOutput = {
|
|
590
590
|
...output,
|
|
591
591
|
body: await parseErrorBody(output.body, context),
|
|
@@ -594,13 +594,13 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
594
594
|
switch (errorCode) {
|
|
595
595
|
case "CloudHsmInternalException":
|
|
596
596
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
598
598
|
case "CloudHsmServiceException":
|
|
599
599
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
600
|
-
throw await
|
|
600
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
601
601
|
case "InvalidRequestException":
|
|
602
602
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
603
|
-
throw await
|
|
603
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
604
604
|
default:
|
|
605
605
|
const parsedBody = parsedOutput.body;
|
|
606
606
|
throwDefaultError({
|
|
@@ -611,20 +611,20 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
|
-
export const
|
|
614
|
+
export const de_ListAvailableZonesCommand = async (output, context) => {
|
|
615
615
|
if (output.statusCode >= 300) {
|
|
616
|
-
return
|
|
616
|
+
return de_ListAvailableZonesCommandError(output, context);
|
|
617
617
|
}
|
|
618
618
|
const data = await parseBody(output.body, context);
|
|
619
619
|
let contents = {};
|
|
620
|
-
contents =
|
|
620
|
+
contents = de_ListAvailableZonesResponse(data, context);
|
|
621
621
|
const response = {
|
|
622
622
|
$metadata: deserializeMetadata(output),
|
|
623
623
|
...contents,
|
|
624
624
|
};
|
|
625
625
|
return Promise.resolve(response);
|
|
626
626
|
};
|
|
627
|
-
const
|
|
627
|
+
const de_ListAvailableZonesCommandError = async (output, context) => {
|
|
628
628
|
const parsedOutput = {
|
|
629
629
|
...output,
|
|
630
630
|
body: await parseErrorBody(output.body, context),
|
|
@@ -633,13 +633,13 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
633
633
|
switch (errorCode) {
|
|
634
634
|
case "CloudHsmInternalException":
|
|
635
635
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
636
|
-
throw await
|
|
636
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
637
637
|
case "CloudHsmServiceException":
|
|
638
638
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
639
|
-
throw await
|
|
639
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
640
640
|
case "InvalidRequestException":
|
|
641
641
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
642
|
-
throw await
|
|
642
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
643
643
|
default:
|
|
644
644
|
const parsedBody = parsedOutput.body;
|
|
645
645
|
throwDefaultError({
|
|
@@ -650,20 +650,20 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
|
-
export const
|
|
653
|
+
export const de_ListHapgsCommand = async (output, context) => {
|
|
654
654
|
if (output.statusCode >= 300) {
|
|
655
|
-
return
|
|
655
|
+
return de_ListHapgsCommandError(output, context);
|
|
656
656
|
}
|
|
657
657
|
const data = await parseBody(output.body, context);
|
|
658
658
|
let contents = {};
|
|
659
|
-
contents =
|
|
659
|
+
contents = de_ListHapgsResponse(data, context);
|
|
660
660
|
const response = {
|
|
661
661
|
$metadata: deserializeMetadata(output),
|
|
662
662
|
...contents,
|
|
663
663
|
};
|
|
664
664
|
return Promise.resolve(response);
|
|
665
665
|
};
|
|
666
|
-
const
|
|
666
|
+
const de_ListHapgsCommandError = async (output, context) => {
|
|
667
667
|
const parsedOutput = {
|
|
668
668
|
...output,
|
|
669
669
|
body: await parseErrorBody(output.body, context),
|
|
@@ -672,13 +672,13 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
672
672
|
switch (errorCode) {
|
|
673
673
|
case "CloudHsmInternalException":
|
|
674
674
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
675
|
-
throw await
|
|
675
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
676
676
|
case "CloudHsmServiceException":
|
|
677
677
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
678
|
-
throw await
|
|
678
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
679
679
|
case "InvalidRequestException":
|
|
680
680
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
682
682
|
default:
|
|
683
683
|
const parsedBody = parsedOutput.body;
|
|
684
684
|
throwDefaultError({
|
|
@@ -689,20 +689,20 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
|
-
export const
|
|
692
|
+
export const de_ListHsmsCommand = async (output, context) => {
|
|
693
693
|
if (output.statusCode >= 300) {
|
|
694
|
-
return
|
|
694
|
+
return de_ListHsmsCommandError(output, context);
|
|
695
695
|
}
|
|
696
696
|
const data = await parseBody(output.body, context);
|
|
697
697
|
let contents = {};
|
|
698
|
-
contents =
|
|
698
|
+
contents = de_ListHsmsResponse(data, context);
|
|
699
699
|
const response = {
|
|
700
700
|
$metadata: deserializeMetadata(output),
|
|
701
701
|
...contents,
|
|
702
702
|
};
|
|
703
703
|
return Promise.resolve(response);
|
|
704
704
|
};
|
|
705
|
-
const
|
|
705
|
+
const de_ListHsmsCommandError = async (output, context) => {
|
|
706
706
|
const parsedOutput = {
|
|
707
707
|
...output,
|
|
708
708
|
body: await parseErrorBody(output.body, context),
|
|
@@ -711,13 +711,13 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
711
711
|
switch (errorCode) {
|
|
712
712
|
case "CloudHsmInternalException":
|
|
713
713
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
714
|
-
throw await
|
|
714
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
715
715
|
case "CloudHsmServiceException":
|
|
716
716
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
717
|
-
throw await
|
|
717
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
718
718
|
case "InvalidRequestException":
|
|
719
719
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
720
|
-
throw await
|
|
720
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
721
721
|
default:
|
|
722
722
|
const parsedBody = parsedOutput.body;
|
|
723
723
|
throwDefaultError({
|
|
@@ -728,20 +728,20 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
|
-
export const
|
|
731
|
+
export const de_ListLunaClientsCommand = async (output, context) => {
|
|
732
732
|
if (output.statusCode >= 300) {
|
|
733
|
-
return
|
|
733
|
+
return de_ListLunaClientsCommandError(output, context);
|
|
734
734
|
}
|
|
735
735
|
const data = await parseBody(output.body, context);
|
|
736
736
|
let contents = {};
|
|
737
|
-
contents =
|
|
737
|
+
contents = de_ListLunaClientsResponse(data, context);
|
|
738
738
|
const response = {
|
|
739
739
|
$metadata: deserializeMetadata(output),
|
|
740
740
|
...contents,
|
|
741
741
|
};
|
|
742
742
|
return Promise.resolve(response);
|
|
743
743
|
};
|
|
744
|
-
const
|
|
744
|
+
const de_ListLunaClientsCommandError = async (output, context) => {
|
|
745
745
|
const parsedOutput = {
|
|
746
746
|
...output,
|
|
747
747
|
body: await parseErrorBody(output.body, context),
|
|
@@ -750,13 +750,13 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
750
750
|
switch (errorCode) {
|
|
751
751
|
case "CloudHsmInternalException":
|
|
752
752
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
753
|
-
throw await
|
|
753
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
754
754
|
case "CloudHsmServiceException":
|
|
755
755
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
756
|
-
throw await
|
|
756
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
757
757
|
case "InvalidRequestException":
|
|
758
758
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
759
|
-
throw await
|
|
759
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
760
760
|
default:
|
|
761
761
|
const parsedBody = parsedOutput.body;
|
|
762
762
|
throwDefaultError({
|
|
@@ -767,20 +767,20 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
|
-
export const
|
|
770
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
771
771
|
if (output.statusCode >= 300) {
|
|
772
|
-
return
|
|
772
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
773
773
|
}
|
|
774
774
|
const data = await parseBody(output.body, context);
|
|
775
775
|
let contents = {};
|
|
776
|
-
contents =
|
|
776
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
777
777
|
const response = {
|
|
778
778
|
$metadata: deserializeMetadata(output),
|
|
779
779
|
...contents,
|
|
780
780
|
};
|
|
781
781
|
return Promise.resolve(response);
|
|
782
782
|
};
|
|
783
|
-
const
|
|
783
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
784
784
|
const parsedOutput = {
|
|
785
785
|
...output,
|
|
786
786
|
body: await parseErrorBody(output.body, context),
|
|
@@ -789,13 +789,13 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
789
789
|
switch (errorCode) {
|
|
790
790
|
case "CloudHsmInternalException":
|
|
791
791
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
792
|
-
throw await
|
|
792
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
793
793
|
case "CloudHsmServiceException":
|
|
794
794
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
795
|
-
throw await
|
|
795
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
796
796
|
case "InvalidRequestException":
|
|
797
797
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
798
|
-
throw await
|
|
798
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
799
799
|
default:
|
|
800
800
|
const parsedBody = parsedOutput.body;
|
|
801
801
|
throwDefaultError({
|
|
@@ -806,20 +806,20 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
};
|
|
809
|
-
export const
|
|
809
|
+
export const de_ModifyHapgCommand = async (output, context) => {
|
|
810
810
|
if (output.statusCode >= 300) {
|
|
811
|
-
return
|
|
811
|
+
return de_ModifyHapgCommandError(output, context);
|
|
812
812
|
}
|
|
813
813
|
const data = await parseBody(output.body, context);
|
|
814
814
|
let contents = {};
|
|
815
|
-
contents =
|
|
815
|
+
contents = de_ModifyHapgResponse(data, context);
|
|
816
816
|
const response = {
|
|
817
817
|
$metadata: deserializeMetadata(output),
|
|
818
818
|
...contents,
|
|
819
819
|
};
|
|
820
820
|
return Promise.resolve(response);
|
|
821
821
|
};
|
|
822
|
-
const
|
|
822
|
+
const de_ModifyHapgCommandError = async (output, context) => {
|
|
823
823
|
const parsedOutput = {
|
|
824
824
|
...output,
|
|
825
825
|
body: await parseErrorBody(output.body, context),
|
|
@@ -828,13 +828,13 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
828
828
|
switch (errorCode) {
|
|
829
829
|
case "CloudHsmInternalException":
|
|
830
830
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
831
|
-
throw await
|
|
831
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
832
832
|
case "CloudHsmServiceException":
|
|
833
833
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
834
|
-
throw await
|
|
834
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
835
835
|
case "InvalidRequestException":
|
|
836
836
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
837
|
-
throw await
|
|
837
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
838
838
|
default:
|
|
839
839
|
const parsedBody = parsedOutput.body;
|
|
840
840
|
throwDefaultError({
|
|
@@ -845,20 +845,20 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
845
845
|
});
|
|
846
846
|
}
|
|
847
847
|
};
|
|
848
|
-
export const
|
|
848
|
+
export const de_ModifyHsmCommand = async (output, context) => {
|
|
849
849
|
if (output.statusCode >= 300) {
|
|
850
|
-
return
|
|
850
|
+
return de_ModifyHsmCommandError(output, context);
|
|
851
851
|
}
|
|
852
852
|
const data = await parseBody(output.body, context);
|
|
853
853
|
let contents = {};
|
|
854
|
-
contents =
|
|
854
|
+
contents = de_ModifyHsmResponse(data, context);
|
|
855
855
|
const response = {
|
|
856
856
|
$metadata: deserializeMetadata(output),
|
|
857
857
|
...contents,
|
|
858
858
|
};
|
|
859
859
|
return Promise.resolve(response);
|
|
860
860
|
};
|
|
861
|
-
const
|
|
861
|
+
const de_ModifyHsmCommandError = async (output, context) => {
|
|
862
862
|
const parsedOutput = {
|
|
863
863
|
...output,
|
|
864
864
|
body: await parseErrorBody(output.body, context),
|
|
@@ -867,13 +867,13 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
867
867
|
switch (errorCode) {
|
|
868
868
|
case "CloudHsmInternalException":
|
|
869
869
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
870
|
-
throw await
|
|
870
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
871
871
|
case "CloudHsmServiceException":
|
|
872
872
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
873
|
-
throw await
|
|
873
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
874
874
|
case "InvalidRequestException":
|
|
875
875
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
876
|
-
throw await
|
|
876
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
877
877
|
default:
|
|
878
878
|
const parsedBody = parsedOutput.body;
|
|
879
879
|
throwDefaultError({
|
|
@@ -884,20 +884,20 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
|
-
export const
|
|
887
|
+
export const de_ModifyLunaClientCommand = async (output, context) => {
|
|
888
888
|
if (output.statusCode >= 300) {
|
|
889
|
-
return
|
|
889
|
+
return de_ModifyLunaClientCommandError(output, context);
|
|
890
890
|
}
|
|
891
891
|
const data = await parseBody(output.body, context);
|
|
892
892
|
let contents = {};
|
|
893
|
-
contents =
|
|
893
|
+
contents = de_ModifyLunaClientResponse(data, context);
|
|
894
894
|
const response = {
|
|
895
895
|
$metadata: deserializeMetadata(output),
|
|
896
896
|
...contents,
|
|
897
897
|
};
|
|
898
898
|
return Promise.resolve(response);
|
|
899
899
|
};
|
|
900
|
-
const
|
|
900
|
+
const de_ModifyLunaClientCommandError = async (output, context) => {
|
|
901
901
|
const parsedOutput = {
|
|
902
902
|
...output,
|
|
903
903
|
body: await parseErrorBody(output.body, context),
|
|
@@ -906,7 +906,7 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
|
|
|
906
906
|
switch (errorCode) {
|
|
907
907
|
case "CloudHsmServiceException":
|
|
908
908
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
909
|
-
throw await
|
|
909
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
910
910
|
default:
|
|
911
911
|
const parsedBody = parsedOutput.body;
|
|
912
912
|
throwDefaultError({
|
|
@@ -917,20 +917,20 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
|
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
};
|
|
920
|
-
export const
|
|
920
|
+
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
921
921
|
if (output.statusCode >= 300) {
|
|
922
|
-
return
|
|
922
|
+
return de_RemoveTagsFromResourceCommandError(output, context);
|
|
923
923
|
}
|
|
924
924
|
const data = await parseBody(output.body, context);
|
|
925
925
|
let contents = {};
|
|
926
|
-
contents =
|
|
926
|
+
contents = de_RemoveTagsFromResourceResponse(data, context);
|
|
927
927
|
const response = {
|
|
928
928
|
$metadata: deserializeMetadata(output),
|
|
929
929
|
...contents,
|
|
930
930
|
};
|
|
931
931
|
return Promise.resolve(response);
|
|
932
932
|
};
|
|
933
|
-
const
|
|
933
|
+
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
934
934
|
const parsedOutput = {
|
|
935
935
|
...output,
|
|
936
936
|
body: await parseErrorBody(output.body, context),
|
|
@@ -939,13 +939,13 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
939
939
|
switch (errorCode) {
|
|
940
940
|
case "CloudHsmInternalException":
|
|
941
941
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
942
|
-
throw await
|
|
942
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
943
943
|
case "CloudHsmServiceException":
|
|
944
944
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
945
|
-
throw await
|
|
945
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
946
946
|
case "InvalidRequestException":
|
|
947
947
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
948
|
-
throw await
|
|
948
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
949
949
|
default:
|
|
950
950
|
const parsedBody = parsedOutput.body;
|
|
951
951
|
throwDefaultError({
|
|
@@ -956,45 +956,45 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
958
|
};
|
|
959
|
-
const
|
|
959
|
+
const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
960
960
|
const body = parsedOutput.body;
|
|
961
|
-
const deserialized =
|
|
961
|
+
const deserialized = de_CloudHsmInternalException(body, context);
|
|
962
962
|
const exception = new CloudHsmInternalException({
|
|
963
963
|
$metadata: deserializeMetadata(parsedOutput),
|
|
964
964
|
...deserialized,
|
|
965
965
|
});
|
|
966
966
|
return __decorateServiceException(exception, body);
|
|
967
967
|
};
|
|
968
|
-
const
|
|
968
|
+
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
969
969
|
const body = parsedOutput.body;
|
|
970
|
-
const deserialized =
|
|
970
|
+
const deserialized = de_CloudHsmServiceException(body, context);
|
|
971
971
|
const exception = new CloudHsmServiceException({
|
|
972
972
|
$metadata: deserializeMetadata(parsedOutput),
|
|
973
973
|
...deserialized,
|
|
974
974
|
});
|
|
975
975
|
return __decorateServiceException(exception, body);
|
|
976
976
|
};
|
|
977
|
-
const
|
|
977
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
978
978
|
const body = parsedOutput.body;
|
|
979
|
-
const deserialized =
|
|
979
|
+
const deserialized = de_InvalidRequestException(body, context);
|
|
980
980
|
const exception = new InvalidRequestException({
|
|
981
981
|
$metadata: deserializeMetadata(parsedOutput),
|
|
982
982
|
...deserialized,
|
|
983
983
|
});
|
|
984
984
|
return __decorateServiceException(exception, body);
|
|
985
985
|
};
|
|
986
|
-
const
|
|
986
|
+
const se_AddTagsToResourceRequest = (input, context) => {
|
|
987
987
|
return {
|
|
988
988
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
989
|
-
...(input.TagList != null && { TagList:
|
|
989
|
+
...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
|
|
990
990
|
};
|
|
991
991
|
};
|
|
992
|
-
const
|
|
992
|
+
const se_CreateHapgRequest = (input, context) => {
|
|
993
993
|
return {
|
|
994
994
|
...(input.Label != null && { Label: input.Label }),
|
|
995
995
|
};
|
|
996
996
|
};
|
|
997
|
-
const
|
|
997
|
+
const se_CreateHsmRequest = (input, context) => {
|
|
998
998
|
return {
|
|
999
999
|
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
1000
1000
|
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
@@ -1006,91 +1006,91 @@ const serializeAws_json1_1CreateHsmRequest = (input, context) => {
|
|
|
1006
1006
|
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1007
1007
|
};
|
|
1008
1008
|
};
|
|
1009
|
-
const
|
|
1009
|
+
const se_CreateLunaClientRequest = (input, context) => {
|
|
1010
1010
|
return {
|
|
1011
1011
|
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1012
1012
|
...(input.Label != null && { Label: input.Label }),
|
|
1013
1013
|
};
|
|
1014
1014
|
};
|
|
1015
|
-
const
|
|
1015
|
+
const se_DeleteHapgRequest = (input, context) => {
|
|
1016
1016
|
return {
|
|
1017
1017
|
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1018
1018
|
};
|
|
1019
1019
|
};
|
|
1020
|
-
const
|
|
1020
|
+
const se_DeleteHsmRequest = (input, context) => {
|
|
1021
1021
|
return {
|
|
1022
1022
|
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1023
1023
|
};
|
|
1024
1024
|
};
|
|
1025
|
-
const
|
|
1025
|
+
const se_DeleteLunaClientRequest = (input, context) => {
|
|
1026
1026
|
return {
|
|
1027
1027
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1028
1028
|
};
|
|
1029
1029
|
};
|
|
1030
|
-
const
|
|
1030
|
+
const se_DescribeHapgRequest = (input, context) => {
|
|
1031
1031
|
return {
|
|
1032
1032
|
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1033
1033
|
};
|
|
1034
1034
|
};
|
|
1035
|
-
const
|
|
1035
|
+
const se_DescribeHsmRequest = (input, context) => {
|
|
1036
1036
|
return {
|
|
1037
1037
|
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1038
1038
|
...(input.HsmSerialNumber != null && { HsmSerialNumber: input.HsmSerialNumber }),
|
|
1039
1039
|
};
|
|
1040
1040
|
};
|
|
1041
|
-
const
|
|
1041
|
+
const se_DescribeLunaClientRequest = (input, context) => {
|
|
1042
1042
|
return {
|
|
1043
1043
|
...(input.CertificateFingerprint != null && { CertificateFingerprint: input.CertificateFingerprint }),
|
|
1044
1044
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1045
1045
|
};
|
|
1046
1046
|
};
|
|
1047
|
-
const
|
|
1047
|
+
const se_GetConfigRequest = (input, context) => {
|
|
1048
1048
|
return {
|
|
1049
1049
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1050
1050
|
...(input.ClientVersion != null && { ClientVersion: input.ClientVersion }),
|
|
1051
|
-
...(input.HapgList != null && { HapgList:
|
|
1051
|
+
...(input.HapgList != null && { HapgList: se_HapgList(input.HapgList, context) }),
|
|
1052
1052
|
};
|
|
1053
1053
|
};
|
|
1054
|
-
const
|
|
1054
|
+
const se_HapgList = (input, context) => {
|
|
1055
1055
|
return input
|
|
1056
1056
|
.filter((e) => e != null)
|
|
1057
1057
|
.map((entry) => {
|
|
1058
1058
|
return entry;
|
|
1059
1059
|
});
|
|
1060
1060
|
};
|
|
1061
|
-
const
|
|
1061
|
+
const se_ListAvailableZonesRequest = (input, context) => {
|
|
1062
1062
|
return {};
|
|
1063
1063
|
};
|
|
1064
|
-
const
|
|
1064
|
+
const se_ListHapgsRequest = (input, context) => {
|
|
1065
1065
|
return {
|
|
1066
1066
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1067
1067
|
};
|
|
1068
1068
|
};
|
|
1069
|
-
const
|
|
1069
|
+
const se_ListHsmsRequest = (input, context) => {
|
|
1070
1070
|
return {
|
|
1071
1071
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1072
1072
|
};
|
|
1073
1073
|
};
|
|
1074
|
-
const
|
|
1074
|
+
const se_ListLunaClientsRequest = (input, context) => {
|
|
1075
1075
|
return {
|
|
1076
1076
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1077
1077
|
};
|
|
1078
1078
|
};
|
|
1079
|
-
const
|
|
1079
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1080
1080
|
return {
|
|
1081
1081
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1082
1082
|
};
|
|
1083
1083
|
};
|
|
1084
|
-
const
|
|
1084
|
+
const se_ModifyHapgRequest = (input, context) => {
|
|
1085
1085
|
return {
|
|
1086
1086
|
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1087
1087
|
...(input.Label != null && { Label: input.Label }),
|
|
1088
1088
|
...(input.PartitionSerialList != null && {
|
|
1089
|
-
PartitionSerialList:
|
|
1089
|
+
PartitionSerialList: se_PartitionSerialList(input.PartitionSerialList, context),
|
|
1090
1090
|
}),
|
|
1091
1091
|
};
|
|
1092
1092
|
};
|
|
1093
|
-
const
|
|
1093
|
+
const se_ModifyHsmRequest = (input, context) => {
|
|
1094
1094
|
return {
|
|
1095
1095
|
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
1096
1096
|
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
@@ -1100,51 +1100,51 @@ const serializeAws_json1_1ModifyHsmRequest = (input, context) => {
|
|
|
1100
1100
|
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1101
1101
|
};
|
|
1102
1102
|
};
|
|
1103
|
-
const
|
|
1103
|
+
const se_ModifyLunaClientRequest = (input, context) => {
|
|
1104
1104
|
return {
|
|
1105
1105
|
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1106
1106
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1107
1107
|
};
|
|
1108
1108
|
};
|
|
1109
|
-
const
|
|
1109
|
+
const se_PartitionSerialList = (input, context) => {
|
|
1110
1110
|
return input
|
|
1111
1111
|
.filter((e) => e != null)
|
|
1112
1112
|
.map((entry) => {
|
|
1113
1113
|
return entry;
|
|
1114
1114
|
});
|
|
1115
1115
|
};
|
|
1116
|
-
const
|
|
1116
|
+
const se_RemoveTagsFromResourceRequest = (input, context) => {
|
|
1117
1117
|
return {
|
|
1118
1118
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1119
|
-
...(input.TagKeyList != null && { TagKeyList:
|
|
1119
|
+
...(input.TagKeyList != null && { TagKeyList: se_TagKeyList(input.TagKeyList, context) }),
|
|
1120
1120
|
};
|
|
1121
1121
|
};
|
|
1122
|
-
const
|
|
1122
|
+
const se_Tag = (input, context) => {
|
|
1123
1123
|
return {
|
|
1124
1124
|
...(input.Key != null && { Key: input.Key }),
|
|
1125
1125
|
...(input.Value != null && { Value: input.Value }),
|
|
1126
1126
|
};
|
|
1127
1127
|
};
|
|
1128
|
-
const
|
|
1128
|
+
const se_TagKeyList = (input, context) => {
|
|
1129
1129
|
return input
|
|
1130
1130
|
.filter((e) => e != null)
|
|
1131
1131
|
.map((entry) => {
|
|
1132
1132
|
return entry;
|
|
1133
1133
|
});
|
|
1134
1134
|
};
|
|
1135
|
-
const
|
|
1135
|
+
const se_TagList = (input, context) => {
|
|
1136
1136
|
return input
|
|
1137
1137
|
.filter((e) => e != null)
|
|
1138
1138
|
.map((entry) => {
|
|
1139
|
-
return
|
|
1139
|
+
return se_Tag(entry, context);
|
|
1140
1140
|
});
|
|
1141
1141
|
};
|
|
1142
|
-
const
|
|
1142
|
+
const de_AddTagsToResourceResponse = (output, context) => {
|
|
1143
1143
|
return {
|
|
1144
1144
|
Status: __expectString(output.Status),
|
|
1145
1145
|
};
|
|
1146
1146
|
};
|
|
1147
|
-
const
|
|
1147
|
+
const de_AZList = (output, context) => {
|
|
1148
1148
|
const retVal = (output || [])
|
|
1149
1149
|
.filter((e) => e != null)
|
|
1150
1150
|
.map((entry) => {
|
|
@@ -1155,7 +1155,7 @@ const deserializeAws_json1_1AZList = (output, context) => {
|
|
|
1155
1155
|
});
|
|
1156
1156
|
return retVal;
|
|
1157
1157
|
};
|
|
1158
|
-
const
|
|
1158
|
+
const de_ClientList = (output, context) => {
|
|
1159
1159
|
const retVal = (output || [])
|
|
1160
1160
|
.filter((e) => e != null)
|
|
1161
1161
|
.map((entry) => {
|
|
@@ -1166,70 +1166,62 @@ const deserializeAws_json1_1ClientList = (output, context) => {
|
|
|
1166
1166
|
});
|
|
1167
1167
|
return retVal;
|
|
1168
1168
|
};
|
|
1169
|
-
const
|
|
1169
|
+
const de_CloudHsmInternalException = (output, context) => {
|
|
1170
1170
|
return {
|
|
1171
1171
|
message: __expectString(output.message),
|
|
1172
1172
|
retryable: __expectBoolean(output.retryable),
|
|
1173
1173
|
};
|
|
1174
1174
|
};
|
|
1175
|
-
const
|
|
1175
|
+
const de_CloudHsmServiceException = (output, context) => {
|
|
1176
1176
|
return {
|
|
1177
1177
|
message: __expectString(output.message),
|
|
1178
1178
|
retryable: __expectBoolean(output.retryable),
|
|
1179
1179
|
};
|
|
1180
1180
|
};
|
|
1181
|
-
const
|
|
1181
|
+
const de_CreateHapgResponse = (output, context) => {
|
|
1182
1182
|
return {
|
|
1183
1183
|
HapgArn: __expectString(output.HapgArn),
|
|
1184
1184
|
};
|
|
1185
1185
|
};
|
|
1186
|
-
const
|
|
1186
|
+
const de_CreateHsmResponse = (output, context) => {
|
|
1187
1187
|
return {
|
|
1188
1188
|
HsmArn: __expectString(output.HsmArn),
|
|
1189
1189
|
};
|
|
1190
1190
|
};
|
|
1191
|
-
const
|
|
1191
|
+
const de_CreateLunaClientResponse = (output, context) => {
|
|
1192
1192
|
return {
|
|
1193
1193
|
ClientArn: __expectString(output.ClientArn),
|
|
1194
1194
|
};
|
|
1195
1195
|
};
|
|
1196
|
-
const
|
|
1196
|
+
const de_DeleteHapgResponse = (output, context) => {
|
|
1197
1197
|
return {
|
|
1198
1198
|
Status: __expectString(output.Status),
|
|
1199
1199
|
};
|
|
1200
1200
|
};
|
|
1201
|
-
const
|
|
1201
|
+
const de_DeleteHsmResponse = (output, context) => {
|
|
1202
1202
|
return {
|
|
1203
1203
|
Status: __expectString(output.Status),
|
|
1204
1204
|
};
|
|
1205
1205
|
};
|
|
1206
|
-
const
|
|
1206
|
+
const de_DeleteLunaClientResponse = (output, context) => {
|
|
1207
1207
|
return {
|
|
1208
1208
|
Status: __expectString(output.Status),
|
|
1209
1209
|
};
|
|
1210
1210
|
};
|
|
1211
|
-
const
|
|
1211
|
+
const de_DescribeHapgResponse = (output, context) => {
|
|
1212
1212
|
return {
|
|
1213
1213
|
HapgArn: __expectString(output.HapgArn),
|
|
1214
1214
|
HapgSerial: __expectString(output.HapgSerial),
|
|
1215
|
-
HsmsLastActionFailed: output.HsmsLastActionFailed != null
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
HsmsPendingDeletion: output.HsmsPendingDeletion != null
|
|
1219
|
-
? deserializeAws_json1_1HsmList(output.HsmsPendingDeletion, context)
|
|
1220
|
-
: undefined,
|
|
1221
|
-
HsmsPendingRegistration: output.HsmsPendingRegistration != null
|
|
1222
|
-
? deserializeAws_json1_1HsmList(output.HsmsPendingRegistration, context)
|
|
1223
|
-
: undefined,
|
|
1215
|
+
HsmsLastActionFailed: output.HsmsLastActionFailed != null ? de_HsmList(output.HsmsLastActionFailed, context) : undefined,
|
|
1216
|
+
HsmsPendingDeletion: output.HsmsPendingDeletion != null ? de_HsmList(output.HsmsPendingDeletion, context) : undefined,
|
|
1217
|
+
HsmsPendingRegistration: output.HsmsPendingRegistration != null ? de_HsmList(output.HsmsPendingRegistration, context) : undefined,
|
|
1224
1218
|
Label: __expectString(output.Label),
|
|
1225
1219
|
LastModifiedTimestamp: __expectString(output.LastModifiedTimestamp),
|
|
1226
|
-
PartitionSerialList: output.PartitionSerialList != null
|
|
1227
|
-
? deserializeAws_json1_1PartitionSerialList(output.PartitionSerialList, context)
|
|
1228
|
-
: undefined,
|
|
1220
|
+
PartitionSerialList: output.PartitionSerialList != null ? de_PartitionSerialList(output.PartitionSerialList, context) : undefined,
|
|
1229
1221
|
State: __expectString(output.State),
|
|
1230
1222
|
};
|
|
1231
1223
|
};
|
|
1232
|
-
const
|
|
1224
|
+
const de_DescribeHsmResponse = (output, context) => {
|
|
1233
1225
|
return {
|
|
1234
1226
|
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
1235
1227
|
EniId: __expectString(output.EniId),
|
|
@@ -1237,7 +1229,7 @@ const deserializeAws_json1_1DescribeHsmResponse = (output, context) => {
|
|
|
1237
1229
|
HsmArn: __expectString(output.HsmArn),
|
|
1238
1230
|
HsmType: __expectString(output.HsmType),
|
|
1239
1231
|
IamRoleArn: __expectString(output.IamRoleArn),
|
|
1240
|
-
Partitions: output.Partitions != null ?
|
|
1232
|
+
Partitions: output.Partitions != null ? de_PartitionList(output.Partitions, context) : undefined,
|
|
1241
1233
|
SerialNumber: __expectString(output.SerialNumber),
|
|
1242
1234
|
ServerCertLastUpdated: __expectString(output.ServerCertLastUpdated),
|
|
1243
1235
|
ServerCertUri: __expectString(output.ServerCertUri),
|
|
@@ -1254,7 +1246,7 @@ const deserializeAws_json1_1DescribeHsmResponse = (output, context) => {
|
|
|
1254
1246
|
VpcId: __expectString(output.VpcId),
|
|
1255
1247
|
};
|
|
1256
1248
|
};
|
|
1257
|
-
const
|
|
1249
|
+
const de_DescribeLunaClientResponse = (output, context) => {
|
|
1258
1250
|
return {
|
|
1259
1251
|
Certificate: __expectString(output.Certificate),
|
|
1260
1252
|
CertificateFingerprint: __expectString(output.CertificateFingerprint),
|
|
@@ -1263,14 +1255,14 @@ const deserializeAws_json1_1DescribeLunaClientResponse = (output, context) => {
|
|
|
1263
1255
|
LastModifiedTimestamp: __expectString(output.LastModifiedTimestamp),
|
|
1264
1256
|
};
|
|
1265
1257
|
};
|
|
1266
|
-
const
|
|
1258
|
+
const de_GetConfigResponse = (output, context) => {
|
|
1267
1259
|
return {
|
|
1268
1260
|
ConfigCred: __expectString(output.ConfigCred),
|
|
1269
1261
|
ConfigFile: __expectString(output.ConfigFile),
|
|
1270
1262
|
ConfigType: __expectString(output.ConfigType),
|
|
1271
1263
|
};
|
|
1272
1264
|
};
|
|
1273
|
-
const
|
|
1265
|
+
const de_HapgList = (output, context) => {
|
|
1274
1266
|
const retVal = (output || [])
|
|
1275
1267
|
.filter((e) => e != null)
|
|
1276
1268
|
.map((entry) => {
|
|
@@ -1281,7 +1273,7 @@ const deserializeAws_json1_1HapgList = (output, context) => {
|
|
|
1281
1273
|
});
|
|
1282
1274
|
return retVal;
|
|
1283
1275
|
};
|
|
1284
|
-
const
|
|
1276
|
+
const de_HsmList = (output, context) => {
|
|
1285
1277
|
const retVal = (output || [])
|
|
1286
1278
|
.filter((e) => e != null)
|
|
1287
1279
|
.map((entry) => {
|
|
@@ -1292,56 +1284,56 @@ const deserializeAws_json1_1HsmList = (output, context) => {
|
|
|
1292
1284
|
});
|
|
1293
1285
|
return retVal;
|
|
1294
1286
|
};
|
|
1295
|
-
const
|
|
1287
|
+
const de_InvalidRequestException = (output, context) => {
|
|
1296
1288
|
return {
|
|
1297
1289
|
message: __expectString(output.message),
|
|
1298
1290
|
retryable: __expectBoolean(output.retryable),
|
|
1299
1291
|
};
|
|
1300
1292
|
};
|
|
1301
|
-
const
|
|
1293
|
+
const de_ListAvailableZonesResponse = (output, context) => {
|
|
1302
1294
|
return {
|
|
1303
|
-
AZList: output.AZList != null ?
|
|
1295
|
+
AZList: output.AZList != null ? de_AZList(output.AZList, context) : undefined,
|
|
1304
1296
|
};
|
|
1305
1297
|
};
|
|
1306
|
-
const
|
|
1298
|
+
const de_ListHapgsResponse = (output, context) => {
|
|
1307
1299
|
return {
|
|
1308
|
-
HapgList: output.HapgList != null ?
|
|
1300
|
+
HapgList: output.HapgList != null ? de_HapgList(output.HapgList, context) : undefined,
|
|
1309
1301
|
NextToken: __expectString(output.NextToken),
|
|
1310
1302
|
};
|
|
1311
1303
|
};
|
|
1312
|
-
const
|
|
1304
|
+
const de_ListHsmsResponse = (output, context) => {
|
|
1313
1305
|
return {
|
|
1314
|
-
HsmList: output.HsmList != null ?
|
|
1306
|
+
HsmList: output.HsmList != null ? de_HsmList(output.HsmList, context) : undefined,
|
|
1315
1307
|
NextToken: __expectString(output.NextToken),
|
|
1316
1308
|
};
|
|
1317
1309
|
};
|
|
1318
|
-
const
|
|
1310
|
+
const de_ListLunaClientsResponse = (output, context) => {
|
|
1319
1311
|
return {
|
|
1320
|
-
ClientList: output.ClientList != null ?
|
|
1312
|
+
ClientList: output.ClientList != null ? de_ClientList(output.ClientList, context) : undefined,
|
|
1321
1313
|
NextToken: __expectString(output.NextToken),
|
|
1322
1314
|
};
|
|
1323
1315
|
};
|
|
1324
|
-
const
|
|
1316
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1325
1317
|
return {
|
|
1326
|
-
TagList: output.TagList != null ?
|
|
1318
|
+
TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
|
|
1327
1319
|
};
|
|
1328
1320
|
};
|
|
1329
|
-
const
|
|
1321
|
+
const de_ModifyHapgResponse = (output, context) => {
|
|
1330
1322
|
return {
|
|
1331
1323
|
HapgArn: __expectString(output.HapgArn),
|
|
1332
1324
|
};
|
|
1333
1325
|
};
|
|
1334
|
-
const
|
|
1326
|
+
const de_ModifyHsmResponse = (output, context) => {
|
|
1335
1327
|
return {
|
|
1336
1328
|
HsmArn: __expectString(output.HsmArn),
|
|
1337
1329
|
};
|
|
1338
1330
|
};
|
|
1339
|
-
const
|
|
1331
|
+
const de_ModifyLunaClientResponse = (output, context) => {
|
|
1340
1332
|
return {
|
|
1341
1333
|
ClientArn: __expectString(output.ClientArn),
|
|
1342
1334
|
};
|
|
1343
1335
|
};
|
|
1344
|
-
const
|
|
1336
|
+
const de_PartitionList = (output, context) => {
|
|
1345
1337
|
const retVal = (output || [])
|
|
1346
1338
|
.filter((e) => e != null)
|
|
1347
1339
|
.map((entry) => {
|
|
@@ -1352,7 +1344,7 @@ const deserializeAws_json1_1PartitionList = (output, context) => {
|
|
|
1352
1344
|
});
|
|
1353
1345
|
return retVal;
|
|
1354
1346
|
};
|
|
1355
|
-
const
|
|
1347
|
+
const de_PartitionSerialList = (output, context) => {
|
|
1356
1348
|
const retVal = (output || [])
|
|
1357
1349
|
.filter((e) => e != null)
|
|
1358
1350
|
.map((entry) => {
|
|
@@ -1363,25 +1355,25 @@ const deserializeAws_json1_1PartitionSerialList = (output, context) => {
|
|
|
1363
1355
|
});
|
|
1364
1356
|
return retVal;
|
|
1365
1357
|
};
|
|
1366
|
-
const
|
|
1358
|
+
const de_RemoveTagsFromResourceResponse = (output, context) => {
|
|
1367
1359
|
return {
|
|
1368
1360
|
Status: __expectString(output.Status),
|
|
1369
1361
|
};
|
|
1370
1362
|
};
|
|
1371
|
-
const
|
|
1363
|
+
const de_Tag = (output, context) => {
|
|
1372
1364
|
return {
|
|
1373
1365
|
Key: __expectString(output.Key),
|
|
1374
1366
|
Value: __expectString(output.Value),
|
|
1375
1367
|
};
|
|
1376
1368
|
};
|
|
1377
|
-
const
|
|
1369
|
+
const de_TagList = (output, context) => {
|
|
1378
1370
|
const retVal = (output || [])
|
|
1379
1371
|
.filter((e) => e != null)
|
|
1380
1372
|
.map((entry) => {
|
|
1381
1373
|
if (entry === null) {
|
|
1382
1374
|
return null;
|
|
1383
1375
|
}
|
|
1384
|
-
return
|
|
1376
|
+
return de_Tag(entry, context);
|
|
1385
1377
|
});
|
|
1386
1378
|
return retVal;
|
|
1387
1379
|
};
|