@aws-sdk/client-xray 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.
@@ -3,38 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_GetTraceSummariesCommand = exports.de_GetTraceGraphCommand = exports.de_GetTimeSeriesServiceStatisticsCommand = exports.de_GetServiceGraphCommand = exports.de_GetSamplingTargetsCommand = exports.de_GetSamplingStatisticSummariesCommand = exports.de_GetSamplingRulesCommand = exports.de_GetInsightSummariesCommand = exports.de_GetInsightImpactGraphCommand = exports.de_GetInsightEventsCommand = exports.de_GetInsightCommand = exports.de_GetGroupsCommand = exports.de_GetGroupCommand = exports.de_GetEncryptionConfigCommand = exports.de_DeleteSamplingRuleCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteGroupCommand = exports.de_CreateSamplingRuleCommand = exports.de_CreateGroupCommand = exports.de_BatchGetTracesCommand = exports.se_UpdateSamplingRuleCommand = exports.se_UpdateGroupCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutTraceSegmentsCommand = exports.se_PutTelemetryRecordsCommand = exports.se_PutResourcePolicyCommand = exports.se_PutEncryptionConfigCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourcePoliciesCommand = exports.se_GetTraceSummariesCommand = exports.se_GetTraceGraphCommand = exports.se_GetTimeSeriesServiceStatisticsCommand = exports.se_GetServiceGraphCommand = exports.se_GetSamplingTargetsCommand = exports.se_GetSamplingStatisticSummariesCommand = exports.se_GetSamplingRulesCommand = exports.se_GetInsightSummariesCommand = exports.se_GetInsightImpactGraphCommand = exports.se_GetInsightEventsCommand = exports.se_GetInsightCommand = exports.se_GetGroupsCommand = exports.se_GetGroupCommand = exports.se_GetEncryptionConfigCommand = exports.se_DeleteSamplingRuleCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteGroupCommand = exports.se_CreateSamplingRuleCommand = exports.se_CreateGroupCommand = exports.se_BatchGetTracesCommand = void 0;
4
4
  exports.de_UpdateSamplingRuleCommand = exports.de_UpdateGroupCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutTraceSegmentsCommand = exports.de_PutTelemetryRecordsCommand = exports.de_PutResourcePolicyCommand = exports.de_PutEncryptionConfigCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourcePoliciesCommand = 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 models_0_1 = require("../models/models_0");
9
9
  const XRayServiceException_1 = require("../models/XRayServiceException");
10
10
  const se_BatchGetTracesCommand = 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
13
  "content-type": "application/json",
14
14
  };
15
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Traces";
15
+ b.bp("/Traces");
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  NextToken: [],
19
19
  TraceIds: (_) => (0, smithy_client_1._json)(_),
20
20
  }));
21
- return new protocol_http_1.HttpRequest({
22
- protocol,
23
- hostname,
24
- port,
25
- method: "POST",
26
- headers,
27
- path: resolvedPath,
28
- body,
29
- });
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
30
23
  };
31
24
  exports.se_BatchGetTracesCommand = se_BatchGetTracesCommand;
32
25
  const se_CreateGroupCommand = async (input, context) => {
33
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26
+ const b = (0, core_2.requestBuilder)(input, context);
34
27
  const headers = {
35
28
  "content-type": "application/json",
36
29
  };
37
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateGroup";
30
+ b.bp("/CreateGroup");
38
31
  let body;
39
32
  body = JSON.stringify((0, smithy_client_1.take)(input, {
40
33
  FilterExpression: [],
@@ -42,217 +35,147 @@ const se_CreateGroupCommand = async (input, context) => {
42
35
  InsightsConfiguration: (_) => (0, smithy_client_1._json)(_),
43
36
  Tags: (_) => (0, smithy_client_1._json)(_),
44
37
  }));
45
- return new protocol_http_1.HttpRequest({
46
- protocol,
47
- hostname,
48
- port,
49
- method: "POST",
50
- headers,
51
- path: resolvedPath,
52
- body,
53
- });
38
+ b.m("POST").h(headers).b(body);
39
+ return b.build();
54
40
  };
55
41
  exports.se_CreateGroupCommand = se_CreateGroupCommand;
56
42
  const se_CreateSamplingRuleCommand = async (input, context) => {
57
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
43
+ const b = (0, core_2.requestBuilder)(input, context);
58
44
  const headers = {
59
45
  "content-type": "application/json",
60
46
  };
61
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSamplingRule";
47
+ b.bp("/CreateSamplingRule");
62
48
  let body;
63
49
  body = JSON.stringify((0, smithy_client_1.take)(input, {
64
50
  SamplingRule: (_) => se_SamplingRule(_, context),
65
51
  Tags: (_) => (0, smithy_client_1._json)(_),
66
52
  }));
67
- return new protocol_http_1.HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "POST",
72
- headers,
73
- path: resolvedPath,
74
- body,
75
- });
53
+ b.m("POST").h(headers).b(body);
54
+ return b.build();
76
55
  };
