@aws-sdk/client-backup-gateway 3.306.0 → 3.310.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/AssociateGatewayToServerCommand.js +2 -2
- package/dist-cjs/commands/CreateGatewayCommand.js +2 -2
- package/dist-cjs/commands/DeleteGatewayCommand.js +2 -2
- package/dist-cjs/commands/DeleteHypervisorCommand.js +2 -2
- package/dist-cjs/commands/DisassociateGatewayFromServerCommand.js +2 -2
- package/dist-cjs/commands/GetBandwidthRateLimitScheduleCommand.js +2 -2
- package/dist-cjs/commands/GetGatewayCommand.js +2 -2
- package/dist-cjs/commands/GetHypervisorCommand.js +2 -2
- package/dist-cjs/commands/GetHypervisorPropertyMappingsCommand.js +2 -2
- package/dist-cjs/commands/GetVirtualMachineCommand.js +2 -2
- package/dist-cjs/commands/ImportHypervisorConfigurationCommand.js +2 -2
- package/dist-cjs/commands/ListGatewaysCommand.js +2 -2
- package/dist-cjs/commands/ListHypervisorsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListVirtualMachinesCommand.js +2 -2
- package/dist-cjs/commands/PutBandwidthRateLimitScheduleCommand.js +2 -2
- package/dist-cjs/commands/PutHypervisorPropertyMappingsCommand.js +2 -2
- package/dist-cjs/commands/PutMaintenanceStartTimeCommand.js +2 -2
- package/dist-cjs/commands/StartVirtualMachinesMetadataSyncCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TestHypervisorConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateGatewayInformationCommand.js +2 -2
- package/dist-cjs/commands/UpdateGatewaySoftwareNowCommand.js +2 -2
- package/dist-cjs/commands/UpdateHypervisorCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +433 -439
- package/dist-es/commands/AssociateGatewayToServerCommand.js +3 -3
- package/dist-es/commands/CreateGatewayCommand.js +3 -3
- package/dist-es/commands/DeleteGatewayCommand.js +3 -3
- package/dist-es/commands/DeleteHypervisorCommand.js +3 -3
- package/dist-es/commands/DisassociateGatewayFromServerCommand.js +3 -3
- package/dist-es/commands/GetBandwidthRateLimitScheduleCommand.js +3 -3
- package/dist-es/commands/GetGatewayCommand.js +3 -3
- package/dist-es/commands/GetHypervisorCommand.js +3 -3
- package/dist-es/commands/GetHypervisorPropertyMappingsCommand.js +3 -3
- package/dist-es/commands/GetVirtualMachineCommand.js +3 -3
- package/dist-es/commands/ImportHypervisorConfigurationCommand.js +3 -3
- package/dist-es/commands/ListGatewaysCommand.js +3 -3
- package/dist-es/commands/ListHypervisorsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListVirtualMachinesCommand.js +3 -3
- package/dist-es/commands/PutBandwidthRateLimitScheduleCommand.js +3 -3
- package/dist-es/commands/PutHypervisorPropertyMappingsCommand.js +3 -3
- package/dist-es/commands/PutMaintenanceStartTimeCommand.js +3 -3
- package/dist-es/commands/StartVirtualMachinesMetadataSyncCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/TestHypervisorConfigurationCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateGatewayInformationCommand.js +3 -3
- package/dist-es/commands/UpdateGatewaySoftwareNowCommand.js +3 -3
- package/dist-es/commands/UpdateHypervisorCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +382 -388
- package/dist-types/protocols/Aws_json1_0.d.ts +200 -50
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +50 -50
- package/package.json +35 -35
|
@@ -2,245 +2,245 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } 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
|
-
export const
|
|
5
|
+
export const se_AssociateGatewayToServerCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.0",
|
|
8
8
|
"x-amz-target": "BackupOnPremises_v20210101.AssociateGatewayToServer",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_AssociateGatewayToServerInput(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_CreateGatewayCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.0",
|
|
17
17
|
"x-amz-target": "BackupOnPremises_v20210101.CreateGateway",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_CreateGatewayInput(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_DeleteGatewayCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.0",
|
|
26
26
|
"x-amz-target": "BackupOnPremises_v20210101.DeleteGateway",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_DeleteGatewayInput(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_DeleteHypervisorCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.0",
|
|
35
35
|
"x-amz-target": "BackupOnPremises_v20210101.DeleteHypervisor",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_DeleteHypervisorInput(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_DisassociateGatewayFromServerCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.0",
|
|
44
44
|
"x-amz-target": "BackupOnPremises_v20210101.DisassociateGatewayFromServer",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_DisassociateGatewayFromServerInput(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_GetBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.0",
|
|
53
53
|
"x-amz-target": "BackupOnPremises_v20210101.GetBandwidthRateLimitSchedule",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_GetBandwidthRateLimitScheduleInput(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_GetGatewayCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.0",
|
|
62
62
|
"x-amz-target": "BackupOnPremises_v20210101.GetGateway",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_GetGatewayInput(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_GetHypervisorCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.0",
|
|
71
71
|
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisor",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_GetHypervisorInput(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_GetHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.0",
|
|
80
80
|
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisorPropertyMappings",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_GetHypervisorPropertyMappingsInput(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_GetVirtualMachineCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.0",
|
|
89
89
|
"x-amz-target": "BackupOnPremises_v20210101.GetVirtualMachine",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_GetVirtualMachineInput(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_ImportHypervisorConfigurationCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.0",
|
|
98
98
|
"x-amz-target": "BackupOnPremises_v20210101.ImportHypervisorConfiguration",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_ImportHypervisorConfigurationInput(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_ListGatewaysCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.0",
|
|
107
107
|
"x-amz-target": "BackupOnPremises_v20210101.ListGateways",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_ListGatewaysInput(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_ListHypervisorsCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.0",
|
|
116
116
|
"x-amz-target": "BackupOnPremises_v20210101.ListHypervisors",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_ListHypervisorsInput(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/x-amz-json-1.0",
|
|
125
125
|
"x-amz-target": "BackupOnPremises_v20210101.ListTagsForResource",
|
|
126
126
|
};
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(se_ListTagsForResourceInput(input, context));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const se_ListVirtualMachinesCommand = async (input, context) => {
|
|
132
132
|
const headers = {
|
|
133
133
|
"content-type": "application/x-amz-json-1.0",
|
|
134
134
|
"x-amz-target": "BackupOnPremises_v20210101.ListVirtualMachines",
|
|
135
135
|
};
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify(se_ListVirtualMachinesInput(input, context));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_PutBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/x-amz-json-1.0",
|
|
143
143
|
"x-amz-target": "BackupOnPremises_v20210101.PutBandwidthRateLimitSchedule",
|
|
144
144
|
};
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(se_PutBandwidthRateLimitScheduleInput(input, context));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const se_PutHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.0",
|
|
152
152
|
"x-amz-target": "BackupOnPremises_v20210101.PutHypervisorPropertyMappings",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_PutHypervisorPropertyMappingsInput(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
export const
|
|
158
|
+
export const se_PutMaintenanceStartTimeCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.0",
|
|
161
161
|
"x-amz-target": "BackupOnPremises_v20210101.PutMaintenanceStartTime",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_PutMaintenanceStartTimeInput(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
export const
|
|
167
|
+
export const se_StartVirtualMachinesMetadataSyncCommand = async (input, context) => {
|
|
168
168
|
const headers = {
|
|
169
169
|
"content-type": "application/x-amz-json-1.0",
|
|
170
170
|
"x-amz-target": "BackupOnPremises_v20210101.StartVirtualMachinesMetadataSync",
|
|
171
171
|
};
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify(se_StartVirtualMachinesMetadataSyncInput(input, context));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
177
177
|
const headers = {
|
|
178
178
|
"content-type": "application/x-amz-json-1.0",
|
|
179
179
|
"x-amz-target": "BackupOnPremises_v20210101.TagResource",
|
|
180
180
|
};
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(se_TagResourceInput(input, context));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const se_TestHypervisorConfigurationCommand = async (input, context) => {
|
|
186
186
|
const headers = {
|
|
187
187
|
"content-type": "application/x-amz-json-1.0",
|
|
188
188
|
"x-amz-target": "BackupOnPremises_v20210101.TestHypervisorConfiguration",
|
|
189
189
|
};
|
|
190
190
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
191
|
+
body = JSON.stringify(se_TestHypervisorConfigurationInput(input, context));
|
|
192
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
193
|
};
|
|
194
|
-
export const
|
|
194
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
195
195
|
const headers = {
|
|
196
196
|
"content-type": "application/x-amz-json-1.0",
|
|
197
197
|
"x-amz-target": "BackupOnPremises_v20210101.UntagResource",
|
|
198
198
|
};
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(se_UntagResourceInput(input, context));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
|
-
export const
|
|
203
|
+
export const se_UpdateGatewayInformationCommand = async (input, context) => {
|
|
204
204
|
const headers = {
|
|
205
205
|
"content-type": "application/x-amz-json-1.0",
|
|
206
206
|
"x-amz-target": "BackupOnPremises_v20210101.UpdateGatewayInformation",
|
|
207
207
|
};
|
|
208
208
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
209
|
+
body = JSON.stringify(se_UpdateGatewayInformationInput(input, context));
|
|
210
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
211
|
};
|
|
212
|
-
export const
|
|
212
|
+
export const se_UpdateGatewaySoftwareNowCommand = async (input, context) => {
|
|
213
213
|
const headers = {
|
|
214
214
|
"content-type": "application/x-amz-json-1.0",
|
|
215
215
|
"x-amz-target": "BackupOnPremises_v20210101.UpdateGatewaySoftwareNow",
|
|
216
216
|
};
|
|
217
217
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(se_UpdateGatewaySoftwareNowInput(input, context));
|
|
219
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
220
|
};
|
|
221
|
-
export const
|
|
221
|
+
export const se_UpdateHypervisorCommand = async (input, context) => {
|
|
222
222
|
const headers = {
|
|
223
223
|
"content-type": "application/x-amz-json-1.0",
|
|
224
224
|
"x-amz-target": "BackupOnPremises_v20210101.UpdateHypervisor",
|
|
225
225
|
};
|
|
226
226
|
let body;
|
|
227
|
-
body = JSON.stringify(
|
|
227
|
+
body = JSON.stringify(se_UpdateHypervisorInput(input, context));
|
|
228
228
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
229
|
};
|
|
230
|
-
export const
|
|
230
|
+
export const de_AssociateGatewayToServerCommand = async (output, context) => {
|
|
231
231
|
if (output.statusCode >= 300) {
|
|
232
|
-
return
|
|
232
|
+
return de_AssociateGatewayToServerCommandError(output, context);
|
|
233
233
|
}
|
|
234
234
|
const data = await parseBody(output.body, context);
|
|
235
235
|
let contents = {};
|
|
236
|
-
contents =
|
|
236
|
+
contents = de_AssociateGatewayToServerOutput(data, context);
|
|
237
237
|
const response = {
|
|
238
238
|
$metadata: deserializeMetadata(output),
|
|
239
239
|
...contents,
|
|
240
240
|
};
|
|
241
241
|
return Promise.resolve(response);
|
|
242
242
|
};
|
|
243
|
-
const
|
|
243
|
+
const de_AssociateGatewayToServerCommandError = async (output, context) => {
|
|
244
244
|
const parsedOutput = {
|
|
245
245
|
...output,
|
|
246
246
|
body: await parseErrorBody(output.body, context),
|
|
@@ -249,16 +249,16 @@ const deserializeAws_json1_0AssociateGatewayToServerCommandError = async (output
|
|
|
249
249
|
switch (errorCode) {
|
|
250
250
|
case "ConflictException":
|
|
251
251
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
252
|
-
throw await
|
|
252
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
253
253
|
case "InternalServerException":
|
|
254
254
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
255
|
-
throw await
|
|
255
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
256
256
|
case "ThrottlingException":
|
|
257
257
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
259
259
|
case "ValidationException":
|
|
260
260
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
262
262
|
default:
|
|
263
263
|
const parsedBody = parsedOutput.body;
|
|
264
264
|
throwDefaultError({
|
|
@@ -269,20 +269,20 @@ const deserializeAws_json1_0AssociateGatewayToServerCommandError = async (output
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
-
export const
|
|
272
|
+
export const de_CreateGatewayCommand = async (output, context) => {
|
|
273
273
|
if (output.statusCode >= 300) {
|
|
274
|
-
return
|
|
274
|
+
return de_CreateGatewayCommandError(output, context);
|
|
275
275
|
}
|
|
276
276
|
const data = await parseBody(output.body, context);
|
|
277
277
|
let contents = {};
|
|
278
|
-
contents =
|
|
278
|
+
contents = de_CreateGatewayOutput(data, context);
|
|
279
279
|
const response = {
|
|
280
280
|
$metadata: deserializeMetadata(output),
|
|
281
281
|
...contents,
|
|
282
282
|
};
|
|
283
283
|
return Promise.resolve(response);
|
|
284
284
|
};
|
|
285
|
-
const
|
|
285
|
+
const de_CreateGatewayCommandError = async (output, context) => {
|
|
286
286
|
const parsedOutput = {
|
|
287
287
|
...output,
|
|
288
288
|
body: await parseErrorBody(output.body, context),
|
|
@@ -291,13 +291,13 @@ const deserializeAws_json1_0CreateGatewayCommandError = async (output, context)
|
|
|
291
291
|
switch (errorCode) {
|
|
292
292
|
case "InternalServerException":
|
|
293
293
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
294
|
-
throw await
|
|
294
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
295
295
|
case "ThrottlingException":
|
|
296
296
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
297
|
-
throw await
|
|
297
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
298
298
|
case "ValidationException":
|
|
299
299
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
300
|
-
throw await
|
|
300
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
301
301
|
default:
|
|
302
302
|
const parsedBody = parsedOutput.body;
|
|
303
303
|
throwDefaultError({
|
|
@@ -308,20 +308,20 @@ const deserializeAws_json1_0CreateGatewayCommandError = async (output, context)
|
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
|
-
export const
|
|
311
|
+
export const de_DeleteGatewayCommand = async (output, context) => {
|
|
312
312
|
if (output.statusCode >= 300) {
|
|
313
|
-
return
|
|
313
|
+
return de_DeleteGatewayCommandError(output, context);
|
|
314
314
|
}
|
|
315
315
|
const data = await parseBody(output.body, context);
|
|
316
316
|
let contents = {};
|
|
317
|
-
contents =
|
|
317
|
+
contents = de_DeleteGatewayOutput(data, context);
|
|
318
318
|
const response = {
|
|
319
319
|
$metadata: deserializeMetadata(output),
|
|
320
320
|
...contents,
|
|
321
321
|
};
|
|
322
322
|
return Promise.resolve(response);
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
325
325
|
const parsedOutput = {
|
|
326
326
|
...output,
|
|
327
327
|
body: await parseErrorBody(output.body, context),
|
|
@@ -330,16 +330,16 @@ const deserializeAws_json1_0DeleteGatewayCommandError = async (output, context)
|
|
|
330
330
|
switch (errorCode) {
|
|
331
331
|
case "InternalServerException":
|
|
332
332
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
333
|
-
throw await
|
|
333
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
334
334
|
case "ResourceNotFoundException":
|
|
335
335
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
336
|
-
throw await
|
|
336
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
337
337
|
case "ThrottlingException":
|
|
338
338
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
339
|
-
throw await
|
|
339
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
340
340
|
case "ValidationException":
|
|
341
341
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
342
|
-
throw await
|
|
342
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
343
343
|
default:
|
|
344
344
|
const parsedBody = parsedOutput.body;
|
|
345
345
|
throwDefaultError({
|
|
@@ -350,20 +350,20 @@ const deserializeAws_json1_0DeleteGatewayCommandError = async (output, context)
|
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
export const
|
|
353
|
+
export const de_DeleteHypervisorCommand = async (output, context) => {
|
|
354
354
|
if (output.statusCode >= 300) {
|
|
355
|
-
return
|
|
355
|
+
return de_DeleteHypervisorCommandError(output, context);
|
|
356
356
|
}
|
|
357
357
|
const data = await parseBody(output.body, context);
|
|
358
358
|
let contents = {};
|
|
359
|
-
contents =
|
|
359
|
+
contents = de_DeleteHypervisorOutput(data, context);
|
|
360
360
|
const response = {
|
|
361
361
|
$metadata: deserializeMetadata(output),
|
|
362
362
|
...contents,
|
|
363
363
|
};
|
|
364
364
|
return Promise.resolve(response);
|
|
365
365
|
};
|
|
366
|
-
const
|
|
366
|
+
const de_DeleteHypervisorCommandError = async (output, context) => {
|
|
367
367
|
const parsedOutput = {
|
|
368
368
|
...output,
|
|
369
369
|
body: await parseErrorBody(output.body, context),
|
|
@@ -372,22 +372,22 @@ const deserializeAws_json1_0DeleteHypervisorCommandError = async (output, contex
|
|
|
372
372
|
switch (errorCode) {
|
|
373
373
|
case "AccessDeniedException":
|
|
374
374
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
375
|
-
throw await
|
|
375
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
376
376
|
case "ConflictException":
|
|
377
377
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
378
|
-
throw await
|
|
378
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
379
379
|
case "InternalServerException":
|
|
380
380
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
381
|
-
throw await
|
|
381
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
382
382
|
case "ResourceNotFoundException":
|
|
383
383
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
384
|
-
throw await
|
|
384
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
385
385
|
case "ThrottlingException":
|
|
386
386
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
387
|
-
throw await
|
|
387
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
388
388
|
case "ValidationException":
|
|
389
389
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
390
|
-
throw await
|
|
390
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
391
391
|
default:
|
|
392
392
|
const parsedBody = parsedOutput.body;
|
|
393
393
|
throwDefaultError({
|
|
@@ -398,20 +398,20 @@ const deserializeAws_json1_0DeleteHypervisorCommandError = async (output, contex
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
|
-
export const
|
|
401
|
+
export const de_DisassociateGatewayFromServerCommand = async (output, context) => {
|
|
402
402
|
if (output.statusCode >= 300) {
|
|
403
|
-
return
|
|
403
|
+
return de_DisassociateGatewayFromServerCommandError(output, context);
|
|
404
404
|
}
|
|
405
405
|
const data = await parseBody(output.body, context);
|
|
406
406
|
let contents = {};
|
|
407
|
-
contents =
|
|
407
|
+
contents = de_DisassociateGatewayFromServerOutput(data, context);
|
|
408
408
|
const response = {
|
|
409
409
|
$metadata: deserializeMetadata(output),
|
|
410
410
|
...contents,
|
|
411
411
|
};
|
|
412
412
|
return Promise.resolve(response);
|
|
413
413
|
};
|
|
414
|
-
const
|
|
414
|
+
const de_DisassociateGatewayFromServerCommandError = async (output, context) => {
|
|
415
415
|
const parsedOutput = {
|
|
416
416
|
...output,
|
|
417
417
|
body: await parseErrorBody(output.body, context),
|
|
@@ -420,19 +420,19 @@ const deserializeAws_json1_0DisassociateGatewayFromServerCommandError = async (o
|
|
|
420
420
|
switch (errorCode) {
|
|
421
421
|
case "ConflictException":
|
|
422
422
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
423
|
-
throw await
|
|
423
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
424
424
|
case "InternalServerException":
|
|
425
425
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
426
|
-
throw await
|
|
426
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
427
427
|
case "ResourceNotFoundException":
|
|
428
428
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
429
|
-
throw await
|
|
429
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
430
430
|
case "ThrottlingException":
|
|
431
431
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
432
|
-
throw await
|
|
432
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
433
433
|
case "ValidationException":
|
|
434
434
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
435
|
-
throw await
|
|
435
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
436
436
|
default:
|
|
437
437
|
const parsedBody = parsedOutput.body;
|
|
438
438
|
throwDefaultError({
|
|
@@ -443,20 +443,20 @@ const deserializeAws_json1_0DisassociateGatewayFromServerCommandError = async (o
|
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
};
|
|
446
|
-
export const
|
|
446
|
+
export const de_GetBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
447
447
|
if (output.statusCode >= 300) {
|
|
448
|
-
return
|
|
448
|
+
return de_GetBandwidthRateLimitScheduleCommandError(output, context);
|
|
449
449
|
}
|
|
450
450
|
const data = await parseBody(output.body, context);
|
|
451
451
|
let contents = {};
|
|
452
|
-
contents =
|
|
452
|
+
contents = de_GetBandwidthRateLimitScheduleOutput(data, context);
|
|
453
453
|
const response = {
|
|
454
454
|
$metadata: deserializeMetadata(output),
|
|
455
455
|
...contents,
|
|
456
456
|
};
|
|
457
457
|
return Promise.resolve(response);
|
|
458
458
|
};
|
|
459
|
-
const
|
|
459
|
+
const de_GetBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
460
460
|
const parsedOutput = {
|
|
461
461
|
...output,
|
|
462
462
|
body: await parseErrorBody(output.body, context),
|
|
@@ -465,16 +465,16 @@ const deserializeAws_json1_0GetBandwidthRateLimitScheduleCommandError = async (o
|
|
|
465
465
|
switch (errorCode) {
|
|
466
466
|
case "InternalServerException":
|
|
467
467
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
468
|
-
throw await
|
|
468
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
469
469
|
case "ResourceNotFoundException":
|
|
470
470
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
471
|
-
throw await
|
|
471
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
472
472
|
case "ThrottlingException":
|
|
473
473
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
474
|
-
throw await
|
|
474
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
475
475
|
case "ValidationException":
|
|
476
476
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
477
|
-
throw await
|
|
477
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
478
478
|
default:
|
|
479
479
|
const parsedBody = parsedOutput.body;
|
|
480
480
|
throwDefaultError({
|
|
@@ -485,20 +485,20 @@ const deserializeAws_json1_0GetBandwidthRateLimitScheduleCommandError = async (o
|
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
|
-
export const
|
|
488
|
+
export const de_GetGatewayCommand = async (output, context) => {
|
|
489
489
|
if (output.statusCode >= 300) {
|
|
490
|
-
return
|
|
490
|
+
return de_GetGatewayCommandError(output, context);
|
|
491
491
|
}
|
|
492
492
|
const data = await parseBody(output.body, context);
|
|
493
493
|
let contents = {};
|
|
494
|
-
contents =
|
|
494
|
+
contents = de_GetGatewayOutput(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
|
-
const
|
|
501
|
+
const de_GetGatewayCommandError = async (output, context) => {
|
|
502
502
|
const parsedOutput = {
|
|
503
503
|
...output,
|
|
504
504
|
body: await parseErrorBody(output.body, context),
|
|
@@ -507,16 +507,16 @@ const deserializeAws_json1_0GetGatewayCommandError = async (output, context) =>
|
|
|
507
507
|
switch (errorCode) {
|
|
508
508
|
case "InternalServerException":
|
|
509
509
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
510
|
-
throw await
|
|
510
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
511
511
|
case "ResourceNotFoundException":
|
|
512
512
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
513
|
-
throw await
|
|
513
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
514
514
|
case "ThrottlingException":
|
|
515
515
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
516
|
-
throw await
|
|
516
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
517
517
|
case "ValidationException":
|
|
518
518
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
520
520
|
default:
|
|
521
521
|
const parsedBody = parsedOutput.body;
|
|
522
522
|
throwDefaultError({
|
|
@@ -527,20 +527,20 @@ const deserializeAws_json1_0GetGatewayCommandError = async (output, context) =>
|
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
|
-
export const
|
|
530
|
+
export const de_GetHypervisorCommand = async (output, context) => {
|
|
531
531
|
if (output.statusCode >= 300) {
|
|
532
|
-
return
|
|
532
|
+
return de_GetHypervisorCommandError(output, context);
|
|
533
533
|
}
|
|
534
534
|
const data = await parseBody(output.body, context);
|
|
535
535
|
let contents = {};
|
|
536
|
-
contents =
|
|
536
|
+
contents = de_GetHypervisorOutput(data, context);
|
|
537
537
|
const response = {
|
|
538
538
|
$metadata: deserializeMetadata(output),
|
|
539
539
|
...contents,
|
|
540
540
|
};
|
|
541
541
|
return Promise.resolve(response);
|
|
542
542
|
};
|
|
543
|
-
const
|
|
543
|
+
const de_GetHypervisorCommandError = async (output, context) => {
|
|
544
544
|
const parsedOutput = {
|
|
545
545
|
...output,
|
|
546
546
|
body: await parseErrorBody(output.body, context),
|
|
@@ -549,16 +549,16 @@ const deserializeAws_json1_0GetHypervisorCommandError = async (output, context)
|
|
|
549
549
|
switch (errorCode) {
|
|
550
550
|
case "InternalServerException":
|
|
551
551
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
552
|
-
throw await
|
|
552
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
553
553
|
case "ResourceNotFoundException":
|
|
554
554
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
555
|
-
throw await
|
|
555
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
556
556
|
case "ThrottlingException":
|
|
557
557
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
559
559
|
case "ValidationException":
|
|
560
560
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
562
562
|
default:
|
|
563
563
|
const parsedBody = parsedOutput.body;
|
|
564
564
|
throwDefaultError({
|
|
@@ -569,20 +569,20 @@ const deserializeAws_json1_0GetHypervisorCommandError = async (output, context)
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
|
-
export const
|
|
572
|
+
export const de_GetHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
573
573
|
if (output.statusCode >= 300) {
|
|
574
|
-
return
|
|
574
|
+
return de_GetHypervisorPropertyMappingsCommandError(output, context);
|
|
575
575
|
}
|
|
576
576
|
const data = await parseBody(output.body, context);
|
|
577
577
|
let contents = {};
|
|
578
|
-
contents =
|
|
578
|
+
contents = de_GetHypervisorPropertyMappingsOutput(data, context);
|
|
579
579
|
const response = {
|
|
580
580
|
$metadata: deserializeMetadata(output),
|
|
581
581
|
...contents,
|
|
582
582
|
};
|
|
583
583
|
return Promise.resolve(response);
|
|
584
584
|
};
|
|
585
|
-
const
|
|
585
|
+
const de_GetHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
586
586
|
const parsedOutput = {
|
|
587
587
|
...output,
|
|
588
588
|
body: await parseErrorBody(output.body, context),
|
|
@@ -591,16 +591,16 @@ const deserializeAws_json1_0GetHypervisorPropertyMappingsCommandError = async (o
|
|
|
591
591
|
switch (errorCode) {
|
|
592
592
|
case "InternalServerException":
|
|
593
593
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
595
595
|
case "ResourceNotFoundException":
|
|
596
596
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
598
598
|
case "ThrottlingException":
|
|
599
599
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
600
|
-
throw await
|
|
600
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
601
601
|
case "ValidationException":
|
|
602
602
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
603
|
-
throw await
|
|
603
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
604
604
|
default:
|
|
605
605
|
const parsedBody = parsedOutput.body;
|
|
606
606
|
throwDefaultError({
|
|
@@ -611,20 +611,20 @@ const deserializeAws_json1_0GetHypervisorPropertyMappingsCommandError = async (o
|
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
|
-
export const
|
|
614
|
+
export const de_GetVirtualMachineCommand = async (output, context) => {
|
|
615
615
|
if (output.statusCode >= 300) {
|
|
616
|
-
return
|
|
616
|
+
return de_GetVirtualMachineCommandError(output, context);
|
|
617
617
|
}
|
|
618
618
|
const data = await parseBody(output.body, context);
|
|
619
619
|
let contents = {};
|
|
620
|
-
contents =
|
|
620
|
+
contents = de_GetVirtualMachineOutput(data, context);
|
|
621
621
|
const response = {
|
|
622
622
|
$metadata: deserializeMetadata(output),
|
|
623
623
|
...contents,
|
|
624
624
|
};
|
|
625
625
|
return Promise.resolve(response);
|
|
626
626
|
};
|
|
627
|
-
const
|
|
627
|
+
const de_GetVirtualMachineCommandError = async (output, context) => {
|
|
628
628
|
const parsedOutput = {
|
|
629
629
|
...output,
|
|
630
630
|
body: await parseErrorBody(output.body, context),
|
|
@@ -633,16 +633,16 @@ const deserializeAws_json1_0GetVirtualMachineCommandError = async (output, conte
|
|
|
633
633
|
switch (errorCode) {
|
|
634
634
|
case "InternalServerException":
|
|
635
635
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
636
|
-
throw await
|
|
636
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
637
637
|
case "ResourceNotFoundException":
|
|
638
638
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
639
|
-
throw await
|
|
639
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
640
640
|
case "ThrottlingException":
|
|
641
641
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
642
|
-
throw await
|
|
642
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
643
643
|
case "ValidationException":
|
|
644
644
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
645
|
-
throw await
|
|
645
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
646
646
|
default:
|
|
647
647
|
const parsedBody = parsedOutput.body;
|
|
648
648
|
throwDefaultError({
|
|
@@ -653,20 +653,20 @@ const deserializeAws_json1_0GetVirtualMachineCommandError = async (output, conte
|
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
|
-
export const
|
|
656
|
+
export const de_ImportHypervisorConfigurationCommand = async (output, context) => {
|
|
657
657
|
if (output.statusCode >= 300) {
|
|
658
|
-
return
|
|
658
|
+
return de_ImportHypervisorConfigurationCommandError(output, context);
|
|
659
659
|
}
|
|
660
660
|
const data = await parseBody(output.body, context);
|
|
661
661
|
let contents = {};
|
|
662
|
-
contents =
|
|
662
|
+
contents = de_ImportHypervisorConfigurationOutput(data, context);
|
|
663
663
|
const response = {
|
|
664
664
|
$metadata: deserializeMetadata(output),
|
|
665
665
|
...contents,
|
|
666
666
|
};
|
|
667
667
|
return Promise.resolve(response);
|
|
668
668
|
};
|
|
669
|
-
const
|
|
669
|
+
const de_ImportHypervisorConfigurationCommandError = async (output, context) => {
|
|
670
670
|
const parsedOutput = {
|
|
671
671
|
...output,
|
|
672
672
|
body: await parseErrorBody(output.body, context),
|
|
@@ -675,19 +675,19 @@ const deserializeAws_json1_0ImportHypervisorConfigurationCommandError = async (o
|
|
|
675
675
|
switch (errorCode) {
|
|
676
676
|
case "AccessDeniedException":
|
|
677
677
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
678
|
-
throw await
|
|
678
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
679
679
|
case "ConflictException":
|
|
680
680
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
682
682
|
case "InternalServerException":
|
|
683
683
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
685
685
|
case "ThrottlingException":
|
|
686
686
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
687
|
-
throw await
|
|
687
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
688
688
|
case "ValidationException":
|
|
689
689
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
690
|
-
throw await
|
|
690
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
691
691
|
default:
|
|
692
692
|
const parsedBody = parsedOutput.body;
|
|
693
693
|
throwDefaultError({
|
|
@@ -698,20 +698,20 @@ const deserializeAws_json1_0ImportHypervisorConfigurationCommandError = async (o
|
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
|
-
export const
|
|
701
|
+
export const de_ListGatewaysCommand = async (output, context) => {
|
|
702
702
|
if (output.statusCode >= 300) {
|
|
703
|
-
return
|
|
703
|
+
return de_ListGatewaysCommandError(output, context);
|
|
704
704
|
}
|
|
705
705
|
const data = await parseBody(output.body, context);
|
|
706
706
|
let contents = {};
|
|
707
|
-
contents =
|
|
707
|
+
contents = de_ListGatewaysOutput(data, context);
|
|
708
708
|
const response = {
|
|
709
709
|
$metadata: deserializeMetadata(output),
|
|
710
710
|
...contents,
|
|
711
711
|
};
|
|
712
712
|
return Promise.resolve(response);
|
|
713
713
|
};
|
|
714
|
-
const
|
|
714
|
+
const de_ListGatewaysCommandError = async (output, context) => {
|
|
715
715
|
const parsedOutput = {
|
|
716
716
|
...output,
|
|
717
717
|
body: await parseErrorBody(output.body, context),
|
|
@@ -720,13 +720,13 @@ const deserializeAws_json1_0ListGatewaysCommandError = async (output, context) =
|
|
|
720
720
|
switch (errorCode) {
|
|
721
721
|
case "InternalServerException":
|
|
722
722
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
723
|
-
throw await
|
|
723
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
724
724
|
case "ThrottlingException":
|
|
725
725
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
726
|
-
throw await
|
|
726
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
727
727
|
case "ValidationException":
|
|
728
728
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
729
|
-
throw await
|
|
729
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
730
|
default:
|
|
731
731
|
const parsedBody = parsedOutput.body;
|
|
732
732
|
throwDefaultError({
|
|
@@ -737,20 +737,20 @@ const deserializeAws_json1_0ListGatewaysCommandError = async (output, context) =
|
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
|
-
export const
|
|
740
|
+
export const de_ListHypervisorsCommand = async (output, context) => {
|
|
741
741
|
if (output.statusCode >= 300) {
|
|
742
|
-
return
|
|
742
|
+
return de_ListHypervisorsCommandError(output, context);
|
|
743
743
|
}
|
|
744
744
|
const data = await parseBody(output.body, context);
|
|
745
745
|
let contents = {};
|
|
746
|
-
contents =
|
|
746
|
+
contents = de_ListHypervisorsOutput(data, context);
|
|
747
747
|
const response = {
|
|
748
748
|
$metadata: deserializeMetadata(output),
|
|
749
749
|
...contents,
|
|
750
750
|
};
|
|
751
751
|
return Promise.resolve(response);
|
|
752
752
|
};
|
|
753
|
-
const
|
|
753
|
+
const de_ListHypervisorsCommandError = async (output, context) => {
|
|
754
754
|
const parsedOutput = {
|
|
755
755
|
...output,
|
|
756
756
|
body: await parseErrorBody(output.body, context),
|
|
@@ -759,13 +759,13 @@ const deserializeAws_json1_0ListHypervisorsCommandError = async (output, context
|
|
|
759
759
|
switch (errorCode) {
|
|
760
760
|
case "InternalServerException":
|
|
761
761
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
762
|
-
throw await
|
|
762
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
763
763
|
case "ThrottlingException":
|
|
764
764
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
765
|
-
throw await
|
|
765
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
766
766
|
case "ValidationException":
|
|
767
767
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
768
|
-
throw await
|
|
768
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
769
769
|
default:
|
|
770
770
|
const parsedBody = parsedOutput.body;
|
|
771
771
|
throwDefaultError({
|
|
@@ -776,20 +776,20 @@ const deserializeAws_json1_0ListHypervisorsCommandError = async (output, context
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
export const
|
|
779
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
780
780
|
if (output.statusCode >= 300) {
|
|
781
|
-
return
|
|
781
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
782
782
|
}
|
|
783
783
|
const data = await parseBody(output.body, context);
|
|
784
784
|
let contents = {};
|
|
785
|
-
contents =
|
|
785
|
+
contents = de_ListTagsForResourceOutput(data, context);
|
|
786
786
|
const response = {
|
|
787
787
|
$metadata: deserializeMetadata(output),
|
|
788
788
|
...contents,
|
|
789
789
|
};
|
|
790
790
|
return Promise.resolve(response);
|
|
791
791
|
};
|
|
792
|
-
const
|
|
792
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
793
793
|
const parsedOutput = {
|
|
794
794
|
...output,
|
|
795
795
|
body: await parseErrorBody(output.body, context),
|
|
@@ -798,16 +798,16 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
798
798
|
switch (errorCode) {
|
|
799
799
|
case "InternalServerException":
|
|
800
800
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
801
|
-
throw await
|
|
801
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
802
802
|
case "ResourceNotFoundException":
|
|
803
803
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
805
805
|
case "ThrottlingException":
|
|
806
806
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
807
|
-
throw await
|
|
807
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
808
808
|
case "ValidationException":
|
|
809
809
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
810
|
-
throw await
|
|
810
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
811
|
default:
|
|
812
812
|
const parsedBody = parsedOutput.body;
|
|
813
813
|
throwDefaultError({
|
|
@@ -818,20 +818,20 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
};
|
|
821
|
-
export const
|
|
821
|
+
export const de_ListVirtualMachinesCommand = async (output, context) => {
|
|
822
822
|
if (output.statusCode >= 300) {
|
|
823
|
-
return
|
|
823
|
+
return de_ListVirtualMachinesCommandError(output, context);
|
|
824
824
|
}
|
|
825
825
|
const data = await parseBody(output.body, context);
|
|
826
826
|
let contents = {};
|
|
827
|
-
contents =
|
|
827
|
+
contents = de_ListVirtualMachinesOutput(data, context);
|
|
828
828
|
const response = {
|
|
829
829
|
$metadata: deserializeMetadata(output),
|
|
830
830
|
...contents,
|
|
831
831
|
};
|
|
832
832
|
return Promise.resolve(response);
|
|
833
833
|
};
|
|
834
|
-
const
|
|
834
|
+
const de_ListVirtualMachinesCommandError = async (output, context) => {
|
|
835
835
|
const parsedOutput = {
|
|
836
836
|
...output,
|
|
837
837
|
body: await parseErrorBody(output.body, context),
|
|
@@ -840,13 +840,13 @@ const deserializeAws_json1_0ListVirtualMachinesCommandError = async (output, con
|
|
|
840
840
|
switch (errorCode) {
|
|
841
841
|
case "InternalServerException":
|
|
842
842
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
843
|
-
throw await
|
|
843
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
844
844
|
case "ThrottlingException":
|
|
845
845
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
846
|
-
throw await
|
|
846
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
847
847
|
case "ValidationException":
|
|
848
848
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
850
850
|
default:
|
|
851
851
|
const parsedBody = parsedOutput.body;
|
|
852
852
|
throwDefaultError({
|
|
@@ -857,20 +857,20 @@ const deserializeAws_json1_0ListVirtualMachinesCommandError = async (output, con
|
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
};
|
|
860
|
-
export const
|
|
860
|
+
export const de_PutBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
861
861
|
if (output.statusCode >= 300) {
|
|
862
|
-
return
|
|
862
|
+
return de_PutBandwidthRateLimitScheduleCommandError(output, context);
|
|
863
863
|
}
|
|
864
864
|
const data = await parseBody(output.body, context);
|
|
865
865
|
let contents = {};
|
|
866
|
-
contents =
|
|
866
|
+
contents = de_PutBandwidthRateLimitScheduleOutput(data, context);
|
|
867
867
|
const response = {
|
|
868
868
|
$metadata: deserializeMetadata(output),
|
|
869
869
|
...contents,
|
|
870
870
|
};
|
|
871
871
|
return Promise.resolve(response);
|
|
872
872
|
};
|
|
873
|
-
const
|
|
873
|
+
const de_PutBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
874
874
|
const parsedOutput = {
|
|
875
875
|
...output,
|
|
876
876
|
body: await parseErrorBody(output.body, context),
|
|
@@ -879,16 +879,16 @@ const deserializeAws_json1_0PutBandwidthRateLimitScheduleCommandError = async (o
|
|
|
879
879
|
switch (errorCode) {
|
|
880
880
|
case "InternalServerException":
|
|
881
881
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
882
|
-
throw await
|
|
882
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
883
883
|
case "ResourceNotFoundException":
|
|
884
884
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
885
|
-
throw await
|
|
885
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
886
886
|
case "ThrottlingException":
|
|
887
887
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
888
|
-
throw await
|
|
888
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
889
889
|
case "ValidationException":
|
|
890
890
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
891
|
-
throw await
|
|
891
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
892
|
default:
|
|
893
893
|
const parsedBody = parsedOutput.body;
|
|
894
894
|
throwDefaultError({
|
|
@@ -899,20 +899,20 @@ const deserializeAws_json1_0PutBandwidthRateLimitScheduleCommandError = async (o
|
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
901
|
};
|
|
902
|
-
export const
|
|
902
|
+
export const de_PutHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
903
903
|
if (output.statusCode >= 300) {
|
|
904
|
-
return
|
|
904
|
+
return de_PutHypervisorPropertyMappingsCommandError(output, context);
|
|
905
905
|
}
|
|
906
906
|
const data = await parseBody(output.body, context);
|
|
907
907
|
let contents = {};
|
|
908
|
-
contents =
|
|
908
|
+
contents = de_PutHypervisorPropertyMappingsOutput(data, context);
|
|
909
909
|
const response = {
|
|
910
910
|
$metadata: deserializeMetadata(output),
|
|
911
911
|
...contents,
|
|
912
912
|
};
|
|
913
913
|
return Promise.resolve(response);
|
|
914
914
|
};
|
|
915
|
-
const
|
|
915
|
+
const de_PutHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
916
916
|
const parsedOutput = {
|
|
917
917
|
...output,
|
|
918
918
|
body: await parseErrorBody(output.body, context),
|
|
@@ -921,22 +921,22 @@ const deserializeAws_json1_0PutHypervisorPropertyMappingsCommandError = async (o
|
|
|
921
921
|
switch (errorCode) {
|
|
922
922
|
case "AccessDeniedException":
|
|
923
923
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
924
|
-
throw await
|
|
924
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
925
925
|
case "ConflictException":
|
|
926
926
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
927
|
-
throw await
|
|
927
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
928
928
|
case "InternalServerException":
|
|
929
929
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
930
|
-
throw await
|
|
930
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
931
|
case "ResourceNotFoundException":
|
|
932
932
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
933
|
-
throw await
|
|
933
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
934
|
case "ThrottlingException":
|
|
935
935
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
936
|
-
throw await
|
|
936
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
937
|
case "ValidationException":
|
|
938
938
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
939
|
-
throw await
|
|
939
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
940
|
default:
|
|
941
941
|
const parsedBody = parsedOutput.body;
|
|
942
942
|
throwDefaultError({
|
|
@@ -947,20 +947,20 @@ const deserializeAws_json1_0PutHypervisorPropertyMappingsCommandError = async (o
|
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
|
-
export const
|
|
950
|
+
export const de_PutMaintenanceStartTimeCommand = async (output, context) => {
|
|
951
951
|
if (output.statusCode >= 300) {
|
|
952
|
-
return
|
|
952
|
+
return de_PutMaintenanceStartTimeCommandError(output, context);
|
|
953
953
|
}
|
|
954
954
|
const data = await parseBody(output.body, context);
|
|
955
955
|
let contents = {};
|
|
956
|
-
contents =
|
|
956
|
+
contents = de_PutMaintenanceStartTimeOutput(data, context);
|
|
957
957
|
const response = {
|
|
958
958
|
$metadata: deserializeMetadata(output),
|
|
959
959
|
...contents,
|
|
960
960
|
};
|
|
961
961
|
return Promise.resolve(response);
|
|
962
962
|
};
|
|
963
|
-
const
|
|
963
|
+
const de_PutMaintenanceStartTimeCommandError = async (output, context) => {
|
|
964
964
|
const parsedOutput = {
|
|
965
965
|
...output,
|
|
966
966
|
body: await parseErrorBody(output.body, context),
|
|
@@ -969,19 +969,19 @@ const deserializeAws_json1_0PutMaintenanceStartTimeCommandError = async (output,
|
|
|
969
969
|
switch (errorCode) {
|
|
970
970
|
case "ConflictException":
|
|
971
971
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
972
|
-
throw await
|
|
972
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
973
973
|
case "InternalServerException":
|
|
974
974
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
975
|
-
throw await
|
|
975
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
976
976
|
case "ResourceNotFoundException":
|
|
977
977
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
978
|
-
throw await
|
|
978
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
979
|
case "ThrottlingException":
|
|
980
980
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
981
|
-
throw await
|
|
981
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
982
982
|
case "ValidationException":
|
|
983
983
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
984
|
-
throw await
|
|
984
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
985
|
default:
|
|
986
986
|
const parsedBody = parsedOutput.body;
|
|
987
987
|
throwDefaultError({
|
|
@@ -992,20 +992,20 @@ const deserializeAws_json1_0PutMaintenanceStartTimeCommandError = async (output,
|
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
994
|
};
|
|
995
|
-
export const
|
|
995
|
+
export const de_StartVirtualMachinesMetadataSyncCommand = async (output, context) => {
|
|
996
996
|
if (output.statusCode >= 300) {
|
|
997
|
-
return
|
|
997
|
+
return de_StartVirtualMachinesMetadataSyncCommandError(output, context);
|
|
998
998
|
}
|
|
999
999
|
const data = await parseBody(output.body, context);
|
|
1000
1000
|
let contents = {};
|
|
1001
|
-
contents =
|
|
1001
|
+
contents = de_StartVirtualMachinesMetadataSyncOutput(data, context);
|
|
1002
1002
|
const response = {
|
|
1003
1003
|
$metadata: deserializeMetadata(output),
|
|
1004
1004
|
...contents,
|
|
1005
1005
|
};
|
|
1006
1006
|
return Promise.resolve(response);
|
|
1007
1007
|
};
|
|
1008
|
-
const
|
|
1008
|
+
const de_StartVirtualMachinesMetadataSyncCommandError = async (output, context) => {
|
|
1009
1009
|
const parsedOutput = {
|
|
1010
1010
|
...output,
|
|
1011
1011
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1014,19 +1014,19 @@ const deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommandError = async
|
|
|
1014
1014
|
switch (errorCode) {
|
|
1015
1015
|
case "AccessDeniedException":
|
|
1016
1016
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1017
|
-
throw await
|
|
1017
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1018
1018
|
case "InternalServerException":
|
|
1019
1019
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1020
|
-
throw await
|
|
1020
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1021
1021
|
case "ResourceNotFoundException":
|
|
1022
1022
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1023
|
-
throw await
|
|
1023
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1024
1024
|
case "ThrottlingException":
|
|
1025
1025
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1026
|
-
throw await
|
|
1026
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1027
1027
|
case "ValidationException":
|
|
1028
1028
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1029
|
-
throw await
|
|
1029
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1030
1030
|
default:
|
|
1031
1031
|
const parsedBody = parsedOutput.body;
|
|
1032
1032
|
throwDefaultError({
|
|
@@ -1037,20 +1037,20 @@ const deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommandError = async
|
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
|
-
export const
|
|
1040
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1041
1041
|
if (output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
1042
|
+
return de_TagResourceCommandError(output, context);
|
|
1043
1043
|
}
|
|
1044
1044
|
const data = await parseBody(output.body, context);
|
|
1045
1045
|
let contents = {};
|
|
1046
|
-
contents =
|
|
1046
|
+
contents = de_TagResourceOutput(data, context);
|
|
1047
1047
|
const response = {
|
|
1048
1048
|
$metadata: deserializeMetadata(output),
|
|
1049
1049
|
...contents,
|
|
1050
1050
|
};
|
|
1051
1051
|
return Promise.resolve(response);
|
|
1052
1052
|
};
|
|
1053
|
-
const
|
|
1053
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1054
1054
|
const parsedOutput = {
|
|
1055
1055
|
...output,
|
|
1056
1056
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1059,16 +1059,16 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1059
1059
|
switch (errorCode) {
|
|
1060
1060
|
case "InternalServerException":
|
|
1061
1061
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1062
|
-
throw await
|
|
1062
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1063
1063
|
case "ResourceNotFoundException":
|
|
1064
1064
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1065
|
-
throw await
|
|
1065
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
1066
|
case "ThrottlingException":
|
|
1067
1067
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1068
|
-
throw await
|
|
1068
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1069
1069
|
case "ValidationException":
|
|
1070
1070
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1071
|
-
throw await
|
|
1071
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1072
1072
|
default:
|
|
1073
1073
|
const parsedBody = parsedOutput.body;
|
|
1074
1074
|
throwDefaultError({
|
|
@@ -1079,20 +1079,20 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
|
-
export const
|
|
1082
|
+
export const de_TestHypervisorConfigurationCommand = async (output, context) => {
|
|
1083
1083
|
if (output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
1084
|
+
return de_TestHypervisorConfigurationCommandError(output, context);
|
|
1085
1085
|
}
|
|
1086
1086
|
const data = await parseBody(output.body, context);
|
|
1087
1087
|
let contents = {};
|
|
1088
|
-
contents =
|
|
1088
|
+
contents = de_TestHypervisorConfigurationOutput(data, context);
|
|
1089
1089
|
const response = {
|
|
1090
1090
|
$metadata: deserializeMetadata(output),
|
|
1091
1091
|
...contents,
|
|
1092
1092
|
};
|
|
1093
1093
|
return Promise.resolve(response);
|
|
1094
1094
|
};
|
|
1095
|
-
const
|
|
1095
|
+
const de_TestHypervisorConfigurationCommandError = async (output, context) => {
|
|
1096
1096
|
const parsedOutput = {
|
|
1097
1097
|
...output,
|
|
1098
1098
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1101,19 +1101,19 @@ const deserializeAws_json1_0TestHypervisorConfigurationCommandError = async (out
|
|
|
1101
1101
|
switch (errorCode) {
|
|
1102
1102
|
case "ConflictException":
|
|
1103
1103
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
1104
|
-
throw await
|
|
1104
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1105
1105
|
case "InternalServerException":
|
|
1106
1106
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1107
|
-
throw await
|
|
1107
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1108
1108
|
case "ResourceNotFoundException":
|
|
1109
1109
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1110
|
-
throw await
|
|
1110
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1111
1111
|
case "ThrottlingException":
|
|
1112
1112
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1113
|
-
throw await
|
|
1113
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
1114
|
case "ValidationException":
|
|
1115
1115
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1116
|
-
throw await
|
|
1116
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
1117
|
default:
|
|
1118
1118
|
const parsedBody = parsedOutput.body;
|
|
1119
1119
|
throwDefaultError({
|
|
@@ -1124,20 +1124,20 @@ const deserializeAws_json1_0TestHypervisorConfigurationCommandError = async (out
|
|
|
1124
1124
|
});
|
|
1125
1125
|
}
|
|
1126
1126
|
};
|
|
1127
|
-
export const
|
|
1127
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1128
1128
|
if (output.statusCode >= 300) {
|
|
1129
|
-
return
|
|
1129
|
+
return de_UntagResourceCommandError(output, context);
|
|
1130
1130
|
}
|
|
1131
1131
|
const data = await parseBody(output.body, context);
|
|
1132
1132
|
let contents = {};
|
|
1133
|
-
contents =
|
|
1133
|
+
contents = de_UntagResourceOutput(data, context);
|
|
1134
1134
|
const response = {
|
|
1135
1135
|
$metadata: deserializeMetadata(output),
|
|
1136
1136
|
...contents,
|
|
1137
1137
|
};
|
|
1138
1138
|
return Promise.resolve(response);
|
|
1139
1139
|
};
|
|
1140
|
-
const
|
|
1140
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
1143
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1146,16 +1146,16 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1146
1146
|
switch (errorCode) {
|
|
1147
1147
|
case "InternalServerException":
|
|
1148
1148
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1149
|
-
throw await
|
|
1149
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1150
1150
|
case "ResourceNotFoundException":
|
|
1151
1151
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1152
|
-
throw await
|
|
1152
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1153
1153
|
case "ThrottlingException":
|
|
1154
1154
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1155
|
-
throw await
|
|
1155
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1156
1156
|
case "ValidationException":
|
|
1157
1157
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1158
|
-
throw await
|
|
1158
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1159
1159
|
default:
|
|
1160
1160
|
const parsedBody = parsedOutput.body;
|
|
1161
1161
|
throwDefaultError({
|
|
@@ -1166,20 +1166,20 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
|
-
export const
|
|
1169
|
+
export const de_UpdateGatewayInformationCommand = async (output, context) => {
|
|
1170
1170
|
if (output.statusCode >= 300) {
|
|
1171
|
-
return
|
|
1171
|
+
return de_UpdateGatewayInformationCommandError(output, context);
|
|
1172
1172
|
}
|
|
1173
1173
|
const data = await parseBody(output.body, context);
|
|
1174
1174
|
let contents = {};
|
|
1175
|
-
contents =
|
|
1175
|
+
contents = de_UpdateGatewayInformationOutput(data, context);
|
|
1176
1176
|
const response = {
|
|
1177
1177
|
$metadata: deserializeMetadata(output),
|
|
1178
1178
|
...contents,
|
|
1179
1179
|
};
|
|
1180
1180
|
return Promise.resolve(response);
|
|
1181
1181
|
};
|
|
1182
|
-
const
|
|
1182
|
+
const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
1183
1183
|
const parsedOutput = {
|
|
1184
1184
|
...output,
|
|
1185
1185
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1188,19 +1188,19 @@ const deserializeAws_json1_0UpdateGatewayInformationCommandError = async (output
|
|
|
1188
1188
|
switch (errorCode) {
|
|
1189
1189
|
case "ConflictException":
|
|
1190
1190
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
1191
|
-
throw await
|
|
1191
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1192
1192
|
case "InternalServerException":
|
|
1193
1193
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1194
|
-
throw await
|
|
1194
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1195
1195
|
case "ResourceNotFoundException":
|
|
1196
1196
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1197
|
-
throw await
|
|
1197
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1198
1198
|
case "ThrottlingException":
|
|
1199
1199
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1200
|
-
throw await
|
|
1200
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1201
1201
|
case "ValidationException":
|
|
1202
1202
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1203
|
-
throw await
|
|
1203
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1204
1204
|
default:
|
|
1205
1205
|
const parsedBody = parsedOutput.body;
|
|
1206
1206
|
throwDefaultError({
|
|
@@ -1211,20 +1211,20 @@ const deserializeAws_json1_0UpdateGatewayInformationCommandError = async (output
|
|
|
1211
1211
|
});
|
|
1212
1212
|
}
|
|
1213
1213
|
};
|
|
1214
|
-
export const
|
|
1214
|
+
export const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
1215
1215
|
if (output.statusCode >= 300) {
|
|
1216
|
-
return
|
|
1216
|
+
return de_UpdateGatewaySoftwareNowCommandError(output, context);
|
|
1217
1217
|
}
|
|
1218
1218
|
const data = await parseBody(output.body, context);
|
|
1219
1219
|
let contents = {};
|
|
1220
|
-
contents =
|
|
1220
|
+
contents = de_UpdateGatewaySoftwareNowOutput(data, context);
|
|
1221
1221
|
const response = {
|
|
1222
1222
|
$metadata: deserializeMetadata(output),
|
|
1223
1223
|
...contents,
|
|
1224
1224
|
};
|
|
1225
1225
|
return Promise.resolve(response);
|
|
1226
1226
|
};
|
|
1227
|
-
const
|
|
1227
|
+
const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
1228
1228
|
const parsedOutput = {
|
|
1229
1229
|
...output,
|
|
1230
1230
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1233,16 +1233,16 @@ const deserializeAws_json1_0UpdateGatewaySoftwareNowCommandError = async (output
|
|
|
1233
1233
|
switch (errorCode) {
|
|
1234
1234
|
case "InternalServerException":
|
|
1235
1235
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1236
|
-
throw await
|
|
1236
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1237
1237
|
case "ResourceNotFoundException":
|
|
1238
1238
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1239
|
-
throw await
|
|
1239
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1240
1240
|
case "ThrottlingException":
|
|
1241
1241
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1242
|
-
throw await
|
|
1242
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1243
1243
|
case "ValidationException":
|
|
1244
1244
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1245
|
-
throw await
|
|
1245
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1246
1246
|
default:
|
|
1247
1247
|
const parsedBody = parsedOutput.body;
|
|
1248
1248
|
throwDefaultError({
|
|
@@ -1253,20 +1253,20 @@ const deserializeAws_json1_0UpdateGatewaySoftwareNowCommandError = async (output
|
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
|
-
export const
|
|
1256
|
+
export const de_UpdateHypervisorCommand = async (output, context) => {
|
|
1257
1257
|
if (output.statusCode >= 300) {
|
|
1258
|
-
return
|
|
1258
|
+
return de_UpdateHypervisorCommandError(output, context);
|
|
1259
1259
|
}
|
|
1260
1260
|
const data = await parseBody(output.body, context);
|
|
1261
1261
|
let contents = {};
|
|
1262
|
-
contents =
|
|
1262
|
+
contents = de_UpdateHypervisorOutput(data, context);
|
|
1263
1263
|
const response = {
|
|
1264
1264
|
$metadata: deserializeMetadata(output),
|
|
1265
1265
|
...contents,
|
|
1266
1266
|
};
|
|
1267
1267
|
return Promise.resolve(response);
|
|
1268
1268
|
};
|
|
1269
|
-
const
|
|
1269
|
+
const de_UpdateHypervisorCommandError = async (output, context) => {
|
|
1270
1270
|
const parsedOutput = {
|
|
1271
1271
|
...output,
|
|
1272
1272
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1275,22 +1275,22 @@ const deserializeAws_json1_0UpdateHypervisorCommandError = async (output, contex
|
|
|
1275
1275
|
switch (errorCode) {
|
|
1276
1276
|
case "AccessDeniedException":
|
|
1277
1277
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1278
|
-
throw await
|
|
1278
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1279
1279
|
case "ConflictException":
|
|
1280
1280
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
1281
|
-
throw await
|
|
1281
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1282
1282
|
case "InternalServerException":
|
|
1283
1283
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1284
|
-
throw await
|
|
1284
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1285
1285
|
case "ResourceNotFoundException":
|
|
1286
1286
|
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1287
|
-
throw await
|
|
1287
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1288
1288
|
case "ThrottlingException":
|
|
1289
1289
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1290
|
-
throw await
|
|
1290
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1291
1291
|
case "ValidationException":
|
|
1292
1292
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1293
|
-
throw await
|
|
1293
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1294
1294
|
default:
|
|
1295
1295
|
const parsedBody = parsedOutput.body;
|
|
1296
1296
|
throwDefaultError({
|
|
@@ -1301,192 +1301,192 @@ const deserializeAws_json1_0UpdateHypervisorCommandError = async (output, contex
|
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
1303
|
};
|
|
1304
|
-
const
|
|
1304
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1305
1305
|
const body = parsedOutput.body;
|
|
1306
|
-
const deserialized =
|
|
1306
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1307
1307
|
const exception = new AccessDeniedException({
|
|
1308
1308
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
1309
|
...deserialized,
|
|
1310
1310
|
});
|
|
1311
1311
|
return __decorateServiceException(exception, body);
|
|
1312
1312
|
};
|
|
1313
|
-
const
|
|
1313
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1314
1314
|
const body = parsedOutput.body;
|
|
1315
|
-
const deserialized =
|
|
1315
|
+
const deserialized = de_ConflictException(body, context);
|
|
1316
1316
|
const exception = new ConflictException({
|
|
1317
1317
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
1318
|
...deserialized,
|
|
1319
1319
|
});
|
|
1320
1320
|
return __decorateServiceException(exception, body);
|
|
1321
1321
|
};
|
|
1322
|
-
const
|
|
1322
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1323
1323
|
const body = parsedOutput.body;
|
|
1324
|
-
const deserialized =
|
|
1324
|
+
const deserialized = de_InternalServerException(body, context);
|
|
1325
1325
|
const exception = new InternalServerException({
|
|
1326
1326
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
1327
|
...deserialized,
|
|
1328
1328
|
});
|
|
1329
1329
|
return __decorateServiceException(exception, body);
|
|
1330
1330
|
};
|
|
1331
|
-
const
|
|
1331
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1332
1332
|
const body = parsedOutput.body;
|
|
1333
|
-
const deserialized =
|
|
1333
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1334
1334
|
const exception = new ResourceNotFoundException({
|
|
1335
1335
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
1336
|
...deserialized,
|
|
1337
1337
|
});
|
|
1338
1338
|
return __decorateServiceException(exception, body);
|
|
1339
1339
|
};
|
|
1340
|
-
const
|
|
1340
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1341
1341
|
const body = parsedOutput.body;
|
|
1342
|
-
const deserialized =
|
|
1342
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1343
1343
|
const exception = new ThrottlingException({
|
|
1344
1344
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1345
1345
|
...deserialized,
|
|
1346
1346
|
});
|
|
1347
1347
|
return __decorateServiceException(exception, body);
|
|
1348
1348
|
};
|
|
1349
|
-
const
|
|
1349
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1350
1350
|
const body = parsedOutput.body;
|
|
1351
|
-
const deserialized =
|
|
1351
|
+
const deserialized = de_ValidationException(body, context);
|
|
1352
1352
|
const exception = new ValidationException({
|
|
1353
1353
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
1354
|
...deserialized,
|
|
1355
1355
|
});
|
|
1356
1356
|
return __decorateServiceException(exception, body);
|
|
1357
1357
|
};
|
|
1358
|
-
const
|
|
1358
|
+
const se_AssociateGatewayToServerInput = (input, context) => {
|
|
1359
1359
|
return {
|
|
1360
1360
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1361
1361
|
...(input.ServerArn != null && { ServerArn: input.ServerArn }),
|
|
1362
1362
|
};
|
|
1363
1363
|
};
|
|
1364
|
-
const
|
|
1364
|
+
const se_BandwidthRateLimitInterval = (input, context) => {
|
|
1365
1365
|
return {
|
|
1366
1366
|
...(input.AverageUploadRateLimitInBitsPerSec != null && {
|
|
1367
1367
|
AverageUploadRateLimitInBitsPerSec: input.AverageUploadRateLimitInBitsPerSec,
|
|
1368
1368
|
}),
|
|
1369
|
-
...(input.DaysOfWeek != null && { DaysOfWeek:
|
|
1369
|
+
...(input.DaysOfWeek != null && { DaysOfWeek: se_DaysOfWeek(input.DaysOfWeek, context) }),
|
|
1370
1370
|
...(input.EndHourOfDay != null && { EndHourOfDay: input.EndHourOfDay }),
|
|
1371
1371
|
...(input.EndMinuteOfHour != null && { EndMinuteOfHour: input.EndMinuteOfHour }),
|
|
1372
1372
|
...(input.StartHourOfDay != null && { StartHourOfDay: input.StartHourOfDay }),
|
|
1373
1373
|
...(input.StartMinuteOfHour != null && { StartMinuteOfHour: input.StartMinuteOfHour }),
|
|
1374
1374
|
};
|
|
1375
1375
|
};
|
|
1376
|
-
const
|
|
1376
|
+
const se_BandwidthRateLimitIntervals = (input, context) => {
|
|
1377
1377
|
return input
|
|
1378
1378
|
.filter((e) => e != null)
|
|
1379
1379
|
.map((entry) => {
|
|
1380
|
-
return
|
|
1380
|
+
return se_BandwidthRateLimitInterval(entry, context);
|
|
1381
1381
|
});
|
|
1382
1382
|
};
|
|
1383
|
-
const
|
|
1383
|
+
const se_CreateGatewayInput = (input, context) => {
|
|
1384
1384
|
return {
|
|
1385
1385
|
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
1386
1386
|
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1387
1387
|
...(input.GatewayType != null && { GatewayType: input.GatewayType }),
|
|
1388
|
-
...(input.Tags != null && { Tags:
|
|
1388
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1389
1389
|
};
|
|
1390
1390
|
};
|
|
1391
|
-
const
|
|
1391
|
+
const se_DaysOfWeek = (input, context) => {
|
|
1392
1392
|
return input
|
|
1393
1393
|
.filter((e) => e != null)
|
|
1394
1394
|
.map((entry) => {
|
|
1395
1395
|
return entry;
|
|
1396
1396
|
});
|
|
1397
1397
|
};
|
|
1398
|
-
const
|
|
1398
|
+
const se_DeleteGatewayInput = (input, context) => {
|
|
1399
1399
|
return {
|
|
1400
1400
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1401
1401
|
};
|
|
1402
1402
|
};
|
|
1403
|
-
const
|
|
1403
|
+
const se_DeleteHypervisorInput = (input, context) => {
|
|
1404
1404
|
return {
|
|
1405
1405
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1406
1406
|
};
|
|
1407
1407
|
};
|
|
1408
|
-
const
|
|
1408
|
+
const se_DisassociateGatewayFromServerInput = (input, context) => {
|
|
1409
1409
|
return {
|
|
1410
1410
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1411
1411
|
};
|
|
1412
1412
|
};
|
|
1413
|
-
const
|
|
1413
|
+
const se_GetBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1414
1414
|
return {
|
|
1415
1415
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1416
1416
|
};
|
|
1417
1417
|
};
|
|
1418
|
-
const
|
|
1418
|
+
const se_GetGatewayInput = (input, context) => {
|
|
1419
1419
|
return {
|
|
1420
1420
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1421
1421
|
};
|
|
1422
1422
|
};
|
|
1423
|
-
const
|
|
1423
|
+
const se_GetHypervisorInput = (input, context) => {
|
|
1424
1424
|
return {
|
|
1425
1425
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1426
1426
|
};
|
|
1427
1427
|
};
|
|
1428
|
-
const
|
|
1428
|
+
const se_GetHypervisorPropertyMappingsInput = (input, context) => {
|
|
1429
1429
|
return {
|
|
1430
1430
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1431
1431
|
};
|
|
1432
1432
|
};
|
|
1433
|
-
const
|
|
1433
|
+
const se_GetVirtualMachineInput = (input, context) => {
|
|
1434
1434
|
return {
|
|
1435
1435
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1436
1436
|
};
|
|
1437
1437
|
};
|
|
1438
|
-
const
|
|
1438
|
+
const se_ImportHypervisorConfigurationInput = (input, context) => {
|
|
1439
1439
|
return {
|
|
1440
1440
|
...(input.Host != null && { Host: input.Host }),
|
|
1441
1441
|
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
1442
1442
|
...(input.Name != null && { Name: input.Name }),
|
|
1443
1443
|
...(input.Password != null && { Password: input.Password }),
|
|
1444
|
-
...(input.Tags != null && { Tags:
|
|
1444
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1445
1445
|
...(input.Username != null && { Username: input.Username }),
|
|
1446
1446
|
};
|
|
1447
1447
|
};
|
|
1448
|
-
const
|
|
1448
|
+
const se_ListGatewaysInput = (input, context) => {
|
|
1449
1449
|
return {
|
|
1450
1450
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1451
1451
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1452
1452
|
};
|
|
1453
1453
|
};
|
|
1454
|
-
const
|
|
1454
|
+
const se_ListHypervisorsInput = (input, context) => {
|
|
1455
1455
|
return {
|
|
1456
1456
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1457
1457
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1458
1458
|
};
|
|
1459
1459
|
};
|
|
1460
|
-
const
|
|
1460
|
+
const se_ListTagsForResourceInput = (input, context) => {
|
|
1461
1461
|
return {
|
|
1462
1462
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1463
1463
|
};
|
|
1464
1464
|
};
|
|
1465
|
-
const
|
|
1465
|
+
const se_ListVirtualMachinesInput = (input, context) => {
|
|
1466
1466
|
return {
|
|
1467
1467
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1468
1468
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1469
1469
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1470
1470
|
};
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const se_PutBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1473
1473
|
return {
|
|
1474
1474
|
...(input.BandwidthRateLimitIntervals != null && {
|
|
1475
|
-
BandwidthRateLimitIntervals:
|
|
1475
|
+
BandwidthRateLimitIntervals: se_BandwidthRateLimitIntervals(input.BandwidthRateLimitIntervals, context),
|
|
1476
1476
|
}),
|
|
1477
1477
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1478
1478
|
};
|
|
1479
1479
|
};
|
|
1480
|
-
const
|
|
1480
|
+
const se_PutHypervisorPropertyMappingsInput = (input, context) => {
|
|
1481
1481
|
return {
|
|
1482
1482
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1483
1483
|
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1484
1484
|
...(input.VmwareToAwsTagMappings != null && {
|
|
1485
|
-
VmwareToAwsTagMappings:
|
|
1485
|
+
VmwareToAwsTagMappings: se_VmwareToAwsTagMappings(input.VmwareToAwsTagMappings, context),
|
|
1486
1486
|
}),
|
|
1487
1487
|
};
|
|
1488
1488
|
};
|
|
1489
|
-
const
|
|
1489
|
+
const se_PutMaintenanceStartTimeInput = (input, context) => {
|
|
1490
1490
|
return {
|
|
1491
1491
|
...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
|
|
1492
1492
|
...(input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek }),
|
|
@@ -1495,38 +1495,38 @@ const serializeAws_json1_0PutMaintenanceStartTimeInput = (input, context) => {
|
|
|
1495
1495
|
...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
|
|
1496
1496
|
};
|
|
1497
1497
|
};
|
|
1498
|
-
const
|
|
1498
|
+
const se_StartVirtualMachinesMetadataSyncInput = (input, context) => {
|
|
1499
1499
|
return {
|
|
1500
1500
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1501
1501
|
};
|
|
1502
1502
|
};
|
|
1503
|
-
const
|
|
1503
|
+
const se_Tag = (input, context) => {
|
|
1504
1504
|
return {
|
|
1505
1505
|
...(input.Key != null && { Key: input.Key }),
|
|
1506
1506
|
...(input.Value != null && { Value: input.Value }),
|
|
1507
1507
|
};
|
|
1508
1508
|
};
|
|
1509
|
-
const
|
|
1509
|
+
const se_TagKeys = (input, context) => {
|
|
1510
1510
|
return input
|
|
1511
1511
|
.filter((e) => e != null)
|
|
1512
1512
|
.map((entry) => {
|
|
1513
1513
|
return entry;
|
|
1514
1514
|
});
|
|
1515
1515
|
};
|
|
1516
|
-
const
|
|
1516
|
+
const se_TagResourceInput = (input, context) => {
|
|
1517
1517
|
return {
|
|
1518
1518
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1519
|
-
...(input.Tags != null && { Tags:
|
|
1519
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1520
1520
|
};
|
|
1521
1521
|
};
|
|
1522
|
-
const
|
|
1522
|
+
const se_Tags = (input, context) => {
|
|
1523
1523
|
return input
|
|
1524
1524
|
.filter((e) => e != null)
|
|
1525
1525
|
.map((entry) => {
|
|
1526
|
-
return
|
|
1526
|
+
return se_Tag(entry, context);
|
|
1527
1527
|
});
|
|
1528
1528
|
};
|
|
1529
|
-
const
|
|
1529
|
+
const se_TestHypervisorConfigurationInput = (input, context) => {
|
|
1530
1530
|
return {
|
|
1531
1531
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1532
1532
|
...(input.Host != null && { Host: input.Host }),
|
|
@@ -1534,24 +1534,24 @@ const serializeAws_json1_0TestHypervisorConfigurationInput = (input, context) =>
|
|
|
1534
1534
|
...(input.Username != null && { Username: input.Username }),
|
|
1535
1535
|
};
|
|
1536
1536
|
};
|
|
1537
|
-
const
|
|
1537
|
+
const se_UntagResourceInput = (input, context) => {
|
|
1538
1538
|
return {
|
|
1539
1539
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1540
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1540
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
1541
1541
|
};
|
|
1542
1542
|
};
|
|
1543
|
-
const
|
|
1543
|
+
const se_UpdateGatewayInformationInput = (input, context) => {
|
|
1544
1544
|
return {
|
|
1545
1545
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1546
1546
|
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1547
1547
|
};
|
|
1548
1548
|
};
|
|
1549
|
-
const
|
|
1549
|
+
const se_UpdateGatewaySoftwareNowInput = (input, context) => {
|
|
1550
1550
|
return {
|
|
1551
1551
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1552
1552
|
};
|
|
1553
1553
|
};
|
|
1554
|
-
const
|
|
1554
|
+
const se_UpdateHypervisorInput = (input, context) => {
|
|
1555
1555
|
return {
|
|
1556
1556
|
...(input.Host != null && { Host: input.Host }),
|
|
1557
1557
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
@@ -1561,7 +1561,7 @@ const serializeAws_json1_0UpdateHypervisorInput = (input, context) => {
|
|
|
1561
1561
|
...(input.Username != null && { Username: input.Username }),
|
|
1562
1562
|
};
|
|
1563
1563
|
};
|
|
1564
|
-
const
|
|
1564
|
+
const se_VmwareToAwsTagMapping = (input, context) => {
|
|
1565
1565
|
return {
|
|
1566
1566
|
...(input.AwsTagKey != null && { AwsTagKey: input.AwsTagKey }),
|
|
1567
1567
|
...(input.AwsTagValue != null && { AwsTagValue: input.AwsTagValue }),
|
|
@@ -1569,57 +1569,57 @@ const serializeAws_json1_0VmwareToAwsTagMapping = (input, context) => {
|
|
|
1569
1569
|
...(input.VmwareTagName != null && { VmwareTagName: input.VmwareTagName }),
|
|
1570
1570
|
};
|
|
1571
1571
|
};
|
|
1572
|
-
const
|
|
1572
|
+
const se_VmwareToAwsTagMappings = (input, context) => {
|
|
1573
1573
|
return input
|
|
1574
1574
|
.filter((e) => e != null)
|
|
1575
1575
|
.map((entry) => {
|
|
1576
|
-
return
|
|
1576
|
+
return se_VmwareToAwsTagMapping(entry, context);
|
|
1577
1577
|
});
|
|
1578
1578
|
};
|
|
1579
|
-
const
|
|
1579
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1580
1580
|
return {
|
|
1581
1581
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1582
1582
|
Message: __expectString(output.Message),
|
|
1583
1583
|
};
|
|
1584
1584
|
};
|
|
1585
|
-
const
|
|
1585
|
+
const de_AssociateGatewayToServerOutput = (output, context) => {
|
|
1586
1586
|
return {
|
|
1587
1587
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1588
1588
|
};
|
|
1589
1589
|
};
|
|
1590
|
-
const
|
|
1590
|
+
const de_BandwidthRateLimitInterval = (output, context) => {
|
|
1591
1591
|
return {
|
|
1592
1592
|
AverageUploadRateLimitInBitsPerSec: __expectLong(output.AverageUploadRateLimitInBitsPerSec),
|
|
1593
|
-
DaysOfWeek: output.DaysOfWeek != null ?
|
|
1593
|
+
DaysOfWeek: output.DaysOfWeek != null ? de_DaysOfWeek(output.DaysOfWeek, context) : undefined,
|
|
1594
1594
|
EndHourOfDay: __expectInt32(output.EndHourOfDay),
|
|
1595
1595
|
EndMinuteOfHour: __expectInt32(output.EndMinuteOfHour),
|
|
1596
1596
|
StartHourOfDay: __expectInt32(output.StartHourOfDay),
|
|
1597
1597
|
StartMinuteOfHour: __expectInt32(output.StartMinuteOfHour),
|
|
1598
1598
|
};
|
|
1599
1599
|
};
|
|
1600
|
-
const
|
|
1600
|
+
const de_BandwidthRateLimitIntervals = (output, context) => {
|
|
1601
1601
|
const retVal = (output || [])
|
|
1602
1602
|
.filter((e) => e != null)
|
|
1603
1603
|
.map((entry) => {
|
|
1604
1604
|
if (entry === null) {
|
|
1605
1605
|
return null;
|
|
1606
1606
|
}
|
|
1607
|
-
return
|
|
1607
|
+
return de_BandwidthRateLimitInterval(entry, context);
|
|
1608
1608
|
});
|
|
1609
1609
|
return retVal;
|
|
1610
1610
|
};
|
|
1611
|
-
const
|
|
1611
|
+
const de_ConflictException = (output, context) => {
|
|
1612
1612
|
return {
|
|
1613
1613
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1614
1614
|
Message: __expectString(output.Message),
|
|
1615
1615
|
};
|
|
1616
1616
|
};
|
|
1617
|
-
const
|
|
1617
|
+
const de_CreateGatewayOutput = (output, context) => {
|
|
1618
1618
|
return {
|
|
1619
1619
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1620
1620
|
};
|
|
1621
1621
|
};
|
|
1622
|
-
const
|
|
1622
|
+
const de_DaysOfWeek = (output, context) => {
|
|
1623
1623
|
const retVal = (output || [])
|
|
1624
1624
|
.filter((e) => e != null)
|
|
1625
1625
|
.map((entry) => {
|
|
@@ -1630,22 +1630,22 @@ const deserializeAws_json1_0DaysOfWeek = (output, context) => {
|
|
|
1630
1630
|
});
|
|
1631
1631
|
return retVal;
|
|
1632
1632
|
};
|
|
1633
|
-
const
|
|
1633
|
+
const de_DeleteGatewayOutput = (output, context) => {
|
|
1634
1634
|
return {
|
|
1635
1635
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1636
1636
|
};
|
|
1637
1637
|
};
|
|
1638
|
-
const
|
|
1638
|
+
const de_DeleteHypervisorOutput = (output, context) => {
|
|
1639
1639
|
return {
|
|
1640
1640
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1641
1641
|
};
|
|
1642
1642
|
};
|
|
1643
|
-
const
|
|
1643
|
+
const de_DisassociateGatewayFromServerOutput = (output, context) => {
|
|
1644
1644
|
return {
|
|
1645
1645
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1646
1646
|
};
|
|
1647
1647
|
};
|
|
1648
|
-
const
|
|
1648
|
+
const de_Gateway = (output, context) => {
|
|
1649
1649
|
return {
|
|
1650
1650
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1651
1651
|
GatewayDisplayName: __expectString(output.GatewayDisplayName),
|
|
@@ -1656,7 +1656,7 @@ const deserializeAws_json1_0Gateway = (output, context) => {
|
|
|
1656
1656
|
: undefined,
|
|
1657
1657
|
};
|
|
1658
1658
|
};
|
|
1659
|
-
const
|
|
1659
|
+
const de_GatewayDetails = (output, context) => {
|
|
1660
1660
|
return {
|
|
1661
1661
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1662
1662
|
GatewayDisplayName: __expectString(output.GatewayDisplayName),
|
|
@@ -1665,61 +1665,57 @@ const deserializeAws_json1_0GatewayDetails = (output, context) => {
|
|
|
1665
1665
|
LastSeenTime: output.LastSeenTime != null
|
|
1666
1666
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenTime)))
|
|
1667
1667
|
: undefined,
|
|
1668
|
-
MaintenanceStartTime: output.MaintenanceStartTime != null
|
|
1669
|
-
? deserializeAws_json1_0MaintenanceStartTime(output.MaintenanceStartTime, context)
|
|
1670
|
-
: undefined,
|
|
1668
|
+
MaintenanceStartTime: output.MaintenanceStartTime != null ? de_MaintenanceStartTime(output.MaintenanceStartTime, context) : undefined,
|
|
1671
1669
|
NextUpdateAvailabilityTime: output.NextUpdateAvailabilityTime != null
|
|
1672
1670
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NextUpdateAvailabilityTime)))
|
|
1673
1671
|
: undefined,
|
|
1674
1672
|
VpcEndpoint: __expectString(output.VpcEndpoint),
|
|
1675
1673
|
};
|
|
1676
1674
|
};
|
|
1677
|
-
const
|
|
1675
|
+
const de_Gateways = (output, context) => {
|
|
1678
1676
|
const retVal = (output || [])
|
|
1679
1677
|
.filter((e) => e != null)
|
|
1680
1678
|
.map((entry) => {
|
|
1681
1679
|
if (entry === null) {
|
|
1682
1680
|
return null;
|
|
1683
1681
|
}
|
|
1684
|
-
return
|
|
1682
|
+
return de_Gateway(entry, context);
|
|
1685
1683
|
});
|
|
1686
1684
|
return retVal;
|
|
1687
1685
|
};
|
|
1688
|
-
const
|
|
1686
|
+
const de_GetBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1689
1687
|
return {
|
|
1690
1688
|
BandwidthRateLimitIntervals: output.BandwidthRateLimitIntervals != null
|
|
1691
|
-
?
|
|
1689
|
+
? de_BandwidthRateLimitIntervals(output.BandwidthRateLimitIntervals, context)
|
|
1692
1690
|
: undefined,
|
|
1693
1691
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1694
1692
|
};
|
|
1695
1693
|
};
|
|
1696
|
-
const
|
|
1694
|
+
const de_GetGatewayOutput = (output, context) => {
|
|
1697
1695
|
return {
|
|
1698
|
-
Gateway: output.Gateway != null ?
|
|
1696
|
+
Gateway: output.Gateway != null ? de_GatewayDetails(output.Gateway, context) : undefined,
|
|
1699
1697
|
};
|
|
1700
1698
|
};
|
|
1701
|
-
const
|
|
1699
|
+
const de_GetHypervisorOutput = (output, context) => {
|
|
1702
1700
|
return {
|
|
1703
|
-
Hypervisor: output.Hypervisor != null ?
|
|
1701
|
+
Hypervisor: output.Hypervisor != null ? de_HypervisorDetails(output.Hypervisor, context) : undefined,
|
|
1704
1702
|
};
|
|
1705
1703
|
};
|
|
1706
|
-
const
|
|
1704
|
+
const de_GetHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1707
1705
|
return {
|
|
1708
1706
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1709
1707
|
IamRoleArn: __expectString(output.IamRoleArn),
|
|
1710
1708
|
VmwareToAwsTagMappings: output.VmwareToAwsTagMappings != null
|
|
1711
|
-
?
|
|
1709
|
+
? de_VmwareToAwsTagMappings(output.VmwareToAwsTagMappings, context)
|
|
1712
1710
|
: undefined,
|
|
1713
1711
|
};
|
|
1714
1712
|
};
|
|
1715
|
-
const
|
|
1713
|
+
const de_GetVirtualMachineOutput = (output, context) => {
|
|
1716
1714
|
return {
|
|
1717
|
-
VirtualMachine: output.VirtualMachine != null
|
|
1718
|
-
? deserializeAws_json1_0VirtualMachineDetails(output.VirtualMachine, context)
|
|
1719
|
-
: undefined,
|
|
1715
|
+
VirtualMachine: output.VirtualMachine != null ? de_VirtualMachineDetails(output.VirtualMachine, context) : undefined,
|
|
1720
1716
|
};
|
|
1721
1717
|
};
|
|
1722
|
-
const
|
|
1718
|
+
const de_Hypervisor = (output, context) => {
|
|
1723
1719
|
return {
|
|
1724
1720
|
Host: __expectString(output.Host),
|
|
1725
1721
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
@@ -1728,7 +1724,7 @@ const deserializeAws_json1_0Hypervisor = (output, context) => {
|
|
|
1728
1724
|
State: __expectString(output.State),
|
|
1729
1725
|
};
|
|
1730
1726
|
};
|
|
1731
|
-
const
|
|
1727
|
+
const de_HypervisorDetails = (output, context) => {
|
|
1732
1728
|
return {
|
|
1733
1729
|
Host: __expectString(output.Host),
|
|
1734
1730
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
@@ -1743,55 +1739,53 @@ const deserializeAws_json1_0HypervisorDetails = (output, context) => {
|
|
|
1743
1739
|
State: __expectString(output.State),
|
|
1744
1740
|
};
|
|
1745
1741
|
};
|
|
1746
|
-
const
|
|
1742
|
+
const de_Hypervisors = (output, context) => {
|
|
1747
1743
|
const retVal = (output || [])
|
|
1748
1744
|
.filter((e) => e != null)
|
|
1749
1745
|
.map((entry) => {
|
|
1750
1746
|
if (entry === null) {
|
|
1751
1747
|
return null;
|
|
1752
1748
|
}
|
|
1753
|
-
return
|
|
1749
|
+
return de_Hypervisor(entry, context);
|
|
1754
1750
|
});
|
|
1755
1751
|
return retVal;
|
|
1756
1752
|
};
|
|
1757
|
-
const
|
|
1753
|
+
const de_ImportHypervisorConfigurationOutput = (output, context) => {
|
|
1758
1754
|
return {
|
|
1759
1755
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1760
1756
|
};
|
|
1761
1757
|
};
|
|
1762
|
-
const
|
|
1758
|
+
const de_InternalServerException = (output, context) => {
|
|
1763
1759
|
return {
|
|
1764
1760
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1765
1761
|
Message: __expectString(output.Message),
|
|
1766
1762
|
};
|
|
1767
1763
|
};
|
|
1768
|
-
const
|
|
1764
|
+
const de_ListGatewaysOutput = (output, context) => {
|
|
1769
1765
|
return {
|
|
1770
|
-
Gateways: output.Gateways != null ?
|
|
1766
|
+
Gateways: output.Gateways != null ? de_Gateways(output.Gateways, context) : undefined,
|
|
1771
1767
|
NextToken: __expectString(output.NextToken),
|
|
1772
1768
|
};
|
|
1773
1769
|
};
|
|
1774
|
-
const
|
|
1770
|
+
const de_ListHypervisorsOutput = (output, context) => {
|
|
1775
1771
|
return {
|
|
1776
|
-
Hypervisors: output.Hypervisors != null ?
|
|
1772
|
+
Hypervisors: output.Hypervisors != null ? de_Hypervisors(output.Hypervisors, context) : undefined,
|
|
1777
1773
|
NextToken: __expectString(output.NextToken),
|
|
1778
1774
|
};
|
|
1779
1775
|
};
|
|
1780
|
-
const
|
|
1776
|
+
const de_ListTagsForResourceOutput = (output, context) => {
|
|
1781
1777
|
return {
|
|
1782
1778
|
ResourceArn: __expectString(output.ResourceArn),
|
|
1783
|
-
Tags: output.Tags != null ?
|
|
1779
|
+
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
1784
1780
|
};
|
|
1785
1781
|
};
|
|
1786
|
-
const
|
|
1782
|
+
const de_ListVirtualMachinesOutput = (output, context) => {
|
|
1787
1783
|
return {
|
|
1788
1784
|
NextToken: __expectString(output.NextToken),
|
|
1789
|
-
VirtualMachines: output.VirtualMachines != null
|
|
1790
|
-
? deserializeAws_json1_0VirtualMachines(output.VirtualMachines, context)
|
|
1791
|
-
: undefined,
|
|
1785
|
+
VirtualMachines: output.VirtualMachines != null ? de_VirtualMachines(output.VirtualMachines, context) : undefined,
|
|
1792
1786
|
};
|
|
1793
1787
|
};
|
|
1794
|
-
const
|
|
1788
|
+
const de_MaintenanceStartTime = (output, context) => {
|
|
1795
1789
|
return {
|
|
1796
1790
|
DayOfMonth: __expectInt32(output.DayOfMonth),
|
|
1797
1791
|
DayOfWeek: __expectInt32(output.DayOfWeek),
|
|
@@ -1799,90 +1793,90 @@ const deserializeAws_json1_0MaintenanceStartTime = (output, context) => {
|
|
|
1799
1793
|
MinuteOfHour: __expectInt32(output.MinuteOfHour),
|
|
1800
1794
|
};
|
|
1801
1795
|
};
|
|
1802
|
-
const
|
|
1796
|
+
const de_PutBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1803
1797
|
return {
|
|
1804
1798
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1805
1799
|
};
|
|
1806
1800
|
};
|
|
1807
|
-
const
|
|
1801
|
+
const de_PutHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1808
1802
|
return {
|
|
1809
1803
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1810
1804
|
};
|
|
1811
1805
|
};
|
|
1812
|
-
const
|
|
1806
|
+
const de_PutMaintenanceStartTimeOutput = (output, context) => {
|
|
1813
1807
|
return {
|
|
1814
1808
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1815
1809
|
};
|
|
1816
1810
|
};
|
|
1817
|
-
const
|
|
1811
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
1818
1812
|
return {
|
|
1819
1813
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1820
1814
|
Message: __expectString(output.Message),
|
|
1821
1815
|
};
|
|
1822
1816
|
};
|
|
1823
|
-
const
|
|
1817
|
+
const de_StartVirtualMachinesMetadataSyncOutput = (output, context) => {
|
|
1824
1818
|
return {
|
|
1825
1819
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1826
1820
|
};
|
|
1827
1821
|
};
|
|
1828
|
-
const
|
|
1822
|
+
const de_Tag = (output, context) => {
|
|
1829
1823
|
return {
|
|
1830
1824
|
Key: __expectString(output.Key),
|
|
1831
1825
|
Value: __expectString(output.Value),
|
|
1832
1826
|
};
|
|
1833
1827
|
};
|
|
1834
|
-
const
|
|
1828
|
+
const de_TagResourceOutput = (output, context) => {
|
|
1835
1829
|
return {
|
|
1836
1830
|
ResourceARN: __expectString(output.ResourceARN),
|
|
1837
1831
|
};
|
|
1838
1832
|
};
|
|
1839
|
-
const
|
|
1833
|
+
const de_Tags = (output, context) => {
|
|
1840
1834
|
const retVal = (output || [])
|
|
1841
1835
|
.filter((e) => e != null)
|
|
1842
1836
|
.map((entry) => {
|
|
1843
1837
|
if (entry === null) {
|
|
1844
1838
|
return null;
|
|
1845
1839
|
}
|
|
1846
|
-
return
|
|
1840
|
+
return de_Tag(entry, context);
|
|
1847
1841
|
});
|
|
1848
1842
|
return retVal;
|
|
1849
1843
|
};
|
|
1850
|
-
const
|
|
1844
|
+
const de_TestHypervisorConfigurationOutput = (output, context) => {
|
|
1851
1845
|
return {};
|
|
1852
1846
|
};
|
|
1853
|
-
const
|
|
1847
|
+
const de_ThrottlingException = (output, context) => {
|
|
1854
1848
|
return {
|
|
1855
1849
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1856
1850
|
Message: __expectString(output.Message),
|
|
1857
1851
|
};
|
|
1858
1852
|
};
|
|
1859
|
-
const
|
|
1853
|
+
const de_UntagResourceOutput = (output, context) => {
|
|
1860
1854
|
return {
|
|
1861
1855
|
ResourceARN: __expectString(output.ResourceARN),
|
|
1862
1856
|
};
|
|
1863
1857
|
};
|
|
1864
|
-
const
|
|
1858
|
+
const de_UpdateGatewayInformationOutput = (output, context) => {
|
|
1865
1859
|
return {
|
|
1866
1860
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1867
1861
|
};
|
|
1868
1862
|
};
|
|
1869
|
-
const
|
|
1863
|
+
const de_UpdateGatewaySoftwareNowOutput = (output, context) => {
|
|
1870
1864
|
return {
|
|
1871
1865
|
GatewayArn: __expectString(output.GatewayArn),
|
|
1872
1866
|
};
|
|
1873
1867
|
};
|
|
1874
|
-
const
|
|
1868
|
+
const de_UpdateHypervisorOutput = (output, context) => {
|
|
1875
1869
|
return {
|
|
1876
1870
|
HypervisorArn: __expectString(output.HypervisorArn),
|
|
1877
1871
|
};
|
|
1878
1872
|
};
|
|
1879
|
-
const
|
|
1873
|
+
const de_ValidationException = (output, context) => {
|
|
1880
1874
|
return {
|
|
1881
1875
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1882
1876
|
Message: __expectString(output.Message),
|
|
1883
1877
|
};
|
|
1884
1878
|
};
|
|
1885
|
-
const
|
|
1879
|
+
const de_VirtualMachine = (output, context) => {
|
|
1886
1880
|
return {
|
|
1887
1881
|
HostName: __expectString(output.HostName),
|
|
1888
1882
|
HypervisorId: __expectString(output.HypervisorId),
|
|
@@ -1894,7 +1888,7 @@ const deserializeAws_json1_0VirtualMachine = (output, context) => {
|
|
|
1894
1888
|
ResourceArn: __expectString(output.ResourceArn),
|
|
1895
1889
|
};
|
|
1896
1890
|
};
|
|
1897
|
-
const
|
|
1891
|
+
const de_VirtualMachineDetails = (output, context) => {
|
|
1898
1892
|
return {
|
|
1899
1893
|
HostName: __expectString(output.HostName),
|
|
1900
1894
|
HypervisorId: __expectString(output.HypervisorId),
|
|
@@ -1904,39 +1898,39 @@ const deserializeAws_json1_0VirtualMachineDetails = (output, context) => {
|
|
|
1904
1898
|
Name: __expectString(output.Name),
|
|
1905
1899
|
Path: __expectString(output.Path),
|
|
1906
1900
|
ResourceArn: __expectString(output.ResourceArn),
|
|
1907
|
-
VmwareTags: output.VmwareTags != null ?
|
|
1901
|
+
VmwareTags: output.VmwareTags != null ? de_VmwareTags(output.VmwareTags, context) : undefined,
|
|
1908
1902
|
};
|
|
1909
1903
|
};
|
|
1910
|
-
const
|
|
1904
|
+
const de_VirtualMachines = (output, context) => {
|
|
1911
1905
|
const retVal = (output || [])
|
|
1912
1906
|
.filter((e) => e != null)
|
|
1913
1907
|
.map((entry) => {
|
|
1914
1908
|
if (entry === null) {
|
|
1915
1909
|
return null;
|
|
1916
1910
|
}
|
|
1917
|
-
return
|
|
1911
|
+
return de_VirtualMachine(entry, context);
|
|
1918
1912
|
});
|
|
1919
1913
|
return retVal;
|
|
1920
1914
|
};
|
|
1921
|
-
const
|
|
1915
|
+
const de_VmwareTag = (output, context) => {
|
|
1922
1916
|
return {
|
|
1923
1917
|
VmwareCategory: __expectString(output.VmwareCategory),
|
|
1924
1918
|
VmwareTagDescription: __expectString(output.VmwareTagDescription),
|
|
1925
1919
|
VmwareTagName: __expectString(output.VmwareTagName),
|
|
1926
1920
|
};
|
|
1927
1921
|
};
|
|
1928
|
-
const
|
|
1922
|
+
const de_VmwareTags = (output, context) => {
|
|
1929
1923
|
const retVal = (output || [])
|
|
1930
1924
|
.filter((e) => e != null)
|
|
1931
1925
|
.map((entry) => {
|
|
1932
1926
|
if (entry === null) {
|
|
1933
1927
|
return null;
|
|
1934
1928
|
}
|
|
1935
|
-
return
|
|
1929
|
+
return de_VmwareTag(entry, context);
|
|
1936
1930
|
});
|
|
1937
1931
|
return retVal;
|
|
1938
1932
|
};
|
|
1939
|
-
const
|
|
1933
|
+
const de_VmwareToAwsTagMapping = (output, context) => {
|
|
1940
1934
|
return {
|
|
1941
1935
|
AwsTagKey: __expectString(output.AwsTagKey),
|
|
1942
1936
|
AwsTagValue: __expectString(output.AwsTagValue),
|
|
@@ -1944,14 +1938,14 @@ const deserializeAws_json1_0VmwareToAwsTagMapping = (output, context) => {
|
|
|
1944
1938
|
VmwareTagName: __expectString(output.VmwareTagName),
|
|
1945
1939
|
};
|
|
1946
1940
|
};
|
|
1947
|
-
const
|
|
1941
|
+
const de_VmwareToAwsTagMappings = (output, context) => {
|
|
1948
1942
|
const retVal = (output || [])
|
|
1949
1943
|
.filter((e) => e != null)
|
|
1950
1944
|
.map((entry) => {
|
|
1951
1945
|
if (entry === null) {
|
|
1952
1946
|
return null;
|
|
1953
1947
|
}
|
|
1954
|
-
return
|
|
1948
|
+
return de_VmwareToAwsTagMapping(entry, context);
|
|
1955
1949
|
});
|
|
1956
1950
|
return retVal;
|
|
1957
1951
|
};
|