@aws-sdk/client-xray 3.489.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist-cjs/XRay.js +1 -71
  2. package/dist-cjs/XRayClient.js +1 -43
  3. package/dist-cjs/commands/BatchGetTracesCommand.js +1 -28
  4. package/dist-cjs/commands/CreateGroupCommand.js +1 -28
  5. package/dist-cjs/commands/CreateSamplingRuleCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteGroupCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteSamplingRuleCommand.js +1 -28
  9. package/dist-cjs/commands/GetEncryptionConfigCommand.js +1 -28
  10. package/dist-cjs/commands/GetGroupCommand.js +1 -28
  11. package/dist-cjs/commands/GetGroupsCommand.js +1 -28
  12. package/dist-cjs/commands/GetInsightCommand.js +1 -28
  13. package/dist-cjs/commands/GetInsightEventsCommand.js +1 -28
  14. package/dist-cjs/commands/GetInsightImpactGraphCommand.js +1 -28
  15. package/dist-cjs/commands/GetInsightSummariesCommand.js +1 -28
  16. package/dist-cjs/commands/GetSamplingRulesCommand.js +1 -28
  17. package/dist-cjs/commands/GetSamplingStatisticSummariesCommand.js +1 -28
  18. package/dist-cjs/commands/GetSamplingTargetsCommand.js +1 -28
  19. package/dist-cjs/commands/GetServiceGraphCommand.js +1 -28
  20. package/dist-cjs/commands/GetTimeSeriesServiceStatisticsCommand.js +1 -28
  21. package/dist-cjs/commands/GetTraceGraphCommand.js +1 -28
  22. package/dist-cjs/commands/GetTraceSummariesCommand.js +1 -28
  23. package/dist-cjs/commands/ListResourcePoliciesCommand.js +1 -28
  24. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  25. package/dist-cjs/commands/PutEncryptionConfigCommand.js +1 -28
  26. package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
  27. package/dist-cjs/commands/PutTelemetryRecordsCommand.js +1 -28
  28. package/dist-cjs/commands/PutTraceSegmentsCommand.js +1 -28
  29. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  30. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  31. package/dist-cjs/commands/UpdateGroupCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateSamplingRuleCommand.js +1 -28
  33. package/dist-cjs/commands/index.js +1 -33
  34. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  35. package/dist-cjs/extensionConfiguration.js +1 -2
  36. package/dist-cjs/index.js +3280 -11
  37. package/dist-cjs/models/XRayServiceException.js +1 -12
  38. package/dist-cjs/models/index.js +1 -4
  39. package/dist-cjs/models/models_0.js +1 -182
  40. package/dist-cjs/pagination/BatchGetTracesPaginator.js +1 -7
  41. package/dist-cjs/pagination/GetGroupsPaginator.js +1 -7
  42. package/dist-cjs/pagination/GetInsightEventsPaginator.js +1 -7
  43. package/dist-cjs/pagination/GetInsightSummariesPaginator.js +1 -7
  44. package/dist-cjs/pagination/GetSamplingRulesPaginator.js +1 -7
  45. package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js +1 -7
  46. package/dist-cjs/pagination/GetServiceGraphPaginator.js +1 -7
  47. package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js +1 -7
  48. package/dist-cjs/pagination/GetTraceGraphPaginator.js +1 -7
  49. package/dist-cjs/pagination/GetTraceSummariesPaginator.js +1 -7
  50. package/dist-cjs/pagination/Interfaces.js +1 -2
  51. package/dist-cjs/pagination/ListResourcePoliciesPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
  53. package/dist-cjs/pagination/index.js +1 -16
  54. package/dist-cjs/protocols/Aws_restJson1.js +1 -2248
  55. package/dist-cjs/runtimeExtensions.js +1 -22
  56. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3281 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.XRayServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./XRayClient"), exports);
