@aws-sdk/client-groundstation 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-cjs/pagination/ListConfigsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListContactsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDataflowEndpointGroupsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListEphemeridesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListGroundStationsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListMissionProfilesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListSatellitesPaginator.js +2 -24
  8. package/dist-cjs/protocols/Aws_restJson1.js +174 -410
  9. package/dist-es/pagination/ListConfigsPaginator.js +2 -23
  10. package/dist-es/pagination/ListContactsPaginator.js +2 -23
  11. package/dist-es/pagination/ListDataflowEndpointGroupsPaginator.js +2 -23
  12. package/dist-es/pagination/ListEphemeridesPaginator.js +2 -23
  13. package/dist-es/pagination/ListGroundStationsPaginator.js +2 -23
  14. package/dist-es/pagination/ListMissionProfilesPaginator.js +2 -23
  15. package/dist-es/pagination/ListSatellitesPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restJson1.js +175 -411
  17. package/dist-types/pagination/ListConfigsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListContactsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListDataflowEndpointGroupsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListEphemeridesPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListGroundStationsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListMissionProfilesPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListSatellitesPaginator.d.ts +1 -1
  24. package/dist-types/ts3.4/pagination/ListConfigsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListContactsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListDataflowEndpointGroupsPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListEphemeridesPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListGroundStationsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListMissionProfilesPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListSatellitesPaginator.d.ts +3 -3
  31. package/package.json +7 -6
@@ -3,56 +3,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_GetSatelliteCommand = exports.de_GetMissionProfileCommand = exports.de_GetMinuteUsageCommand = exports.de_GetDataflowEndpointGroupCommand = exports.de_GetConfigCommand = exports.de_GetAgentConfigurationCommand = exports.de_DescribeEphemerisCommand = exports.de_DescribeContactCommand = exports.de_DeleteMissionProfileCommand = exports.de_DeleteEphemerisCommand = exports.de_DeleteDataflowEndpointGroupCommand = exports.de_DeleteConfigCommand = exports.de_CreateMissionProfileCommand = exports.de_CreateEphemerisCommand = exports.de_CreateDataflowEndpointGroupCommand = exports.de_CreateConfigCommand = exports.de_CancelContactCommand = exports.se_UpdateMissionProfileCommand = exports.se_UpdateEphemerisCommand = exports.se_UpdateConfigCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ReserveContactCommand = exports.se_RegisterAgentCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSatellitesCommand = exports.se_ListMissionProfilesCommand = exports.se_ListGroundStationsCommand = exports.se_ListEphemeridesCommand = exports.se_ListDataflowEndpointGroupsCommand = exports.se_ListContactsCommand = exports.se_ListConfigsCommand = exports.se_GetSatelliteCommand = exports.se_GetMissionProfileCommand = exports.se_GetMinuteUsageCommand = exports.se_GetDataflowEndpointGroupCommand = exports.se_GetConfigCommand = exports.se_GetAgentConfigurationCommand = exports.se_DescribeEphemerisCommand = exports.se_DescribeContactCommand = exports.se_DeleteMissionProfileCommand = exports.se_DeleteEphemerisCommand = exports.se_DeleteDataflowEndpointGroupCommand = exports.se_DeleteConfigCommand = exports.se_CreateMissionProfileCommand = exports.se_CreateEphemerisCommand = exports.se_CreateDataflowEndpointGroupCommand = exports.se_CreateConfigCommand = exports.se_CancelContactCommand = void 0;
4
4
  exports.de_UpdateMissionProfileCommand = exports.de_UpdateEphemerisCommand = exports.de_UpdateConfigCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ReserveContactCommand = exports.de_RegisterAgentCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSatellitesCommand = exports.de_ListMissionProfilesCommand = exports.de_ListGroundStationsCommand = exports.de_ListEphemeridesCommand = exports.de_ListDataflowEndpointGroupsCommand = exports.de_ListContactsCommand = exports.de_ListConfigsCommand = void 0;
5
5
  const core_1 = require("@aws-sdk/core");
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_2 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const GroundStationServiceException_1 = require("../models/GroundStationServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_CancelContactCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_2.requestBuilder)(input, context);
12
12
  const headers = {};
13
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/{contactId}";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "contactId", () => input.contactId, "{contactId}", false);
13
+ b.bp("/contact/{contactId}");
14
+ b.p("contactId", () => input.contactId, "{contactId}", false);
15
15
  let body;
16
- return new protocol_http_1.HttpRequest({
17
- protocol,
18
- hostname,
19
- port,
20
- method: "DELETE",
21
- headers,
22
- path: resolvedPath,
23
- body,
24
- });
16
+ b.m("DELETE").h(headers).b(body);
17
+ return b.build();
25
18
  };
