@aws-sdk/client-outposts 3.489.0 → 3.495.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/Outposts.js +1 -63
- package/dist-cjs/OutpostsClient.js +1 -43
- package/dist-cjs/commands/CancelOrderCommand.js +1 -28
- package/dist-cjs/commands/CreateOrderCommand.js +1 -28
- package/dist-cjs/commands/CreateOutpostCommand.js +1 -28
- package/dist-cjs/commands/CreateSiteCommand.js +1 -28
- package/dist-cjs/commands/DeleteOutpostCommand.js +1 -28
- package/dist-cjs/commands/DeleteSiteCommand.js +1 -28
- package/dist-cjs/commands/GetCatalogItemCommand.js +1 -28
- package/dist-cjs/commands/GetConnectionCommand.js +1 -28
- package/dist-cjs/commands/GetOrderCommand.js +1 -28
- package/dist-cjs/commands/GetOutpostCommand.js +1 -28
- package/dist-cjs/commands/GetOutpostInstanceTypesCommand.js +1 -28
- package/dist-cjs/commands/GetSiteAddressCommand.js +1 -28
- package/dist-cjs/commands/GetSiteCommand.js +1 -28
- package/dist-cjs/commands/ListAssetsCommand.js +1 -28
- package/dist-cjs/commands/ListCatalogItemsCommand.js +1 -28
- package/dist-cjs/commands/ListOrdersCommand.js +1 -28
- package/dist-cjs/commands/ListOutpostsCommand.js +1 -28
- package/dist-cjs/commands/ListSitesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartConnectionCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateOutpostCommand.js +1 -28
- package/dist-cjs/commands/UpdateSiteAddressCommand.js +1 -28
- package/dist-cjs/commands/UpdateSiteCommand.js +1 -28
- package/dist-cjs/commands/UpdateSiteRackPhysicalPropertiesCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -29
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2714 -11
- package/dist-cjs/models/OutpostsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -233
- package/dist-cjs/pagination/GetOutpostInstanceTypesPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAssetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCatalogItemsPaginator.js +1 -7
- package/dist-cjs/pagination/ListOrdersPaginator.js +1 -7
- package/dist-cjs/pagination/ListOutpostsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSitesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1739
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1739 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateSiteCommand = exports.de_UpdateOutpostCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartConnectionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSitesCommand = exports.de_ListOutpostsCommand = exports.de_ListOrdersCommand = exports.de_ListCatalogItemsCommand = exports.de_ListAssetsCommand = exports.de_GetSiteAddressCommand = exports.de_GetSiteCommand = exports.de_GetOutpostInstanceTypesCommand = exports.de_GetOutpostCommand = exports.de_GetOrderCommand = exports.de_GetConnectionCommand = exports.de_GetCatalogItemCommand = exports.de_DeleteSiteCommand = exports.de_DeleteOutpostCommand = exports.de_CreateSiteCommand = exports.de_CreateOutpostCommand = exports.de_CreateOrderCommand = exports.de_CancelOrderCommand = exports.se_UpdateSiteRackPhysicalPropertiesCommand = exports.se_UpdateSiteAddressCommand = exports.se_UpdateSiteCommand = exports.se_UpdateOutpostCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartConnectionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSitesCommand = exports.se_ListOutpostsCommand = exports.se_ListOrdersCommand = exports.se_ListCatalogItemsCommand = exports.se_ListAssetsCommand = exports.se_GetSiteAddressCommand = exports.se_GetSiteCommand = exports.se_GetOutpostInstanceTypesCommand = exports.se_GetOutpostCommand = exports.se_GetOrderCommand = exports.se_GetConnectionCommand = exports.se_GetCatalogItemCommand = exports.se_DeleteSiteCommand = exports.se_DeleteOutpostCommand = exports.se_CreateSiteCommand = exports.se_CreateOutpostCommand = exports.se_CreateOrderCommand = exports.se_CancelOrderCommand = void 0;
|
|
4
|
-
exports.de_UpdateSiteRackPhysicalPropertiesCommand = exports.de_UpdateSiteAddressCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const OutpostsServiceException_1 = require("../models/OutpostsServiceException");
|
|
9
|
-
const se_CancelOrderCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {};
|
|
12
|
-
b.bp("/orders/{OrderId}/cancel");
|
|
13
|
-
b.p("OrderId", () => input.OrderId, "{OrderId}", false);
|
|
14
|
-
let body;
|
|
15
|
-
b.m("POST").h(headers).b(body);
|
|
16
|
-
return b.build();
|
|
17
|
-
};
|
|
18
|
-
exports.se_CancelOrderCommand = se_CancelOrderCommand;
|
|
19
|
-
const se_CreateOrderCommand = async (input, context) => {
|
|
20
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
21
|
-
const headers = {
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
};
|
|
24
|
-
b.bp("/orders");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
27
|
-
LineItems: (_) => (0, smithy_client_1._json)(_),
|
|
28
|
-
OutpostIdentifier: [],
|
|
29
|
-
PaymentOption: [],
|
|
30
|
-
PaymentTerm: [],
|
|
31
|
-
}));
|
|
32
|
-
b.m("POST").h(headers).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
exports.se_CreateOrderCommand = se_CreateOrderCommand;
|
|
36
|
-
const se_CreateOutpostCommand = async (input, context) => {
|
|
37
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
38
|
-
const headers = {
|
|
39
|
-
"content-type": "application/json",
|
|
40
|
-
};
|
|
41
|
-
b.bp("/outposts");
|
|
42
|
-
let body;
|
|
43
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
44
|
-
AvailabilityZone: [],
|
|
45
|
-
AvailabilityZoneId: [],
|
|
46
|
-
Description: [],
|
|
47
|
-
Name: [],
|
|
48
|
-
SiteId: [],
|
|
49
|
-
SupportedHardwareType: [],
|
|
50
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
-
}));
|
|
52
|
-
b.m("POST").h(headers).b(body);
|
|
53
|
-
return b.build();
|
|
54
|
-
};
|
|
55
|
-
exports.se_CreateOutpostCommand = se_CreateOutpostCommand;
|
|
56
|
-
const se_CreateSiteCommand = async (input, context) => {
|
|
57
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
58
|
-
const headers = {
|
|
59
|
-
"content-type": "application/json",
|
|
60
|
-
};
|
|
61
|
-
b.bp("/sites");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
-
Description: [],
|
|
65
|
-
Name: [],
|
|
66
|
-
Notes: [],
|
|
67
|
-
OperatingAddress: (_) => (0, smithy_client_1._json)(_),
|
|
68
|
-
RackPhysicalProperties: (_) => (0, smithy_client_1._json)(_),
|
|
69
|
-
ShippingAddress: (_) => (0, smithy_client_1._json)(_),
|
|
70
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
71
|
-
}));
|
|
72
|
-
b.m("POST").h(headers).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
exports.se_CreateSiteCommand = se_CreateSiteCommand;
|
|
76
|
-
const se_DeleteOutpostCommand = async (input, context) => {
|
|
77
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
78
|
-
const headers = {};
|
|
79
|
-
b.bp("/outposts/{OutpostId}");
|
|
80
|
-
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
81
|
-
let body;
|
|
82
|
-
b.m("DELETE").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
exports.se_DeleteOutpostCommand = se_DeleteOutpostCommand;
|
|
86
|
-
const se_DeleteSiteCommand = async (input, context) => {
|
|
87
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
88
|
-
const headers = {};
|
|
89
|
-
b.bp("/sites/{SiteId}");
|
|
90
|
-
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
91
|
-
let body;
|
|
92
|
-
b.m("DELETE").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
exports.se_DeleteSiteCommand = se_DeleteSiteCommand;
|
|
96
|
-
const se_GetCatalogItemCommand = async (input, context) => {
|
|
97
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
98
|
-
const headers = {};
|
|
99
|
-
b.bp("/catalog/item/{CatalogItemId}");
|
|
100
|
-
b.p("CatalogItemId", () => input.CatalogItemId, "{CatalogItemId}", false);
|
|
101
|
-
let body;
|
|
102
|
-
b.m("GET").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
exports.se_GetCatalogItemCommand = se_GetCatalogItemCommand;
|
|
106
|
-
const se_GetConnectionCommand = async (input, context) => {
|
|
107
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
|
-
const headers = {};
|
|
109
|
-
b.bp("/connections/{ConnectionId}");
|
|
110
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
111
|
-
let body;
|
|
112
|
-
b.m("GET").h(headers).b(body);
|
|
113
|
-
return b.build();
|
|
114
|
-
};
|
|
115
|
-
exports.se_GetConnectionCommand = se_GetConnectionCommand;
|
|
116
|
-
const se_GetOrderCommand = async (input, context) => {
|
|
117
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
118
|
-
const headers = {};
|
|
119
|
-
b.bp("/orders/{OrderId}");
|
|
120
|
-
b.p("OrderId", () => input.OrderId, "{OrderId}", false);
|
|
121
|
-
let body;
|
|
122
|
-
b.m("GET").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
exports.se_GetOrderCommand = se_GetOrderCommand;
|
|
126
|
-
const se_GetOutpostCommand = async (input, context) => {
|
|
127
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
128
|
-
const headers = {};
|
|
129
|
-
b.bp("/outposts/{OutpostId}");
|
|
130
|
-
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
131
|
-
let body;
|
|
132
|
-
b.m("GET").h(headers).b(body);
|
|
133
|
-
return b.build();
|
|
134
|
-
};
|
|
135
|
-
exports.se_GetOutpostCommand = se_GetOutpostCommand;
|
|
136
|
-
const se_GetOutpostInstanceTypesCommand = async (input, context) => {
|
|
137
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
138
|
-
const headers = {};
|
|
139
|
-
b.bp("/outposts/{OutpostId}/instanceTypes");
|
|
140
|
-
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
141
|
-
const query = (0, smithy_client_1.map)({
|
|
142
|
-
[_NT]: [, input[_NT]],
|
|
143
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
144
|
-
});
|
|
145
|
-
let body;
|
|
146
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
147
|
-
return b.build();
|
|
148
|
-
};
|
|
149
|
-
exports.se_GetOutpostInstanceTypesCommand = se_GetOutpostInstanceTypesCommand;
|
|
150
|
-
const se_GetSiteCommand = async (input, context) => {
|
|
151
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
152
|
-
const headers = {};
|
|
153
|
-
b.bp("/sites/{SiteId}");
|
|
154
|
-
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
155
|
-
let body;
|
|
156
|
-
b.m("GET").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
exports.se_GetSiteCommand = se_GetSiteCommand;
|
|
160
|
-
const se_GetSiteAddressCommand = async (input, context) => {
|
|
161
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
162
|
-
const headers = {};
|
|
163
|
-
b.bp("/sites/{SiteId}/address");
|
|
164
|
-
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
165
|
-
const query = (0, smithy_client_1.map)({
|
|
166
|
-
[_AT]: [, (0, smithy_client_1.expectNonNull)(input[_AT], `AddressType`)],
|
|
167
|
-
});
|
|
168
|
-
let body;
|
|
169
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
exports.se_GetSiteAddressCommand = se_GetSiteAddressCommand;
|
|
173
|
-
const se_ListAssetsCommand = async (input, context) => {
|
|
174
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/outposts/{OutpostIdentifier}/assets");
|
|
177
|
-
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
178
|
-
const query = (0, smithy_client_1.map)({
|
|
179
|
-
[_HIF]: [() => input.HostIdFilter !== void 0, () => (input[_HIF] || []).map((_entry) => _entry)],
|
|
180
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
181
|
-
[_NT]: [, input[_NT]],
|
|
182
|
-
[_SF]: [() => input.StatusFilter !== void 0, () => (input[_SF] || []).map((_entry) => _entry)],
|
|
183
|
-
});
|
|
184
|
-
let body;
|
|
185
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
186
|
-
return b.build();
|
|
187
|
-
};
|
|
188
|
-
exports.se_ListAssetsCommand = se_ListAssetsCommand;
|
|
189
|
-
const se_ListCatalogItemsCommand = async (input, context) => {
|
|
190
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
191
|
-
const headers = {};
|
|
192
|
-
b.bp("/catalog/items");
|
|
193
|
-
const query = (0, smithy_client_1.map)({
|
|
194
|
-
[_NT]: [, input[_NT]],
|
|
195
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
196
|
-
[_ICF]: [() => input.ItemClassFilter !== void 0, () => (input[_ICF] || []).map((_entry) => _entry)],
|
|
197
|
-
[_SSF]: [() => input.SupportedStorageFilter !== void 0, () => (input[_SSF] || []).map((_entry) => _entry)],
|
|
198
|
-
[_ECFF]: [() => input.EC2FamilyFilter !== void 0, () => (input[_ECFF] || []).map((_entry) => _entry)],
|
|
199
|
-
});
|
|
200
|
-
let body;
|
|
201
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
202
|
-
return b.build();
|
|
203
|
-
};
|
|
204
|
-
exports.se_ListCatalogItemsCommand = se_ListCatalogItemsCommand;
|
|
205
|
-
const se_ListOrdersCommand = async (input, context) => {
|
|
206
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
207
|
-
const headers = {};
|
|
208
|
-
b.bp("/list-orders");
|
|
209
|
-
const query = (0, smithy_client_1.map)({
|
|
210
|
-
[_OIF]: [, input[_OIF]],
|
|
211
|
-
[_NT]: [, input[_NT]],
|
|
212
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
213
|
-
});
|
|
214
|
-
let body;
|
|
215
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
216
|
-
return b.build();
|
|
217
|
-
};
|
|
218
|
-
exports.se_ListOrdersCommand = se_ListOrdersCommand;
|
|
219
|
-
const se_ListOutpostsCommand = async (input, context) => {
|
|
220
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
221
|
-
const headers = {};
|
|
222
|
-
b.bp("/outposts");
|
|
223
|
-
const query = (0, smithy_client_1.map)({
|
|
224
|
-
[_NT]: [, input[_NT]],
|
|
225
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
226
|
-
[_LCSF]: [() => input.LifeCycleStatusFilter !== void 0, () => (input[_LCSF] || []).map((_entry) => _entry)],
|
|
227
|
-
[_AZF]: [() => input.AvailabilityZoneFilter !== void 0, () => (input[_AZF] || []).map((_entry) => _entry)],
|
|
228
|
-
[_AZIF]: [
|
|
229
|
-
() => input.AvailabilityZoneIdFilter !== void 0,
|
|
230
|
-
() => (input[_AZIF] || []).map((_entry) => _entry),
|
|
231
|
-
],
|
|
232
|
-
});
|
|
233
|
-
let body;
|
|
234
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
exports.se_ListOutpostsCommand = se_ListOutpostsCommand;
|
|
238
|
-
const se_ListSitesCommand = async (input, context) => {
|
|
239
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
240
|
-
const headers = {};
|
|
241
|
-
b.bp("/sites");
|
|
242
|
-
const query = (0, smithy_client_1.map)({
|
|
243
|
-
[_NT]: [, input[_NT]],
|
|
244
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
245
|
-
[_OACCF]: [
|
|
246
|
-
() => input.OperatingAddressCountryCodeFilter !== void 0,
|
|
247
|
-
() => (input[_OACCF] || []).map((_entry) => _entry),
|
|
248
|
-
],
|
|
249
|
-
[_OASORF]: [
|
|
250
|
-
() => input.OperatingAddressStateOrRegionFilter !== void 0,
|
|
251
|
-
() => (input[_OASORF] || []).map((_entry) => _entry),
|
|
252
|
-
],
|
|
253
|
-
[_OACF]: [
|
|
254
|
-
() => input.OperatingAddressCityFilter !== void 0,
|
|
255
|
-
() => (input[_OACF] || []).map((_entry) => _entry),
|
|
256
|
-
],
|
|
257
|
-
});
|
|
258
|
-
let body;
|
|
259
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
exports.se_ListSitesCommand = se_ListSitesCommand;
|
|
263
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
264
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
265
|
-
const headers = {};
|
|
266
|
-
b.bp("/tags/{ResourceArn}");
|
|
267
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
268
|
-
let body;
|
|
269
|
-
b.m("GET").h(headers).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
273
|
-
const se_StartConnectionCommand = async (input, context) => {
|
|
274
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
275
|
-
const headers = {
|
|
276
|
-
"content-type": "application/json",
|
|
277
|
-
};
|
|
278
|
-
b.bp("/connections");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
281
|
-
AssetId: [],
|
|
282
|
-
ClientPublicKey: [],
|
|
283
|
-
DeviceSerialNumber: [],
|
|
284
|
-
NetworkInterfaceDeviceIndex: [],
|
|
285
|
-
}));
|
|
286
|
-
b.m("POST").h(headers).b(body);
|
|
287
|
-
return b.build();
|
|
288
|
-
};
|
|
289
|
-
exports.se_StartConnectionCommand = se_StartConnectionCommand;
|
|
290
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
291
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
292
|
-
const headers = {
|
|
293
|
-
"content-type": "application/json",
|
|
294
|
-
};
|
|
295
|
-
b.bp("/tags/{ResourceArn}");
|
|
296
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
299
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
300
|
-
}));
|
|
301
|
-
b.m("POST").h(headers).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
305
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
306
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
307
|
-
const headers = {};
|
|
308
|
-
b.bp("/tags/{ResourceArn}");
|
|
309
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
310
|
-
const query = (0, smithy_client_1.map)({
|
|
311
|
-
[_tK]: [
|
|
312
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
313
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
314
|
-
],
|
|
315
|
-
});
|
|
316
|
-
let body;
|
|
317
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
318
|
-
return b.build();
|
|
319
|
-
};
|
|
320
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
321
|
-
const se_UpdateOutpostCommand = async (input, context) => {
|
|
322
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
323
|
-
const headers = {
|
|
324
|
-
"content-type": "application/json",
|
|
325
|
-
};
|
|
326
|
-
b.bp("/outposts/{OutpostId}");
|
|
327
|
-
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
330
|
-
Description: [],
|
|
331
|
-
Name: [],
|
|
332
|
-
SupportedHardwareType: [],
|
|
333
|
-
}));
|
|
334
|
-
b.m("PATCH").h(headers).b(body);
|
|
335
|
-
return b.build();
|
|
336
|
-
};
|
|
337
|
-
exports.se_UpdateOutpostCommand = se_UpdateOutpostCommand;
|
|
338
|
-
const se_UpdateSiteCommand = async (input, context) => {
|
|
339
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
340
|
-
const headers = {
|
|
341
|
-
"content-type": "application/json",
|
|
342
|
-
};
|
|
343
|
-
b.bp("/sites/{SiteId}");
|
|
344
|
-
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
345
|
-
let body;
|
|
346
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
347
|
-
Description: [],
|
|
348
|
-
Name: [],
|
|
349
|
-
Notes: [],
|
|
350
|
-
}));
|
|
351
|
-
b.m("PATCH").h(headers).b(body);
|
|
352
|
-
return b.build();
|
|
353
|
-
};
|
|
354
|
-
exports.se_UpdateSiteCommand = se_UpdateSiteCommand;
|
|
355
|
-
const se_UpdateSiteAddressCommand = async (input, context) => {
|
|
356
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
357
|
-
const headers = {
|
|
358
|
-
"content-type": "application/json",
|
|
359
|
-
};
|
|
360
|
-
b.bp("/sites/{SiteId}/address");
|
|
361
|
-
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
364
|
-
Address: (_) => (0, smithy_client_1._json)(_),
|
|
365
|
-
AddressType: [],
|
|
366
|
-
}));
|
|
367
|
-
b.m("PUT").h(headers).b(body);
|
|
368
|
-
return b.build();
|
|
369
|
-
};
|
|
370
|
-
exports.se_UpdateSiteAddressCommand = se_UpdateSiteAddressCommand;
|
|
371
|
-
const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context) => {
|
|
372
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
373
|
-
const headers = {
|
|
374
|
-
"content-type": "application/json",
|
|
375
|
-
};
|
|
376
|
-
b.bp("/sites/{SiteId}/rackPhysicalProperties");
|
|
377
|
-
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
378
|
-
let body;
|
|
379
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
380
|
-
FiberOpticCableType: [],
|
|
381
|
-
MaximumSupportedWeightLbs: [],
|
|
382
|
-
OpticalStandard: [],
|
|
383
|
-
PowerConnector: [],
|
|
384
|
-
PowerDrawKva: [],
|
|
385
|
-
PowerFeedDrop: [],
|
|
386
|
-
PowerPhase: [],
|
|
387
|
-
UplinkCount: [],
|
|
388
|
-
UplinkGbps: [],
|
|
389
|
-
}));
|
|
390
|
-
b.m("PATCH").h(headers).b(body);
|
|
391
|
-
return b.build();
|
|
392
|
-
};
|
|
393
|
-
exports.se_UpdateSiteRackPhysicalPropertiesCommand = se_UpdateSiteRackPhysicalPropertiesCommand;
|
|
394
|
-
const de_CancelOrderCommand = async (output, context) => {
|
|
395
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
-
return de_CancelOrderCommandError(output, context);
|
|
397
|
-
}
|
|
398
|
-
const contents = (0, smithy_client_1.map)({
|
|
399
|
-
$metadata: deserializeMetadata(output),
|
|
400
|
-
});
|
|
401
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
402
|
-
return contents;
|
|
403
|
-
};
|
|
404
|
-
exports.de_CancelOrderCommand = de_CancelOrderCommand;
|
|
405
|
-
const de_CancelOrderCommandError = async (output, context) => {
|
|
406
|
-
const parsedOutput = {
|
|
407
|
-
...output,
|
|
408
|
-
body: await parseErrorBody(output.body, context),
|
|
409
|
-
};
|
|
410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
-
switch (errorCode) {
|
|
412
|
-
case "AccessDeniedException":
|
|
413
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
415
|
-
case "ConflictException":
|
|
416
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
417
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
418
|
-
case "InternalServerException":
|
|
419
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
420
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
421
|
-
case "NotFoundException":
|
|
422
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
423
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ValidationException":
|
|
425
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
|
-
default:
|
|
428
|
-
const parsedBody = parsedOutput.body;
|
|
429
|
-
return throwDefaultError({
|
|
430
|
-
output,
|
|
431
|
-
parsedBody,
|
|
432
|
-
errorCode,
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
const de_CreateOrderCommand = async (output, context) => {
|
|
437
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
438
|
-
return de_CreateOrderCommandError(output, context);
|
|
439
|
-
}
|
|
440
|
-
const contents = (0, smithy_client_1.map)({
|
|
441
|
-
$metadata: deserializeMetadata(output),
|
|
442
|
-
});
|
|
443
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
444
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
445
|
-
Order: (_) => de_Order(_, context),
|
|
446
|
-
});
|
|
447
|
-
Object.assign(contents, doc);
|
|
448
|
-
return contents;
|
|
449
|
-
};
|
|
450
|
-
exports.de_CreateOrderCommand = de_CreateOrderCommand;
|
|
451
|
-
const de_CreateOrderCommandError = async (output, context) => {
|
|
452
|
-
const parsedOutput = {
|
|
453
|
-
...output,
|
|
454
|
-
body: await parseErrorBody(output.body, context),
|
|
455
|
-
};
|
|
456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
|
-
switch (errorCode) {
|
|
458
|
-
case "AccessDeniedException":
|
|
459
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
460
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
461
|
-
case "ConflictException":
|
|
462
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
463
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
464
|
-
case "InternalServerException":
|
|
465
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
466
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
467
|
-
case "NotFoundException":
|
|
468
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
469
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
470
|
-
case "ServiceQuotaExceededException":
|
|
471
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
472
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ValidationException":
|
|
474
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
476
|
-
default:
|
|
477
|
-
const parsedBody = parsedOutput.body;
|
|
478
|
-
return throwDefaultError({
|
|
479
|
-
output,
|
|
480
|
-
parsedBody,
|
|
481
|
-
errorCode,
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
const de_CreateOutpostCommand = async (output, context) => {
|
|
486
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
-
return de_CreateOutpostCommandError(output, context);
|
|
488
|
-
}
|
|
489
|
-
const contents = (0, smithy_client_1.map)({
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
});
|
|
492
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
493
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
494
|
-
Outpost: smithy_client_1._json,
|
|
495
|
-
});
|
|
496
|
-
Object.assign(contents, doc);
|
|
497
|
-
return contents;
|
|
498
|
-
};
|
|
499
|
-
exports.de_CreateOutpostCommand = de_CreateOutpostCommand;
|
|
500
|
-
const de_CreateOutpostCommandError = async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context),
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "AccessDeniedException":
|
|
508
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ConflictException":
|
|
511
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
512
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
513
|
-
case "InternalServerException":
|
|
514
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
516
|
-
case "NotFoundException":
|
|
517
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
518
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ServiceQuotaExceededException":
|
|
520
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
521
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ValidationException":
|
|
523
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
524
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
525
|
-
default:
|
|
526
|
-
const parsedBody = parsedOutput.body;
|
|
527
|
-
return throwDefaultError({
|
|
528
|
-
output,
|
|
529
|
-
parsedBody,
|
|
530
|
-
errorCode,
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
const de_CreateSiteCommand = async (output, context) => {
|
|
535
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
536
|
-
return de_CreateSiteCommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const contents = (0, smithy_client_1.map)({
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
});
|
|
541
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
542
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
543
|
-
Site: smithy_client_1._json,
|
|
544
|
-
});
|
|
545
|
-
Object.assign(contents, doc);
|
|
546
|
-
return contents;
|
|
547
|
-
};
|
|
548
|
-
exports.de_CreateSiteCommand = de_CreateSiteCommand;
|
|
549
|
-
const de_CreateSiteCommandError = async (output, context) => {
|
|
550
|
-
const parsedOutput = {
|
|
551
|
-
...output,
|
|
552
|
-
body: await parseErrorBody(output.body, context),
|
|
553
|
-
};
|
|
554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
|
-
switch (errorCode) {
|
|
556
|
-
case "AccessDeniedException":
|
|
557
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
558
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
559
|
-
case "ConflictException":
|
|
560
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
561
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
562
|
-
case "InternalServerException":
|
|
563
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
564
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
565
|
-
case "ServiceQuotaExceededException":
|
|
566
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
567
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ValidationException":
|
|
569
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
571
|
-
default:
|
|
572
|
-
const parsedBody = parsedOutput.body;
|
|
573
|
-
return throwDefaultError({
|
|
574
|
-
output,
|
|
575
|
-
parsedBody,
|
|
576
|
-
errorCode,
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
const de_DeleteOutpostCommand = async (output, context) => {
|
|
581
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
582
|
-
return de_DeleteOutpostCommandError(output, context);
|
|
583
|
-
}
|
|
584
|
-
const contents = (0, smithy_client_1.map)({
|
|
585
|
-
$metadata: deserializeMetadata(output),
|
|
586
|
-
});
|
|
587
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
588
|
-
return contents;
|
|
589
|
-
};
|
|
590
|
-
exports.de_DeleteOutpostCommand = de_DeleteOutpostCommand;
|
|
591
|
-
const de_DeleteOutpostCommandError = async (output, context) => {
|
|
592
|
-
const parsedOutput = {
|
|
593
|
-
...output,
|
|
594
|
-
body: await parseErrorBody(output.body, context),
|
|
595
|
-
};
|
|
596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
|
-
switch (errorCode) {
|
|
598
|
-
case "AccessDeniedException":
|
|
599
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
600
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
601
|
-
case "ConflictException":
|
|
602
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
603
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
604
|
-
case "InternalServerException":
|
|
605
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
606
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
607
|
-
case "NotFoundException":
|
|
608
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
609
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ValidationException":
|
|
611
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
613
|
-
default:
|
|
614
|
-
const parsedBody = parsedOutput.body;
|
|
615
|
-
return throwDefaultError({
|
|
616
|
-
output,
|
|
617
|
-
parsedBody,
|
|
618
|
-
errorCode,
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
|
-
const de_DeleteSiteCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
624
|
-
return de_DeleteSiteCommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const contents = (0, smithy_client_1.map)({
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
});
|
|
629
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
630
|
-
return contents;
|
|
631
|
-
};
|
|
632
|
-
exports.de_DeleteSiteCommand = de_DeleteSiteCommand;
|
|
633
|
-
const de_DeleteSiteCommandError = async (output, context) => {
|
|
634
|
-
const parsedOutput = {
|
|
635
|
-
...output,
|
|
636
|
-
body: await parseErrorBody(output.body, context),
|
|
637
|
-
};
|
|
638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
-
switch (errorCode) {
|
|
640
|
-
case "AccessDeniedException":
|
|
641
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
642
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
643
|
-
case "ConflictException":
|
|
644
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
645
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
646
|
-
case "InternalServerException":
|
|
647
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
648
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
649
|
-
case "NotFoundException":
|
|
650
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
651
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ValidationException":
|
|
653
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
654
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
655
|
-
default:
|
|
656
|
-
const parsedBody = parsedOutput.body;
|
|
657
|
-
return throwDefaultError({
|
|
658
|
-
output,
|
|
659
|
-
parsedBody,
|
|
660
|
-
errorCode,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
const de_GetCatalogItemCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
666
|
-
return de_GetCatalogItemCommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const contents = (0, smithy_client_1.map)({
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
});
|
|
671
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
672
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
673
|
-
CatalogItem: (_) => de_CatalogItem(_, context),
|
|
674
|
-
});
|
|
675
|
-
Object.assign(contents, doc);
|
|
676
|
-
return contents;
|
|
677
|
-
};
|
|
678
|
-
exports.de_GetCatalogItemCommand = de_GetCatalogItemCommand;
|
|
679
|
-
const de_GetCatalogItemCommandError = async (output, context) => {
|
|
680
|
-
const parsedOutput = {
|
|
681
|
-
...output,
|
|
682
|
-
body: await parseErrorBody(output.body, context),
|
|
683
|
-
};
|
|
684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
|
-
switch (errorCode) {
|
|
686
|
-
case "InternalServerException":
|
|
687
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
688
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
689
|
-
case "NotFoundException":
|
|
690
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
691
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ValidationException":
|
|
693
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
const de_GetConnectionCommand = async (output, context) => {
|
|
705
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
-
return de_GetConnectionCommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const contents = (0, smithy_client_1.map)({
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
});
|
|
711
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
712
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
713
|
-
ConnectionDetails: smithy_client_1._json,
|
|
714
|
-
ConnectionId: smithy_client_1.expectString,
|
|
715
|
-
});
|
|
716
|
-
Object.assign(contents, doc);
|
|
717
|
-
return contents;
|
|
718
|
-
};
|
|
719
|
-
exports.de_GetConnectionCommand = de_GetConnectionCommand;
|
|
720
|
-
const de_GetConnectionCommandError = async (output, context) => {
|
|
721
|
-
const parsedOutput = {
|
|
722
|
-
...output,
|
|
723
|
-
body: await parseErrorBody(output.body, context),
|
|
724
|
-
};
|
|
725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
726
|
-
switch (errorCode) {
|
|
727
|
-
case "AccessDeniedException":
|
|
728
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
729
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
730
|
-
case "InternalServerException":
|
|
731
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
732
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
733
|
-
case "NotFoundException":
|
|
734
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
735
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ValidationException":
|
|
737
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
const de_GetOrderCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return de_GetOrderCommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const contents = (0, smithy_client_1.map)({
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
});
|
|
755
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
756
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
757
|
-
Order: (_) => de_Order(_, context),
|
|
758
|
-
});
|
|
759
|
-
Object.assign(contents, doc);
|
|
760
|
-
return contents;
|
|
761
|
-
};
|
|
762
|
-
exports.de_GetOrderCommand = de_GetOrderCommand;
|
|
763
|
-
const de_GetOrderCommandError = async (output, context) => {
|
|
764
|
-
const parsedOutput = {
|
|
765
|
-
...output,
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "InternalServerException":
|
|
771
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
772
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
773
|
-
case "NotFoundException":
|
|
774
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
775
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ValidationException":
|
|
777
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
778
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
|
-
const de_GetOutpostCommand = async (output, context) => {
|
|
789
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return de_GetOutpostCommandError(output, context);
|
|
791
|
-
}
|
|
792
|
-
const contents = (0, smithy_client_1.map)({
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
794
|
-
});
|
|
795
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
796
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
797
|
-
Outpost: smithy_client_1._json,
|
|
798
|
-
});
|
|
799
|
-
Object.assign(contents, doc);
|
|
800
|
-
return contents;
|
|
801
|
-
};
|
|
802
|
-
exports.de_GetOutpostCommand = de_GetOutpostCommand;
|
|
803
|
-
const de_GetOutpostCommandError = async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context),
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "AccessDeniedException":
|
|
811
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
812
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
813
|
-
case "InternalServerException":
|
|
814
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
815
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
816
|
-
case "NotFoundException":
|
|
817
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
818
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ValidationException":
|
|
820
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
821
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
return throwDefaultError({
|
|
825
|
-
output,
|
|
826
|
-
parsedBody,
|
|
827
|
-
errorCode,
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
const de_GetOutpostInstanceTypesCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
-
return de_GetOutpostInstanceTypesCommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const contents = (0, smithy_client_1.map)({
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
});
|
|
838
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
839
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
840
|
-
InstanceTypes: smithy_client_1._json,
|
|
841
|
-
NextToken: smithy_client_1.expectString,
|
|
842
|
-
OutpostArn: smithy_client_1.expectString,
|
|
843
|
-
OutpostId: smithy_client_1.expectString,
|
|
844
|
-
});
|
|
845
|
-
Object.assign(contents, doc);
|
|
846
|
-
return contents;
|
|
847
|
-
};
|
|
848
|
-
exports.de_GetOutpostInstanceTypesCommand = de_GetOutpostInstanceTypesCommand;
|
|
849
|
-
const de_GetOutpostInstanceTypesCommandError = async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context),
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "AccessDeniedException":
|
|
857
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
858
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
|
-
case "InternalServerException":
|
|
860
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
861
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
862
|
-
case "NotFoundException":
|
|
863
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
864
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ValidationException":
|
|
866
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
867
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
868
|
-
default:
|
|
869
|
-
const parsedBody = parsedOutput.body;
|
|
870
|
-
return throwDefaultError({
|
|
871
|
-
output,
|
|
872
|
-
parsedBody,
|
|
873
|
-
errorCode,
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
};
|
|
877
|
-
const de_GetSiteCommand = async (output, context) => {
|
|
878
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
|
-
return de_GetSiteCommandError(output, context);
|
|
880
|
-
}
|
|
881
|
-
const contents = (0, smithy_client_1.map)({
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
});
|
|
884
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
885
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
886
|
-
Site: smithy_client_1._json,
|
|
887
|
-
});
|
|
888
|
-
Object.assign(contents, doc);
|
|
889
|
-
return contents;
|
|
890
|
-
};
|
|
891
|
-
exports.de_GetSiteCommand = de_GetSiteCommand;
|
|
892
|
-
const de_GetSiteCommandError = async (output, context) => {
|
|
893
|
-
const parsedOutput = {
|
|
894
|
-
...output,
|
|
895
|
-
body: await parseErrorBody(output.body, context),
|
|
896
|
-
};
|
|
897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
-
switch (errorCode) {
|
|
899
|
-
case "AccessDeniedException":
|
|
900
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
902
|
-
case "InternalServerException":
|
|
903
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
904
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
905
|
-
case "NotFoundException":
|
|
906
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
907
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ValidationException":
|
|
909
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
910
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
911
|
-
default:
|
|
912
|
-
const parsedBody = parsedOutput.body;
|
|
913
|
-
return throwDefaultError({
|
|
914
|
-
output,
|
|
915
|
-
parsedBody,
|
|
916
|
-
errorCode,
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
const de_GetSiteAddressCommand = async (output, context) => {
|
|
921
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
|
-
return de_GetSiteAddressCommandError(output, context);
|
|
923
|
-
}
|
|
924
|
-
const contents = (0, smithy_client_1.map)({
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
});
|
|
927
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
928
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
929
|
-
Address: smithy_client_1._json,
|
|
930
|
-
AddressType: smithy_client_1.expectString,
|
|
931
|
-
SiteId: smithy_client_1.expectString,
|
|
932
|
-
});
|
|
933
|
-
Object.assign(contents, doc);
|
|
934
|
-
return contents;
|
|
935
|
-
};
|
|
936
|
-
exports.de_GetSiteAddressCommand = de_GetSiteAddressCommand;
|
|
937
|
-
const de_GetSiteAddressCommandError = async (output, context) => {
|
|
938
|
-
const parsedOutput = {
|
|
939
|
-
...output,
|
|
940
|
-
body: await parseErrorBody(output.body, context),
|
|
941
|
-
};
|
|
942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
-
switch (errorCode) {
|
|
944
|
-
case "AccessDeniedException":
|
|
945
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
946
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
947
|
-
case "InternalServerException":
|
|
948
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
949
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
950
|
-
case "NotFoundException":
|
|
951
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
952
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ValidationException":
|
|
954
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
955
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
|
-
default:
|
|
957
|
-
const parsedBody = parsedOutput.body;
|
|
958
|
-
return throwDefaultError({
|
|
959
|
-
output,
|
|
960
|
-
parsedBody,
|
|
961
|
-
errorCode,
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
};
|
|
965
|
-
const de_ListAssetsCommand = async (output, context) => {
|
|
966
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
967
|
-
return de_ListAssetsCommandError(output, context);
|
|
968
|
-
}
|
|
969
|
-
const contents = (0, smithy_client_1.map)({
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
});
|
|
972
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
973
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
974
|
-
Assets: (_) => de_AssetListDefinition(_, context),
|
|
975
|
-
NextToken: smithy_client_1.expectString,
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
return contents;
|
|
979
|
-
};
|
|
980
|
-
exports.de_ListAssetsCommand = de_ListAssetsCommand;
|
|
981
|
-
const de_ListAssetsCommandError = async (output, context) => {
|
|
982
|
-
const parsedOutput = {
|
|
983
|
-
...output,
|
|
984
|
-
body: await parseErrorBody(output.body, context),
|
|
985
|
-
};
|
|
986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
|
-
switch (errorCode) {
|
|
988
|
-
case "AccessDeniedException":
|
|
989
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
990
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InternalServerException":
|
|
992
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
993
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
994
|
-
case "NotFoundException":
|
|
995
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
996
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ValidationException":
|
|
998
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
999
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1000
|
-
default:
|
|
1001
|
-
const parsedBody = parsedOutput.body;
|
|
1002
|
-
return throwDefaultError({
|
|
1003
|
-
output,
|
|
1004
|
-
parsedBody,
|
|
1005
|
-
errorCode,
|
|
1006
|
-
});
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
const de_ListCatalogItemsCommand = async (output, context) => {
|
|
1010
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return de_ListCatalogItemsCommandError(output, context);
|
|
1012
|
-
}
|
|
1013
|
-
const contents = (0, smithy_client_1.map)({
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
});
|
|
1016
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1017
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1018
|
-
CatalogItems: (_) => de_CatalogItemListDefinition(_, context),
|
|
1019
|
-
NextToken: smithy_client_1.expectString,
|
|
1020
|
-
});
|
|
1021
|
-
Object.assign(contents, doc);
|
|
1022
|
-
return contents;
|
|
1023
|
-
};
|
|
1024
|
-
exports.de_ListCatalogItemsCommand = de_ListCatalogItemsCommand;
|
|
1025
|
-
const de_ListCatalogItemsCommandError = async (output, context) => {
|
|
1026
|
-
const parsedOutput = {
|
|
1027
|
-
...output,
|
|
1028
|
-
body: await parseErrorBody(output.body, context),
|
|
1029
|
-
};
|
|
1030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
-
switch (errorCode) {
|
|
1032
|
-
case "InternalServerException":
|
|
1033
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1034
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "NotFoundException":
|
|
1036
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1037
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "ValidationException":
|
|
1039
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1040
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1041
|
-
default:
|
|
1042
|
-
const parsedBody = parsedOutput.body;
|
|
1043
|
-
return throwDefaultError({
|
|
1044
|
-
output,
|
|
1045
|
-
parsedBody,
|
|
1046
|
-
errorCode,
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
};
|
|
1050
|
-
const de_ListOrdersCommand = async (output, context) => {
|
|
1051
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1052
|
-
return de_ListOrdersCommandError(output, context);
|
|
1053
|
-
}
|
|
1054
|
-
const contents = (0, smithy_client_1.map)({
|
|
1055
|
-
$metadata: deserializeMetadata(output),
|
|
1056
|
-
});
|
|
1057
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1058
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1059
|
-
NextToken: smithy_client_1.expectString,
|
|
1060
|
-
Orders: (_) => de_OrderSummaryListDefinition(_, context),
|
|
1061
|
-
});
|
|
1062
|
-
Object.assign(contents, doc);
|
|
1063
|
-
return contents;
|
|
1064
|
-
};
|
|
1065
|
-
exports.de_ListOrdersCommand = de_ListOrdersCommand;
|
|
1066
|
-
const de_ListOrdersCommandError = async (output, context) => {
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context),
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "AccessDeniedException":
|
|
1074
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1075
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "InternalServerException":
|
|
1077
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1078
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "NotFoundException":
|
|
1080
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1081
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ValidationException":
|
|
1083
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1084
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1085
|
-
default:
|
|
1086
|
-
const parsedBody = parsedOutput.body;
|
|
1087
|
-
return throwDefaultError({
|
|
1088
|
-
output,
|
|
1089
|
-
parsedBody,
|
|
1090
|
-
errorCode,
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
};
|
|
1094
|
-
const de_ListOutpostsCommand = async (output, context) => {
|
|
1095
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1096
|
-
return de_ListOutpostsCommandError(output, context);
|
|
1097
|
-
}
|
|
1098
|
-
const contents = (0, smithy_client_1.map)({
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
});
|
|
1101
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1102
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1103
|
-
NextToken: smithy_client_1.expectString,
|
|
1104
|
-
Outposts: smithy_client_1._json,
|
|
1105
|
-
});
|
|
1106
|
-
Object.assign(contents, doc);
|
|
1107
|
-
return contents;
|
|
1108
|
-
};
|
|
1109
|
-
exports.de_ListOutpostsCommand = de_ListOutpostsCommand;
|
|
1110
|
-
const de_ListOutpostsCommandError = async (output, context) => {
|
|
1111
|
-
const parsedOutput = {
|
|
1112
|
-
...output,
|
|
1113
|
-
body: await parseErrorBody(output.body, context),
|
|
1114
|
-
};
|
|
1115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
|
-
switch (errorCode) {
|
|
1117
|
-
case "AccessDeniedException":
|
|
1118
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1119
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "InternalServerException":
|
|
1121
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1122
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ValidationException":
|
|
1124
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1125
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1126
|
-
default:
|
|
1127
|
-
const parsedBody = parsedOutput.body;
|
|
1128
|
-
return throwDefaultError({
|
|
1129
|
-
output,
|
|
1130
|
-
parsedBody,
|
|
1131
|
-
errorCode,
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
const de_ListSitesCommand = async (output, context) => {
|
|
1136
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
|
-
return de_ListSitesCommandError(output, context);
|
|
1138
|
-
}
|
|
1139
|
-
const contents = (0, smithy_client_1.map)({
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
});
|
|
1142
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1143
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1144
|
-
NextToken: smithy_client_1.expectString,
|
|
1145
|
-
Sites: smithy_client_1._json,
|
|
1146
|
-
});
|
|
1147
|
-
Object.assign(contents, doc);
|
|
1148
|
-
return contents;
|
|
1149
|
-
};
|
|
1150
|
-
exports.de_ListSitesCommand = de_ListSitesCommand;
|
|
1151
|
-
const de_ListSitesCommandError = async (output, context) => {
|
|
1152
|
-
const parsedOutput = {
|
|
1153
|
-
...output,
|
|
1154
|
-
body: await parseErrorBody(output.body, context),
|
|
1155
|
-
};
|
|
1156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
-
switch (errorCode) {
|
|
1158
|
-
case "AccessDeniedException":
|
|
1159
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1160
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "InternalServerException":
|
|
1162
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1163
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ValidationException":
|
|
1165
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1166
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1167
|
-
default:
|
|
1168
|
-
const parsedBody = parsedOutput.body;
|
|
1169
|
-
return throwDefaultError({
|
|
1170
|
-
output,
|
|
1171
|
-
parsedBody,
|
|
1172
|
-
errorCode,
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
};
|
|
1176
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1177
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1178
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1179
|
-
}
|
|
1180
|
-
const contents = (0, smithy_client_1.map)({
|
|
1181
|
-
$metadata: deserializeMetadata(output),
|
|
1182
|
-
});
|
|
1183
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1184
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1185
|
-
Tags: smithy_client_1._json,
|
|
1186
|
-
});
|
|
1187
|
-
Object.assign(contents, doc);
|
|
1188
|
-
return contents;
|
|
1189
|
-
};
|
|
1190
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1191
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context),
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "InternalServerException":
|
|
1199
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1200
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "NotFoundException":
|
|
1202
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1203
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ValidationException":
|
|
1205
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1206
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1207
|
-
default:
|
|
1208
|
-
const parsedBody = parsedOutput.body;
|
|
1209
|
-
return throwDefaultError({
|
|
1210
|
-
output,
|
|
1211
|
-
parsedBody,
|
|
1212
|
-
errorCode,
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
|
-
const de_StartConnectionCommand = async (output, context) => {
|
|
1217
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1218
|
-
return de_StartConnectionCommandError(output, context);
|
|
1219
|
-
}
|
|
1220
|
-
const contents = (0, smithy_client_1.map)({
|
|
1221
|
-
$metadata: deserializeMetadata(output),
|
|
1222
|
-
});
|
|
1223
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1224
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1225
|
-
ConnectionId: smithy_client_1.expectString,
|
|
1226
|
-
UnderlayIpAddress: smithy_client_1.expectString,
|
|
1227
|
-
});
|
|
1228
|
-
Object.assign(contents, doc);
|
|
1229
|
-
return contents;
|
|
1230
|
-
};
|
|
1231
|
-
exports.de_StartConnectionCommand = de_StartConnectionCommand;
|
|
1232
|
-
const de_StartConnectionCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "AccessDeniedException":
|
|
1240
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "InternalServerException":
|
|
1243
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "NotFoundException":
|
|
1246
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1247
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ValidationException":
|
|
1249
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
|
-
default:
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode,
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1259
|
-
};
|
|
1260
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1261
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
-
return de_TagResourceCommandError(output, context);
|
|
1263
|
-
}
|
|
1264
|
-
const contents = (0, smithy_client_1.map)({
|
|
1265
|
-
$metadata: deserializeMetadata(output),
|
|
1266
|
-
});
|
|
1267
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1268
|
-
return contents;
|
|
1269
|
-
};
|
|
1270
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1271
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1272
|
-
const parsedOutput = {
|
|
1273
|
-
...output,
|
|
1274
|
-
body: await parseErrorBody(output.body, context),
|
|
1275
|
-
};
|
|
1276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
|
-
switch (errorCode) {
|
|
1278
|
-
case "InternalServerException":
|
|
1279
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1280
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "NotFoundException":
|
|
1282
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1283
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ValidationException":
|
|
1285
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1286
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode,
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1297
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
-
return de_UntagResourceCommandError(output, context);
|
|
1299
|
-
}
|
|
1300
|
-
const contents = (0, smithy_client_1.map)({
|
|
1301
|
-
$metadata: deserializeMetadata(output),
|
|
1302
|
-
});
|
|
1303
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1304
|
-
return contents;
|
|
1305
|
-
};
|
|
1306
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1307
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context),
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
switch (errorCode) {
|
|
1314
|
-
case "InternalServerException":
|
|
1315
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1316
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "NotFoundException":
|
|
1318
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1319
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ValidationException":
|
|
1321
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
|
-
default:
|
|
1324
|
-
const parsedBody = parsedOutput.body;
|
|
1325
|
-
return throwDefaultError({
|
|
1326
|
-
output,
|
|
1327
|
-
parsedBody,
|
|
1328
|
-
errorCode,
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
};
|
|
1332
|
-
const de_UpdateOutpostCommand = async (output, context) => {
|
|
1333
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return de_UpdateOutpostCommandError(output, context);
|
|
1335
|
-
}
|
|
1336
|
-
const contents = (0, smithy_client_1.map)({
|
|
1337
|
-
$metadata: deserializeMetadata(output),
|
|
1338
|
-
});
|
|
1339
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1340
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1341
|
-
Outpost: smithy_client_1._json,
|
|
1342
|
-
});
|
|
1343
|
-
Object.assign(contents, doc);
|
|
1344
|
-
return contents;
|
|
1345
|
-
};
|
|
1346
|
-
exports.de_UpdateOutpostCommand = de_UpdateOutpostCommand;
|
|
1347
|
-
const de_UpdateOutpostCommandError = async (output, context) => {
|
|
1348
|
-
const parsedOutput = {
|
|
1349
|
-
...output,
|
|
1350
|
-
body: await parseErrorBody(output.body, context),
|
|
1351
|
-
};
|
|
1352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1353
|
-
switch (errorCode) {
|
|
1354
|
-
case "AccessDeniedException":
|
|
1355
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ConflictException":
|
|
1358
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1359
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "InternalServerException":
|
|
1361
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1362
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "NotFoundException":
|
|
1364
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1365
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ValidationException":
|
|
1367
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1368
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode,
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
};
|
|
1378
|
-
const de_UpdateSiteCommand = async (output, context) => {
|
|
1379
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
-
return de_UpdateSiteCommandError(output, context);
|
|
1381
|
-
}
|
|
1382
|
-
const contents = (0, smithy_client_1.map)({
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
});
|
|
1385
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1386
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1387
|
-
Site: smithy_client_1._json,
|
|
1388
|
-
});
|
|
1389
|
-
Object.assign(contents, doc);
|
|
1390
|
-
return contents;
|
|
1391
|
-
};
|
|
1392
|
-
exports.de_UpdateSiteCommand = de_UpdateSiteCommand;
|
|
1393
|
-
const de_UpdateSiteCommandError = async (output, context) => {
|
|
1394
|
-
const parsedOutput = {
|
|
1395
|
-
...output,
|
|
1396
|
-
body: await parseErrorBody(output.body, context),
|
|
1397
|
-
};
|
|
1398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
-
switch (errorCode) {
|
|
1400
|
-
case "AccessDeniedException":
|
|
1401
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1402
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ConflictException":
|
|
1404
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1405
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "InternalServerException":
|
|
1407
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1408
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "NotFoundException":
|
|
1410
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1411
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ValidationException":
|
|
1413
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1414
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1415
|
-
default:
|
|
1416
|
-
const parsedBody = parsedOutput.body;
|
|
1417
|
-
return throwDefaultError({
|
|
1418
|
-
output,
|
|
1419
|
-
parsedBody,
|
|
1420
|
-
errorCode,
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
};
|
|
1424
|
-
const de_UpdateSiteAddressCommand = async (output, context) => {
|
|
1425
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
|
-
return de_UpdateSiteAddressCommandError(output, context);
|
|
1427
|
-
}
|
|
1428
|
-
const contents = (0, smithy_client_1.map)({
|
|
1429
|
-
$metadata: deserializeMetadata(output),
|
|
1430
|
-
});
|
|
1431
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1432
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1433
|
-
Address: smithy_client_1._json,
|
|
1434
|
-
AddressType: smithy_client_1.expectString,
|
|
1435
|
-
});
|
|
1436
|
-
Object.assign(contents, doc);
|
|
1437
|
-
return contents;
|
|
1438
|
-
};
|
|
1439
|
-
exports.de_UpdateSiteAddressCommand = de_UpdateSiteAddressCommand;
|
|
1440
|
-
const de_UpdateSiteAddressCommandError = async (output, context) => {
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "AccessDeniedException":
|
|
1448
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1449
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ConflictException":
|
|
1451
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1452
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "InternalServerException":
|
|
1454
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1455
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "NotFoundException":
|
|
1457
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1458
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ValidationException":
|
|
1460
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1461
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
return throwDefaultError({
|
|
1465
|
-
output,
|
|
1466
|
-
parsedBody,
|
|
1467
|
-
errorCode,
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
};
|
|
1471
|
-
const de_UpdateSiteRackPhysicalPropertiesCommand = async (output, context) => {
|
|
1472
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
|
-
return de_UpdateSiteRackPhysicalPropertiesCommandError(output, context);
|
|
1474
|
-
}
|
|
1475
|
-
const contents = (0, smithy_client_1.map)({
|
|
1476
|
-
$metadata: deserializeMetadata(output),
|
|
1477
|
-
});
|
|
1478
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1479
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1480
|
-
Site: smithy_client_1._json,
|
|
1481
|
-
});
|
|
1482
|
-
Object.assign(contents, doc);
|
|
1483
|
-
return contents;
|
|
1484
|
-
};
|
|
1485
|
-
exports.de_UpdateSiteRackPhysicalPropertiesCommand = de_UpdateSiteRackPhysicalPropertiesCommand;
|
|
1486
|
-
const de_UpdateSiteRackPhysicalPropertiesCommandError = async (output, context) => {
|
|
1487
|
-
const parsedOutput = {
|
|
1488
|
-
...output,
|
|
1489
|
-
body: await parseErrorBody(output.body, context),
|
|
1490
|
-
};
|
|
1491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "AccessDeniedException":
|
|
1494
|
-
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ConflictException":
|
|
1497
|
-
case "com.amazonaws.outposts#ConflictException":
|
|
1498
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "InternalServerException":
|
|
1500
|
-
case "com.amazonaws.outposts#InternalServerException":
|
|
1501
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "NotFoundException":
|
|
1503
|
-
case "com.amazonaws.outposts#NotFoundException":
|
|
1504
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ValidationException":
|
|
1506
|
-
case "com.amazonaws.outposts#ValidationException":
|
|
1507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode,
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(OutpostsServiceException_1.OutpostsServiceException);
|
|
1518
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1519
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1520
|
-
const data = parsedOutput.body;
|
|
1521
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1522
|
-
Message: smithy_client_1.expectString,
|
|
1523
|
-
});
|
|
1524
|
-
Object.assign(contents, doc);
|
|
1525
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1526
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1527
|
-
...contents,
|
|
1528
|
-
});
|
|
1529
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1530
|
-
};
|
|
1531
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1532
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1533
|
-
const data = parsedOutput.body;
|
|
1534
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1535
|
-
Message: smithy_client_1.expectString,
|
|
1536
|
-
ResourceId: smithy_client_1.expectString,
|
|
1537
|
-
ResourceType: smithy_client_1.expectString,
|
|
1538
|
-
});
|
|
1539
|
-
Object.assign(contents, doc);
|
|
1540
|
-
const exception = new models_0_1.ConflictException({
|
|
1541
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1542
|
-
...contents,
|
|
1543
|
-
});
|
|
1544
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1545
|
-
};
|
|
1546
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1547
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1548
|
-
const data = parsedOutput.body;
|
|
1549
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1550
|
-
Message: smithy_client_1.expectString,
|
|
1551
|
-
});
|
|
1552
|
-
Object.assign(contents, doc);
|
|
1553
|
-
const exception = new models_0_1.InternalServerException({
|
|
1554
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1555
|
-
...contents,
|
|
1556
|
-
});
|
|
1557
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1558
|
-
};
|
|
1559
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1560
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1561
|
-
const data = parsedOutput.body;
|
|
1562
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1563
|
-
Message: smithy_client_1.expectString,
|
|
1564
|
-
});
|
|
1565
|
-
Object.assign(contents, doc);
|
|
1566
|
-
const exception = new models_0_1.NotFoundException({
|
|
1567
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1568
|
-
...contents,
|
|
1569
|
-
});
|
|
1570
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1571
|
-
};
|
|
1572
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1573
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1574
|
-
const data = parsedOutput.body;
|
|
1575
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1576
|
-
Message: smithy_client_1.expectString,
|
|
1577
|
-
});
|
|
1578
|
-
Object.assign(contents, doc);
|
|
1579
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1580
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1581
|
-
...contents,
|
|
1582
|
-
});
|
|
1583
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1584
|
-
};
|
|
1585
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1586
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1587
|
-
const data = parsedOutput.body;
|
|
1588
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1589
|
-
Message: smithy_client_1.expectString,
|
|
1590
|
-
});
|
|
1591
|
-
Object.assign(contents, doc);
|
|
1592
|
-
const exception = new models_0_1.ValidationException({
|
|
1593
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1594
|
-
...contents,
|
|
1595
|
-
});
|
|
1596
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1597
|
-
};
|
|
1598
|
-
const de_AssetInfo = (output, context) => {
|
|
1599
|
-
return (0, smithy_client_1.take)(output, {
|
|
1600
|
-
AssetId: smithy_client_1.expectString,
|
|
1601
|
-
AssetLocation: (_) => de_AssetLocation(_, context),
|
|
1602
|
-
AssetType: smithy_client_1.expectString,
|
|
1603
|
-
ComputeAttributes: smithy_client_1._json,
|
|
1604
|
-
RackId: smithy_client_1.expectString,
|
|
1605
|
-
});
|
|
1606
|
-
};
|
|
1607
|
-
const de_AssetListDefinition = (output, context) => {
|
|
1608
|
-
const retVal = (output || [])
|
|
1609
|
-
.filter((e) => e != null)
|
|
1610
|
-
.map((entry) => {
|
|
1611
|
-
return de_AssetInfo(entry, context);
|
|
1612
|
-
});
|
|
1613
|
-
return retVal;
|
|
1614
|
-
};
|
|
1615
|
-
const de_AssetLocation = (output, context) => {
|
|
1616
|
-
return (0, smithy_client_1.take)(output, {
|
|
1617
|
-
RackElevation: smithy_client_1.limitedParseFloat32,
|
|
1618
|
-
});
|
|
1619
|
-
};
|
|
1620
|
-
const de_CatalogItem = (output, context) => {
|
|
1621
|
-
return (0, smithy_client_1.take)(output, {
|
|
1622
|
-
CatalogItemId: smithy_client_1.expectString,
|
|
1623
|
-
EC2Capacities: smithy_client_1._json,
|
|
1624
|
-
ItemStatus: smithy_client_1.expectString,
|
|
1625
|
-
PowerKva: smithy_client_1.limitedParseFloat32,
|
|
1626
|
-
SupportedStorage: smithy_client_1._json,
|
|
1627
|
-
SupportedUplinkGbps: smithy_client_1._json,
|
|
1628
|
-
WeightLbs: smithy_client_1.expectInt32,
|
|
1629
|
-
});
|
|
1630
|
-
};
|
|
1631
|
-
const de_CatalogItemListDefinition = (output, context) => {
|
|
1632
|
-
const retVal = (output || [])
|
|
1633
|
-
.filter((e) => e != null)
|
|
1634
|
-
.map((entry) => {
|
|
1635
|
-
return de_CatalogItem(entry, context);
|
|
1636
|
-
});
|
|
1637
|
-
return retVal;
|
|
1638
|
-
};
|
|
1639
|
-
const de_Order = (output, context) => {
|
|
1640
|
-
return (0, smithy_client_1.take)(output, {
|
|
1641
|
-
LineItems: smithy_client_1._json,
|
|
1642
|
-
OrderFulfilledDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1643
|
-
OrderId: smithy_client_1.expectString,
|
|
1644
|
-
OrderSubmissionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1645
|
-
OrderType: smithy_client_1.expectString,
|
|
1646
|
-
OutpostId: smithy_client_1.expectString,
|
|
1647
|
-
PaymentOption: smithy_client_1.expectString,
|
|
1648
|
-
PaymentTerm: smithy_client_1.expectString,
|
|
1649
|
-
Status: smithy_client_1.expectString,
|
|
1650
|
-
});
|
|
1651
|
-
};
|
|
1652
|
-
const de_OrderSummary = (output, context) => {
|
|
1653
|
-
return (0, smithy_client_1.take)(output, {
|
|
1654
|
-
LineItemCountsByStatus: smithy_client_1._json,
|
|
1655
|
-
OrderFulfilledDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1656
|
-
OrderId: smithy_client_1.expectString,
|
|
1657
|
-
OrderSubmissionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1658
|
-
OrderType: smithy_client_1.expectString,
|
|
1659
|
-
OutpostId: smithy_client_1.expectString,
|
|
1660
|
-
Status: smithy_client_1.expectString,
|
|
1661
|
-
});
|
|
1662
|
-
};
|
|
1663
|
-
const de_OrderSummaryListDefinition = (output, context) => {
|
|
1664
|
-
const retVal = (output || [])
|
|
1665
|
-
.filter((e) => e != null)
|
|
1666
|
-
.map((entry) => {
|
|
1667
|
-
return de_OrderSummary(entry, context);
|
|
1668
|
-
});
|
|
1669
|
-
return retVal;
|
|
1670
|
-
};
|
|
1671
|
-
const deserializeMetadata = (output) => ({
|
|
1672
|
-
httpStatusCode: output.statusCode,
|
|
1673
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1674
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1675
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1676
|
-
});
|
|
1677
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1678
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1679
|
-
value !== null &&
|
|
1680
|
-
value !== "" &&
|
|
1681
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1682
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1683
|
-
const _AT = "AddressType";
|
|
1684
|
-
const _AZF = "AvailabilityZoneFilter";
|
|
1685
|
-
const _AZIF = "AvailabilityZoneIdFilter";
|
|
1686
|
-
const _ECFF = "EC2FamilyFilter";
|
|
1687
|
-
const _HIF = "HostIdFilter";
|
|
1688
|
-
const _ICF = "ItemClassFilter";
|
|
1689
|
-
const _LCSF = "LifeCycleStatusFilter";
|
|
1690
|
-
const _MR = "MaxResults";
|
|
1691
|
-
const _NT = "NextToken";
|
|
1692
|
-
const _OACCF = "OperatingAddressCountryCodeFilter";
|
|
1693
|
-
const _OACF = "OperatingAddressCityFilter";
|
|
1694
|
-
const _OASORF = "OperatingAddressStateOrRegionFilter";
|
|
1695
|
-
const _OIF = "OutpostIdentifierFilter";
|
|
1696
|
-
const _SF = "StatusFilter";
|
|
1697
|
-
const _SSF = "SupportedStorageFilter";
|
|
1698
|
-
const _TK = "TagKeys";
|
|
1699
|
-
const _tK = "tagKeys";
|
|
1700
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1701
|
-
if (encoded.length) {
|
|
1702
|
-
return JSON.parse(encoded);
|
|
1703
|
-
}
|
|
1704
|
-
return {};
|
|
1705
|
-
});
|
|
1706
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1707
|
-
const value = await parseBody(errorBody, context);
|
|
1708
|
-
value.message = value.message ?? value.Message;
|
|
1709
|
-
return value;
|
|
1710
|
-
};
|
|
1711
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1712
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1713
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1714
|
-
let cleanValue = rawValue;
|
|
1715
|
-
if (typeof cleanValue === "number") {
|
|
1716
|
-
cleanValue = cleanValue.toString();
|
|
1717
|
-
}
|
|
1718
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1719
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1720
|
-
}
|
|
1721
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1722
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1723
|
-
}
|
|
1724
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1725
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1726
|
-
}
|
|
1727
|
-
return cleanValue;
|
|
1728
|
-
};
|
|
1729
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1730
|
-
if (headerKey !== undefined) {
|
|
1731
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1732
|
-
}
|
|
1733
|
-
if (data.code !== undefined) {
|
|
1734
|
-
return sanitizeErrorCode(data.code);
|
|
1735
|
-
}
|
|
1736
|
-
if (data["__type"] !== undefined) {
|
|
1737
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1738
|
-
}
|
|
1739
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|