@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
|
@@ -1,225 +1,225 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_RemoveTagsFromResourceCommand = exports.de_ModifyLunaClientCommand = exports.de_ModifyHsmCommand = exports.de_ModifyHapgCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLunaClientsCommand = exports.de_ListHsmsCommand = exports.de_ListHapgsCommand = exports.de_ListAvailableZonesCommand = exports.de_GetConfigCommand = exports.de_DescribeLunaClientCommand = exports.de_DescribeHsmCommand = exports.de_DescribeHapgCommand = exports.de_DeleteLunaClientCommand = exports.de_DeleteHsmCommand = exports.de_DeleteHapgCommand = exports.de_CreateLunaClientCommand = exports.de_CreateHsmCommand = exports.de_CreateHapgCommand = exports.de_AddTagsToResourceCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_ModifyLunaClientCommand = exports.se_ModifyHsmCommand = exports.se_ModifyHapgCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLunaClientsCommand = exports.se_ListHsmsCommand = exports.se_ListHapgsCommand = exports.se_ListAvailableZonesCommand = exports.se_GetConfigCommand = exports.se_DescribeLunaClientCommand = exports.se_DescribeHsmCommand = exports.se_DescribeHapgCommand = exports.se_DeleteLunaClientCommand = exports.se_DeleteHsmCommand = exports.se_DeleteHapgCommand = exports.se_CreateLunaClientCommand = exports.se_CreateHsmCommand = exports.se_CreateHapgCommand = exports.se_AddTagsToResourceCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const CloudHSMServiceException_1 = require("../models/CloudHSMServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_AddTagsToResourceCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "CloudHsmFrontendService.AddTagsToResource",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_AddTagsToResourceRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
|
|
18
|
+
const se_CreateHapgCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "CloudHsmFrontendService.CreateHapg",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_CreateHapgRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_CreateHapgCommand = se_CreateHapgCommand;
|
|
28
|
+
const se_CreateHsmCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "CloudHsmFrontendService.CreateHsm",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_CreateHsmRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_CreateHsmCommand = se_CreateHsmCommand;
|
|
38
|
+
const se_CreateLunaClientCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "CloudHsmFrontendService.CreateLunaClient",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_CreateLunaClientRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_CreateLunaClientCommand = se_CreateLunaClientCommand;
|
|
48
|
+
const se_DeleteHapgCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "CloudHsmFrontendService.DeleteHapg",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_DeleteHapgRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_DeleteHapgCommand = se_DeleteHapgCommand;
|
|
58
|
+
const se_DeleteHsmCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "CloudHsmFrontendService.DeleteHsm",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_DeleteHsmRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_DeleteHsmCommand = se_DeleteHsmCommand;
|
|
68
|
+
const se_DeleteLunaClientCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "CloudHsmFrontendService.DeleteLunaClient",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DeleteLunaClientRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_DeleteLunaClientCommand = se_DeleteLunaClientCommand;
|
|
78
|
+
const se_DescribeHapgCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "CloudHsmFrontendService.DescribeHapg",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DescribeHapgRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_DescribeHapgCommand = se_DescribeHapgCommand;
|
|
88
|
+
const se_DescribeHsmCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.1",
|
|
91
91
|
"x-amz-target": "CloudHsmFrontendService.DescribeHsm",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_DescribeHsmRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_DescribeHsmCommand = se_DescribeHsmCommand;
|
|
98
|
+
const se_DescribeLunaClientCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.1",
|
|
101
101
|
"x-amz-target": "CloudHsmFrontendService.DescribeLunaClient",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_DescribeLunaClientRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_DescribeLunaClientCommand = se_DescribeLunaClientCommand;
|
|
108
|
+
const se_GetConfigCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.1",
|
|
111
111
|
"x-amz-target": "CloudHsmFrontendService.GetConfig",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_GetConfigRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_GetConfigCommand = se_GetConfigCommand;
|
|
118
|
+
const se_ListAvailableZonesCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.1",
|
|
121
121
|
"x-amz-target": "CloudHsmFrontendService.ListAvailableZones",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_ListAvailableZonesRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_ListAvailableZonesCommand = se_ListAvailableZonesCommand;
|
|
128
|
+
const se_ListHapgsCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.1",
|
|
131
131
|
"x-amz-target": "CloudHsmFrontendService.ListHapgs",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_ListHapgsRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_ListHapgsCommand = se_ListHapgsCommand;
|
|
138
|
+
const se_ListHsmsCommand = async (input, context) => {
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/x-amz-json-1.1",
|
|
141
141
|
"x-amz-target": "CloudHsmFrontendService.ListHsms",
|
|
142
142
|
};
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify(se_ListHsmsRequest(input, context));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_ListHsmsCommand = se_ListHsmsCommand;
|
|
148
|
+
const se_ListLunaClientsCommand = async (input, context) => {
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/x-amz-json-1.1",
|
|
151
151
|
"x-amz-target": "CloudHsmFrontendService.ListLunaClients",
|
|
152
152
|
};
|
|
153
153
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
154
|
+
body = JSON.stringify(se_ListLunaClientsRequest(input, context));
|
|
155
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
156
|
};
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
157
|
+
exports.se_ListLunaClientsCommand = se_ListLunaClientsCommand;
|
|
158
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.1",
|
|
161
161
|
"x-amz-target": "CloudHsmFrontendService.ListTagsForResource",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
167
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
168
|
+
const se_ModifyHapgCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.1",
|
|
171
171
|
"x-amz-target": "CloudHsmFrontendService.ModifyHapg",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_ModifyHapgRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
177
|
+
exports.se_ModifyHapgCommand = se_ModifyHapgCommand;
|
|
178
|
+
const se_ModifyHsmCommand = async (input, context) => {
|
|
179
179
|
const headers = {
|
|
180
180
|
"content-type": "application/x-amz-json-1.1",
|
|
181
181
|
"x-amz-target": "CloudHsmFrontendService.ModifyHsm",
|
|
182
182
|
};
|
|
183
183
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
184
|
+
body = JSON.stringify(se_ModifyHsmRequest(input, context));
|
|
185
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
186
|
};
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
187
|
+
exports.se_ModifyHsmCommand = se_ModifyHsmCommand;
|
|
188
|
+
const se_ModifyLunaClientCommand = async (input, context) => {
|
|
189
189
|
const headers = {
|
|
190
190
|
"content-type": "application/x-amz-json-1.1",
|
|
191
191
|
"x-amz-target": "CloudHsmFrontendService.ModifyLunaClient",
|
|
192
192
|
};
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(se_ModifyLunaClientRequest(input, context));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
|
-
exports.
|
|
198
|
-
const
|
|
197
|
+
exports.se_ModifyLunaClientCommand = se_ModifyLunaClientCommand;
|
|
198
|
+
const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
199
199
|
const headers = {
|
|
200
200
|
"content-type": "application/x-amz-json-1.1",
|
|
201
201
|
"x-amz-target": "CloudHsmFrontendService.RemoveTagsFromResource",
|
|
202
202
|
};
|
|
203
203
|
let body;
|
|
204
|
-
body = JSON.stringify(
|
|
204
|
+
body = JSON.stringify(se_RemoveTagsFromResourceRequest(input, context));
|
|
205
205
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
206
|
};
|
|
207
|
-
exports.
|
|
208
|
-
const
|
|
207
|
+
exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
|
|
208
|
+
const de_AddTagsToResourceCommand = async (output, context) => {
|
|
209
209
|
if (output.statusCode >= 300) {
|
|
210
|
-
return
|
|
210
|
+
return de_AddTagsToResourceCommandError(output, context);
|
|
211
211
|
}
|
|
212
212
|
const data = await parseBody(output.body, context);
|
|
213
213
|
let contents = {};
|
|
214
|
-
contents =
|
|
214
|
+
contents = de_AddTagsToResourceResponse(data, context);
|
|
215
215
|
const response = {
|
|
216
216
|
$metadata: deserializeMetadata(output),
|
|
217
217
|
...contents,
|
|
218
218
|
};
|
|
219
219
|
return Promise.resolve(response);
|
|
220
220
|
};
|
|
221
|
-
exports.
|
|
222
|
-
const
|
|
221
|
+
exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
|
|
222
|
+
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
223
223
|
const parsedOutput = {
|
|
224
224
|
...output,
|
|
225
225
|
body: await parseErrorBody(output.body, context),
|
|
@@ -228,13 +228,13 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
228
228
|
switch (errorCode) {
|
|
229
229
|
case "CloudHsmInternalException":
|
|
230
230
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
232
232
|
case "CloudHsmServiceException":
|
|
233
233
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
235
235
|
case "InvalidRequestException":
|
|
236
236
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
238
238
|
default:
|
|
239
239
|
const parsedBody = parsedOutput.body;
|
|
240
240
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -245,21 +245,21 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
const
|
|
248
|
+
const de_CreateHapgCommand = async (output, context) => {
|
|
249
249
|
if (output.statusCode >= 300) {
|
|
250
|
-
return
|
|
250
|
+
return de_CreateHapgCommandError(output, context);
|
|
251
251
|
}
|
|
252
252
|
const data = await parseBody(output.body, context);
|
|
253
253
|
let contents = {};
|
|
254
|
-
contents =
|
|
254
|
+
contents = de_CreateHapgResponse(data, context);
|
|
255
255
|
const response = {
|
|
256
256
|
$metadata: deserializeMetadata(output),
|
|
257
257
|
...contents,
|
|
258
258
|
};
|
|
259
259
|
return Promise.resolve(response);
|
|
260
260
|
};
|
|
261
|
-
exports.
|
|
262
|
-
const
|
|
261
|
+
exports.de_CreateHapgCommand = de_CreateHapgCommand;
|
|
262
|
+
const de_CreateHapgCommandError = async (output, context) => {
|
|
263
263
|
const parsedOutput = {
|
|
264
264
|
...output,
|
|
265
265
|
body: await parseErrorBody(output.body, context),
|
|
@@ -268,13 +268,13 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
268
268
|
switch (errorCode) {
|
|
269
269
|
case "CloudHsmInternalException":
|
|
270
270
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
271
|
-
throw await
|
|
271
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
272
272
|
case "CloudHsmServiceException":
|
|
273
273
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
274
|
-
throw await
|
|
274
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
275
275
|
case "InvalidRequestException":
|
|
276
276
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
277
|
-
throw await
|
|
277
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
278
278
|
default:
|
|
279
279
|
const parsedBody = parsedOutput.body;
|
|
280
280
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -285,21 +285,21 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
const
|
|
288
|
+
const de_CreateHsmCommand = async (output, context) => {
|
|
289
289
|
if (output.statusCode >= 300) {
|
|
290
|
-
return
|
|
290
|
+
return de_CreateHsmCommandError(output, context);
|
|
291
291
|
}
|
|
292
292
|
const data = await parseBody(output.body, context);
|
|
293
293
|
let contents = {};
|
|
294
|
-
contents =
|
|
294
|
+
contents = de_CreateHsmResponse(data, context);
|
|
295
295
|
const response = {
|
|
296
296
|
$metadata: deserializeMetadata(output),
|
|
297
297
|
...contents,
|
|
298
298
|
};
|
|
299
299
|
return Promise.resolve(response);
|
|
300
300
|
};
|
|
301
|
-
exports.
|
|
302
|
-
const
|
|
301
|
+
exports.de_CreateHsmCommand = de_CreateHsmCommand;
|
|
302
|
+
const de_CreateHsmCommandError = async (output, context) => {
|
|
303
303
|
const parsedOutput = {
|
|
304
304
|
...output,
|
|
305
305
|
body: await parseErrorBody(output.body, context),
|
|
@@ -308,13 +308,13 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
308
308
|
switch (errorCode) {
|
|
309
309
|
case "CloudHsmInternalException":
|
|
310
310
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
311
|
-
throw await
|
|
311
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
312
312
|
case "CloudHsmServiceException":
|
|
313
313
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
314
|
-
throw await
|
|
314
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
315
315
|
case "InvalidRequestException":
|
|
316
316
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
317
|
-
throw await
|
|
317
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
318
318
|
default:
|
|
319
319
|
const parsedBody = parsedOutput.body;
|
|
320
320
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -325,21 +325,21 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
|
-
const
|
|
328
|
+
const de_CreateLunaClientCommand = async (output, context) => {
|
|
329
329
|
if (output.statusCode >= 300) {
|
|
330
|
-
return
|
|
330
|
+
return de_CreateLunaClientCommandError(output, context);
|
|
331
331
|
}
|
|
332
332
|
const data = await parseBody(output.body, context);
|
|
333
333
|
let contents = {};
|
|
334
|
-
contents =
|
|
334
|
+
contents = de_CreateLunaClientResponse(data, context);
|
|
335
335
|
const response = {
|
|
336
336
|
$metadata: deserializeMetadata(output),
|
|
337
337
|
...contents,
|
|
338
338
|
};
|
|
339
339
|
return Promise.resolve(response);
|
|
340
340
|
};
|
|
341
|
-
exports.
|
|
342
|
-
const
|
|
341
|
+
exports.de_CreateLunaClientCommand = de_CreateLunaClientCommand;
|
|
342
|
+
const de_CreateLunaClientCommandError = async (output, context) => {
|
|
343
343
|
const parsedOutput = {
|
|
344
344
|
...output,
|
|
345
345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -348,13 +348,13 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
348
348
|
switch (errorCode) {
|
|
349
349
|
case "CloudHsmInternalException":
|
|
350
350
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
351
|
-
throw await
|
|
351
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
352
352
|
case "CloudHsmServiceException":
|
|
353
353
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
354
|
-
throw await
|
|
354
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
355
355
|
case "InvalidRequestException":
|
|
356
356
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
357
|
-
throw await
|
|
357
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
358
358
|
default:
|
|
359
359
|
const parsedBody = parsedOutput.body;
|
|
360
360
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -365,21 +365,21 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
|
-
const
|
|
368
|
+
const de_DeleteHapgCommand = async (output, context) => {
|
|
369
369
|
if (output.statusCode >= 300) {
|
|
370
|
-
return
|
|
370
|
+
return de_DeleteHapgCommandError(output, context);
|
|
371
371
|
}
|
|
372
372
|
const data = await parseBody(output.body, context);
|
|
373
373
|
let contents = {};
|
|
374
|
-
contents =
|
|
374
|
+
contents = de_DeleteHapgResponse(data, context);
|
|
375
375
|
const response = {
|
|
376
376
|
$metadata: deserializeMetadata(output),
|
|
377
377
|
...contents,
|
|
378
378
|
};
|
|
379
379
|
return Promise.resolve(response);
|
|
380
380
|
};
|
|
381
|
-
exports.
|
|
382
|
-
const
|
|
381
|
+
exports.de_DeleteHapgCommand = de_DeleteHapgCommand;
|
|
382
|
+
const de_DeleteHapgCommandError = async (output, context) => {
|
|
383
383
|
const parsedOutput = {
|
|
384
384
|
...output,
|
|
385
385
|
body: await parseErrorBody(output.body, context),
|
|
@@ -388,13 +388,13 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
388
388
|
switch (errorCode) {
|
|
389
389
|
case "CloudHsmInternalException":
|
|
390
390
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
391
|
-
throw await
|
|
391
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
392
392
|
case "CloudHsmServiceException":
|
|
393
393
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
394
|
-
throw await
|
|
394
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
395
395
|
case "InvalidRequestException":
|
|
396
396
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
397
|
-
throw await
|
|
397
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
398
398
|
default:
|
|
399
399
|
const parsedBody = parsedOutput.body;
|
|
400
400
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -405,21 +405,21 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
|
-
const
|
|
408
|
+
const de_DeleteHsmCommand = async (output, context) => {
|
|
409
409
|
if (output.statusCode >= 300) {
|
|
410
|
-
return
|
|
410
|
+
return de_DeleteHsmCommandError(output, context);
|
|
411
411
|
}
|
|
412
412
|
const data = await parseBody(output.body, context);
|
|
413
413
|
let contents = {};
|
|
414
|
-
contents =
|
|
414
|
+
contents = de_DeleteHsmResponse(data, context);
|
|
415
415
|
const response = {
|
|
416
416
|
$metadata: deserializeMetadata(output),
|
|
417
417
|
...contents,
|
|
418
418
|
};
|
|
419
419
|
return Promise.resolve(response);
|
|
420
420
|
};
|
|
421
|
-
exports.
|
|
422
|
-
const
|
|
421
|
+
exports.de_DeleteHsmCommand = de_DeleteHsmCommand;
|
|
422
|
+
const de_DeleteHsmCommandError = async (output, context) => {
|
|
423
423
|
const parsedOutput = {
|
|
424
424
|
...output,
|
|
425
425
|
body: await parseErrorBody(output.body, context),
|
|
@@ -428,13 +428,13 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
428
428
|
switch (errorCode) {
|
|
429
429
|
case "CloudHsmInternalException":
|
|
430
430
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
431
|
-
throw await
|
|
431
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
432
432
|
case "CloudHsmServiceException":
|
|
433
433
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
434
|
-
throw await
|
|
434
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
435
435
|
case "InvalidRequestException":
|
|
436
436
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
437
|
-
throw await
|
|
437
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
438
438
|
default:
|
|
439
439
|
const parsedBody = parsedOutput.body;
|
|
440
440
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -445,21 +445,21 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
|
-
const
|
|
448
|
+
const de_DeleteLunaClientCommand = async (output, context) => {
|
|
449
449
|
if (output.statusCode >= 300) {
|
|
450
|
-
return
|
|
450
|
+
return de_DeleteLunaClientCommandError(output, context);
|
|
451
451
|
}
|
|
452
452
|
const data = await parseBody(output.body, context);
|
|
453
453
|
let contents = {};
|
|
454
|
-
contents =
|
|
454
|
+
contents = de_DeleteLunaClientResponse(data, context);
|
|
455
455
|
const response = {
|
|
456
456
|
$metadata: deserializeMetadata(output),
|
|
457
457
|
...contents,
|
|
458
458
|
};
|
|
459
459
|
return Promise.resolve(response);
|
|
460
460
|
};
|
|
461
|
-
exports.
|
|
462
|
-
const
|
|
461
|
+
exports.de_DeleteLunaClientCommand = de_DeleteLunaClientCommand;
|
|
462
|
+
const de_DeleteLunaClientCommandError = async (output, context) => {
|
|
463
463
|
const parsedOutput = {
|
|
464
464
|
...output,
|
|
465
465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -468,13 +468,13 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
468
468
|
switch (errorCode) {
|
|
469
469
|
case "CloudHsmInternalException":
|
|
470
470
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
471
|
-
throw await
|
|
471
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
472
472
|
case "CloudHsmServiceException":
|
|
473
473
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
474
|
-
throw await
|
|
474
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
475
475
|
case "InvalidRequestException":
|
|
476
476
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
477
|
-
throw await
|
|
477
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
478
478
|
default:
|
|
479
479
|
const parsedBody = parsedOutput.body;
|
|
480
480
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -485,21 +485,21 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
|
-
const
|
|
488
|
+
const de_DescribeHapgCommand = async (output, context) => {
|
|
489
489
|
if (output.statusCode >= 300) {
|
|
490
|
-
return
|
|
490
|
+
return de_DescribeHapgCommandError(output, context);
|
|
491
491
|
}
|
|
492
492
|
const data = await parseBody(output.body, context);
|
|
493
493
|
let contents = {};
|
|
494
|
-
contents =
|
|
494
|
+
contents = de_DescribeHapgResponse(data, context);
|
|
495
495
|
const response = {
|
|
496
496
|
$metadata: deserializeMetadata(output),
|
|
497
497
|
...contents,
|
|
498
498
|
};
|
|
499
499
|
return Promise.resolve(response);
|
|
500
500
|
};
|
|
501
|
-
exports.
|
|
502
|
-
const
|
|
501
|
+
exports.de_DescribeHapgCommand = de_DescribeHapgCommand;
|
|
502
|
+
const de_DescribeHapgCommandError = async (output, context) => {
|
|
503
503
|
const parsedOutput = {
|
|
504
504
|
...output,
|
|
505
505
|
body: await parseErrorBody(output.body, context),
|
|
@@ -508,13 +508,13 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
508
508
|
switch (errorCode) {
|
|
509
509
|
case "CloudHsmInternalException":
|
|
510
510
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
511
|
-
throw await
|
|
511
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
512
512
|
case "CloudHsmServiceException":
|
|
513
513
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
514
|
-
throw await
|
|
514
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
515
515
|
case "InvalidRequestException":
|
|
516
516
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
517
|
-
throw await
|
|
517
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
518
518
|
default:
|
|
519
519
|
const parsedBody = parsedOutput.body;
|
|
520
520
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -525,21 +525,21 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
|
-
const
|
|
528
|
+
const de_DescribeHsmCommand = async (output, context) => {
|
|
529
529
|
if (output.statusCode >= 300) {
|
|
530
|
-
return
|
|
530
|
+
return de_DescribeHsmCommandError(output, context);
|
|
531
531
|
}
|
|
532
532
|
const data = await parseBody(output.body, context);
|
|
533
533
|
let contents = {};
|
|
534
|
-
contents =
|
|
534
|
+
contents = de_DescribeHsmResponse(data, context);
|
|
535
535
|
const response = {
|
|
536
536
|
$metadata: deserializeMetadata(output),
|
|
537
537
|
...contents,
|
|
538
538
|
};
|
|
539
539
|
return Promise.resolve(response);
|
|
540
540
|
};
|
|
541
|
-
exports.
|
|
542
|
-
const
|
|
541
|
+
exports.de_DescribeHsmCommand = de_DescribeHsmCommand;
|
|
542
|
+
const de_DescribeHsmCommandError = async (output, context) => {
|
|
543
543
|
const parsedOutput = {
|
|
544
544
|
...output,
|
|
545
545
|
body: await parseErrorBody(output.body, context),
|
|
@@ -548,13 +548,13 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
548
548
|
switch (errorCode) {
|
|
549
549
|
case "CloudHsmInternalException":
|
|
550
550
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
551
|
-
throw await
|
|
551
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
552
552
|
case "CloudHsmServiceException":
|
|
553
553
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
554
|
-
throw await
|
|
554
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
555
555
|
case "InvalidRequestException":
|
|
556
556
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
557
|
-
throw await
|
|
557
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
558
558
|
default:
|
|
559
559
|
const parsedBody = parsedOutput.body;
|
|
560
560
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -565,21 +565,21 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
|
-
const
|
|
568
|
+
const de_DescribeLunaClientCommand = async (output, context) => {
|
|
569
569
|
if (output.statusCode >= 300) {
|
|
570
|
-
return
|
|
570
|
+
return de_DescribeLunaClientCommandError(output, context);
|
|
571
571
|
}
|
|
572
572
|
const data = await parseBody(output.body, context);
|
|
573
573
|
let contents = {};
|
|
574
|
-
contents =
|
|
574
|
+
contents = de_DescribeLunaClientResponse(data, context);
|
|
575
575
|
const response = {
|
|
576
576
|
$metadata: deserializeMetadata(output),
|
|
577
577
|
...contents,
|
|
578
578
|
};
|
|
579
579
|
return Promise.resolve(response);
|
|
580
580
|
};
|
|
581
|
-
exports.
|
|
582
|
-
const
|
|
581
|
+
exports.de_DescribeLunaClientCommand = de_DescribeLunaClientCommand;
|
|
582
|
+
const de_DescribeLunaClientCommandError = async (output, context) => {
|
|
583
583
|
const parsedOutput = {
|
|
584
584
|
...output,
|
|
585
585
|
body: await parseErrorBody(output.body, context),
|
|
@@ -588,13 +588,13 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
588
588
|
switch (errorCode) {
|
|
589
589
|
case "CloudHsmInternalException":
|
|
590
590
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
592
592
|
case "CloudHsmServiceException":
|
|
593
593
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
595
595
|
case "InvalidRequestException":
|
|
596
596
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
598
598
|
default:
|
|
599
599
|
const parsedBody = parsedOutput.body;
|
|
600
600
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -605,21 +605,21 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
const
|
|
608
|
+
const de_GetConfigCommand = async (output, context) => {
|
|
609
609
|
if (output.statusCode >= 300) {
|
|
610
|
-
return
|
|
610
|
+
return de_GetConfigCommandError(output, context);
|
|
611
611
|
}
|
|
612
612
|
const data = await parseBody(output.body, context);
|
|
613
613
|
let contents = {};
|
|
614
|
-
contents =
|
|
614
|
+
contents = de_GetConfigResponse(data, context);
|
|
615
615
|
const response = {
|
|
616
616
|
$metadata: deserializeMetadata(output),
|
|
617
617
|
...contents,
|
|
618
618
|
};
|
|
619
619
|
return Promise.resolve(response);
|
|
620
620
|
};
|
|
621
|
-
exports.
|
|
622
|
-
const
|
|
621
|
+
exports.de_GetConfigCommand = de_GetConfigCommand;
|
|
622
|
+
const de_GetConfigCommandError = async (output, context) => {
|
|
623
623
|
const parsedOutput = {
|
|
624
624
|
...output,
|
|
625
625
|
body: await parseErrorBody(output.body, context),
|
|
@@ -628,13 +628,13 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
628
628
|
switch (errorCode) {
|
|
629
629
|
case "CloudHsmInternalException":
|
|
630
630
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
632
632
|
case "CloudHsmServiceException":
|
|
633
633
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
635
635
|
case "InvalidRequestException":
|
|
636
636
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
637
|
-
throw await
|
|
637
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
638
638
|
default:
|
|
639
639
|
const parsedBody = parsedOutput.body;
|
|
640
640
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -645,21 +645,21 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
};
|
|
648
|
-
const
|
|
648
|
+
const de_ListAvailableZonesCommand = async (output, context) => {
|
|
649
649
|
if (output.statusCode >= 300) {
|
|
650
|
-
return
|
|
650
|
+
return de_ListAvailableZonesCommandError(output, context);
|
|
651
651
|
}
|
|
652
652
|
const data = await parseBody(output.body, context);
|
|
653
653
|
let contents = {};
|
|
654
|
-
contents =
|
|
654
|
+
contents = de_ListAvailableZonesResponse(data, context);
|
|
655
655
|
const response = {
|
|
656
656
|
$metadata: deserializeMetadata(output),
|
|
657
657
|
...contents,
|
|
658
658
|
};
|
|
659
659
|
return Promise.resolve(response);
|
|
660
660
|
};
|
|
661
|
-
exports.
|
|
662
|
-
const
|
|
661
|
+
exports.de_ListAvailableZonesCommand = de_ListAvailableZonesCommand;
|
|
662
|
+
const de_ListAvailableZonesCommandError = async (output, context) => {
|
|
663
663
|
const parsedOutput = {
|
|
664
664
|
...output,
|
|
665
665
|
body: await parseErrorBody(output.body, context),
|
|
@@ -668,13 +668,13 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
668
668
|
switch (errorCode) {
|
|
669
669
|
case "CloudHsmInternalException":
|
|
670
670
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
671
|
-
throw await
|
|
671
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
672
672
|
case "CloudHsmServiceException":
|
|
673
673
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
674
|
-
throw await
|
|
674
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
675
675
|
case "InvalidRequestException":
|
|
676
676
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
677
|
-
throw await
|
|
677
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
678
678
|
default:
|
|
679
679
|
const parsedBody = parsedOutput.body;
|
|
680
680
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -685,21 +685,21 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
const
|
|
688
|
+
const de_ListHapgsCommand = async (output, context) => {
|
|
689
689
|
if (output.statusCode >= 300) {
|
|
690
|
-
return
|
|
690
|
+
return de_ListHapgsCommandError(output, context);
|
|
691
691
|
}
|
|
692
692
|
const data = await parseBody(output.body, context);
|
|
693
693
|
let contents = {};
|
|
694
|
-
contents =
|
|
694
|
+
contents = de_ListHapgsResponse(data, context);
|
|
695
695
|
const response = {
|
|
696
696
|
$metadata: deserializeMetadata(output),
|
|
697
697
|
...contents,
|
|
698
698
|
};
|
|
699
699
|
return Promise.resolve(response);
|
|
700
700
|
};
|
|
701
|
-
exports.
|
|
702
|
-
const
|
|
701
|
+
exports.de_ListHapgsCommand = de_ListHapgsCommand;
|
|
702
|
+
const de_ListHapgsCommandError = async (output, context) => {
|
|
703
703
|
const parsedOutput = {
|
|
704
704
|
...output,
|
|
705
705
|
body: await parseErrorBody(output.body, context),
|
|
@@ -708,13 +708,13 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
708
708
|
switch (errorCode) {
|
|
709
709
|
case "CloudHsmInternalException":
|
|
710
710
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
711
|
-
throw await
|
|
711
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
712
712
|
case "CloudHsmServiceException":
|
|
713
713
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
714
|
-
throw await
|
|
714
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
715
715
|
case "InvalidRequestException":
|
|
716
716
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
717
|
-
throw await
|
|
717
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
718
718
|
default:
|
|
719
719
|
const parsedBody = parsedOutput.body;
|
|
720
720
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -725,21 +725,21 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
725
725
|
});
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
|
-
const
|
|
728
|
+
const de_ListHsmsCommand = async (output, context) => {
|
|
729
729
|
if (output.statusCode >= 300) {
|
|
730
|
-
return
|
|
730
|
+
return de_ListHsmsCommandError(output, context);
|
|
731
731
|
}
|
|
732
732
|
const data = await parseBody(output.body, context);
|
|
733
733
|
let contents = {};
|
|
734
|
-
contents =
|
|
734
|
+
contents = de_ListHsmsResponse(data, context);
|
|
735
735
|
const response = {
|
|
736
736
|
$metadata: deserializeMetadata(output),
|
|
737
737
|
...contents,
|
|
738
738
|
};
|
|
739
739
|
return Promise.resolve(response);
|
|
740
740
|
};
|
|
741
|
-
exports.
|
|
742
|
-
const
|
|
741
|
+
exports.de_ListHsmsCommand = de_ListHsmsCommand;
|
|
742
|
+
const de_ListHsmsCommandError = async (output, context) => {
|
|
743
743
|
const parsedOutput = {
|
|
744
744
|
...output,
|
|
745
745
|
body: await parseErrorBody(output.body, context),
|
|
@@ -748,13 +748,13 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
748
748
|
switch (errorCode) {
|
|
749
749
|
case "CloudHsmInternalException":
|
|
750
750
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
752
752
|
case "CloudHsmServiceException":
|
|
753
753
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
754
|
-
throw await
|
|
754
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
755
755
|
case "InvalidRequestException":
|
|
756
756
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
757
|
-
throw await
|
|
757
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
758
758
|
default:
|
|
759
759
|
const parsedBody = parsedOutput.body;
|
|
760
760
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -765,21 +765,21 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
const
|
|
768
|
+
const de_ListLunaClientsCommand = async (output, context) => {
|
|
769
769
|
if (output.statusCode >= 300) {
|
|
770
|
-
return
|
|
770
|
+
return de_ListLunaClientsCommandError(output, context);
|
|
771
771
|
}
|
|
772
772
|
const data = await parseBody(output.body, context);
|
|
773
773
|
let contents = {};
|
|
774
|
-
contents =
|
|
774
|
+
contents = de_ListLunaClientsResponse(data, context);
|
|
775
775
|
const response = {
|
|
776
776
|
$metadata: deserializeMetadata(output),
|
|
777
777
|
...contents,
|
|
778
778
|
};
|
|
779
779
|
return Promise.resolve(response);
|
|
780
780
|
};
|
|
781
|
-
exports.
|
|
782
|
-
const
|
|
781
|
+
exports.de_ListLunaClientsCommand = de_ListLunaClientsCommand;
|
|
782
|
+
const de_ListLunaClientsCommandError = async (output, context) => {
|
|
783
783
|
const parsedOutput = {
|
|
784
784
|
...output,
|
|
785
785
|
body: await parseErrorBody(output.body, context),
|
|
@@ -788,13 +788,13 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
788
788
|
switch (errorCode) {
|
|
789
789
|
case "CloudHsmInternalException":
|
|
790
790
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
791
|
-
throw await
|
|
791
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
792
792
|
case "CloudHsmServiceException":
|
|
793
793
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
794
|
-
throw await
|
|
794
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
795
795
|
case "InvalidRequestException":
|
|
796
796
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
797
|
-
throw await
|
|
797
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
798
798
|
default:
|
|
799
799
|
const parsedBody = parsedOutput.body;
|
|
800
800
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -805,21 +805,21 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
const
|
|
808
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
809
809
|
if (output.statusCode >= 300) {
|
|
810
|
-
return
|
|
810
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
811
811
|
}
|
|
812
812
|
const data = await parseBody(output.body, context);
|
|
813
813
|
let contents = {};
|
|
814
|
-
contents =
|
|
814
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
815
815
|
const response = {
|
|
816
816
|
$metadata: deserializeMetadata(output),
|
|
817
817
|
...contents,
|
|
818
818
|
};
|
|
819
819
|
return Promise.resolve(response);
|
|
820
820
|
};
|
|
821
|
-
exports.
|
|
822
|
-
const
|
|
821
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
822
|
+
const de_ListTagsForResourceCommandError = 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_1ListTagsForResourceCommandError = async (output, con
|
|
|
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
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -845,21 +845,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
845
845
|
});
|
|
846
846
|
}
|
|
847
847
|
};
|
|
848
|
-
const
|
|
848
|
+
const de_ModifyHapgCommand = async (output, context) => {
|
|
849
849
|
if (output.statusCode >= 300) {
|
|
850
|
-
return
|
|
850
|
+
return de_ModifyHapgCommandError(output, context);
|
|
851
851
|
}
|
|
852
852
|
const data = await parseBody(output.body, context);
|
|
853
853
|
let contents = {};
|
|
854
|
-
contents =
|
|
854
|
+
contents = de_ModifyHapgResponse(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
|
-
exports.
|
|
862
|
-
const
|
|
861
|
+
exports.de_ModifyHapgCommand = de_ModifyHapgCommand;
|
|
862
|
+
const de_ModifyHapgCommandError = async (output, context) => {
|
|
863
863
|
const parsedOutput = {
|
|
864
864
|
...output,
|
|
865
865
|
body: await parseErrorBody(output.body, context),
|
|
@@ -868,13 +868,13 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
868
868
|
switch (errorCode) {
|
|
869
869
|
case "CloudHsmInternalException":
|
|
870
870
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
871
|
-
throw await
|
|
871
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
872
872
|
case "CloudHsmServiceException":
|
|
873
873
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
874
|
-
throw await
|
|
874
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
875
875
|
case "InvalidRequestException":
|
|
876
876
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
877
|
-
throw await
|
|
877
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
878
878
|
default:
|
|
879
879
|
const parsedBody = parsedOutput.body;
|
|
880
880
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -885,21 +885,21 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
|
-
const
|
|
888
|
+
const de_ModifyHsmCommand = async (output, context) => {
|
|
889
889
|
if (output.statusCode >= 300) {
|
|
890
|
-
return
|
|
890
|
+
return de_ModifyHsmCommandError(output, context);
|
|
891
891
|
}
|
|
892
892
|
const data = await parseBody(output.body, context);
|
|
893
893
|
let contents = {};
|
|
894
|
-
contents =
|
|
894
|
+
contents = de_ModifyHsmResponse(data, context);
|
|
895
895
|
const response = {
|
|
896
896
|
$metadata: deserializeMetadata(output),
|
|
897
897
|
...contents,
|
|
898
898
|
};
|
|
899
899
|
return Promise.resolve(response);
|
|
900
900
|
};
|
|
901
|
-
exports.
|
|
902
|
-
const
|
|
901
|
+
exports.de_ModifyHsmCommand = de_ModifyHsmCommand;
|
|
902
|
+
const de_ModifyHsmCommandError = async (output, context) => {
|
|
903
903
|
const parsedOutput = {
|
|
904
904
|
...output,
|
|
905
905
|
body: await parseErrorBody(output.body, context),
|
|
@@ -908,13 +908,13 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
908
908
|
switch (errorCode) {
|
|
909
909
|
case "CloudHsmInternalException":
|
|
910
910
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
911
|
-
throw await
|
|
911
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
912
912
|
case "CloudHsmServiceException":
|
|
913
913
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
914
|
-
throw await
|
|
914
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
915
915
|
case "InvalidRequestException":
|
|
916
916
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
917
|
-
throw await
|
|
917
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
918
918
|
default:
|
|
919
919
|
const parsedBody = parsedOutput.body;
|
|
920
920
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -925,21 +925,21 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
|
-
const
|
|
928
|
+
const de_ModifyLunaClientCommand = async (output, context) => {
|
|
929
929
|
if (output.statusCode >= 300) {
|
|
930
|
-
return
|
|
930
|
+
return de_ModifyLunaClientCommandError(output, context);
|
|
931
931
|
}
|
|
932
932
|
const data = await parseBody(output.body, context);
|
|
933
933
|
let contents = {};
|
|
934
|
-
contents =
|
|
934
|
+
contents = de_ModifyLunaClientResponse(data, context);
|
|
935
935
|
const response = {
|
|
936
936
|
$metadata: deserializeMetadata(output),
|
|
937
937
|
...contents,
|
|
938
938
|
};
|
|
939
939
|
return Promise.resolve(response);
|
|
940
940
|
};
|
|
941
|
-
exports.
|
|
942
|
-
const
|
|
941
|
+
exports.de_ModifyLunaClientCommand = de_ModifyLunaClientCommand;
|
|
942
|
+
const de_ModifyLunaClientCommandError = async (output, context) => {
|
|
943
943
|
const parsedOutput = {
|
|
944
944
|
...output,
|
|
945
945
|
body: await parseErrorBody(output.body, context),
|
|
@@ -948,7 +948,7 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
|
|
|
948
948
|
switch (errorCode) {
|
|
949
949
|
case "CloudHsmServiceException":
|
|
950
950
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
951
|
-
throw await
|
|
951
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
952
952
|
default:
|
|
953
953
|
const parsedBody = parsedOutput.body;
|
|
954
954
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -959,21 +959,21 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
|
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
};
|
|
962
|
-
const
|
|
962
|
+
const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
963
963
|
if (output.statusCode >= 300) {
|
|
964
|
-
return
|
|
964
|
+
return de_RemoveTagsFromResourceCommandError(output, context);
|
|
965
965
|
}
|
|
966
966
|
const data = await parseBody(output.body, context);
|
|
967
967
|
let contents = {};
|
|
968
|
-
contents =
|
|
968
|
+
contents = de_RemoveTagsFromResourceResponse(data, context);
|
|
969
969
|
const response = {
|
|
970
970
|
$metadata: deserializeMetadata(output),
|
|
971
971
|
...contents,
|
|
972
972
|
};
|
|
973
973
|
return Promise.resolve(response);
|
|
974
974
|
};
|
|
975
|
-
exports.
|
|
976
|
-
const
|
|
975
|
+
exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
|
|
976
|
+
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
977
977
|
const parsedOutput = {
|
|
978
978
|
...output,
|
|
979
979
|
body: await parseErrorBody(output.body, context),
|
|
@@ -982,13 +982,13 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
982
982
|
switch (errorCode) {
|
|
983
983
|
case "CloudHsmInternalException":
|
|
984
984
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
985
|
-
throw await
|
|
985
|
+
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
986
986
|
case "CloudHsmServiceException":
|
|
987
987
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
988
|
-
throw await
|
|
988
|
+
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
989
989
|
case "InvalidRequestException":
|
|
990
990
|
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
991
|
-
throw await
|
|
991
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
992
992
|
default:
|
|
993
993
|
const parsedBody = parsedOutput.body;
|
|
994
994
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -999,45 +999,45 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
const
|
|
1002
|
+
const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
1003
1003
|
const body = parsedOutput.body;
|
|
1004
|
-
const deserialized =
|
|
1004
|
+
const deserialized = de_CloudHsmInternalException(body, context);
|
|
1005
1005
|
const exception = new models_0_1.CloudHsmInternalException({
|
|
1006
1006
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1007
1007
|
...deserialized,
|
|
1008
1008
|
});
|
|
1009
1009
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1010
1010
|
};
|
|
1011
|
-
const
|
|
1011
|
+
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
1012
1012
|
const body = parsedOutput.body;
|
|
1013
|
-
const deserialized =
|
|
1013
|
+
const deserialized = de_CloudHsmServiceException(body, context);
|
|
1014
1014
|
const exception = new models_0_1.CloudHsmServiceException({
|
|
1015
1015
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1016
1016
|
...deserialized,
|
|
1017
1017
|
});
|
|
1018
1018
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1019
1019
|
};
|
|
1020
|
-
const
|
|
1020
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1021
1021
|
const body = parsedOutput.body;
|
|
1022
|
-
const deserialized =
|
|
1022
|
+
const deserialized = de_InvalidRequestException(body, context);
|
|
1023
1023
|
const exception = new models_0_1.InvalidRequestException({
|
|
1024
1024
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1025
1025
|
...deserialized,
|
|
1026
1026
|
});
|
|
1027
1027
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1028
1028
|
};
|
|
1029
|
-
const
|
|
1029
|
+
const se_AddTagsToResourceRequest = (input, context) => {
|
|
1030
1030
|
return {
|
|
1031
1031
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1032
|
-
...(input.TagList != null && { TagList:
|
|
1032
|
+
...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
|
|
1033
1033
|
};
|
|
1034
1034
|
};
|
|
1035
|
-
const
|
|
1035
|
+
const se_CreateHapgRequest = (input, context) => {
|
|
1036
1036
|
return {
|
|
1037
1037
|
...(input.Label != null && { Label: input.Label }),
|
|
1038
1038
|
};
|
|
1039
1039
|
};
|
|
1040
|
-
const
|
|
1040
|
+
const se_CreateHsmRequest = (input, context) => {
|
|
1041
1041
|
return {
|
|
1042
1042
|
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
1043
1043
|
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
@@ -1049,91 +1049,91 @@ const serializeAws_json1_1CreateHsmRequest = (input, context) => {
|
|
|
1049
1049
|
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1050
1050
|
};
|
|
1051
1051
|
};
|
|
1052
|
-
const
|
|
1052
|
+
const se_CreateLunaClientRequest = (input, context) => {
|
|
1053
1053
|
return {
|
|
1054
1054
|
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1055
1055
|
...(input.Label != null && { Label: input.Label }),
|
|
1056
1056
|
};
|
|
1057
1057
|
};
|
|
1058
|
-
const
|
|
1058
|
+
const se_DeleteHapgRequest = (input, context) => {
|
|
1059
1059
|
return {
|
|
1060
1060
|
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1061
1061
|
};
|
|
1062
1062
|
};
|
|
1063
|
-
const
|
|
1063
|
+
const se_DeleteHsmRequest = (input, context) => {
|
|
1064
1064
|
return {
|
|
1065
1065
|
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1066
1066
|
};
|
|
1067
1067
|
};
|
|
1068
|
-
const
|
|
1068
|
+
const se_DeleteLunaClientRequest = (input, context) => {
|
|
1069
1069
|
return {
|
|
1070
1070
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1071
1071
|
};
|
|
1072
1072
|
};
|
|
1073
|
-
const
|
|
1073
|
+
const se_DescribeHapgRequest = (input, context) => {
|
|
1074
1074
|
return {
|
|
1075
1075
|
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1076
1076
|
};
|
|
1077
1077
|
};
|
|
1078
|
-
const
|
|
1078
|
+
const se_DescribeHsmRequest = (input, context) => {
|
|
1079
1079
|
return {
|
|
1080
1080
|
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1081
1081
|
...(input.HsmSerialNumber != null && { HsmSerialNumber: input.HsmSerialNumber }),
|
|
1082
1082
|
};
|
|
1083
1083
|
};
|
|
1084
|
-
const
|
|
1084
|
+
const se_DescribeLunaClientRequest = (input, context) => {
|
|
1085
1085
|
return {
|
|
1086
1086
|
...(input.CertificateFingerprint != null && { CertificateFingerprint: input.CertificateFingerprint }),
|
|
1087
1087
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1088
1088
|
};
|
|
1089
1089
|
};
|
|
1090
|
-
const
|
|
1090
|
+
const se_GetConfigRequest = (input, context) => {
|
|
1091
1091
|
return {
|
|
1092
1092
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1093
1093
|
...(input.ClientVersion != null && { ClientVersion: input.ClientVersion }),
|
|
1094
|
-
...(input.HapgList != null && { HapgList:
|
|
1094
|
+
...(input.HapgList != null && { HapgList: se_HapgList(input.HapgList, context) }),
|
|
1095
1095
|
};
|
|
1096
1096
|
};
|
|
1097
|
-
const
|
|
1097
|
+
const se_HapgList = (input, context) => {
|
|
1098
1098
|
return input
|
|
1099
1099
|
.filter((e) => e != null)
|
|
1100
1100
|
.map((entry) => {
|
|
1101
1101
|
return entry;
|
|
1102
1102
|
});
|
|
1103
1103
|
};
|
|
1104
|
-
const
|
|
1104
|
+
const se_ListAvailableZonesRequest = (input, context) => {
|
|
1105
1105
|
return {};
|
|
1106
1106
|
};
|
|
1107
|
-
const
|
|
1107
|
+
const se_ListHapgsRequest = (input, context) => {
|
|
1108
1108
|
return {
|
|
1109
1109
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1110
1110
|
};
|
|
1111
1111
|
};
|
|
1112
|
-
const
|
|
1112
|
+
const se_ListHsmsRequest = (input, context) => {
|
|
1113
1113
|
return {
|
|
1114
1114
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1115
1115
|
};
|
|
1116
1116
|
};
|
|
1117
|
-
const
|
|
1117
|
+
const se_ListLunaClientsRequest = (input, context) => {
|
|
1118
1118
|
return {
|
|
1119
1119
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1120
1120
|
};
|
|
1121
1121
|
};
|
|
1122
|
-
const
|
|
1122
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1123
1123
|
return {
|
|
1124
1124
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1125
1125
|
};
|
|
1126
1126
|
};
|
|
1127
|
-
const
|
|
1127
|
+
const se_ModifyHapgRequest = (input, context) => {
|
|
1128
1128
|
return {
|
|
1129
1129
|
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1130
1130
|
...(input.Label != null && { Label: input.Label }),
|
|
1131
1131
|
...(input.PartitionSerialList != null && {
|
|
1132
|
-
PartitionSerialList:
|
|
1132
|
+
PartitionSerialList: se_PartitionSerialList(input.PartitionSerialList, context),
|
|
1133
1133
|
}),
|
|
1134
1134
|
};
|
|
1135
1135
|
};
|
|
1136
|
-
const
|
|
1136
|
+
const se_ModifyHsmRequest = (input, context) => {
|
|
1137
1137
|
return {
|
|
1138
1138
|
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
1139
1139
|
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
@@ -1143,51 +1143,51 @@ const serializeAws_json1_1ModifyHsmRequest = (input, context) => {
|
|
|
1143
1143
|
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1144
1144
|
};
|
|
1145
1145
|
};
|
|
1146
|
-
const
|
|
1146
|
+
const se_ModifyLunaClientRequest = (input, context) => {
|
|
1147
1147
|
return {
|
|
1148
1148
|
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1149
1149
|
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1150
1150
|
};
|
|
1151
1151
|
};
|
|
1152
|
-
const
|
|
1152
|
+
const se_PartitionSerialList = (input, context) => {
|
|
1153
1153
|
return input
|
|
1154
1154
|
.filter((e) => e != null)
|
|
1155
1155
|
.map((entry) => {
|
|
1156
1156
|
return entry;
|
|
1157
1157
|
});
|
|
1158
1158
|
};
|
|
1159
|
-
const
|
|
1159
|
+
const se_RemoveTagsFromResourceRequest = (input, context) => {
|
|
1160
1160
|
return {
|
|
1161
1161
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1162
|
-
...(input.TagKeyList != null && { TagKeyList:
|
|
1162
|
+
...(input.TagKeyList != null && { TagKeyList: se_TagKeyList(input.TagKeyList, context) }),
|
|
1163
1163
|
};
|
|
1164
1164
|
};
|
|
1165
|
-
const
|
|
1165
|
+
const se_Tag = (input, context) => {
|
|
1166
1166
|
return {
|
|
1167
1167
|
...(input.Key != null && { Key: input.Key }),
|
|
1168
1168
|
...(input.Value != null && { Value: input.Value }),
|
|
1169
1169
|
};
|
|
1170
1170
|
};
|
|
1171
|
-
const
|
|
1171
|
+
const se_TagKeyList = (input, context) => {
|
|
1172
1172
|
return input
|
|
1173
1173
|
.filter((e) => e != null)
|
|
1174
1174
|
.map((entry) => {
|
|
1175
1175
|
return entry;
|
|
1176
1176
|
});
|
|
1177
1177
|
};
|
|
1178
|
-
const
|
|
1178
|
+
const se_TagList = (input, context) => {
|
|
1179
1179
|
return input
|
|
1180
1180
|
.filter((e) => e != null)
|
|
1181
1181
|
.map((entry) => {
|
|
1182
|
-
return
|
|
1182
|
+
return se_Tag(entry, context);
|
|
1183
1183
|
});
|
|
1184
1184
|
};
|
|
1185
|
-
const
|
|
1185
|
+
const de_AddTagsToResourceResponse = (output, context) => {
|
|
1186
1186
|
return {
|
|
1187
1187
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1188
1188
|
};
|
|
1189
1189
|
};
|
|
1190
|
-
const
|
|
1190
|
+
const de_AZList = (output, context) => {
|
|
1191
1191
|
const retVal = (output || [])
|
|
1192
1192
|
.filter((e) => e != null)
|
|
1193
1193
|
.map((entry) => {
|
|
@@ -1198,7 +1198,7 @@ const deserializeAws_json1_1AZList = (output, context) => {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
return retVal;
|
|
1200
1200
|
};
|
|
1201
|
-
const
|
|
1201
|
+
const de_ClientList = (output, context) => {
|
|
1202
1202
|
const retVal = (output || [])
|
|
1203
1203
|
.filter((e) => e != null)
|
|
1204
1204
|
.map((entry) => {
|
|
@@ -1209,70 +1209,62 @@ const deserializeAws_json1_1ClientList = (output, context) => {
|
|
|
1209
1209
|
});
|
|
1210
1210
|
return retVal;
|
|
1211
1211
|
};
|
|
1212
|
-
const
|
|
1212
|
+
const de_CloudHsmInternalException = (output, context) => {
|
|
1213
1213
|
return {
|
|
1214
1214
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1215
1215
|
retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
|
|
1216
1216
|
};
|
|
1217
1217
|
};
|
|
1218
|
-
const
|
|
1218
|
+
const de_CloudHsmServiceException = (output, context) => {
|
|
1219
1219
|
return {
|
|
1220
1220
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1221
1221
|
retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
|
|
1222
1222
|
};
|
|
1223
1223
|
};
|
|
1224
|
-
const
|
|
1224
|
+
const de_CreateHapgResponse = (output, context) => {
|
|
1225
1225
|
return {
|
|
1226
1226
|
HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
|
-
const
|
|
1229
|
+
const de_CreateHsmResponse = (output, context) => {
|
|
1230
1230
|
return {
|
|
1231
1231
|
HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
|
|
1232
1232
|
};
|
|
1233
1233
|
};
|
|
1234
|
-
const
|
|
1234
|
+
const de_CreateLunaClientResponse = (output, context) => {
|
|
1235
1235
|
return {
|
|
1236
1236
|
ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
|
|
1237
1237
|
};
|
|
1238
1238
|
};
|
|
1239
|
-
const
|
|
1239
|
+
const de_DeleteHapgResponse = (output, context) => {
|
|
1240
1240
|
return {
|
|
1241
1241
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1242
1242
|
};
|
|
1243
1243
|
};
|
|
1244
|
-
const
|
|
1244
|
+
const de_DeleteHsmResponse = (output, context) => {
|
|
1245
1245
|
return {
|
|
1246
1246
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1247
1247
|
};
|
|
1248
1248
|
};
|
|
1249
|
-
const
|
|
1249
|
+
const de_DeleteLunaClientResponse = (output, context) => {
|
|
1250
1250
|
return {
|
|
1251
1251
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1252
1252
|
};
|
|
1253
1253
|
};
|
|
1254
|
-
const
|
|
1254
|
+
const de_DescribeHapgResponse = (output, context) => {
|
|
1255
1255
|
return {
|
|
1256
1256
|
HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
|
|
1257
1257
|
HapgSerial: (0, smithy_client_1.expectString)(output.HapgSerial),
|
|
1258
|
-
HsmsLastActionFailed: output.HsmsLastActionFailed != null
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
HsmsPendingDeletion: output.HsmsPendingDeletion != null
|
|
1262
|
-
? deserializeAws_json1_1HsmList(output.HsmsPendingDeletion, context)
|
|
1263
|
-
: undefined,
|
|
1264
|
-
HsmsPendingRegistration: output.HsmsPendingRegistration != null
|
|
1265
|
-
? deserializeAws_json1_1HsmList(output.HsmsPendingRegistration, context)
|
|
1266
|
-
: undefined,
|
|
1258
|
+
HsmsLastActionFailed: output.HsmsLastActionFailed != null ? de_HsmList(output.HsmsLastActionFailed, context) : undefined,
|
|
1259
|
+
HsmsPendingDeletion: output.HsmsPendingDeletion != null ? de_HsmList(output.HsmsPendingDeletion, context) : undefined,
|
|
1260
|
+
HsmsPendingRegistration: output.HsmsPendingRegistration != null ? de_HsmList(output.HsmsPendingRegistration, context) : undefined,
|
|
1267
1261
|
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1268
1262
|
LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
|
|
1269
|
-
PartitionSerialList: output.PartitionSerialList != null
|
|
1270
|
-
? deserializeAws_json1_1PartitionSerialList(output.PartitionSerialList, context)
|
|
1271
|
-
: undefined,
|
|
1263
|
+
PartitionSerialList: output.PartitionSerialList != null ? de_PartitionSerialList(output.PartitionSerialList, context) : undefined,
|
|
1272
1264
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1273
1265
|
};
|
|
1274
1266
|
};
|
|
1275
|
-
const
|
|
1267
|
+
const de_DescribeHsmResponse = (output, context) => {
|
|
1276
1268
|
return {
|
|
1277
1269
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
1278
1270
|
EniId: (0, smithy_client_1.expectString)(output.EniId),
|
|
@@ -1280,7 +1272,7 @@ const deserializeAws_json1_1DescribeHsmResponse = (output, context) => {
|
|
|
1280
1272
|
HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
|
|
1281
1273
|
HsmType: (0, smithy_client_1.expectString)(output.HsmType),
|
|
1282
1274
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
1283
|
-
Partitions: output.Partitions != null ?
|
|
1275
|
+
Partitions: output.Partitions != null ? de_PartitionList(output.Partitions, context) : undefined,
|
|
1284
1276
|
SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
|
|
1285
1277
|
ServerCertLastUpdated: (0, smithy_client_1.expectString)(output.ServerCertLastUpdated),
|
|
1286
1278
|
ServerCertUri: (0, smithy_client_1.expectString)(output.ServerCertUri),
|
|
@@ -1297,7 +1289,7 @@ const deserializeAws_json1_1DescribeHsmResponse = (output, context) => {
|
|
|
1297
1289
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
1298
1290
|
};
|
|
1299
1291
|
};
|
|
1300
|
-
const
|
|
1292
|
+
const de_DescribeLunaClientResponse = (output, context) => {
|
|
1301
1293
|
return {
|
|
1302
1294
|
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
1303
1295
|
CertificateFingerprint: (0, smithy_client_1.expectString)(output.CertificateFingerprint),
|
|
@@ -1306,14 +1298,14 @@ const deserializeAws_json1_1DescribeLunaClientResponse = (output, context) => {
|
|
|
1306
1298
|
LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
|
|
1307
1299
|
};
|
|
1308
1300
|
};
|
|
1309
|
-
const
|
|
1301
|
+
const de_GetConfigResponse = (output, context) => {
|
|
1310
1302
|
return {
|
|
1311
1303
|
ConfigCred: (0, smithy_client_1.expectString)(output.ConfigCred),
|
|
1312
1304
|
ConfigFile: (0, smithy_client_1.expectString)(output.ConfigFile),
|
|
1313
1305
|
ConfigType: (0, smithy_client_1.expectString)(output.ConfigType),
|
|
1314
1306
|
};
|
|
1315
1307
|
};
|
|
1316
|
-
const
|
|
1308
|
+
const de_HapgList = (output, context) => {
|
|
1317
1309
|
const retVal = (output || [])
|
|
1318
1310
|
.filter((e) => e != null)
|
|
1319
1311
|
.map((entry) => {
|
|
@@ -1324,7 +1316,7 @@ const deserializeAws_json1_1HapgList = (output, context) => {
|
|
|
1324
1316
|
});
|
|
1325
1317
|
return retVal;
|
|
1326
1318
|
};
|
|
1327
|
-
const
|
|
1319
|
+
const de_HsmList = (output, context) => {
|
|
1328
1320
|
const retVal = (output || [])
|
|
1329
1321
|
.filter((e) => e != null)
|
|
1330
1322
|
.map((entry) => {
|
|
@@ -1335,56 +1327,56 @@ const deserializeAws_json1_1HsmList = (output, context) => {
|
|
|
1335
1327
|
});
|
|
1336
1328
|
return retVal;
|
|
1337
1329
|
};
|
|
1338
|
-
const
|
|
1330
|
+
const de_InvalidRequestException = (output, context) => {
|
|
1339
1331
|
return {
|
|
1340
1332
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1341
1333
|
retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
|
|
1342
1334
|
};
|
|
1343
1335
|
};
|
|
1344
|
-
const
|
|
1336
|
+
const de_ListAvailableZonesResponse = (output, context) => {
|
|
1345
1337
|
return {
|
|
1346
|
-
AZList: output.AZList != null ?
|
|
1338
|
+
AZList: output.AZList != null ? de_AZList(output.AZList, context) : undefined,
|
|
1347
1339
|
};
|
|
1348
1340
|
};
|
|
1349
|
-
const
|
|
1341
|
+
const de_ListHapgsResponse = (output, context) => {
|
|
1350
1342
|
return {
|
|
1351
|
-
HapgList: output.HapgList != null ?
|
|
1343
|
+
HapgList: output.HapgList != null ? de_HapgList(output.HapgList, context) : undefined,
|
|
1352
1344
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1353
1345
|
};
|
|
1354
1346
|
};
|
|
1355
|
-
const
|
|
1347
|
+
const de_ListHsmsResponse = (output, context) => {
|
|
1356
1348
|
return {
|
|
1357
|
-
HsmList: output.HsmList != null ?
|
|
1349
|
+
HsmList: output.HsmList != null ? de_HsmList(output.HsmList, context) : undefined,
|
|
1358
1350
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1359
1351
|
};
|
|
1360
1352
|
};
|
|
1361
|
-
const
|
|
1353
|
+
const de_ListLunaClientsResponse = (output, context) => {
|
|
1362
1354
|
return {
|
|
1363
|
-
ClientList: output.ClientList != null ?
|
|
1355
|
+
ClientList: output.ClientList != null ? de_ClientList(output.ClientList, context) : undefined,
|
|
1364
1356
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1365
1357
|
};
|
|
1366
1358
|
};
|
|
1367
|
-
const
|
|
1359
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1368
1360
|
return {
|
|
1369
|
-
TagList: output.TagList != null ?
|
|
1361
|
+
TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
|
|
1370
1362
|
};
|
|
1371
1363
|
};
|
|
1372
|
-
const
|
|
1364
|
+
const de_ModifyHapgResponse = (output, context) => {
|
|
1373
1365
|
return {
|
|
1374
1366
|
HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
|
|
1375
1367
|
};
|
|
1376
1368
|
};
|
|
1377
|
-
const
|
|
1369
|
+
const de_ModifyHsmResponse = (output, context) => {
|
|
1378
1370
|
return {
|
|
1379
1371
|
HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
|
|
1380
1372
|
};
|
|
1381
1373
|
};
|
|
1382
|
-
const
|
|
1374
|
+
const de_ModifyLunaClientResponse = (output, context) => {
|
|
1383
1375
|
return {
|
|
1384
1376
|
ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
|
|
1385
1377
|
};
|
|
1386
1378
|
};
|
|
1387
|
-
const
|
|
1379
|
+
const de_PartitionList = (output, context) => {
|
|
1388
1380
|
const retVal = (output || [])
|
|
1389
1381
|
.filter((e) => e != null)
|
|
1390
1382
|
.map((entry) => {
|
|
@@ -1395,7 +1387,7 @@ const deserializeAws_json1_1PartitionList = (output, context) => {
|
|
|
1395
1387
|
});
|
|
1396
1388
|
return retVal;
|
|
1397
1389
|
};
|
|
1398
|
-
const
|
|
1390
|
+
const de_PartitionSerialList = (output, context) => {
|
|
1399
1391
|
const retVal = (output || [])
|
|
1400
1392
|
.filter((e) => e != null)
|
|
1401
1393
|
.map((entry) => {
|
|
@@ -1406,25 +1398,25 @@ const deserializeAws_json1_1PartitionSerialList = (output, context) => {
|
|
|
1406
1398
|
});
|
|
1407
1399
|
return retVal;
|
|
1408
1400
|
};
|
|
1409
|
-
const
|
|
1401
|
+
const de_RemoveTagsFromResourceResponse = (output, context) => {
|
|
1410
1402
|
return {
|
|
1411
1403
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1412
1404
|
};
|
|
1413
1405
|
};
|
|
1414
|
-
const
|
|
1406
|
+
const de_Tag = (output, context) => {
|
|
1415
1407
|
return {
|
|
1416
1408
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1417
1409
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1418
1410
|
};
|
|
1419
1411
|
};
|
|
1420
|
-
const
|
|
1412
|
+
const de_TagList = (output, context) => {
|
|
1421
1413
|
const retVal = (output || [])
|
|
1422
1414
|
.filter((e) => e != null)
|
|
1423
1415
|
.map((entry) => {
|
|
1424
1416
|
if (entry === null) {
|
|
1425
1417
|
return null;
|
|
1426
1418
|
}
|
|
1427
|
-
return
|
|
1419
|
+
return de_Tag(entry, context);
|
|
1428
1420
|
});
|
|
1429
1421
|
return retVal;
|
|
1430
1422
|
};
|