77
56
  exports.se_CreateSamplingRuleCommand = se_CreateSamplingRuleCommand;
78
57
  const se_DeleteGroupCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
+ const b = (0, core_2.requestBuilder)(input, context);
80
59
  const headers = {
81
60
  "content-type": "application/json",
82
61
  };
83
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteGroup";
62
+ b.bp("/DeleteGroup");
84
63
  let body;
85
64
  body = JSON.stringify((0, smithy_client_1.take)(input, {
86
65
  GroupARN: [],
87
66
  GroupName: [],
88
67
  }));
89
- return new protocol_http_1.HttpRequest({
90
- protocol,
91
- hostname,
92
- port,
93
- method: "POST",
94
- headers,
95
- path: resolvedPath,
96
- body,
97
- });
68
+ b.m("POST").h(headers).b(body);
69
+ return b.build();
98
70
  };
99
71
  exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
100
72
  const se_DeleteResourcePolicyCommand = async (input, context) => {
101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = (0, core_2.requestBuilder)(input, context);
102
74
  const headers = {
103
75
  "content-type": "application/json",
104
76
  };
105
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteResourcePolicy";
77
+ b.bp("/DeleteResourcePolicy");
106
78
  let body;
107
79
  body = JSON.stringify((0, smithy_client_1.take)(input, {
108
80
  PolicyName: [],
109
81
  PolicyRevisionId: [],
110
82
  }));
111
- return new protocol_http_1.HttpRequest({
112
- protocol,
113
- hostname,
114
- port,
115
- method: "POST",
116
- headers,
117
- path: resolvedPath,
118
- body,
119
- });
83
+ b.m("POST").h(headers).b(body);
84
+ return b.build();
120
85
  };
121
86
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
122
87
  const se_DeleteSamplingRuleCommand = async (input, context) => {
123
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
88
+ const b = (0, core_2.requestBuilder)(input, context);
124
89
  const headers = {
125
90
  "content-type": "application/json",
126
91
  };
127
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSamplingRule";
92
+ b.bp("/DeleteSamplingRule");
128
93
  let body;
129
94
  body = JSON.stringify((0, smithy_client_1.take)(input, {
130
95
  RuleARN: [],
131
96
  RuleName: [],
132
97
  }));
133
- return new protocol_http_1.HttpRequest({
134
- protocol,
135
- hostname,
136
- port,
137
- method: "POST",
138
- headers,
139
- path: resolvedPath,
140
- body,
141
- });
98
+ b.m("POST").h(headers).b(body);
99
+ return b.build();
142
100
  };
143
101
  exports.se_DeleteSamplingRuleCommand = se_DeleteSamplingRuleCommand;
144
102
  const se_GetEncryptionConfigCommand = async (input, context) => {
145
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const b = (0, core_2.requestBuilder)(input, context);
146
104
  const headers = {
147
105
  "content-type": "application/json",
148
106
  };
149
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/EncryptionConfig";
107
+ b.bp("/EncryptionConfig");
150
108
  let body;
151
109
  body = "";
152
- return new protocol_http_1.HttpRequest({
153
- protocol,
154
- hostname,
155
- port,
156
- method: "POST",
157
- headers,
158
- path: resolvedPath,
159
- body,
160
- });
110
+ b.m("POST").h(headers).b(body);
111
+ return b.build();
161
112
  };
162
113
  exports.se_GetEncryptionConfigCommand = se_GetEncryptionConfigCommand;