26
19
  exports.se_CancelContactCommand = se_CancelContactCommand;
27
20
  const se_CreateConfigCommand = async (input, context) => {
28
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
21
+ const b = (0, core_2.requestBuilder)(input, context);
29
22
  const headers = {
30
23
  "content-type": "application/json",
31
24
  };
32
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config";
25
+ b.bp("/config");
33
26
  let body;
34
27
  body = JSON.stringify((0, smithy_client_1.take)(input, {
35
28
  configData: (_) => se_ConfigTypeData(_, context),
36
29
  name: [],
37
30
  tags: (_) => (0, smithy_client_1._json)(_),
38
31
  }));
39
- return new protocol_http_1.HttpRequest({
40
- protocol,
41
- hostname,
42
- port,
43
- method: "POST",
44
- headers,
45
- path: resolvedPath,
46
- body,
47
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
48
34
  };
49
35
  exports.se_CreateConfigCommand = se_CreateConfigCommand;
50
36
  const se_CreateDataflowEndpointGroupCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
+ const b = (0, core_2.requestBuilder)(input, context);
52
38
  const headers = {
53
39
  "content-type": "application/json",
54
40
  };
55
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup";
41
+ b.bp("/dataflowEndpointGroup");
56
42
  let body;
57
43
  body = JSON.stringify((0, smithy_client_1.take)(input, {
58
44
  contactPostPassDurationSeconds: [],
@@ -60,23 +46,16 @@ const se_CreateDataflowEndpointGroupCommand = async (input, context) => {
60
46
  endpointDetails: (_) => (0, smithy_client_1._json)(_),
61
47
  tags: (_) => (0, smithy_client_1._json)(_),
62
48
  }));
63
- return new protocol_http_1.HttpRequest({
64
- protocol,
65
- hostname,
66
- port,
67
- method: "POST",
68
- headers,
69
- path: resolvedPath,
70
- body,
71
- });
49
+ b.m("POST").h(headers).b(body);
50
+ return b.build();
72
51
  };
73
52
  exports.se_CreateDataflowEndpointGroupCommand = se_CreateDataflowEndpointGroupCommand;
74
53
  const se_CreateEphemerisCommand = async (input, context) => {
75
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = (0, core_2.requestBuilder)(input, context);
76
55
  const headers = {
77
56
  "content-type": "application/json",
78
57
  };
79
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris";
58
+ b.bp("/ephemeris");
80
59
  let body;
81
60
  body = JSON.stringify((0, smithy_client_1.take)(input, {
82
61
  enabled: [],
@@ -88,23 +67,16 @@ const se_CreateEphemerisCommand = async (input, context) => {
88
67
  satelliteId: [],
89
68
  tags: (_) => (0, smithy_client_1._json)(_),
90
69
  }));
91
- return new protocol_http_1.HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "POST",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
70
+ b.m("POST").h(headers).b(body);
71
+ return b.build();
100
72
  };
101
73
  exports.se_CreateEphemerisCommand = se_CreateEphemerisCommand;
102
74
  const se_CreateMissionProfileCommand = async (input, context) => {
103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = (0, core_2.requestBuilder)(input, context);
104
76
  const headers = {
105
77
  "content-type": "application/json",
106
78
  };
107
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile";
79
+ b.bp("/missionprofile");
108
80
  let body;
109
81
  body = JSON.stringify((0, smithy_client_1.take)(input, {
110
82
  contactPostPassDurationSeconds: [],
@@ -117,257 +89,156 @@ const se_CreateMissionProfileCommand = async (input, context) => {
117
89
  tags: (_) => (0, smithy_client_1._json)(_),
118
90
  trackingConfigArn: [],
119
91
  }));
120
- return new protocol_http_1.HttpRequest({
121
- protocol,
122
- hostname,
123
- port,
124
- method: "POST",
125
- headers,
126
- path: resolvedPath,
127
- body,
128
- });
92
+ b.m("POST").h(headers).b(body);
93
+ return b.build();
129
94
  };
130
95
  exports.se_CreateMissionProfileCommand = se_CreateMissionProfileCommand;
131
96
  const se_DeleteConfigCommand = async (input, context) => {
132
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = (0, core_2.requestBuilder)(input, context);
133
98
  const headers = {};
134
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}";
135
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configId", () => input.configId, "{configId}", false);
136
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configType", () => input.configType, "{configType}", false);
99
+ b.bp("/config/{configType}/{configId}");
100
+ b.p("configId", () => input.configId, "{configId}", false);
101
+ b.p("configType", () => input.configType, "{configType}", false);
137
102
  let body;
138
- return new protocol_http_1.HttpRequest({
139
- protocol,
140
- hostname,
141
- port,
142
- method: "DELETE",
143
- headers,
144
- path: resolvedPath,
145
- body,
146
- });
103
+ b.m("DELETE").h(headers).b(body);
104
+ return b.build();
147
105
  };
148
106
  exports.se_DeleteConfigCommand = se_DeleteConfigCommand;
149
107
  const se_DeleteDataflowEndpointGroupCommand = async (input, context) => {
150
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const b = (0, core_2.requestBuilder)(input, context);
151
109
  const headers = {};
152
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
153
- "/dataflowEndpointGroup/{dataflowEndpointGroupId}";
154
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataflowEndpointGroupId", () => input.dataflowEndpointGroupId, "{dataflowEndpointGroupId}", false);
110
+ b.bp("/dataflowEndpointGroup/{dataflowEndpointGroupId}");
111
+ b.p("dataflowEndpointGroupId", () => input.dataflowEndpointGroupId, "{dataflowEndpointGroupId}", false);
155
112
  let body;
156
- return new protocol_http_1.HttpRequest({
157
- protocol,
158
- hostname,
159
- port,
160
- method: "DELETE",
161
- headers,
162
- path: resolvedPath,
163
- body,
164
- });
113
+ b.m("DELETE").h(headers).b(body);
114
+ return b.build();
165
115
  };
166
116
  exports.se_DeleteDataflowEndpointGroupCommand = se_DeleteDataflowEndpointGroupCommand;
167
117
  const se_DeleteEphemerisCommand = async (input, context) => {
168
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
118
+ const b = (0, core_2.requestBuilder)(input, context);
169
119
  const headers = {};
170
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}";
171
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
120
+ b.bp("/ephemeris/{ephemerisId}");
121
+ b.p("ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
172
122
  let body;
173
- return new protocol_http_1.HttpRequest({
174
- protocol,
175
- hostname,
176
- port,
177
- method: "DELETE",
178
- headers,
179
- path: resolvedPath,
180
- body,
181
- });
123
+ b.m("DELETE").h(headers).b(body);
124
+ return b.build();
182
125
  };
183
126
  exports.se_DeleteEphemerisCommand = se_DeleteEphemerisCommand;
184
127
  const se_DeleteMissionProfileCommand = async (input, context) => {
185
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
128
+ const b = (0, core_2.requestBuilder)(input, context);
186
129
  const headers = {};
187
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}";
188
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
130
+ b.bp("/missionprofile/{missionProfileId}");
131
+ b.p("missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
189
132
  let body;
190
- return new protocol_http_1.HttpRequest({
191
- protocol,
192
- hostname,
193
- port,
194
- method: "DELETE",
195
- headers,
196
- path: resolvedPath,
197
- body,
198
- });
133
+ b.m("DELETE").h(headers).b(body);
134
+ return b.build();
199
135
  };
200
136
  exports.se_DeleteMissionProfileCommand = se_DeleteMissionProfileCommand;
201
137
  const se_DescribeContactCommand = async (input, context) => {
202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
138
+ const b = (0, core_2.requestBuilder)(input, context);
203
139
  const headers = {};
204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/{contactId}";
205
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "contactId", () => input.contactId, "{contactId}", false);
140
+ b.bp("/contact/{contactId}");
141
+ b.p("contactId", () => input.contactId, "{contactId}", false);
206
142
  let body;
207
- return new protocol_http_1.HttpRequest({
208
- protocol,
209
- hostname,
210
- port,
211
- method: "GET",
212
- headers,
213
- path: resolvedPath,
214
- body,
215
- });
143
+ b.m("GET").h(headers).b(body);
144
+ return b.build();
216
145
  };
217
146
  exports.se_DescribeContactCommand = se_DescribeContactCommand;
218
147
  const se_DescribeEphemerisCommand = async (input, context) => {
219
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = (0, core_2.requestBuilder)(input, context);
220
149
  const headers = {};
221
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}";
222
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
150
+ b.bp("/ephemeris/{ephemerisId}");
151
+ b.p("ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
223
152
  let body;
224
- return new protocol_http_1.HttpRequest({
225
- protocol,
226
- hostname,
227
- port,
228
- method: "GET",
229
- headers,
230
- path: resolvedPath,
231
- body,
232
- });
153
+ b.m("GET").h(headers).b(body);
154
+ return b.build();
233
155
  };
234
156
  exports.se_DescribeEphemerisCommand = se_DescribeEphemerisCommand;
235
157
  const se_GetAgentConfigurationCommand = async (input, context) => {
236
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_2.requestBuilder)(input, context);
237
159
  const headers = {};
238
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}/configuration";
239
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "agentId", () => input.agentId, "{agentId}", false);
160
+ b.bp("/agent/{agentId}/configuration");
161
+ b.p("agentId", () => input.agentId, "{agentId}", false);
240
162
  let body;
