@aws-sdk/client-networkmanager 3.476.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +590 -1214
- package/dist-es/protocols/Aws_restJson1.js +591 -1215
- package/package.json +5 -4
|
@@ -4,133 +4,94 @@ exports.se_GetNetworkResourcesCommand = exports.se_GetNetworkResourceRelationshi
|
|
|
4
4
|
exports.de_CreateTransitGatewayPeeringCommand = exports.de_CreateSiteToSiteVpnAttachmentCommand = exports.de_CreateSiteCommand = exports.de_CreateLinkCommand = exports.de_CreateGlobalNetworkCommand = exports.de_CreateDeviceCommand = exports.de_CreateCoreNetworkCommand = exports.de_CreateConnectPeerCommand = exports.de_CreateConnectionCommand = exports.de_CreateConnectAttachmentCommand = exports.de_AssociateTransitGatewayConnectPeerCommand = exports.de_AssociateLinkCommand = exports.de_AssociateCustomerGatewayCommand = exports.de_AssociateConnectPeerCommand = exports.de_AcceptAttachmentCommand = exports.se_UpdateVpcAttachmentCommand = exports.se_UpdateSiteCommand = exports.se_UpdateNetworkResourceMetadataCommand = exports.se_UpdateLinkCommand = exports.se_UpdateGlobalNetworkCommand = exports.se_UpdateDeviceCommand = exports.se_UpdateCoreNetworkCommand = exports.se_UpdateConnectionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartRouteAnalysisCommand = exports.se_StartOrganizationServiceAccessUpdateCommand = exports.se_RestoreCoreNetworkPolicyVersionCommand = exports.se_RejectAttachmentCommand = exports.se_RegisterTransitGatewayCommand = exports.se_PutResourcePolicyCommand = exports.se_PutCoreNetworkPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPeeringsCommand = exports.se_ListOrganizationServiceAccessStatusCommand = exports.se_ListCoreNetworksCommand = exports.se_ListCoreNetworkPolicyVersionsCommand = exports.se_ListConnectPeersCommand = exports.se_ListAttachmentsCommand = exports.se_GetVpcAttachmentCommand = exports.se_GetTransitGatewayRouteTableAttachmentCommand = exports.se_GetTransitGatewayRegistrationsCommand = exports.se_GetTransitGatewayPeeringCommand = exports.se_GetTransitGatewayConnectPeerAssociationsCommand = exports.se_GetSiteToSiteVpnAttachmentCommand = exports.se_GetSitesCommand = exports.se_GetRouteAnalysisCommand = exports.se_GetResourcePolicyCommand = exports.se_GetNetworkTelemetryCommand = exports.se_GetNetworkRoutesCommand = void 0;
|
|
5
5
|
exports.de_ListCoreNetworksCommand = exports.de_ListCoreNetworkPolicyVersionsCommand = exports.de_ListConnectPeersCommand = exports.de_ListAttachmentsCommand = exports.de_GetVpcAttachmentCommand = exports.de_GetTransitGatewayRouteTableAttachmentCommand = exports.de_GetTransitGatewayRegistrationsCommand = exports.de_GetTransitGatewayPeeringCommand = exports.de_GetTransitGatewayConnectPeerAssociationsCommand = exports.de_GetSiteToSiteVpnAttachmentCommand = exports.de_GetSitesCommand = exports.de_GetRouteAnalysisCommand = exports.de_GetResourcePolicyCommand = exports.de_GetNetworkTelemetryCommand = exports.de_GetNetworkRoutesCommand = exports.de_GetNetworkResourcesCommand = exports.de_GetNetworkResourceRelationshipsCommand = exports.de_GetNetworkResourceCountsCommand = exports.de_GetLinksCommand = exports.de_GetLinkAssociationsCommand = exports.de_GetDevicesCommand = exports.de_GetCustomerGatewayAssociationsCommand = exports.de_GetCoreNetworkPolicyCommand = exports.de_GetCoreNetworkChangeSetCommand = exports.de_GetCoreNetworkChangeEventsCommand = exports.de_GetCoreNetworkCommand = exports.de_GetConnectPeerAssociationsCommand = exports.de_GetConnectPeerCommand = exports.de_GetConnectionsCommand = exports.de_GetConnectAttachmentCommand = exports.de_ExecuteCoreNetworkChangeSetCommand = exports.de_DisassociateTransitGatewayConnectPeerCommand = exports.de_DisassociateLinkCommand = exports.de_DisassociateCustomerGatewayCommand = exports.de_DisassociateConnectPeerCommand = exports.de_DescribeGlobalNetworksCommand = exports.de_DeregisterTransitGatewayCommand = exports.de_DeleteSiteCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeletePeeringCommand = exports.de_DeleteLinkCommand = exports.de_DeleteGlobalNetworkCommand = exports.de_DeleteDeviceCommand = exports.de_DeleteCoreNetworkPolicyVersionCommand = exports.de_DeleteCoreNetworkCommand = exports.de_DeleteConnectPeerCommand = exports.de_DeleteConnectionCommand = exports.de_DeleteAttachmentCommand = exports.de_CreateVpcAttachmentCommand = exports.de_CreateTransitGatewayRouteTableAttachmentCommand = void 0;
|
|
6
6
|
exports.de_UpdateVpcAttachmentCommand = exports.de_UpdateSiteCommand = exports.de_UpdateNetworkResourceMetadataCommand = exports.de_UpdateLinkCommand = exports.de_UpdateGlobalNetworkCommand = exports.de_UpdateDeviceCommand = exports.de_UpdateCoreNetworkCommand = exports.de_UpdateConnectionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartRouteAnalysisCommand = exports.de_StartOrganizationServiceAccessUpdateCommand = exports.de_RestoreCoreNetworkPolicyVersionCommand = exports.de_RejectAttachmentCommand = exports.de_RegisterTransitGatewayCommand = exports.de_PutResourcePolicyCommand = exports.de_PutCoreNetworkPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPeeringsCommand = exports.de_ListOrganizationServiceAccessStatusCommand = void 0;
|
|
7
|
-
const
|
|
7
|
+
const core_1 = require("@smithy/core");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const NetworkManagerServiceException_1 = require("../models/NetworkManagerServiceException");
|
|
12
12
|
const se_AcceptAttachmentCommand = async (input, context) => {
|
|
13
|
-
const
|
|
13
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
14
14
|
const headers = {};
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
b.bp("/attachments/{AttachmentId}/accept");
|
|
16
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
17
17
|
let body;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostname,
|
|
21
|
-
port,
|
|
22
|
-
method: "POST",
|
|
23
|
-
headers,
|
|
24
|
-
path: resolvedPath,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
27
20
|
};
|
|
28
21
|
exports.se_AcceptAttachmentCommand = se_AcceptAttachmentCommand;
|
|
29
22
|
const se_AssociateConnectPeerCommand = async (input, context) => {
|
|
30
|
-
const
|
|
23
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
31
24
|
const headers = {
|
|
32
25
|
"content-type": "application/json",
|
|
33
26
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
27
|
+
b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations");
|
|
28
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
37
29
|
let body;
|
|
38
30
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
31
|
ConnectPeerId: [],
|
|
40
32
|
DeviceId: [],
|
|
41
33
|
LinkId: [],
|
|
42
34
|
}));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "POST",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
35
|
+
b.m("POST").h(headers).b(body);
|
|
36
|
+
return b.build();
|
|
52
37
|
};
|
|
53
38
|
exports.se_AssociateConnectPeerCommand = se_AssociateConnectPeerCommand;
|
|
54
39
|
const se_AssociateCustomerGatewayCommand = async (input, context) => {
|
|
55
|
-
const
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
56
41
|
const headers = {
|
|
57
42
|
"content-type": "application/json",
|
|
58
43
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
44
|
+
b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations");
|
|
45
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
62
46
|
let body;
|
|
63
47
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
48
|
CustomerGatewayArn: [],
|
|
65
49
|
DeviceId: [],
|
|
66
50
|
LinkId: [],
|
|
67
51
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
52
|
+
b.m("POST").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
77
54
|
};
|
|
78
55
|
exports.se_AssociateCustomerGatewayCommand = se_AssociateCustomerGatewayCommand;
|
|
79
56
|
const se_AssociateLinkCommand = async (input, context) => {
|
|
80
|
-
const
|
|
57
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
81
58
|
const headers = {
|
|
82
59
|
"content-type": "application/json",
|
|
83
60
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
61
|
+
b.bp("/global-networks/{GlobalNetworkId}/link-associations");
|
|
62
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
87
63
|
let body;
|
|
88
64
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
89
65
|
DeviceId: [],
|
|
90
66
|
LinkId: [],
|
|
91
67
|
}));
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
hostname,
|
|
95
|
-
port,
|
|
96
|
-
method: "POST",
|
|
97
|
-
headers,
|
|
98
|
-
path: resolvedPath,
|
|
99
|
-
body,
|
|
100
|
-
});
|
|
68
|
+
b.m("POST").h(headers).b(body);
|
|
69
|
+
return b.build();
|
|
101
70
|
};
|
|
102
71
|
exports.se_AssociateLinkCommand = se_AssociateLinkCommand;
|
|
103
72
|
const se_AssociateTransitGatewayConnectPeerCommand = async (input, context) => {
|
|
104
|
-
const
|
|
73
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
74
|
const headers = {
|
|
106
75
|
"content-type": "application/json",
|
|
107
76
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
77
|
+
b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations");
|
|
78
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
111
79
|
let body;
|
|
112
80
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
113
81
|
DeviceId: [],
|
|
114
82
|
LinkId: [],
|
|
115
83
|
TransitGatewayConnectPeerArn: [],
|
|
116
84
|
}));
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
hostname,
|
|
120
|
-
port,
|
|
121
|
-
method: "POST",
|
|
122
|
-
headers,
|
|
123
|
-
path: resolvedPath,
|
|
124
|
-
body,
|
|
125
|
-
});
|
|
85
|
+
b.m("POST").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
126
87
|
};
|
|
127
88
|
exports.se_AssociateTransitGatewayConnectPeerCommand = se_AssociateTransitGatewayConnectPeerCommand;
|
|
128
89
|
const se_CreateConnectAttachmentCommand = async (input, context) => {
|
|
129
|
-
const
|
|
90
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
130
91
|
const headers = {
|
|
131
92
|
"content-type": "application/json",
|
|
132
93
|
};
|
|
133
|
-
|
|
94
|
+
b.bp("/connect-attachments");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
136
97
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -140,25 +101,17 @@ const se_CreateConnectAttachmentCommand = async (input, context) => {
|
|
|
140
101
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
141
102
|
TransportAttachmentId: [],
|
|
142
103
|
}));
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
hostname,
|
|
146
|
-
port,
|
|
147
|
-
method: "POST",
|
|
148
|
-
headers,
|
|
149
|
-
path: resolvedPath,
|
|
150
|
-
body,
|
|
151
|
-
});
|
|
104
|
+
b.m("POST").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
152
106
|
};
|
|
153
107
|
exports.se_CreateConnectAttachmentCommand = se_CreateConnectAttachmentCommand;
|
|
154
108
|
const se_CreateConnectionCommand = async (input, context) => {
|
|
155
|
-
const
|
|
109
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
156
110
|
const headers = {
|
|
157
111
|
"content-type": "application/json",
|
|
158
112
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
113
|
+
b.bp("/global-networks/{GlobalNetworkId}/connections");
|
|
114
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
162
115
|
let body;
|
|
163
116
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
164
117
|
ConnectedDeviceId: [],
|
|
@@ -168,23 +121,16 @@ const se_CreateConnectionCommand = async (input, context) => {
|
|
|
168
121
|
LinkId: [],
|
|
169
122
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
170
123
|
}));
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
hostname,
|
|
174
|
-
port,
|
|
175
|
-
method: "POST",
|
|
176
|
-
headers,
|
|
177
|
-
path: resolvedPath,
|
|
178
|
-
body,
|
|
179
|
-
});
|
|
124
|
+
b.m("POST").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
180
126
|
};
|
|
181
127
|
exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
|
|
182
128
|
const se_CreateConnectPeerCommand = async (input, context) => {
|
|
183
|
-
const
|
|
129
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
184
130
|
const headers = {
|
|
185
131
|
"content-type": "application/json",
|
|
186
132
|
};
|
|
187
|
-
|
|
133
|
+
b.bp("/connect-peers");
|
|
188
134
|
let body;
|
|
189
135
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
190
136
|
BgpOptions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -196,23 +142,16 @@ const se_CreateConnectPeerCommand = async (input, context) => {
|
|
|
196
142
|
SubnetArn: [],
|
|
197
143
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
198
144
|
}));
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
hostname,
|
|
202
|
-
port,
|
|
203
|
-
method: "POST",
|
|
204
|
-
headers,
|
|
205
|
-
path: resolvedPath,
|
|
206
|
-
body,
|
|
207
|
-
});
|
|
145
|
+
b.m("POST").h(headers).b(body);
|
|
146
|
+
return b.build();
|
|
208
147
|
};
|
|
209
148
|
exports.se_CreateConnectPeerCommand = se_CreateConnectPeerCommand;
|
|
210
149
|
const se_CreateCoreNetworkCommand = async (input, context) => {
|
|
211
|
-
const
|
|
150
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
212
151
|
const headers = {
|
|
213
152
|
"content-type": "application/json",
|
|
214
153
|
};
|
|
215
|
-
|
|
154
|
+
b.bp("/core-networks");
|
|
216
155
|
let body;
|
|
217
156
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
218
157
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -221,25 +160,17 @@ const se_CreateCoreNetworkCommand = async (input, context) => {
|
|
|
221
160
|
PolicyDocument: [],
|
|
222
161
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
223
162
|
}));
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
hostname,
|
|
227
|
-
port,
|
|
228
|
-
method: "POST",
|
|
229
|
-
headers,
|
|
230
|
-
path: resolvedPath,
|
|
231
|
-
body,
|
|
232
|
-
});
|
|
163
|
+
b.m("POST").h(headers).b(body);
|
|
164
|
+
return b.build();
|
|
233
165
|
};
|
|
234
166
|
exports.se_CreateCoreNetworkCommand = se_CreateCoreNetworkCommand;
|
|
235
167
|
const se_CreateDeviceCommand = async (input, context) => {
|
|
236
|
-
const
|
|
168
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
237
169
|
const headers = {
|
|
238
170
|
"content-type": "application/json",
|
|
239
171
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
172
|
+
b.bp("/global-networks/{GlobalNetworkId}/devices");
|
|
173
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
243
174
|
let body;
|
|
244
175
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
245
176
|
AWSLocation: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -252,46 +183,32 @@ const se_CreateDeviceCommand = async (input, context) => {
|
|
|
252
183
|
Type: [],
|
|
253
184
|
Vendor: [],
|
|
254
185
|
}));
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
hostname,
|
|
258
|
-
port,
|
|
259
|
-
method: "POST",
|
|
260
|
-
headers,
|
|
261
|
-
path: resolvedPath,
|
|
262
|
-
body,
|
|
263
|
-
});
|
|
186
|
+
b.m("POST").h(headers).b(body);
|
|
187
|
+
return b.build();
|
|
264
188
|
};
|
|
265
189
|
exports.se_CreateDeviceCommand = se_CreateDeviceCommand;
|
|
266
190
|
const se_CreateGlobalNetworkCommand = async (input, context) => {
|
|
267
|
-
const
|
|
191
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
268
192
|
const headers = {
|
|
269
193
|
"content-type": "application/json",
|
|
270
194
|
};
|
|
271
|
-
|
|
195
|
+
b.bp("/global-networks");
|
|
272
196
|
let body;
|
|
273
197
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
274
198
|
Description: [],
|
|
275
199
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
276
200
|
}));
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
hostname,
|
|
280
|
-
port,
|
|
281
|
-
method: "POST",
|
|
282
|
-
headers,
|
|
283
|
-
path: resolvedPath,
|
|
284
|
-
body,
|
|
285
|
-
});
|
|
201
|
+
b.m("POST").h(headers).b(body);
|
|
202
|
+
return b.build();
|
|
286
203
|
};
|
|
287
204
|
exports.se_CreateGlobalNetworkCommand = se_CreateGlobalNetworkCommand;
|
|
288
205
|
const se_CreateLinkCommand = async (input, context) => {
|
|
289
|
-
const
|
|
206
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
207
|
const headers = {
|
|
291
208
|
"content-type": "application/json",
|
|
292
209
|
};
|
|
293
|
-
|
|
294
|
-
|
|
210
|
+
b.bp("/global-networks/{GlobalNetworkId}/links");
|
|
211
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
295
212
|
let body;
|
|
296
213
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
297
214
|
Bandwidth: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -301,47 +218,33 @@ const se_CreateLinkCommand = async (input, context) => {
|
|
|
301
218
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
302
219
|
Type: [],
|
|
303
220
|
}));
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
hostname,
|
|
307
|
-
port,
|
|
308
|
-
method: "POST",
|
|
309
|
-
headers,
|
|
310
|
-
path: resolvedPath,
|
|
311
|
-
body,
|
|
312
|
-
});
|
|
221
|
+
b.m("POST").h(headers).b(body);
|
|
222
|
+
return b.build();
|
|
313
223
|
};
|
|
314
224
|
exports.se_CreateLinkCommand = se_CreateLinkCommand;
|
|
315
225
|
const se_CreateSiteCommand = async (input, context) => {
|
|
316
|
-
const
|
|
226
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
317
227
|
const headers = {
|
|
318
228
|
"content-type": "application/json",
|
|
319
229
|
};
|
|
320
|
-
|
|
321
|
-
|
|
230
|
+
b.bp("/global-networks/{GlobalNetworkId}/sites");
|
|
231
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
322
232
|
let body;
|
|
323
233
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
324
234
|
Description: [],
|
|
325
235
|
Location: (_) => (0, smithy_client_1._json)(_),
|
|
326
236
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
327
237
|
}));
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
hostname,
|
|
331
|
-
port,
|
|
332
|
-
method: "POST",
|
|
333
|
-
headers,
|
|
334
|
-
path: resolvedPath,
|
|
335
|
-
body,
|
|
336
|
-
});
|
|
238
|
+
b.m("POST").h(headers).b(body);
|
|
239
|
+
return b.build();
|
|
337
240
|
};
|
|
338
241
|
exports.se_CreateSiteCommand = se_CreateSiteCommand;
|
|
339
242
|
const se_CreateSiteToSiteVpnAttachmentCommand = async (input, context) => {
|
|
340
|
-
const
|
|
243
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
341
244
|
const headers = {
|
|
342
245
|
"content-type": "application/json",
|
|
343
246
|
};
|
|
344
|
-
|
|
247
|
+
b.bp("/site-to-site-vpn-attachments");
|
|
345
248
|
let body;
|
|
346
249
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
347
250
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -349,23 +252,16 @@ const se_CreateSiteToSiteVpnAttachmentCommand = async (input, context) => {
|
|
|
349
252
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
350
253
|
VpnConnectionArn: [],
|
|
351
254
|
}));
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
hostname,
|
|
355
|
-
port,
|
|
356
|
-
method: "POST",
|
|
357
|
-
headers,
|
|
358
|
-
path: resolvedPath,
|
|
359
|
-
body,
|
|
360
|
-
});
|
|
255
|
+
b.m("POST").h(headers).b(body);
|
|
256
|
+
return b.build();
|
|
361
257
|
};
|
|
362
258
|
exports.se_CreateSiteToSiteVpnAttachmentCommand = se_CreateSiteToSiteVpnAttachmentCommand;
|
|
363
259
|
const se_CreateTransitGatewayPeeringCommand = async (input, context) => {
|
|
364
|
-
const
|
|
260
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
365
261
|
const headers = {
|
|
366
262
|
"content-type": "application/json",
|
|
367
263
|
};
|
|
368
|
-
|
|
264
|
+
b.bp("/transit-gateway-peerings");
|
|
369
265
|
let body;
|
|
370
266
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
371
267
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -373,23 +269,16 @@ const se_CreateTransitGatewayPeeringCommand = async (input, context) => {
|
|
|
373
269
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
374
270
|
TransitGatewayArn: [],
|
|
375
271
|
}));
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
hostname,
|
|
379
|
-
port,
|
|
380
|
-
method: "POST",
|
|
381
|
-
headers,
|
|
382
|
-
path: resolvedPath,
|
|
383
|
-
body,
|
|
384
|
-
});
|
|
272
|
+
b.m("POST").h(headers).b(body);
|
|
273
|
+
return b.build();
|
|
385
274
|
};
|
|
386
275
|
exports.se_CreateTransitGatewayPeeringCommand = se_CreateTransitGatewayPeeringCommand;
|
|
387
276
|
const se_CreateTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
|
|
388
|
-
const
|
|
277
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
389
278
|
const headers = {
|
|
390
279
|
"content-type": "application/json",
|
|
391
280
|
};
|
|
392
|
-
|
|
281
|
+
b.bp("/transit-gateway-route-table-attachments");
|
|
393
282
|
let body;
|
|
394
283
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
395
284
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -397,23 +286,16 @@ const se_CreateTransitGatewayRouteTableAttachmentCommand = async (input, context
|
|
|
397
286
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
398
287
|
TransitGatewayRouteTableArn: [],
|
|
399
288
|
}));
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
hostname,
|
|
403
|
-
port,
|
|
404
|
-
method: "POST",
|
|
405
|
-
headers,
|
|
406
|
-
path: resolvedPath,
|
|
407
|
-
body,
|
|
408
|
-
});
|
|
289
|
+
b.m("POST").h(headers).b(body);
|
|
290
|
+
return b.build();
|
|
409
291
|
};
|
|
410
292
|
exports.se_CreateTransitGatewayRouteTableAttachmentCommand = se_CreateTransitGatewayRouteTableAttachmentCommand;
|
|
411
293
|
const se_CreateVpcAttachmentCommand = async (input, context) => {
|
|
412
|
-
const
|
|
294
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
413
295
|
const headers = {
|
|
414
296
|
"content-type": "application/json",
|
|
415
297
|
};
|
|
416
|
-
|
|
298
|
+
b.bp("/vpc-attachments");
|
|
417
299
|
let body;
|
|
418
300
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
419
301
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -423,727 +305,440 @@ const se_CreateVpcAttachmentCommand = async (input, context) => {
|
|
|
423
305
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
424
306
|
VpcArn: [],
|
|
425
307
|
}));
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
hostname,
|
|
429
|
-
port,
|
|
430
|
-
method: "POST",
|
|
431
|
-
headers,
|
|
432
|
-
path: resolvedPath,
|
|
433
|
-
body,
|
|
434
|
-
});
|
|
308
|
+
b.m("POST").h(headers).b(body);
|
|
309
|
+
return b.build();
|
|
435
310
|
};
|
|
436
311
|
exports.se_CreateVpcAttachmentCommand = se_CreateVpcAttachmentCommand;
|
|
437
312
|
const se_DeleteAttachmentCommand = async (input, context) => {
|
|
438
|
-
const
|
|
313
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
439
314
|
const headers = {};
|
|
440
|
-
|
|
441
|
-
|
|
315
|
+
b.bp("/attachments/{AttachmentId}");
|
|
316
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
442
317
|
let body;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
hostname,
|
|
446
|
-
port,
|
|
447
|
-
method: "DELETE",
|
|
448
|
-
headers,
|
|
449
|
-
path: resolvedPath,
|
|
450
|
-
body,
|
|
451
|
-
});
|
|
318
|
+
b.m("DELETE").h(headers).b(body);
|
|
319
|
+
return b.build();
|
|
452
320
|
};
|
|
453
321
|
exports.se_DeleteAttachmentCommand = se_DeleteAttachmentCommand;
|
|
454
322
|
const se_DeleteConnectionCommand = async (input, context) => {
|
|
455
|
-
const
|
|
323
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
456
324
|
const headers = {};
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
325
|
+
b.bp("/global-networks/{GlobalNetworkId}/connections/{ConnectionId}");
|
|
326
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
327
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
461
328
|
let body;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
hostname,
|
|
465
|
-
port,
|
|
466
|
-
method: "DELETE",
|
|
467
|
-
headers,
|
|
468
|
-
path: resolvedPath,
|
|
469
|
-
body,
|
|
470
|
-
});
|
|
329
|
+
b.m("DELETE").h(headers).b(body);
|
|
330
|
+
return b.build();
|
|
471
331
|
};
|
|
472
332
|
exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
|
|
473
333
|
const se_DeleteConnectPeerCommand = async (input, context) => {
|
|
474
|
-
const
|
|
334
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
475
335
|
const headers = {};
|
|
476
|
-
|
|
477
|
-
|
|
336
|
+
b.bp("/connect-peers/{ConnectPeerId}");
|
|
337
|
+
b.p("ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
|
|
478
338
|
let body;
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
hostname,
|
|
482
|
-
port,
|
|
483
|
-
method: "DELETE",
|
|
484
|
-
headers,
|
|
485
|
-
path: resolvedPath,
|
|
486
|
-
body,
|
|
487
|
-
});
|
|
339
|
+
b.m("DELETE").h(headers).b(body);
|
|
340
|
+
return b.build();
|
|
488
341
|
};
|
|
489
342
|
exports.se_DeleteConnectPeerCommand = se_DeleteConnectPeerCommand;
|
|
490
343
|
const se_DeleteCoreNetworkCommand = async (input, context) => {
|
|
491
|
-
const
|
|
344
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
492
345
|
const headers = {};
|
|
493
|
-
|
|
494
|
-
|
|
346
|
+
b.bp("/core-networks/{CoreNetworkId}");
|
|
347
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
495
348
|
let body;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
hostname,
|
|
499
|
-
port,
|
|
500
|
-
method: "DELETE",
|
|
501
|
-
headers,
|
|
502
|
-
path: resolvedPath,
|
|
503
|
-
body,
|
|
504
|
-
});
|
|
349
|
+
b.m("DELETE").h(headers).b(body);
|
|
350
|
+
return b.build();
|
|
505
351
|
};
|
|
506
352
|
exports.se_DeleteCoreNetworkCommand = se_DeleteCoreNetworkCommand;
|
|
507
353
|
const se_DeleteCoreNetworkPolicyVersionCommand = async (input, context) => {
|
|
508
|
-
const
|
|
354
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
509
355
|
const headers = {};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
356
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}");
|
|
357
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
358
|
+
b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
514
359
|
let body;
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
hostname,
|
|
518
|
-
port,
|
|
519
|
-
method: "DELETE",
|
|
520
|
-
headers,
|
|
521
|
-
path: resolvedPath,
|
|
522
|
-
body,
|
|
523
|
-
});
|
|
360
|
+
b.m("DELETE").h(headers).b(body);
|
|
361
|
+
return b.build();
|
|
524
362
|
};
|
|
525
363
|
exports.se_DeleteCoreNetworkPolicyVersionCommand = se_DeleteCoreNetworkPolicyVersionCommand;
|
|
526
364
|
const se_DeleteDeviceCommand = async (input, context) => {
|
|
527
|
-
const
|
|
365
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
528
366
|
const headers = {};
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
367
|
+
b.bp("/global-networks/{GlobalNetworkId}/devices/{DeviceId}");
|
|
368
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
369
|
+
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
533
370
|
let body;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
hostname,
|
|
537
|
-
port,
|
|
538
|
-
method: "DELETE",
|
|
539
|
-
headers,
|
|
540
|
-
path: resolvedPath,
|
|
541
|
-
body,
|
|
542
|
-
});
|
|
371
|
+
b.m("DELETE").h(headers).b(body);
|
|
372
|
+
return b.build();
|
|
543
373
|
};
|
|
544
374
|
exports.se_DeleteDeviceCommand = se_DeleteDeviceCommand;
|
|
545
375
|
const se_DeleteGlobalNetworkCommand = async (input, context) => {
|
|
546
|
-
const
|
|
376
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
547
377
|
const headers = {};
|
|
548
|
-
|
|
549
|
-
|
|
378
|
+
b.bp("/global-networks/{GlobalNetworkId}");
|
|
379
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
550
380
|
let body;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
hostname,
|
|
554
|
-
port,
|
|
555
|
-
method: "DELETE",
|
|
556
|
-
headers,
|
|
557
|
-
path: resolvedPath,
|
|
558
|
-
body,
|
|
559
|
-
});
|
|
381
|
+
b.m("DELETE").h(headers).b(body);
|
|
382
|
+
return b.build();
|
|
560
383
|
};
|
|
561
384
|
exports.se_DeleteGlobalNetworkCommand = se_DeleteGlobalNetworkCommand;
|
|
562
385
|
const se_DeleteLinkCommand = async (input, context) => {
|
|
563
|
-
const
|
|
386
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
564
387
|
const headers = {};
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LinkId", () => input.LinkId, "{LinkId}", false);
|
|
388
|
+
b.bp("/global-networks/{GlobalNetworkId}/links/{LinkId}");
|
|
389
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
390
|
+
b.p("LinkId", () => input.LinkId, "{LinkId}", false);
|
|
569
391
|
let body;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
hostname,
|
|
573
|
-
port,
|
|
574
|
-
method: "DELETE",
|
|
575
|
-
headers,
|
|
576
|
-
path: resolvedPath,
|
|
577
|
-
body,
|
|
578
|
-
});
|
|
392
|
+
b.m("DELETE").h(headers).b(body);
|
|
393
|
+
return b.build();
|
|
579
394
|
};
|
|
580
395
|
exports.se_DeleteLinkCommand = se_DeleteLinkCommand;
|
|
581
396
|
const se_DeletePeeringCommand = async (input, context) => {
|
|
582
|
-
const
|
|
397
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
583
398
|
const headers = {};
|
|
584
|
-
|
|
585
|
-
|
|
399
|
+
b.bp("/peerings/{PeeringId}");
|
|
400
|
+
b.p("PeeringId", () => input.PeeringId, "{PeeringId}", false);
|
|
586
401
|
let body;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
hostname,
|
|
590
|
-
port,
|
|
591
|
-
method: "DELETE",
|
|
592
|
-
headers,
|
|
593
|
-
path: resolvedPath,
|
|
594
|
-
body,
|
|
595
|
-
});
|
|
402
|
+
b.m("DELETE").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
596
404
|
};
|
|
597
405
|
exports.se_DeletePeeringCommand = se_DeletePeeringCommand;
|
|
598
406
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
599
|
-
const
|
|
407
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
600
408
|
const headers = {};
|
|
601
|
-
|
|
602
|
-
|
|
409
|
+
b.bp("/resource-policy/{ResourceArn}");
|
|
410
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
603
411
|
let body;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
hostname,
|
|
607
|
-
port,
|
|
608
|
-
method: "DELETE",
|
|
609
|
-
headers,
|
|
610
|
-
path: resolvedPath,
|
|
611
|
-
body,
|
|
612
|
-
});
|
|
412
|
+
b.m("DELETE").h(headers).b(body);
|
|
413
|
+
return b.build();
|
|
613
414
|
};
|
|
614
415
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
615
416
|
const se_DeleteSiteCommand = async (input, context) => {
|
|
616
|
-
const
|
|
417
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
617
418
|
const headers = {};
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
419
|
+
b.bp("/global-networks/{GlobalNetworkId}/sites/{SiteId}");
|
|
420
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
421
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
622
422
|
let body;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
hostname,
|
|
626
|
-
port,
|
|
627
|
-
method: "DELETE",
|
|
628
|
-
headers,
|
|
629
|
-
path: resolvedPath,
|
|
630
|
-
body,
|
|
631
|
-
});
|
|
423
|
+
b.m("DELETE").h(headers).b(body);
|
|
424
|
+
return b.build();
|
|
632
425
|
};
|
|
633
426
|
exports.se_DeleteSiteCommand = se_DeleteSiteCommand;
|
|
634
427
|
const se_DeregisterTransitGatewayCommand = async (input, context) => {
|
|
635
|
-
const
|
|
428
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
636
429
|
const headers = {};
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransitGatewayArn", () => input.TransitGatewayArn, "{TransitGatewayArn}", false);
|
|
430
|
+
b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations/{TransitGatewayArn}");
|
|
431
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
432
|
+
b.p("TransitGatewayArn", () => input.TransitGatewayArn, "{TransitGatewayArn}", false);
|
|
641
433
|
let body;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
hostname,
|
|
645
|
-
port,
|
|
646
|
-
method: "DELETE",
|
|
647
|
-
headers,
|
|
648
|
-
path: resolvedPath,
|
|
649
|
-
body,
|
|
650
|
-
});
|
|
434
|
+
b.m("DELETE").h(headers).b(body);
|
|
435
|
+
return b.build();
|
|
651
436
|
};
|
|
652
437
|
exports.se_DeregisterTransitGatewayCommand = se_DeregisterTransitGatewayCommand;
|
|
653
438
|
const se_DescribeGlobalNetworksCommand = async (input, context) => {
|
|
654
|
-
const
|
|
439
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
655
440
|
const headers = {};
|
|
656
|
-
|
|
441
|
+
b.bp("/global-networks");
|
|
657
442
|
const query = (0, smithy_client_1.map)({
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
],
|
|
662
|
-
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
663
|
-
nextToken: [, input.NextToken],
|
|
443
|
+
[_gNI]: [() => input.GlobalNetworkIds !== void 0, () => (input[_GNI] || []).map((_entry) => _entry)],
|
|
444
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
445
|
+
[_nT]: [, input[_NT]],
|
|
664
446
|
});
|
|
665
447
|
let body;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
hostname,
|
|
669
|
-
port,
|
|
670
|
-
method: "GET",
|
|
671
|
-
headers,
|
|
672
|
-
path: resolvedPath,
|
|
673
|
-
query,
|
|
674
|
-
body,
|
|
675
|
-
});
|
|
448
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
449
|
+
return b.build();
|
|
676
450
|
};
|
|
677
451
|
exports.se_DescribeGlobalNetworksCommand = se_DescribeGlobalNetworksCommand;
|
|
678
452
|
const se_DisassociateConnectPeerCommand = async (input, context) => {
|
|
679
|
-
const
|
|
453
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
680
454
|
const headers = {};
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
|
|
455
|
+
b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations/{ConnectPeerId}");
|
|
456
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
457
|
+
b.p("ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
|
|
685
458
|
let body;
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
hostname,
|
|
689
|
-
port,
|
|
690
|
-
method: "DELETE",
|
|
691
|
-
headers,
|
|
692
|
-
path: resolvedPath,
|
|
693
|
-
body,
|
|
694
|
-
});
|
|
459
|
+
b.m("DELETE").h(headers).b(body);
|
|
460
|
+
return b.build();
|
|
695
461
|
};
|
|
696
462
|
exports.se_DisassociateConnectPeerCommand = se_DisassociateConnectPeerCommand;
|
|
697
463
|
const se_DisassociateCustomerGatewayCommand = async (input, context) => {
|
|
698
|
-
const
|
|
464
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
699
465
|
const headers = {};
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CustomerGatewayArn", () => input.CustomerGatewayArn, "{CustomerGatewayArn}", false);
|
|
466
|
+
b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations/{CustomerGatewayArn}");
|
|
467
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
468
|
+
b.p("CustomerGatewayArn", () => input.CustomerGatewayArn, "{CustomerGatewayArn}", false);
|
|
704
469
|
let body;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
hostname,
|
|
708
|
-
port,
|
|
709
|
-
method: "DELETE",
|
|
710
|
-
headers,
|
|
711
|
-
path: resolvedPath,
|
|
712
|
-
body,
|
|
713
|
-
});
|
|
470
|
+
b.m("DELETE").h(headers).b(body);
|
|
471
|
+
return b.build();
|
|
714
472
|
};
|
|
715
473
|
exports.se_DisassociateCustomerGatewayCommand = se_DisassociateCustomerGatewayCommand;
|
|
716
474
|
const se_DisassociateLinkCommand = async (input, context) => {
|
|
717
|
-
const
|
|
475
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
718
476
|
const headers = {};
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
477
|
+
b.bp("/global-networks/{GlobalNetworkId}/link-associations");
|
|
478
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
722
479
|
const query = (0, smithy_client_1.map)({
|
|
723
|
-
|
|
724
|
-
|
|
480
|
+
[_dI]: [, (0, smithy_client_1.expectNonNull)(input[_DI], `DeviceId`)],
|
|
481
|
+
[_lI]: [, (0, smithy_client_1.expectNonNull)(input[_LI], `LinkId`)],
|
|
725
482
|
});
|
|
726
483
|
let body;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
hostname,
|
|
730
|
-
port,
|
|
731
|
-
method: "DELETE",
|
|
732
|
-
headers,
|
|
733
|
-
path: resolvedPath,
|
|
734
|
-
query,
|
|
735
|
-
body,
|
|
736
|
-
});
|
|
484
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
485
|
+
return b.build();
|
|
737
486
|
};
|
|
738
487
|
exports.se_DisassociateLinkCommand = se_DisassociateLinkCommand;
|
|
739
488
|
const se_DisassociateTransitGatewayConnectPeerCommand = async (input, context) => {
|
|
740
|
-
const
|
|
489
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
741
490
|
const headers = {};
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransitGatewayConnectPeerArn", () => input.TransitGatewayConnectPeerArn, "{TransitGatewayConnectPeerArn}", false);
|
|
491
|
+
b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations/{TransitGatewayConnectPeerArn}");
|
|
492
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
493
|
+
b.p("TransitGatewayConnectPeerArn", () => input.TransitGatewayConnectPeerArn, "{TransitGatewayConnectPeerArn}", false);
|
|
746
494
|
let body;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
hostname,
|
|
750
|
-
port,
|
|
751
|
-
method: "DELETE",
|
|
752
|
-
headers,
|
|
753
|
-
path: resolvedPath,
|
|
754
|
-
body,
|
|
755
|
-
});
|
|
495
|
+
b.m("DELETE").h(headers).b(body);
|
|
496
|
+
return b.build();
|
|
756
497
|
};
|
|
757
498
|
exports.se_DisassociateTransitGatewayConnectPeerCommand = se_DisassociateTransitGatewayConnectPeerCommand;
|
|
758
499
|
const se_ExecuteCoreNetworkChangeSetCommand = async (input, context) => {
|
|
759
|
-
const
|
|
500
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
760
501
|
const headers = {};
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
502
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}/execute");
|
|
503
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
504
|
+
b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
765
505
|
let body;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
hostname,
|
|
769
|
-
port,
|
|
770
|
-
method: "POST",
|
|
771
|
-
headers,
|
|
772
|
-
path: resolvedPath,
|
|
773
|
-
body,
|
|
774
|
-
});
|
|
506
|
+
b.m("POST").h(headers).b(body);
|
|
507
|
+
return b.build();
|
|
775
508
|
};
|
|
776
509
|
exports.se_ExecuteCoreNetworkChangeSetCommand = se_ExecuteCoreNetworkChangeSetCommand;
|
|
777
510
|
const se_GetConnectAttachmentCommand = async (input, context) => {
|
|
778
|
-
const
|
|
511
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
779
512
|
const headers = {};
|
|
780
|
-
|
|
781
|
-
|
|
513
|
+
b.bp("/connect-attachments/{AttachmentId}");
|
|
514
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
782
515
|
let body;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
hostname,
|
|
786
|
-
port,
|
|
787
|
-
method: "GET",
|
|
788
|
-
headers,
|
|
789
|
-
path: resolvedPath,
|
|
790
|
-
body,
|
|
791
|
-
});
|
|
516
|
+
b.m("GET").h(headers).b(body);
|
|
517
|
+
return b.build();
|
|
792
518
|
};
|
|
793
519
|
exports.se_GetConnectAttachmentCommand = se_GetConnectAttachmentCommand;
|
|
794
520
|
const se_GetConnectionsCommand = async (input, context) => {
|
|
795
|
-
const
|
|
521
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
796
522
|
const headers = {};
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
523
|
+
b.bp("/global-networks/{GlobalNetworkId}/connections");
|
|
524
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
800
525
|
const query = (0, smithy_client_1.map)({
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
],
|
|
805
|
-
deviceId: [, input.DeviceId],
|
|
806
|
-
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
807
|
-
nextToken: [, input.NextToken],
|
|
526
|
+
[_cI]: [() => input.ConnectionIds !== void 0, () => (input[_CI] || []).map((_entry) => _entry)],
|
|
527
|
+
[_dI]: [, input[_DI]],
|
|
528
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
529
|
+
[_nT]: [, input[_NT]],
|
|
808
530
|
});
|
|
809
531
|
let body;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
hostname,
|
|
813
|
-
port,
|
|
814
|
-
method: "GET",
|
|
815
|
-
headers,
|
|
816
|
-
path: resolvedPath,
|
|
817
|
-
query,
|
|
818
|
-
body,
|
|
819
|
-
});
|
|
532
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
533
|
+
return b.build();
|
|
820
534
|
};
|
|
821
535
|
exports.se_GetConnectionsCommand = se_GetConnectionsCommand;
|
|
822
536
|
const se_GetConnectPeerCommand = async (input, context) => {
|
|
823
|
-
const
|
|
537
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
824
538
|
const headers = {};
|
|
825
|
-
|
|
826
|
-
|
|
539
|
+
b.bp("/connect-peers/{ConnectPeerId}");
|
|
540
|
+
b.p("ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
|
|
827
541
|
let body;
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
hostname,
|
|
831
|
-
port,
|
|
832
|
-
method: "GET",
|
|
833
|
-
headers,
|
|
834
|
-
path: resolvedPath,
|
|
835
|
-
body,
|
|
836
|
-
});
|
|
542
|
+
b.m("GET").h(headers).b(body);
|
|
543
|
+
return b.build();
|
|
837
544
|
};
|
|
838
545
|
exports.se_GetConnectPeerCommand = se_GetConnectPeerCommand;
|
|
839
546
|
const se_GetConnectPeerAssociationsCommand = async (input, context) => {
|
|
840
|
-
const
|
|
547
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
841
548
|
const headers = {};
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
549
|
+
b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations");
|
|
550
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
845
551
|
const query = (0, smithy_client_1.map)({
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
],
|
|
850
|
-
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
851
|
-
nextToken: [, input.NextToken],
|
|
552
|
+
[_cPI]: [() => input.ConnectPeerIds !== void 0, () => (input[_CPI] || []).map((_entry) => _entry)],
|
|
553
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
554
|
+
[_nT]: [, input[_NT]],
|
|
852
555
|
});
|
|
853
556
|
let body;
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
hostname,
|
|
857
|
-
port,
|
|
858
|
-
method: "GET",
|
|
859
|
-
headers,
|
|
860
|
-
path: resolvedPath,
|
|
861
|
-
query,
|
|
862
|
-
body,
|
|
863
|
-
});
|
|
557
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
558
|
+
return b.build();
|
|
864
559
|
};
|
|
865
560
|
exports.se_GetConnectPeerAssociationsCommand = se_GetConnectPeerAssociationsCommand;
|
|
866
561
|
const se_GetCoreNetworkCommand = async (input, context) => {
|
|
867
|
-
const
|
|
562
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
868
563
|
const headers = {};
|
|
869
|
-
|
|
870
|
-
|
|
564
|
+
b.bp("/core-networks/{CoreNetworkId}");
|
|
565
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
871
566
|
let body;
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
hostname,
|
|
875
|
-
port,
|
|
876
|
-
method: "GET",
|
|
877
|
-
headers,
|
|
878
|
-
path: resolvedPath,
|
|
879
|
-
body,
|
|
880
|
-
});
|
|
567
|
+
b.m("GET").h(headers).b(body);
|
|
568
|
+
return b.build();
|
|
881
569
|
};
|
|
882
570
|
exports.se_GetCoreNetworkCommand = se_GetCoreNetworkCommand;
|
|
883
571
|
const se_GetCoreNetworkChangeEventsCommand = async (input, context) => {
|
|
884
|
-
const
|
|
572
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
885
573
|
const headers = {};
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
574
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-change-events/{PolicyVersionId}");
|
|
575
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
576
|
+
b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
890
577
|
const query = (0, smithy_client_1.map)({
|
|
891
|
-
|
|
892
|
-
|
|
578
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
579
|
+
[_nT]: [, input[_NT]],
|
|
893
580
|
});
|
|
894
581
|
let body;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
hostname,
|
|
898
|
-
port,
|
|
899
|
-
method: "GET",
|
|
900
|
-
headers,
|
|
901
|
-
path: resolvedPath,
|
|
902
|
-
query,
|
|
903
|
-
body,
|
|
904
|
-
});
|
|
582
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
583
|
+
return b.build();
|
|
905
584
|
};
|
|
906
585
|
exports.se_GetCoreNetworkChangeEventsCommand = se_GetCoreNetworkChangeEventsCommand;
|
|
907
586
|
const se_GetCoreNetworkChangeSetCommand = async (input, context) => {
|
|
908
|
-
const
|
|
587
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
909
588
|
const headers = {};
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
589
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}");
|
|
590
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
591
|
+
b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
914
592
|
const query = (0, smithy_client_1.map)({
|
|
915
|
-
|
|
916
|
-
|
|
593
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
594
|
+
[_nT]: [, input[_NT]],
|
|
917
595
|
});
|
|
918
596
|
let body;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
hostname,
|
|
922
|
-
port,
|
|
923
|
-
method: "GET",
|
|
924
|
-
headers,
|
|
925
|
-
path: resolvedPath,
|
|
926
|
-
query,
|
|
927
|
-
body,
|
|
928
|
-
});
|
|
597
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
598
|
+
return b.build();
|
|
929
599
|
};
|
|
930
600
|
exports.se_GetCoreNetworkChangeSetCommand = se_GetCoreNetworkChangeSetCommand;
|
|
931
601
|
const se_GetCoreNetworkPolicyCommand = async (input, context) => {
|
|
932
|
-
const
|
|
602
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
933
603
|
const headers = {};
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
604
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-policy");
|
|
605
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
937
606
|
const query = (0, smithy_client_1.map)({
|
|
938
|
-
|
|
939
|
-
|
|
607
|
+
[_pVI]: [() => input.PolicyVersionId !== void 0, () => input[_PVI].toString()],
|
|
608
|
+
[_a]: [, input[_A]],
|
|
940
609
|
});
|
|
941
610
|
let body;
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
hostname,
|
|
945
|
-
port,
|
|
946
|
-
method: "GET",
|
|
947
|
-
headers,
|
|
948
|
-
path: resolvedPath,
|
|
949
|
-
query,
|
|
950
|
-
body,
|
|
951
|
-
});
|
|
611
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
612
|
+
return b.build();
|
|
952
613
|
};
|
|
953
614
|
exports.se_GetCoreNetworkPolicyCommand = se_GetCoreNetworkPolicyCommand;
|
|
954
615
|
const se_GetCustomerGatewayAssociationsCommand = async (input, context) => {
|
|
955
|
-
const
|
|
616
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
956
617
|
const headers = {};
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
618
|
+
b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations");
|
|
619
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
960
620
|
const query = (0, smithy_client_1.map)({
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
],
|
|
965
|
-
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
966
|
-
nextToken: [, input.NextToken],
|
|
621
|
+
[_cGA]: [() => input.CustomerGatewayArns !== void 0, () => (input[_CGA] || []).map((_entry) => _entry)],
|
|
622
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
623
|
+
[_nT]: [, input[_NT]],
|
|
967
624
|
});
|
|
968
625
|
let body;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
hostname,
|
|
972
|
-
port,
|
|
973
|
-
method: "GET",
|
|
974
|
-
headers,
|
|
975
|
-
path: resolvedPath,
|
|
976
|
-
query,
|
|
977
|
-
body,
|
|
978
|
-
});
|
|
626
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
627
|
+
return b.build();
|
|
979
628
|
};
|
|
980
629
|
exports.se_GetCustomerGatewayAssociationsCommand = se_GetCustomerGatewayAssociationsCommand;
|
|
981
630
|
const se_GetDevicesCommand = async (input, context) => {
|
|
982
|
-
const
|
|
631
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
983
632
|
const headers = {};
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
633
|
+
b.bp("/global-networks/{GlobalNetworkId}/devices");
|
|
634
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
987
635
|
const query = (0, smithy_client_1.map)({
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
636
|
+
[_dIe]: [() => input.DeviceIds !== void 0, () => (input[_DIe] || []).map((_entry) => _entry)],
|
|
637
|
+
[_sI]: [, input[_SI]],
|
|
638
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
639
|
+
[_nT]: [, input[_NT]],
|
|
992
640
|
});
|
|
993
641
|
let body;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
hostname,
|
|
997
|
-
port,
|
|
998
|
-
method: "GET",
|
|
999
|
-
headers,
|
|
1000
|
-
path: resolvedPath,
|
|
1001
|
-
query,
|
|
1002
|
-
body,
|
|
1003
|
-
});
|
|
642
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
643
|
+
return b.build();
|
|
1004
644
|
};
|
|
1005
645
|
exports.se_GetDevicesCommand = se_GetDevicesCommand;
|
|
1006
646
|
const se_GetLinkAssociationsCommand = async (input, context) => {
|
|
1007
|
-
const
|
|
647
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1008
648
|
const headers = {};
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
649
|
+
b.bp("/global-networks/{GlobalNetworkId}/link-associations");
|
|
650
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1012
651
|
const query = (0, smithy_client_1.map)({
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
652
|
+
[_dI]: [, input[_DI]],
|
|
653
|
+
[_lI]: [, input[_LI]],
|
|
654
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
655
|
+
[_nT]: [, input[_NT]],
|
|
1017
656
|
});
|
|
1018
657
|
let body;
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
hostname,
|
|
1022
|
-
port,
|
|
1023
|
-
method: "GET",
|
|
1024
|
-
headers,
|
|
1025
|
-
path: resolvedPath,
|
|
1026
|
-
query,
|
|
1027
|
-
body,
|
|
1028
|
-
});
|
|
658
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
659
|
+
return b.build();
|
|
1029
660
|
};
|
|
1030
661
|
exports.se_GetLinkAssociationsCommand = se_GetLinkAssociationsCommand;
|
|
1031
662
|
const se_GetLinksCommand = async (input, context) => {
|
|
1032
|
-
const
|
|
663
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1033
664
|
const headers = {};
|
|
1034
|
-
|
|
1035
|
-
|
|
665
|
+
b.bp("/global-networks/{GlobalNetworkId}/links");
|
|
666
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1036
667
|
const query = (0, smithy_client_1.map)({
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
668
|
+
[_lIi]: [() => input.LinkIds !== void 0, () => (input[_LIi] || []).map((_entry) => _entry)],
|
|
669
|
+
[_sI]: [, input[_SI]],
|
|
670
|
+
[_t]: [, input[_T]],
|
|
671
|
+
[_p]: [, input[_P]],
|
|
672
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
673
|
+
[_nT]: [, input[_NT]],
|
|
1043
674
|
});
|
|
1044
675
|
let body;
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
hostname,
|
|
1048
|
-
port,
|
|
1049
|
-
method: "GET",
|
|
1050
|
-
headers,
|
|
1051
|
-
path: resolvedPath,
|
|
1052
|
-
query,
|
|
1053
|
-
body,
|
|
1054
|
-
});
|
|
676
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
677
|
+
return b.build();
|
|
1055
678
|
};
|
|
1056
679
|
exports.se_GetLinksCommand = se_GetLinksCommand;
|
|
1057
680
|
const se_GetNetworkResourceCountsCommand = async (input, context) => {
|
|
1058
|
-
const
|
|
681
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1059
682
|
const headers = {};
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
683
|
+
b.bp("/global-networks/{GlobalNetworkId}/network-resource-count");
|
|
684
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1063
685
|
const query = (0, smithy_client_1.map)({
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
686
|
+
[_rT]: [, input[_RT]],
|
|
687
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
688
|
+
[_nT]: [, input[_NT]],
|
|
1067
689
|
});
|
|
1068
690
|
let body;
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
hostname,
|
|
1072
|
-
port,
|
|
1073
|
-
method: "GET",
|
|
1074
|
-
headers,
|
|
1075
|
-
path: resolvedPath,
|
|
1076
|
-
query,
|
|
1077
|
-
body,
|
|
1078
|
-
});
|
|
691
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
692
|
+
return b.build();
|
|
1079
693
|
};
|
|
1080
694
|
exports.se_GetNetworkResourceCountsCommand = se_GetNetworkResourceCountsCommand;
|
|
1081
695
|
const se_GetNetworkResourceRelationshipsCommand = async (input, context) => {
|
|
1082
|
-
const
|
|
696
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1083
697
|
const headers = {};
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
698
|
+
b.bp("/global-networks/{GlobalNetworkId}/network-resource-relationships");
|
|
699
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1087
700
|
const query = (0, smithy_client_1.map)({
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
701
|
+
[_cNI]: [, input[_CNI]],
|
|
702
|
+
[_rGA]: [, input[_RGA]],
|
|
703
|
+
[_aR]: [, input[_AR]],
|
|
704
|
+
[_aI]: [, input[_AI]],
|
|
705
|
+
[_rT]: [, input[_RT]],
|
|
706
|
+
[_rA]: [, input[_RA]],
|
|
707
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
708
|
+
[_nT]: [, input[_NT]],
|
|
1096
709
|
});
|
|
1097
710
|
let body;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
hostname,
|
|
1101
|
-
port,
|
|
1102
|
-
method: "GET",
|
|
1103
|
-
headers,
|
|
1104
|
-
path: resolvedPath,
|
|
1105
|
-
query,
|
|
1106
|
-
body,
|
|
1107
|
-
});
|
|
711
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
712
|
+
return b.build();
|
|
1108
713
|
};
|
|
1109
714
|
exports.se_GetNetworkResourceRelationshipsCommand = se_GetNetworkResourceRelationshipsCommand;
|
|
1110
715
|
const se_GetNetworkResourcesCommand = async (input, context) => {
|
|
1111
|
-
const
|
|
716
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1112
717
|
const headers = {};
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
718
|
+
b.bp("/global-networks/{GlobalNetworkId}/network-resources");
|
|
719
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1116
720
|
const query = (0, smithy_client_1.map)({
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
721
|
+
[_cNI]: [, input[_CNI]],
|
|
722
|
+
[_rGA]: [, input[_RGA]],
|
|
723
|
+
[_aR]: [, input[_AR]],
|
|
724
|
+
[_aI]: [, input[_AI]],
|
|
725
|
+
[_rT]: [, input[_RT]],
|
|
726
|
+
[_rA]: [, input[_RA]],
|
|
727
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
728
|
+
[_nT]: [, input[_NT]],
|
|
1125
729
|
});
|
|
1126
730
|
let body;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
hostname,
|
|
1130
|
-
port,
|
|
1131
|
-
method: "GET",
|
|
1132
|
-
headers,
|
|
1133
|
-
path: resolvedPath,
|
|
1134
|
-
query,
|
|
1135
|
-
body,
|
|
1136
|
-
});
|
|
731
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
732
|
+
return b.build();
|
|
1137
733
|
};
|
|
1138
734
|
exports.se_GetNetworkResourcesCommand = se_GetNetworkResourcesCommand;
|
|
1139
735
|
const se_GetNetworkRoutesCommand = async (input, context) => {
|
|
1140
|
-
const
|
|
736
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1141
737
|
const headers = {
|
|
1142
738
|
"content-type": "application/json",
|
|
1143
739
|
};
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
740
|
+
b.bp("/global-networks/{GlobalNetworkId}/network-routes");
|
|
741
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1147
742
|
let body;
|
|
1148
743
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1149
744
|
DestinationFilters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1156,392 +751,245 @@ const se_GetNetworkRoutesCommand = async (input, context) => {
|
|
|
1156
751
|
SupernetOfMatches: (_) => (0, smithy_client_1._json)(_),
|
|
1157
752
|
Types: (_) => (0, smithy_client_1._json)(_),
|
|
1158
753
|
}));
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
hostname,
|
|
1162
|
-
port,
|
|
1163
|
-
method: "POST",
|
|
1164
|
-
headers,
|
|
1165
|
-
path: resolvedPath,
|
|
1166
|
-
body,
|
|
1167
|
-
});
|
|
754
|
+
b.m("POST").h(headers).b(body);
|
|
755
|
+
return b.build();
|
|
1168
756
|
};
|
|
1169
757
|
exports.se_GetNetworkRoutesCommand = se_GetNetworkRoutesCommand;
|
|
1170
758
|
const se_GetNetworkTelemetryCommand = async (input, context) => {
|
|
1171
|
-
const
|
|
759
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1172
760
|
const headers = {};
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
761
|
+
b.bp("/global-networks/{GlobalNetworkId}/network-telemetry");
|
|
762
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1176
763
|
const query = (0, smithy_client_1.map)({
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
764
|
+
[_cNI]: [, input[_CNI]],
|
|
765
|
+
[_rGA]: [, input[_RGA]],
|
|
766
|
+
[_aR]: [, input[_AR]],
|
|
767
|
+
[_aI]: [, input[_AI]],
|
|
768
|
+
[_rT]: [, input[_RT]],
|
|
769
|
+
[_rA]: [, input[_RA]],
|
|
770
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
771
|
+
[_nT]: [, input[_NT]],
|
|
1185
772
|
});
|
|
1186
773
|
let body;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
hostname,
|
|
1190
|
-
port,
|
|
1191
|
-
method: "GET",
|
|
1192
|
-
headers,
|
|
1193
|
-
path: resolvedPath,
|
|
1194
|
-
query,
|
|
1195
|
-
body,
|
|
1196
|
-
});
|
|
774
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
775
|
+
return b.build();
|
|
1197
776
|
};
|
|
1198
777
|
exports.se_GetNetworkTelemetryCommand = se_GetNetworkTelemetryCommand;
|
|
1199
778
|
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
1200
|
-
const
|
|
779
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1201
780
|
const headers = {};
|
|
1202
|
-
|
|
1203
|
-
|
|
781
|
+
b.bp("/resource-policy/{ResourceArn}");
|
|
782
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1204
783
|
let body;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
hostname,
|
|
1208
|
-
port,
|
|
1209
|
-
method: "GET",
|
|
1210
|
-
headers,
|
|
1211
|
-
path: resolvedPath,
|
|
1212
|
-
body,
|
|
1213
|
-
});
|
|
784
|
+
b.m("GET").h(headers).b(body);
|
|
785
|
+
return b.build();
|
|
1214
786
|
};
|
|
1215
787
|
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
1216
788
|
const se_GetRouteAnalysisCommand = async (input, context) => {
|
|
1217
|
-
const
|
|
789
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1218
790
|
const headers = {};
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteAnalysisId", () => input.RouteAnalysisId, "{RouteAnalysisId}", false);
|
|
791
|
+
b.bp("/global-networks/{GlobalNetworkId}/route-analyses/{RouteAnalysisId}");
|
|
792
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
793
|
+
b.p("RouteAnalysisId", () => input.RouteAnalysisId, "{RouteAnalysisId}", false);
|
|
1223
794
|
let body;
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
hostname,
|
|
1227
|
-
port,
|
|
1228
|
-
method: "GET",
|
|
1229
|
-
headers,
|
|
1230
|
-
path: resolvedPath,
|
|
1231
|
-
body,
|
|
1232
|
-
});
|
|
795
|
+
b.m("GET").h(headers).b(body);
|
|
796
|
+
return b.build();
|
|
1233
797
|
};
|
|
1234
798
|
exports.se_GetRouteAnalysisCommand = se_GetRouteAnalysisCommand;
|
|
1235
799
|
const se_GetSitesCommand = async (input, context) => {
|
|
1236
|
-
const
|
|
800
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1237
801
|
const headers = {};
|
|
1238
|
-
|
|
1239
|
-
|
|
802
|
+
b.bp("/global-networks/{GlobalNetworkId}/sites");
|
|
803
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1240
804
|
const query = (0, smithy_client_1.map)({
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
805
|
+
[_sIi]: [() => input.SiteIds !== void 0, () => (input[_SIi] || []).map((_entry) => _entry)],
|
|
806
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
807
|
+
[_nT]: [, input[_NT]],
|
|
1244
808
|
});
|
|
1245
809
|
let body;
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
hostname,
|
|
1249
|
-
port,
|
|
1250
|
-
method: "GET",
|
|
1251
|
-
headers,
|
|
1252
|
-
path: resolvedPath,
|
|
1253
|
-
query,
|
|
1254
|
-
body,
|
|
1255
|
-
});
|
|
810
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
811
|
+
return b.build();
|
|
1256
812
|
};
|
|
1257
813
|
exports.se_GetSitesCommand = se_GetSitesCommand;
|
|
1258
814
|
const se_GetSiteToSiteVpnAttachmentCommand = async (input, context) => {
|
|
1259
|
-
const
|
|
815
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1260
816
|
const headers = {};
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
817
|
+
b.bp("/site-to-site-vpn-attachments/{AttachmentId}");
|
|
818
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1264
819
|
let body;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
hostname,
|
|
1268
|
-
port,
|
|
1269
|
-
method: "GET",
|
|
1270
|
-
headers,
|
|
1271
|
-
path: resolvedPath,
|
|
1272
|
-
body,
|
|
1273
|
-
});
|
|
820
|
+
b.m("GET").h(headers).b(body);
|
|
821
|
+
return b.build();
|
|
1274
822
|
};
|
|
1275
823
|
exports.se_GetSiteToSiteVpnAttachmentCommand = se_GetSiteToSiteVpnAttachmentCommand;
|
|
1276
824
|
const se_GetTransitGatewayConnectPeerAssociationsCommand = async (input, context) => {
|
|
1277
|
-
const
|
|
825
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1278
826
|
const headers = {};
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
827
|
+
b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations");
|
|
828
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1282
829
|
const query = (0, smithy_client_1.map)({
|
|
1283
|
-
|
|
830
|
+
[_tGCPA]: [
|
|
1284
831
|
() => input.TransitGatewayConnectPeerArns !== void 0,
|
|
1285
|
-
() => (input
|
|
832
|
+
() => (input[_TGCPA] || []).map((_entry) => _entry),
|
|
1286
833
|
],
|
|
1287
|
-
|
|
1288
|
-
|
|
834
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
835
|
+
[_nT]: [, input[_NT]],
|
|
1289
836
|
});
|
|
1290
837
|
let body;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
hostname,
|
|
1294
|
-
port,
|
|
1295
|
-
method: "GET",
|
|
1296
|
-
headers,
|
|
1297
|
-
path: resolvedPath,
|
|
1298
|
-
query,
|
|
1299
|
-
body,
|
|
1300
|
-
});
|
|
838
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
839
|
+
return b.build();
|
|
1301
840
|
};
|
|
1302
841
|
exports.se_GetTransitGatewayConnectPeerAssociationsCommand = se_GetTransitGatewayConnectPeerAssociationsCommand;
|
|
1303
842
|
const se_GetTransitGatewayPeeringCommand = async (input, context) => {
|
|
1304
|
-
const
|
|
843
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1305
844
|
const headers = {};
|
|
1306
|
-
|
|
1307
|
-
|
|
845
|
+
b.bp("/transit-gateway-peerings/{PeeringId}");
|
|
846
|
+
b.p("PeeringId", () => input.PeeringId, "{PeeringId}", false);
|
|
1308
847
|
let body;
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
hostname,
|
|
1312
|
-
port,
|
|
1313
|
-
method: "GET",
|
|
1314
|
-
headers,
|
|
1315
|
-
path: resolvedPath,
|
|
1316
|
-
body,
|
|
1317
|
-
});
|
|
848
|
+
b.m("GET").h(headers).b(body);
|
|
849
|
+
return b.build();
|
|
1318
850
|
};
|
|
1319
851
|
exports.se_GetTransitGatewayPeeringCommand = se_GetTransitGatewayPeeringCommand;
|
|
1320
852
|
const se_GetTransitGatewayRegistrationsCommand = async (input, context) => {
|
|
1321
|
-
const
|
|
853
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1322
854
|
const headers = {};
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
855
|
+
b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations");
|
|
856
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1326
857
|
const query = (0, smithy_client_1.map)({
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
],
|
|
1331
|
-
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1332
|
-
nextToken: [, input.NextToken],
|
|
858
|
+
[_tGA]: [() => input.TransitGatewayArns !== void 0, () => (input[_TGA] || []).map((_entry) => _entry)],
|
|
859
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
860
|
+
[_nT]: [, input[_NT]],
|
|
1333
861
|
});
|
|
1334
862
|
let body;
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
hostname,
|
|
1338
|
-
port,
|
|
1339
|
-
method: "GET",
|
|
1340
|
-
headers,
|
|
1341
|
-
path: resolvedPath,
|
|
1342
|
-
query,
|
|
1343
|
-
body,
|
|
1344
|
-
});
|
|
863
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
864
|
+
return b.build();
|
|
1345
865
|
};
|
|
1346
866
|
exports.se_GetTransitGatewayRegistrationsCommand = se_GetTransitGatewayRegistrationsCommand;
|
|
1347
867
|
const se_GetTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
|
|
1348
|
-
const
|
|
868
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1349
869
|
const headers = {};
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
870
|
+
b.bp("/transit-gateway-route-table-attachments/{AttachmentId}");
|
|
871
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1353
872
|
let body;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
hostname,
|
|
1357
|
-
port,
|
|
1358
|
-
method: "GET",
|
|
1359
|
-
headers,
|
|
1360
|
-
path: resolvedPath,
|
|
1361
|
-
body,
|
|
1362
|
-
});
|
|
873
|
+
b.m("GET").h(headers).b(body);
|
|
874
|
+
return b.build();
|
|
1363
875
|
};
|
|
1364
876
|
exports.se_GetTransitGatewayRouteTableAttachmentCommand = se_GetTransitGatewayRouteTableAttachmentCommand;
|
|
1365
877
|
const se_GetVpcAttachmentCommand = async (input, context) => {
|
|
1366
|
-
const
|
|
878
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1367
879
|
const headers = {};
|
|
1368
|
-
|
|
1369
|
-
|
|
880
|
+
b.bp("/vpc-attachments/{AttachmentId}");
|
|
881
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1370
882
|
let body;
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
hostname,
|
|
1374
|
-
port,
|
|
1375
|
-
method: "GET",
|
|
1376
|
-
headers,
|
|
1377
|
-
path: resolvedPath,
|
|
1378
|
-
body,
|
|
1379
|
-
});
|
|
883
|
+
b.m("GET").h(headers).b(body);
|
|
884
|
+
return b.build();
|
|
1380
885
|
};
|
|
1381
886
|
exports.se_GetVpcAttachmentCommand = se_GetVpcAttachmentCommand;
|
|
1382
887
|
const se_ListAttachmentsCommand = async (input, context) => {
|
|
1383
|
-
const
|
|
888
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1384
889
|
const headers = {};
|
|
1385
|
-
|
|
890
|
+
b.bp("/attachments");
|
|
1386
891
|
const query = (0, smithy_client_1.map)({
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
892
|
+
[_cNI]: [, input[_CNI]],
|
|
893
|
+
[_aT]: [, input[_AT]],
|
|
894
|
+
[_eL]: [, input[_EL]],
|
|
895
|
+
[_s]: [, input[_S]],
|
|
896
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
897
|
+
[_nT]: [, input[_NT]],
|
|
1393
898
|
});
|
|
1394
899
|
let body;
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
hostname,
|
|
1398
|
-
port,
|
|
1399
|
-
method: "GET",
|
|
1400
|
-
headers,
|
|
1401
|
-
path: resolvedPath,
|
|
1402
|
-
query,
|
|
1403
|
-
body,
|
|
1404
|
-
});
|
|
900
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
901
|
+
return b.build();
|
|
1405
902
|
};
|
|
1406
903
|
exports.se_ListAttachmentsCommand = se_ListAttachmentsCommand;
|
|
1407
904
|
const se_ListConnectPeersCommand = async (input, context) => {
|
|
1408
|
-
const
|
|
905
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1409
906
|
const headers = {};
|
|
1410
|
-
|
|
907
|
+
b.bp("/connect-peers");
|
|
1411
908
|
const query = (0, smithy_client_1.map)({
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
909
|
+
[_cNI]: [, input[_CNI]],
|
|
910
|
+
[_cAI]: [, input[_CAI]],
|
|
911
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
912
|
+
[_nT]: [, input[_NT]],
|
|
1416
913
|
});
|
|
1417
914
|
let body;
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
hostname,
|
|
1421
|
-
port,
|
|
1422
|
-
method: "GET",
|
|
1423
|
-
headers,
|
|
1424
|
-
path: resolvedPath,
|
|
1425
|
-
query,
|
|
1426
|
-
body,
|
|
1427
|
-
});
|
|
915
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
916
|
+
return b.build();
|
|
1428
917
|
};
|
|
1429
918
|
exports.se_ListConnectPeersCommand = se_ListConnectPeersCommand;
|
|
1430
919
|
const se_ListCoreNetworkPolicyVersionsCommand = async (input, context) => {
|
|
1431
|
-
const
|
|
920
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1432
921
|
const headers = {};
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
922
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions");
|
|
923
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1436
924
|
const query = (0, smithy_client_1.map)({
|
|
1437
|
-
|
|
1438
|
-
|
|
925
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
926
|
+
[_nT]: [, input[_NT]],
|
|
1439
927
|
});
|
|
1440
928
|
let body;
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
hostname,
|
|
1444
|
-
port,
|
|
1445
|
-
method: "GET",
|
|
1446
|
-
headers,
|
|
1447
|
-
path: resolvedPath,
|
|
1448
|
-
query,
|
|
1449
|
-
body,
|
|
1450
|
-
});
|
|
929
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
930
|
+
return b.build();
|
|
1451
931
|
};
|
|
1452
932
|
exports.se_ListCoreNetworkPolicyVersionsCommand = se_ListCoreNetworkPolicyVersionsCommand;
|
|
1453
933
|
const se_ListCoreNetworksCommand = async (input, context) => {
|
|
1454
|
-
const
|
|
934
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1455
935
|
const headers = {};
|
|
1456
|
-
|
|
936
|
+
b.bp("/core-networks");
|
|
1457
937
|
const query = (0, smithy_client_1.map)({
|
|
1458
|
-
|
|
1459
|
-
|
|
938
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
939
|
+
[_nT]: [, input[_NT]],
|
|
1460
940
|
});
|
|
1461
941
|
let body;
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
hostname,
|
|
1465
|
-
port,
|
|
1466
|
-
method: "GET",
|
|
1467
|
-
headers,
|
|
1468
|
-
path: resolvedPath,
|
|
1469
|
-
query,
|
|
1470
|
-
body,
|
|
1471
|
-
});
|
|
942
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
943
|
+
return b.build();
|
|
1472
944
|
};
|
|
1473
945
|
exports.se_ListCoreNetworksCommand = se_ListCoreNetworksCommand;
|
|
1474
946
|
const se_ListOrganizationServiceAccessStatusCommand = async (input, context) => {
|
|
1475
|
-
const
|
|
947
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1476
948
|
const headers = {};
|
|
1477
|
-
|
|
949
|
+
b.bp("/organizations/service-access");
|
|
1478
950
|
const query = (0, smithy_client_1.map)({
|
|
1479
|
-
|
|
1480
|
-
|
|
951
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
952
|
+
[_nT]: [, input[_NT]],
|
|
1481
953
|
});
|
|
1482
954
|
let body;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
hostname,
|
|
1486
|
-
port,
|
|
1487
|
-
method: "GET",
|
|
1488
|
-
headers,
|
|
1489
|
-
path: resolvedPath,
|
|
1490
|
-
query,
|
|
1491
|
-
body,
|
|
1492
|
-
});
|
|
955
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
956
|
+
return b.build();
|
|
1493
957
|
};
|
|
1494
958
|
exports.se_ListOrganizationServiceAccessStatusCommand = se_ListOrganizationServiceAccessStatusCommand;
|
|
1495
959
|
const se_ListPeeringsCommand = async (input, context) => {
|
|
1496
|
-
const
|
|
960
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1497
961
|
const headers = {};
|
|
1498
|
-
|
|
962
|
+
b.bp("/peerings");
|
|
1499
963
|
const query = (0, smithy_client_1.map)({
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
964
|
+
[_cNI]: [, input[_CNI]],
|
|
965
|
+
[_pT]: [, input[_PT]],
|
|
966
|
+
[_eL]: [, input[_EL]],
|
|
967
|
+
[_s]: [, input[_S]],
|
|
968
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
969
|
+
[_nT]: [, input[_NT]],
|
|
1506
970
|
});
|
|
1507
971
|
let body;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
hostname,
|
|
1511
|
-
port,
|
|
1512
|
-
method: "GET",
|
|
1513
|
-
headers,
|
|
1514
|
-
path: resolvedPath,
|
|
1515
|
-
query,
|
|
1516
|
-
body,
|
|
1517
|
-
});
|
|
972
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
973
|
+
return b.build();
|
|
1518
974
|
};
|
|
1519
975
|
exports.se_ListPeeringsCommand = se_ListPeeringsCommand;
|
|
1520
976
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1521
|
-
const
|
|
977
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1522
978
|
const headers = {};
|
|
1523
|
-
|
|
1524
|
-
|
|
979
|
+
b.bp("/tags/{ResourceArn}");
|
|
980
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1525
981
|
let body;
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
hostname,
|
|
1529
|
-
port,
|
|
1530
|
-
method: "GET",
|
|
1531
|
-
headers,
|
|
1532
|
-
path: resolvedPath,
|
|
1533
|
-
body,
|
|
1534
|
-
});
|
|
982
|
+
b.m("GET").h(headers).b(body);
|
|
983
|
+
return b.build();
|
|
1535
984
|
};
|
|
1536
985
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1537
986
|
const se_PutCoreNetworkPolicyCommand = async (input, context) => {
|
|
1538
|
-
const
|
|
987
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1539
988
|
const headers = {
|
|
1540
989
|
"content-type": "application/json",
|
|
1541
990
|
};
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
991
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-policy");
|
|
992
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1545
993
|
let body;
|
|
1546
994
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1547
995
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -1549,127 +997,82 @@ const se_PutCoreNetworkPolicyCommand = async (input, context) => {
|
|
|
1549
997
|
LatestVersionId: [],
|
|
1550
998
|
PolicyDocument: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
1551
999
|
}));
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
hostname,
|
|
1555
|
-
port,
|
|
1556
|
-
method: "POST",
|
|
1557
|
-
headers,
|
|
1558
|
-
path: resolvedPath,
|
|
1559
|
-
body,
|
|
1560
|
-
});
|
|
1000
|
+
b.m("POST").h(headers).b(body);
|
|
1001
|
+
return b.build();
|
|
1561
1002
|
};
|
|
1562
1003
|
exports.se_PutCoreNetworkPolicyCommand = se_PutCoreNetworkPolicyCommand;
|
|
1563
1004
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
1564
|
-
const
|
|
1005
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1565
1006
|
const headers = {
|
|
1566
1007
|
"content-type": "application/json",
|
|
1567
1008
|
};
|
|
1568
|
-
|
|
1569
|
-
|
|
1009
|
+
b.bp("/resource-policy/{ResourceArn}");
|
|
1010
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1570
1011
|
let body;
|
|
1571
1012
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1572
1013
|
PolicyDocument: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
1573
1014
|
}));
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
hostname,
|
|
1577
|
-
port,
|
|
1578
|
-
method: "POST",
|
|
1579
|
-
headers,
|
|
1580
|
-
path: resolvedPath,
|
|
1581
|
-
body,
|
|
1582
|
-
});
|
|
1015
|
+
b.m("POST").h(headers).b(body);
|
|
1016
|
+
return b.build();
|
|
1583
1017
|
};
|
|
1584
1018
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
1585
1019
|
const se_RegisterTransitGatewayCommand = async (input, context) => {
|
|
1586
|
-
const
|
|
1020
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1587
1021
|
const headers = {
|
|
1588
1022
|
"content-type": "application/json",
|
|
1589
1023
|
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1024
|
+
b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations");
|
|
1025
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1593
1026
|
let body;
|
|
1594
1027
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1595
1028
|
TransitGatewayArn: [],
|
|
1596
1029
|
}));
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
hostname,
|
|
1600
|
-
port,
|
|
1601
|
-
method: "POST",
|
|
1602
|
-
headers,
|
|
1603
|
-
path: resolvedPath,
|
|
1604
|
-
body,
|
|
1605
|
-
});
|
|
1030
|
+
b.m("POST").h(headers).b(body);
|
|
1031
|
+
return b.build();
|
|
1606
1032
|
};
|
|
1607
1033
|
exports.se_RegisterTransitGatewayCommand = se_RegisterTransitGatewayCommand;
|
|
1608
1034
|
const se_RejectAttachmentCommand = async (input, context) => {
|
|
1609
|
-
const
|
|
1035
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1610
1036
|
const headers = {};
|
|
1611
|
-
|
|
1612
|
-
|
|
1037
|
+
b.bp("/attachments/{AttachmentId}/reject");
|
|
1038
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1613
1039
|
let body;
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
hostname,
|
|
1617
|
-
port,
|
|
1618
|
-
method: "POST",
|
|
1619
|
-
headers,
|
|
1620
|
-
path: resolvedPath,
|
|
1621
|
-
body,
|
|
1622
|
-
});
|
|
1040
|
+
b.m("POST").h(headers).b(body);
|
|
1041
|
+
return b.build();
|
|
1623
1042
|
};
|
|
1624
1043
|
exports.se_RejectAttachmentCommand = se_RejectAttachmentCommand;
|
|
1625
1044
|
const se_RestoreCoreNetworkPolicyVersionCommand = async (input, context) => {
|
|
1626
|
-
const
|
|
1045
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1627
1046
|
const headers = {};
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
1047
|
+
b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}/restore");
|
|
1048
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1049
|
+
b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
|
|
1632
1050
|
let body;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
hostname,
|
|
1636
|
-
port,
|
|
1637
|
-
method: "POST",
|
|
1638
|
-
headers,
|
|
1639
|
-
path: resolvedPath,
|
|
1640
|
-
body,
|
|
1641
|
-
});
|
|
1051
|
+
b.m("POST").h(headers).b(body);
|
|
1052
|
+
return b.build();
|
|
1642
1053
|
};
|
|
1643
1054
|
exports.se_RestoreCoreNetworkPolicyVersionCommand = se_RestoreCoreNetworkPolicyVersionCommand;
|
|
1644
1055
|
const se_StartOrganizationServiceAccessUpdateCommand = async (input, context) => {
|
|
1645
|
-
const
|
|
1056
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1646
1057
|
const headers = {
|
|
1647
1058
|
"content-type": "application/json",
|
|
1648
1059
|
};
|
|
1649
|
-
|
|
1060
|
+
b.bp("/organizations/service-access");
|
|
1650
1061
|
let body;
|
|
1651
1062
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1652
1063
|
Action: [],
|
|
1653
1064
|
}));
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
hostname,
|
|
1657
|
-
port,
|
|
1658
|
-
method: "POST",
|
|
1659
|
-
headers,
|
|
1660
|
-
path: resolvedPath,
|
|
1661
|
-
body,
|
|
1662
|
-
});
|
|
1065
|
+
b.m("POST").h(headers).b(body);
|
|
1066
|
+
return b.build();
|
|
1663
1067
|
};
|
|
1664
1068
|
exports.se_StartOrganizationServiceAccessUpdateCommand = se_StartOrganizationServiceAccessUpdateCommand;
|
|
1665
1069
|
const se_StartRouteAnalysisCommand = async (input, context) => {
|
|
1666
|
-
const
|
|
1070
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1667
1071
|
const headers = {
|
|
1668
1072
|
"content-type": "application/json",
|
|
1669
1073
|
};
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1074
|
+
b.bp("/global-networks/{GlobalNetworkId}/route-analyses");
|
|
1075
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1673
1076
|
let body;
|
|
1674
1077
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1675
1078
|
Destination: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1677,120 +1080,82 @@ const se_StartRouteAnalysisCommand = async (input, context) => {
|
|
|
1677
1080
|
Source: (_) => (0, smithy_client_1._json)(_),
|
|
1678
1081
|
UseMiddleboxes: [],
|
|
1679
1082
|
}));
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
hostname,
|
|
1683
|
-
port,
|
|
1684
|
-
method: "POST",
|
|
1685
|
-
headers,
|
|
1686
|
-
path: resolvedPath,
|
|
1687
|
-
body,
|
|
1688
|
-
});
|
|
1083
|
+
b.m("POST").h(headers).b(body);
|
|
1084
|
+
return b.build();
|
|
1689
1085
|
};
|
|
1690
1086
|
exports.se_StartRouteAnalysisCommand = se_StartRouteAnalysisCommand;
|
|
1691
1087
|
const se_TagResourceCommand = async (input, context) => {
|
|
1692
|
-
const
|
|
1088
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1693
1089
|
const headers = {
|
|
1694
1090
|
"content-type": "application/json",
|
|
1695
1091
|
};
|
|
1696
|
-
|
|
1697
|
-
|
|
1092
|
+
b.bp("/tags/{ResourceArn}");
|
|
1093
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1698
1094
|
let body;
|
|
1699
1095
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1700
1096
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
1701
1097
|
}));
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
hostname,
|
|
1705
|
-
port,
|
|
1706
|
-
method: "POST",
|
|
1707
|
-
headers,
|
|
1708
|
-
path: resolvedPath,
|
|
1709
|
-
body,
|
|
1710
|
-
});
|
|
1098
|
+
b.m("POST").h(headers).b(body);
|
|
1099
|
+
return b.build();
|
|
1711
1100
|
};
|
|
1712
1101
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1713
1102
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1714
|
-
const
|
|
1103
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1715
1104
|
const headers = {};
|
|
1716
|
-
|
|
1717
|
-
|
|
1105
|
+
b.bp("/tags/{ResourceArn}");
|
|
1106
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1718
1107
|
const query = (0, smithy_client_1.map)({
|
|
1719
|
-
|
|
1108
|
+
[_tK]: [
|
|
1720
1109
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
1721
|
-
() => (input
|
|
1110
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
1722
1111
|
],
|
|
1723
1112
|
});
|
|
1724
1113
|
let body;
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
hostname,
|
|
1728
|
-
port,
|
|
1729
|
-
method: "DELETE",
|
|
1730
|
-
headers,
|
|
1731
|
-
path: resolvedPath,
|
|
1732
|
-
query,
|
|
1733
|
-
body,
|
|
1734
|
-
});
|
|
1114
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1115
|
+
return b.build();
|
|
1735
1116
|
};
|
|
1736
1117
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1737
1118
|
const se_UpdateConnectionCommand = async (input, context) => {
|
|
1738
|
-
const
|
|
1119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1739
1120
|
const headers = {
|
|
1740
1121
|
"content-type": "application/json",
|
|
1741
1122
|
};
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
1123
|
+
b.bp("/global-networks/{GlobalNetworkId}/connections/{ConnectionId}");
|
|
1124
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1125
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
1746
1126
|
let body;
|
|
1747
1127
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1748
1128
|
ConnectedLinkId: [],
|
|
1749
1129
|
Description: [],
|
|
1750
1130
|
LinkId: [],
|
|
1751
1131
|
}));
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
hostname,
|
|
1755
|
-
port,
|
|
1756
|
-
method: "PATCH",
|
|
1757
|
-
headers,
|
|
1758
|
-
path: resolvedPath,
|
|
1759
|
-
body,
|
|
1760
|
-
});
|
|
1132
|
+
b.m("PATCH").h(headers).b(body);
|
|
1133
|
+
return b.build();
|
|
1761
1134
|
};
|
|
1762
1135
|
exports.se_UpdateConnectionCommand = se_UpdateConnectionCommand;
|
|
1763
1136
|
const se_UpdateCoreNetworkCommand = async (input, context) => {
|
|
1764
|
-
const
|
|
1137
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1765
1138
|
const headers = {
|
|
1766
1139
|
"content-type": "application/json",
|
|
1767
1140
|
};
|
|
1768
|
-
|
|
1769
|
-
|
|
1141
|
+
b.bp("/core-networks/{CoreNetworkId}");
|
|
1142
|
+
b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
|
|
1770
1143
|
let body;
|
|
1771
1144
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1772
1145
|
Description: [],
|
|
1773
1146
|
}));
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
hostname,
|
|
1777
|
-
port,
|
|
1778
|
-
method: "PATCH",
|
|
1779
|
-
headers,
|
|
1780
|
-
path: resolvedPath,
|
|
1781
|
-
body,
|
|
1782
|
-
});
|
|
1147
|
+
b.m("PATCH").h(headers).b(body);
|
|
1148
|
+
return b.build();
|
|
1783
1149
|
};
|
|
1784
1150
|
exports.se_UpdateCoreNetworkCommand = se_UpdateCoreNetworkCommand;
|
|
1785
1151
|
const se_UpdateDeviceCommand = async (input, context) => {
|
|
1786
|
-
const
|
|
1152
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1787
1153
|
const headers = {
|
|
1788
1154
|
"content-type": "application/json",
|
|
1789
1155
|
};
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
1156
|
+
b.bp("/global-networks/{GlobalNetworkId}/devices/{DeviceId}");
|
|
1157
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1158
|
+
b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
1794
1159
|
let body;
|
|
1795
1160
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1796
1161
|
AWSLocation: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1802,48 +1167,33 @@ const se_UpdateDeviceCommand = async (input, context) => {
|
|
|
1802
1167
|
Type: [],
|
|
1803
1168
|
Vendor: [],
|
|
1804
1169
|
}));
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
hostname,
|
|
1808
|
-
port,
|
|
1809
|
-
method: "PATCH",
|
|
1810
|
-
headers,
|
|
1811
|
-
path: resolvedPath,
|
|
1812
|
-
body,
|
|
1813
|
-
});
|
|
1170
|
+
b.m("PATCH").h(headers).b(body);
|
|
1171
|
+
return b.build();
|
|
1814
1172
|
};
|
|
1815
1173
|
exports.se_UpdateDeviceCommand = se_UpdateDeviceCommand;
|
|
1816
1174
|
const se_UpdateGlobalNetworkCommand = async (input, context) => {
|
|
1817
|
-
const
|
|
1175
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1818
1176
|
const headers = {
|
|
1819
1177
|
"content-type": "application/json",
|
|
1820
1178
|
};
|
|
1821
|
-
|
|
1822
|
-
|
|
1179
|
+
b.bp("/global-networks/{GlobalNetworkId}");
|
|
1180
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1823
1181
|
let body;
|
|
1824
1182
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1825
1183
|
Description: [],
|
|
1826
1184
|
}));
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
hostname,
|
|
1830
|
-
port,
|
|
1831
|
-
method: "PATCH",
|
|
1832
|
-
headers,
|
|
1833
|
-
path: resolvedPath,
|
|
1834
|
-
body,
|
|
1835
|
-
});
|
|
1185
|
+
b.m("PATCH").h(headers).b(body);
|
|
1186
|
+
return b.build();
|
|
1836
1187
|
};
|
|
1837
1188
|
exports.se_UpdateGlobalNetworkCommand = se_UpdateGlobalNetworkCommand;
|
|
1838
1189
|
const se_UpdateLinkCommand = async (input, context) => {
|
|
1839
|
-
const
|
|
1190
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1840
1191
|
const headers = {
|
|
1841
1192
|
"content-type": "application/json",
|
|
1842
1193
|
};
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LinkId", () => input.LinkId, "{LinkId}", false);
|
|
1194
|
+
b.bp("/global-networks/{GlobalNetworkId}/links/{LinkId}");
|
|
1195
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1196
|
+
b.p("LinkId", () => input.LinkId, "{LinkId}", false);
|
|
1847
1197
|
let body;
|
|
1848
1198
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1849
1199
|
Bandwidth: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1851,88 +1201,58 @@ const se_UpdateLinkCommand = async (input, context) => {
|
|
|
1851
1201
|
Provider: [],
|
|
1852
1202
|
Type: [],
|
|
1853
1203
|
}));
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
hostname,
|
|
1857
|
-
port,
|
|
1858
|
-
method: "PATCH",
|
|
1859
|
-
headers,
|
|
1860
|
-
path: resolvedPath,
|
|
1861
|
-
body,
|
|
1862
|
-
});
|
|
1204
|
+
b.m("PATCH").h(headers).b(body);
|
|
1205
|
+
return b.build();
|
|
1863
1206
|
};
|
|
1864
1207
|
exports.se_UpdateLinkCommand = se_UpdateLinkCommand;
|
|
1865
1208
|
const se_UpdateNetworkResourceMetadataCommand = async (input, context) => {
|
|
1866
|
-
const
|
|
1209
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1867
1210
|
const headers = {
|
|
1868
1211
|
"content-type": "application/json",
|
|
1869
1212
|
};
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1213
|
+
b.bp("/global-networks/{GlobalNetworkId}/network-resources/{ResourceArn}/metadata");
|
|
1214
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1215
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1874
1216
|
let body;
|
|
1875
1217
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1876
1218
|
Metadata: (_) => (0, smithy_client_1._json)(_),
|
|
1877
1219
|
}));
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
hostname,
|
|
1881
|
-
port,
|
|
1882
|
-
method: "PATCH",
|
|
1883
|
-
headers,
|
|
1884
|
-
path: resolvedPath,
|
|
1885
|
-
body,
|
|
1886
|
-
});
|
|
1220
|
+
b.m("PATCH").h(headers).b(body);
|
|
1221
|
+
return b.build();
|
|
1887
1222
|
};
|
|
1888
1223
|
exports.se_UpdateNetworkResourceMetadataCommand = se_UpdateNetworkResourceMetadataCommand;
|
|
1889
1224
|
const se_UpdateSiteCommand = async (input, context) => {
|
|
1890
|
-
const
|
|
1225
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1891
1226
|
const headers = {
|
|
1892
1227
|
"content-type": "application/json",
|
|
1893
1228
|
};
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
1229
|
+
b.bp("/global-networks/{GlobalNetworkId}/sites/{SiteId}");
|
|
1230
|
+
b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
|
|
1231
|
+
b.p("SiteId", () => input.SiteId, "{SiteId}", false);
|
|
1898
1232
|
let body;
|
|
1899
1233
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1900
1234
|
Description: [],
|
|
1901
1235
|
Location: (_) => (0, smithy_client_1._json)(_),
|
|
1902
1236
|
}));
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
hostname,
|
|
1906
|
-
port,
|
|
1907
|
-
method: "PATCH",
|
|
1908
|
-
headers,
|
|
1909
|
-
path: resolvedPath,
|
|
1910
|
-
body,
|
|
1911
|
-
});
|
|
1237
|
+
b.m("PATCH").h(headers).b(body);
|
|
1238
|
+
return b.build();
|
|
1912
1239
|
};
|
|
1913
1240
|
exports.se_UpdateSiteCommand = se_UpdateSiteCommand;
|
|
1914
1241
|
const se_UpdateVpcAttachmentCommand = async (input, context) => {
|
|
1915
|
-
const
|
|
1242
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1916
1243
|
const headers = {
|
|
1917
1244
|
"content-type": "application/json",
|
|
1918
1245
|
};
|
|
1919
|
-
|
|
1920
|
-
|
|
1246
|
+
b.bp("/vpc-attachments/{AttachmentId}");
|
|
1247
|
+
b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
|
|
1921
1248
|
let body;
|
|
1922
1249
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1923
1250
|
AddSubnetArns: (_) => (0, smithy_client_1._json)(_),
|
|
1924
1251
|
Options: (_) => (0, smithy_client_1._json)(_),
|
|
1925
1252
|
RemoveSubnetArns: (_) => (0, smithy_client_1._json)(_),
|
|
1926
1253
|
}));
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
hostname,
|
|
1930
|
-
port,
|
|
1931
|
-
method: "PATCH",
|
|
1932
|
-
headers,
|
|
1933
|
-
path: resolvedPath,
|
|
1934
|
-
body,
|
|
1935
|
-
});
|
|
1254
|
+
b.m("PATCH").h(headers).b(body);
|
|
1255
|
+
return b.build();
|
|
1936
1256
|
};
|
|
1937
1257
|
exports.se_UpdateVpcAttachmentCommand = se_UpdateVpcAttachmentCommand;
|
|
1938
1258
|
const de_AcceptAttachmentCommand = async (output, context) => {
|
|
@@ -6053,10 +5373,7 @@ const de_CoreNetworkPolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
6053
5373
|
};
|
|
6054
5374
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
6055
5375
|
const contents = (0, smithy_client_1.map)({
|
|
6056
|
-
|
|
6057
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
6058
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
6059
|
-
],
|
|
5376
|
+
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
6060
5377
|
});
|
|
6061
5378
|
const data = parsedOutput.body;
|
|
6062
5379
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -6104,10 +5421,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
6104
5421
|
};
|
|
6105
5422
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
6106
5423
|
const contents = (0, smithy_client_1.map)({
|
|
6107
|
-
|
|
6108
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
6109
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
6110
|
-
],
|
|
5424
|
+
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
6111
5425
|
});
|
|
6112
5426
|
const data = parsedOutput.body;
|
|
6113
5427
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -6499,6 +5813,68 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
6499
5813
|
value !== "" &&
|
|
6500
5814
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
6501
5815
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
5816
|
+
const _A = "Alias";
|
|
5817
|
+
const _AI = "AccountId";
|
|
5818
|
+
const _AR = "AwsRegion";
|
|
5819
|
+
const _AT = "AttachmentType";
|
|
5820
|
+
const _CAI = "ConnectAttachmentId";
|
|
5821
|
+
const _CGA = "CustomerGatewayArns";
|
|
5822
|
+
const _CI = "ConnectionIds";
|
|
5823
|
+
const _CNI = "CoreNetworkId";
|
|
5824
|
+
const _CPI = "ConnectPeerIds";
|
|
5825
|
+
const _DI = "DeviceId";
|
|
5826
|
+
const _DIe = "DeviceIds";
|
|
5827
|
+
const _EL = "EdgeLocation";
|
|
5828
|
+
const _GNI = "GlobalNetworkIds";
|
|
5829
|
+
const _LI = "LinkId";
|
|
5830
|
+
const _LIi = "LinkIds";
|
|
5831
|
+
const _MR = "MaxResults";
|
|
5832
|
+
const _NT = "NextToken";
|
|
5833
|
+
const _P = "Provider";
|
|
5834
|
+
const _PT = "PeeringType";
|
|
5835
|
+
const _PVI = "PolicyVersionId";
|
|
5836
|
+
const _RA = "ResourceArn";
|
|
5837
|
+
const _RAS = "RetryAfterSeconds";
|
|
5838
|
+
const _RGA = "RegisteredGatewayArn";
|
|
5839
|
+
const _RT = "ResourceType";
|
|
5840
|
+
const _S = "State";
|
|
5841
|
+
const _SI = "SiteId";
|
|
5842
|
+
const _SIi = "SiteIds";
|
|
5843
|
+
const _T = "Type";
|
|
5844
|
+
const _TGA = "TransitGatewayArns";
|
|
5845
|
+
const _TGCPA = "TransitGatewayConnectPeerArns";
|
|
5846
|
+
const _TK = "TagKeys";
|
|
5847
|
+
const _a = "alias";
|
|
5848
|
+
const _aI = "accountId";
|
|
5849
|
+
const _aR = "awsRegion";
|
|
5850
|
+
const _aT = "attachmentType";
|
|
5851
|
+
const _cAI = "connectAttachmentId";
|
|
5852
|
+
const _cGA = "customerGatewayArns";
|
|
5853
|
+
const _cI = "connectionIds";
|
|
5854
|
+
const _cNI = "coreNetworkId";
|
|
5855
|
+
const _cPI = "connectPeerIds";
|
|
5856
|
+
const _dI = "deviceId";
|
|
5857
|
+
const _dIe = "deviceIds";
|
|
5858
|
+
const _eL = "edgeLocation";
|
|
5859
|
+
const _gNI = "globalNetworkIds";
|
|
5860
|
+
const _lI = "linkId";
|
|
5861
|
+
const _lIi = "linkIds";
|
|
5862
|
+
const _mR = "maxResults";
|
|
5863
|
+
const _nT = "nextToken";
|
|
5864
|
+
const _p = "provider";
|
|
5865
|
+
const _pT = "peeringType";
|
|
5866
|
+
const _pVI = "policyVersionId";
|
|
5867
|
+
const _rA = "resourceArn";
|
|
5868
|
+
const _rGA = "registeredGatewayArn";
|
|
5869
|
+
const _rT = "resourceType";
|
|
5870
|
+
const _ra = "retry-after";
|
|
5871
|
+
const _s = "state";
|
|
5872
|
+
const _sI = "siteId";
|
|
5873
|
+
const _sIi = "siteIds";
|
|
5874
|
+
const _t = "type";
|
|
5875
|
+
const _tGA = "transitGatewayArns";
|
|
5876
|
+
const _tGCPA = "transitGatewayConnectPeerArns";
|
|
5877
|
+
const _tK = "tagKeys";
|
|
6502
5878
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
6503
5879
|
if (encoded.length) {
|
|
6504
5880
|
return JSON.parse(encoded);
|