163
114
  const se_GetGroupCommand = async (input, context) => {
164
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = (0, core_2.requestBuilder)(input, context);
165
116
  const headers = {
166
117
  "content-type": "application/json",
167
118
  };
168
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetGroup";
119
+ b.bp("/GetGroup");
169
120
  let body;
170
121
  body = JSON.stringify((0, smithy_client_1.take)(input, {
171
122
  GroupARN: [],
172
123
  GroupName: [],
173
124
  }));
174
- return new protocol_http_1.HttpRequest({
175
- protocol,
176
- hostname,
177
- port,
178
- method: "POST",
179
- headers,
180
- path: resolvedPath,
181
- body,
182
- });
125
+ b.m("POST").h(headers).b(body);
126
+ return b.build();
183
127
  };
184
128
  exports.se_GetGroupCommand = se_GetGroupCommand;
185
129
  const se_GetGroupsCommand = async (input, context) => {
186
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const b = (0, core_2.requestBuilder)(input, context);
187
131
  const headers = {
188
132
  "content-type": "application/json",
189
133
  };
190
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Groups";
134
+ b.bp("/Groups");
191
135
  let body;
192
136
  body = JSON.stringify((0, smithy_client_1.take)(input, {
193
137
  NextToken: [],
194
138
  }));
195
- return new protocol_http_1.HttpRequest({
196
- protocol,
197
- hostname,
198
- port,
199
- method: "POST",
200
- headers,
201
- path: resolvedPath,
202
- body,
203
- });
139
+ b.m("POST").h(headers).b(body);
140
+ return b.build();
204
141
  };
205
142
  exports.se_GetGroupsCommand = se_GetGroupsCommand;
206
143
  const se_GetInsightCommand = async (input, context) => {
207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
144
+ const b = (0, core_2.requestBuilder)(input, context);
208
145
  const headers = {
209
146
  "content-type": "application/json",
210
147
  };
211
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Insight";
148
+ b.bp("/Insight");
212
149
  let body;
213
150
  body = JSON.stringify((0, smithy_client_1.take)(input, {
214
151
  InsightId: [],
215
152
  }));
216
- return new protocol_http_1.HttpRequest({
217
- protocol,
218
- hostname,
219
- port,
220
- method: "POST",
221
- headers,
222
- path: resolvedPath,
223
- body,
224
- });
153
+ b.m("POST").h(headers).b(body);
154
+ return b.build();
225
155
  };
226
156
  exports.se_GetInsightCommand = se_GetInsightCommand;
227
157
  const se_GetInsightEventsCommand = async (input, context) => {
228
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_2.requestBuilder)(input, context);
229
159
  const headers = {
230
160
  "content-type": "application/json",
231
161
  };
232
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InsightEvents";
162
+ b.bp("/InsightEvents");
233
163
  let body;
234
164
  body = JSON.stringify((0, smithy_client_1.take)(input, {
235
165
  InsightId: [],
236
166
  MaxResults: [],
237
167
  NextToken: [],
238
168
  }));
239
- return new protocol_http_1.HttpRequest({
240
- protocol,
241
- hostname,
242
- port,
243
- method: "POST",
244
- headers,
245
- path: resolvedPath,
246
- body,
247
- });
169
+ b.m("POST").h(headers).b(body);
170
+ return b.build();
248
171
  };
249
172
  exports.se_GetInsightEventsCommand = se_GetInsightEventsCommand;
250
173
  const se_GetInsightImpactGraphCommand = async (input, context) => {
251
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_2.requestBuilder)(input, context);
252
175
  const headers = {
253
176
  "content-type": "application/json",
254
177
  };
255
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InsightImpactGraph";
178
+ b.bp("/InsightImpactGraph");
256
179
  let body;
257
180
  body = JSON.stringify((0, smithy_client_1.take)(input, {
258
181
  EndTime: (_) => Math.round(_.getTime() / 1000),
@@ -260,23 +183,16 @@ const se_GetInsightImpactGraphCommand = async (input, context) => {
260
183
  NextToken: [],
261
184
  StartTime: (_) => Math.round(_.getTime() / 1000),
262
185
  }));
263
- return new protocol_http_1.HttpRequest({
264
- protocol,
265
- hostname,
266
- port,
267
- method: "POST",
268
- headers,
269
- path: resolvedPath,
270
- body,
271
- });
186
+ b.m("POST").h(headers).b(body);
187
+ return b.build();
272
188
  };
273
189
  exports.se_GetInsightImpactGraphCommand = se_GetInsightImpactGraphCommand;