241
- return new protocol_http_1.HttpRequest({
242
- protocol,
243
- hostname,
244
- port,
245
- method: "GET",
246
- headers,
247
- path: resolvedPath,
248
- body,
249
- });
163
+ b.m("GET").h(headers).b(body);
164
+ return b.build();
250
165
  };
251
166
  exports.se_GetAgentConfigurationCommand = se_GetAgentConfigurationCommand;
252
167
  const se_GetConfigCommand = async (input, context) => {
253
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
+ const b = (0, core_2.requestBuilder)(input, context);
254
169
  const headers = {};
255
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}";
256
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configId", () => input.configId, "{configId}", false);
257
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configType", () => input.configType, "{configType}", false);
170
+ b.bp("/config/{configType}/{configId}");
171
+ b.p("configId", () => input.configId, "{configId}", false);
172
+ b.p("configType", () => input.configType, "{configType}", false);
258
173
  let body;
259
- return new protocol_http_1.HttpRequest({
260
- protocol,
261
- hostname,
262
- port,
263
- method: "GET",
264
- headers,
265
- path: resolvedPath,
266
- body,
267
- });
174
+ b.m("GET").h(headers).b(body);
175
+ return b.build();
268
176
  };
269
177
  exports.se_GetConfigCommand = se_GetConfigCommand;
