@aws-sdk/client-xray 3.315.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/XRay.js +34 -420
- package/dist-es/XRay.js +34 -420
- package/dist-types/XRay.d.ts +38 -169
- package/dist-types/ts3.4/XRay.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/XRay.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.XRay = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const BatchGetTracesCommand_1 = require("./commands/BatchGetTracesCommand");
|
|
5
6
|
const CreateGroupCommand_1 = require("./commands/CreateGroupCommand");
|
|
6
7
|
const CreateSamplingRuleCommand_1 = require("./commands/CreateSamplingRuleCommand");
|
|
@@ -32,426 +33,39 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
32
33
|
const UpdateGroupCommand_1 = require("./commands/UpdateGroupCommand");
|
|
33
34
|
const UpdateSamplingRuleCommand_1 = require("./commands/UpdateSamplingRuleCommand");
|
|
34
35
|
const XRayClient_1 = require("./XRayClient");
|
|
36
|
+
const commands = {
|
|
37
|
+
BatchGetTracesCommand: BatchGetTracesCommand_1.BatchGetTracesCommand,
|
|
38
|
+
CreateGroupCommand: CreateGroupCommand_1.CreateGroupCommand,
|
|
39
|
+
CreateSamplingRuleCommand: CreateSamplingRuleCommand_1.CreateSamplingRuleCommand,
|
|
40
|
+
DeleteGroupCommand: DeleteGroupCommand_1.DeleteGroupCommand,
|
|
41
|
+
DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
|
|
42
|
+
DeleteSamplingRuleCommand: DeleteSamplingRuleCommand_1.DeleteSamplingRuleCommand,
|
|
43
|
+
GetEncryptionConfigCommand: GetEncryptionConfigCommand_1.GetEncryptionConfigCommand,
|
|
44
|
+
GetGroupCommand: GetGroupCommand_1.GetGroupCommand,
|
|
45
|
+
GetGroupsCommand: GetGroupsCommand_1.GetGroupsCommand,
|
|
46
|
+
GetInsightCommand: GetInsightCommand_1.GetInsightCommand,
|
|
47
|
+
GetInsightEventsCommand: GetInsightEventsCommand_1.GetInsightEventsCommand,
|
|
48
|
+
GetInsightImpactGraphCommand: GetInsightImpactGraphCommand_1.GetInsightImpactGraphCommand,
|
|
49
|
+
GetInsightSummariesCommand: GetInsightSummariesCommand_1.GetInsightSummariesCommand,
|
|
50
|
+
GetSamplingRulesCommand: GetSamplingRulesCommand_1.GetSamplingRulesCommand,
|
|
51
|
+
GetSamplingStatisticSummariesCommand: GetSamplingStatisticSummariesCommand_1.GetSamplingStatisticSummariesCommand,
|
|
52
|
+
GetSamplingTargetsCommand: GetSamplingTargetsCommand_1.GetSamplingTargetsCommand,
|
|
53
|
+
GetServiceGraphCommand: GetServiceGraphCommand_1.GetServiceGraphCommand,
|
|
54
|
+
GetTimeSeriesServiceStatisticsCommand: GetTimeSeriesServiceStatisticsCommand_1.GetTimeSeriesServiceStatisticsCommand,
|
|
55
|
+
GetTraceGraphCommand: GetTraceGraphCommand_1.GetTraceGraphCommand,
|
|
56
|
+
GetTraceSummariesCommand: GetTraceSummariesCommand_1.GetTraceSummariesCommand,
|
|
57
|
+
ListResourcePoliciesCommand: ListResourcePoliciesCommand_1.ListResourcePoliciesCommand,
|
|
58
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
59
|
+
PutEncryptionConfigCommand: PutEncryptionConfigCommand_1.PutEncryptionConfigCommand,
|
|
60
|
+
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
61
|
+
PutTelemetryRecordsCommand: PutTelemetryRecordsCommand_1.PutTelemetryRecordsCommand,
|
|
62
|
+
PutTraceSegmentsCommand: PutTraceSegmentsCommand_1.PutTraceSegmentsCommand,
|
|
63
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
64
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
65
|
+
UpdateGroupCommand: UpdateGroupCommand_1.UpdateGroupCommand,
|
|
66
|
+
UpdateSamplingRuleCommand: UpdateSamplingRuleCommand_1.UpdateSamplingRuleCommand,
|
|
67
|
+
};
|
|
35
68
|
class XRay extends XRayClient_1.XRayClient {
|
|
36
|
-
batchGetTraces(args, optionsOrCb, cb) {
|
|
37
|
-
const command = new BatchGetTracesCommand_1.BatchGetTracesCommand(args);
|
|
38
|
-
if (typeof optionsOrCb === "function") {
|
|
39
|
-
this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
else if (typeof cb === "function") {
|
|
42
|
-
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
createGroup(args, optionsOrCb, cb) {
|
|
51
|
-
const command = new CreateGroupCommand_1.CreateGroupCommand(args);
|
|
52
|
-
if (typeof optionsOrCb === "function") {
|
|
53
|
-
this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
else if (typeof cb === "function") {
|
|
56
|
-
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
createSamplingRule(args, optionsOrCb, cb) {
|
|
65
|
-
const command = new CreateSamplingRuleCommand_1.CreateSamplingRuleCommand(args);
|
|
66
|
-
if (typeof optionsOrCb === "function") {
|
|
67
|
-
this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
else if (typeof cb === "function") {
|
|
70
|
-
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
return this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
deleteGroup(args, optionsOrCb, cb) {
|
|
79
|
-
const command = new DeleteGroupCommand_1.DeleteGroupCommand(args);
|
|
80
|
-
if (typeof optionsOrCb === "function") {
|
|
81
|
-
this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
else if (typeof cb === "function") {
|
|
84
|
-
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
return this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
93
|
-
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
94
|
-
if (typeof optionsOrCb === "function") {
|
|
95
|
-
this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
else if (typeof cb === "function") {
|
|
98
|
-
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
return this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
deleteSamplingRule(args, optionsOrCb, cb) {
|
|
107
|
-
const command = new DeleteSamplingRuleCommand_1.DeleteSamplingRuleCommand(args);
|
|
108
|
-
if (typeof optionsOrCb === "function") {
|
|
109
|
-
this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
else if (typeof cb === "function") {
|
|
112
|
-
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
114
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
return this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
getEncryptionConfig(args, optionsOrCb, cb) {
|
|
121
|
-
const command = new GetEncryptionConfigCommand_1.GetEncryptionConfigCommand(args);
|
|
122
|
-
if (typeof optionsOrCb === "function") {
|
|
123
|
-
this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
else if (typeof cb === "function") {
|
|
126
|
-
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
128
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
getGroup(args, optionsOrCb, cb) {
|
|
135
|
-
const command = new GetGroupCommand_1.GetGroupCommand(args);
|
|
136
|
-
if (typeof optionsOrCb === "function") {
|
|
137
|
-
this.send(command, optionsOrCb);
|
|
138
|
-
}
|
|
139
|
-
else if (typeof cb === "function") {
|
|
140
|
-
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
return this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
getGroups(args, optionsOrCb, cb) {
|
|
149
|
-
const command = new GetGroupsCommand_1.GetGroupsCommand(args);
|
|
150
|
-
if (typeof optionsOrCb === "function") {
|
|
151
|
-
this.send(command, optionsOrCb);
|
|
152
|
-
}
|
|
153
|
-
else if (typeof cb === "function") {
|
|
154
|
-
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
return this.send(command, optionsOrCb);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
getInsight(args, optionsOrCb, cb) {
|
|
163
|
-
const command = new GetInsightCommand_1.GetInsightCommand(args);
|
|
164
|
-
if (typeof optionsOrCb === "function") {
|
|
165
|
-
this.send(command, optionsOrCb);
|
|
166
|
-
}
|
|
167
|
-
else if (typeof cb === "function") {
|
|
168
|
-
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
return this.send(command, optionsOrCb);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
getInsightEvents(args, optionsOrCb, cb) {
|
|
177
|
-
const command = new GetInsightEventsCommand_1.GetInsightEventsCommand(args);
|
|
178
|
-
if (typeof optionsOrCb === "function") {
|
|
179
|
-
this.send(command, optionsOrCb);
|
|
180
|
-
}
|
|
181
|
-
else if (typeof cb === "function") {
|
|
182
|
-
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
184
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
return this.send(command, optionsOrCb);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
getInsightImpactGraph(args, optionsOrCb, cb) {
|
|
191
|
-
const command = new GetInsightImpactGraphCommand_1.GetInsightImpactGraphCommand(args);
|
|
192
|
-
if (typeof optionsOrCb === "function") {
|
|
193
|
-
this.send(command, optionsOrCb);
|
|
194
|
-
}
|
|
195
|
-
else if (typeof cb === "function") {
|
|
196
|
-
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
return this.send(command, optionsOrCb);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
getInsightSummaries(args, optionsOrCb, cb) {
|
|
205
|
-
const command = new GetInsightSummariesCommand_1.GetInsightSummariesCommand(args);
|
|
206
|
-
if (typeof optionsOrCb === "function") {
|
|
207
|
-
this.send(command, optionsOrCb);
|
|
208
|
-
}
|
|
209
|
-
else if (typeof cb === "function") {
|
|
210
|
-
if (typeof optionsOrCb !== "object")
|
|
211
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
212
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
return this.send(command, optionsOrCb);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
getSamplingRules(args, optionsOrCb, cb) {
|
|
219
|
-
const command = new GetSamplingRulesCommand_1.GetSamplingRulesCommand(args);
|
|
220
|
-
if (typeof optionsOrCb === "function") {
|
|
221
|
-
this.send(command, optionsOrCb);
|
|
222
|
-
}
|
|
223
|
-
else if (typeof cb === "function") {
|
|
224
|
-
if (typeof optionsOrCb !== "object")
|
|
225
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
226
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
return this.send(command, optionsOrCb);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
getSamplingStatisticSummaries(args, optionsOrCb, cb) {
|
|
233
|
-
const command = new GetSamplingStatisticSummariesCommand_1.GetSamplingStatisticSummariesCommand(args);
|
|
234
|
-
if (typeof optionsOrCb === "function") {
|
|
235
|
-
this.send(command, optionsOrCb);
|
|
236
|
-
}
|
|
237
|
-
else if (typeof cb === "function") {
|
|
238
|
-
if (typeof optionsOrCb !== "object")
|
|
239
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
240
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
return this.send(command, optionsOrCb);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
getSamplingTargets(args, optionsOrCb, cb) {
|
|
247
|
-
const command = new GetSamplingTargetsCommand_1.GetSamplingTargetsCommand(args);
|
|
248
|
-
if (typeof optionsOrCb === "function") {
|
|
249
|
-
this.send(command, optionsOrCb);
|
|
250
|
-
}
|
|
251
|
-
else if (typeof cb === "function") {
|
|
252
|
-
if (typeof optionsOrCb !== "object")
|
|
253
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
254
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
return this.send(command, optionsOrCb);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
getServiceGraph(args, optionsOrCb, cb) {
|
|
261
|
-
const command = new GetServiceGraphCommand_1.GetServiceGraphCommand(args);
|
|
262
|
-
if (typeof optionsOrCb === "function") {
|
|
263
|
-
this.send(command, optionsOrCb);
|
|
264
|
-
}
|
|
265
|
-
else if (typeof cb === "function") {
|
|
266
|
-
if (typeof optionsOrCb !== "object")
|
|
267
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
268
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
return this.send(command, optionsOrCb);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
getTimeSeriesServiceStatistics(args, optionsOrCb, cb) {
|
|
275
|
-
const command = new GetTimeSeriesServiceStatisticsCommand_1.GetTimeSeriesServiceStatisticsCommand(args);
|
|
276
|
-
if (typeof optionsOrCb === "function") {
|
|
277
|
-
this.send(command, optionsOrCb);
|
|
278
|
-
}
|
|
279
|
-
else if (typeof cb === "function") {
|
|
280
|
-
if (typeof optionsOrCb !== "object")
|
|
281
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
282
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
283
|
-
}
|
|
284
|
-
else {
|
|
285
|
-
return this.send(command, optionsOrCb);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
getTraceGraph(args, optionsOrCb, cb) {
|
|
289
|
-
const command = new GetTraceGraphCommand_1.GetTraceGraphCommand(args);
|
|
290
|
-
if (typeof optionsOrCb === "function") {
|
|
291
|
-
this.send(command, optionsOrCb);
|
|
292
|
-
}
|
|
293
|
-
else if (typeof cb === "function") {
|
|
294
|
-
if (typeof optionsOrCb !== "object")
|
|
295
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
296
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
return this.send(command, optionsOrCb);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
getTraceSummaries(args, optionsOrCb, cb) {
|
|
303
|
-
const command = new GetTraceSummariesCommand_1.GetTraceSummariesCommand(args);
|
|
304
|
-
if (typeof optionsOrCb === "function") {
|
|
305
|
-
this.send(command, optionsOrCb);
|
|
306
|
-
}
|
|
307
|
-
else if (typeof cb === "function") {
|
|
308
|
-
if (typeof optionsOrCb !== "object")
|
|
309
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
310
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
return this.send(command, optionsOrCb);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
listResourcePolicies(args, optionsOrCb, cb) {
|
|
317
|
-
const command = new ListResourcePoliciesCommand_1.ListResourcePoliciesCommand(args);
|
|
318
|
-
if (typeof optionsOrCb === "function") {
|
|
319
|
-
this.send(command, optionsOrCb);
|
|
320
|
-
}
|
|
321
|
-
else if (typeof cb === "function") {
|
|
322
|
-
if (typeof optionsOrCb !== "object")
|
|
323
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
324
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
return this.send(command, optionsOrCb);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
331
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
332
|
-
if (typeof optionsOrCb === "function") {
|
|
333
|
-
this.send(command, optionsOrCb);
|
|
334
|
-
}
|
|
335
|
-
else if (typeof cb === "function") {
|
|
336
|
-
if (typeof optionsOrCb !== "object")
|
|
337
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
338
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
return this.send(command, optionsOrCb);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
putEncryptionConfig(args, optionsOrCb, cb) {
|
|
345
|
-
const command = new PutEncryptionConfigCommand_1.PutEncryptionConfigCommand(args);
|
|
346
|
-
if (typeof optionsOrCb === "function") {
|
|
347
|
-
this.send(command, optionsOrCb);
|
|
348
|
-
}
|
|
349
|
-
else if (typeof cb === "function") {
|
|
350
|
-
if (typeof optionsOrCb !== "object")
|
|
351
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
352
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
353
|
-
}
|
|
354
|
-
else {
|
|
355
|
-
return this.send(command, optionsOrCb);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
359
|
-
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
360
|
-
if (typeof optionsOrCb === "function") {
|
|
361
|
-
this.send(command, optionsOrCb);
|
|
362
|
-
}
|
|
363
|
-
else if (typeof cb === "function") {
|
|
364
|
-
if (typeof optionsOrCb !== "object")
|
|
365
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
366
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
return this.send(command, optionsOrCb);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
putTelemetryRecords(args, optionsOrCb, cb) {
|
|
373
|
-
const command = new PutTelemetryRecordsCommand_1.PutTelemetryRecordsCommand(args);
|
|
374
|
-
if (typeof optionsOrCb === "function") {
|
|
375
|
-
this.send(command, optionsOrCb);
|
|
376
|
-
}
|
|
377
|
-
else if (typeof cb === "function") {
|
|
378
|
-
if (typeof optionsOrCb !== "object")
|
|
379
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
380
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
return this.send(command, optionsOrCb);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
putTraceSegments(args, optionsOrCb, cb) {
|
|
387
|
-
const command = new PutTraceSegmentsCommand_1.PutTraceSegmentsCommand(args);
|
|
388
|
-
if (typeof optionsOrCb === "function") {
|
|
389
|
-
this.send(command, optionsOrCb);
|
|
390
|
-
}
|
|
391
|
-
else if (typeof cb === "function") {
|
|
392
|
-
if (typeof optionsOrCb !== "object")
|
|
393
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
394
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
395
|
-
}
|
|
396
|
-
else {
|
|
397
|
-
return this.send(command, optionsOrCb);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
tagResource(args, optionsOrCb, cb) {
|
|
401
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
402
|
-
if (typeof optionsOrCb === "function") {
|
|
403
|
-
this.send(command, optionsOrCb);
|
|
404
|
-
}
|
|
405
|
-
else if (typeof cb === "function") {
|
|
406
|
-
if (typeof optionsOrCb !== "object")
|
|
407
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
408
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
return this.send(command, optionsOrCb);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
untagResource(args, optionsOrCb, cb) {
|
|
415
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
416
|
-
if (typeof optionsOrCb === "function") {
|
|
417
|
-
this.send(command, optionsOrCb);
|
|
418
|
-
}
|
|
419
|
-
else if (typeof cb === "function") {
|
|
420
|
-
if (typeof optionsOrCb !== "object")
|
|
421
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
422
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
423
|
-
}
|
|
424
|
-
else {
|
|
425
|
-
return this.send(command, optionsOrCb);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
updateGroup(args, optionsOrCb, cb) {
|
|
429
|
-
const command = new UpdateGroupCommand_1.UpdateGroupCommand(args);
|
|
430
|
-
if (typeof optionsOrCb === "function") {
|
|
431
|
-
this.send(command, optionsOrCb);
|
|
432
|
-
}
|
|
433
|
-
else if (typeof cb === "function") {
|
|
434
|
-
if (typeof optionsOrCb !== "object")
|
|
435
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
436
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
return this.send(command, optionsOrCb);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
updateSamplingRule(args, optionsOrCb, cb) {
|
|
443
|
-
const command = new UpdateSamplingRuleCommand_1.UpdateSamplingRuleCommand(args);
|
|
444
|
-
if (typeof optionsOrCb === "function") {
|
|
445
|
-
this.send(command, optionsOrCb);
|
|
446
|
-
}
|
|
447
|
-
else if (typeof cb === "function") {
|
|
448
|
-
if (typeof optionsOrCb !== "object")
|
|
449
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
450
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
return this.send(command, optionsOrCb);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
69
|
}
|
|
457
70
|
exports.XRay = XRay;
|
|
71
|
+
(0, smithy_client_1.createAggregatedClient)(commands, XRay);
|
package/dist-es/XRay.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { BatchGetTracesCommand, } from "./commands/BatchGetTracesCommand";
|
|
2
3
|
import { CreateGroupCommand } from "./commands/CreateGroupCommand";
|
|
3
4
|
import { CreateSamplingRuleCommand, } from "./commands/CreateSamplingRuleCommand";
|
|
@@ -29,425 +30,38 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
29
30
|
import { UpdateGroupCommand } from "./commands/UpdateGroupCommand";
|
|
30
31
|
import { UpdateSamplingRuleCommand, } from "./commands/UpdateSamplingRuleCommand";
|
|
31
32
|
import { XRayClient } from "./XRayClient";
|
|
33
|
+
const commands = {
|
|
34
|
+
BatchGetTracesCommand,
|
|
35
|
+
CreateGroupCommand,
|
|
36
|
+
CreateSamplingRuleCommand,
|
|
37
|
+
DeleteGroupCommand,
|
|
38
|
+
DeleteResourcePolicyCommand,
|
|
39
|
+
DeleteSamplingRuleCommand,
|
|
40
|
+
GetEncryptionConfigCommand,
|
|
41
|
+
GetGroupCommand,
|
|
42
|
+
GetGroupsCommand,
|
|
43
|
+
GetInsightCommand,
|
|
44
|
+
GetInsightEventsCommand,
|
|
45
|
+
GetInsightImpactGraphCommand,
|
|
46
|
+
GetInsightSummariesCommand,
|
|
47
|
+
GetSamplingRulesCommand,
|
|
48
|
+
GetSamplingStatisticSummariesCommand,
|
|
49
|
+
GetSamplingTargetsCommand,
|
|
50
|
+
GetServiceGraphCommand,
|
|
51
|
+
GetTimeSeriesServiceStatisticsCommand,
|
|
52
|
+
GetTraceGraphCommand,
|
|
53
|
+
GetTraceSummariesCommand,
|
|
54
|
+
ListResourcePoliciesCommand,
|
|
55
|
+
ListTagsForResourceCommand,
|
|
56
|
+
PutEncryptionConfigCommand,
|
|
57
|
+
PutResourcePolicyCommand,
|
|
58
|
+
PutTelemetryRecordsCommand,
|
|
59
|
+
PutTraceSegmentsCommand,
|
|
60
|
+
TagResourceCommand,
|
|
61
|
+
UntagResourceCommand,
|
|
62
|
+
UpdateGroupCommand,
|
|
63
|
+
UpdateSamplingRuleCommand,
|
|
64
|
+
};
|
|
32
65
|
export class XRay extends XRayClient {
|
|
33
|
-
batchGetTraces(args, optionsOrCb, cb) {
|
|
34
|
-
const command = new BatchGetTracesCommand(args);
|
|
35
|
-
if (typeof optionsOrCb === "function") {
|
|
36
|
-
this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
else if (typeof cb === "function") {
|
|
39
|
-
if (typeof optionsOrCb !== "object")
|
|
40
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
41
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
return this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
createGroup(args, optionsOrCb, cb) {
|
|
48
|
-
const command = new CreateGroupCommand(args);
|
|
49
|
-
if (typeof optionsOrCb === "function") {
|
|
50
|
-
this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
else if (typeof cb === "function") {
|
|
53
|
-
if (typeof optionsOrCb !== "object")
|
|
54
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
55
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
createSamplingRule(args, optionsOrCb, cb) {
|
|
62
|
-
const command = new CreateSamplingRuleCommand(args);
|
|
63
|
-
if (typeof optionsOrCb === "function") {
|
|
64
|
-
this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
else if (typeof cb === "function") {
|
|
67
|
-
if (typeof optionsOrCb !== "object")
|
|
68
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
69
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
deleteGroup(args, optionsOrCb, cb) {
|
|
76
|
-
const command = new DeleteGroupCommand(args);
|
|
77
|
-
if (typeof optionsOrCb === "function") {
|
|
78
|
-
this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
else if (typeof cb === "function") {
|
|
81
|
-
if (typeof optionsOrCb !== "object")
|
|
82
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
return this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
90
|
-
const command = new DeleteResourcePolicyCommand(args);
|
|
91
|
-
if (typeof optionsOrCb === "function") {
|
|
92
|
-
this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
else if (typeof cb === "function") {
|
|
95
|
-
if (typeof optionsOrCb !== "object")
|
|
96
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
return this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
deleteSamplingRule(args, optionsOrCb, cb) {
|
|
104
|
-
const command = new DeleteSamplingRuleCommand(args);
|
|
105
|
-
if (typeof optionsOrCb === "function") {
|
|
106
|
-
this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
else if (typeof cb === "function") {
|
|
109
|
-
if (typeof optionsOrCb !== "object")
|
|
110
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
111
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
getEncryptionConfig(args, optionsOrCb, cb) {
|
|
118
|
-
const command = new GetEncryptionConfigCommand(args);
|
|
119
|
-
if (typeof optionsOrCb === "function") {
|
|
120
|
-
this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
else if (typeof cb === "function") {
|
|
123
|
-
if (typeof optionsOrCb !== "object")
|
|
124
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
125
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
return this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
getGroup(args, optionsOrCb, cb) {
|
|
132
|
-
const command = new GetGroupCommand(args);
|
|
133
|
-
if (typeof optionsOrCb === "function") {
|
|
134
|
-
this.send(command, optionsOrCb);
|
|
135
|
-
}
|
|
136
|
-
else if (typeof cb === "function") {
|
|
137
|
-
if (typeof optionsOrCb !== "object")
|
|
138
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
139
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
return this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
getGroups(args, optionsOrCb, cb) {
|
|
146
|
-
const command = new GetGroupsCommand(args);
|
|
147
|
-
if (typeof optionsOrCb === "function") {
|
|
148
|
-
this.send(command, optionsOrCb);
|
|
149
|
-
}
|
|
150
|
-
else if (typeof cb === "function") {
|
|
151
|
-
if (typeof optionsOrCb !== "object")
|
|
152
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
return this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
getInsight(args, optionsOrCb, cb) {
|
|
160
|
-
const command = new GetInsightCommand(args);
|
|
161
|
-
if (typeof optionsOrCb === "function") {
|
|
162
|
-
this.send(command, optionsOrCb);
|
|
163
|
-
}
|
|
164
|
-
else if (typeof cb === "function") {
|
|
165
|
-
if (typeof optionsOrCb !== "object")
|
|
166
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
167
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
return this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
getInsightEvents(args, optionsOrCb, cb) {
|
|
174
|
-
const command = new GetInsightEventsCommand(args);
|
|
175
|
-
if (typeof optionsOrCb === "function") {
|
|
176
|
-
this.send(command, optionsOrCb);
|
|
177
|
-
}
|
|
178
|
-
else if (typeof cb === "function") {
|
|
179
|
-
if (typeof optionsOrCb !== "object")
|
|
180
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
181
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
return this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
getInsightImpactGraph(args, optionsOrCb, cb) {
|
|
188
|
-
const command = new GetInsightImpactGraphCommand(args);
|
|
189
|
-
if (typeof optionsOrCb === "function") {
|
|
190
|
-
this.send(command, optionsOrCb);
|
|
191
|
-
}
|
|
192
|
-
else if (typeof cb === "function") {
|
|
193
|
-
if (typeof optionsOrCb !== "object")
|
|
194
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
195
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
return this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
getInsightSummaries(args, optionsOrCb, cb) {
|
|
202
|
-
const command = new GetInsightSummariesCommand(args);
|
|
203
|
-
if (typeof optionsOrCb === "function") {
|
|
204
|
-
this.send(command, optionsOrCb);
|
|
205
|
-
}
|
|
206
|
-
else if (typeof cb === "function") {
|
|
207
|
-
if (typeof optionsOrCb !== "object")
|
|
208
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
209
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
return this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
getSamplingRules(args, optionsOrCb, cb) {
|
|
216
|
-
const command = new GetSamplingRulesCommand(args);
|
|
217
|
-
if (typeof optionsOrCb === "function") {
|
|
218
|
-
this.send(command, optionsOrCb);
|
|
219
|
-
}
|
|
220
|
-
else if (typeof cb === "function") {
|
|
221
|
-
if (typeof optionsOrCb !== "object")
|
|
222
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
223
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
return this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
getSamplingStatisticSummaries(args, optionsOrCb, cb) {
|
|
230
|
-
const command = new GetSamplingStatisticSummariesCommand(args);
|
|
231
|
-
if (typeof optionsOrCb === "function") {
|
|
232
|
-
this.send(command, optionsOrCb);
|
|
233
|
-
}
|
|
234
|
-
else if (typeof cb === "function") {
|
|
235
|
-
if (typeof optionsOrCb !== "object")
|
|
236
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
237
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
return this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
getSamplingTargets(args, optionsOrCb, cb) {
|
|
244
|
-
const command = new GetSamplingTargetsCommand(args);
|
|
245
|
-
if (typeof optionsOrCb === "function") {
|
|
246
|
-
this.send(command, optionsOrCb);
|
|
247
|
-
}
|
|
248
|
-
else if (typeof cb === "function") {
|
|
249
|
-
if (typeof optionsOrCb !== "object")
|
|
250
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
251
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
return this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
getServiceGraph(args, optionsOrCb, cb) {
|
|
258
|
-
const command = new GetServiceGraphCommand(args);
|
|
259
|
-
if (typeof optionsOrCb === "function") {
|
|
260
|
-
this.send(command, optionsOrCb);
|
|
261
|
-
}
|
|
262
|
-
else if (typeof cb === "function") {
|
|
263
|
-
if (typeof optionsOrCb !== "object")
|
|
264
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
265
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
return this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
getTimeSeriesServiceStatistics(args, optionsOrCb, cb) {
|
|
272
|
-
const command = new GetTimeSeriesServiceStatisticsCommand(args);
|
|
273
|
-
if (typeof optionsOrCb === "function") {
|
|
274
|
-
this.send(command, optionsOrCb);
|
|
275
|
-
}
|
|
276
|
-
else if (typeof cb === "function") {
|
|
277
|
-
if (typeof optionsOrCb !== "object")
|
|
278
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
279
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
return this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
getTraceGraph(args, optionsOrCb, cb) {
|
|
286
|
-
const command = new GetTraceGraphCommand(args);
|
|
287
|
-
if (typeof optionsOrCb === "function") {
|
|
288
|
-
this.send(command, optionsOrCb);
|
|
289
|
-
}
|
|
290
|
-
else if (typeof cb === "function") {
|
|
291
|
-
if (typeof optionsOrCb !== "object")
|
|
292
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
293
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
return this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
getTraceSummaries(args, optionsOrCb, cb) {
|
|
300
|
-
const command = new GetTraceSummariesCommand(args);
|
|
301
|
-
if (typeof optionsOrCb === "function") {
|
|
302
|
-
this.send(command, optionsOrCb);
|
|
303
|
-
}
|
|
304
|
-
else if (typeof cb === "function") {
|
|
305
|
-
if (typeof optionsOrCb !== "object")
|
|
306
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
307
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
return this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
listResourcePolicies(args, optionsOrCb, cb) {
|
|
314
|
-
const command = new ListResourcePoliciesCommand(args);
|
|
315
|
-
if (typeof optionsOrCb === "function") {
|
|
316
|
-
this.send(command, optionsOrCb);
|
|
317
|
-
}
|
|
318
|
-
else if (typeof cb === "function") {
|
|
319
|
-
if (typeof optionsOrCb !== "object")
|
|
320
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
321
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
return this.send(command, optionsOrCb);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
328
|
-
const command = new ListTagsForResourceCommand(args);
|
|
329
|
-
if (typeof optionsOrCb === "function") {
|
|
330
|
-
this.send(command, optionsOrCb);
|
|
331
|
-
}
|
|
332
|
-
else if (typeof cb === "function") {
|
|
333
|
-
if (typeof optionsOrCb !== "object")
|
|
334
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
335
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
return this.send(command, optionsOrCb);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
putEncryptionConfig(args, optionsOrCb, cb) {
|
|
342
|
-
const command = new PutEncryptionConfigCommand(args);
|
|
343
|
-
if (typeof optionsOrCb === "function") {
|
|
344
|
-
this.send(command, optionsOrCb);
|
|
345
|
-
}
|
|
346
|
-
else if (typeof cb === "function") {
|
|
347
|
-
if (typeof optionsOrCb !== "object")
|
|
348
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
349
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
350
|
-
}
|
|
351
|
-
else {
|
|
352
|
-
return this.send(command, optionsOrCb);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
356
|
-
const command = new PutResourcePolicyCommand(args);
|
|
357
|
-
if (typeof optionsOrCb === "function") {
|
|
358
|
-
this.send(command, optionsOrCb);
|
|
359
|
-
}
|
|
360
|
-
else if (typeof cb === "function") {
|
|
361
|
-
if (typeof optionsOrCb !== "object")
|
|
362
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
363
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
return this.send(command, optionsOrCb);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
putTelemetryRecords(args, optionsOrCb, cb) {
|
|
370
|
-
const command = new PutTelemetryRecordsCommand(args);
|
|
371
|
-
if (typeof optionsOrCb === "function") {
|
|
372
|
-
this.send(command, optionsOrCb);
|
|
373
|
-
}
|
|
374
|
-
else if (typeof cb === "function") {
|
|
375
|
-
if (typeof optionsOrCb !== "object")
|
|
376
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
377
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
return this.send(command, optionsOrCb);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
putTraceSegments(args, optionsOrCb, cb) {
|
|
384
|
-
const command = new PutTraceSegmentsCommand(args);
|
|
385
|
-
if (typeof optionsOrCb === "function") {
|
|
386
|
-
this.send(command, optionsOrCb);
|
|
387
|
-
}
|
|
388
|
-
else if (typeof cb === "function") {
|
|
389
|
-
if (typeof optionsOrCb !== "object")
|
|
390
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
391
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
return this.send(command, optionsOrCb);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
tagResource(args, optionsOrCb, cb) {
|
|
398
|
-
const command = new TagResourceCommand(args);
|
|
399
|
-
if (typeof optionsOrCb === "function") {
|
|
400
|
-
this.send(command, optionsOrCb);
|
|
401
|
-
}
|
|
402
|
-
else if (typeof cb === "function") {
|
|
403
|
-
if (typeof optionsOrCb !== "object")
|
|
404
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
405
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
return this.send(command, optionsOrCb);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
untagResource(args, optionsOrCb, cb) {
|
|
412
|
-
const command = new UntagResourceCommand(args);
|
|
413
|
-
if (typeof optionsOrCb === "function") {
|
|
414
|
-
this.send(command, optionsOrCb);
|
|
415
|
-
}
|
|
416
|
-
else if (typeof cb === "function") {
|
|
417
|
-
if (typeof optionsOrCb !== "object")
|
|
418
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
419
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
return this.send(command, optionsOrCb);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
updateGroup(args, optionsOrCb, cb) {
|
|
426
|
-
const command = new UpdateGroupCommand(args);
|
|
427
|
-
if (typeof optionsOrCb === "function") {
|
|
428
|
-
this.send(command, optionsOrCb);
|
|
429
|
-
}
|
|
430
|
-
else if (typeof cb === "function") {
|
|
431
|
-
if (typeof optionsOrCb !== "object")
|
|
432
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
433
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
return this.send(command, optionsOrCb);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
updateSamplingRule(args, optionsOrCb, cb) {
|
|
440
|
-
const command = new UpdateSamplingRuleCommand(args);
|
|
441
|
-
if (typeof optionsOrCb === "function") {
|
|
442
|
-
this.send(command, optionsOrCb);
|
|
443
|
-
}
|
|
444
|
-
else if (typeof cb === "function") {
|
|
445
|
-
if (typeof optionsOrCb !== "object")
|
|
446
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
447
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
return this.send(command, optionsOrCb);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
66
|
}
|
|
67
|
+
createAggregatedClient(commands, XRay);
|
package/dist-types/XRay.d.ts
CHANGED
|
@@ -30,323 +30,192 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
30
30
|
import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
|
|
31
31
|
import { UpdateSamplingRuleCommandInput, UpdateSamplingRuleCommandOutput } from "./commands/UpdateSamplingRuleCommand";
|
|
32
32
|
import { XRayClient } from "./XRayClient";
|
|
33
|
-
|
|
34
|
-
* @public
|
|
35
|
-
* <p>Amazon Web Services X-Ray provides APIs for managing debug traces and retrieving service maps
|
|
36
|
-
* and other data created by processing those traces.</p>
|
|
37
|
-
*/
|
|
38
|
-
export declare class XRay extends XRayClient {
|
|
33
|
+
export interface XRay {
|
|
39
34
|
/**
|
|
40
|
-
* @
|
|
41
|
-
* <p>Retrieves a list of traces specified by ID. Each trace is a collection of segment
|
|
42
|
-
* documents that originates from a single request. Use <code>GetTraceSummaries</code> to get a
|
|
43
|
-
* list of trace IDs.</p>
|
|
35
|
+
* @see {@link BatchGetTracesCommand}
|
|
44
36
|
*/
|
|
45
37
|
batchGetTraces(args: BatchGetTracesCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetTracesCommandOutput>;
|
|
46
38
|
batchGetTraces(args: BatchGetTracesCommandInput, cb: (err: any, data?: BatchGetTracesCommandOutput) => void): void;
|
|
47
39
|
batchGetTraces(args: BatchGetTracesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetTracesCommandOutput) => void): void;
|
|
48
40
|
/**
|
|
49
|
-
* @
|
|
50
|
-
* <p>Creates a group resource with a name and a filter expression. </p>
|
|
41
|
+
* @see {@link CreateGroupCommand}
|
|
51
42
|
*/
|
|
52
43
|
createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>;
|
|
53
44
|
createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
|
|
54
45
|
createGroup(args: CreateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
|
|
55
46
|
/**
|
|
56
|
-
* @
|
|
57
|
-
* <p>Creates a rule to control sampling behavior for instrumented applications. Services
|
|
58
|
-
* retrieve rules with <a href="https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingRules.html">GetSamplingRules</a>, and evaluate each rule in ascending
|
|
59
|
-
* order of <i>priority</i> for each request. If a rule matches, the service
|
|
60
|
-
* records a trace, borrowing it from the reservoir size. After 10 seconds, the service
|
|
61
|
-
* reports back to X-Ray with <a href="https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html">GetSamplingTargets</a> to get updated versions of
|
|
62
|
-
* each in-use rule. The updated rule contains a trace quota that the service can use instead
|
|
63
|
-
* of borrowing from the reservoir.</p>
|
|
47
|
+
* @see {@link CreateSamplingRuleCommand}
|
|
64
48
|
*/
|
|
65
49
|
createSamplingRule(args: CreateSamplingRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateSamplingRuleCommandOutput>;
|
|
66
50
|
createSamplingRule(args: CreateSamplingRuleCommandInput, cb: (err: any, data?: CreateSamplingRuleCommandOutput) => void): void;
|
|
67
51
|
createSamplingRule(args: CreateSamplingRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSamplingRuleCommandOutput) => void): void;
|
|
68
52
|
/**
|
|
69
|
-
* @
|
|
70
|
-
* <p>Deletes a group resource.</p>
|
|
53
|
+
* @see {@link DeleteGroupCommand}
|
|
71
54
|
*/
|
|
72
55
|
deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>;
|
|
73
56
|
deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
|
|
74
57
|
deleteGroup(args: DeleteGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
|
|
75
58
|
/**
|
|
76
|
-
* @
|
|
77
|
-
* <p>Deletes a resource policy from the target Amazon Web Services account.</p>
|
|
59
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
78
60
|
*/
|
|
79
61
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
80
62
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
81
63
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
82
64
|
/**
|
|
83
|
-
* @
|
|
84
|
-
* <p>Deletes a sampling rule.</p>
|
|
65
|
+
* @see {@link DeleteSamplingRuleCommand}
|
|
85
66
|
*/
|
|
86
67
|
deleteSamplingRule(args: DeleteSamplingRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSamplingRuleCommandOutput>;
|
|
87
68
|
deleteSamplingRule(args: DeleteSamplingRuleCommandInput, cb: (err: any, data?: DeleteSamplingRuleCommandOutput) => void): void;
|
|
88
69
|
deleteSamplingRule(args: DeleteSamplingRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSamplingRuleCommandOutput) => void): void;
|
|
89
70
|
/**
|
|
90
|
-
* @
|
|
91
|
-
* <p>Retrieves the current encryption configuration for X-Ray data.</p>
|
|
71
|
+
* @see {@link GetEncryptionConfigCommand}
|
|
92
72
|
*/
|
|
93
73
|
getEncryptionConfig(args: GetEncryptionConfigCommandInput, options?: __HttpHandlerOptions): Promise<GetEncryptionConfigCommandOutput>;
|
|
94
74
|
getEncryptionConfig(args: GetEncryptionConfigCommandInput, cb: (err: any, data?: GetEncryptionConfigCommandOutput) => void): void;
|
|
95
75
|
getEncryptionConfig(args: GetEncryptionConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEncryptionConfigCommandOutput) => void): void;
|
|
96
76
|
/**
|
|
97
|
-
* @
|
|
98
|
-
* <p>Retrieves group resource details.</p>
|
|
77
|
+
* @see {@link GetGroupCommand}
|
|
99
78
|
*/
|
|
100
79
|
getGroup(args: GetGroupCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupCommandOutput>;
|
|
101
80
|
getGroup(args: GetGroupCommandInput, cb: (err: any, data?: GetGroupCommandOutput) => void): void;
|
|
102
81
|
getGroup(args: GetGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGroupCommandOutput) => void): void;
|
|
103
82
|
/**
|
|
104
|
-
* @
|
|
105
|
-
* <p>Retrieves all active group details.</p>
|
|
83
|
+
* @see {@link GetGroupsCommand}
|
|
106
84
|
*/
|
|
107
85
|
getGroups(args: GetGroupsCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupsCommandOutput>;
|
|
108
86
|
getGroups(args: GetGroupsCommandInput, cb: (err: any, data?: GetGroupsCommandOutput) => void): void;
|
|
109
87
|
getGroups(args: GetGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGroupsCommandOutput) => void): void;
|
|
110
88
|
/**
|
|
111
|
-
* @
|
|
112
|
-
* <p>Retrieves the summary information of an insight. This includes impact to clients and
|
|
113
|
-
* root cause services, the top anomalous services, the category, the state of the insight,
|
|
114
|
-
* and the start and end time of the insight.</p>
|
|
89
|
+
* @see {@link GetInsightCommand}
|
|
115
90
|
*/
|
|
116
91
|
getInsight(args: GetInsightCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightCommandOutput>;
|
|
117
92
|
getInsight(args: GetInsightCommandInput, cb: (err: any, data?: GetInsightCommandOutput) => void): void;
|
|
118
93
|
getInsight(args: GetInsightCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInsightCommandOutput) => void): void;
|
|
119
94
|
/**
|
|
120
|
-
* @
|
|
121
|
-
* <p>X-Ray reevaluates insights periodically until they're resolved, and records each intermediate state as an
|
|
122
|
-
* event. You can review an insight's events in the Impact Timeline on the Inspect page in the X-Ray
|
|
123
|
-
* console.</p>
|
|
95
|
+
* @see {@link GetInsightEventsCommand}
|
|
124
96
|
*/
|
|
125
97
|
getInsightEvents(args: GetInsightEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightEventsCommandOutput>;
|
|
126
98
|
getInsightEvents(args: GetInsightEventsCommandInput, cb: (err: any, data?: GetInsightEventsCommandOutput) => void): void;
|
|
127
99
|
getInsightEvents(args: GetInsightEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInsightEventsCommandOutput) => void): void;
|
|
128
100
|
/**
|
|
129
|
-
* @
|
|
130
|
-
* <p>Retrieves a service graph structure filtered by the specified insight. The service graph is limited to only
|
|
131
|
-
* structural information. For a complete service graph, use this API with the GetServiceGraph API.</p>
|
|
101
|
+
* @see {@link GetInsightImpactGraphCommand}
|
|
132
102
|
*/
|
|
133
103
|
getInsightImpactGraph(args: GetInsightImpactGraphCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightImpactGraphCommandOutput>;
|
|
134
104
|
getInsightImpactGraph(args: GetInsightImpactGraphCommandInput, cb: (err: any, data?: GetInsightImpactGraphCommandOutput) => void): void;
|
|
135
105
|
getInsightImpactGraph(args: GetInsightImpactGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInsightImpactGraphCommandOutput) => void): void;
|
|
136
106
|
/**
|
|
137
|
-
* @
|
|
138
|
-
* <p>Retrieves the summaries of all insights in the specified group matching the provided filter values.</p>
|
|
107
|
+
* @see {@link GetInsightSummariesCommand}
|
|
139
108
|
*/
|
|
140
109
|
getInsightSummaries(args: GetInsightSummariesCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightSummariesCommandOutput>;
|
|
141
110
|
getInsightSummaries(args: GetInsightSummariesCommandInput, cb: (err: any, data?: GetInsightSummariesCommandOutput) => void): void;
|
|
142
111
|
getInsightSummaries(args: GetInsightSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInsightSummariesCommandOutput) => void): void;
|
|
143
112
|
/**
|
|
144
|
-
* @
|
|
145
|
-
* <p>Retrieves all sampling rules.</p>
|
|
113
|
+
* @see {@link GetSamplingRulesCommand}
|
|
146
114
|
*/
|
|
147
115
|
getSamplingRules(args: GetSamplingRulesCommandInput, options?: __HttpHandlerOptions): Promise<GetSamplingRulesCommandOutput>;
|
|
148
116
|
getSamplingRules(args: GetSamplingRulesCommandInput, cb: (err: any, data?: GetSamplingRulesCommandOutput) => void): void;
|
|
149
117
|
getSamplingRules(args: GetSamplingRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSamplingRulesCommandOutput) => void): void;
|
|
150
118
|
/**
|
|
151
|
-
* @
|
|
152
|
-
* <p>Retrieves information about recent sampling results for all sampling rules.</p>
|
|
119
|
+
* @see {@link GetSamplingStatisticSummariesCommand}
|
|
153
120
|
*/
|
|
154
121
|
getSamplingStatisticSummaries(args: GetSamplingStatisticSummariesCommandInput, options?: __HttpHandlerOptions): Promise<GetSamplingStatisticSummariesCommandOutput>;
|
|
155
122
|
getSamplingStatisticSummaries(args: GetSamplingStatisticSummariesCommandInput, cb: (err: any, data?: GetSamplingStatisticSummariesCommandOutput) => void): void;
|
|
156
123
|
getSamplingStatisticSummaries(args: GetSamplingStatisticSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSamplingStatisticSummariesCommandOutput) => void): void;
|
|
157
124
|
/**
|
|
158
|
-
* @
|
|
159
|
-
* <p>Requests a sampling quota for rules that the service is using to sample requests.
|
|
160
|
-
* </p>
|
|
125
|
+
* @see {@link GetSamplingTargetsCommand}
|
|
161
126
|
*/
|
|
162
127
|
getSamplingTargets(args: GetSamplingTargetsCommandInput, options?: __HttpHandlerOptions): Promise<GetSamplingTargetsCommandOutput>;
|
|
163
128
|
getSamplingTargets(args: GetSamplingTargetsCommandInput, cb: (err: any, data?: GetSamplingTargetsCommandOutput) => void): void;
|
|
164
129
|
getSamplingTargets(args: GetSamplingTargetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSamplingTargetsCommandOutput) => void): void;
|
|
165
130
|
/**
|
|
166
|
-
* @
|
|
167
|
-
* <p>Retrieves a document that describes services that process incoming requests, and
|
|
168
|
-
* downstream services that they call as a result. Root services process incoming requests and
|
|
169
|
-
* make calls to downstream services. Root services are applications that use the <a href="https://docs.aws.amazon.com/xray/index.html">Amazon Web Services X-Ray SDK</a>.
|
|
170
|
-
* Downstream services can be other applications, Amazon Web Services resources, HTTP web APIs, or SQL
|
|
171
|
-
* databases.</p>
|
|
131
|
+
* @see {@link GetServiceGraphCommand}
|
|
172
132
|
*/
|
|
173
133
|
getServiceGraph(args: GetServiceGraphCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceGraphCommandOutput>;
|
|
174
134
|
getServiceGraph(args: GetServiceGraphCommandInput, cb: (err: any, data?: GetServiceGraphCommandOutput) => void): void;
|
|
175
135
|
getServiceGraph(args: GetServiceGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceGraphCommandOutput) => void): void;
|
|
176
136
|
/**
|
|
177
|
-
* @
|
|
178
|
-
* <p>Get an aggregation of service statistics defined by a specific time
|
|
179
|
-
* range.</p>
|
|
137
|
+
* @see {@link GetTimeSeriesServiceStatisticsCommand}
|
|
180
138
|
*/
|
|
181
139
|
getTimeSeriesServiceStatistics(args: GetTimeSeriesServiceStatisticsCommandInput, options?: __HttpHandlerOptions): Promise<GetTimeSeriesServiceStatisticsCommandOutput>;
|
|
182
140
|
getTimeSeriesServiceStatistics(args: GetTimeSeriesServiceStatisticsCommandInput, cb: (err: any, data?: GetTimeSeriesServiceStatisticsCommandOutput) => void): void;
|
|
183
141
|
getTimeSeriesServiceStatistics(args: GetTimeSeriesServiceStatisticsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTimeSeriesServiceStatisticsCommandOutput) => void): void;
|
|
184
142
|
/**
|
|
185
|
-
* @
|
|
186
|
-
* <p>Retrieves a service graph for one or more specific trace IDs.</p>
|
|
143
|
+
* @see {@link GetTraceGraphCommand}
|
|
187
144
|
*/
|
|
188
145
|
getTraceGraph(args: GetTraceGraphCommandInput, options?: __HttpHandlerOptions): Promise<GetTraceGraphCommandOutput>;
|
|
189
146
|
getTraceGraph(args: GetTraceGraphCommandInput, cb: (err: any, data?: GetTraceGraphCommandOutput) => void): void;
|
|
190
147
|
getTraceGraph(args: GetTraceGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTraceGraphCommandOutput) => void): void;
|
|
191
148
|
/**
|
|
192
|
-
* @
|
|
193
|
-
* <p>Retrieves IDs and annotations for traces available for a specified time frame using an
|
|
194
|
-
* optional filter. To get the full traces, pass the trace IDs to
|
|
195
|
-
* <code>BatchGetTraces</code>.</p>
|
|
196
|
-
* <p>A filter expression can target traced requests that hit specific service nodes or
|
|
197
|
-
* edges, have errors, or come from a known user. For example, the following filter expression
|
|
198
|
-
* targets traces that pass through <code>api.example.com</code>:</p>
|
|
199
|
-
* <p>
|
|
200
|
-
* <code>service("api.example.com")</code>
|
|
201
|
-
* </p>
|
|
202
|
-
* <p>This filter expression finds traces that have an annotation named <code>account</code>
|
|
203
|
-
* with the value <code>12345</code>:</p>
|
|
204
|
-
* <p>
|
|
205
|
-
* <code>annotation.account = "12345"</code>
|
|
206
|
-
* </p>
|
|
207
|
-
* <p>For a full list of indexed fields and keywords that you can use in filter expressions,
|
|
208
|
-
* see <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html">Using Filter
|
|
209
|
-
* Expressions</a> in the <i>Amazon Web Services X-Ray Developer Guide</i>.</p>
|
|
149
|
+
* @see {@link GetTraceSummariesCommand}
|
|
210
150
|
*/
|
|
211
151
|
getTraceSummaries(args: GetTraceSummariesCommandInput, options?: __HttpHandlerOptions): Promise<GetTraceSummariesCommandOutput>;
|
|
212
152
|
getTraceSummaries(args: GetTraceSummariesCommandInput, cb: (err: any, data?: GetTraceSummariesCommandOutput) => void): void;
|
|
213
153
|
getTraceSummaries(args: GetTraceSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTraceSummariesCommandOutput) => void): void;
|
|
214
154
|
/**
|
|
215
|
-
* @
|
|
216
|
-
* <p>Returns the list of resource policies in the target Amazon Web Services account.</p>
|
|
155
|
+
* @see {@link ListResourcePoliciesCommand}
|
|
217
156
|
*/
|
|
218
157
|
listResourcePolicies(args: ListResourcePoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListResourcePoliciesCommandOutput>;
|
|
219
158
|
listResourcePolicies(args: ListResourcePoliciesCommandInput, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
|
|
220
159
|
listResourcePolicies(args: ListResourcePoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
|
|
221
160
|
/**
|
|
222
|
-
* @
|
|
223
|
-
* <p>Returns a list of tags that are applied to the specified Amazon Web Services X-Ray group or sampling rule.</p>
|
|
161
|
+
* @see {@link ListTagsForResourceCommand}
|
|
224
162
|
*/
|
|
225
163
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
226
164
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
227
165
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
228
166
|
/**
|
|
229
|
-
* @
|
|
230
|
-
* <p>Updates the encryption configuration for X-Ray data.</p>
|
|
167
|
+
* @see {@link PutEncryptionConfigCommand}
|
|
231
168
|
*/
|
|
232
169
|
putEncryptionConfig(args: PutEncryptionConfigCommandInput, options?: __HttpHandlerOptions): Promise<PutEncryptionConfigCommandOutput>;
|
|
233
170
|
putEncryptionConfig(args: PutEncryptionConfigCommandInput, cb: (err: any, data?: PutEncryptionConfigCommandOutput) => void): void;
|
|
234
171
|
putEncryptionConfig(args: PutEncryptionConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutEncryptionConfigCommandOutput) => void): void;
|
|
235
172
|
/**
|
|
236
|
-
* @
|
|
237
|
-
* <p>
|
|
238
|
-
* Sets the resource policy to grant one or more Amazon Web Services services and accounts permissions to
|
|
239
|
-
* access X-Ray. Each resource policy will be associated with a specific Amazon Web Services account.
|
|
240
|
-
* Each Amazon Web Services account can have a maximum of 5 resource policies, and each policy name must be
|
|
241
|
-
* unique within that account. The maximum size of each resource policy is 5KB.
|
|
242
|
-
* </p>
|
|
173
|
+
* @see {@link PutResourcePolicyCommand}
|
|
243
174
|
*/
|
|
244
175
|
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
245
176
|
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
246
177
|
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
247
178
|
/**
|
|
248
|
-
* @
|
|
249
|
-
* <p>Used by the Amazon Web Services X-Ray daemon to upload telemetry.</p>
|
|
179
|
+
* @see {@link PutTelemetryRecordsCommand}
|
|
250
180
|
*/
|
|
251
181
|
putTelemetryRecords(args: PutTelemetryRecordsCommandInput, options?: __HttpHandlerOptions): Promise<PutTelemetryRecordsCommandOutput>;
|
|
252
182
|
putTelemetryRecords(args: PutTelemetryRecordsCommandInput, cb: (err: any, data?: PutTelemetryRecordsCommandOutput) => void): void;
|
|
253
183
|
putTelemetryRecords(args: PutTelemetryRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutTelemetryRecordsCommandOutput) => void): void;
|
|
254
184
|
/**
|
|
255
|
-
* @
|
|
256
|
-
* <p>Uploads segment documents to Amazon Web Services X-Ray. The <a href="https://docs.aws.amazon.com/xray/index.html">X-Ray SDK</a> generates segment documents and sends them to the X-Ray daemon, which uploads them in
|
|
257
|
-
* batches. A segment document can be a completed segment, an in-progress segment, or an array of
|
|
258
|
-
* subsegments.</p>
|
|
259
|
-
* <p>Segments must include the following fields. For the full segment document schema, see
|
|
260
|
-
* <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html">Amazon Web Services X-Ray
|
|
261
|
-
* Segment Documents</a> in the <i>Amazon Web Services X-Ray Developer Guide</i>.</p>
|
|
262
|
-
* <p class="title">
|
|
263
|
-
* <b>Required segment document fields</b>
|
|
264
|
-
* </p>
|
|
265
|
-
* <ul>
|
|
266
|
-
* <li>
|
|
267
|
-
* <p>
|
|
268
|
-
* <code>name</code> - The name of the service that handled the request.</p>
|
|
269
|
-
* </li>
|
|
270
|
-
* <li>
|
|
271
|
-
* <p>
|
|
272
|
-
* <code>id</code> - A 64-bit identifier for the segment, unique among segments in the same trace, in 16
|
|
273
|
-
* hexadecimal digits.</p>
|
|
274
|
-
* </li>
|
|
275
|
-
* <li>
|
|
276
|
-
* <p>
|
|
277
|
-
* <code>trace_id</code> - A unique identifier that connects all segments and subsegments originating from
|
|
278
|
-
* a single client request.</p>
|
|
279
|
-
* </li>
|
|
280
|
-
* <li>
|
|
281
|
-
* <p>
|
|
282
|
-
* <code>start_time</code> - Time the segment or subsegment was created, in floating point seconds in
|
|
283
|
-
* epoch time, accurate to milliseconds. For example, <code>1480615200.010</code> or
|
|
284
|
-
* <code>1.480615200010E9</code>.</p>
|
|
285
|
-
* </li>
|
|
286
|
-
* <li>
|
|
287
|
-
* <p>
|
|
288
|
-
* <code>end_time</code> - Time the segment or subsegment was closed. For example,
|
|
289
|
-
* <code>1480615200.090</code> or <code>1.480615200090E9</code>. Specify either an <code>end_time</code> or
|
|
290
|
-
* <code>in_progress</code>.</p>
|
|
291
|
-
* </li>
|
|
292
|
-
* <li>
|
|
293
|
-
* <p>
|
|
294
|
-
* <code>in_progress</code> - Set to <code>true</code> instead of specifying an <code>end_time</code> to
|
|
295
|
-
* record that a segment has been started, but is not complete. Send an in-progress segment when your application
|
|
296
|
-
* receives a request that will take a long time to serve, to trace that the request was received. When the
|
|
297
|
-
* response is sent, send the complete segment to overwrite the in-progress segment.</p>
|
|
298
|
-
* </li>
|
|
299
|
-
* </ul>
|
|
300
|
-
* <p>A <code>trace_id</code> consists of three numbers separated by hyphens. For example,
|
|
301
|
-
* 1-58406520-a006649127e371903a2de979. This includes:</p>
|
|
302
|
-
* <p class="title">
|
|
303
|
-
* <b>Trace ID Format</b>
|
|
304
|
-
* </p>
|
|
305
|
-
* <ul>
|
|
306
|
-
* <li>
|
|
307
|
-
* <p>The version number, for instance, <code>1</code>.</p>
|
|
308
|
-
* </li>
|
|
309
|
-
* <li>
|
|
310
|
-
* <p>The time of the original request, in Unix epoch time, in 8 hexadecimal digits. For
|
|
311
|
-
* example, 10:00AM December 2nd, 2016 PST in epoch time is <code>1480615200</code> seconds,
|
|
312
|
-
* or <code>58406520</code> in hexadecimal.</p>
|
|
313
|
-
* </li>
|
|
314
|
-
* <li>
|
|
315
|
-
* <p>A 96-bit identifier for the trace, globally unique, in 24 hexadecimal
|
|
316
|
-
* digits.</p>
|
|
317
|
-
* </li>
|
|
318
|
-
* </ul>
|
|
185
|
+
* @see {@link PutTraceSegmentsCommand}
|
|
319
186
|
*/
|
|
320
187
|
putTraceSegments(args: PutTraceSegmentsCommandInput, options?: __HttpHandlerOptions): Promise<PutTraceSegmentsCommandOutput>;
|
|
321
188
|
putTraceSegments(args: PutTraceSegmentsCommandInput, cb: (err: any, data?: PutTraceSegmentsCommandOutput) => void): void;
|
|
322
189
|
putTraceSegments(args: PutTraceSegmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutTraceSegmentsCommandOutput) => void): void;
|
|
323
190
|
/**
|
|
324
|
-
* @
|
|
325
|
-
* <p>Applies tags to an existing Amazon Web Services X-Ray group or sampling rule.</p>
|
|
191
|
+
* @see {@link TagResourceCommand}
|
|
326
192
|
*/
|
|
327
193
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
328
194
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
329
195
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
330
196
|
/**
|
|
331
|
-
* @
|
|
332
|
-
* <p>Removes tags from an Amazon Web Services X-Ray group or sampling rule. You cannot edit or delete system
|
|
333
|
-
* tags (those with an <code>aws:</code> prefix).</p>
|
|
197
|
+
* @see {@link UntagResourceCommand}
|
|
334
198
|
*/
|
|
335
199
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
336
200
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
337
201
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
338
202
|
/**
|
|
339
|
-
* @
|
|
340
|
-
* <p>Updates a group resource.</p>
|
|
203
|
+
* @see {@link UpdateGroupCommand}
|
|
341
204
|
*/
|
|
342
205
|
updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
|
|
343
206
|
updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
|
|
344
207
|
updateGroup(args: UpdateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
|
|
345
208
|
/**
|
|
346
|
-
* @
|
|
347
|
-
* <p>Modifies a sampling rule's configuration.</p>
|
|
209
|
+
* @see {@link UpdateSamplingRuleCommand}
|
|
348
210
|
*/
|
|
349
211
|
updateSamplingRule(args: UpdateSamplingRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSamplingRuleCommandOutput>;
|
|
350
212
|
updateSamplingRule(args: UpdateSamplingRuleCommandInput, cb: (err: any, data?: UpdateSamplingRuleCommandOutput) => void): void;
|
|
351
213
|
updateSamplingRule(args: UpdateSamplingRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSamplingRuleCommandOutput) => void): void;
|
|
352
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* @public
|
|
217
|
+
* <p>Amazon Web Services X-Ray provides APIs for managing debug traces and retrieving service maps
|
|
218
|
+
* and other data created by processing those traces.</p>
|
|
219
|
+
*/
|
|
220
|
+
export declare class XRay extends XRayClient implements XRay {
|
|
221
|
+
}
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
UpdateSamplingRuleCommandOutput,
|
|
121
121
|
} from "./commands/UpdateSamplingRuleCommand";
|
|
122
122
|
import { XRayClient } from "./XRayClient";
|
|
123
|
-
export
|
|
123
|
+
export interface XRay {
|
|
124
124
|
batchGetTraces(
|
|
125
125
|
args: BatchGetTracesCommandInput,
|
|
126
126
|
options?: __HttpHandlerOptions
|
|
@@ -512,3 +512,4 @@ export declare class XRay extends XRayClient {
|
|
|
512
512
|
cb: (err: any, data?: UpdateSamplingRuleCommandOutput) => void
|
|
513
513
|
): void;
|
|
514
514
|
}
|
|
515
|
+
export declare class XRay extends XRayClient implements XRay {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-xray",
|
|
3
3
|
"description": "AWS SDK for JavaScript Xray Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|