@aws-sdk/client-outposts 3.476.0 → 3.478.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/pagination/GetOutpostInstanceTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCatalogItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrdersPaginator.js +2 -24
- package/dist-cjs/pagination/ListOutpostsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSitesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +171 -365
- package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +2 -23
- package/dist-es/pagination/ListAssetsPaginator.js +2 -23
- package/dist-es/pagination/ListCatalogItemsPaginator.js +2 -23
- package/dist-es/pagination/ListOrdersPaginator.js +2 -23
- package/dist-es/pagination/ListOutpostsPaginator.js +2 -23
- package/dist-es/pagination/ListSitesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +172 -366
- package/dist-types/pagination/GetOutpostInstanceTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCatalogItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrdersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOutpostsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSitesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetOutpostInstanceTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCatalogItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrdersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOutpostsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSitesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { OutpostsServiceException as __BaseException } from "../models/OutpostsServiceException";
|
|
5
5
|
export const se_CancelOrderCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {};
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
b.bp("/orders/{OrderId}/cancel");
|
|
9
|
+
b.p("OrderId", () => input.OrderId, "{OrderId}", false);
|
|
10
10
|
let body;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
hostname,
|
|
14
|
-
port,
|
|
15
|
-
method: "POST",
|
|
16
|
-
headers,
|
|
17
|
-
path: resolvedPath,
|
|
18
|
-
body,
|
|
19
|
-
});
|
|
11
|
+
b.m("POST").h(headers).b(body);
|
|
12
|
+
return b.build();
|
|
20
13
|
};
|
|
21
14
|
export const se_CreateOrderCommand = async (input, context) => {
|
|
22
|
-
const
|
|
15
|
+
const b = rb(input, context);
|
|
23
16
|
const headers = {
|
|
24
17
|
"content-type": "application/json",
|
|
25
18
|
};
|
|
26
|
-
|
|
19
|
+
b.bp("/orders");
|
|
27
20
|
let body;
|
|
28
21
|
body = JSON.stringify(take(input, {
|
|
29
22
|
LineItems: (_) => _json(_),
|
|
@@ -31,22 +24,15 @@ export const se_CreateOrderCommand = async (input, context) => {
|
|
|
31
24
|
PaymentOption: [],
|
|
32
25
|
PaymentTerm: [],
|
|
33
26
|
}));
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
hostname,
|
|
37
|
-
port,
|
|
38
|
-
method: "POST",
|
|
39
|
-
headers,
|
|
40
|
-
path: resolvedPath,
|
|
41
|
-
body,
|
|
42
|
-
});
|
|
27
|
+
b.m("POST").h(headers).b(body);
|
|
28
|
+
return b.build();
|
|
43
29
|
};
|
|
44
30
|
export const se_CreateOutpostCommand = async (input, context) => {
|
|
45
|
-
const
|
|
31
|
+
const b = rb(input, context);
|
|
46
32
|
const headers = {
|
|
47
33
|
"content-type": "application/json",
|
|
48
34
|
};
|
|
49
|
-
|
|
35
|
+
b.bp("/outposts");
|
|
50
36
|
let body;
|
|
51
37
|
body = JSON.stringify(take(input, {
|
|
52
38
|
AvailabilityZone: [],
|
|
@@ -57,22 +43,15 @@ export const se_CreateOutpostCommand = async (input, context) => {
|
|
|
57
43
|
SupportedHardwareType: [],
|
|
58
44
|
Tags: (_) => _json(_),
|
|
59
45
|
}));
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
hostname,
|
|
63
|
-
port,
|
|
64
|
-
method: "POST",
|
|
65
|
-
headers,
|
|
66
|
-
path: resolvedPath,
|
|
67
|
-
body,
|
|
68
|
-
});
|
|
46
|
+
b.m("POST").h(headers).b(body);
|
|
47
|
+
return b.build();
|
|
69
48
|
};
|
|
70
49
|
export const se_CreateSiteCommand = async (input, context) => {
|
|
71
|
-
const
|
|
50
|
+
const b = rb(input, context);
|
|
72
51
|
const headers = {
|
|
73
52
|
"content-type": "application/json",
|
|
74
53
|
};
|
|
75
|
-
|
|
54
|
+
b.bp("/sites");
|
|
76
55
|
let body;
|
|
77
56
|
body = JSON.stringify(take(input, {
|
|
78
57
|
Description: [],
|
|
@@ -83,337 +62,197 @@ export const se_CreateSiteCommand = async (input, context) => {
|
|
|
83
62
|
ShippingAddress: (_) => _json(_),
|
|
84
63
|
Tags: (_) => _json(_),
|
|
85
64
|
}));
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
hostname,
|
|
89
|
-
port,
|
|
90
|
-
method: "POST",
|
|
91
|
-
headers,
|
|
92
|
-
path: resolvedPath,
|
|
93
|
-
body,
|
|
94
|
-
});
|
|
65
|
+
b.m("POST").h(headers).b(body);
|
|
66
|
+
return b.build();
|
|
95
67
|
};
|
|
96
68
|
export const se_DeleteOutpostCommand = async (input, context) => {
|
|
97
|
-
const
|
|
69
|
+
const b = rb(input, context);
|
|
98
70
|
const headers = {};
|
|
99
|
-
|
|
100
|
-
|
|
71
|
+
b.bp("/outposts/{OutpostId}");
|
|
72
|
+
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
101
73
|
let body;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
hostname,
|
|
105
|
-
port,
|
|
106
|
-
method: "DELETE",
|
|
107
|
-
headers,
|
|
108
|
-
path: resolvedPath,
|
|
109
|
-
body,
|
|
110
|
-
});
|
|
74
|
+
b.m("DELETE").h(headers).b(body);
|
|
75
|
+
return b.build();
|
|
111
76
|
};
|
|
112
77
|
export const se_DeleteSiteCommand = async (input, context) => {
|
|
113
|
-
const
|
|
78
|
+
const b = rb(input, context);
|
|
114
79
|
const headers = {};
|
|
115
|
-
|
|
116
|
-
|
|
80
|
+
b.bp("/sites/{SiteId}");
|
|
81
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
117
82
|
let body;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
hostname,
|
|
121
|
-
port,
|
|
122
|
-
method: "DELETE",
|
|
123
|
-
headers,
|
|
124
|
-
path: resolvedPath,
|
|
125
|
-
body,
|
|
126
|
-
});
|
|
83
|
+
b.m("DELETE").h(headers).b(body);
|
|
84
|
+
return b.build();
|
|
127
85
|
};
|
|
128
86
|
export const se_GetCatalogItemCommand = async (input, context) => {
|
|
129
|
-
const
|
|
87
|
+
const b = rb(input, context);
|
|
130
88
|
const headers = {};
|
|
131
|
-
|
|
132
|
-
|
|
89
|
+
b.bp("/catalog/item/{CatalogItemId}");
|
|
90
|
+
b.p("CatalogItemId", () => input.CatalogItemId, "{CatalogItemId}", false);
|
|
133
91
|
let body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "GET",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
92
|
+
b.m("GET").h(headers).b(body);
|
|
93
|
+
return b.build();
|
|
143
94
|
};
|
|
144
95
|
export const se_GetConnectionCommand = async (input, context) => {
|
|
145
|
-
const
|
|
96
|
+
const b = rb(input, context);
|
|
146
97
|
const headers = {};
|
|
147
|
-
|
|
148
|
-
|
|
98
|
+
b.bp("/connections/{ConnectionId}");
|
|
99
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
149
100
|
let body;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
hostname,
|
|
153
|
-
port,
|
|
154
|
-
method: "GET",
|
|
155
|
-
headers,
|
|
156
|
-
path: resolvedPath,
|
|
157
|
-
body,
|
|
158
|
-
});
|
|
101
|
+
b.m("GET").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
159
103
|
};
|
|
160
104
|
export const se_GetOrderCommand = async (input, context) => {
|
|
161
|
-
const
|
|
105
|
+
const b = rb(input, context);
|
|
162
106
|
const headers = {};
|
|
163
|
-
|
|
164
|
-
|
|
107
|
+
b.bp("/orders/{OrderId}");
|
|
108
|
+
b.p("OrderId", () => input.OrderId, "{OrderId}", false);
|
|
165
109
|
let body;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
hostname,
|
|
169
|
-
port,
|
|
170
|
-
method: "GET",
|
|
171
|
-
headers,
|
|
172
|
-
path: resolvedPath,
|
|
173
|
-
body,
|
|
174
|
-
});
|
|
110
|
+
b.m("GET").h(headers).b(body);
|
|
111
|
+
return b.build();
|
|
175
112
|
};
|
|
176
113
|
export const se_GetOutpostCommand = async (input, context) => {
|
|
177
|
-
const
|
|
114
|
+
const b = rb(input, context);
|
|
178
115
|
const headers = {};
|
|
179
|
-
|
|
180
|
-
|
|
116
|
+
b.bp("/outposts/{OutpostId}");
|
|
117
|
+
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
181
118
|
let body;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
hostname,
|
|
185
|
-
port,
|
|
186
|
-
method: "GET",
|
|
187
|
-
headers,
|
|
188
|
-
path: resolvedPath,
|
|
189
|
-
body,
|
|
190
|
-
});
|
|
119
|
+
b.m("GET").h(headers).b(body);
|
|
120
|
+
return b.build();
|
|
191
121
|
};
|
|
192
122
|
export const se_GetOutpostInstanceTypesCommand = async (input, context) => {
|
|
193
|
-
const
|
|
123
|
+
const b = rb(input, context);
|
|
194
124
|
const headers = {};
|
|
195
|
-
|
|
196
|
-
|
|
125
|
+
b.bp("/outposts/{OutpostId}/instanceTypes");
|
|
126
|
+
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
197
127
|
const query = map({
|
|
198
|
-
|
|
199
|
-
|
|
128
|
+
[_NT]: [, input[_NT]],
|
|
129
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
200
130
|
});
|
|
201
131
|
let body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
hostname,
|
|
205
|
-
port,
|
|
206
|
-
method: "GET",
|
|
207
|
-
headers,
|
|
208
|
-
path: resolvedPath,
|
|
209
|
-
query,
|
|
210
|
-
body,
|
|
211
|
-
});
|
|
132
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
133
|
+
return b.build();
|
|
212
134
|
};
|
|
213
135
|
export const se_GetSiteCommand = async (input, context) => {
|
|
214
|
-
const
|
|
136
|
+
const b = rb(input, context);
|
|
215
137
|
const headers = {};
|
|
216
|
-
|
|
217
|
-
|
|
138
|
+
b.bp("/sites/{SiteId}");
|
|
139
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
218
140
|
let body;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
hostname,
|
|
222
|
-
port,
|
|
223
|
-
method: "GET",
|
|
224
|
-
headers,
|
|
225
|
-
path: resolvedPath,
|
|
226
|
-
body,
|
|
227
|
-
});
|
|
141
|
+
b.m("GET").h(headers).b(body);
|
|
142
|
+
return b.build();
|
|
228
143
|
};
|
|
229
144
|
export const se_GetSiteAddressCommand = async (input, context) => {
|
|
230
|
-
const
|
|
145
|
+
const b = rb(input, context);
|
|
231
146
|
const headers = {};
|
|
232
|
-
|
|
233
|
-
|
|
147
|
+
b.bp("/sites/{SiteId}/address");
|
|
148
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
234
149
|
const query = map({
|
|
235
|
-
|
|
150
|
+
[_AT]: [, __expectNonNull(input[_AT], `AddressType`)],
|
|
236
151
|
});
|
|
237
152
|
let body;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
hostname,
|
|
241
|
-
port,
|
|
242
|
-
method: "GET",
|
|
243
|
-
headers,
|
|
244
|
-
path: resolvedPath,
|
|
245
|
-
query,
|
|
246
|
-
body,
|
|
247
|
-
});
|
|
153
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
154
|
+
return b.build();
|
|
248
155
|
};
|
|
249
156
|
export const se_ListAssetsCommand = async (input, context) => {
|
|
250
|
-
const
|
|
157
|
+
const b = rb(input, context);
|
|
251
158
|
const headers = {};
|
|
252
|
-
|
|
253
|
-
|
|
159
|
+
b.bp("/outposts/{OutpostIdentifier}/assets");
|
|
160
|
+
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
254
161
|
const query = map({
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
],
|
|
259
|
-
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
260
|
-
NextToken: [, input.NextToken],
|
|
261
|
-
StatusFilter: [
|
|
262
|
-
() => input.StatusFilter !== void 0,
|
|
263
|
-
() => (input.StatusFilter || []).map((_entry) => _entry),
|
|
264
|
-
],
|
|
162
|
+
[_HIF]: [() => input.HostIdFilter !== void 0, () => (input[_HIF] || []).map((_entry) => _entry)],
|
|
163
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
164
|
+
[_NT]: [, input[_NT]],
|
|
165
|
+
[_SF]: [() => input.StatusFilter !== void 0, () => (input[_SF] || []).map((_entry) => _entry)],
|
|
265
166
|
});
|
|
266
167
|
let body;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
hostname,
|
|
270
|
-
port,
|
|
271
|
-
method: "GET",
|
|
272
|
-
headers,
|
|
273
|
-
path: resolvedPath,
|
|
274
|
-
query,
|
|
275
|
-
body,
|
|
276
|
-
});
|
|
168
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
169
|
+
return b.build();
|
|
277
170
|
};
|
|
278
171
|
export const se_ListCatalogItemsCommand = async (input, context) => {
|
|
279
|
-
const
|
|
172
|
+
const b = rb(input, context);
|
|
280
173
|
const headers = {};
|
|
281
|
-
|
|
174
|
+
b.bp("/catalog/items");
|
|
282
175
|
const query = map({
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
],
|
|
289
|
-
SupportedStorageFilter: [
|
|
290
|
-
() => input.SupportedStorageFilter !== void 0,
|
|
291
|
-
() => (input.SupportedStorageFilter || []).map((_entry) => _entry),
|
|
292
|
-
],
|
|
293
|
-
EC2FamilyFilter: [
|
|
294
|
-
() => input.EC2FamilyFilter !== void 0,
|
|
295
|
-
() => (input.EC2FamilyFilter || []).map((_entry) => _entry),
|
|
296
|
-
],
|
|
176
|
+
[_NT]: [, input[_NT]],
|
|
177
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
178
|
+
[_ICF]: [() => input.ItemClassFilter !== void 0, () => (input[_ICF] || []).map((_entry) => _entry)],
|
|
179
|
+
[_SSF]: [() => input.SupportedStorageFilter !== void 0, () => (input[_SSF] || []).map((_entry) => _entry)],
|
|
180
|
+
[_ECFF]: [() => input.EC2FamilyFilter !== void 0, () => (input[_ECFF] || []).map((_entry) => _entry)],
|
|
297
181
|
});
|
|
298
182
|
let body;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
hostname,
|
|
302
|
-
port,
|
|
303
|
-
method: "GET",
|
|
304
|
-
headers,
|
|
305
|
-
path: resolvedPath,
|
|
306
|
-
query,
|
|
307
|
-
body,
|
|
308
|
-
});
|
|
183
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
184
|
+
return b.build();
|
|
309
185
|
};
|
|
310
186
|
export const se_ListOrdersCommand = async (input, context) => {
|
|
311
|
-
const
|
|
187
|
+
const b = rb(input, context);
|
|
312
188
|
const headers = {};
|
|
313
|
-
|
|
189
|
+
b.bp("/list-orders");
|
|
314
190
|
const query = map({
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
191
|
+
[_OIF]: [, input[_OIF]],
|
|
192
|
+
[_NT]: [, input[_NT]],
|
|
193
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
318
194
|
});
|
|
319
195
|
let body;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
hostname,
|
|
323
|
-
port,
|
|
324
|
-
method: "GET",
|
|
325
|
-
headers,
|
|
326
|
-
path: resolvedPath,
|
|
327
|
-
query,
|
|
328
|
-
body,
|
|
329
|
-
});
|
|
196
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
197
|
+
return b.build();
|
|
330
198
|
};
|
|
331
199
|
export const se_ListOutpostsCommand = async (input, context) => {
|
|
332
|
-
const
|
|
200
|
+
const b = rb(input, context);
|
|
333
201
|
const headers = {};
|
|
334
|
-
|
|
202
|
+
b.bp("/outposts");
|
|
335
203
|
const query = map({
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
],
|
|
342
|
-
AvailabilityZoneFilter: [
|
|
343
|
-
() => input.AvailabilityZoneFilter !== void 0,
|
|
344
|
-
() => (input.AvailabilityZoneFilter || []).map((_entry) => _entry),
|
|
345
|
-
],
|
|
346
|
-
AvailabilityZoneIdFilter: [
|
|
204
|
+
[_NT]: [, input[_NT]],
|
|
205
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
206
|
+
[_LCSF]: [() => input.LifeCycleStatusFilter !== void 0, () => (input[_LCSF] || []).map((_entry) => _entry)],
|
|
207
|
+
[_AZF]: [() => input.AvailabilityZoneFilter !== void 0, () => (input[_AZF] || []).map((_entry) => _entry)],
|
|
208
|
+
[_AZIF]: [
|
|
347
209
|
() => input.AvailabilityZoneIdFilter !== void 0,
|
|
348
|
-
() => (input
|
|
210
|
+
() => (input[_AZIF] || []).map((_entry) => _entry),
|
|
349
211
|
],
|
|
350
212
|
});
|
|
351
213
|
let body;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
hostname,
|
|
355
|
-
port,
|
|
356
|
-
method: "GET",
|
|
357
|
-
headers,
|
|
358
|
-
path: resolvedPath,
|
|
359
|
-
query,
|
|
360
|
-
body,
|
|
361
|
-
});
|
|
214
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
215
|
+
return b.build();
|
|
362
216
|
};
|
|
363
217
|
export const se_ListSitesCommand = async (input, context) => {
|
|
364
|
-
const
|
|
218
|
+
const b = rb(input, context);
|
|
365
219
|
const headers = {};
|
|
366
|
-
|
|
220
|
+
b.bp("/sites");
|
|
367
221
|
const query = map({
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
222
|
+
[_NT]: [, input[_NT]],
|
|
223
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
224
|
+
[_OACCF]: [
|
|
371
225
|
() => input.OperatingAddressCountryCodeFilter !== void 0,
|
|
372
|
-
() => (input
|
|
226
|
+
() => (input[_OACCF] || []).map((_entry) => _entry),
|
|
373
227
|
],
|
|
374
|
-
|
|
228
|
+
[_OASORF]: [
|
|
375
229
|
() => input.OperatingAddressStateOrRegionFilter !== void 0,
|
|
376
|
-
() => (input
|
|
230
|
+
() => (input[_OASORF] || []).map((_entry) => _entry),
|
|
377
231
|
],
|
|
378
|
-
|
|
232
|
+
[_OACF]: [
|
|
379
233
|
() => input.OperatingAddressCityFilter !== void 0,
|
|
380
|
-
() => (input
|
|
234
|
+
() => (input[_OACF] || []).map((_entry) => _entry),
|
|
381
235
|
],
|
|
382
236
|
});
|
|
383
237
|
let body;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
hostname,
|
|
387
|
-
port,
|
|
388
|
-
method: "GET",
|
|
389
|
-
headers,
|
|
390
|
-
path: resolvedPath,
|
|
391
|
-
query,
|
|
392
|
-
body,
|
|
393
|
-
});
|
|
238
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
239
|
+
return b.build();
|
|
394
240
|
};
|
|
395
241
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
396
|
-
const
|
|
242
|
+
const b = rb(input, context);
|
|
397
243
|
const headers = {};
|
|
398
|
-
|
|
399
|
-
|
|
244
|
+
b.bp("/tags/{ResourceArn}");
|
|
245
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
400
246
|
let body;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
hostname,
|
|
404
|
-
port,
|
|
405
|
-
method: "GET",
|
|
406
|
-
headers,
|
|
407
|
-
path: resolvedPath,
|
|
408
|
-
body,
|
|
409
|
-
});
|
|
247
|
+
b.m("GET").h(headers).b(body);
|
|
248
|
+
return b.build();
|
|
410
249
|
};
|
|
411
250
|
export const se_StartConnectionCommand = async (input, context) => {
|
|
412
|
-
const
|
|
251
|
+
const b = rb(input, context);
|
|
413
252
|
const headers = {
|
|
414
253
|
"content-type": "application/json",
|
|
415
254
|
};
|
|
416
|
-
|
|
255
|
+
b.bp("/connections");
|
|
417
256
|
let body;
|
|
418
257
|
body = JSON.stringify(take(input, {
|
|
419
258
|
AssetId: [],
|
|
@@ -421,135 +260,92 @@ export const se_StartConnectionCommand = async (input, context) => {
|
|
|
421
260
|
DeviceSerialNumber: [],
|
|
422
261
|
NetworkInterfaceDeviceIndex: [],
|
|
423
262
|
}));
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
hostname,
|
|
427
|
-
port,
|
|
428
|
-
method: "POST",
|
|
429
|
-
headers,
|
|
430
|
-
path: resolvedPath,
|
|
431
|
-
body,
|
|
432
|
-
});
|
|
263
|
+
b.m("POST").h(headers).b(body);
|
|
264
|
+
return b.build();
|
|
433
265
|
};
|
|
434
266
|
export const se_TagResourceCommand = async (input, context) => {
|
|
435
|
-
const
|
|
267
|
+
const b = rb(input, context);
|
|
436
268
|
const headers = {
|
|
437
269
|
"content-type": "application/json",
|
|
438
270
|
};
|
|
439
|
-
|
|
440
|
-
|
|
271
|
+
b.bp("/tags/{ResourceArn}");
|
|
272
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
441
273
|
let body;
|
|
442
274
|
body = JSON.stringify(take(input, {
|
|
443
275
|
Tags: (_) => _json(_),
|
|
444
276
|
}));
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
hostname,
|
|
448
|
-
port,
|
|
449
|
-
method: "POST",
|
|
450
|
-
headers,
|
|
451
|
-
path: resolvedPath,
|
|
452
|
-
body,
|
|
453
|
-
});
|
|
277
|
+
b.m("POST").h(headers).b(body);
|
|
278
|
+
return b.build();
|
|
454
279
|
};
|
|
455
280
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
456
|
-
const
|
|
281
|
+
const b = rb(input, context);
|
|
457
282
|
const headers = {};
|
|
458
|
-
|
|
459
|
-
|
|
283
|
+
b.bp("/tags/{ResourceArn}");
|
|
284
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
460
285
|
const query = map({
|
|
461
|
-
|
|
286
|
+
[_tK]: [
|
|
462
287
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
463
|
-
() => (input
|
|
288
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
464
289
|
],
|
|
465
290
|
});
|
|
466
291
|
let body;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
hostname,
|
|
470
|
-
port,
|
|
471
|
-
method: "DELETE",
|
|
472
|
-
headers,
|
|
473
|
-
path: resolvedPath,
|
|
474
|
-
query,
|
|
475
|
-
body,
|
|
476
|
-
});
|
|
292
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
293
|
+
return b.build();
|
|
477
294
|
};
|
|
478
295
|
export const se_UpdateOutpostCommand = async (input, context) => {
|
|
479
|
-
const
|
|
296
|
+
const b = rb(input, context);
|
|
480
297
|
const headers = {
|
|
481
298
|
"content-type": "application/json",
|
|
482
299
|
};
|
|
483
|
-
|
|
484
|
-
|
|
300
|
+
b.bp("/outposts/{OutpostId}");
|
|
301
|
+
b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
485
302
|
let body;
|
|
486
303
|
body = JSON.stringify(take(input, {
|
|
487
304
|
Description: [],
|
|
488
305
|
Name: [],
|
|
489
306
|
SupportedHardwareType: [],
|
|
490
307
|
}));
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
hostname,
|
|
494
|
-
port,
|
|
495
|
-
method: "PATCH",
|
|
496
|
-
headers,
|
|
497
|
-
path: resolvedPath,
|
|
498
|
-
body,
|
|
499
|
-
});
|
|
308
|
+
b.m("PATCH").h(headers).b(body);
|
|
309
|
+
return b.build();
|
|
500
310
|
};
|
|
501
311
|
export const se_UpdateSiteCommand = async (input, context) => {
|
|
502
|
-
const
|
|
312
|
+
const b = rb(input, context);
|
|
503
313
|
const headers = {
|
|
504
314
|
"content-type": "application/json",
|
|
505
315
|
};
|
|
506
|
-
|
|
507
|
-
|
|
316
|
+
b.bp("/sites/{SiteId}");
|
|
317
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
508
318
|
let body;
|
|
509
319
|
body = JSON.stringify(take(input, {
|
|
510
320
|
Description: [],
|
|
511
321
|
Name: [],
|
|
512
322
|
Notes: [],
|
|
513
323
|
}));
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
hostname,
|
|
517
|
-
port,
|
|
518
|
-
method: "PATCH",
|
|
519
|
-
headers,
|
|
520
|
-
path: resolvedPath,
|
|
521
|
-
body,
|
|
522
|
-
});
|
|
324
|
+
b.m("PATCH").h(headers).b(body);
|
|
325
|
+
return b.build();
|
|
523
326
|
};
|
|
524
327
|
export const se_UpdateSiteAddressCommand = async (input, context) => {
|
|
525
|
-
const
|
|
328
|
+
const b = rb(input, context);
|
|
526
329
|
const headers = {
|
|
527
330
|
"content-type": "application/json",
|
|
528
331
|
};
|
|
529
|
-
|
|
530
|
-
|
|
332
|
+
b.bp("/sites/{SiteId}/address");
|
|
333
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
531
334
|
let body;
|
|
532
335
|
body = JSON.stringify(take(input, {
|
|
533
336
|
Address: (_) => _json(_),
|
|
534
337
|
AddressType: [],
|
|
535
338
|
}));
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
hostname,
|
|
539
|
-
port,
|
|
540
|
-
method: "PUT",
|
|
541
|
-
headers,
|
|
542
|
-
path: resolvedPath,
|
|
543
|
-
body,
|
|
544
|
-
});
|
|
339
|
+
b.m("PUT").h(headers).b(body);
|
|
340
|
+
return b.build();
|
|
545
341
|
};
|
|
546
342
|
export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context) => {
|
|
547
|
-
const
|
|
343
|
+
const b = rb(input, context);
|
|
548
344
|
const headers = {
|
|
549
345
|
"content-type": "application/json",
|
|
550
346
|
};
|
|
551
|
-
|
|
552
|
-
|
|
347
|
+
b.bp("/sites/{SiteId}/rackPhysicalProperties");
|
|
348
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
553
349
|
let body;
|
|
554
350
|
body = JSON.stringify(take(input, {
|
|
555
351
|
FiberOpticCableType: [],
|
|
@@ -562,15 +358,8 @@ export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context)
|
|
|
562
358
|
UplinkCount: [],
|
|
563
359
|
UplinkGbps: [],
|
|
564
360
|
}));
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
hostname,
|
|
568
|
-
port,
|
|
569
|
-
method: "PATCH",
|
|
570
|
-
headers,
|
|
571
|
-
path: resolvedPath,
|
|
572
|
-
body,
|
|
573
|
-
});
|
|
361
|
+
b.m("PATCH").h(headers).b(body);
|
|
362
|
+
return b.build();
|
|
574
363
|
};
|
|
575
364
|
export const de_CancelOrderCommand = async (output, context) => {
|
|
576
365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1835,6 +1624,23 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1835
1624
|
value !== "" &&
|
|
1836
1625
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1837
1626
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1627
|
+
const _AT = "AddressType";
|
|
1628
|
+
const _AZF = "AvailabilityZoneFilter";
|
|
1629
|
+
const _AZIF = "AvailabilityZoneIdFilter";
|
|
1630
|
+
const _ECFF = "EC2FamilyFilter";
|
|
1631
|
+
const _HIF = "HostIdFilter";
|
|
1632
|
+
const _ICF = "ItemClassFilter";
|
|
1633
|
+
const _LCSF = "LifeCycleStatusFilter";
|
|
1634
|
+
const _MR = "MaxResults";
|
|
1635
|
+
const _NT = "NextToken";
|
|
1636
|
+
const _OACCF = "OperatingAddressCountryCodeFilter";
|
|
1637
|
+
const _OACF = "OperatingAddressCityFilter";
|
|
1638
|
+
const _OASORF = "OperatingAddressStateOrRegionFilter";
|
|
1639
|
+
const _OIF = "OutpostIdentifierFilter";
|
|
1640
|
+
const _SF = "StatusFilter";
|
|
1641
|
+
const _SSF = "SupportedStorageFilter";
|
|
1642
|
+
const _TK = "TagKeys";
|
|
1643
|
+
const _tK = "tagKeys";
|
|
1838
1644
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1839
1645
|
if (encoded.length) {
|
|
1840
1646
|
return JSON.parse(encoded);
|