270
178
  const se_GetDataflowEndpointGroupCommand = async (input, context) => {
271
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
+ const b = (0, core_2.requestBuilder)(input, context);
272
180
  const headers = {};
273
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
274
- "/dataflowEndpointGroup/{dataflowEndpointGroupId}";
275
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataflowEndpointGroupId", () => input.dataflowEndpointGroupId, "{dataflowEndpointGroupId}", false);
181
+ b.bp("/dataflowEndpointGroup/{dataflowEndpointGroupId}");
182
+ b.p("dataflowEndpointGroupId", () => input.dataflowEndpointGroupId, "{dataflowEndpointGroupId}", false);
276
183
  let body;
277
- return new protocol_http_1.HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "GET",
282
- headers,
283
- path: resolvedPath,
284
- body,
285
- });
184
+ b.m("GET").h(headers).b(body);
185
+ return b.build();
286
186
  };
287
187
  exports.se_GetDataflowEndpointGroupCommand = se_GetDataflowEndpointGroupCommand;
288
188
  const se_GetMinuteUsageCommand = async (input, context) => {
289
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_2.requestBuilder)(input, context);
290
190
  const headers = {
291
191
  "content-type": "application/json",
292
192
  };
293
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/minute-usage";
193
+ b.bp("/minute-usage");
294
194
  let body;
295
195
  body = JSON.stringify((0, smithy_client_1.take)(input, {
296
196
  month: [],
297
197
  year: [],
298
198
  }));
299
- return new protocol_http_1.HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "POST",
304
- headers,
305
- path: resolvedPath,
306
- body,
307
- });
199
+ b.m("POST").h(headers).b(body);
200
+ return b.build();
308
201
  };
309
202
  exports.se_GetMinuteUsageCommand = se_GetMinuteUsageCommand;