6
- tslib_1.__exportStar(require("./XRay"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var XRayServiceException_1 = require("./models/XRayServiceException");
12
- Object.defineProperty(exports, "XRayServiceException", { enumerable: true, get: function () { return XRayServiceException_1.XRayServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AnnotationValue: () => AnnotationValue,
25
+ BatchGetTracesCommand: () => BatchGetTracesCommand,
26
+ CreateGroupCommand: () => CreateGroupCommand,
27
+ CreateSamplingRuleCommand: () => CreateSamplingRuleCommand,
28
+ DeleteGroupCommand: () => DeleteGroupCommand,
29
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
30
+ DeleteSamplingRuleCommand: () => DeleteSamplingRuleCommand,
31
+ EncryptionStatus: () => EncryptionStatus,
32
+ EncryptionType: () => EncryptionType,
33
+ GetEncryptionConfigCommand: () => GetEncryptionConfigCommand,
34
+ GetGroupCommand: () => GetGroupCommand,
35
+ GetGroupsCommand: () => GetGroupsCommand,
36
+ GetInsightCommand: () => GetInsightCommand,
37
+ GetInsightEventsCommand: () => GetInsightEventsCommand,
38
+ GetInsightImpactGraphCommand: () => GetInsightImpactGraphCommand,
39
+ GetInsightSummariesCommand: () => GetInsightSummariesCommand,
40
+ GetSamplingRulesCommand: () => GetSamplingRulesCommand,
41
+ GetSamplingStatisticSummariesCommand: () => GetSamplingStatisticSummariesCommand,
42
+ GetSamplingTargetsCommand: () => GetSamplingTargetsCommand,
43
+ GetServiceGraphCommand: () => GetServiceGraphCommand,
44
+ GetTimeSeriesServiceStatisticsCommand: () => GetTimeSeriesServiceStatisticsCommand,
45
+ GetTraceGraphCommand: () => GetTraceGraphCommand,
46
+ GetTraceSummariesCommand: () => GetTraceSummariesCommand,
47
+ InsightCategory: () => InsightCategory,
48
+ InsightState: () => InsightState,
49
+ InvalidPolicyRevisionIdException: () => InvalidPolicyRevisionIdException,
50
+ InvalidRequestException: () => InvalidRequestException,
51
+ ListResourcePoliciesCommand: () => ListResourcePoliciesCommand,
52
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
53
+ LockoutPreventionException: () => LockoutPreventionException,
54
+ MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
55
+ PolicyCountLimitExceededException: () => PolicyCountLimitExceededException,
56
+ PolicySizeLimitExceededException: () => PolicySizeLimitExceededException,
57
+ PutEncryptionConfigCommand: () => PutEncryptionConfigCommand,
58
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
59
+ PutTelemetryRecordsCommand: () => PutTelemetryRecordsCommand,
60
+ PutTraceSegmentsCommand: () => PutTraceSegmentsCommand,
61
+ ResourceNotFoundException: () => ResourceNotFoundException,
62
+ RuleLimitExceededException: () => RuleLimitExceededException,
63
+ SamplingStrategyName: () => SamplingStrategyName,
64
+ TagResourceCommand: () => TagResourceCommand,
65
+ ThrottledException: () => ThrottledException,
66
+ TimeRangeType: () => TimeRangeType,
67
+ TooManyTagsException: () => TooManyTagsException,
68
+ UntagResourceCommand: () => UntagResourceCommand,
69
+ UpdateGroupCommand: () => UpdateGroupCommand,
70
+ UpdateSamplingRuleCommand: () => UpdateSamplingRuleCommand,
71
+ XRay: () => XRay,
72
+ XRayClient: () => XRayClient,
73
+ XRayServiceException: () => XRayServiceException,
74
+ __Client: () => import_smithy_client.Client,
75
+ paginateBatchGetTraces: () => paginateBatchGetTraces,
76
+ paginateGetGroups: () => paginateGetGroups,
77
+ paginateGetInsightEvents: () => paginateGetInsightEvents,
78
+ paginateGetInsightSummaries: () => paginateGetInsightSummaries,
79
+ paginateGetSamplingRules: () => paginateGetSamplingRules,
80
+ paginateGetSamplingStatisticSummaries: () => paginateGetSamplingStatisticSummaries,
81
+ paginateGetServiceGraph: () => paginateGetServiceGraph,
82
+ paginateGetTimeSeriesServiceStatistics: () => paginateGetTimeSeriesServiceStatistics,
83
+ paginateGetTraceGraph: () => paginateGetTraceGraph,
84
+ paginateGetTraceSummaries: () => paginateGetTraceSummaries,
85
+ paginateListResourcePolicies: () => paginateListResourcePolicies,
86
+ paginateListTagsForResource: () => paginateListTagsForResource
87
+ });
88
+ module.exports = __toCommonJS(src_exports);
89
+
90
+ // src/XRayClient.ts
91
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
92
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
93
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
94
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
95
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
96
+ var import_config_resolver = require("@smithy/config-resolver");
97
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
98
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
99
+ var import_middleware_retry = require("@smithy/middleware-retry");
100
+
101
+
102
+ // src/endpoint/EndpointParameters.ts
103
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
104
+ return {
105
+ ...options,
106
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
107
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
108
+ defaultSigningName: "xray"
109
+ };
110
+ }, "resolveClientEndpointParameters");
111
+ var commonParams = {
112
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
113
+ Endpoint: { type: "builtInParams", name: "endpoint" },
114
+ Region: { type: "builtInParams", name: "region" },
115
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
116
+ };
117
+
118
+ // src/XRayClient.ts
119
+ var import_runtimeConfig = require("././runtimeConfig");
120
+
121
+ // src/runtimeExtensions.ts
122
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
123
+ var import_protocol_http = require("@smithy/protocol-http");
124
+ var import_smithy_client = require("@smithy/smithy-client");
125
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
126
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
127
+ const extensionConfiguration = {
128
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
129
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
130
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
131
+ };
132
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
133
+ return {
134
+ ...runtimeConfig,
135
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
136
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
137
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
138
+ };
139
+ }, "resolveRuntimeExtensions");
140
+
141
+ // src/XRayClient.ts
142
+ var _XRayClient = class _XRayClient extends import_smithy_client.Client {
143
+ constructor(...[configuration]) {
144
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
145
+ const _config_1 = resolveClientEndpointParameters(_config_0);
146
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
147
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
148
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
149
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
150
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
151
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
152
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
153
+ super(_config_8);
154
+ this.config = _config_8;
155
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
156
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
157
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
158
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
161
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
162
+ }
163
+ /**
164
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
165
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
166
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
167
+ */
168
+ destroy() {
169
+ super.destroy();
170
+ }
171
+ };
172
+ __name(_XRayClient, "XRayClient");
173
+ var XRayClient = _XRayClient;
174
+
175
+ // src/XRay.ts
176
+
177
+
178
+ // src/commands/BatchGetTracesCommand.ts
179
+
180
+ var import_middleware_serde = require("@smithy/middleware-serde");
181
+
182
+ var import_types = require("@smithy/types");
183
+
184
+ // src/protocols/Aws_restJson1.ts
185
+ var import_core = require("@aws-sdk/core");
186
+ var import_core2 = require("@smithy/core");
187
+
188
+
189
+ // src/models/XRayServiceException.ts
190
+
191
+ var _XRayServiceException = class _XRayServiceException extends import_smithy_client.ServiceException {
192
+ /**
193
+ * @internal
194
+ */
195
+ constructor(options) {
196
+ super(options);
197
+ Object.setPrototypeOf(this, _XRayServiceException.prototype);
198
+ }
199
+ };
200
+ __name(_XRayServiceException, "XRayServiceException");
201
+ var XRayServiceException = _XRayServiceException;
202
+
203
+ // src/models/models_0.ts
204
+ var AnnotationValue;
205
+ ((AnnotationValue3) => {
206
+ AnnotationValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
207
+ if (value.NumberValue !== void 0)
208
+ return visitor.NumberValue(value.NumberValue);
209
+ if (value.BooleanValue !== void 0)
210
+ return visitor.BooleanValue(value.BooleanValue);
211
+ if (value.StringValue !== void 0)
212
+ return visitor.StringValue(value.StringValue);
213
+ return visitor._(value.$unknown[0], value.$unknown[1]);
214
+ }, "visit");
215
+ })(AnnotationValue || (AnnotationValue = {}));
216
+ var _InvalidRequestException = class _InvalidRequestException extends XRayServiceException {
217
+ /**
218
+ * @internal
219
+ */
220
+ constructor(opts) {
221
+ super({
222
+ name: "InvalidRequestException",
223
+ $fault: "client",
224
+ ...opts
225
+ });
226
+ this.name = "InvalidRequestException";
227
+ this.$fault = "client";
228
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
229
+ this.Message = opts.Message;
230
+ }
231
+ };
232
+ __name(_InvalidRequestException, "InvalidRequestException");
233
+ var InvalidRequestException = _InvalidRequestException;
234
+ var _ThrottledException = class _ThrottledException extends XRayServiceException {
235
+ /**
236
+ * @internal
237
+ */
238
+ constructor(opts) {
239
+ super({
240
+ name: "ThrottledException",
241
+ $fault: "client",
242
+ ...opts
243
+ });
244
+ this.name = "ThrottledException";
245
+ this.$fault = "client";
246
+ Object.setPrototypeOf(this, _ThrottledException.prototype);
247
+ this.Message = opts.Message;
248
+ }
249
+ };
250
+ __name(_ThrottledException, "ThrottledException");
251
+ var ThrottledException = _ThrottledException;
252
+ var _RuleLimitExceededException = class _RuleLimitExceededException extends XRayServiceException {
253
+ /**
254
+ * @internal
255
+ */
256
+ constructor(opts) {
257
+ super({
258
+ name: "RuleLimitExceededException",
259
+ $fault: "client",
260
+ ...opts
261
+ });
262
+ this.name = "RuleLimitExceededException";
263
+ this.$fault = "client";
264
+ Object.setPrototypeOf(this, _RuleLimitExceededException.prototype);
265
+ this.Message = opts.Message;
266
+ }
267
+ };
268
+ __name(_RuleLimitExceededException, "RuleLimitExceededException");
269
+ var RuleLimitExceededException = _RuleLimitExceededException;
270
+ var _InvalidPolicyRevisionIdException = class _InvalidPolicyRevisionIdException extends XRayServiceException {
271
+ /**
272
+ * @internal
273
+ */
274
+ constructor(opts) {
275
+ super({
276
+ name: "InvalidPolicyRevisionIdException",
277
+ $fault: "client",
278
+ ...opts
279
+ });
280
+ this.name = "InvalidPolicyRevisionIdException";
281
+ this.$fault = "client";
282
+ Object.setPrototypeOf(this, _InvalidPolicyRevisionIdException.prototype);
283
+ this.Message = opts.Message;
284
+ }
285
+ };
286
+ __name(_InvalidPolicyRevisionIdException, "InvalidPolicyRevisionIdException");
287
+ var InvalidPolicyRevisionIdException = _InvalidPolicyRevisionIdException;
288
+ var EncryptionStatus = {
289
+ ACTIVE: "ACTIVE",
290
+ UPDATING: "UPDATING"
291
+ };
292
+ var EncryptionType = {
293
+ KMS: "KMS",
294
+ NONE: "NONE"
295
+ };
296
+ var InsightCategory = {
297
+ FAULT: "FAULT"
298
+ };
299
+ var InsightState = {
300
+ ACTIVE: "ACTIVE",
301
+ CLOSED: "CLOSED"
302
+ };
303
+ var SamplingStrategyName = {
304
+ FixedRate: "FixedRate",
305
+ PartialScan: "PartialScan"
306
+ };
307
+ var TimeRangeType = {
308
+ Event: "Event",
309
+ Service: "Service",
310
+ TraceId: "TraceId"
311
+ };
312
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends XRayServiceException {
313
+ /**
314
+ * @internal
315
+ */
316
+ constructor(opts) {
317
+ super({
318
+ name: "ResourceNotFoundException",
319
+ $fault: "client",
320
+ ...opts
321
+ });
322
+ this.name = "ResourceNotFoundException";
323
+ this.$fault = "client";
324
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
325
+ this.Message = opts.Message;
326
+ this.ResourceName = opts.ResourceName;
327
+ }
328
+ };
329
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
330
+ var ResourceNotFoundException = _ResourceNotFoundException;
331
+ var _LockoutPreventionException = class _LockoutPreventionException extends XRayServiceException {
332
+ /**
333
+ * @internal
334
+ */
335
+ constructor(opts) {
336
+ super({
337
+ name: "LockoutPreventionException",
338
+ $fault: "client",
339
+ ...opts
340
+ });
341
+ this.name = "LockoutPreventionException";
342
+ this.$fault = "client";
343
+ Object.setPrototypeOf(this, _LockoutPreventionException.prototype);
344
+ this.Message = opts.Message;
345
+ }
346
+ };
347
+ __name(_LockoutPreventionException, "LockoutPreventionException");
348
+ var LockoutPreventionException = _LockoutPreventionException;
349
+ var _MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends XRayServiceException {
350
+ /**
351
+ * @internal
352
+ */
353
+ constructor(opts) {
354
+ super({
355
+ name: "MalformedPolicyDocumentException",
356
+ $fault: "client",
357
+ ...opts
358
+ });
359
+ this.name = "MalformedPolicyDocumentException";
360
+ this.$fault = "client";
361
+ Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype);
362
+ this.Message = opts.Message;
363
+ }
364
+ };
365
+ __name(_MalformedPolicyDocumentException, "MalformedPolicyDocumentException");
366
+ var MalformedPolicyDocumentException = _MalformedPolicyDocumentException;
367
+ var _PolicyCountLimitExceededException = class _PolicyCountLimitExceededException extends XRayServiceException {
368
+ /**
369
+ * @internal
370
+ */
371
+ constructor(opts) {
372
+ super({
373
+ name: "PolicyCountLimitExceededException",
374
+ $fault: "client",
375
+ ...opts
376
+ });
377
+ this.name = "PolicyCountLimitExceededException";
378
+ this.$fault = "client";
379
+ Object.setPrototypeOf(this, _PolicyCountLimitExceededException.prototype);
380
+ this.Message = opts.Message;
381
+ }
382
+ };
383
+ __name(_PolicyCountLimitExceededException, "PolicyCountLimitExceededException");
384
+ var PolicyCountLimitExceededException = _PolicyCountLimitExceededException;
385
+ var _PolicySizeLimitExceededException = class _PolicySizeLimitExceededException extends XRayServiceException {
386
+ /**
387
+ * @internal
388
+ */
389
+ constructor(opts) {
390
+ super({
391
+ name: "PolicySizeLimitExceededException",
392
+ $fault: "client",
393
+ ...opts
394
+ });
395
+ this.name = "PolicySizeLimitExceededException";
396
+ this.$fault = "client";
397
+ Object.setPrototypeOf(this, _PolicySizeLimitExceededException.prototype);
398
+ this.Message = opts.Message;
399
+ }
400
+ };
401
+ __name(_PolicySizeLimitExceededException, "PolicySizeLimitExceededException");
402
+ var PolicySizeLimitExceededException = _PolicySizeLimitExceededException;
403
+ var _TooManyTagsException = class _TooManyTagsException extends XRayServiceException {
404
+ /**
405
+ * @internal
406
+ */
407
+ constructor(opts) {
408
+ super({
409
+ name: "TooManyTagsException",
410
+ $fault: "client",
411
+ ...opts
412
+ });
413
+ this.name = "TooManyTagsException";
414
+ this.$fault = "client";
415
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
416
+ this.Message = opts.Message;
417
+ this.ResourceName = opts.ResourceName;
418
+ }
419
+ };
420
+ __name(_TooManyTagsException, "TooManyTagsException");
421
+ var TooManyTagsException = _TooManyTagsException;
422
+
423
+ // src/protocols/Aws_restJson1.ts
424
+ var se_BatchGetTracesCommand = /* @__PURE__ */ __name(async (input, context) => {
425
+ const b = (0, import_core2.requestBuilder)(input, context);
426
+ const headers = {
427
+ "content-type": "application/json"
428
+ };
429
+ b.bp("/Traces");
430
+ let body;
431
+ body = JSON.stringify(
432
+ (0, import_smithy_client.take)(input, {
433
+ NextToken: [],
434
+ TraceIds: (_) => (0, import_smithy_client._json)(_)
435
+ })
436
+ );
437
+ b.m("POST").h(headers).b(body);
438
+ return b.build();
439
+ }, "se_BatchGetTracesCommand");
440
+ var se_CreateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
441
+ const b = (0, import_core2.requestBuilder)(input, context);
442
+ const headers = {
443
+ "content-type": "application/json"
444
+ };
445
+ b.bp("/CreateGroup");
446
+ let body;
447
+ body = JSON.stringify(
448
+ (0, import_smithy_client.take)(input, {
449
+ FilterExpression: [],
450
+ GroupName: [],
451
+ InsightsConfiguration: (_) => (0, import_smithy_client._json)(_),
452
+ Tags: (_) => (0, import_smithy_client._json)(_)
453
+ })
454
+ );
455
+ b.m("POST").h(headers).b(body);
456
+ return b.build();
457
+ }, "se_CreateGroupCommand");
458
+ var se_CreateSamplingRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
459
+ const b = (0, import_core2.requestBuilder)(input, context);
460
+ const headers = {
461
+ "content-type": "application/json"
462
+ };
463
+ b.bp("/CreateSamplingRule");
464
+ let body;
465
+ body = JSON.stringify(
466
+ (0, import_smithy_client.take)(input, {
467
+ SamplingRule: (_) => se_SamplingRule(_, context),
468
+ Tags: (_) => (0, import_smithy_client._json)(_)
469
+ })
470
+ );
471
+ b.m("POST").h(headers).b(body);
472
+ return b.build();
473
+ }, "se_CreateSamplingRuleCommand");
474
+ var se_DeleteGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
475
+ const b = (0, import_core2.requestBuilder)(input, context);
476
+ const headers = {
477
+ "content-type": "application/json"
478
+ };
479
+ b.bp("/DeleteGroup");
480
+ let body;
481
+ body = JSON.stringify(
482
+ (0, import_smithy_client.take)(input, {
483
+ GroupARN: [],
484
+ GroupName: []
485
+ })
486
+ );
487
+ b.m("POST").h(headers).b(body);
488
+ return b.build();
489
+ }, "se_DeleteGroupCommand");
490
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
491
+ const b = (0, import_core2.requestBuilder)(input, context);
492
+ const headers = {
493
+ "content-type": "application/json"
494
+ };
495
+ b.bp("/DeleteResourcePolicy");
496
+ let body;
497
+ body = JSON.stringify(
498
+ (0, import_smithy_client.take)(input, {
499
+ PolicyName: [],
500
+ PolicyRevisionId: []
501
+ })
502
+ );
503
+ b.m("POST").h(headers).b(body);
504
+ return b.build();
505
+ }, "se_DeleteResourcePolicyCommand");
506
+ var se_DeleteSamplingRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
507
+ const b = (0, import_core2.requestBuilder)(input, context);
508
+ const headers = {
509
+ "content-type": "application/json"
510
+ };
511
+ b.bp("/DeleteSamplingRule");
512
+ let body;
513
+ body = JSON.stringify(
514
+ (0, import_smithy_client.take)(input, {
515
+ RuleARN: [],
516
+ RuleName: []
517
+ })
518
+ );
519
+ b.m("POST").h(headers).b(body);
520
+ return b.build();
521
+ }, "se_DeleteSamplingRuleCommand");
522
+ var se_GetEncryptionConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
523
+ const b = (0, import_core2.requestBuilder)(input, context);
524
+ const headers = {
525
+ "content-type": "application/json"
526
+ };
527
+ b.bp("/EncryptionConfig");
528
+ let body;
529
+ body = "";
530
+ b.m("POST").h(headers).b(body);
531
+ return b.build();
532
+ }, "se_GetEncryptionConfigCommand");
533
+ var se_GetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
534
+ const b = (0, import_core2.requestBuilder)(input, context);
535
+ const headers = {
536
+ "content-type": "application/json"
537
+ };
538
+ b.bp("/GetGroup");
539
+ let body;
540
+ body = JSON.stringify(
541
+ (0, import_smithy_client.take)(input, {
542
+ GroupARN: [],
543
+ GroupName: []
544
+ })
545
+ );
546
+ b.m("POST").h(headers).b(body);
547
+ return b.build();
548
+ }, "se_GetGroupCommand");
549
+ var se_GetGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
550
+ const b = (0, import_core2.requestBuilder)(input, context);
551
+ const headers = {
552
+ "content-type": "application/json"
553
+ };
554
+ b.bp("/Groups");
555
+ let body;
556
+ body = JSON.stringify(
557
+ (0, import_smithy_client.take)(input, {
558
+ NextToken: []
559
+ })
560
+ );
561
+ b.m("POST").h(headers).b(body);
562
+ return b.build();
563
+ }, "se_GetGroupsCommand");
564
+ var se_GetInsightCommand = /* @__PURE__ */ __name(async (input, context) => {
565
+ const b = (0, import_core2.requestBuilder)(input, context);
566
+ const headers = {
567
+ "content-type": "application/json"
568
+ };
569
+ b.bp("/Insight");
570
+ let body;
571
+ body = JSON.stringify(
572
+ (0, import_smithy_client.take)(input, {
573
+ InsightId: []
574
+ })
575
+ );
576
+ b.m("POST").h(headers).b(body);
577
+ return b.build();
578
+ }, "se_GetInsightCommand");
579
+ var se_GetInsightEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
580
+ const b = (0, import_core2.requestBuilder)(input, context);
581
+ const headers = {
582
+ "content-type": "application/json"
583
+ };
584
+ b.bp("/InsightEvents");
585
+ let body;
586
+ body = JSON.stringify(
587
+ (0, import_smithy_client.take)(input, {
588
+ InsightId: [],
589
+ MaxResults: [],
590
+ NextToken: []
591
+ })
592
+ );
593
+ b.m("POST").h(headers).b(body);
594
+ return b.build();
595
+ }, "se_GetInsightEventsCommand");
596
+ var se_GetInsightImpactGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
597
+ const b = (0, import_core2.requestBuilder)(input, context);
598
+ const headers = {
599
+ "content-type": "application/json"
600
+ };
601
+ b.bp("/InsightImpactGraph");
602
+ let body;
603
+ body = JSON.stringify(
604
+ (0, import_smithy_client.take)(input, {
605
+ EndTime: (_) => Math.round(_.getTime() / 1e3),
606
+ InsightId: [],
607
+ NextToken: [],
608
+ StartTime: (_) => Math.round(_.getTime() / 1e3)
609
+ })
610
+ );
611
+ b.m("POST").h(headers).b(body);
612
+ return b.build();
613
+ }, "se_GetInsightImpactGraphCommand");
614
+ var se_GetInsightSummariesCommand = /* @__PURE__ */ __name(async (input, context) => {
615
+ const b = (0, import_core2.requestBuilder)(input, context);
616
+ const headers = {
617
+ "content-type": "application/json"
618
+ };
619
+ b.bp("/InsightSummaries");
620
+ let body;
621
+ body = JSON.stringify(
622
+ (0, import_smithy_client.take)(input, {
623
+ EndTime: (_) => Math.round(_.getTime() / 1e3),
624
+ GroupARN: [],
625
+ GroupName: [],
626
+ MaxResults: [],
627
+ NextToken: [],
628
+ StartTime: (_) => Math.round(_.getTime() / 1e3),
629
+ States: (_) => (0, import_smithy_client._json)(_)
630
+ })
631
+ );
632
+ b.m("POST").h(headers).b(body);
633
+ return b.build();
634
+ }, "se_GetInsightSummariesCommand");
635
+ var se_GetSamplingRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
636
+ const b = (0, import_core2.requestBuilder)(input, context);
637
+ const headers = {
638
+ "content-type": "application/json"
639
+ };
640
+ b.bp("/GetSamplingRules");
641
+ let body;
642
+ body = JSON.stringify(
643
+ (0, import_smithy_client.take)(input, {
644
+ NextToken: []
645
+ })
646
+ );
647
+ b.m("POST").h(headers).b(body);
648
+ return b.build();
649
+ }, "se_GetSamplingRulesCommand");
650
+ var se_GetSamplingStatisticSummariesCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const b = (0, import_core2.requestBuilder)(input, context);
652
+ const headers = {
653
+ "content-type": "application/json"
654
+ };
655
+ b.bp("/SamplingStatisticSummaries");
656
+ let body;
657
+ body = JSON.stringify(
658
+ (0, import_smithy_client.take)(input, {
659
+ NextToken: []
660
+ })
661
+ );
662
+ b.m("POST").h(headers).b(body);
663
+ return b.build();
664
+ }, "se_GetSamplingStatisticSummariesCommand");
665
+ var se_GetSamplingTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
666
+ const b = (0, import_core2.requestBuilder)(input, context);
667
+ const headers = {
668
+ "content-type": "application/json"
669
+ };
670
+ b.bp("/SamplingTargets");
671
+ let body;
672
+ body = JSON.stringify(
673
+ (0, import_smithy_client.take)(input, {
674
+ SamplingStatisticsDocuments: (_) => se_SamplingStatisticsDocumentList(_, context)
675
+ })
676
+ );
677
+ b.m("POST").h(headers).b(body);
678
+ return b.build();
679
+ }, "se_GetSamplingTargetsCommand");
680
+ var se_GetServiceGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
681
+ const b = (0, import_core2.requestBuilder)(input, context);
682
+ const headers = {
683
+ "content-type": "application/json"
684
+ };
685
+ b.bp("/ServiceGraph");
686
+ let body;
687
+ body = JSON.stringify(
688
+ (0, import_smithy_client.take)(input, {
689
+ EndTime: (_) => Math.round(_.getTime() / 1e3),
690
+ GroupARN: [],
691
+ GroupName: [],
692
+ NextToken: [],
693
+ StartTime: (_) => Math.round(_.getTime() / 1e3)
694
+ })
695
+ );
696
+ b.m("POST").h(headers).b(body);
697
+ return b.build();
698
+ }, "se_GetServiceGraphCommand");
699
+ var se_GetTimeSeriesServiceStatisticsCommand = /* @__PURE__ */ __name(async (input, context) => {
700
+ const b = (0, import_core2.requestBuilder)(input, context);
701
+ const headers = {
702
+ "content-type": "application/json"
703
+ };
704
+ b.bp("/TimeSeriesServiceStatistics");
705
+ let body;
706
+ body = JSON.stringify(
707
+ (0, import_smithy_client.take)(input, {
708
+ EndTime: (_) => Math.round(_.getTime() / 1e3),
709
+ EntitySelectorExpression: [],
710
+ ForecastStatistics: [],
711
+ GroupARN: [],
712
+ GroupName: [],
713
+ NextToken: [],
714
+ Period: [],
715
+ StartTime: (_) => Math.round(_.getTime() / 1e3)
716
+ })
717
+ );
718
+ b.m("POST").h(headers).b(body);
719
+ return b.build();
720
+ }, "se_GetTimeSeriesServiceStatisticsCommand");
721
+ var se_GetTraceGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
722
+ const b = (0, import_core2.requestBuilder)(input, context);
723
+ const headers = {
724
+ "content-type": "application/json"
725
+ };
726
+ b.bp("/TraceGraph");
727
+ let body;
728
+ body = JSON.stringify(
729
+ (0, import_smithy_client.take)(input, {
730
+ NextToken: [],
731
+ TraceIds: (_) => (0, import_smithy_client._json)(_)
732
+ })
733
+ );
734
+ b.m("POST").h(headers).b(body);
735
+ return b.build();
736
+ }, "se_GetTraceGraphCommand");
737
+ var se_GetTraceSummariesCommand = /* @__PURE__ */ __name(async (input, context) => {
738
+ const b = (0, import_core2.requestBuilder)(input, context);
739
+ const headers = {
740
+ "content-type": "application/json"
741
+ };
742
+ b.bp("/TraceSummaries");
743
+ let body;
744
+ body = JSON.stringify(
745
+ (0, import_smithy_client.take)(input, {
746
+ EndTime: (_) => Math.round(_.getTime() / 1e3),
747
+ FilterExpression: [],
748
+ NextToken: [],
749
+ Sampling: [],
750
+ SamplingStrategy: (_) => se_SamplingStrategy(_, context),
751
+ StartTime: (_) => Math.round(_.getTime() / 1e3),
752
+ TimeRangeType: []
753
+ })
754
+ );
755
+ b.m("POST").h(headers).b(body);
756
+ return b.build();
757
+ }, "se_GetTraceSummariesCommand");
758
+ var se_ListResourcePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
759
+ const b = (0, import_core2.requestBuilder)(input, context);
760
+ const headers = {
761
+ "content-type": "application/json"
762
+ };
763
+ b.bp("/ListResourcePolicies");
764
+ let body;
765
+ body = JSON.stringify(
766
+ (0, import_smithy_client.take)(input, {
767
+ NextToken: []
768
+ })
769
+ );
770
+ b.m("POST").h(headers).b(body);
771
+ return b.build();
772
+ }, "se_ListResourcePoliciesCommand");
773
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
774
+ const b = (0, import_core2.requestBuilder)(input, context);
775
+ const headers = {
776
+ "content-type": "application/json"
777
+ };
778
+ b.bp("/ListTagsForResource");
779
+ let body;
780
+ body = JSON.stringify(
781
+ (0, import_smithy_client.take)(input, {
782
+ NextToken: [],
783
+ ResourceARN: []
784
+ })
785
+ );
786
+ b.m("POST").h(headers).b(body);
787
+ return b.build();
788
+ }, "se_ListTagsForResourceCommand");
789
+ var se_PutEncryptionConfigCommand = /* @__PURE__ */ __name(async (input, context) => {
790
+ const b = (0, import_core2.requestBuilder)(input, context);
791
+ const headers = {
792
+ "content-type": "application/json"
793
+ };
794
+ b.bp("/PutEncryptionConfig");
795
+ let body;
796
+ body = JSON.stringify(
797
+ (0, import_smithy_client.take)(input, {
798
+ KeyId: [],
799
+ Type: []
800
+ })
801
+ );
802
+ b.m("POST").h(headers).b(body);
803
+ return b.build();
804
+ }, "se_PutEncryptionConfigCommand");
805
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
806
+ const b = (0, import_core2.requestBuilder)(input, context);
807
+ const headers = {
808
+ "content-type": "application/json"
809
+ };
810
+ b.bp("/PutResourcePolicy");
811
+ let body;
812
+ body = JSON.stringify(
813
+ (0, import_smithy_client.take)(input, {
814
+ BypassPolicyLockoutCheck: [],
815
+ PolicyDocument: [],
816
+ PolicyName: [],
817
+ PolicyRevisionId: []
818
+ })
819
+ );
820
+ b.m("POST").h(headers).b(body);
821
+ return b.build();
822
+ }, "se_PutResourcePolicyCommand");
823
+ var se_PutTelemetryRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
824
+ const b = (0, import_core2.requestBuilder)(input, context);
825
+ const headers = {
826
+ "content-type": "application/json"
827
+ };
828
+ b.bp("/TelemetryRecords");
829
+ let body;
830
+ body = JSON.stringify(
831
+ (0, import_smithy_client.take)(input, {
832
+ EC2InstanceId: [],
833
+ Hostname: [],
834
+ ResourceARN: [],
835
+ TelemetryRecords: (_) => se_TelemetryRecordList(_, context)
836
+ })
837
+ );
838
+ b.m("POST").h(headers).b(body);
839
+ return b.build();
840
+ }, "se_PutTelemetryRecordsCommand");
841
+ var se_PutTraceSegmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
842
+ const b = (0, import_core2.requestBuilder)(input, context);
843
+ const headers = {
844
+ "content-type": "application/json"
845
+ };
846
+ b.bp("/TraceSegments");
847
+ let body;
848
+ body = JSON.stringify(
849
+ (0, import_smithy_client.take)(input, {
850
+ TraceSegmentDocuments: (_) => (0, import_smithy_client._json)(_)
851
+ })
852
+ );
853
+ b.m("POST").h(headers).b(body);
854
+ return b.build();
855
+ }, "se_PutTraceSegmentsCommand");
856
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
857
+ const b = (0, import_core2.requestBuilder)(input, context);
858
+ const headers = {
859
+ "content-type": "application/json"
860
+ };
861
+ b.bp("/TagResource");
862
+ let body;
863
+ body = JSON.stringify(
864
+ (0, import_smithy_client.take)(input, {
865
+ ResourceARN: [],
866
+ Tags: (_) => (0, import_smithy_client._json)(_)
867
+ })
868
+ );
869
+ b.m("POST").h(headers).b(body);
870
+ return b.build();
871
+ }, "se_TagResourceCommand");
872
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
873
+ const b = (0, import_core2.requestBuilder)(input, context);
874
+ const headers = {
875
+ "content-type": "application/json"
876
+ };
877
+ b.bp("/UntagResource");
878
+ let body;
879
+ body = JSON.stringify(
880
+ (0, import_smithy_client.take)(input, {
881
+ ResourceARN: [],
882
+ TagKeys: (_) => (0, import_smithy_client._json)(_)
883
+ })
884
+ );
885
+ b.m("POST").h(headers).b(body);
886
+ return b.build();
887
+ }, "se_UntagResourceCommand");
888
+ var se_UpdateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
889
+ const b = (0, import_core2.requestBuilder)(input, context);
890
+ const headers = {
891
+ "content-type": "application/json"
892
+ };
893
+ b.bp("/UpdateGroup");
894
+ let body;
895
+ body = JSON.stringify(
896
+ (0, import_smithy_client.take)(input, {
897
+ FilterExpression: [],
898
+ GroupARN: [],
899
+ GroupName: [],
900
+ InsightsConfiguration: (_) => (0, import_smithy_client._json)(_)
901
+ })
902
+ );
903
+ b.m("POST").h(headers).b(body);
904
+ return b.build();
905
+ }, "se_UpdateGroupCommand");
906
+ var se_UpdateSamplingRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
907
+ const b = (0, import_core2.requestBuilder)(input, context);
908
+ const headers = {
909
+ "content-type": "application/json"
910
+ };
911
+ b.bp("/UpdateSamplingRule");
912
+ let body;
913
+ body = JSON.stringify(
914
+ (0, import_smithy_client.take)(input, {
915
+ SamplingRuleUpdate: (_) => se_SamplingRuleUpdate(_, context)
916
+ })
917
+ );
918
+ b.m("POST").h(headers).b(body);
919
+ return b.build();
920
+ }, "se_UpdateSamplingRuleCommand");
921
+ var de_BatchGetTracesCommand = /* @__PURE__ */ __name(async (output, context) => {
922
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
923
+ return de_BatchGetTracesCommandError(output, context);
924
+ }
925
+ const contents = (0, import_smithy_client.map)({
926
+ $metadata: deserializeMetadata(output)
927
+ });
928
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
929
+ const doc = (0, import_smithy_client.take)(data, {
930
+ NextToken: import_smithy_client.expectString,
931
+ Traces: (_) => de_TraceList(_, context),
932
+ UnprocessedTraceIds: import_smithy_client._json
933
+ });
934
+ Object.assign(contents, doc);
935
+ return contents;
936
+ }, "de_BatchGetTracesCommand");
937
+ var de_BatchGetTracesCommandError = /* @__PURE__ */ __name(async (output, context) => {
938
+ const parsedOutput = {
939
+ ...output,
940
+ body: await parseErrorBody(output.body, context)
941
+ };
942
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
943
+ switch (errorCode) {
944
+ case "InvalidRequestException":
945
+ case "com.amazonaws.xray#InvalidRequestException":
946
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
947
+ case "ThrottledException":
948
+ case "com.amazonaws.xray#ThrottledException":
949
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
950
+ default:
951
+ const parsedBody = parsedOutput.body;
952
+ return throwDefaultError({
953
+ output,
954
+ parsedBody,
955
+ errorCode
956
+ });
957
+ }
958
+ }, "de_BatchGetTracesCommandError");
959
+ var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
960
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
961
+ return de_CreateGroupCommandError(output, context);
962
+ }
963
+ const contents = (0, import_smithy_client.map)({
964
+ $metadata: deserializeMetadata(output)
965
+ });
966
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
967
+ const doc = (0, import_smithy_client.take)(data, {
968
+ Group: import_smithy_client._json
969
+ });
970
+ Object.assign(contents, doc);
971
+ return contents;
972
+ }, "de_CreateGroupCommand");
973
+ var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
974
+ const parsedOutput = {
975
+ ...output,
976
+ body: await parseErrorBody(output.body, context)
977
+ };
978
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
979
+ switch (errorCode) {
980
+ case "InvalidRequestException":
981
+ case "com.amazonaws.xray#InvalidRequestException":
982
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
983
+ case "ThrottledException":
984
+ case "com.amazonaws.xray#ThrottledException":
985
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
986
+ default:
987
+ const parsedBody = parsedOutput.body;
988
+ return throwDefaultError({
989
+ output,
990
+ parsedBody,
991
+ errorCode
992
+ });
993
+ }
994
+ }, "de_CreateGroupCommandError");
995
+ var de_CreateSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
996
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
997
+ return de_CreateSamplingRuleCommandError(output, context);
998
+ }
999
+ const contents = (0, import_smithy_client.map)({
1000
+ $metadata: deserializeMetadata(output)
1001
+ });
1002
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1003
+ const doc = (0, import_smithy_client.take)(data, {
1004
+ SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context)
1005
+ });
1006
+ Object.assign(contents, doc);
1007
+ return contents;
1008
+ }, "de_CreateSamplingRuleCommand");
1009
+ var de_CreateSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1010
+ const parsedOutput = {
1011
+ ...output,
1012
+ body: await parseErrorBody(output.body, context)
1013
+ };
1014
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
+ switch (errorCode) {
1016
+ case "InvalidRequestException":
1017
+ case "com.amazonaws.xray#InvalidRequestException":
1018
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1019
+ case "RuleLimitExceededException":
1020
+ case "com.amazonaws.xray#RuleLimitExceededException":
1021
+ throw await de_RuleLimitExceededExceptionRes(parsedOutput, context);
1022
+ case "ThrottledException":
1023
+ case "com.amazonaws.xray#ThrottledException":
1024
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1025
+ default:
1026
+ const parsedBody = parsedOutput.body;
1027
+ return throwDefaultError({
1028
+ output,
1029
+ parsedBody,
1030
+ errorCode
1031
+ });
1032
+ }
1033
+ }, "de_CreateSamplingRuleCommandError");
1034
+ var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1035
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
+ return de_DeleteGroupCommandError(output, context);
1037
+ }
1038
+ const contents = (0, import_smithy_client.map)({
1039
+ $metadata: deserializeMetadata(output)
1040
+ });
1041
+ await (0, import_smithy_client.collectBody)(output.body, context);
1042
+ return contents;
1043
+ }, "de_DeleteGroupCommand");
1044
+ var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1045
+ const parsedOutput = {
1046
+ ...output,
1047
+ body: await parseErrorBody(output.body, context)
1048
+ };
1049
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1050
+ switch (errorCode) {
1051
+ case "InvalidRequestException":
1052
+ case "com.amazonaws.xray#InvalidRequestException":
1053
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1054
+ case "ThrottledException":
1055
+ case "com.amazonaws.xray#ThrottledException":
1056
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1057
+ default:
1058
+ const parsedBody = parsedOutput.body;
1059
+ return throwDefaultError({
1060
+ output,
1061
+ parsedBody,
1062
+ errorCode
1063
+ });
1064
+ }
1065
+ }, "de_DeleteGroupCommandError");
1066
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1067
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1068
+ return de_DeleteResourcePolicyCommandError(output, context);
1069
+ }
1070
+ const contents = (0, import_smithy_client.map)({
1071
+ $metadata: deserializeMetadata(output)
1072
+ });
1073
+ await (0, import_smithy_client.collectBody)(output.body, context);
1074
+ return contents;
1075
+ }, "de_DeleteResourcePolicyCommand");
1076
+ var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1077
+ const parsedOutput = {
1078
+ ...output,
1079
+ body: await parseErrorBody(output.body, context)
1080
+ };
1081
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1082
+ switch (errorCode) {
1083
+ case "InvalidPolicyRevisionIdException":
1084
+ case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
1085
+ throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
1086
+ case "InvalidRequestException":
1087
+ case "com.amazonaws.xray#InvalidRequestException":
1088
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1089
+ case "ThrottledException":
1090
+ case "com.amazonaws.xray#ThrottledException":
1091
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1092
+ default:
1093
+ const parsedBody = parsedOutput.body;
1094
+ return throwDefaultError({
1095
+ output,
1096
+ parsedBody,
1097
+ errorCode
1098
+ });
1099
+ }
1100
+ }, "de_DeleteResourcePolicyCommandError");
1101
+ var de_DeleteSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1102
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1103
+ return de_DeleteSamplingRuleCommandError(output, context);
1104
+ }
1105
+ const contents = (0, import_smithy_client.map)({
1106
+ $metadata: deserializeMetadata(output)
1107
+ });
1108
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1109
+ const doc = (0, import_smithy_client.take)(data, {
1110
+ SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context)
1111
+ });
1112
+ Object.assign(contents, doc);
1113
+ return contents;
1114
+ }, "de_DeleteSamplingRuleCommand");
1115
+ var de_DeleteSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1116
+ const parsedOutput = {
1117
+ ...output,
1118
+ body: await parseErrorBody(output.body, context)
1119
+ };
1120
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1121
+ switch (errorCode) {
1122
+ case "InvalidRequestException":
1123
+ case "com.amazonaws.xray#InvalidRequestException":
1124
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1125
+ case "ThrottledException":
1126
+ case "com.amazonaws.xray#ThrottledException":
1127
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1128
+ default:
1129
+ const parsedBody = parsedOutput.body;
1130
+ return throwDefaultError({
1131
+ output,
1132
+ parsedBody,
1133
+ errorCode
1134
+ });
1135
+ }
1136
+ }, "de_DeleteSamplingRuleCommandError");
1137
+ var de_GetEncryptionConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1138
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1139
+ return de_GetEncryptionConfigCommandError(output, context);
1140
+ }
1141
+ const contents = (0, import_smithy_client.map)({
1142
+ $metadata: deserializeMetadata(output)
1143
+ });
1144
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1145
+ const doc = (0, import_smithy_client.take)(data, {
1146
+ EncryptionConfig: import_smithy_client._json
1147
+ });
1148
+ Object.assign(contents, doc);
1149
+ return contents;
1150
+ }, "de_GetEncryptionConfigCommand");
1151
+ var de_GetEncryptionConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1152
+ const parsedOutput = {
1153
+ ...output,
1154
+ body: await parseErrorBody(output.body, context)
1155
+ };
1156
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1157
+ switch (errorCode) {
1158
+ case "InvalidRequestException":
1159
+ case "com.amazonaws.xray#InvalidRequestException":
1160
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1161
+ case "ThrottledException":
1162
+ case "com.amazonaws.xray#ThrottledException":
1163
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1164
+ default:
1165
+ const parsedBody = parsedOutput.body;
1166
+ return throwDefaultError({
1167
+ output,
1168
+ parsedBody,
1169
+ errorCode
1170
+ });
1171
+ }
1172
+ }, "de_GetEncryptionConfigCommandError");
1173
+ var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1174
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1175
+ return de_GetGroupCommandError(output, context);
1176
+ }
1177
+ const contents = (0, import_smithy_client.map)({
1178
+ $metadata: deserializeMetadata(output)
1179
+ });
1180
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1181
+ const doc = (0, import_smithy_client.take)(data, {
1182
+ Group: import_smithy_client._json
1183
+ });
1184
+ Object.assign(contents, doc);
1185
+ return contents;
1186
+ }, "de_GetGroupCommand");
1187
+ var de_GetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1188
+ const parsedOutput = {
1189
+ ...output,
1190
+ body: await parseErrorBody(output.body, context)
1191
+ };
1192
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1193
+ switch (errorCode) {
1194
+ case "InvalidRequestException":
1195
+ case "com.amazonaws.xray#InvalidRequestException":
1196
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1197
+ case "ThrottledException":
1198
+ case "com.amazonaws.xray#ThrottledException":
1199
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1200
+ default:
1201
+ const parsedBody = parsedOutput.body;
1202
+ return throwDefaultError({
1203
+ output,
1204
+ parsedBody,
1205
+ errorCode
1206
+ });
1207
+ }
1208
+ }, "de_GetGroupCommandError");
1209
+ var de_GetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1210
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1211
+ return de_GetGroupsCommandError(output, context);
1212
+ }
1213
+ const contents = (0, import_smithy_client.map)({
1214
+ $metadata: deserializeMetadata(output)
1215
+ });
1216
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1217
+ const doc = (0, import_smithy_client.take)(data, {
1218
+ Groups: import_smithy_client._json,
1219
+ NextToken: import_smithy_client.expectString
1220
+ });
1221
+ Object.assign(contents, doc);
1222
+ return contents;
1223
+ }, "de_GetGroupsCommand");
1224
+ var de_GetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1225
+ const parsedOutput = {
1226
+ ...output,
1227
+ body: await parseErrorBody(output.body, context)
1228
+ };
1229
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1230
+ switch (errorCode) {
1231
+ case "InvalidRequestException":
1232
+ case "com.amazonaws.xray#InvalidRequestException":
1233
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1234
+ case "ThrottledException":
1235
+ case "com.amazonaws.xray#ThrottledException":
1236
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1237
+ default:
1238
+ const parsedBody = parsedOutput.body;
1239
+ return throwDefaultError({
1240
+ output,
1241
+ parsedBody,
1242
+ errorCode
1243
+ });
1244
+ }
1245
+ }, "de_GetGroupsCommandError");
1246
+ var de_GetInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
1247
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1248
+ return de_GetInsightCommandError(output, context);
1249
+ }
1250
+ const contents = (0, import_smithy_client.map)({
1251
+ $metadata: deserializeMetadata(output)
1252
+ });
1253
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1254
+ const doc = (0, import_smithy_client.take)(data, {
1255
+ Insight: (_) => de_Insight(_, context)
1256
+ });
1257
+ Object.assign(contents, doc);
1258
+ return contents;
1259
+ }, "de_GetInsightCommand");
1260
+ var de_GetInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
1261
+ const parsedOutput = {
1262
+ ...output,
1263
+ body: await parseErrorBody(output.body, context)
1264
+ };
1265
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1266
+ switch (errorCode) {
1267
+ case "InvalidRequestException":
1268
+ case "com.amazonaws.xray#InvalidRequestException":
1269
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1270
+ case "ThrottledException":
1271
+ case "com.amazonaws.xray#ThrottledException":
1272
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1273
+ default:
1274
+ const parsedBody = parsedOutput.body;
1275
+ return throwDefaultError({
1276
+ output,
1277
+ parsedBody,
1278
+ errorCode
1279
+ });
1280
+ }
1281
+ }, "de_GetInsightCommandError");
1282
+ var de_GetInsightEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1283
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1284
+ return de_GetInsightEventsCommandError(output, context);
1285
+ }
1286
+ const contents = (0, import_smithy_client.map)({
1287
+ $metadata: deserializeMetadata(output)
1288
+ });
1289
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1290
+ const doc = (0, import_smithy_client.take)(data, {
1291
+ InsightEvents: (_) => de_InsightEventList(_, context),
1292
+ NextToken: import_smithy_client.expectString
1293
+ });
1294
+ Object.assign(contents, doc);
1295
+ return contents;
1296
+ }, "de_GetInsightEventsCommand");
1297
+ var de_GetInsightEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1298
+ const parsedOutput = {
1299
+ ...output,
1300
+ body: await parseErrorBody(output.body, context)
1301
+ };
1302
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1303
+ switch (errorCode) {
1304
+ case "InvalidRequestException":
1305
+ case "com.amazonaws.xray#InvalidRequestException":
1306
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1307
+ case "ThrottledException":
1308
+ case "com.amazonaws.xray#ThrottledException":
1309
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1310
+ default:
1311
+ const parsedBody = parsedOutput.body;
1312
+ return throwDefaultError({
1313
+ output,
1314
+ parsedBody,
1315
+ errorCode
1316
+ });
1317
+ }
1318
+ }, "de_GetInsightEventsCommandError");
1319
+ var de_GetInsightImpactGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1321
+ return de_GetInsightImpactGraphCommandError(output, context);
1322
+ }
1323
+ const contents = (0, import_smithy_client.map)({
1324
+ $metadata: deserializeMetadata(output)
1325
+ });
1326
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1327
+ const doc = (0, import_smithy_client.take)(data, {
1328
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1329
+ InsightId: import_smithy_client.expectString,
1330
+ NextToken: import_smithy_client.expectString,
1331
+ ServiceGraphEndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1332
+ ServiceGraphStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1333
+ Services: import_smithy_client._json,
1334
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1335
+ });
1336
+ Object.assign(contents, doc);
1337
+ return contents;
1338
+ }, "de_GetInsightImpactGraphCommand");
1339
+ var de_GetInsightImpactGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1340
+ const parsedOutput = {
1341
+ ...output,
1342
+ body: await parseErrorBody(output.body, context)
1343
+ };
1344
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1345
+ switch (errorCode) {
1346
+ case "InvalidRequestException":
1347
+ case "com.amazonaws.xray#InvalidRequestException":
1348
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1349
+ case "ThrottledException":
1350
+ case "com.amazonaws.xray#ThrottledException":
1351
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1352
+ default:
1353
+ const parsedBody = parsedOutput.body;
1354
+ return throwDefaultError({
1355
+ output,
1356
+ parsedBody,
1357
+ errorCode
1358
+ });
1359
+ }
1360
+ }, "de_GetInsightImpactGraphCommandError");
1361
+ var de_GetInsightSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
1362
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1363
+ return de_GetInsightSummariesCommandError(output, context);
1364
+ }
1365
+ const contents = (0, import_smithy_client.map)({
1366
+ $metadata: deserializeMetadata(output)
1367
+ });
1368
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1369
+ const doc = (0, import_smithy_client.take)(data, {
1370
+ InsightSummaries: (_) => de_InsightSummaryList(_, context),
1371
+ NextToken: import_smithy_client.expectString
1372
+ });
1373
+ Object.assign(contents, doc);
1374
+ return contents;
1375
+ }, "de_GetInsightSummariesCommand");
1376
+ var de_GetInsightSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1377
+ const parsedOutput = {
1378
+ ...output,
1379
+ body: await parseErrorBody(output.body, context)
1380
+ };
1381
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1382
+ switch (errorCode) {
1383
+ case "InvalidRequestException":
1384
+ case "com.amazonaws.xray#InvalidRequestException":
1385
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1386
+ case "ThrottledException":
1387
+ case "com.amazonaws.xray#ThrottledException":
1388
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1389
+ default:
1390
+ const parsedBody = parsedOutput.body;
1391
+ return throwDefaultError({
1392
+ output,
1393
+ parsedBody,
1394
+ errorCode
1395
+ });
1396
+ }
1397
+ }, "de_GetInsightSummariesCommandError");
1398
+ var de_GetSamplingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1399
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1400
+ return de_GetSamplingRulesCommandError(output, context);
1401
+ }
1402
+ const contents = (0, import_smithy_client.map)({
1403
+ $metadata: deserializeMetadata(output)
1404
+ });
1405
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1406
+ const doc = (0, import_smithy_client.take)(data, {
1407
+ NextToken: import_smithy_client.expectString,
1408
+ SamplingRuleRecords: (_) => de_SamplingRuleRecordList(_, context)
1409
+ });
1410
+ Object.assign(contents, doc);
1411
+ return contents;
1412
+ }, "de_GetSamplingRulesCommand");
1413
+ var de_GetSamplingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1414
+ const parsedOutput = {
1415
+ ...output,
1416
+ body: await parseErrorBody(output.body, context)
1417
+ };
1418
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
+ switch (errorCode) {
1420
+ case "InvalidRequestException":
1421
+ case "com.amazonaws.xray#InvalidRequestException":
1422
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1423
+ case "ThrottledException":
1424
+ case "com.amazonaws.xray#ThrottledException":
1425
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1426
+ default:
1427
+ const parsedBody = parsedOutput.body;
1428
+ return throwDefaultError({
1429
+ output,
1430
+ parsedBody,
1431
+ errorCode
1432
+ });
1433
+ }
1434
+ }, "de_GetSamplingRulesCommandError");
1435
+ var de_GetSamplingStatisticSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
1436
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1437
+ return de_GetSamplingStatisticSummariesCommandError(output, context);
1438
+ }
1439
+ const contents = (0, import_smithy_client.map)({
1440
+ $metadata: deserializeMetadata(output)
1441
+ });
1442
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1443
+ const doc = (0, import_smithy_client.take)(data, {
1444
+ NextToken: import_smithy_client.expectString,
1445
+ SamplingStatisticSummaries: (_) => de_SamplingStatisticSummaryList(_, context)
1446
+ });
1447
+ Object.assign(contents, doc);
1448
+ return contents;
1449
+ }, "de_GetSamplingStatisticSummariesCommand");
1450
+ var de_GetSamplingStatisticSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1451
+ const parsedOutput = {
1452
+ ...output,
1453
+ body: await parseErrorBody(output.body, context)
1454
+ };
1455
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1456
+ switch (errorCode) {
1457
+ case "InvalidRequestException":
1458
+ case "com.amazonaws.xray#InvalidRequestException":
1459
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1460
+ case "ThrottledException":
1461
+ case "com.amazonaws.xray#ThrottledException":
1462
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1463
+ default:
1464
+ const parsedBody = parsedOutput.body;
1465
+ return throwDefaultError({
1466
+ output,
1467
+ parsedBody,
1468
+ errorCode
1469
+ });
1470
+ }
1471
+ }, "de_GetSamplingStatisticSummariesCommandError");
1472
+ var de_GetSamplingTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1473
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1474
+ return de_GetSamplingTargetsCommandError(output, context);
1475
+ }
1476
+ const contents = (0, import_smithy_client.map)({
1477
+ $metadata: deserializeMetadata(output)
1478
+ });
1479
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1480
+ const doc = (0, import_smithy_client.take)(data, {
1481
+ LastRuleModification: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1482
+ SamplingTargetDocuments: (_) => de_SamplingTargetDocumentList(_, context),
1483
+ UnprocessedStatistics: import_smithy_client._json
1484
+ });
1485
+ Object.assign(contents, doc);
1486
+ return contents;
1487
+ }, "de_GetSamplingTargetsCommand");
1488
+ var de_GetSamplingTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1489
+ const parsedOutput = {
1490
+ ...output,
1491
+ body: await parseErrorBody(output.body, context)
1492
+ };
1493
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1494
+ switch (errorCode) {
1495
+ case "InvalidRequestException":
1496
+ case "com.amazonaws.xray#InvalidRequestException":
1497
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1498
+ case "ThrottledException":
1499
+ case "com.amazonaws.xray#ThrottledException":
1500
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1501
+ default:
1502
+ const parsedBody = parsedOutput.body;
1503
+ return throwDefaultError({
1504
+ output,
1505
+ parsedBody,
1506
+ errorCode
1507
+ });
1508
+ }
1509
+ }, "de_GetSamplingTargetsCommandError");
1510
+ var de_GetServiceGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1512
+ return de_GetServiceGraphCommandError(output, context);
1513
+ }
1514
+ const contents = (0, import_smithy_client.map)({
1515
+ $metadata: deserializeMetadata(output)
1516
+ });
1517
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1518
+ const doc = (0, import_smithy_client.take)(data, {
1519
+ ContainsOldGroupVersions: import_smithy_client.expectBoolean,
1520
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1521
+ NextToken: import_smithy_client.expectString,
1522
+ Services: (_) => de_ServiceList(_, context),
1523
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1524
+ });
1525
+ Object.assign(contents, doc);
1526
+ return contents;
1527
+ }, "de_GetServiceGraphCommand");
1528
+ var de_GetServiceGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1529
+ const parsedOutput = {
1530
+ ...output,
1531
+ body: await parseErrorBody(output.body, context)
1532
+ };
1533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1534
+ switch (errorCode) {
1535
+ case "InvalidRequestException":
1536
+ case "com.amazonaws.xray#InvalidRequestException":
1537
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1538
+ case "ThrottledException":
1539
+ case "com.amazonaws.xray#ThrottledException":
1540
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1541
+ default:
1542
+ const parsedBody = parsedOutput.body;
1543
+ return throwDefaultError({
1544
+ output,
1545
+ parsedBody,
1546
+ errorCode
1547
+ });
1548
+ }
1549
+ }, "de_GetServiceGraphCommandError");
1550
+ var de_GetTimeSeriesServiceStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
1551
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1552
+ return de_GetTimeSeriesServiceStatisticsCommandError(output, context);
1553
+ }
1554
+ const contents = (0, import_smithy_client.map)({
1555
+ $metadata: deserializeMetadata(output)
1556
+ });
1557
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1558
+ const doc = (0, import_smithy_client.take)(data, {
1559
+ ContainsOldGroupVersions: import_smithy_client.expectBoolean,
1560
+ NextToken: import_smithy_client.expectString,
1561
+ TimeSeriesServiceStatistics: (_) => de_TimeSeriesServiceStatisticsList(_, context)
1562
+ });
1563
+ Object.assign(contents, doc);
1564
+ return contents;
1565
+ }, "de_GetTimeSeriesServiceStatisticsCommand");
1566
+ var de_GetTimeSeriesServiceStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1567
+ const parsedOutput = {
1568
+ ...output,
1569
+ body: await parseErrorBody(output.body, context)
1570
+ };
1571
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1572
+ switch (errorCode) {
1573
+ case "InvalidRequestException":
1574
+ case "com.amazonaws.xray#InvalidRequestException":
1575
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1576
+ case "ThrottledException":
1577
+ case "com.amazonaws.xray#ThrottledException":
1578
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1579
+ default:
1580
+ const parsedBody = parsedOutput.body;
1581
+ return throwDefaultError({
1582
+ output,
1583
+ parsedBody,
1584
+ errorCode
1585
+ });
1586
+ }
1587
+ }, "de_GetTimeSeriesServiceStatisticsCommandError");
1588
+ var de_GetTraceGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1589
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1590
+ return de_GetTraceGraphCommandError(output, context);
1591
+ }
1592
+ const contents = (0, import_smithy_client.map)({
1593
+ $metadata: deserializeMetadata(output)
1594
+ });
1595
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1596
+ const doc = (0, import_smithy_client.take)(data, {
1597
+ NextToken: import_smithy_client.expectString,
1598
+ Services: (_) => de_ServiceList(_, context)
1599
+ });
1600
+ Object.assign(contents, doc);
1601
+ return contents;
1602
+ }, "de_GetTraceGraphCommand");
1603
+ var de_GetTraceGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1604
+ const parsedOutput = {
1605
+ ...output,
1606
+ body: await parseErrorBody(output.body, context)
1607
+ };
1608
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1609
+ switch (errorCode) {
1610
+ case "InvalidRequestException":
1611
+ case "com.amazonaws.xray#InvalidRequestException":
1612
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1613
+ case "ThrottledException":
1614
+ case "com.amazonaws.xray#ThrottledException":
1615
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1616
+ default:
1617
+ const parsedBody = parsedOutput.body;
1618
+ return throwDefaultError({
1619
+ output,
1620
+ parsedBody,
1621
+ errorCode
1622
+ });
1623
+ }
1624
+ }, "de_GetTraceGraphCommandError");
1625
+ var de_GetTraceSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
1626
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
+ return de_GetTraceSummariesCommandError(output, context);
1628
+ }
1629
+ const contents = (0, import_smithy_client.map)({
1630
+ $metadata: deserializeMetadata(output)
1631
+ });
1632
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1633
+ const doc = (0, import_smithy_client.take)(data, {
1634
+ ApproximateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1635
+ NextToken: import_smithy_client.expectString,
1636
+ TraceSummaries: (_) => de_TraceSummaryList(_, context),
1637
+ TracesProcessedCount: import_smithy_client.expectLong
1638
+ });
1639
+ Object.assign(contents, doc);
1640
+ return contents;
1641
+ }, "de_GetTraceSummariesCommand");
1642
+ var de_GetTraceSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1643
+ const parsedOutput = {
1644
+ ...output,
1645
+ body: await parseErrorBody(output.body, context)
1646
+ };
1647
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1648
+ switch (errorCode) {
1649
+ case "InvalidRequestException":
1650
+ case "com.amazonaws.xray#InvalidRequestException":
1651
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1652
+ case "ThrottledException":
1653
+ case "com.amazonaws.xray#ThrottledException":
1654
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1655
+ default:
1656
+ const parsedBody = parsedOutput.body;
1657
+ return throwDefaultError({
1658
+ output,
1659
+ parsedBody,
1660
+ errorCode
1661
+ });
1662
+ }
1663
+ }, "de_GetTraceSummariesCommandError");
1664
+ var de_ListResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1665
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
+ return de_ListResourcePoliciesCommandError(output, context);
1667
+ }
1668
+ const contents = (0, import_smithy_client.map)({
1669
+ $metadata: deserializeMetadata(output)
1670
+ });
1671
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1672
+ const doc = (0, import_smithy_client.take)(data, {
1673
+ NextToken: import_smithy_client.expectString,
1674
+ ResourcePolicies: (_) => de_ResourcePolicyList(_, context)
1675
+ });
1676
+ Object.assign(contents, doc);
1677
+ return contents;
1678
+ }, "de_ListResourcePoliciesCommand");
1679
+ var de_ListResourcePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1680
+ const parsedOutput = {
1681
+ ...output,
1682
+ body: await parseErrorBody(output.body, context)
1683
+ };
1684
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
+ switch (errorCode) {
1686
+ case "InvalidRequestException":
1687
+ case "com.amazonaws.xray#InvalidRequestException":
1688
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1689
+ case "ThrottledException":
1690
+ case "com.amazonaws.xray#ThrottledException":
1691
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1692
+ default:
1693
+ const parsedBody = parsedOutput.body;
1694
+ return throwDefaultError({
1695
+ output,
1696
+ parsedBody,
1697
+ errorCode
1698
+ });
1699
+ }
1700
+ }, "de_ListResourcePoliciesCommandError");
1701
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1702
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1703
+ return de_ListTagsForResourceCommandError(output, context);
1704
+ }
1705
+ const contents = (0, import_smithy_client.map)({
1706
+ $metadata: deserializeMetadata(output)
1707
+ });
1708
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1709
+ const doc = (0, import_smithy_client.take)(data, {
1710
+ NextToken: import_smithy_client.expectString,
1711
+ Tags: import_smithy_client._json
1712
+ });
1713
+ Object.assign(contents, doc);
1714
+ return contents;
1715
+ }, "de_ListTagsForResourceCommand");
1716
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1717
+ const parsedOutput = {
1718
+ ...output,
1719
+ body: await parseErrorBody(output.body, context)
1720
+ };
1721
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1722
+ switch (errorCode) {
1723
+ case "InvalidRequestException":
1724
+ case "com.amazonaws.xray#InvalidRequestException":
1725
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1726
+ case "ResourceNotFoundException":
1727
+ case "com.amazonaws.xray#ResourceNotFoundException":
1728
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1729
+ case "ThrottledException":
1730
+ case "com.amazonaws.xray#ThrottledException":
1731
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1732
+ default:
1733
+ const parsedBody = parsedOutput.body;
1734
+ return throwDefaultError({
1735
+ output,
1736
+ parsedBody,
1737
+ errorCode
1738
+ });
1739
+ }
1740
+ }, "de_ListTagsForResourceCommandError");
1741
+ var de_PutEncryptionConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1742
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1743
+ return de_PutEncryptionConfigCommandError(output, context);
1744
+ }
1745
+ const contents = (0, import_smithy_client.map)({
1746
+ $metadata: deserializeMetadata(output)
1747
+ });
1748
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1749
+ const doc = (0, import_smithy_client.take)(data, {
1750
+ EncryptionConfig: import_smithy_client._json
1751
+ });
1752
+ Object.assign(contents, doc);
1753
+ return contents;
1754
+ }, "de_PutEncryptionConfigCommand");
1755
+ var de_PutEncryptionConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1756
+ const parsedOutput = {
1757
+ ...output,
1758
+ body: await parseErrorBody(output.body, context)
1759
+ };
1760
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1761
+ switch (errorCode) {
1762
+ case "InvalidRequestException":
1763
+ case "com.amazonaws.xray#InvalidRequestException":
1764
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1765
+ case "ThrottledException":
1766
+ case "com.amazonaws.xray#ThrottledException":
1767
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1768
+ default:
1769
+ const parsedBody = parsedOutput.body;
1770
+ return throwDefaultError({
1771
+ output,
1772
+ parsedBody,
1773
+ errorCode
1774
+ });
1775
+ }
1776
+ }, "de_PutEncryptionConfigCommandError");
1777
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1778
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1779
+ return de_PutResourcePolicyCommandError(output, context);
1780
+ }
1781
+ const contents = (0, import_smithy_client.map)({
1782
+ $metadata: deserializeMetadata(output)
1783
+ });
1784
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1785
+ const doc = (0, import_smithy_client.take)(data, {
1786
+ ResourcePolicy: (_) => de_ResourcePolicy(_, context)
1787
+ });
1788
+ Object.assign(contents, doc);
1789
+ return contents;
1790
+ }, "de_PutResourcePolicyCommand");
1791
+ var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1792
+ const parsedOutput = {
1793
+ ...output,
1794
+ body: await parseErrorBody(output.body, context)
1795
+ };
1796
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1797
+ switch (errorCode) {
1798
+ case "InvalidPolicyRevisionIdException":
1799
+ case "com.amazonaws.xray#InvalidPolicyRevisionIdException":
1800
+ throw await de_InvalidPolicyRevisionIdExceptionRes(parsedOutput, context);
1801
+ case "LockoutPreventionException":
1802
+ case "com.amazonaws.xray#LockoutPreventionException":
1803
+ throw await de_LockoutPreventionExceptionRes(parsedOutput, context);
1804
+ case "MalformedPolicyDocumentException":
1805
+ case "com.amazonaws.xray#MalformedPolicyDocumentException":
1806
+ throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
1807
+ case "PolicyCountLimitExceededException":
1808
+ case "com.amazonaws.xray#PolicyCountLimitExceededException":
1809
+ throw await de_PolicyCountLimitExceededExceptionRes(parsedOutput, context);
1810
+ case "PolicySizeLimitExceededException":
1811
+ case "com.amazonaws.xray#PolicySizeLimitExceededException":
1812
+ throw await de_PolicySizeLimitExceededExceptionRes(parsedOutput, context);
1813
+ case "ThrottledException":
1814
+ case "com.amazonaws.xray#ThrottledException":
1815
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1816
+ default:
1817
+ const parsedBody = parsedOutput.body;
1818
+ return throwDefaultError({
1819
+ output,
1820
+ parsedBody,
1821
+ errorCode
1822
+ });
1823
+ }
1824
+ }, "de_PutResourcePolicyCommandError");
1825
+ var de_PutTelemetryRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
1826
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1827
+ return de_PutTelemetryRecordsCommandError(output, context);
1828
+ }
1829
+ const contents = (0, import_smithy_client.map)({
1830
+ $metadata: deserializeMetadata(output)
1831
+ });
1832
+ await (0, import_smithy_client.collectBody)(output.body, context);
1833
+ return contents;
1834
+ }, "de_PutTelemetryRecordsCommand");
1835
+ var de_PutTelemetryRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1836
+ const parsedOutput = {
1837
+ ...output,
1838
+ body: await parseErrorBody(output.body, context)
1839
+ };
1840
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1841
+ switch (errorCode) {
1842
+ case "InvalidRequestException":
1843
+ case "com.amazonaws.xray#InvalidRequestException":
1844
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1845
+ case "ThrottledException":
1846
+ case "com.amazonaws.xray#ThrottledException":
1847
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1848
+ default:
1849
+ const parsedBody = parsedOutput.body;
1850
+ return throwDefaultError({
1851
+ output,
1852
+ parsedBody,
1853
+ errorCode
1854
+ });
1855
+ }
1856
+ }, "de_PutTelemetryRecordsCommandError");
1857
+ var de_PutTraceSegmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1858
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1859
+ return de_PutTraceSegmentsCommandError(output, context);
1860
+ }
1861
+ const contents = (0, import_smithy_client.map)({
1862
+ $metadata: deserializeMetadata(output)
1863
+ });
1864
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1865
+ const doc = (0, import_smithy_client.take)(data, {
1866
+ UnprocessedTraceSegments: import_smithy_client._json
1867
+ });
1868
+ Object.assign(contents, doc);
1869
+ return contents;
1870
+ }, "de_PutTraceSegmentsCommand");
1871
+ var de_PutTraceSegmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1872
+ const parsedOutput = {
1873
+ ...output,
1874
+ body: await parseErrorBody(output.body, context)
1875
+ };
1876
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1877
+ switch (errorCode) {
1878
+ case "InvalidRequestException":
1879
+ case "com.amazonaws.xray#InvalidRequestException":
1880
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1881
+ case "ThrottledException":
1882
+ case "com.amazonaws.xray#ThrottledException":
1883
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1884
+ default:
1885
+ const parsedBody = parsedOutput.body;
1886
+ return throwDefaultError({
1887
+ output,
1888
+ parsedBody,
1889
+ errorCode
1890
+ });
1891
+ }
1892
+ }, "de_PutTraceSegmentsCommandError");
1893
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1894
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1895
+ return de_TagResourceCommandError(output, context);
1896
+ }
1897
+ const contents = (0, import_smithy_client.map)({
1898
+ $metadata: deserializeMetadata(output)
1899
+ });
1900
+ await (0, import_smithy_client.collectBody)(output.body, context);
1901
+ return contents;
1902
+ }, "de_TagResourceCommand");
1903
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1904
+ const parsedOutput = {
1905
+ ...output,
1906
+ body: await parseErrorBody(output.body, context)
1907
+ };
1908
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1909
+ switch (errorCode) {
1910
+ case "InvalidRequestException":
1911
+ case "com.amazonaws.xray#InvalidRequestException":
1912
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1913
+ case "ResourceNotFoundException":
1914
+ case "com.amazonaws.xray#ResourceNotFoundException":
1915
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1916
+ case "ThrottledException":
1917
+ case "com.amazonaws.xray#ThrottledException":
1918
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1919
+ case "TooManyTagsException":
1920
+ case "com.amazonaws.xray#TooManyTagsException":
1921
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1922
+ default:
1923
+ const parsedBody = parsedOutput.body;
1924
+ return throwDefaultError({
1925
+ output,
1926
+ parsedBody,
1927
+ errorCode
1928
+ });
1929
+ }
1930
+ }, "de_TagResourceCommandError");
1931
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1932
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1933
+ return de_UntagResourceCommandError(output, context);
1934
+ }
1935
+ const contents = (0, import_smithy_client.map)({
1936
+ $metadata: deserializeMetadata(output)
1937
+ });
1938
+ await (0, import_smithy_client.collectBody)(output.body, context);
1939
+ return contents;
1940
+ }, "de_UntagResourceCommand");
1941
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1942
+ const parsedOutput = {
1943
+ ...output,
1944
+ body: await parseErrorBody(output.body, context)
1945
+ };
1946
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1947
+ switch (errorCode) {
1948
+ case "InvalidRequestException":
1949
+ case "com.amazonaws.xray#InvalidRequestException":
1950
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1951
+ case "ResourceNotFoundException":
1952
+ case "com.amazonaws.xray#ResourceNotFoundException":
1953
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1954
+ case "ThrottledException":
1955
+ case "com.amazonaws.xray#ThrottledException":
1956
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1957
+ default:
1958
+ const parsedBody = parsedOutput.body;
1959
+ return throwDefaultError({
1960
+ output,
1961
+ parsedBody,
1962
+ errorCode
1963
+ });
1964
+ }
1965
+ }, "de_UntagResourceCommandError");
1966
+ var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1967
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1968
+ return de_UpdateGroupCommandError(output, context);
1969
+ }
1970
+ const contents = (0, import_smithy_client.map)({
1971
+ $metadata: deserializeMetadata(output)
1972
+ });
1973
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1974
+ const doc = (0, import_smithy_client.take)(data, {
1975
+ Group: import_smithy_client._json
1976
+ });
1977
+ Object.assign(contents, doc);
1978
+ return contents;
1979
+ }, "de_UpdateGroupCommand");
1980
+ var de_UpdateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1981
+ const parsedOutput = {
1982
+ ...output,
1983
+ body: await parseErrorBody(output.body, context)
1984
+ };
1985
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1986
+ switch (errorCode) {
1987
+ case "InvalidRequestException":
1988
+ case "com.amazonaws.xray#InvalidRequestException":
1989
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1990
+ case "ThrottledException":
1991
+ case "com.amazonaws.xray#ThrottledException":
1992
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
1993
+ default:
1994
+ const parsedBody = parsedOutput.body;
1995
+ return throwDefaultError({
1996
+ output,
1997
+ parsedBody,
1998
+ errorCode
1999
+ });
2000
+ }
2001
+ }, "de_UpdateGroupCommandError");
2002
+ var de_UpdateSamplingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2003
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2004
+ return de_UpdateSamplingRuleCommandError(output, context);
2005
+ }
2006
+ const contents = (0, import_smithy_client.map)({
2007
+ $metadata: deserializeMetadata(output)
2008
+ });
2009
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2010
+ const doc = (0, import_smithy_client.take)(data, {
2011
+ SamplingRuleRecord: (_) => de_SamplingRuleRecord(_, context)
2012
+ });
2013
+ Object.assign(contents, doc);
2014
+ return contents;
2015
+ }, "de_UpdateSamplingRuleCommand");
2016
+ var de_UpdateSamplingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2017
+ const parsedOutput = {
2018
+ ...output,
2019
+ body: await parseErrorBody(output.body, context)
2020
+ };
2021
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2022
+ switch (errorCode) {
2023
+ case "InvalidRequestException":
2024
+ case "com.amazonaws.xray#InvalidRequestException":
2025
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2026
+ case "ThrottledException":
2027
+ case "com.amazonaws.xray#ThrottledException":
2028
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
2029
+ default:
2030
+ const parsedBody = parsedOutput.body;
2031
+ return throwDefaultError({
2032
+ output,
2033
+ parsedBody,
2034
+ errorCode
2035
+ });
2036
+ }
2037
+ }, "de_UpdateSamplingRuleCommandError");
2038
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(XRayServiceException);
2039
+ var de_InvalidPolicyRevisionIdExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2040
+ const contents = (0, import_smithy_client.map)({});
2041
+ const data = parsedOutput.body;
2042
+ const doc = (0, import_smithy_client.take)(data, {
2043
+ Message: import_smithy_client.expectString
2044
+ });
2045
+ Object.assign(contents, doc);
2046
+ const exception = new InvalidPolicyRevisionIdException({
2047
+ $metadata: deserializeMetadata(parsedOutput),
2048
+ ...contents
2049
+ });
2050
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2051
+ }, "de_InvalidPolicyRevisionIdExceptionRes");
2052
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2053
+ const contents = (0, import_smithy_client.map)({});
2054
+ const data = parsedOutput.body;
2055
+ const doc = (0, import_smithy_client.take)(data, {
2056
+ Message: import_smithy_client.expectString
2057
+ });
2058
+ Object.assign(contents, doc);
2059
+ const exception = new InvalidRequestException({
2060
+ $metadata: deserializeMetadata(parsedOutput),
2061
+ ...contents
2062
+ });
2063
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2064
+ }, "de_InvalidRequestExceptionRes");
2065
+ var de_LockoutPreventionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2066
+ const contents = (0, import_smithy_client.map)({});
2067
+ const data = parsedOutput.body;
2068
+ const doc = (0, import_smithy_client.take)(data, {
2069
+ Message: import_smithy_client.expectString
2070
+ });
2071
+ Object.assign(contents, doc);
2072
+ const exception = new LockoutPreventionException({
2073
+ $metadata: deserializeMetadata(parsedOutput),
2074
+ ...contents
2075
+ });
2076
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2077
+ }, "de_LockoutPreventionExceptionRes");
2078
+ var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2079
+ const contents = (0, import_smithy_client.map)({});
2080
+ const data = parsedOutput.body;
2081
+ const doc = (0, import_smithy_client.take)(data, {
2082
+ Message: import_smithy_client.expectString
2083
+ });
2084
+ Object.assign(contents, doc);
2085
+ const exception = new MalformedPolicyDocumentException({
2086
+ $metadata: deserializeMetadata(parsedOutput),
2087
+ ...contents
2088
+ });
2089
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2090
+ }, "de_MalformedPolicyDocumentExceptionRes");
2091
+ var de_PolicyCountLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2092
+ const contents = (0, import_smithy_client.map)({});
2093
+ const data = parsedOutput.body;
2094
+ const doc = (0, import_smithy_client.take)(data, {
2095
+ Message: import_smithy_client.expectString
2096
+ });
2097
+ Object.assign(contents, doc);
2098
+ const exception = new PolicyCountLimitExceededException({
2099
+ $metadata: deserializeMetadata(parsedOutput),
2100
+ ...contents
2101
+ });
2102
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2103
+ }, "de_PolicyCountLimitExceededExceptionRes");
2104
+ var de_PolicySizeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2105
+ const contents = (0, import_smithy_client.map)({});
2106
+ const data = parsedOutput.body;
2107
+ const doc = (0, import_smithy_client.take)(data, {
2108
+ Message: import_smithy_client.expectString
2109
+ });
2110
+ Object.assign(contents, doc);
2111
+ const exception = new PolicySizeLimitExceededException({
2112
+ $metadata: deserializeMetadata(parsedOutput),
2113
+ ...contents
2114
+ });
2115
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2116
+ }, "de_PolicySizeLimitExceededExceptionRes");
2117
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2118
+ const contents = (0, import_smithy_client.map)({});
2119
+ const data = parsedOutput.body;
2120
+ const doc = (0, import_smithy_client.take)(data, {
2121
+ Message: import_smithy_client.expectString,
2122
+ ResourceName: import_smithy_client.expectString
2123
+ });
2124
+ Object.assign(contents, doc);
2125
+ const exception = new ResourceNotFoundException({
2126
+ $metadata: deserializeMetadata(parsedOutput),
2127
+ ...contents
2128
+ });
2129
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2130
+ }, "de_ResourceNotFoundExceptionRes");
2131
+ var de_RuleLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2132
+ const contents = (0, import_smithy_client.map)({});
2133
+ const data = parsedOutput.body;
2134
+ const doc = (0, import_smithy_client.take)(data, {
2135
+ Message: import_smithy_client.expectString
2136
+ });
2137
+ Object.assign(contents, doc);
2138
+ const exception = new RuleLimitExceededException({
2139
+ $metadata: deserializeMetadata(parsedOutput),
2140
+ ...contents
2141
+ });
2142
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2143
+ }, "de_RuleLimitExceededExceptionRes");
2144
+ var de_ThrottledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2145
+ const contents = (0, import_smithy_client.map)({});
2146
+ const data = parsedOutput.body;
2147
+ const doc = (0, import_smithy_client.take)(data, {
2148
+ Message: import_smithy_client.expectString
2149
+ });
2150
+ Object.assign(contents, doc);
2151
+ const exception = new ThrottledException({
2152
+ $metadata: deserializeMetadata(parsedOutput),
2153
+ ...contents
2154
+ });
2155
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2156
+ }, "de_ThrottledExceptionRes");
2157
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2158
+ const contents = (0, import_smithy_client.map)({});
2159
+ const data = parsedOutput.body;
2160
+ const doc = (0, import_smithy_client.take)(data, {
2161
+ Message: import_smithy_client.expectString,
2162
+ ResourceName: import_smithy_client.expectString
2163
+ });
2164
+ Object.assign(contents, doc);
2165
+ const exception = new TooManyTagsException({
2166
+ $metadata: deserializeMetadata(parsedOutput),
2167
+ ...contents
2168
+ });
2169
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2170
+ }, "de_TooManyTagsExceptionRes");
2171
+ var se_SamplingRule = /* @__PURE__ */ __name((input, context) => {
2172
+ return (0, import_smithy_client.take)(input, {
2173
+ Attributes: import_smithy_client._json,
2174
+ FixedRate: import_smithy_client.serializeFloat,
2175
+ HTTPMethod: [],
2176
+ Host: [],
2177
+ Priority: [],
2178
+ ReservoirSize: [],
2179
+ ResourceARN: [],
2180
+ RuleARN: [],
2181
+ RuleName: [],
2182
+ ServiceName: [],
2183
+ ServiceType: [],
2184
+ URLPath: [],
2185
+ Version: []
2186
+ });
2187
+ }, "se_SamplingRule");
2188
+ var se_SamplingRuleUpdate = /* @__PURE__ */ __name((input, context) => {
2189
+ return (0, import_smithy_client.take)(input, {
2190
+ Attributes: import_smithy_client._json,
2191
+ FixedRate: import_smithy_client.serializeFloat,
2192
+ HTTPMethod: [],
2193
+ Host: [],
2194
+ Priority: [],
2195
+ ReservoirSize: [],
2196
+ ResourceARN: [],
2197
+ RuleARN: [],
2198
+ RuleName: [],
2199
+ ServiceName: [],
2200
+ ServiceType: [],
2201
+ URLPath: []
2202
+ });
2203
+ }, "se_SamplingRuleUpdate");
2204
+ var se_SamplingStatisticsDocument = /* @__PURE__ */ __name((input, context) => {
2205
+ return (0, import_smithy_client.take)(input, {
2206
+ BorrowCount: [],
2207
+ ClientID: [],
2208
+ RequestCount: [],
2209
+ RuleName: [],
2210
+ SampledCount: [],
2211
+ Timestamp: (_) => Math.round(_.getTime() / 1e3)
2212
+ });
2213
+ }, "se_SamplingStatisticsDocument");
2214
+ var se_SamplingStatisticsDocumentList = /* @__PURE__ */ __name((input, context) => {
2215
+ return input.filter((e) => e != null).map((entry) => {
2216
+ return se_SamplingStatisticsDocument(entry, context);
2217
+ });
2218
+ }, "se_SamplingStatisticsDocumentList");
2219
+ var se_SamplingStrategy = /* @__PURE__ */ __name((input, context) => {
2220
+ return (0, import_smithy_client.take)(input, {
2221
+ Name: [],
2222
+ Value: import_smithy_client.serializeFloat
2223
+ });
2224
+ }, "se_SamplingStrategy");
2225
+ var se_TelemetryRecord = /* @__PURE__ */ __name((input, context) => {
2226
+ return (0, import_smithy_client.take)(input, {
2227
+ BackendConnectionErrors: import_smithy_client._json,
2228
+ SegmentsReceivedCount: [],
2229
+ SegmentsRejectedCount: [],
2230
+ SegmentsSentCount: [],
2231
+ SegmentsSpilloverCount: [],
2232
+ Timestamp: (_) => Math.round(_.getTime() / 1e3)
2233
+ });
2234
+ }, "se_TelemetryRecord");
2235
+ var se_TelemetryRecordList = /* @__PURE__ */ __name((input, context) => {
2236
+ return input.filter((e) => e != null).map((entry) => {
2237
+ return se_TelemetryRecord(entry, context);
2238
+ });
2239
+ }, "se_TelemetryRecordList");
2240
+ var de_Annotations = /* @__PURE__ */ __name((output, context) => {
2241
+ return Object.entries(output).reduce((acc, [key, value]) => {
2242
+ if (value === null) {
2243
+ return acc;
2244
+ }
2245
+ acc[key] = de_ValuesWithServiceIds(value, context);
2246
+ return acc;
2247
+ }, {});
2248
+ }, "de_Annotations");
2249
+ var de_AnnotationValue = /* @__PURE__ */ __name((output, context) => {
2250
+ if ((0, import_smithy_client.expectBoolean)(output.BooleanValue) !== void 0) {
2251
+ return { BooleanValue: (0, import_smithy_client.expectBoolean)(output.BooleanValue) };
2252
+ }
2253
+ if ((0, import_smithy_client.limitedParseDouble)(output.NumberValue) !== void 0) {
2254
+ return { NumberValue: (0, import_smithy_client.limitedParseDouble)(output.NumberValue) };
2255
+ }
2256
+ if ((0, import_smithy_client.expectString)(output.StringValue) !== void 0) {
2257
+ return { StringValue: (0, import_smithy_client.expectString)(output.StringValue) };
2258
+ }
2259
+ return { $unknown: Object.entries(output)[0] };
2260
+ }, "de_AnnotationValue");
2261
+ var de_Edge = /* @__PURE__ */ __name((output, context) => {
2262
+ return (0, import_smithy_client.take)(output, {
2263
+ Aliases: import_smithy_client._json,
2264
+ EdgeType: import_smithy_client.expectString,
2265
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2266
+ ReceivedEventAgeHistogram: (_) => de_Histogram(_, context),
2267
+ ReferenceId: import_smithy_client.expectInt32,
2268
+ ResponseTimeHistogram: (_) => de_Histogram(_, context),
2269
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2270
+ SummaryStatistics: (_) => de_EdgeStatistics(_, context)
2271
+ });
2272
+ }, "de_Edge");
2273
+ var de_EdgeList = /* @__PURE__ */ __name((output, context) => {
2274
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2275
+ return de_Edge(entry, context);
2276
+ });
2277
+ return retVal;
2278
+ }, "de_EdgeList");
2279
+ var de_EdgeStatistics = /* @__PURE__ */ __name((output, context) => {
2280
+ return (0, import_smithy_client.take)(output, {
2281
+ ErrorStatistics: import_smithy_client._json,
2282
+ FaultStatistics: import_smithy_client._json,
2283
+ OkCount: import_smithy_client.expectLong,
2284
+ TotalCount: import_smithy_client.expectLong,
2285
+ TotalResponseTime: import_smithy_client.limitedParseDouble
2286
+ });
2287
+ }, "de_EdgeStatistics");
2288
+ var de_Histogram = /* @__PURE__ */ __name((output, context) => {
2289
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2290
+ return de_HistogramEntry(entry, context);
2291
+ });
2292
+ return retVal;
2293
+ }, "de_Histogram");
2294
+ var de_HistogramEntry = /* @__PURE__ */ __name((output, context) => {
2295
+ return (0, import_smithy_client.take)(output, {
2296
+ Count: import_smithy_client.expectInt32,
2297
+ Value: import_smithy_client.limitedParseDouble
2298
+ });
2299
+ }, "de_HistogramEntry");
2300
+ var de_Insight = /* @__PURE__ */ __name((output, context) => {
2301
+ return (0, import_smithy_client.take)(output, {
2302
+ Categories: import_smithy_client._json,
2303
+ ClientRequestImpactStatistics: import_smithy_client._json,
2304
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2305
+ GroupARN: import_smithy_client.expectString,
2306
+ GroupName: import_smithy_client.expectString,
2307
+ InsightId: import_smithy_client.expectString,
2308
+ RootCauseServiceId: import_smithy_client._json,
2309
+ RootCauseServiceRequestImpactStatistics: import_smithy_client._json,
2310
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2311
+ State: import_smithy_client.expectString,
2312
+ Summary: import_smithy_client.expectString,
2313
+ TopAnomalousServices: import_smithy_client._json
2314
+ });
2315
+ }, "de_Insight");
2316
+ var de_InsightEvent = /* @__PURE__ */ __name((output, context) => {
2317
+ return (0, import_smithy_client.take)(output, {
2318
+ ClientRequestImpactStatistics: import_smithy_client._json,
2319
+ EventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2320
+ RootCauseServiceRequestImpactStatistics: import_smithy_client._json,
2321
+ Summary: import_smithy_client.expectString,
2322
+ TopAnomalousServices: import_smithy_client._json
2323
+ });
2324
+ }, "de_InsightEvent");
2325
+ var de_InsightEventList = /* @__PURE__ */ __name((output, context) => {
2326
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2327
+ return de_InsightEvent(entry, context);
2328
+ });
2329
+ return retVal;
2330
+ }, "de_InsightEventList");
2331
+ var de_InsightSummary = /* @__PURE__ */ __name((output, context) => {
2332
+ return (0, import_smithy_client.take)(output, {
2333
+ Categories: import_smithy_client._json,
2334
+ ClientRequestImpactStatistics: import_smithy_client._json,
2335
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2336
+ GroupARN: import_smithy_client.expectString,
2337
+ GroupName: import_smithy_client.expectString,
2338
+ InsightId: import_smithy_client.expectString,
2339
+ LastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2340
+ RootCauseServiceId: import_smithy_client._json,
2341
+ RootCauseServiceRequestImpactStatistics: import_smithy_client._json,
2342
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2343
+ State: import_smithy_client.expectString,
2344
+ Summary: import_smithy_client.expectString,
2345
+ TopAnomalousServices: import_smithy_client._json
2346
+ });
2347
+ }, "de_InsightSummary");
2348
+ var de_InsightSummaryList = /* @__PURE__ */ __name((output, context) => {
2349
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2350
+ return de_InsightSummary(entry, context);
2351
+ });
2352
+ return retVal;
2353
+ }, "de_InsightSummaryList");
2354
+ var de_ResourcePolicy = /* @__PURE__ */ __name((output, context) => {
2355
+ return (0, import_smithy_client.take)(output, {
2356
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2357
+ PolicyDocument: import_smithy_client.expectString,
2358
+ PolicyName: import_smithy_client.expectString,
2359
+ PolicyRevisionId: import_smithy_client.expectString
2360
+ });
2361
+ }, "de_ResourcePolicy");
2362
+ var de_ResourcePolicyList = /* @__PURE__ */ __name((output, context) => {
2363
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2364
+ return de_ResourcePolicy(entry, context);
2365
+ });
2366
+ return retVal;
2367
+ }, "de_ResourcePolicyList");
2368
+ var de_ResponseTimeRootCause = /* @__PURE__ */ __name((output, context) => {
2369
+ return (0, import_smithy_client.take)(output, {
2370
+ ClientImpacting: import_smithy_client.expectBoolean,
2371
+ Services: (_) => de_ResponseTimeRootCauseServices(_, context)
2372
+ });
2373
+ }, "de_ResponseTimeRootCause");
2374
+ var de_ResponseTimeRootCauseEntity = /* @__PURE__ */ __name((output, context) => {
2375
+ return (0, import_smithy_client.take)(output, {
2376
+ Coverage: import_smithy_client.limitedParseDouble,
2377
+ Name: import_smithy_client.expectString,
2378
+ Remote: import_smithy_client.expectBoolean
2379
+ });
2380
+ }, "de_ResponseTimeRootCauseEntity");
2381
+ var de_ResponseTimeRootCauseEntityPath = /* @__PURE__ */ __name((output, context) => {
2382
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2383
+ return de_ResponseTimeRootCauseEntity(entry, context);
2384
+ });
2385
+ return retVal;
2386
+ }, "de_ResponseTimeRootCauseEntityPath");
2387
+ var de_ResponseTimeRootCauses = /* @__PURE__ */ __name((output, context) => {
2388
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2389
+ return de_ResponseTimeRootCause(entry, context);
2390
+ });
2391
+ return retVal;
2392
+ }, "de_ResponseTimeRootCauses");
2393
+ var de_ResponseTimeRootCauseService = /* @__PURE__ */ __name((output, context) => {
2394
+ return (0, import_smithy_client.take)(output, {
2395
+ AccountId: import_smithy_client.expectString,
2396
+ EntityPath: (_) => de_ResponseTimeRootCauseEntityPath(_, context),
2397
+ Inferred: import_smithy_client.expectBoolean,
2398
+ Name: import_smithy_client.expectString,
2399
+ Names: import_smithy_client._json,
2400
+ Type: import_smithy_client.expectString
2401
+ });
2402
+ }, "de_ResponseTimeRootCauseService");
2403
+ var de_ResponseTimeRootCauseServices = /* @__PURE__ */ __name((output, context) => {
2404
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2405
+ return de_ResponseTimeRootCauseService(entry, context);
2406
+ });
2407
+ return retVal;
2408
+ }, "de_ResponseTimeRootCauseServices");
2409
+ var de_SamplingRule = /* @__PURE__ */ __name((output, context) => {
2410
+ return (0, import_smithy_client.take)(output, {
2411
+ Attributes: import_smithy_client._json,
2412
+ FixedRate: import_smithy_client.limitedParseDouble,
2413
+ HTTPMethod: import_smithy_client.expectString,
2414
+ Host: import_smithy_client.expectString,
2415
+ Priority: import_smithy_client.expectInt32,
2416
+ ReservoirSize: import_smithy_client.expectInt32,
2417
+ ResourceARN: import_smithy_client.expectString,
2418
+ RuleARN: import_smithy_client.expectString,
2419
+ RuleName: import_smithy_client.expectString,
2420
+ ServiceName: import_smithy_client.expectString,
2421
+ ServiceType: import_smithy_client.expectString,
2422
+ URLPath: import_smithy_client.expectString,
2423
+ Version: import_smithy_client.expectInt32
2424
+ });
2425
+ }, "de_SamplingRule");
2426
+ var de_SamplingRuleRecord = /* @__PURE__ */ __name((output, context) => {
2427
+ return (0, import_smithy_client.take)(output, {
2428
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2429
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2430
+ SamplingRule: (_) => de_SamplingRule(_, context)
2431
+ });
2432
+ }, "de_SamplingRuleRecord");
2433
+ var de_SamplingRuleRecordList = /* @__PURE__ */ __name((output, context) => {
2434
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2435
+ return de_SamplingRuleRecord(entry, context);
2436
+ });
2437
+ return retVal;
2438
+ }, "de_SamplingRuleRecordList");
2439
+ var de_SamplingStatisticSummary = /* @__PURE__ */ __name((output, context) => {
2440
+ return (0, import_smithy_client.take)(output, {
2441
+ BorrowCount: import_smithy_client.expectInt32,
2442
+ RequestCount: import_smithy_client.expectInt32,
2443
+ RuleName: import_smithy_client.expectString,
2444
+ SampledCount: import_smithy_client.expectInt32,
2445
+ Timestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2446
+ });
2447
+ }, "de_SamplingStatisticSummary");
2448
+ var de_SamplingStatisticSummaryList = /* @__PURE__ */ __name((output, context) => {
2449
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2450
+ return de_SamplingStatisticSummary(entry, context);
2451
+ });
2452
+ return retVal;
2453
+ }, "de_SamplingStatisticSummaryList");
2454
+ var de_SamplingTargetDocument = /* @__PURE__ */ __name((output, context) => {
2455
+ return (0, import_smithy_client.take)(output, {
2456
+ FixedRate: import_smithy_client.limitedParseDouble,
2457
+ Interval: import_smithy_client.expectInt32,
2458
+ ReservoirQuota: import_smithy_client.expectInt32,
2459
+ ReservoirQuotaTTL: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2460
+ RuleName: import_smithy_client.expectString
2461
+ });
2462
+ }, "de_SamplingTargetDocument");
2463
+ var de_SamplingTargetDocumentList = /* @__PURE__ */ __name((output, context) => {
2464
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2465
+ return de_SamplingTargetDocument(entry, context);
2466
+ });
2467
+ return retVal;
2468
+ }, "de_SamplingTargetDocumentList");
2469
+ var de_Service = /* @__PURE__ */ __name((output, context) => {
2470
+ return (0, import_smithy_client.take)(output, {
2471
+ AccountId: import_smithy_client.expectString,
2472
+ DurationHistogram: (_) => de_Histogram(_, context),
2473
+ Edges: (_) => de_EdgeList(_, context),
2474
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2475
+ Name: import_smithy_client.expectString,
2476
+ Names: import_smithy_client._json,
2477
+ ReferenceId: import_smithy_client.expectInt32,
2478
+ ResponseTimeHistogram: (_) => de_Histogram(_, context),
2479
+ Root: import_smithy_client.expectBoolean,
2480
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2481
+ State: import_smithy_client.expectString,
2482
+ SummaryStatistics: (_) => de_ServiceStatistics(_, context),
2483
+ Type: import_smithy_client.expectString
2484
+ });
2485
+ }, "de_Service");
2486
+ var de_ServiceList = /* @__PURE__ */ __name((output, context) => {
2487
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2488
+ return de_Service(entry, context);
2489
+ });
2490
+ return retVal;
2491
+ }, "de_ServiceList");
2492
+ var de_ServiceStatistics = /* @__PURE__ */ __name((output, context) => {
2493
+ return (0, import_smithy_client.take)(output, {
2494
+ ErrorStatistics: import_smithy_client._json,
2495
+ FaultStatistics: import_smithy_client._json,
2496
+ OkCount: import_smithy_client.expectLong,
2497
+ TotalCount: import_smithy_client.expectLong,
2498
+ TotalResponseTime: import_smithy_client.limitedParseDouble
2499
+ });
2500
+ }, "de_ServiceStatistics");
2501
+ var de_TimeSeriesServiceStatistics = /* @__PURE__ */ __name((output, context) => {
2502
+ return (0, import_smithy_client.take)(output, {
2503
+ EdgeSummaryStatistics: (_) => de_EdgeStatistics(_, context),
2504
+ ResponseTimeHistogram: (_) => de_Histogram(_, context),
2505
+ ServiceForecastStatistics: import_smithy_client._json,
2506
+ ServiceSummaryStatistics: (_) => de_ServiceStatistics(_, context),
2507
+ Timestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2508
+ });
2509
+ }, "de_TimeSeriesServiceStatistics");
2510
+ var de_TimeSeriesServiceStatisticsList = /* @__PURE__ */ __name((output, context) => {
2511
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2512
+ return de_TimeSeriesServiceStatistics(entry, context);
2513
+ });
2514
+ return retVal;
2515
+ }, "de_TimeSeriesServiceStatisticsList");
2516
+ var de_Trace = /* @__PURE__ */ __name((output, context) => {
2517
+ return (0, import_smithy_client.take)(output, {
2518
+ Duration: import_smithy_client.limitedParseDouble,
2519
+ Id: import_smithy_client.expectString,
2520
+ LimitExceeded: import_smithy_client.expectBoolean,
2521
+ Segments: import_smithy_client._json
2522
+ });
2523
+ }, "de_Trace");
2524
+ var de_TraceList = /* @__PURE__ */ __name((output, context) => {
2525
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2526
+ return de_Trace(entry, context);
2527
+ });
2528
+ return retVal;
2529
+ }, "de_TraceList");
2530
+ var de_TraceSummary = /* @__PURE__ */ __name((output, context) => {
2531
+ return (0, import_smithy_client.take)(output, {
2532
+ Annotations: (_) => de_Annotations(_, context),
2533
+ AvailabilityZones: import_smithy_client._json,
2534
+ Duration: import_smithy_client.limitedParseDouble,
2535
+ EntryPoint: import_smithy_client._json,
2536
+ ErrorRootCauses: import_smithy_client._json,
2537
+ FaultRootCauses: import_smithy_client._json,
2538
+ HasError: import_smithy_client.expectBoolean,
2539
+ HasFault: import_smithy_client.expectBoolean,
2540
+ HasThrottle: import_smithy_client.expectBoolean,
2541
+ Http: import_smithy_client._json,
2542
+ Id: import_smithy_client.expectString,
2543
+ InstanceIds: import_smithy_client._json,
2544
+ IsPartial: import_smithy_client.expectBoolean,
2545
+ MatchedEventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2546
+ ResourceARNs: import_smithy_client._json,
2547
+ ResponseTime: import_smithy_client.limitedParseDouble,
2548
+ ResponseTimeRootCauses: (_) => de_ResponseTimeRootCauses(_, context),
2549
+ Revision: import_smithy_client.expectInt32,
2550
+ ServiceIds: import_smithy_client._json,
2551
+ StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2552
+ Users: import_smithy_client._json
2553
+ });
2554
+ }, "de_TraceSummary");
2555
+ var de_TraceSummaryList = /* @__PURE__ */ __name((output, context) => {
2556
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2557
+ return de_TraceSummary(entry, context);
2558
+ });
2559
+ return retVal;
2560
+ }, "de_TraceSummaryList");
2561
+ var de_ValuesWithServiceIds = /* @__PURE__ */ __name((output, context) => {
2562
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2563
+ return de_ValueWithServiceIds(entry, context);
2564
+ });
2565
+ return retVal;
2566
+ }, "de_ValuesWithServiceIds");
2567
+ var de_ValueWithServiceIds = /* @__PURE__ */ __name((output, context) => {
2568
+ return (0, import_smithy_client.take)(output, {
2569
+ AnnotationValue: (_) => de_AnnotationValue((0, import_core.awsExpectUnion)(_), context),
2570
+ ServiceIds: import_smithy_client._json
2571
+ });
2572
+ }, "de_ValueWithServiceIds");
2573
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2574
+ httpStatusCode: output.statusCode,
2575
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2576
+ extendedRequestId: output.headers["x-amz-id-2"],
2577
+ cfId: output.headers["x-amz-cf-id"]
2578
+ }), "deserializeMetadata");
2579
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2580
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2581
+ if (encoded.length) {
2582
+ return JSON.parse(encoded);
2583
+ }
2584
+ return {};
2585
+ }), "parseBody");
2586
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2587
+ const value = await parseBody(errorBody, context);
2588
+ value.message = value.message ?? value.Message;
2589
+ return value;
2590
+ }, "parseErrorBody");
2591
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2592
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2593
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2594
+ let cleanValue = rawValue;
2595
+ if (typeof cleanValue === "number") {
2596
+ cleanValue = cleanValue.toString();
2597
+ }
2598
+ if (cleanValue.indexOf(",") >= 0) {
2599
+ cleanValue = cleanValue.split(",")[0];
2600
+ }
2601
+ if (cleanValue.indexOf(":") >= 0) {
2602
+ cleanValue = cleanValue.split(":")[0];
2603
+ }
2604
+ if (cleanValue.indexOf("#") >= 0) {
2605
+ cleanValue = cleanValue.split("#")[1];
2606
+ }
2607
+ return cleanValue;
2608
+ }, "sanitizeErrorCode");
2609
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2610
+ if (headerKey !== void 0) {
2611
+ return sanitizeErrorCode(output.headers[headerKey]);
2612
+ }
2613
+ if (data.code !== void 0) {
2614
+ return sanitizeErrorCode(data.code);
2615
+ }
2616
+ if (data["__type"] !== void 0) {
2617
+ return sanitizeErrorCode(data["__type"]);
2618
+ }
2619
+ }, "loadRestJsonErrorCode");
2620
+
2621
+ // src/commands/BatchGetTracesCommand.ts
2622
+ var _BatchGetTracesCommand = class _BatchGetTracesCommand extends import_smithy_client.Command.classBuilder().ep({
2623
+ ...commonParams
2624
+ }).m(function(Command, cs, config, o) {
2625
+ return [
2626
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2627
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2628
+ ];
2629
+ }).s("AWSXRay", "BatchGetTraces", {}).n("XRayClient", "BatchGetTracesCommand").f(void 0, void 0).ser(se_BatchGetTracesCommand).de(de_BatchGetTracesCommand).build() {
2630
+ };
2631
+ __name(_BatchGetTracesCommand, "BatchGetTracesCommand");
2632
+ var BatchGetTracesCommand = _BatchGetTracesCommand;
2633
+
2634
+ // src/commands/CreateGroupCommand.ts
2635
+
2636
+
2637
+
2638
+
2639
+ var _CreateGroupCommand = class _CreateGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2640
+ ...commonParams
2641
+ }).m(function(Command, cs, config, o) {
2642
+ return [
2643
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2644
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2645
+ ];
2646
+ }).s("AWSXRay", "CreateGroup", {}).n("XRayClient", "CreateGroupCommand").f(void 0, void 0).ser(se_CreateGroupCommand).de(de_CreateGroupCommand).build() {
2647
+ };
2648
+ __name(_CreateGroupCommand, "CreateGroupCommand");
2649
+ var CreateGroupCommand = _CreateGroupCommand;
2650
+
2651
+ // src/commands/CreateSamplingRuleCommand.ts
2652
+
2653
+
2654
+
2655
+
2656
+ var _CreateSamplingRuleCommand = class _CreateSamplingRuleCommand extends import_smithy_client.Command.classBuilder().ep({
2657
+ ...commonParams
2658
+ }).m(function(Command, cs, config, o) {
2659
+ return [
2660
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2661
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2662
+ ];
2663
+ }).s("AWSXRay", "CreateSamplingRule", {}).n("XRayClient", "CreateSamplingRuleCommand").f(void 0, void 0).ser(se_CreateSamplingRuleCommand).de(de_CreateSamplingRuleCommand).build() {
2664
+ };
2665
+ __name(_CreateSamplingRuleCommand, "CreateSamplingRuleCommand");
2666
+ var CreateSamplingRuleCommand = _CreateSamplingRuleCommand;
2667
+
2668
+ // src/commands/DeleteGroupCommand.ts
2669
+
2670
+
2671
+
2672
+
2673
+ var _DeleteGroupCommand = class _DeleteGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2674
+ ...commonParams
2675
+ }).m(function(Command, cs, config, o) {
2676
+ return [
2677
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2678
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2679
+ ];
2680
+ }).s("AWSXRay", "DeleteGroup", {}).n("XRayClient", "DeleteGroupCommand").f(void 0, void 0).ser(se_DeleteGroupCommand).de(de_DeleteGroupCommand).build() {
2681
+ };
2682
+ __name(_DeleteGroupCommand, "DeleteGroupCommand");
2683
+ var DeleteGroupCommand = _DeleteGroupCommand;
2684
+
2685
+ // src/commands/DeleteResourcePolicyCommand.ts
2686
+
2687
+
2688
+
2689
+
2690
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2691
+ ...commonParams
2692
+ }).m(function(Command, cs, config, o) {
2693
+ return [
2694
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2695
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2696
+ ];
2697
+ }).s("AWSXRay", "DeleteResourcePolicy", {}).n("XRayClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
2698
+ };
2699
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
2700
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
2701
+
2702
+ // src/commands/DeleteSamplingRuleCommand.ts
2703
+
2704
+
2705
+
2706
+
2707
+ var _DeleteSamplingRuleCommand = class _DeleteSamplingRuleCommand extends import_smithy_client.Command.classBuilder().ep({
2708
+ ...commonParams
2709
+ }).m(function(Command, cs, config, o) {
2710
+ return [
2711
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2712
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2713
+ ];
2714
+ }).s("AWSXRay", "DeleteSamplingRule", {}).n("XRayClient", "DeleteSamplingRuleCommand").f(void 0, void 0).ser(se_DeleteSamplingRuleCommand).de(de_DeleteSamplingRuleCommand).build() {
2715
+ };
2716
+ __name(_DeleteSamplingRuleCommand, "DeleteSamplingRuleCommand");
2717
+ var DeleteSamplingRuleCommand = _DeleteSamplingRuleCommand;
2718
+
2719
+ // src/commands/GetEncryptionConfigCommand.ts
2720
+
2721
+
2722
+
2723
+
2724
+ var _GetEncryptionConfigCommand = class _GetEncryptionConfigCommand extends import_smithy_client.Command.classBuilder().ep({
2725
+ ...commonParams
2726
+ }).m(function(Command, cs, config, o) {
2727
+ return [
2728
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2729
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2730
+ ];
2731
+ }).s("AWSXRay", "GetEncryptionConfig", {}).n("XRayClient", "GetEncryptionConfigCommand").f(void 0, void 0).ser(se_GetEncryptionConfigCommand).de(de_GetEncryptionConfigCommand).build() {
2732
+ };
2733
+ __name(_GetEncryptionConfigCommand, "GetEncryptionConfigCommand");
2734
+ var GetEncryptionConfigCommand = _GetEncryptionConfigCommand;
2735
+
2736
+ // src/commands/GetGroupCommand.ts
2737
+
2738
+
2739
+
2740
+
2741
+ var _GetGroupCommand = class _GetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2742
+ ...commonParams
2743
+ }).m(function(Command, cs, config, o) {
2744
+ return [
2745
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2746
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2747
+ ];
2748
+ }).s("AWSXRay", "GetGroup", {}).n("XRayClient", "GetGroupCommand").f(void 0, void 0).ser(se_GetGroupCommand).de(de_GetGroupCommand).build() {
2749
+ };
2750
+ __name(_GetGroupCommand, "GetGroupCommand");
2751
+ var GetGroupCommand = _GetGroupCommand;
2752
+
2753
+ // src/commands/GetGroupsCommand.ts
2754
+
2755
+
2756
+
2757
+
2758
+ var _GetGroupsCommand = class _GetGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2759
+ ...commonParams
2760
+ }).m(function(Command, cs, config, o) {
2761
+ return [
2762
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2763
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2764
+ ];
2765
+ }).s("AWSXRay", "GetGroups", {}).n("XRayClient", "GetGroupsCommand").f(void 0, void 0).ser(se_GetGroupsCommand).de(de_GetGroupsCommand).build() {
2766
+ };
2767
+ __name(_GetGroupsCommand, "GetGroupsCommand");
2768
+ var GetGroupsCommand = _GetGroupsCommand;
2769
+
2770
+ // src/commands/GetInsightCommand.ts
2771
+
2772
+
2773
+
2774
+
2775
+ var _GetInsightCommand = class _GetInsightCommand extends import_smithy_client.Command.classBuilder().ep({
2776
+ ...commonParams
2777
+ }).m(function(Command, cs, config, o) {
2778
+ return [
2779
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2780
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2781
+ ];
2782
+ }).s("AWSXRay", "GetInsight", {}).n("XRayClient", "GetInsightCommand").f(void 0, void 0).ser(se_GetInsightCommand).de(de_GetInsightCommand).build() {
2783
+ };
2784
+ __name(_GetInsightCommand, "GetInsightCommand");
2785
+ var GetInsightCommand = _GetInsightCommand;
2786
+
2787
+ // src/commands/GetInsightEventsCommand.ts
2788
+
2789
+
2790
+
2791
+
2792
+ var _GetInsightEventsCommand = class _GetInsightEventsCommand extends import_smithy_client.Command.classBuilder().ep({
2793
+ ...commonParams
2794
+ }).m(function(Command, cs, config, o) {
2795
+ return [
2796
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2797
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2798
+ ];
2799
+ }).s("AWSXRay", "GetInsightEvents", {}).n("XRayClient", "GetInsightEventsCommand").f(void 0, void 0).ser(se_GetInsightEventsCommand).de(de_GetInsightEventsCommand).build() {
2800
+ };
2801
+ __name(_GetInsightEventsCommand, "GetInsightEventsCommand");
2802
+ var GetInsightEventsCommand = _GetInsightEventsCommand;
2803
+
2804
+ // src/commands/GetInsightImpactGraphCommand.ts
2805
+
2806
+
2807
+
2808
+
2809
+ var _GetInsightImpactGraphCommand = class _GetInsightImpactGraphCommand extends import_smithy_client.Command.classBuilder().ep({
2810
+ ...commonParams
2811
+ }).m(function(Command, cs, config, o) {
2812
+ return [
2813
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2814
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2815
+ ];
2816
+ }).s("AWSXRay", "GetInsightImpactGraph", {}).n("XRayClient", "GetInsightImpactGraphCommand").f(void 0, void 0).ser(se_GetInsightImpactGraphCommand).de(de_GetInsightImpactGraphCommand).build() {
2817
+ };
2818
+ __name(_GetInsightImpactGraphCommand, "GetInsightImpactGraphCommand");
2819
+ var GetInsightImpactGraphCommand = _GetInsightImpactGraphCommand;
2820
+
2821
+ // src/commands/GetInsightSummariesCommand.ts
2822
+
2823
+
2824
+
2825
+
2826
+ var _GetInsightSummariesCommand = class _GetInsightSummariesCommand extends import_smithy_client.Command.classBuilder().ep({
2827
+ ...commonParams
2828
+ }).m(function(Command, cs, config, o) {
2829
+ return [
2830
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2831
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2832
+ ];
2833
+ }).s("AWSXRay", "GetInsightSummaries", {}).n("XRayClient", "GetInsightSummariesCommand").f(void 0, void 0).ser(se_GetInsightSummariesCommand).de(de_GetInsightSummariesCommand).build() {
2834
+ };
2835
+ __name(_GetInsightSummariesCommand, "GetInsightSummariesCommand");
2836
+ var GetInsightSummariesCommand = _GetInsightSummariesCommand;
2837
+
2838
+ // src/commands/GetSamplingRulesCommand.ts
2839
+
2840
+
2841
+
2842
+
2843
+ var _GetSamplingRulesCommand = class _GetSamplingRulesCommand extends import_smithy_client.Command.classBuilder().ep({
2844
+ ...commonParams
2845
+ }).m(function(Command, cs, config, o) {
2846
+ return [
2847
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2848
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2849
+ ];
2850
+ }).s("AWSXRay", "GetSamplingRules", {}).n("XRayClient", "GetSamplingRulesCommand").f(void 0, void 0).ser(se_GetSamplingRulesCommand).de(de_GetSamplingRulesCommand).build() {
2851
+ };
2852
+ __name(_GetSamplingRulesCommand, "GetSamplingRulesCommand");
2853
+ var GetSamplingRulesCommand = _GetSamplingRulesCommand;
2854
+
2855
+ // src/commands/GetSamplingStatisticSummariesCommand.ts
2856
+
2857
+
2858
+
2859
+
2860
+ var _GetSamplingStatisticSummariesCommand = class _GetSamplingStatisticSummariesCommand extends import_smithy_client.Command.classBuilder().ep({
2861
+ ...commonParams
2862
+ }).m(function(Command, cs, config, o) {
2863
+ return [
2864
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2865
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2866
+ ];
2867
+ }).s("AWSXRay", "GetSamplingStatisticSummaries", {}).n("XRayClient", "GetSamplingStatisticSummariesCommand").f(void 0, void 0).ser(se_GetSamplingStatisticSummariesCommand).de(de_GetSamplingStatisticSummariesCommand).build() {
2868
+ };
2869
+ __name(_GetSamplingStatisticSummariesCommand, "GetSamplingStatisticSummariesCommand");
2870
+ var GetSamplingStatisticSummariesCommand = _GetSamplingStatisticSummariesCommand;
2871
+
2872
+ // src/commands/GetSamplingTargetsCommand.ts
2873
+
2874
+
2875
+
2876
+
2877
+ var _GetSamplingTargetsCommand = class _GetSamplingTargetsCommand extends import_smithy_client.Command.classBuilder().ep({
2878
+ ...commonParams
2879
+ }).m(function(Command, cs, config, o) {
2880
+ return [
2881
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2882
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2883
+ ];
2884
+ }).s("AWSXRay", "GetSamplingTargets", {}).n("XRayClient", "GetSamplingTargetsCommand").f(void 0, void 0).ser(se_GetSamplingTargetsCommand).de(de_GetSamplingTargetsCommand).build() {
2885
+ };
2886
+ __name(_GetSamplingTargetsCommand, "GetSamplingTargetsCommand");
2887
+ var GetSamplingTargetsCommand = _GetSamplingTargetsCommand;
2888
+
2889
+ // src/commands/GetServiceGraphCommand.ts
2890
+
2891
+
2892
+
2893
+
2894
+ var _GetServiceGraphCommand = class _GetServiceGraphCommand extends import_smithy_client.Command.classBuilder().ep({
2895
+ ...commonParams
2896
+ }).m(function(Command, cs, config, o) {
2897
+ return [
2898
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2899
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2900
+ ];
2901
+ }).s("AWSXRay", "GetServiceGraph", {}).n("XRayClient", "GetServiceGraphCommand").f(void 0, void 0).ser(se_GetServiceGraphCommand).de(de_GetServiceGraphCommand).build() {
2902
+ };
2903
+ __name(_GetServiceGraphCommand, "GetServiceGraphCommand");
2904
+ var GetServiceGraphCommand = _GetServiceGraphCommand;
2905
+
2906
+ // src/commands/GetTimeSeriesServiceStatisticsCommand.ts
2907
+
2908
+
2909
+
2910
+
2911
+ var _GetTimeSeriesServiceStatisticsCommand = class _GetTimeSeriesServiceStatisticsCommand extends import_smithy_client.Command.classBuilder().ep({
2912
+ ...commonParams
2913
+ }).m(function(Command, cs, config, o) {
2914
+ return [
2915
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2916
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2917
+ ];
2918
+ }).s("AWSXRay", "GetTimeSeriesServiceStatistics", {}).n("XRayClient", "GetTimeSeriesServiceStatisticsCommand").f(void 0, void 0).ser(se_GetTimeSeriesServiceStatisticsCommand).de(de_GetTimeSeriesServiceStatisticsCommand).build() {
2919
+ };
2920
+ __name(_GetTimeSeriesServiceStatisticsCommand, "GetTimeSeriesServiceStatisticsCommand");
2921
+ var GetTimeSeriesServiceStatisticsCommand = _GetTimeSeriesServiceStatisticsCommand;
2922
+
2923
+ // src/commands/GetTraceGraphCommand.ts
2924
+
2925
+
2926
+
2927
+
2928
+ var _GetTraceGraphCommand = class _GetTraceGraphCommand extends import_smithy_client.Command.classBuilder().ep({
2929
+ ...commonParams
2930
+ }).m(function(Command, cs, config, o) {
2931
+ return [
2932
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2933
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2934
+ ];
2935
+ }).s("AWSXRay", "GetTraceGraph", {}).n("XRayClient", "GetTraceGraphCommand").f(void 0, void 0).ser(se_GetTraceGraphCommand).de(de_GetTraceGraphCommand).build() {
2936
+ };
2937
+ __name(_GetTraceGraphCommand, "GetTraceGraphCommand");
2938
+ var GetTraceGraphCommand = _GetTraceGraphCommand;
2939
+
2940
+ // src/commands/GetTraceSummariesCommand.ts
2941
+
2942
+
2943
+
2944
+
2945
+ var _GetTraceSummariesCommand = class _GetTraceSummariesCommand extends import_smithy_client.Command.classBuilder().ep({
2946
+ ...commonParams
2947
+ }).m(function(Command, cs, config, o) {
2948
+ return [
2949
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2950
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2951
+ ];
2952
+ }).s("AWSXRay", "GetTraceSummaries", {}).n("XRayClient", "GetTraceSummariesCommand").f(void 0, void 0).ser(se_GetTraceSummariesCommand).de(de_GetTraceSummariesCommand).build() {
2953
+ };
2954
+ __name(_GetTraceSummariesCommand, "GetTraceSummariesCommand");
2955
+ var GetTraceSummariesCommand = _GetTraceSummariesCommand;
2956
+
2957
+ // src/commands/ListResourcePoliciesCommand.ts
2958
+
2959
+
2960
+
2961
+
2962
+ var _ListResourcePoliciesCommand = class _ListResourcePoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
2963
+ ...commonParams
2964
+ }).m(function(Command, cs, config, o) {
2965
+ return [
2966
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2967
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2968
+ ];
2969
+ }).s("AWSXRay", "ListResourcePolicies", {}).n("XRayClient", "ListResourcePoliciesCommand").f(void 0, void 0).ser(se_ListResourcePoliciesCommand).de(de_ListResourcePoliciesCommand).build() {
2970
+ };
2971
+ __name(_ListResourcePoliciesCommand, "ListResourcePoliciesCommand");
2972
+ var ListResourcePoliciesCommand = _ListResourcePoliciesCommand;
2973
+
2974
+ // src/commands/ListTagsForResourceCommand.ts
2975
+
2976
+
2977
+
2978
+
2979
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2980
+ ...commonParams
2981
+ }).m(function(Command, cs, config, o) {
2982
+ return [
2983
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2984
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2985
+ ];
2986
+ }).s("AWSXRay", "ListTagsForResource", {}).n("XRayClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2987
+ };
2988
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2989
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2990
+
2991
+ // src/commands/PutEncryptionConfigCommand.ts
2992
+
2993
+
2994
+
2995
+
2996
+ var _PutEncryptionConfigCommand = class _PutEncryptionConfigCommand extends import_smithy_client.Command.classBuilder().ep({
2997
+ ...commonParams
2998
+ }).m(function(Command, cs, config, o) {
2999
+ return [
3000
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3001
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3002
+ ];
3003
+ }).s("AWSXRay", "PutEncryptionConfig", {}).n("XRayClient", "PutEncryptionConfigCommand").f(void 0, void 0).ser(se_PutEncryptionConfigCommand).de(de_PutEncryptionConfigCommand).build() {
3004
+ };
3005
+ __name(_PutEncryptionConfigCommand, "PutEncryptionConfigCommand");
3006
+ var PutEncryptionConfigCommand = _PutEncryptionConfigCommand;
3007
+
3008
+ // src/commands/PutResourcePolicyCommand.ts
3009
+
3010
+
3011
+
3012
+
3013
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
3014
+ ...commonParams
3015
+ }).m(function(Command, cs, config, o) {
3016
+ return [
3017
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3018
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3019
+ ];
3020
+ }).s("AWSXRay", "PutResourcePolicy", {}).n("XRayClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
3021
+ };
3022
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
3023
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
3024
+
3025
+ // src/commands/PutTelemetryRecordsCommand.ts
3026
+
3027
+
3028
+
3029
+
3030
+ var _PutTelemetryRecordsCommand = class _PutTelemetryRecordsCommand extends import_smithy_client.Command.classBuilder().ep({
3031
+ ...commonParams
3032
+ }).m(function(Command, cs, config, o) {
3033
+ return [
3034
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3035
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3036
+ ];
3037
+ }).s("AWSXRay", "PutTelemetryRecords", {}).n("XRayClient", "PutTelemetryRecordsCommand").f(void 0, void 0).ser(se_PutTelemetryRecordsCommand).de(de_PutTelemetryRecordsCommand).build() {
3038
+ };
3039
+ __name(_PutTelemetryRecordsCommand, "PutTelemetryRecordsCommand");
3040
+ var PutTelemetryRecordsCommand = _PutTelemetryRecordsCommand;
3041
+
3042
+ // src/commands/PutTraceSegmentsCommand.ts
3043
+
3044
+
3045
+
3046
+
3047
+ var _PutTraceSegmentsCommand = class _PutTraceSegmentsCommand extends import_smithy_client.Command.classBuilder().ep({
3048
+ ...commonParams
3049
+ }).m(function(Command, cs, config, o) {
3050
+ return [
3051
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3052
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3053
+ ];
3054
+ }).s("AWSXRay", "PutTraceSegments", {}).n("XRayClient", "PutTraceSegmentsCommand").f(void 0, void 0).ser(se_PutTraceSegmentsCommand).de(de_PutTraceSegmentsCommand).build() {
3055
+ };
3056
+ __name(_PutTraceSegmentsCommand, "PutTraceSegmentsCommand");
3057
+ var PutTraceSegmentsCommand = _PutTraceSegmentsCommand;
3058
+
3059
+ // src/commands/TagResourceCommand.ts
3060
+
3061
+
3062
+
3063
+
3064
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3065
+ ...commonParams
3066
+ }).m(function(Command, cs, config, o) {
3067
+ return [
3068
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3069
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3070
+ ];
3071
+ }).s("AWSXRay", "TagResource", {}).n("XRayClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
3072
+ };
3073
+ __name(_TagResourceCommand, "TagResourceCommand");
3074
+ var TagResourceCommand = _TagResourceCommand;
3075
+
3076
+ // src/commands/UntagResourceCommand.ts
3077
+
3078
+
3079
+
3080
+
3081
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3082
+ ...commonParams
3083
+ }).m(function(Command, cs, config, o) {
3084
+ return [
3085
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3086
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3087
+ ];
3088
+ }).s("AWSXRay", "UntagResource", {}).n("XRayClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
3089
+ };
3090
+ __name(_UntagResourceCommand, "UntagResourceCommand");
3091
+ var UntagResourceCommand = _UntagResourceCommand;
3092
+
3093
+ // src/commands/UpdateGroupCommand.ts
3094
+
3095
+
3096
+
3097
+
3098
+ var _UpdateGroupCommand = class _UpdateGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3099
+ ...commonParams
3100
+ }).m(function(Command, cs, config, o) {
3101
+ return [
3102
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3103
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3104
+ ];
3105
+ }).s("AWSXRay", "UpdateGroup", {}).n("XRayClient", "UpdateGroupCommand").f(void 0, void 0).ser(se_UpdateGroupCommand).de(de_UpdateGroupCommand).build() {
3106
+ };
3107
+ __name(_UpdateGroupCommand, "UpdateGroupCommand");
3108
+ var UpdateGroupCommand = _UpdateGroupCommand;
3109
+
3110
+ // src/commands/UpdateSamplingRuleCommand.ts
3111
+
3112
+
3113
+
3114
+
3115
+ var _UpdateSamplingRuleCommand = class _UpdateSamplingRuleCommand extends import_smithy_client.Command.classBuilder().ep({
3116
+ ...commonParams
3117
+ }).m(function(Command, cs, config, o) {
3118
+ return [
3119
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3120
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3121
+ ];
3122
+ }).s("AWSXRay", "UpdateSamplingRule", {}).n("XRayClient", "UpdateSamplingRuleCommand").f(void 0, void 0).ser(se_UpdateSamplingRuleCommand).de(de_UpdateSamplingRuleCommand).build() {
3123
+ };
3124
+ __name(_UpdateSamplingRuleCommand, "UpdateSamplingRuleCommand");
3125
+ var UpdateSamplingRuleCommand = _UpdateSamplingRuleCommand;
3126
+
3127
+ // src/XRay.ts
3128
+ var commands = {
3129
+ BatchGetTracesCommand,
3130
+ CreateGroupCommand,
3131
+ CreateSamplingRuleCommand,
3132
+ DeleteGroupCommand,
3133
+ DeleteResourcePolicyCommand,
3134
+ DeleteSamplingRuleCommand,
3135
+ GetEncryptionConfigCommand,
3136
+ GetGroupCommand,
3137
+ GetGroupsCommand,
3138
+ GetInsightCommand,
3139
+ GetInsightEventsCommand,
3140
+ GetInsightImpactGraphCommand,
3141
+ GetInsightSummariesCommand,
3142
+ GetSamplingRulesCommand,
3143
+ GetSamplingStatisticSummariesCommand,
3144
+ GetSamplingTargetsCommand,
3145
+ GetServiceGraphCommand,
3146
+ GetTimeSeriesServiceStatisticsCommand,
3147
+ GetTraceGraphCommand,
3148
+ GetTraceSummariesCommand,
3149
+ ListResourcePoliciesCommand,
3150
+ ListTagsForResourceCommand,
3151
+ PutEncryptionConfigCommand,
3152
+ PutResourcePolicyCommand,
3153
+ PutTelemetryRecordsCommand,
3154
+ PutTraceSegmentsCommand,
3155
+ TagResourceCommand,
3156
+ UntagResourceCommand,
3157
+ UpdateGroupCommand,
3158
+ UpdateSamplingRuleCommand
3159
+ };
3160
+ var _XRay = class _XRay extends XRayClient {
3161
+ };
3162
+ __name(_XRay, "XRay");
3163
+ var XRay = _XRay;
3164
+ (0, import_smithy_client.createAggregatedClient)(commands, XRay);
3165
+
3166
+ // src/pagination/BatchGetTracesPaginator.ts
3167
+ var import_core3 = require("@smithy/core");
3168
+ var paginateBatchGetTraces = (0, import_core3.createPaginator)(XRayClient, BatchGetTracesCommand, "NextToken", "NextToken", "");
3169
+
3170
+ // src/pagination/GetGroupsPaginator.ts
3171
+ var import_core4 = require("@smithy/core");
3172
+ var paginateGetGroups = (0, import_core4.createPaginator)(XRayClient, GetGroupsCommand, "NextToken", "NextToken", "");
3173
+
3174
+ // src/pagination/GetInsightEventsPaginator.ts
3175
+ var import_core5 = require("@smithy/core");
3176
+ var paginateGetInsightEvents = (0, import_core5.createPaginator)(XRayClient, GetInsightEventsCommand, "NextToken", "NextToken", "MaxResults");
3177
+
3178
+ // src/pagination/GetInsightSummariesPaginator.ts
3179
+ var import_core6 = require("@smithy/core");
3180
+ var paginateGetInsightSummaries = (0, import_core6.createPaginator)(XRayClient, GetInsightSummariesCommand, "NextToken", "NextToken", "MaxResults");
3181
+
3182
+ // src/pagination/GetSamplingRulesPaginator.ts
3183
+ var import_core7 = require("@smithy/core");
3184
+ var paginateGetSamplingRules = (0, import_core7.createPaginator)(XRayClient, GetSamplingRulesCommand, "NextToken", "NextToken", "");
3185
+
3186
+ // src/pagination/GetSamplingStatisticSummariesPaginator.ts
3187
+ var import_core8 = require("@smithy/core");
3188
+ var paginateGetSamplingStatisticSummaries = (0, import_core8.createPaginator)(XRayClient, GetSamplingStatisticSummariesCommand, "NextToken", "NextToken", "");
3189
+
3190
+ // src/pagination/GetServiceGraphPaginator.ts
3191
+ var import_core9 = require("@smithy/core");
3192
+ var paginateGetServiceGraph = (0, import_core9.createPaginator)(XRayClient, GetServiceGraphCommand, "NextToken", "NextToken", "");
3193
+
3194
+ // src/pagination/GetTimeSeriesServiceStatisticsPaginator.ts
3195
+ var import_core10 = require("@smithy/core");
3196
+ var paginateGetTimeSeriesServiceStatistics = (0, import_core10.createPaginator)(XRayClient, GetTimeSeriesServiceStatisticsCommand, "NextToken", "NextToken", "");
3197
+
3198
+ // src/pagination/GetTraceGraphPaginator.ts
3199
+ var import_core11 = require("@smithy/core");
3200
+ var paginateGetTraceGraph = (0, import_core11.createPaginator)(XRayClient, GetTraceGraphCommand, "NextToken", "NextToken", "");
3201
+
3202
+ // src/pagination/GetTraceSummariesPaginator.ts
3203
+ var import_core12 = require("@smithy/core");
3204
+ var paginateGetTraceSummaries = (0, import_core12.createPaginator)(XRayClient, GetTraceSummariesCommand, "NextToken", "NextToken", "");
3205
+
3206
+ // src/pagination/ListResourcePoliciesPaginator.ts
3207
+ var import_core13 = require("@smithy/core");
3208
+ var paginateListResourcePolicies = (0, import_core13.createPaginator)(XRayClient, ListResourcePoliciesCommand, "NextToken", "NextToken", "");
3209
+
3210
+ // src/pagination/ListTagsForResourcePaginator.ts
3211
+ var import_core14 = require("@smithy/core");
3212
+ var paginateListTagsForResource = (0, import_core14.createPaginator)(XRayClient, ListTagsForResourceCommand, "NextToken", "NextToken", "");
3213
+
3214
+ // src/index.ts
3215
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3216
+ // Annotate the CommonJS export names for ESM import in node:
3217
+ 0 && (module.exports = {
3218
+ AnnotationValue,
3219
+ BatchGetTracesCommand,
3220
+ CreateGroupCommand,
3221
+ CreateSamplingRuleCommand,
3222
+ DeleteGroupCommand,
3223
+ DeleteResourcePolicyCommand,
3224
+ DeleteSamplingRuleCommand,
3225
+ EncryptionStatus,
3226
+ EncryptionType,
3227
+ GetEncryptionConfigCommand,
3228
+ GetGroupCommand,
3229
+ GetGroupsCommand,
3230
+ GetInsightCommand,
3231
+ GetInsightEventsCommand,
3232
+ GetInsightImpactGraphCommand,
3233
+ GetInsightSummariesCommand,
3234
+ GetSamplingRulesCommand,
3235
+ GetSamplingStatisticSummariesCommand,
3236
+ GetSamplingTargetsCommand,
3237
+ GetServiceGraphCommand,
3238
+ GetTimeSeriesServiceStatisticsCommand,
3239
+ GetTraceGraphCommand,
3240
+ GetTraceSummariesCommand,
3241
+ InsightCategory,
3242
+ InsightState,
3243
+ InvalidPolicyRevisionIdException,
3244
+ InvalidRequestException,
3245
+ ListResourcePoliciesCommand,
3246
+ ListTagsForResourceCommand,
3247
+ LockoutPreventionException,
3248
+ MalformedPolicyDocumentException,
3249
+ PolicyCountLimitExceededException,
3250
+ PolicySizeLimitExceededException,
3251
+ PutEncryptionConfigCommand,
3252
+ PutResourcePolicyCommand,
3253
+ PutTelemetryRecordsCommand,
3254
+ PutTraceSegmentsCommand,
3255
+ ResourceNotFoundException,
3256
+ RuleLimitExceededException,
3257
+ SamplingStrategyName,
3258
+ TagResourceCommand,
3259
+ ThrottledException,
3260
+ TimeRangeType,
3261
+ TooManyTagsException,
3262
+ UntagResourceCommand,
3263
+ UpdateGroupCommand,
3264
+ UpdateSamplingRuleCommand,
3265
+ XRay,
3266
+ XRayClient,
3267
+ XRayServiceException,
3268
+ __Client,
3269
+ paginateBatchGetTraces,
3270
+ paginateGetGroups,
3271
+ paginateGetInsightEvents,
3272
+ paginateGetInsightSummaries,
3273
+ paginateGetSamplingRules,
3274
+ paginateGetSamplingStatisticSummaries,
3275
+ paginateGetServiceGraph,
3276
+ paginateGetTimeSeriesServiceStatistics,
3277
+ paginateGetTraceGraph,
3278
+ paginateGetTraceSummaries,
3279
+ paginateListResourcePolicies,
3280
+ paginateListTagsForResource
3281
+ });