274
190
  const se_GetInsightSummariesCommand = async (input, context) => {
275
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const b = (0, core_2.requestBuilder)(input, context);
276
192
  const headers = {
277
193
  "content-type": "application/json",
278
194
  };
279
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InsightSummaries";
195
+ b.bp("/InsightSummaries");
280
196
  let body;
281
197
  body = JSON.stringify((0, smithy_client_1.take)(input, {
282
198
  EndTime: (_) => Math.round(_.getTime() / 1000),
@@ -287,86 +203,58 @@ const se_GetInsightSummariesCommand = async (input, context) => {
287
203
  StartTime: (_) => Math.round(_.getTime() / 1000),
288
204
  States: (_) => (0, smithy_client_1._json)(_),
289
205
  }));
290
- return new protocol_http_1.HttpRequest({
291
- protocol,
292
- hostname,
293
- port,
294
- method: "POST",
295
- headers,
296
- path: resolvedPath,
297
- body,
298
- });
206
+ b.m("POST").h(headers).b(body);
207
+ return b.build();
299
208
  };
300
209
  exports.se_GetInsightSummariesCommand = se_GetInsightSummariesCommand;
301
210
  const se_GetSamplingRulesCommand = async (input, context) => {
302
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
+ const b = (0, core_2.requestBuilder)(input, context);
303
212
  const headers = {
304
213
  "content-type": "application/json",
305
214
  };
306
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetSamplingRules";
215
+ b.bp("/GetSamplingRules");
307
216
  let body;
308
217
  body = JSON.stringify((0, smithy_client_1.take)(input, {
309
218
  NextToken: [],
310
219
  }));
311
- return new protocol_http_1.HttpRequest({
312
- protocol,
313
- hostname,
314
- port,
315
- method: "POST",
316
- headers,
317
- path: resolvedPath,
318
- body,
319
- });
220
+ b.m("POST").h(headers).b(body);
221
+ return b.build();
320
222
  };
321
223
  exports.se_GetSamplingRulesCommand = se_GetSamplingRulesCommand;
322
224
  const se_GetSamplingStatisticSummariesCommand = async (input, context) => {
323
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = (0, core_2.requestBuilder)(input, context);
324
226
  const headers = {
325
227
  "content-type": "application/json",
326
228
  };
327
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SamplingStatisticSummaries";
229
+ b.bp("/SamplingStatisticSummaries");
328
230
  let body;
329
231
  body = JSON.stringify((0, smithy_client_1.take)(input, {
330
232
  NextToken: [],
331
233
  }));
332
- return new protocol_http_1.HttpRequest({
333
- protocol,
334
- hostname,
335
- port,
336
- method: "POST",
337
- headers,
338
- path: resolvedPath,
339
- body,
340
- });
234
+ b.m("POST").h(headers).b(body);
235
+ return b.build();
341
236
  };
342
237
  exports.se_GetSamplingStatisticSummariesCommand = se_GetSamplingStatisticSummariesCommand;
343
238
  const se_GetSamplingTargetsCommand = async (input, context) => {
344
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
+ const b = (0, core_2.requestBuilder)(input, context);
345
240
  const headers = {
346
241
  "content-type": "application/json",
347
242
  };
348
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SamplingTargets";
243
+ b.bp("/SamplingTargets");
349
244
  let body;
350
245
  body = JSON.stringify((0, smithy_client_1.take)(input, {
351
246
  SamplingStatisticsDocuments: (_) => se_SamplingStatisticsDocumentList(_, context),
352
247
  }));
353
- return new protocol_http_1.HttpRequest({
354
- protocol,
355
- hostname,
356
- port,
357
- method: "POST",
358
- headers,
359
- path: resolvedPath,
360
- body,
361
- });
248
+ b.m("POST").h(headers).b(body);
249
+ return b.build();
362
250
  };
363
251
  exports.se_GetSamplingTargetsCommand = se_GetSamplingTargetsCommand;
364
252
  const se_GetServiceGraphCommand = async (input, context) => {
365
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = (0, core_2.requestBuilder)(input, context);
366
254
  const headers = {
367
255
  "content-type": "application/json",
368
256
  };
369
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ServiceGraph";
257
+ b.bp("/ServiceGraph");
370
258
  let body;
371
259
  body = JSON.stringify((0, smithy_client_1.take)(input, {
372
260
  EndTime: (_) => Math.round(_.getTime() / 1000),
@@ -375,23 +263,16 @@ const se_GetServiceGraphCommand = async (input, context) => {
375
263
  NextToken: [],
376
264
  StartTime: (_) => Math.round(_.getTime() / 1000),
377
265
  }));
378
- return new protocol_http_1.HttpRequest({
379
- protocol,
380
- hostname,
381
- port,
382
- method: "POST",
383
- headers,
384
- path: resolvedPath,
385
- body,
386
- });
266
+ b.m("POST").h(headers).b(body);
267
+ return b.build();
387
268
  };
388
269
  exports.se_GetServiceGraphCommand = se_GetServiceGraphCommand;
389
270
  const se_GetTimeSeriesServiceStatisticsCommand = async (input, context) => {
390
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
+ const b = (0, core_2.requestBuilder)(input, context);
391
272
  const headers = {
392
273
  "content-type": "application/json",
393
274
  };
394
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TimeSeriesServiceStatistics";
275
+ b.bp("/TimeSeriesServiceStatistics");
395
276
  let body;
396
277
  body = JSON.stringify((0, smithy_client_1.take)(input, {
397
278
  EndTime: (_) => Math.round(_.getTime() / 1000),
@@ -403,45 +284,31 @@ const se_GetTimeSeriesServiceStatisticsCommand = async (input, context) => {
403
284
  Period: [],
404
285
  StartTime: (_) => Math.round(_.getTime() / 1000),
405
286
  }));
406
- return new protocol_http_1.HttpRequest({
407
- protocol,
408
- hostname,
409
- port,
410
- method: "POST",
411
- headers,
412
- path: resolvedPath,
413
- body,
414
- });
287
+ b.m("POST").h(headers).b(body);
288
+ return b.build();
415
289
  };
416
290
  exports.se_GetTimeSeriesServiceStatisticsCommand = se_GetTimeSeriesServiceStatisticsCommand;
417
291
  const se_GetTraceGraphCommand = async (input, context) => {
418
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_2.requestBuilder)(input, context);
419
293
  const headers = {
420
294
  "content-type": "application/json",
421
295
  };
422
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TraceGraph";
296
+ b.bp("/TraceGraph");
423
297
  let body;
424
298
  body = JSON.stringify((0, smithy_client_1.take)(input, {
425
299
  NextToken: [],
426
300
  TraceIds: (_) => (0, smithy_client_1._json)(_),
427
301
  }));
428
- return new protocol_http_1.HttpRequest({
429
- protocol,
430
- hostname,
431
- port,
432
- method: "POST",
433
- headers,
434
- path: resolvedPath,
435
- body,
436
- });
302
+ b.m("POST").h(headers).b(body);
303
+ return b.build();
437
304
  };
438
305
  exports.se_GetTraceGraphCommand = se_GetTraceGraphCommand;
439
306
  const se_GetTraceSummariesCommand = async (input, context) => {
440
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
307
+ const b = (0, core_2.requestBuilder)(input, context);
441
308
  const headers = {
442
309
  "content-type": "application/json",
443
310
  };
444
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TraceSummaries";
311
+ b.bp("/TraceSummaries");
445
312
  let body;
446
313
  body = JSON.stringify((0, smithy_client_1.take)(input, {
447
314
  EndTime: (_) => Math.round(_.getTime() / 1000),
@@ -452,88 +319,60 @@ const se_GetTraceSummariesCommand = async (input, context) => {
452
319
  StartTime: (_) => Math.round(_.getTime() / 1000),
453
320
  TimeRangeType: [],
454
321
  }));
455
- return new protocol_http_1.HttpRequest({
456
- protocol,
457
- hostname,
458
- port,
459
- method: "POST",
460
- headers,
461
- path: resolvedPath,
462
- body,
463
- });
322
+ b.m("POST").h(headers).b(body);
323
+ return b.build();
464
324
  };
465
325
  exports.se_GetTraceSummariesCommand = se_GetTraceSummariesCommand;
466
326
  const se_ListResourcePoliciesCommand = async (input, context) => {
467
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
327
+ const b = (0, core_2.requestBuilder)(input, context);
468
328
  const headers = {
469
329
  "content-type": "application/json",
470
330
  };
471
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListResourcePolicies";
331
+ b.bp("/ListResourcePolicies");
472
332
  let body;
473
333
  body = JSON.stringify((0, smithy_client_1.take)(input, {
474
334
  NextToken: [],
475
335
  }));
476
- return new protocol_http_1.HttpRequest({
477
- protocol,
478
- hostname,
479
- port,
480
- method: "POST",
481
- headers,
482
- path: resolvedPath,
483
- body,
484
- });
336
+ b.m("POST").h(headers).b(body);
337
+ return b.build();
485
338
  };
486
339
  exports.se_ListResourcePoliciesCommand = se_ListResourcePoliciesCommand;
487
340
  const se_ListTagsForResourceCommand = async (input, context) => {
488
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
341
+ const b = (0, core_2.requestBuilder)(input, context);
489
342
  const headers = {
490
343
  "content-type": "application/json",
491
344
  };
492
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
345
+ b.bp("/ListTagsForResource");
493
346
  let body;
494
347
  body = JSON.stringify((0, smithy_client_1.take)(input, {
495
348
  NextToken: [],
496
349
  ResourceARN: [],
497
350
  }));
498
- return new protocol_http_1.HttpRequest({
499
- protocol,
500
- hostname,
501
- port,
502
- method: "POST",
503
- headers,
504
- path: resolvedPath,
505
- body,
506
- });
351
+ b.m("POST").h(headers).b(body);
352
+ return b.build();
507
353
  };
508
354
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
509
355
  const se_PutEncryptionConfigCommand = async (input, context) => {
510
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
356
+ const b = (0, core_2.requestBuilder)(input, context);
511
357
  const headers = {
512
358
  "content-type": "application/json",
513
359
  };
514
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutEncryptionConfig";
360
+ b.bp("/PutEncryptionConfig");
515
361
  let body;
516
362
  body = JSON.stringify((0, smithy_client_1.take)(input, {
517
363
  KeyId: [],
518
364
  Type: [],
519
365
  }));
520
- return new protocol_http_1.HttpRequest({
521
- protocol,
522
- hostname,
523
- port,
524
- method: "POST",
525
- headers,
526
- path: resolvedPath,
527
- body,
528
- });
366
+ b.m("POST").h(headers).b(body);
367
+ return b.build();
529
368
  };
530
369
  exports.se_PutEncryptionConfigCommand = se_PutEncryptionConfigCommand;
531
370
  const se_PutResourcePolicyCommand = async (input, context) => {
532
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
371
+ const b = (0, core_2.requestBuilder)(input, context);
533
372
  const headers = {
534
373
  "content-type": "application/json",
535
374
  };
536
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutResourcePolicy";
375
+ b.bp("/PutResourcePolicy");
537
376
  let body;
538
377
  body = JSON.stringify((0, smithy_client_1.take)(input, {
539
378
  BypassPolicyLockoutCheck: [],
@@ -541,23 +380,16 @@ const se_PutResourcePolicyCommand = async (input, context) => {
541
380
  PolicyName: [],
542
381
  PolicyRevisionId: [],
543
382
  }));
544
- return new protocol_http_1.HttpRequest({
545
- protocol,
546
- hostname,
547
- port,
548
- method: "POST",
549
- headers,
550
- path: resolvedPath,
551
- body,
552
- });
383
+ b.m("POST").h(headers).b(body);
384
+ return b.build();
553
385
  };
554
386
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
555
387
  const se_PutTelemetryRecordsCommand = async (input, context) => {
556
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
388
+ const b = (0, core_2.requestBuilder)(input, context);
557
389
  const headers = {
558
390
  "content-type": "application/json",
559
391
  };
560
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TelemetryRecords";
392
+ b.bp("/TelemetryRecords");
561
393
  let body;
562
394
  body = JSON.stringify((0, smithy_client_1.take)(input, {
563
395
  EC2InstanceId: [],
@@ -565,88 +397,60 @@ const se_PutTelemetryRecordsCommand = async (input, context) => {
565
397
  ResourceARN: [],
566
398
  TelemetryRecords: (_) => se_TelemetryRecordList(_, context),
567
399
  }));
568
- return new protocol_http_1.HttpRequest({
569
- protocol,
570
- hostname,
571
- port,
572
- method: "POST",
573
- headers,
574
- path: resolvedPath,
575
- body,
576
- });
400
+ b.m("POST").h(headers).b(body);
401
+ return b.build();
577
402
  };
578
403
  exports.se_PutTelemetryRecordsCommand = se_PutTelemetryRecordsCommand;
579
404
  const se_PutTraceSegmentsCommand = async (input, context) => {
580
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const b = (0, core_2.requestBuilder)(input, context);
581
406
  const headers = {
582
407
  "content-type": "application/json",
583
408
  };
584
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TraceSegments";
409
+ b.bp("/TraceSegments");
585
410
  let body;
586
411
  body = JSON.stringify((0, smithy_client_1.take)(input, {
587
412
  TraceSegmentDocuments: (_) => (0, smithy_client_1._json)(_),
588
413
  }));
589
- return new protocol_http_1.HttpRequest({
590
- protocol,
591
- hostname,
592
- port,
593
- method: "POST",
594
- headers,
595
- path: resolvedPath,
596
- body,
597
- });
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
598
416
  };
599
417
  exports.se_PutTraceSegmentsCommand = se_PutTraceSegmentsCommand;
600
418
  const se_TagResourceCommand = async (input, context) => {
601
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
+ const b = (0, core_2.requestBuilder)(input, context);
602
420
  const headers = {
603
421
  "content-type": "application/json",
604
422
  };
605
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
423
+ b.bp("/TagResource");
606
424
  let body;
607
425
  body = JSON.stringify((0, smithy_client_1.take)(input, {
608
426
  ResourceARN: [],
609
427
  Tags: (_) => (0, smithy_client_1._json)(_),
610
428
  }));
611
- return new protocol_http_1.HttpRequest({
612
- protocol,
613
- hostname,
614
- port,
615
- method: "POST",
616
- headers,
617
- path: resolvedPath,
618
- body,
619
- });
429
+ b.m("POST").h(headers).b(body);
430
+ return b.build();
620
431
  };
621
432
  exports.se_TagResourceCommand = se_TagResourceCommand;
622
433
  const se_UntagResourceCommand = async (input, context) => {
623
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
434
+ const b = (0, core_2.requestBuilder)(input, context);
624
435
  const headers = {
625
436
  "content-type": "application/json",
626
437
  };
627
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
438
+ b.bp("/UntagResource");
628
439
  let body;
629
440
  body = JSON.stringify((0, smithy_client_1.take)(input, {
630
441
  ResourceARN: [],
631
442
  TagKeys: (_) => (0, smithy_client_1._json)(_),
632
443
  }));
633
- return new protocol_http_1.HttpRequest({
634
- protocol,
635
- hostname,
636
- port,
637
- method: "POST",
638
- headers,
639
- path: resolvedPath,
640
- body,
641
- });
444
+ b.m("POST").h(headers).b(body);
445
+ return b.build();
642
446
  };
643
447
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
644
448
  const se_UpdateGroupCommand = async (input, context) => {
645
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
449
+ const b = (0, core_2.requestBuilder)(input, context);
646
450
  const headers = {
647
451
  "content-type": "application/json",
648
452
  };
649
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateGroup";
453
+ b.bp("/UpdateGroup");
650
454
  let body;
651
455
  body = JSON.stringify((0, smithy_client_1.take)(input, {
652
456
  FilterExpression: [],
@@ -654,36 +458,22 @@ const se_UpdateGroupCommand = async (input, context) => {
654
458
  GroupName: [],
655
459
  InsightsConfiguration: (_) => (0, smithy_client_1._json)(_),
656
460
  }));
657
- return new protocol_http_1.HttpRequest({
658
- protocol,
659
- hostname,
660
- port,
661
- method: "POST",
662
- headers,
663
- path: resolvedPath,
664
- body,
665
- });
461
+ b.m("POST").h(headers).b(body);
462
+ return b.build();
666
463
  };
667
464
  exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
668
465
  const se_UpdateSamplingRuleCommand = async (input, context) => {
669
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
466
+ const b = (0, core_2.requestBuilder)(input, context);
670
467
  const headers = {
671
468
  "content-type": "application/json",
672
469
  };
673
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSamplingRule";
470
+ b.bp("/UpdateSamplingRule");
674
471
  let body;
675
472
  body = JSON.stringify((0, smithy_client_1.take)(input, {
676
473
  SamplingRuleUpdate: (_) => se_SamplingRuleUpdate(_, context),
677
474
  }));
678
- return new protocol_http_1.HttpRequest({
679
- protocol,
680
- hostname,
681
- port,
682
- method: "POST",
683
- headers,
684
- path: resolvedPath,
685
- body,
686
- });
475
+ b.m("POST").h(headers).b(body);
476
+ return b.build();
687
477
  };
688
478
  exports.se_UpdateSamplingRuleCommand = se_UpdateSamplingRuleCommand;
689
479
  const de_BatchGetTracesCommand = async (output, context) => {