310
203
  const se_GetMissionProfileCommand = async (input, context) => {
311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
+ const b = (0, core_2.requestBuilder)(input, context);
312
205
  const headers = {};
313
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}";
314
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
206
+ b.bp("/missionprofile/{missionProfileId}");
207
+ b.p("missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
315
208
  let body;
316
- return new protocol_http_1.HttpRequest({
317
- protocol,
318
- hostname,
319
- port,
320
- method: "GET",
321
- headers,
322
- path: resolvedPath,
323
- body,
324
- });
209
+ b.m("GET").h(headers).b(body);
210
+ return b.build();
325
211
  };
326
212
  exports.se_GetMissionProfileCommand = se_GetMissionProfileCommand;
327
213
  const se_GetSatelliteCommand = async (input, context) => {
328
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = (0, core_2.requestBuilder)(input, context);
329
215
  const headers = {};
330
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/satellite/{satelliteId}";
331
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "satelliteId", () => input.satelliteId, "{satelliteId}", false);
216
+ b.bp("/satellite/{satelliteId}");
217
+ b.p("satelliteId", () => input.satelliteId, "{satelliteId}", false);
332
218
  let body;
333
- return new protocol_http_1.HttpRequest({
334
- protocol,
335
- hostname,
336
- port,
337
- method: "GET",
338
- headers,
339
- path: resolvedPath,
340
- body,
341
- });
219
+ b.m("GET").h(headers).b(body);
220
+ return b.build();
342
221
  };
343
222
  exports.se_GetSatelliteCommand = se_GetSatelliteCommand;
344
223
  const se_ListConfigsCommand = async (input, context) => {
345
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = (0, core_2.requestBuilder)(input, context);
346
225
  const headers = {};
347
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config";
226
+ b.bp("/config");
348
227
  const query = (0, smithy_client_1.map)({
349
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
350
- nextToken: [, input.nextToken],
228
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
229
+ [_nT]: [, input[_nT]],
351
230
  });
352
231
  let body;
353
- return new protocol_http_1.HttpRequest({
354
- protocol,
355
- hostname,
356
- port,
357
- method: "GET",
358
- headers,
359
- path: resolvedPath,
360
- query,
361
- body,
362
- });
232
+ b.m("GET").h(headers).q(query).b(body);
233
+ return b.build();
363
234
  };
364
235
  exports.se_ListConfigsCommand = se_ListConfigsCommand;
365
236
  const se_ListContactsCommand = async (input, context) => {
366
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
+ const b = (0, core_2.requestBuilder)(input, context);
367
238
  const headers = {
368
239
  "content-type": "application/json",
369
240
  };
370
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts";
241
+ b.bp("/contacts");
371
242
  let body;
372
243
  body = JSON.stringify((0, smithy_client_1.take)(input, {
373
244
  endTime: (_) => Math.round(_.getTime() / 1000),
@@ -379,47 +250,32 @@ const se_ListContactsCommand = async (input, context) => {
379
250
  startTime: (_) => Math.round(_.getTime() / 1000),
380
251
  statusList: (_) => (0, smithy_client_1._json)(_),
381
252
  }));
382
- return new protocol_http_1.HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "POST",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
253
+ b.m("POST").h(headers).b(body);
254
+ return b.build();
391
255
  };
392
256
  exports.se_ListContactsCommand = se_ListContactsCommand;
393
257
  const se_ListDataflowEndpointGroupsCommand = async (input, context) => {
394
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
+ const b = (0, core_2.requestBuilder)(input, context);
395
259
  const headers = {};
396
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup";
260
+ b.bp("/dataflowEndpointGroup");
397
261
  const query = (0, smithy_client_1.map)({
398
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
399
- nextToken: [, input.nextToken],
262
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
263
+ [_nT]: [, input[_nT]],
400
264
  });
401
265
  let body;
402
- return new protocol_http_1.HttpRequest({
403
- protocol,
404
- hostname,
405
- port,
406
- method: "GET",
407
- headers,
408
- path: resolvedPath,
409
- query,
410
- body,
411
- });
266
+ b.m("GET").h(headers).q(query).b(body);
267
+ return b.build();
412
268
  };
413
269
  exports.se_ListDataflowEndpointGroupsCommand = se_ListDataflowEndpointGroupsCommand;
414
270
  const se_ListEphemeridesCommand = async (input, context) => {
415
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
+ const b = (0, core_2.requestBuilder)(input, context);
416
272
  const headers = {
417
273
  "content-type": "application/json",
418
274
  };
419
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemerides";
275
+ b.bp("/ephemerides");
420
276
  const query = (0, smithy_client_1.map)({
421
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
422
- nextToken: [, input.nextToken],
277
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
278
+ [_nT]: [, input[_nT]],
423
279
  });
424
280
  let body;
425
281
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -428,127 +284,81 @@ const se_ListEphemeridesCommand = async (input, context) => {
428
284
  startTime: (_) => Math.round(_.getTime() / 1000),
429
285
  statusList: (_) => (0, smithy_client_1._json)(_),
430
286
  }));
