@aws-sdk/client-backup-gateway 3.310.0 → 3.315.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/protocols/Aws_json1_0.js +193 -782
- package/dist-es/protocols/Aws_json1_0.js +194 -783
- package/package.json +6 -6
|
@@ -1,230 +1,155 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { BackupGatewayServiceException as __BaseException } from "../models/BackupGatewayServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateGatewayToServerCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.0",
|
|
8
|
-
"x-amz-target": "BackupOnPremises_v20210101.AssociateGatewayToServer",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("AssociateGatewayToServer");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_CreateGatewayCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.0",
|
|
17
|
-
"x-amz-target": "BackupOnPremises_v20210101.CreateGateway",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("CreateGateway");
|
|
19
13
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_DeleteGatewayCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.0",
|
|
26
|
-
"x-amz-target": "BackupOnPremises_v20210101.DeleteGateway",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("DeleteGateway");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_DeleteHypervisorCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.0",
|
|
35
|
-
"x-amz-target": "BackupOnPremises_v20210101.DeleteHypervisor",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DeleteHypervisor");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DisassociateGatewayFromServerCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.0",
|
|
44
|
-
"x-amz-target": "BackupOnPremises_v20210101.DisassociateGatewayFromServer",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DisassociateGatewayFromServer");
|
|
46
31
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_GetBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.0",
|
|
53
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetBandwidthRateLimitSchedule",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("GetBandwidthRateLimitSchedule");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_GetGatewayCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.0",
|
|
62
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetGateway",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("GetGateway");
|
|
64
43
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_GetHypervisorCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.0",
|
|
71
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisor",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("GetHypervisor");
|
|
73
49
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_GetHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.0",
|
|
80
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisorPropertyMappings",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("GetHypervisorPropertyMappings");
|
|
82
55
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_GetVirtualMachineCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.0",
|
|
89
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetVirtualMachine",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("GetVirtualMachine");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_ImportHypervisorConfigurationCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.0",
|
|
98
|
-
"x-amz-target": "BackupOnPremises_v20210101.ImportHypervisorConfiguration",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("ImportHypervisorConfiguration");
|
|
100
67
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_ListGatewaysCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.0",
|
|
107
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListGateways",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("ListGateways");
|
|
109
73
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_ListHypervisorsCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.0",
|
|
116
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListHypervisors",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("ListHypervisors");
|
|
118
79
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.0",
|
|
125
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListTagsForResource",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
127
85
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_ListVirtualMachinesCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.0",
|
|
134
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListVirtualMachines",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("ListVirtualMachines");
|
|
136
91
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_PutBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.0",
|
|
143
|
-
"x-amz-target": "BackupOnPremises_v20210101.PutBandwidthRateLimitSchedule",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("PutBandwidthRateLimitSchedule");
|
|
145
97
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_PutHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.0",
|
|
152
|
-
"x-amz-target": "BackupOnPremises_v20210101.PutHypervisorPropertyMappings",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("PutHypervisorPropertyMappings");
|
|
154
103
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_PutMaintenanceStartTimeCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.0",
|
|
161
|
-
"x-amz-target": "BackupOnPremises_v20210101.PutMaintenanceStartTime",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("PutMaintenanceStartTime");
|
|
163
109
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_StartVirtualMachinesMetadataSyncCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.0",
|
|
170
|
-
"x-amz-target": "BackupOnPremises_v20210101.StartVirtualMachinesMetadataSync",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("StartVirtualMachinesMetadataSync");
|
|
172
115
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_TagResourceCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.0",
|
|
179
|
-
"x-amz-target": "BackupOnPremises_v20210101.TagResource",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("TagResource");
|
|
181
121
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_TestHypervisorConfigurationCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.0",
|
|
188
|
-
"x-amz-target": "BackupOnPremises_v20210101.TestHypervisorConfiguration",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("TestHypervisorConfiguration");
|
|
190
127
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.0",
|
|
197
|
-
"x-amz-target": "BackupOnPremises_v20210101.UntagResource",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("UntagResource");
|
|
199
133
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_UpdateGatewayInformationCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.0",
|
|
206
|
-
"x-amz-target": "BackupOnPremises_v20210101.UpdateGatewayInformation",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("UpdateGatewayInformation");
|
|
208
139
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_UpdateGatewaySoftwareNowCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.0",
|
|
215
|
-
"x-amz-target": "BackupOnPremises_v20210101.UpdateGatewaySoftwareNow",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("UpdateGatewaySoftwareNow");
|
|
217
145
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_UpdateHypervisorCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.0",
|
|
224
|
-
"x-amz-target": "BackupOnPremises_v20210101.UpdateHypervisor",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("UpdateHypervisor");
|
|
226
151
|
let body;
|
|
227
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const de_AssociateGatewayToServerCommand = async (output, context) => {
|
|
@@ -233,12 +158,12 @@ export const de_AssociateGatewayToServerCommand = async (output, context) => {
|
|
|
233
158
|
}
|
|
234
159
|
const data = await parseBody(output.body, context);
|
|
235
160
|
let contents = {};
|
|
236
|
-
contents =
|
|
161
|
+
contents = _json(data);
|
|
237
162
|
const response = {
|
|
238
163
|
$metadata: deserializeMetadata(output),
|
|
239
164
|
...contents,
|
|
240
165
|
};
|
|
241
|
-
return
|
|
166
|
+
return response;
|
|
242
167
|
};
|
|
243
168
|
const de_AssociateGatewayToServerCommandError = async (output, context) => {
|
|
244
169
|
const parsedOutput = {
|
|
@@ -261,10 +186,9 @@ const de_AssociateGatewayToServerCommandError = async (output, context) => {
|
|
|
261
186
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
262
187
|
default:
|
|
263
188
|
const parsedBody = parsedOutput.body;
|
|
264
|
-
throwDefaultError({
|
|
189
|
+
return throwDefaultError({
|
|
265
190
|
output,
|
|
266
191
|
parsedBody,
|
|
267
|
-
exceptionCtor: __BaseException,
|
|
268
192
|
errorCode,
|
|
269
193
|
});
|
|
270
194
|
}
|
|
@@ -275,12 +199,12 @@ export const de_CreateGatewayCommand = async (output, context) => {
|
|
|
275
199
|
}
|
|
276
200
|
const data = await parseBody(output.body, context);
|
|
277
201
|
let contents = {};
|
|
278
|
-
contents =
|
|
202
|
+
contents = _json(data);
|
|
279
203
|
const response = {
|
|
280
204
|
$metadata: deserializeMetadata(output),
|
|
281
205
|
...contents,
|
|
282
206
|
};
|
|
283
|
-
return
|
|
207
|
+
return response;
|
|
284
208
|
};
|
|
285
209
|
const de_CreateGatewayCommandError = async (output, context) => {
|
|
286
210
|
const parsedOutput = {
|
|
@@ -300,10 +224,9 @@ const de_CreateGatewayCommandError = async (output, context) => {
|
|
|
300
224
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
301
225
|
default:
|
|
302
226
|
const parsedBody = parsedOutput.body;
|
|
303
|
-
throwDefaultError({
|
|
227
|
+
return throwDefaultError({
|
|
304
228
|
output,
|
|
305
229
|
parsedBody,
|
|
306
|
-
exceptionCtor: __BaseException,
|
|
307
230
|
errorCode,
|
|
308
231
|
});
|
|
309
232
|
}
|
|
@@ -314,12 +237,12 @@ export const de_DeleteGatewayCommand = async (output, context) => {
|
|
|
314
237
|
}
|
|
315
238
|
const data = await parseBody(output.body, context);
|
|
316
239
|
let contents = {};
|
|
317
|
-
contents =
|
|
240
|
+
contents = _json(data);
|
|
318
241
|
const response = {
|
|
319
242
|
$metadata: deserializeMetadata(output),
|
|
320
243
|
...contents,
|
|
321
244
|
};
|
|
322
|
-
return
|
|
245
|
+
return response;
|
|
323
246
|
};
|
|
324
247
|
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
325
248
|
const parsedOutput = {
|
|
@@ -342,10 +265,9 @@ const de_DeleteGatewayCommandError = async (output, context) => {
|
|
|
342
265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
343
266
|
default:
|
|
344
267
|
const parsedBody = parsedOutput.body;
|
|
345
|
-
throwDefaultError({
|
|
268
|
+
return throwDefaultError({
|
|
346
269
|
output,
|
|
347
270
|
parsedBody,
|
|
348
|
-
exceptionCtor: __BaseException,
|
|
349
271
|
errorCode,
|
|
350
272
|
});
|
|
351
273
|
}
|
|
@@ -356,12 +278,12 @@ export const de_DeleteHypervisorCommand = async (output, context) => {
|
|
|
356
278
|
}
|
|
357
279
|
const data = await parseBody(output.body, context);
|
|
358
280
|
let contents = {};
|
|
359
|
-
contents =
|
|
281
|
+
contents = _json(data);
|
|
360
282
|
const response = {
|
|
361
283
|
$metadata: deserializeMetadata(output),
|
|
362
284
|
...contents,
|
|
363
285
|
};
|
|
364
|
-
return
|
|
286
|
+
return response;
|
|
365
287
|
};
|
|
366
288
|
const de_DeleteHypervisorCommandError = async (output, context) => {
|
|
367
289
|
const parsedOutput = {
|
|
@@ -390,10 +312,9 @@ const de_DeleteHypervisorCommandError = async (output, context) => {
|
|
|
390
312
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
391
313
|
default:
|
|
392
314
|
const parsedBody = parsedOutput.body;
|
|
393
|
-
throwDefaultError({
|
|
315
|
+
return throwDefaultError({
|
|
394
316
|
output,
|
|
395
317
|
parsedBody,
|
|
396
|
-
exceptionCtor: __BaseException,
|
|
397
318
|
errorCode,
|
|
398
319
|
});
|
|
399
320
|
}
|
|
@@ -404,12 +325,12 @@ export const de_DisassociateGatewayFromServerCommand = async (output, context) =
|
|
|
404
325
|
}
|
|
405
326
|
const data = await parseBody(output.body, context);
|
|
406
327
|
let contents = {};
|
|
407
|
-
contents =
|
|
328
|
+
contents = _json(data);
|
|
408
329
|
const response = {
|
|
409
330
|
$metadata: deserializeMetadata(output),
|
|
410
331
|
...contents,
|
|
411
332
|
};
|
|
412
|
-
return
|
|
333
|
+
return response;
|
|
413
334
|
};
|
|
414
335
|
const de_DisassociateGatewayFromServerCommandError = async (output, context) => {
|
|
415
336
|
const parsedOutput = {
|
|
@@ -435,10 +356,9 @@ const de_DisassociateGatewayFromServerCommandError = async (output, context) =>
|
|
|
435
356
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
436
357
|
default:
|
|
437
358
|
const parsedBody = parsedOutput.body;
|
|
438
|
-
throwDefaultError({
|
|
359
|
+
return throwDefaultError({
|
|
439
360
|
output,
|
|
440
361
|
parsedBody,
|
|
441
|
-
exceptionCtor: __BaseException,
|
|
442
362
|
errorCode,
|
|
443
363
|
});
|
|
444
364
|
}
|
|
@@ -449,12 +369,12 @@ export const de_GetBandwidthRateLimitScheduleCommand = async (output, context) =
|
|
|
449
369
|
}
|
|
450
370
|
const data = await parseBody(output.body, context);
|
|
451
371
|
let contents = {};
|
|
452
|
-
contents =
|
|
372
|
+
contents = _json(data);
|
|
453
373
|
const response = {
|
|
454
374
|
$metadata: deserializeMetadata(output),
|
|
455
375
|
...contents,
|
|
456
376
|
};
|
|
457
|
-
return
|
|
377
|
+
return response;
|
|
458
378
|
};
|
|
459
379
|
const de_GetBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
460
380
|
const parsedOutput = {
|
|
@@ -477,10 +397,9 @@ const de_GetBandwidthRateLimitScheduleCommandError = async (output, context) =>
|
|
|
477
397
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
478
398
|
default:
|
|
479
399
|
const parsedBody = parsedOutput.body;
|
|
480
|
-
throwDefaultError({
|
|
400
|
+
return throwDefaultError({
|
|
481
401
|
output,
|
|
482
402
|
parsedBody,
|
|
483
|
-
exceptionCtor: __BaseException,
|
|
484
403
|
errorCode,
|
|
485
404
|
});
|
|
486
405
|
}
|
|
@@ -496,7 +415,7 @@ export const de_GetGatewayCommand = async (output, context) => {
|
|
|
496
415
|
$metadata: deserializeMetadata(output),
|
|
497
416
|
...contents,
|
|
498
417
|
};
|
|
499
|
-
return
|
|
418
|
+
return response;
|
|
500
419
|
};
|
|
501
420
|
const de_GetGatewayCommandError = async (output, context) => {
|
|
502
421
|
const parsedOutput = {
|
|
@@ -519,10 +438,9 @@ const de_GetGatewayCommandError = async (output, context) => {
|
|
|
519
438
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
520
439
|
default:
|
|
521
440
|
const parsedBody = parsedOutput.body;
|
|
522
|
-
throwDefaultError({
|
|
441
|
+
return throwDefaultError({
|
|
523
442
|
output,
|
|
524
443
|
parsedBody,
|
|
525
|
-
exceptionCtor: __BaseException,
|
|
526
444
|
errorCode,
|
|
527
445
|
});
|
|
528
446
|
}
|
|
@@ -538,7 +456,7 @@ export const de_GetHypervisorCommand = async (output, context) => {
|
|
|
538
456
|
$metadata: deserializeMetadata(output),
|
|
539
457
|
...contents,
|
|
540
458
|
};
|
|
541
|
-
return
|
|
459
|
+
return response;
|
|
542
460
|
};
|
|
543
461
|
const de_GetHypervisorCommandError = async (output, context) => {
|
|
544
462
|
const parsedOutput = {
|
|
@@ -561,10 +479,9 @@ const de_GetHypervisorCommandError = async (output, context) => {
|
|
|
561
479
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
562
480
|
default:
|
|
563
481
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
throwDefaultError({
|
|
482
|
+
return throwDefaultError({
|
|
565
483
|
output,
|
|
566
484
|
parsedBody,
|
|
567
|
-
exceptionCtor: __BaseException,
|
|
568
485
|
errorCode,
|
|
569
486
|
});
|
|
570
487
|
}
|
|
@@ -575,12 +492,12 @@ export const de_GetHypervisorPropertyMappingsCommand = async (output, context) =
|
|
|
575
492
|
}
|
|
576
493
|
const data = await parseBody(output.body, context);
|
|
577
494
|
let contents = {};
|
|
578
|
-
contents =
|
|
495
|
+
contents = _json(data);
|
|
579
496
|
const response = {
|
|
580
497
|
$metadata: deserializeMetadata(output),
|
|
581
498
|
...contents,
|
|
582
499
|
};
|
|
583
|
-
return
|
|
500
|
+
return response;
|
|
584
501
|
};
|
|
585
502
|
const de_GetHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
586
503
|
const parsedOutput = {
|
|
@@ -603,10 +520,9 @@ const de_GetHypervisorPropertyMappingsCommandError = async (output, context) =>
|
|
|
603
520
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
604
521
|
default:
|
|
605
522
|
const parsedBody = parsedOutput.body;
|
|
606
|
-
throwDefaultError({
|
|
523
|
+
return throwDefaultError({
|
|
607
524
|
output,
|
|
608
525
|
parsedBody,
|
|
609
|
-
exceptionCtor: __BaseException,
|
|
610
526
|
errorCode,
|
|
611
527
|
});
|
|
612
528
|
}
|
|
@@ -622,7 +538,7 @@ export const de_GetVirtualMachineCommand = async (output, context) => {
|
|
|
622
538
|
$metadata: deserializeMetadata(output),
|
|
623
539
|
...contents,
|
|
624
540
|
};
|
|
625
|
-
return
|
|
541
|
+
return response;
|
|
626
542
|
};
|
|
627
543
|
const de_GetVirtualMachineCommandError = async (output, context) => {
|
|
628
544
|
const parsedOutput = {
|
|
@@ -645,10 +561,9 @@ const de_GetVirtualMachineCommandError = async (output, context) => {
|
|
|
645
561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
646
562
|
default:
|
|
647
563
|
const parsedBody = parsedOutput.body;
|
|
648
|
-
throwDefaultError({
|
|
564
|
+
return throwDefaultError({
|
|
649
565
|
output,
|
|
650
566
|
parsedBody,
|
|
651
|
-
exceptionCtor: __BaseException,
|
|
652
567
|
errorCode,
|
|
653
568
|
});
|
|
654
569
|
}
|
|
@@ -659,12 +574,12 @@ export const de_ImportHypervisorConfigurationCommand = async (output, context) =
|
|
|
659
574
|
}
|
|
660
575
|
const data = await parseBody(output.body, context);
|
|
661
576
|
let contents = {};
|
|
662
|
-
contents =
|
|
577
|
+
contents = _json(data);
|
|
663
578
|
const response = {
|
|
664
579
|
$metadata: deserializeMetadata(output),
|
|
665
580
|
...contents,
|
|
666
581
|
};
|
|
667
|
-
return
|
|
582
|
+
return response;
|
|
668
583
|
};
|
|
669
584
|
const de_ImportHypervisorConfigurationCommandError = async (output, context) => {
|
|
670
585
|
const parsedOutput = {
|
|
@@ -690,10 +605,9 @@ const de_ImportHypervisorConfigurationCommandError = async (output, context) =>
|
|
|
690
605
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
691
606
|
default:
|
|
692
607
|
const parsedBody = parsedOutput.body;
|
|
693
|
-
throwDefaultError({
|
|
608
|
+
return throwDefaultError({
|
|
694
609
|
output,
|
|
695
610
|
parsedBody,
|
|
696
|
-
exceptionCtor: __BaseException,
|
|
697
611
|
errorCode,
|
|
698
612
|
});
|
|
699
613
|
}
|
|
@@ -709,7 +623,7 @@ export const de_ListGatewaysCommand = async (output, context) => {
|
|
|
709
623
|
$metadata: deserializeMetadata(output),
|
|
710
624
|
...contents,
|
|
711
625
|
};
|
|
712
|
-
return
|
|
626
|
+
return response;
|
|
713
627
|
};
|
|
714
628
|
const de_ListGatewaysCommandError = async (output, context) => {
|
|
715
629
|
const parsedOutput = {
|
|
@@ -729,10 +643,9 @@ const de_ListGatewaysCommandError = async (output, context) => {
|
|
|
729
643
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
644
|
default:
|
|
731
645
|
const parsedBody = parsedOutput.body;
|
|
732
|
-
throwDefaultError({
|
|
646
|
+
return throwDefaultError({
|
|
733
647
|
output,
|
|
734
648
|
parsedBody,
|
|
735
|
-
exceptionCtor: __BaseException,
|
|
736
649
|
errorCode,
|
|
737
650
|
});
|
|
738
651
|
}
|
|
@@ -743,12 +656,12 @@ export const de_ListHypervisorsCommand = async (output, context) => {
|
|
|
743
656
|
}
|
|
744
657
|
const data = await parseBody(output.body, context);
|
|
745
658
|
let contents = {};
|
|
746
|
-
contents =
|
|
659
|
+
contents = _json(data);
|
|
747
660
|
const response = {
|
|
748
661
|
$metadata: deserializeMetadata(output),
|
|
749
662
|
...contents,
|
|
750
663
|
};
|
|
751
|
-
return
|
|
664
|
+
return response;
|
|
752
665
|
};
|
|
753
666
|
const de_ListHypervisorsCommandError = async (output, context) => {
|
|
754
667
|
const parsedOutput = {
|
|
@@ -768,10 +681,9 @@ const de_ListHypervisorsCommandError = async (output, context) => {
|
|
|
768
681
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
769
682
|
default:
|
|
770
683
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
throwDefaultError({
|
|
684
|
+
return throwDefaultError({
|
|
772
685
|
output,
|
|
773
686
|
parsedBody,
|
|
774
|
-
exceptionCtor: __BaseException,
|
|
775
687
|
errorCode,
|
|
776
688
|
});
|
|
777
689
|
}
|
|
@@ -782,12 +694,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
782
694
|
}
|
|
783
695
|
const data = await parseBody(output.body, context);
|
|
784
696
|
let contents = {};
|
|
785
|
-
contents =
|
|
697
|
+
contents = _json(data);
|
|
786
698
|
const response = {
|
|
787
699
|
$metadata: deserializeMetadata(output),
|
|
788
700
|
...contents,
|
|
789
701
|
};
|
|
790
|
-
return
|
|
702
|
+
return response;
|
|
791
703
|
};
|
|
792
704
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
793
705
|
const parsedOutput = {
|
|
@@ -810,10 +722,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
810
722
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
723
|
default:
|
|
812
724
|
const parsedBody = parsedOutput.body;
|
|
813
|
-
throwDefaultError({
|
|
725
|
+
return throwDefaultError({
|
|
814
726
|
output,
|
|
815
727
|
parsedBody,
|
|
816
|
-
exceptionCtor: __BaseException,
|
|
817
728
|
errorCode,
|
|
818
729
|
});
|
|
819
730
|
}
|
|
@@ -829,7 +740,7 @@ export const de_ListVirtualMachinesCommand = async (output, context) => {
|
|
|
829
740
|
$metadata: deserializeMetadata(output),
|
|
830
741
|
...contents,
|
|
831
742
|
};
|
|
832
|
-
return
|
|
743
|
+
return response;
|
|
833
744
|
};
|
|
834
745
|
const de_ListVirtualMachinesCommandError = async (output, context) => {
|
|
835
746
|
const parsedOutput = {
|
|
@@ -849,10 +760,9 @@ const de_ListVirtualMachinesCommandError = async (output, context) => {
|
|
|
849
760
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
850
761
|
default:
|
|
851
762
|
const parsedBody = parsedOutput.body;
|
|
852
|
-
throwDefaultError({
|
|
763
|
+
return throwDefaultError({
|
|
853
764
|
output,
|
|
854
765
|
parsedBody,
|
|
855
|
-
exceptionCtor: __BaseException,
|
|
856
766
|
errorCode,
|
|
857
767
|
});
|
|
858
768
|
}
|
|
@@ -863,12 +773,12 @@ export const de_PutBandwidthRateLimitScheduleCommand = async (output, context) =
|
|
|
863
773
|
}
|
|
864
774
|
const data = await parseBody(output.body, context);
|
|
865
775
|
let contents = {};
|
|
866
|
-
contents =
|
|
776
|
+
contents = _json(data);
|
|
867
777
|
const response = {
|
|
868
778
|
$metadata: deserializeMetadata(output),
|
|
869
779
|
...contents,
|
|
870
780
|
};
|
|
871
|
-
return
|
|
781
|
+
return response;
|
|
872
782
|
};
|
|
873
783
|
const de_PutBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
874
784
|
const parsedOutput = {
|
|
@@ -891,10 +801,9 @@ const de_PutBandwidthRateLimitScheduleCommandError = async (output, context) =>
|
|
|
891
801
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
802
|
default:
|
|
893
803
|
const parsedBody = parsedOutput.body;
|
|
894
|
-
throwDefaultError({
|
|
804
|
+
return throwDefaultError({
|
|
895
805
|
output,
|
|
896
806
|
parsedBody,
|
|
897
|
-
exceptionCtor: __BaseException,
|
|
898
807
|
errorCode,
|
|
899
808
|
});
|
|
900
809
|
}
|
|
@@ -905,12 +814,12 @@ export const de_PutHypervisorPropertyMappingsCommand = async (output, context) =
|
|
|
905
814
|
}
|
|
906
815
|
const data = await parseBody(output.body, context);
|
|
907
816
|
let contents = {};
|
|
908
|
-
contents =
|
|
817
|
+
contents = _json(data);
|
|
909
818
|
const response = {
|
|
910
819
|
$metadata: deserializeMetadata(output),
|
|
911
820
|
...contents,
|
|
912
821
|
};
|
|
913
|
-
return
|
|
822
|
+
return response;
|
|
914
823
|
};
|
|
915
824
|
const de_PutHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
916
825
|
const parsedOutput = {
|
|
@@ -939,10 +848,9 @@ const de_PutHypervisorPropertyMappingsCommandError = async (output, context) =>
|
|
|
939
848
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
849
|
default:
|
|
941
850
|
const parsedBody = parsedOutput.body;
|
|
942
|
-
throwDefaultError({
|
|
851
|
+
return throwDefaultError({
|
|
943
852
|
output,
|
|
944
853
|
parsedBody,
|
|
945
|
-
exceptionCtor: __BaseException,
|
|
946
854
|
errorCode,
|
|
947
855
|
});
|
|
948
856
|
}
|
|
@@ -953,12 +861,12 @@ export const de_PutMaintenanceStartTimeCommand = async (output, context) => {
|
|
|
953
861
|
}
|
|
954
862
|
const data = await parseBody(output.body, context);
|
|
955
863
|
let contents = {};
|
|
956
|
-
contents =
|
|
864
|
+
contents = _json(data);
|
|
957
865
|
const response = {
|
|
958
866
|
$metadata: deserializeMetadata(output),
|
|
959
867
|
...contents,
|
|
960
868
|
};
|
|
961
|
-
return
|
|
869
|
+
return response;
|
|
962
870
|
};
|
|
963
871
|
const de_PutMaintenanceStartTimeCommandError = async (output, context) => {
|
|
964
872
|
const parsedOutput = {
|
|
@@ -984,10 +892,9 @@ const de_PutMaintenanceStartTimeCommandError = async (output, context) => {
|
|
|
984
892
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
893
|
default:
|
|
986
894
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
throwDefaultError({
|
|
895
|
+
return throwDefaultError({
|
|
988
896
|
output,
|
|
989
897
|
parsedBody,
|
|
990
|
-
exceptionCtor: __BaseException,
|
|
991
898
|
errorCode,
|
|
992
899
|
});
|
|
993
900
|
}
|
|
@@ -998,12 +905,12 @@ export const de_StartVirtualMachinesMetadataSyncCommand = async (output, context
|
|
|
998
905
|
}
|
|
999
906
|
const data = await parseBody(output.body, context);
|
|
1000
907
|
let contents = {};
|
|
1001
|
-
contents =
|
|
908
|
+
contents = _json(data);
|
|
1002
909
|
const response = {
|
|
1003
910
|
$metadata: deserializeMetadata(output),
|
|
1004
911
|
...contents,
|
|
1005
912
|
};
|
|
1006
|
-
return
|
|
913
|
+
return response;
|
|
1007
914
|
};
|
|
1008
915
|
const de_StartVirtualMachinesMetadataSyncCommandError = async (output, context) => {
|
|
1009
916
|
const parsedOutput = {
|
|
@@ -1029,10 +936,9 @@ const de_StartVirtualMachinesMetadataSyncCommandError = async (output, context)
|
|
|
1029
936
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1030
937
|
default:
|
|
1031
938
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
throwDefaultError({
|
|
939
|
+
return throwDefaultError({
|
|
1033
940
|
output,
|
|
1034
941
|
parsedBody,
|
|
1035
|
-
exceptionCtor: __BaseException,
|
|
1036
942
|
errorCode,
|
|
1037
943
|
});
|
|
1038
944
|
}
|
|
@@ -1043,12 +949,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1043
949
|
}
|
|
1044
950
|
const data = await parseBody(output.body, context);
|
|
1045
951
|
let contents = {};
|
|
1046
|
-
contents =
|
|
952
|
+
contents = _json(data);
|
|
1047
953
|
const response = {
|
|
1048
954
|
$metadata: deserializeMetadata(output),
|
|
1049
955
|
...contents,
|
|
1050
956
|
};
|
|
1051
|
-
return
|
|
957
|
+
return response;
|
|
1052
958
|
};
|
|
1053
959
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1054
960
|
const parsedOutput = {
|
|
@@ -1071,10 +977,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1071
977
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1072
978
|
default:
|
|
1073
979
|
const parsedBody = parsedOutput.body;
|
|
1074
|
-
throwDefaultError({
|
|
980
|
+
return throwDefaultError({
|
|
1075
981
|
output,
|
|
1076
982
|
parsedBody,
|
|
1077
|
-
exceptionCtor: __BaseException,
|
|
1078
983
|
errorCode,
|
|
1079
984
|
});
|
|
1080
985
|
}
|
|
@@ -1085,12 +990,12 @@ export const de_TestHypervisorConfigurationCommand = async (output, context) =>
|
|
|
1085
990
|
}
|
|
1086
991
|
const data = await parseBody(output.body, context);
|
|
1087
992
|
let contents = {};
|
|
1088
|
-
contents =
|
|
993
|
+
contents = _json(data);
|
|
1089
994
|
const response = {
|
|
1090
995
|
$metadata: deserializeMetadata(output),
|
|
1091
996
|
...contents,
|
|
1092
997
|
};
|
|
1093
|
-
return
|
|
998
|
+
return response;
|
|
1094
999
|
};
|
|
1095
1000
|
const de_TestHypervisorConfigurationCommandError = async (output, context) => {
|
|
1096
1001
|
const parsedOutput = {
|
|
@@ -1116,10 +1021,9 @@ const de_TestHypervisorConfigurationCommandError = async (output, context) => {
|
|
|
1116
1021
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
1022
|
default:
|
|
1118
1023
|
const parsedBody = parsedOutput.body;
|
|
1119
|
-
throwDefaultError({
|
|
1024
|
+
return throwDefaultError({
|
|
1120
1025
|
output,
|
|
1121
1026
|
parsedBody,
|
|
1122
|
-
exceptionCtor: __BaseException,
|
|
1123
1027
|
errorCode,
|
|
1124
1028
|
});
|
|
1125
1029
|
}
|
|
@@ -1130,12 +1034,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1130
1034
|
}
|
|
1131
1035
|
const data = await parseBody(output.body, context);
|
|
1132
1036
|
let contents = {};
|
|
1133
|
-
contents =
|
|
1037
|
+
contents = _json(data);
|
|
1134
1038
|
const response = {
|
|
1135
1039
|
$metadata: deserializeMetadata(output),
|
|
1136
1040
|
...contents,
|
|
1137
1041
|
};
|
|
1138
|
-
return
|
|
1042
|
+
return response;
|
|
1139
1043
|
};
|
|
1140
1044
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1141
1045
|
const parsedOutput = {
|
|
@@ -1158,10 +1062,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1158
1062
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1159
1063
|
default:
|
|
1160
1064
|
const parsedBody = parsedOutput.body;
|
|
1161
|
-
throwDefaultError({
|
|
1065
|
+
return throwDefaultError({
|
|
1162
1066
|
output,
|
|
1163
1067
|
parsedBody,
|
|
1164
|
-
exceptionCtor: __BaseException,
|
|
1165
1068
|
errorCode,
|
|
1166
1069
|
});
|
|
1167
1070
|
}
|
|
@@ -1172,12 +1075,12 @@ export const de_UpdateGatewayInformationCommand = async (output, context) => {
|
|
|
1172
1075
|
}
|
|
1173
1076
|
const data = await parseBody(output.body, context);
|
|
1174
1077
|
let contents = {};
|
|
1175
|
-
contents =
|
|
1078
|
+
contents = _json(data);
|
|
1176
1079
|
const response = {
|
|
1177
1080
|
$metadata: deserializeMetadata(output),
|
|
1178
1081
|
...contents,
|
|
1179
1082
|
};
|
|
1180
|
-
return
|
|
1083
|
+
return response;
|
|
1181
1084
|
};
|
|
1182
1085
|
const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
1183
1086
|
const parsedOutput = {
|
|
@@ -1203,10 +1106,9 @@ const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
|
1203
1106
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1204
1107
|
default:
|
|
1205
1108
|
const parsedBody = parsedOutput.body;
|
|
1206
|
-
throwDefaultError({
|
|
1109
|
+
return throwDefaultError({
|
|
1207
1110
|
output,
|
|
1208
1111
|
parsedBody,
|
|
1209
|
-
exceptionCtor: __BaseException,
|
|
1210
1112
|
errorCode,
|
|
1211
1113
|
});
|
|
1212
1114
|
}
|
|
@@ -1217,12 +1119,12 @@ export const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
|
1217
1119
|
}
|
|
1218
1120
|
const data = await parseBody(output.body, context);
|
|
1219
1121
|
let contents = {};
|
|
1220
|
-
contents =
|
|
1122
|
+
contents = _json(data);
|
|
1221
1123
|
const response = {
|
|
1222
1124
|
$metadata: deserializeMetadata(output),
|
|
1223
1125
|
...contents,
|
|
1224
1126
|
};
|
|
1225
|
-
return
|
|
1127
|
+
return response;
|
|
1226
1128
|
};
|
|
1227
1129
|
const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
1228
1130
|
const parsedOutput = {
|
|
@@ -1245,10 +1147,9 @@ const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
|
1245
1147
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1246
1148
|
default:
|
|
1247
1149
|
const parsedBody = parsedOutput.body;
|
|
1248
|
-
throwDefaultError({
|
|
1150
|
+
return throwDefaultError({
|
|
1249
1151
|
output,
|
|
1250
1152
|
parsedBody,
|
|
1251
|
-
exceptionCtor: __BaseException,
|
|
1252
1153
|
errorCode,
|
|
1253
1154
|
});
|
|
1254
1155
|
}
|
|
@@ -1259,12 +1160,12 @@ export const de_UpdateHypervisorCommand = async (output, context) => {
|
|
|
1259
1160
|
}
|
|
1260
1161
|
const data = await parseBody(output.body, context);
|
|
1261
1162
|
let contents = {};
|
|
1262
|
-
contents =
|
|
1163
|
+
contents = _json(data);
|
|
1263
1164
|
const response = {
|
|
1264
1165
|
$metadata: deserializeMetadata(output),
|
|
1265
1166
|
...contents,
|
|
1266
1167
|
};
|
|
1267
|
-
return
|
|
1168
|
+
return response;
|
|
1268
1169
|
};
|
|
1269
1170
|
const de_UpdateHypervisorCommandError = async (output, context) => {
|
|
1270
1171
|
const parsedOutput = {
|
|
@@ -1293,17 +1194,16 @@ const de_UpdateHypervisorCommandError = async (output, context) => {
|
|
|
1293
1194
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1294
1195
|
default:
|
|
1295
1196
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
throwDefaultError({
|
|
1197
|
+
return throwDefaultError({
|
|
1297
1198
|
output,
|
|
1298
1199
|
parsedBody,
|
|
1299
|
-
exceptionCtor: __BaseException,
|
|
1300
1200
|
errorCode,
|
|
1301
1201
|
});
|
|
1302
1202
|
}
|
|
1303
1203
|
};
|
|
1304
1204
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1305
1205
|
const body = parsedOutput.body;
|
|
1306
|
-
const deserialized =
|
|
1206
|
+
const deserialized = _json(body);
|
|
1307
1207
|
const exception = new AccessDeniedException({
|
|
1308
1208
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
1209
|
...deserialized,
|
|
@@ -1312,7 +1212,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1312
1212
|
};
|
|
1313
1213
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1314
1214
|
const body = parsedOutput.body;
|
|
1315
|
-
const deserialized =
|
|
1215
|
+
const deserialized = _json(body);
|
|
1316
1216
|
const exception = new ConflictException({
|
|
1317
1217
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
1218
|
...deserialized,
|
|
@@ -1321,7 +1221,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1321
1221
|
};
|
|
1322
1222
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1323
1223
|
const body = parsedOutput.body;
|
|
1324
|
-
const deserialized =
|
|
1224
|
+
const deserialized = _json(body);
|
|
1325
1225
|
const exception = new InternalServerException({
|
|
1326
1226
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
1227
|
...deserialized,
|
|
@@ -1330,7 +1230,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1330
1230
|
};
|
|
1331
1231
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1332
1232
|
const body = parsedOutput.body;
|
|
1333
|
-
const deserialized =
|
|
1233
|
+
const deserialized = _json(body);
|
|
1334
1234
|
const exception = new ResourceNotFoundException({
|
|
1335
1235
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
1236
|
...deserialized,
|
|
@@ -1339,7 +1239,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1339
1239
|
};
|
|
1340
1240
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1341
1241
|
const body = parsedOutput.body;
|
|
1342
|
-
const deserialized =
|
|
1242
|
+
const deserialized = _json(body);
|
|
1343
1243
|
const exception = new ThrottlingException({
|
|
1344
1244
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1345
1245
|
...deserialized,
|
|
@@ -1348,607 +1248,111 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1348
1248
|
};
|
|
1349
1249
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1350
1250
|
const body = parsedOutput.body;
|
|
1351
|
-
const deserialized =
|
|
1251
|
+
const deserialized = _json(body);
|
|
1352
1252
|
const exception = new ValidationException({
|
|
1353
1253
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
1254
|
...deserialized,
|
|
1355
1255
|
});
|
|
1356
1256
|
return __decorateServiceException(exception, body);
|
|
1357
1257
|
};
|
|
1358
|
-
const se_AssociateGatewayToServerInput = (input, context) => {
|
|
1359
|
-
return {
|
|
1360
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1361
|
-
...(input.ServerArn != null && { ServerArn: input.ServerArn }),
|
|
1362
|
-
};
|
|
1363
|
-
};
|
|
1364
|
-
const se_BandwidthRateLimitInterval = (input, context) => {
|
|
1365
|
-
return {
|
|
1366
|
-
...(input.AverageUploadRateLimitInBitsPerSec != null && {
|
|
1367
|
-
AverageUploadRateLimitInBitsPerSec: input.AverageUploadRateLimitInBitsPerSec,
|
|
1368
|
-
}),
|
|
1369
|
-
...(input.DaysOfWeek != null && { DaysOfWeek: se_DaysOfWeek(input.DaysOfWeek, context) }),
|
|
1370
|
-
...(input.EndHourOfDay != null && { EndHourOfDay: input.EndHourOfDay }),
|
|
1371
|
-
...(input.EndMinuteOfHour != null && { EndMinuteOfHour: input.EndMinuteOfHour }),
|
|
1372
|
-
...(input.StartHourOfDay != null && { StartHourOfDay: input.StartHourOfDay }),
|
|
1373
|
-
...(input.StartMinuteOfHour != null && { StartMinuteOfHour: input.StartMinuteOfHour }),
|
|
1374
|
-
};
|
|
1375
|
-
};
|
|
1376
|
-
const se_BandwidthRateLimitIntervals = (input, context) => {
|
|
1377
|
-
return input
|
|
1378
|
-
.filter((e) => e != null)
|
|
1379
|
-
.map((entry) => {
|
|
1380
|
-
return se_BandwidthRateLimitInterval(entry, context);
|
|
1381
|
-
});
|
|
1382
|
-
};
|
|
1383
|
-
const se_CreateGatewayInput = (input, context) => {
|
|
1384
|
-
return {
|
|
1385
|
-
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
1386
|
-
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1387
|
-
...(input.GatewayType != null && { GatewayType: input.GatewayType }),
|
|
1388
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
const se_DaysOfWeek = (input, context) => {
|
|
1392
|
-
return input
|
|
1393
|
-
.filter((e) => e != null)
|
|
1394
|
-
.map((entry) => {
|
|
1395
|
-
return entry;
|
|
1396
|
-
});
|
|
1397
|
-
};
|
|
1398
|
-
const se_DeleteGatewayInput = (input, context) => {
|
|
1399
|
-
return {
|
|
1400
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1401
|
-
};
|
|
1402
|
-
};
|
|
1403
|
-
const se_DeleteHypervisorInput = (input, context) => {
|
|
1404
|
-
return {
|
|
1405
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
const se_DisassociateGatewayFromServerInput = (input, context) => {
|
|
1409
|
-
return {
|
|
1410
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1411
|
-
};
|
|
1412
|
-
};
|
|
1413
|
-
const se_GetBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1414
|
-
return {
|
|
1415
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1416
|
-
};
|
|
1417
|
-
};
|
|
1418
|
-
const se_GetGatewayInput = (input, context) => {
|
|
1419
|
-
return {
|
|
1420
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1421
|
-
};
|
|
1422
|
-
};
|
|
1423
|
-
const se_GetHypervisorInput = (input, context) => {
|
|
1424
|
-
return {
|
|
1425
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1426
|
-
};
|
|
1427
|
-
};
|
|
1428
|
-
const se_GetHypervisorPropertyMappingsInput = (input, context) => {
|
|
1429
|
-
return {
|
|
1430
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1431
|
-
};
|
|
1432
|
-
};
|
|
1433
|
-
const se_GetVirtualMachineInput = (input, context) => {
|
|
1434
|
-
return {
|
|
1435
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1436
|
-
};
|
|
1437
|
-
};
|
|
1438
|
-
const se_ImportHypervisorConfigurationInput = (input, context) => {
|
|
1439
|
-
return {
|
|
1440
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1441
|
-
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
1442
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1443
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1444
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1445
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1446
|
-
};
|
|
1447
|
-
};
|
|
1448
|
-
const se_ListGatewaysInput = (input, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1451
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const se_ListHypervisorsInput = (input, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1457
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
1461
|
-
return {
|
|
1462
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1463
|
-
};
|
|
1464
|
-
};
|
|
1465
|
-
const se_ListVirtualMachinesInput = (input, context) => {
|
|
1466
|
-
return {
|
|
1467
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1468
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1469
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1470
|
-
};
|
|
1471
|
-
};
|
|
1472
|
-
const se_PutBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1473
|
-
return {
|
|
1474
|
-
...(input.BandwidthRateLimitIntervals != null && {
|
|
1475
|
-
BandwidthRateLimitIntervals: se_BandwidthRateLimitIntervals(input.BandwidthRateLimitIntervals, context),
|
|
1476
|
-
}),
|
|
1477
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1478
|
-
};
|
|
1479
|
-
};
|
|
1480
|
-
const se_PutHypervisorPropertyMappingsInput = (input, context) => {
|
|
1481
|
-
return {
|
|
1482
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1483
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1484
|
-
...(input.VmwareToAwsTagMappings != null && {
|
|
1485
|
-
VmwareToAwsTagMappings: se_VmwareToAwsTagMappings(input.VmwareToAwsTagMappings, context),
|
|
1486
|
-
}),
|
|
1487
|
-
};
|
|
1488
|
-
};
|
|
1489
|
-
const se_PutMaintenanceStartTimeInput = (input, context) => {
|
|
1490
|
-
return {
|
|
1491
|
-
...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
|
|
1492
|
-
...(input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek }),
|
|
1493
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1494
|
-
...(input.HourOfDay != null && { HourOfDay: input.HourOfDay }),
|
|
1495
|
-
...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
|
|
1496
|
-
};
|
|
1497
|
-
};
|
|
1498
|
-
const se_StartVirtualMachinesMetadataSyncInput = (input, context) => {
|
|
1499
|
-
return {
|
|
1500
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1501
|
-
};
|
|
1502
|
-
};
|
|
1503
|
-
const se_Tag = (input, context) => {
|
|
1504
|
-
return {
|
|
1505
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1506
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1507
|
-
};
|
|
1508
|
-
};
|
|
1509
|
-
const se_TagKeys = (input, context) => {
|
|
1510
|
-
return input
|
|
1511
|
-
.filter((e) => e != null)
|
|
1512
|
-
.map((entry) => {
|
|
1513
|
-
return entry;
|
|
1514
|
-
});
|
|
1515
|
-
};
|
|
1516
|
-
const se_TagResourceInput = (input, context) => {
|
|
1517
|
-
return {
|
|
1518
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1519
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1520
|
-
};
|
|
1521
|
-
};
|
|
1522
|
-
const se_Tags = (input, context) => {
|
|
1523
|
-
return input
|
|
1524
|
-
.filter((e) => e != null)
|
|
1525
|
-
.map((entry) => {
|
|
1526
|
-
return se_Tag(entry, context);
|
|
1527
|
-
});
|
|
1528
|
-
};
|
|
1529
|
-
const se_TestHypervisorConfigurationInput = (input, context) => {
|
|
1530
|
-
return {
|
|
1531
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1532
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1533
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1534
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1535
|
-
};
|
|
1536
|
-
};
|
|
1537
|
-
const se_UntagResourceInput = (input, context) => {
|
|
1538
|
-
return {
|
|
1539
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1540
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
1541
|
-
};
|
|
1542
|
-
};
|
|
1543
|
-
const se_UpdateGatewayInformationInput = (input, context) => {
|
|
1544
|
-
return {
|
|
1545
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1546
|
-
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1547
|
-
};
|
|
1548
|
-
};
|
|
1549
|
-
const se_UpdateGatewaySoftwareNowInput = (input, context) => {
|
|
1550
|
-
return {
|
|
1551
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1552
|
-
};
|
|
1553
|
-
};
|
|
1554
|
-
const se_UpdateHypervisorInput = (input, context) => {
|
|
1555
|
-
return {
|
|
1556
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1557
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1558
|
-
...(input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn }),
|
|
1559
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1560
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1561
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1562
|
-
};
|
|
1563
|
-
};
|
|
1564
|
-
const se_VmwareToAwsTagMapping = (input, context) => {
|
|
1565
|
-
return {
|
|
1566
|
-
...(input.AwsTagKey != null && { AwsTagKey: input.AwsTagKey }),
|
|
1567
|
-
...(input.AwsTagValue != null && { AwsTagValue: input.AwsTagValue }),
|
|
1568
|
-
...(input.VmwareCategory != null && { VmwareCategory: input.VmwareCategory }),
|
|
1569
|
-
...(input.VmwareTagName != null && { VmwareTagName: input.VmwareTagName }),
|
|
1570
|
-
};
|
|
1571
|
-
};
|
|
1572
|
-
const se_VmwareToAwsTagMappings = (input, context) => {
|
|
1573
|
-
return input
|
|
1574
|
-
.filter((e) => e != null)
|
|
1575
|
-
.map((entry) => {
|
|
1576
|
-
return se_VmwareToAwsTagMapping(entry, context);
|
|
1577
|
-
});
|
|
1578
|
-
};
|
|
1579
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1580
|
-
return {
|
|
1581
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1582
|
-
Message: __expectString(output.Message),
|
|
1583
|
-
};
|
|
1584
|
-
};
|
|
1585
|
-
const de_AssociateGatewayToServerOutput = (output, context) => {
|
|
1586
|
-
return {
|
|
1587
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1588
|
-
};
|
|
1589
|
-
};
|
|
1590
|
-
const de_BandwidthRateLimitInterval = (output, context) => {
|
|
1591
|
-
return {
|
|
1592
|
-
AverageUploadRateLimitInBitsPerSec: __expectLong(output.AverageUploadRateLimitInBitsPerSec),
|
|
1593
|
-
DaysOfWeek: output.DaysOfWeek != null ? de_DaysOfWeek(output.DaysOfWeek, context) : undefined,
|
|
1594
|
-
EndHourOfDay: __expectInt32(output.EndHourOfDay),
|
|
1595
|
-
EndMinuteOfHour: __expectInt32(output.EndMinuteOfHour),
|
|
1596
|
-
StartHourOfDay: __expectInt32(output.StartHourOfDay),
|
|
1597
|
-
StartMinuteOfHour: __expectInt32(output.StartMinuteOfHour),
|
|
1598
|
-
};
|
|
1599
|
-
};
|
|
1600
|
-
const de_BandwidthRateLimitIntervals = (output, context) => {
|
|
1601
|
-
const retVal = (output || [])
|
|
1602
|
-
.filter((e) => e != null)
|
|
1603
|
-
.map((entry) => {
|
|
1604
|
-
if (entry === null) {
|
|
1605
|
-
return null;
|
|
1606
|
-
}
|
|
1607
|
-
return de_BandwidthRateLimitInterval(entry, context);
|
|
1608
|
-
});
|
|
1609
|
-
return retVal;
|
|
1610
|
-
};
|
|
1611
|
-
const de_ConflictException = (output, context) => {
|
|
1612
|
-
return {
|
|
1613
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1614
|
-
Message: __expectString(output.Message),
|
|
1615
|
-
};
|
|
1616
|
-
};
|
|
1617
|
-
const de_CreateGatewayOutput = (output, context) => {
|
|
1618
|
-
return {
|
|
1619
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1620
|
-
};
|
|
1621
|
-
};
|
|
1622
|
-
const de_DaysOfWeek = (output, context) => {
|
|
1623
|
-
const retVal = (output || [])
|
|
1624
|
-
.filter((e) => e != null)
|
|
1625
|
-
.map((entry) => {
|
|
1626
|
-
if (entry === null) {
|
|
1627
|
-
return null;
|
|
1628
|
-
}
|
|
1629
|
-
return __expectInt32(entry);
|
|
1630
|
-
});
|
|
1631
|
-
return retVal;
|
|
1632
|
-
};
|
|
1633
|
-
const de_DeleteGatewayOutput = (output, context) => {
|
|
1634
|
-
return {
|
|
1635
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1636
|
-
};
|
|
1637
|
-
};
|
|
1638
|
-
const de_DeleteHypervisorOutput = (output, context) => {
|
|
1639
|
-
return {
|
|
1640
|
-
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1641
|
-
};
|
|
1642
|
-
};
|
|
1643
|
-
const de_DisassociateGatewayFromServerOutput = (output, context) => {
|
|
1644
|
-
return {
|
|
1645
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
1258
|
const de_Gateway = (output, context) => {
|
|
1649
|
-
return {
|
|
1650
|
-
GatewayArn: __expectString
|
|
1651
|
-
GatewayDisplayName: __expectString
|
|
1652
|
-
GatewayType: __expectString
|
|
1653
|
-
HypervisorId: __expectString
|
|
1654
|
-
LastSeenTime:
|
|
1655
|
-
|
|
1656
|
-
: undefined,
|
|
1657
|
-
};
|
|
1259
|
+
return take(output, {
|
|
1260
|
+
GatewayArn: __expectString,
|
|
1261
|
+
GatewayDisplayName: __expectString,
|
|
1262
|
+
GatewayType: __expectString,
|
|
1263
|
+
HypervisorId: __expectString,
|
|
1264
|
+
LastSeenTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1265
|
+
});
|
|
1658
1266
|
};
|
|
1659
1267
|
const de_GatewayDetails = (output, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
GatewayArn: __expectString
|
|
1662
|
-
GatewayDisplayName: __expectString
|
|
1663
|
-
GatewayType: __expectString
|
|
1664
|
-
HypervisorId: __expectString
|
|
1665
|
-
LastSeenTime:
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NextUpdateAvailabilityTime)))
|
|
1671
|
-
: undefined,
|
|
1672
|
-
VpcEndpoint: __expectString(output.VpcEndpoint),
|
|
1673
|
-
};
|
|
1268
|
+
return take(output, {
|
|
1269
|
+
GatewayArn: __expectString,
|
|
1270
|
+
GatewayDisplayName: __expectString,
|
|
1271
|
+
GatewayType: __expectString,
|
|
1272
|
+
HypervisorId: __expectString,
|
|
1273
|
+
LastSeenTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1274
|
+
MaintenanceStartTime: _json,
|
|
1275
|
+
NextUpdateAvailabilityTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1276
|
+
VpcEndpoint: __expectString,
|
|
1277
|
+
});
|
|
1674
1278
|
};
|
|
1675
1279
|
const de_Gateways = (output, context) => {
|
|
1676
1280
|
const retVal = (output || [])
|
|
1677
1281
|
.filter((e) => e != null)
|
|
1678
1282
|
.map((entry) => {
|
|
1679
|
-
if (entry === null) {
|
|
1680
|
-
return null;
|
|
1681
|
-
}
|
|
1682
1283
|
return de_Gateway(entry, context);
|
|
1683
1284
|
});
|
|
1684
1285
|
return retVal;
|
|
1685
1286
|
};
|
|
1686
|
-
const de_GetBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1687
|
-
return {
|
|
1688
|
-
BandwidthRateLimitIntervals: output.BandwidthRateLimitIntervals != null
|
|
1689
|
-
? de_BandwidthRateLimitIntervals(output.BandwidthRateLimitIntervals, context)
|
|
1690
|
-
: undefined,
|
|
1691
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1692
|
-
};
|
|
1693
|
-
};
|
|
1694
1287
|
const de_GetGatewayOutput = (output, context) => {
|
|
1695
|
-
return {
|
|
1696
|
-
Gateway:
|
|
1697
|
-
};
|
|
1288
|
+
return take(output, {
|
|
1289
|
+
Gateway: (_) => de_GatewayDetails(_, context),
|
|
1290
|
+
});
|
|
1698
1291
|
};
|
|
1699
1292
|
const de_GetHypervisorOutput = (output, context) => {
|
|
1700
|
-
return {
|
|
1701
|
-
Hypervisor:
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
|
-
const de_GetHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1705
|
-
return {
|
|
1706
|
-
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1707
|
-
IamRoleArn: __expectString(output.IamRoleArn),
|
|
1708
|
-
VmwareToAwsTagMappings: output.VmwareToAwsTagMappings != null
|
|
1709
|
-
? de_VmwareToAwsTagMappings(output.VmwareToAwsTagMappings, context)
|
|
1710
|
-
: undefined,
|
|
1711
|
-
};
|
|
1293
|
+
return take(output, {
|
|
1294
|
+
Hypervisor: (_) => de_HypervisorDetails(_, context),
|
|
1295
|
+
});
|
|
1712
1296
|
};
|
|
1713
1297
|
const de_GetVirtualMachineOutput = (output, context) => {
|
|
1714
|
-
return {
|
|
1715
|
-
VirtualMachine:
|
|
1716
|
-
};
|
|
1717
|
-
};
|
|
1718
|
-
const de_Hypervisor = (output, context) => {
|
|
1719
|
-
return {
|
|
1720
|
-
Host: __expectString(output.Host),
|
|
1721
|
-
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1722
|
-
KmsKeyArn: __expectString(output.KmsKeyArn),
|
|
1723
|
-
Name: __expectString(output.Name),
|
|
1724
|
-
State: __expectString(output.State),
|
|
1725
|
-
};
|
|
1298
|
+
return take(output, {
|
|
1299
|
+
VirtualMachine: (_) => de_VirtualMachineDetails(_, context),
|
|
1300
|
+
});
|
|
1726
1301
|
};
|
|
1727
1302
|
const de_HypervisorDetails = (output, context) => {
|
|
1728
|
-
return {
|
|
1729
|
-
Host: __expectString
|
|
1730
|
-
HypervisorArn: __expectString
|
|
1731
|
-
KmsKeyArn: __expectString
|
|
1732
|
-
LastSuccessfulMetadataSyncTime:
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
Name: __expectString(output.Name),
|
|
1739
|
-
State: __expectString(output.State),
|
|
1740
|
-
};
|
|
1741
|
-
};
|
|
1742
|
-
const de_Hypervisors = (output, context) => {
|
|
1743
|
-
const retVal = (output || [])
|
|
1744
|
-
.filter((e) => e != null)
|
|
1745
|
-
.map((entry) => {
|
|
1746
|
-
if (entry === null) {
|
|
1747
|
-
return null;
|
|
1748
|
-
}
|
|
1749
|
-
return de_Hypervisor(entry, context);
|
|
1303
|
+
return take(output, {
|
|
1304
|
+
Host: __expectString,
|
|
1305
|
+
HypervisorArn: __expectString,
|
|
1306
|
+
KmsKeyArn: __expectString,
|
|
1307
|
+
LastSuccessfulMetadataSyncTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1308
|
+
LatestMetadataSyncStatus: __expectString,
|
|
1309
|
+
LatestMetadataSyncStatusMessage: __expectString,
|
|
1310
|
+
LogGroupArn: __expectString,
|
|
1311
|
+
Name: __expectString,
|
|
1312
|
+
State: __expectString,
|
|
1750
1313
|
});
|
|
1751
|
-
return retVal;
|
|
1752
|
-
};
|
|
1753
|
-
const de_ImportHypervisorConfigurationOutput = (output, context) => {
|
|
1754
|
-
return {
|
|
1755
|
-
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1756
|
-
};
|
|
1757
|
-
};
|
|
1758
|
-
const de_InternalServerException = (output, context) => {
|
|
1759
|
-
return {
|
|
1760
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1761
|
-
Message: __expectString(output.Message),
|
|
1762
|
-
};
|
|
1763
1314
|
};
|
|
1764
1315
|
const de_ListGatewaysOutput = (output, context) => {
|
|
1765
|
-
return {
|
|
1766
|
-
Gateways:
|
|
1767
|
-
NextToken: __expectString
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
const de_ListHypervisorsOutput = (output, context) => {
|
|
1771
|
-
return {
|
|
1772
|
-
Hypervisors: output.Hypervisors != null ? de_Hypervisors(output.Hypervisors, context) : undefined,
|
|
1773
|
-
NextToken: __expectString(output.NextToken),
|
|
1774
|
-
};
|
|
1775
|
-
};
|
|
1776
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
1777
|
-
return {
|
|
1778
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
1779
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
1780
|
-
};
|
|
1316
|
+
return take(output, {
|
|
1317
|
+
Gateways: (_) => de_Gateways(_, context),
|
|
1318
|
+
NextToken: __expectString,
|
|
1319
|
+
});
|
|
1781
1320
|
};
|
|
1782
1321
|
const de_ListVirtualMachinesOutput = (output, context) => {
|
|
1783
|
-
return {
|
|
1784
|
-
NextToken: __expectString
|
|
1785
|
-
VirtualMachines:
|
|
1786
|
-
};
|
|
1787
|
-
};
|
|
1788
|
-
const de_MaintenanceStartTime = (output, context) => {
|
|
1789
|
-
return {
|
|
1790
|
-
DayOfMonth: __expectInt32(output.DayOfMonth),
|
|
1791
|
-
DayOfWeek: __expectInt32(output.DayOfWeek),
|
|
1792
|
-
HourOfDay: __expectInt32(output.HourOfDay),
|
|
1793
|
-
MinuteOfHour: __expectInt32(output.MinuteOfHour),
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
const de_PutBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1799
|
-
};
|
|
1800
|
-
};
|
|
1801
|
-
const de_PutHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1802
|
-
return {
|
|
1803
|
-
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1804
|
-
};
|
|
1805
|
-
};
|
|
1806
|
-
const de_PutMaintenanceStartTimeOutput = (output, context) => {
|
|
1807
|
-
return {
|
|
1808
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1809
|
-
};
|
|
1810
|
-
};
|
|
1811
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1812
|
-
return {
|
|
1813
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1814
|
-
Message: __expectString(output.Message),
|
|
1815
|
-
};
|
|
1816
|
-
};
|
|
1817
|
-
const de_StartVirtualMachinesMetadataSyncOutput = (output, context) => {
|
|
1818
|
-
return {
|
|
1819
|
-
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1820
|
-
};
|
|
1821
|
-
};
|
|
1822
|
-
const de_Tag = (output, context) => {
|
|
1823
|
-
return {
|
|
1824
|
-
Key: __expectString(output.Key),
|
|
1825
|
-
Value: __expectString(output.Value),
|
|
1826
|
-
};
|
|
1827
|
-
};
|
|
1828
|
-
const de_TagResourceOutput = (output, context) => {
|
|
1829
|
-
return {
|
|
1830
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
|
-
const de_Tags = (output, context) => {
|
|
1834
|
-
const retVal = (output || [])
|
|
1835
|
-
.filter((e) => e != null)
|
|
1836
|
-
.map((entry) => {
|
|
1837
|
-
if (entry === null) {
|
|
1838
|
-
return null;
|
|
1839
|
-
}
|
|
1840
|
-
return de_Tag(entry, context);
|
|
1322
|
+
return take(output, {
|
|
1323
|
+
NextToken: __expectString,
|
|
1324
|
+
VirtualMachines: (_) => de_VirtualMachines(_, context),
|
|
1841
1325
|
});
|
|
1842
|
-
return retVal;
|
|
1843
|
-
};
|
|
1844
|
-
const de_TestHypervisorConfigurationOutput = (output, context) => {
|
|
1845
|
-
return {};
|
|
1846
|
-
};
|
|
1847
|
-
const de_ThrottlingException = (output, context) => {
|
|
1848
|
-
return {
|
|
1849
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1850
|
-
Message: __expectString(output.Message),
|
|
1851
|
-
};
|
|
1852
|
-
};
|
|
1853
|
-
const de_UntagResourceOutput = (output, context) => {
|
|
1854
|
-
return {
|
|
1855
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
const de_UpdateGatewayInformationOutput = (output, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1861
|
-
};
|
|
1862
|
-
};
|
|
1863
|
-
const de_UpdateGatewaySoftwareNowOutput = (output, context) => {
|
|
1864
|
-
return {
|
|
1865
|
-
GatewayArn: __expectString(output.GatewayArn),
|
|
1866
|
-
};
|
|
1867
|
-
};
|
|
1868
|
-
const de_UpdateHypervisorOutput = (output, context) => {
|
|
1869
|
-
return {
|
|
1870
|
-
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
const de_ValidationException = (output, context) => {
|
|
1874
|
-
return {
|
|
1875
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1876
|
-
Message: __expectString(output.Message),
|
|
1877
|
-
};
|
|
1878
1326
|
};
|
|
1879
1327
|
const de_VirtualMachine = (output, context) => {
|
|
1880
|
-
return {
|
|
1881
|
-
HostName: __expectString
|
|
1882
|
-
HypervisorId: __expectString
|
|
1883
|
-
LastBackupDate:
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
1889
|
-
};
|
|
1328
|
+
return take(output, {
|
|
1329
|
+
HostName: __expectString,
|
|
1330
|
+
HypervisorId: __expectString,
|
|
1331
|
+
LastBackupDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1332
|
+
Name: __expectString,
|
|
1333
|
+
Path: __expectString,
|
|
1334
|
+
ResourceArn: __expectString,
|
|
1335
|
+
});
|
|
1890
1336
|
};
|
|
1891
1337
|
const de_VirtualMachineDetails = (output, context) => {
|
|
1892
|
-
return {
|
|
1893
|
-
HostName: __expectString
|
|
1894
|
-
HypervisorId: __expectString
|
|
1895
|
-
LastBackupDate:
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
VmwareTags: output.VmwareTags != null ? de_VmwareTags(output.VmwareTags, context) : undefined,
|
|
1902
|
-
};
|
|
1338
|
+
return take(output, {
|
|
1339
|
+
HostName: __expectString,
|
|
1340
|
+
HypervisorId: __expectString,
|
|
1341
|
+
LastBackupDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1342
|
+
Name: __expectString,
|
|
1343
|
+
Path: __expectString,
|
|
1344
|
+
ResourceArn: __expectString,
|
|
1345
|
+
VmwareTags: _json,
|
|
1346
|
+
});
|
|
1903
1347
|
};
|
|
1904
1348
|
const de_VirtualMachines = (output, context) => {
|
|
1905
1349
|
const retVal = (output || [])
|
|
1906
1350
|
.filter((e) => e != null)
|
|
1907
1351
|
.map((entry) => {
|
|
1908
|
-
if (entry === null) {
|
|
1909
|
-
return null;
|
|
1910
|
-
}
|
|
1911
1352
|
return de_VirtualMachine(entry, context);
|
|
1912
1353
|
});
|
|
1913
1354
|
return retVal;
|
|
1914
1355
|
};
|
|
1915
|
-
const de_VmwareTag = (output, context) => {
|
|
1916
|
-
return {
|
|
1917
|
-
VmwareCategory: __expectString(output.VmwareCategory),
|
|
1918
|
-
VmwareTagDescription: __expectString(output.VmwareTagDescription),
|
|
1919
|
-
VmwareTagName: __expectString(output.VmwareTagName),
|
|
1920
|
-
};
|
|
1921
|
-
};
|
|
1922
|
-
const de_VmwareTags = (output, context) => {
|
|
1923
|
-
const retVal = (output || [])
|
|
1924
|
-
.filter((e) => e != null)
|
|
1925
|
-
.map((entry) => {
|
|
1926
|
-
if (entry === null) {
|
|
1927
|
-
return null;
|
|
1928
|
-
}
|
|
1929
|
-
return de_VmwareTag(entry, context);
|
|
1930
|
-
});
|
|
1931
|
-
return retVal;
|
|
1932
|
-
};
|
|
1933
|
-
const de_VmwareToAwsTagMapping = (output, context) => {
|
|
1934
|
-
return {
|
|
1935
|
-
AwsTagKey: __expectString(output.AwsTagKey),
|
|
1936
|
-
AwsTagValue: __expectString(output.AwsTagValue),
|
|
1937
|
-
VmwareCategory: __expectString(output.VmwareCategory),
|
|
1938
|
-
VmwareTagName: __expectString(output.VmwareTagName),
|
|
1939
|
-
};
|
|
1940
|
-
};
|
|
1941
|
-
const de_VmwareToAwsTagMappings = (output, context) => {
|
|
1942
|
-
const retVal = (output || [])
|
|
1943
|
-
.filter((e) => e != null)
|
|
1944
|
-
.map((entry) => {
|
|
1945
|
-
if (entry === null) {
|
|
1946
|
-
return null;
|
|
1947
|
-
}
|
|
1948
|
-
return de_VmwareToAwsTagMapping(entry, context);
|
|
1949
|
-
});
|
|
1950
|
-
return retVal;
|
|
1951
|
-
};
|
|
1952
1356
|
const deserializeMetadata = (output) => ({
|
|
1953
1357
|
httpStatusCode: output.statusCode,
|
|
1954
1358
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1962,6 +1366,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1962
1366
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1963
1367
|
};
|
|
1964
1368
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1369
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1965
1370
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1966
1371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1967
1372
|
const contents = {
|
|
@@ -1980,6 +1385,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1980
1385
|
}
|
|
1981
1386
|
return new __HttpRequest(contents);
|
|
1982
1387
|
};
|
|
1388
|
+
function sharedHeaders(operation) {
|
|
1389
|
+
return {
|
|
1390
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1391
|
+
"x-amz-target": `BackupOnPremises_v20210101.${operation}`,
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
1983
1394
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1984
1395
|
if (encoded.length) {
|
|
1985
1396
|
return JSON.parse(encoded);
|