431
- return new protocol_http_1.HttpRequest({
432
- protocol,
433
- hostname,
434
- port,
435
- method: "POST",
436
- headers,
437
- path: resolvedPath,
438
- query,
439
- body,
440
- });
287
+ b.m("POST").h(headers).q(query).b(body);
288
+ return b.build();
441
289
  };
442
290
  exports.se_ListEphemeridesCommand = se_ListEphemeridesCommand;
443
291
  const se_ListGroundStationsCommand = async (input, context) => {
444
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_2.requestBuilder)(input, context);
445
293
  const headers = {};
446
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groundstation";
294
+ b.bp("/groundstation");
447
295
  const query = (0, smithy_client_1.map)({
448
- satelliteId: [, input.satelliteId],
449
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
450
- nextToken: [, input.nextToken],
296
+ [_sI]: [, input[_sI]],
297
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
298
+ [_nT]: [, input[_nT]],
451
299
  });
452
300
  let body;
453
- return new protocol_http_1.HttpRequest({
454
- protocol,
455
- hostname,
456
- port,
457
- method: "GET",
458
- headers,
459
- path: resolvedPath,
460
- query,
461
- body,
462
- });
301
+ b.m("GET").h(headers).q(query).b(body);
302
+ return b.build();
463
303
  };
464
304
  exports.se_ListGroundStationsCommand = se_ListGroundStationsCommand;
465
305
  const se_ListMissionProfilesCommand = async (input, context) => {
466
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
+ const b = (0, core_2.requestBuilder)(input, context);
467
307
  const headers = {};
468
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile";
308
+ b.bp("/missionprofile");
469
309
  const query = (0, smithy_client_1.map)({
470
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
471
- nextToken: [, input.nextToken],
310
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
311
+ [_nT]: [, input[_nT]],
472
312
  });
473
313
  let body;
474
- return new protocol_http_1.HttpRequest({
475
- protocol,
476
- hostname,
477
- port,
478
- method: "GET",
479
- headers,
480
- path: resolvedPath,
481
- query,
482
- body,
483
- });
314
+ b.m("GET").h(headers).q(query).b(body);
315
+ return b.build();
484
316
  };
485
317
  exports.se_ListMissionProfilesCommand = se_ListMissionProfilesCommand;
486
318
  const se_ListSatellitesCommand = async (input, context) => {
487
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
319
+ const b = (0, core_2.requestBuilder)(input, context);
488
320
  const headers = {};
489
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/satellite";
321
+ b.bp("/satellite");
490
322
  const query = (0, smithy_client_1.map)({
491
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
492
- nextToken: [, input.nextToken],
323
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
324
+ [_nT]: [, input[_nT]],
493
325
  });
494
326
  let body;
495
- return new protocol_http_1.HttpRequest({
496
- protocol,
497
- hostname,
498
- port,
499
- method: "GET",
500
- headers,
501
- path: resolvedPath,
502
- query,
503
- body,
504
- });
327
+ b.m("GET").h(headers).q(query).b(body);
328
+ return b.build();
505
329
  };
506
330
  exports.se_ListSatellitesCommand = se_ListSatellitesCommand;
507
331
  const se_ListTagsForResourceCommand = async (input, context) => {
508
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
+ const b = (0, core_2.requestBuilder)(input, context);
509
333
  const headers = {};
510
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
511
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
334
+ b.bp("/tags/{resourceArn}");
335
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
512
336
  let body;
513
- return new protocol_http_1.HttpRequest({
514
- protocol,
515
- hostname,
516
- port,
517
- method: "GET",
518
- headers,
519
- path: resolvedPath,
520
- body,
521
- });
337
+ b.m("GET").h(headers).b(body);
338
+ return b.build();
522
339
  };
523
340
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
524
341
  const se_RegisterAgentCommand = async (input, context) => {
525
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
342
+ const b = (0, core_2.requestBuilder)(input, context);
526
343
  const headers = {
527
344
  "content-type": "application/json",
528
345
  };
529
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent";
346
+ b.bp("/agent");
530
347
  let body;
531
348
  body = JSON.stringify((0, smithy_client_1.take)(input, {
532
349
  agentDetails: (_) => (0, smithy_client_1._json)(_),
533
350
  discoveryData: (_) => (0, smithy_client_1._json)(_),
534
351
  }));
535
- return new protocol_http_1.HttpRequest({
536
- protocol,
537
- hostname,
538
- port,
539
- method: "POST",
540
- headers,
541
- path: resolvedPath,
542
- body,
543
- });
352
+ b.m("POST").h(headers).b(body);
353
+ return b.build();
544
354
  };
545
355
  exports.se_RegisterAgentCommand = se_RegisterAgentCommand;
546
356
  const se_ReserveContactCommand = async (input, context) => {
547
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
357
+ const b = (0, core_2.requestBuilder)(input, context);
548
358
  const headers = {
549
359
  "content-type": "application/json",
550
360
  };
551
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact";
361
+ b.bp("/contact");
552
362
  let body;
553
363
  body = JSON.stringify((0, smithy_client_1.take)(input, {
554
364
  endTime: (_) => Math.round(_.getTime() / 1000),
@@ -558,142 +368,99 @@ const se_ReserveContactCommand = async (input, context) => {
558
368
  startTime: (_) => Math.round(_.getTime() / 1000),
559
369
  tags: (_) => (0, smithy_client_1._json)(_),
560
370
  }));
561
- return new protocol_http_1.HttpRequest({
562
- protocol,
563
- hostname,
564
- port,
565
- method: "POST",
566
- headers,
567
- path: resolvedPath,
568
- body,
569
- });
371
+ b.m("POST").h(headers).b(body);
372
+ return b.build();
570
373
  };
571
374
  exports.se_ReserveContactCommand = se_ReserveContactCommand;
572
375
  const se_TagResourceCommand = async (input, context) => {
573
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_2.requestBuilder)(input, context);
574
377
  const headers = {
575
378
  "content-type": "application/json",
576
379
  };
577
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
578
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
380
+ b.bp("/tags/{resourceArn}");
381
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
579
382
  let body;
580
383
  body = JSON.stringify((0, smithy_client_1.take)(input, {
581
384
  tags: (_) => (0, smithy_client_1._json)(_),
582
385
  }));
583
- return new protocol_http_1.HttpRequest({
584
- protocol,
585
- hostname,
586
- port,
587
- method: "POST",
588
- headers,
589
- path: resolvedPath,
590
- body,
591
- });
386
+ b.m("POST").h(headers).b(body);
387
+ return b.build();
592
388
  };
593
389
  exports.se_TagResourceCommand = se_TagResourceCommand;
594
390
  const se_UntagResourceCommand = async (input, context) => {
595
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
+ const b = (0, core_2.requestBuilder)(input, context);
596
392
  const headers = {};
597
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
598
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
393
+ b.bp("/tags/{resourceArn}");
394
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
599
395
  const query = (0, smithy_client_1.map)({
600
- tagKeys: [
396
+ [_tK]: [
601
397
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
602
- () => (input.tagKeys || []).map((_entry) => _entry),
398
+ () => (input[_tK] || []).map((_entry) => _entry),
603
399
  ],
604
400
  });
605
401
  let body;
606
- return new protocol_http_1.HttpRequest({
607
- protocol,
608
- hostname,
609
- port,
610
- method: "DELETE",
611
- headers,
612
- path: resolvedPath,
613
- query,
614
- body,
615
- });
402
+ b.m("DELETE").h(headers).q(query).b(body);
403
+ return b.build();
616
404
  };
617
405
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
618
406
  const se_UpdateAgentStatusCommand = async (input, context) => {
619
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const b = (0, core_2.requestBuilder)(input, context);
620
408
  const headers = {
621
409
  "content-type": "application/json",
622
410
  };
623
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}";
624
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "agentId", () => input.agentId, "{agentId}", false);
411
+ b.bp("/agent/{agentId}");
412
+ b.p("agentId", () => input.agentId, "{agentId}", false);
625
413
  let body;
626
414
  body = JSON.stringify((0, smithy_client_1.take)(input, {
627
415
  aggregateStatus: (_) => (0, smithy_client_1._json)(_),
628
416
  componentStatuses: (_) => (0, smithy_client_1._json)(_),
629
417
  taskId: [],
630
418
  }));
631
- return new protocol_http_1.HttpRequest({
632
- protocol,
633
- hostname,
634
- port,
635
- method: "PUT",
636
- headers,
637
- path: resolvedPath,
638
- body,
639
- });
419
+ b.m("PUT").h(headers).b(body);
420
+ return b.build();
640
421
  };
641
422
  exports.se_UpdateAgentStatusCommand = se_UpdateAgentStatusCommand;
642
423
  const se_UpdateConfigCommand = async (input, context) => {
643
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
424
+ const b = (0, core_2.requestBuilder)(input, context);
644
425
  const headers = {
645
426
  "content-type": "application/json",
646
427
  };
647
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}";
648
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configId", () => input.configId, "{configId}", false);
649
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configType", () => input.configType, "{configType}", false);
428
+ b.bp("/config/{configType}/{configId}");
429
+ b.p("configId", () => input.configId, "{configId}", false);
430
+ b.p("configType", () => input.configType, "{configType}", false);
650
431
  let body;
651
432
  body = JSON.stringify((0, smithy_client_1.take)(input, {
652
433
  configData: (_) => se_ConfigTypeData(_, context),
653
434
  name: [],
654
435
  }));
655
- return new protocol_http_1.HttpRequest({
656
- protocol,
657
- hostname,
658
- port,
659
- method: "PUT",
660
- headers,
661
- path: resolvedPath,
662
- body,
663
- });
436
+ b.m("PUT").h(headers).b(body);
437
+ return b.build();
664
438
  };
665
439
  exports.se_UpdateConfigCommand = se_UpdateConfigCommand;
666
440
  const se_UpdateEphemerisCommand = async (input, context) => {
667
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
441
+ const b = (0, core_2.requestBuilder)(input, context);
668
442
  const headers = {
669
443
  "content-type": "application/json",
670
444
  };
671
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}";
672
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
445
+ b.bp("/ephemeris/{ephemerisId}");
446
+ b.p("ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
673
447
  let body;
674
448
  body = JSON.stringify((0, smithy_client_1.take)(input, {
675
449
  enabled: [],
676
450
  name: [],
677
451
  priority: [],
678
452
  }));
679
- return new protocol_http_1.HttpRequest({
680
- protocol,
681
- hostname,
682
- port,
683
- method: "PUT",
684
- headers,
685
- path: resolvedPath,
686
- body,
687
- });
453
+ b.m("PUT").h(headers).b(body);
454
+ return b.build();
688
455
  };
689
456
  exports.se_UpdateEphemerisCommand = se_UpdateEphemerisCommand;
690
457
  const se_UpdateMissionProfileCommand = async (input, context) => {
691
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
458
+ const b = (0, core_2.requestBuilder)(input, context);
692
459
  const headers = {
693
460
  "content-type": "application/json",
694
461
  };
695
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}";
696
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
462
+ b.bp("/missionprofile/{missionProfileId}");
463
+ b.p("missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
697
464
  let body;
698
465
  body = JSON.stringify((0, smithy_client_1.take)(input, {
699
466
  contactPostPassDurationSeconds: [],
@@ -705,15 +472,8 @@ const se_UpdateMissionProfileCommand = async (input, context) => {
705
472
  streamsKmsRole: [],
706
473
  trackingConfigArn: [],
707
474
  }));
708
- return new protocol_http_1.HttpRequest({
709
- protocol,
710
- hostname,
711
- port,
712
- method: "PUT",
713
- headers,
714
- path: resolvedPath,
715
- body,
716
- });
475
+ b.m("PUT").h(headers).b(body);
476
+ return b.build();
717
477
  };
718
478
  exports.se_UpdateMissionProfileCommand = se_UpdateMissionProfileCommand;
719
479
  const de_CancelContactCommand = async (output, context) => {
@@ -2424,6 +2184,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2424
2184
  value !== "" &&
2425
2185
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2426
2186
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2187
+ const _mR = "maxResults";
2188
+ const _nT = "nextToken";
2189
+ const _sI = "satelliteId";
2190
+ const _tK = "tagKeys";
2427
2191
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2428
2192
  if (encoded.length) {
2429
2193
  return JSON.parse(encoded);