@aws-sdk/client-xray 3.35.0 → 3.38.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 (295) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/XRay.js +0 -5
  3. package/dist-cjs/XRayClient.js +0 -10
  4. package/dist-cjs/commands/BatchGetTracesCommand.js +0 -27
  5. package/dist-cjs/commands/CreateGroupCommand.js +0 -25
  6. package/dist-cjs/commands/CreateSamplingRuleCommand.js +0 -31
  7. package/dist-cjs/commands/DeleteGroupCommand.js +0 -25
  8. package/dist-cjs/commands/DeleteSamplingRuleCommand.js +0 -25
  9. package/dist-cjs/commands/GetEncryptionConfigCommand.js +0 -25
  10. package/dist-cjs/commands/GetGroupCommand.js +0 -25
  11. package/dist-cjs/commands/GetGroupsCommand.js +0 -25
  12. package/dist-cjs/commands/GetInsightCommand.js +0 -27
  13. package/dist-cjs/commands/GetInsightEventsCommand.js +0 -27
  14. package/dist-cjs/commands/GetInsightImpactGraphCommand.js +0 -26
  15. package/dist-cjs/commands/GetInsightSummariesCommand.js +0 -25
  16. package/dist-cjs/commands/GetSamplingRulesCommand.js +0 -25
  17. package/dist-cjs/commands/GetSamplingStatisticSummariesCommand.js +0 -25
  18. package/dist-cjs/commands/GetSamplingTargetsCommand.js +0 -26
  19. package/dist-cjs/commands/GetServiceGraphCommand.js +0 -29
  20. package/dist-cjs/commands/GetTimeSeriesServiceStatisticsCommand.js +0 -26
  21. package/dist-cjs/commands/GetTraceGraphCommand.js +0 -25
  22. package/dist-cjs/commands/GetTraceSummariesCommand.js +0 -41
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  24. package/dist-cjs/commands/PutEncryptionConfigCommand.js +0 -25
  25. package/dist-cjs/commands/PutTelemetryRecordsCommand.js +0 -25
  26. package/dist-cjs/commands/PutTraceSegmentsCommand.js +0 -87
  27. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  28. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  29. package/dist-cjs/commands/UpdateGroupCommand.js +0 -25
  30. package/dist-cjs/commands/UpdateSamplingRuleCommand.js +0 -25
  31. package/dist-cjs/commands/index.js +30 -0
  32. package/dist-cjs/endpoints.js +1 -2
  33. package/dist-cjs/index.js +4 -41
  34. package/dist-cjs/models/index.js +0 -1
  35. package/dist-cjs/models/models_0.js +0 -340
  36. package/dist-cjs/pagination/BatchGetTracesPaginator.js +0 -11
  37. package/dist-cjs/pagination/GetGroupsPaginator.js +0 -11
  38. package/dist-cjs/pagination/GetInsightEventsPaginator.js +0 -11
  39. package/dist-cjs/pagination/GetInsightSummariesPaginator.js +0 -11
  40. package/dist-cjs/pagination/GetSamplingRulesPaginator.js +0 -11
  41. package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js +0 -11
  42. package/dist-cjs/pagination/GetServiceGraphPaginator.js +0 -11
  43. package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js +0 -11
  44. package/dist-cjs/pagination/GetTraceGraphPaginator.js +0 -11
  45. package/dist-cjs/pagination/GetTraceSummariesPaginator.js +0 -11
  46. package/dist-cjs/pagination/Interfaces.js +0 -1
  47. package/dist-cjs/pagination/index.js +14 -0
  48. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  49. package/dist-cjs/runtimeConfig.browser.js +1 -6
  50. package/dist-cjs/runtimeConfig.js +2 -7
  51. package/dist-cjs/runtimeConfig.native.js +0 -4
  52. package/dist-cjs/runtimeConfig.shared.js +0 -4
  53. package/dist-es/XRay.js +0 -1
  54. package/dist-es/XRayClient.js +0 -1
  55. package/dist-es/commands/BatchGetTracesCommand.js +0 -1
  56. package/dist-es/commands/CreateGroupCommand.js +0 -1
  57. package/dist-es/commands/CreateSamplingRuleCommand.js +0 -1
  58. package/dist-es/commands/DeleteGroupCommand.js +0 -1
  59. package/dist-es/commands/DeleteSamplingRuleCommand.js +0 -1
  60. package/dist-es/commands/GetEncryptionConfigCommand.js +0 -1
  61. package/dist-es/commands/GetGroupCommand.js +0 -1
  62. package/dist-es/commands/GetGroupsCommand.js +0 -1
  63. package/dist-es/commands/GetInsightCommand.js +0 -1
  64. package/dist-es/commands/GetInsightEventsCommand.js +0 -1
  65. package/dist-es/commands/GetInsightImpactGraphCommand.js +0 -1
  66. package/dist-es/commands/GetInsightSummariesCommand.js +0 -1
  67. package/dist-es/commands/GetSamplingRulesCommand.js +0 -1
  68. package/dist-es/commands/GetSamplingStatisticSummariesCommand.js +0 -1
  69. package/dist-es/commands/GetSamplingTargetsCommand.js +0 -1
  70. package/dist-es/commands/GetServiceGraphCommand.js +0 -1
  71. package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js +0 -1
  72. package/dist-es/commands/GetTraceGraphCommand.js +0 -1
  73. package/dist-es/commands/GetTraceSummariesCommand.js +0 -1
  74. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  75. package/dist-es/commands/PutEncryptionConfigCommand.js +0 -1
  76. package/dist-es/commands/PutTelemetryRecordsCommand.js +0 -1
  77. package/dist-es/commands/PutTraceSegmentsCommand.js +0 -1
  78. package/dist-es/commands/TagResourceCommand.js +0 -1
  79. package/dist-es/commands/UntagResourceCommand.js +0 -1
  80. package/dist-es/commands/UpdateGroupCommand.js +0 -1
  81. package/dist-es/commands/UpdateSamplingRuleCommand.js +0 -1
  82. package/dist-es/commands/index.js +27 -0
  83. package/dist-es/endpoints.js +1 -2
  84. package/dist-es/index.js +4 -41
  85. package/dist-es/models/index.js +0 -1
  86. package/dist-es/models/models_0.js +0 -1
  87. package/dist-es/pagination/BatchGetTracesPaginator.js +0 -1
  88. package/dist-es/pagination/GetGroupsPaginator.js +0 -1
  89. package/dist-es/pagination/GetInsightEventsPaginator.js +0 -1
  90. package/dist-es/pagination/GetInsightSummariesPaginator.js +0 -1
  91. package/dist-es/pagination/GetSamplingRulesPaginator.js +0 -1
  92. package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js +0 -1
  93. package/dist-es/pagination/GetServiceGraphPaginator.js +0 -1
  94. package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js +0 -1
  95. package/dist-es/pagination/GetTraceGraphPaginator.js +0 -1
  96. package/dist-es/pagination/GetTraceSummariesPaginator.js +0 -1
  97. package/dist-es/pagination/Interfaces.js +0 -1
  98. package/dist-es/pagination/index.js +11 -0
  99. package/dist-es/protocols/Aws_restJson1.js +0 -1
  100. package/dist-es/runtimeConfig.browser.js +1 -2
  101. package/dist-es/runtimeConfig.js +2 -3
  102. package/dist-es/runtimeConfig.native.js +0 -1
  103. package/dist-es/runtimeConfig.shared.js +0 -1
  104. package/dist-types/commands/index.d.ts +27 -0
  105. package/dist-types/index.d.ts +4 -40
  106. package/dist-types/pagination/index.d.ts +11 -0
  107. package/dist-types/ts3.4/XRay.d.ts +28 -183
  108. package/dist-types/ts3.4/XRayClient.d.ts +24 -90
  109. package/dist-types/ts3.4/commands/BatchGetTracesCommand.d.ts +2 -22
  110. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/CreateSamplingRuleCommand.d.ts +2 -26
  112. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +2 -20
  113. package/dist-types/ts3.4/commands/DeleteSamplingRuleCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/GetEncryptionConfigCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +2 -20
  116. package/dist-types/ts3.4/commands/GetGroupsCommand.d.ts +2 -20
  117. package/dist-types/ts3.4/commands/GetInsightCommand.d.ts +2 -22
  118. package/dist-types/ts3.4/commands/GetInsightEventsCommand.d.ts +2 -22
  119. package/dist-types/ts3.4/commands/GetInsightImpactGraphCommand.d.ts +2 -21
  120. package/dist-types/ts3.4/commands/GetInsightSummariesCommand.d.ts +2 -20
  121. package/dist-types/ts3.4/commands/GetSamplingRulesCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/GetSamplingStatisticSummariesCommand.d.ts +2 -20
  123. package/dist-types/ts3.4/commands/GetSamplingTargetsCommand.d.ts +2 -21
  124. package/dist-types/ts3.4/commands/GetServiceGraphCommand.d.ts +2 -24
  125. package/dist-types/ts3.4/commands/GetTimeSeriesServiceStatisticsCommand.d.ts +2 -21
  126. package/dist-types/ts3.4/commands/GetTraceGraphCommand.d.ts +2 -20
  127. package/dist-types/ts3.4/commands/GetTraceSummariesCommand.d.ts +2 -36
  128. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  129. package/dist-types/ts3.4/commands/PutEncryptionConfigCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/PutTelemetryRecordsCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/PutTraceSegmentsCommand.d.ts +2 -82
  132. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  133. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
  134. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +2 -20
  135. package/dist-types/ts3.4/commands/UpdateSamplingRuleCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  137. package/dist-types/ts3.4/index.d.ts +4 -40
  138. package/dist-types/ts3.4/models/models_0.d.ts +540 -1902
  139. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  140. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  141. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  142. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  143. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  144. package/package.json +33 -30
  145. package/dist-cjs/XRay.js.map +0 -1
  146. package/dist-cjs/XRayClient.js.map +0 -1
  147. package/dist-cjs/commands/BatchGetTracesCommand.js.map +0 -1
  148. package/dist-cjs/commands/CreateGroupCommand.js.map +0 -1
  149. package/dist-cjs/commands/CreateSamplingRuleCommand.js.map +0 -1
  150. package/dist-cjs/commands/DeleteGroupCommand.js.map +0 -1
  151. package/dist-cjs/commands/DeleteSamplingRuleCommand.js.map +0 -1
  152. package/dist-cjs/commands/GetEncryptionConfigCommand.js.map +0 -1
  153. package/dist-cjs/commands/GetGroupCommand.js.map +0 -1
  154. package/dist-cjs/commands/GetGroupsCommand.js.map +0 -1
  155. package/dist-cjs/commands/GetInsightCommand.js.map +0 -1
  156. package/dist-cjs/commands/GetInsightEventsCommand.js.map +0 -1
  157. package/dist-cjs/commands/GetInsightImpactGraphCommand.js.map +0 -1
  158. package/dist-cjs/commands/GetInsightSummariesCommand.js.map +0 -1
  159. package/dist-cjs/commands/GetSamplingRulesCommand.js.map +0 -1
  160. package/dist-cjs/commands/GetSamplingStatisticSummariesCommand.js.map +0 -1
  161. package/dist-cjs/commands/GetSamplingTargetsCommand.js.map +0 -1
  162. package/dist-cjs/commands/GetServiceGraphCommand.js.map +0 -1
  163. package/dist-cjs/commands/GetTimeSeriesServiceStatisticsCommand.js.map +0 -1
  164. package/dist-cjs/commands/GetTraceGraphCommand.js.map +0 -1
  165. package/dist-cjs/commands/GetTraceSummariesCommand.js.map +0 -1
  166. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  167. package/dist-cjs/commands/PutEncryptionConfigCommand.js.map +0 -1
  168. package/dist-cjs/commands/PutTelemetryRecordsCommand.js.map +0 -1
  169. package/dist-cjs/commands/PutTraceSegmentsCommand.js.map +0 -1
  170. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  171. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  172. package/dist-cjs/commands/UpdateGroupCommand.js.map +0 -1
  173. package/dist-cjs/commands/UpdateSamplingRuleCommand.js.map +0 -1
  174. package/dist-cjs/endpoints.js.map +0 -1
  175. package/dist-cjs/index.js.map +0 -1
  176. package/dist-cjs/models/index.js.map +0 -1
  177. package/dist-cjs/models/models_0.js.map +0 -1
  178. package/dist-cjs/pagination/BatchGetTracesPaginator.js.map +0 -1
  179. package/dist-cjs/pagination/GetGroupsPaginator.js.map +0 -1
  180. package/dist-cjs/pagination/GetInsightEventsPaginator.js.map +0 -1
  181. package/dist-cjs/pagination/GetInsightSummariesPaginator.js.map +0 -1
  182. package/dist-cjs/pagination/GetSamplingRulesPaginator.js.map +0 -1
  183. package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js.map +0 -1
  184. package/dist-cjs/pagination/GetServiceGraphPaginator.js.map +0 -1
  185. package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js.map +0 -1
  186. package/dist-cjs/pagination/GetTraceGraphPaginator.js.map +0 -1
  187. package/dist-cjs/pagination/GetTraceSummariesPaginator.js.map +0 -1
  188. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  189. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  190. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  191. package/dist-cjs/runtimeConfig.js.map +0 -1
  192. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  193. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  194. package/dist-es/XRay.js.map +0 -1
  195. package/dist-es/XRayClient.js.map +0 -1
  196. package/dist-es/commands/BatchGetTracesCommand.js.map +0 -1
  197. package/dist-es/commands/CreateGroupCommand.js.map +0 -1
  198. package/dist-es/commands/CreateSamplingRuleCommand.js.map +0 -1
  199. package/dist-es/commands/DeleteGroupCommand.js.map +0 -1
  200. package/dist-es/commands/DeleteSamplingRuleCommand.js.map +0 -1
  201. package/dist-es/commands/GetEncryptionConfigCommand.js.map +0 -1
  202. package/dist-es/commands/GetGroupCommand.js.map +0 -1
  203. package/dist-es/commands/GetGroupsCommand.js.map +0 -1
  204. package/dist-es/commands/GetInsightCommand.js.map +0 -1
  205. package/dist-es/commands/GetInsightEventsCommand.js.map +0 -1
  206. package/dist-es/commands/GetInsightImpactGraphCommand.js.map +0 -1
  207. package/dist-es/commands/GetInsightSummariesCommand.js.map +0 -1
  208. package/dist-es/commands/GetSamplingRulesCommand.js.map +0 -1
  209. package/dist-es/commands/GetSamplingStatisticSummariesCommand.js.map +0 -1
  210. package/dist-es/commands/GetSamplingTargetsCommand.js.map +0 -1
  211. package/dist-es/commands/GetServiceGraphCommand.js.map +0 -1
  212. package/dist-es/commands/GetTimeSeriesServiceStatisticsCommand.js.map +0 -1
  213. package/dist-es/commands/GetTraceGraphCommand.js.map +0 -1
  214. package/dist-es/commands/GetTraceSummariesCommand.js.map +0 -1
  215. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  216. package/dist-es/commands/PutEncryptionConfigCommand.js.map +0 -1
  217. package/dist-es/commands/PutTelemetryRecordsCommand.js.map +0 -1
  218. package/dist-es/commands/PutTraceSegmentsCommand.js.map +0 -1
  219. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  220. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  221. package/dist-es/commands/UpdateGroupCommand.js.map +0 -1
  222. package/dist-es/commands/UpdateSamplingRuleCommand.js.map +0 -1
  223. package/dist-es/endpoints.js.map +0 -1
  224. package/dist-es/index.js.map +0 -1
  225. package/dist-es/models/index.js.map +0 -1
  226. package/dist-es/models/models_0.js.map +0 -1
  227. package/dist-es/pagination/BatchGetTracesPaginator.js.map +0 -1
  228. package/dist-es/pagination/GetGroupsPaginator.js.map +0 -1
  229. package/dist-es/pagination/GetInsightEventsPaginator.js.map +0 -1
  230. package/dist-es/pagination/GetInsightSummariesPaginator.js.map +0 -1
  231. package/dist-es/pagination/GetSamplingRulesPaginator.js.map +0 -1
  232. package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js.map +0 -1
  233. package/dist-es/pagination/GetServiceGraphPaginator.js.map +0 -1
  234. package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js.map +0 -1
  235. package/dist-es/pagination/GetTraceGraphPaginator.js.map +0 -1
  236. package/dist-es/pagination/GetTraceSummariesPaginator.js.map +0 -1
  237. package/dist-es/pagination/Interfaces.js.map +0 -1
  238. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  239. package/dist-es/runtimeConfig.browser.js.map +0 -1
  240. package/dist-es/runtimeConfig.js.map +0 -1
  241. package/dist-es/runtimeConfig.native.js.map +0 -1
  242. package/dist-es/runtimeConfig.shared.js.map +0 -1
  243. package/jest.config.js +0 -4
  244. package/src/XRay.ts +0 -1036
  245. package/src/XRayClient.ts +0 -342
  246. package/src/commands/BatchGetTracesCommand.ts +0 -97
  247. package/src/commands/CreateGroupCommand.ts +0 -95
  248. package/src/commands/CreateSamplingRuleCommand.ts +0 -101
  249. package/src/commands/DeleteGroupCommand.ts +0 -95
  250. package/src/commands/DeleteSamplingRuleCommand.ts +0 -95
  251. package/src/commands/GetEncryptionConfigCommand.ts +0 -95
  252. package/src/commands/GetGroupCommand.ts +0 -91
  253. package/src/commands/GetGroupsCommand.ts +0 -95
  254. package/src/commands/GetInsightCommand.ts +0 -97
  255. package/src/commands/GetInsightEventsCommand.ts +0 -97
  256. package/src/commands/GetInsightImpactGraphCommand.ts +0 -96
  257. package/src/commands/GetInsightSummariesCommand.ts +0 -95
  258. package/src/commands/GetSamplingRulesCommand.ts +0 -95
  259. package/src/commands/GetSamplingStatisticSummariesCommand.ts +0 -100
  260. package/src/commands/GetSamplingTargetsCommand.ts +0 -96
  261. package/src/commands/GetServiceGraphCommand.ts +0 -99
  262. package/src/commands/GetTimeSeriesServiceStatisticsCommand.ts +0 -104
  263. package/src/commands/GetTraceGraphCommand.ts +0 -95
  264. package/src/commands/GetTraceSummariesCommand.ts +0 -111
  265. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  266. package/src/commands/PutEncryptionConfigCommand.ts +0 -95
  267. package/src/commands/PutTelemetryRecordsCommand.ts +0 -95
  268. package/src/commands/PutTraceSegmentsCommand.ts +0 -157
  269. package/src/commands/TagResourceCommand.ts +0 -95
  270. package/src/commands/UntagResourceCommand.ts +0 -96
  271. package/src/commands/UpdateGroupCommand.ts +0 -95
  272. package/src/commands/UpdateSamplingRuleCommand.ts +0 -95
  273. package/src/endpoints.ts +0 -86
  274. package/src/index.ts +0 -41
  275. package/src/models/index.ts +0 -1
  276. package/src/models/models_0.ts +0 -3647
  277. package/src/pagination/BatchGetTracesPaginator.ts +0 -58
  278. package/src/pagination/GetGroupsPaginator.ts +0 -54
  279. package/src/pagination/GetInsightEventsPaginator.ts +0 -59
  280. package/src/pagination/GetInsightSummariesPaginator.ts +0 -59
  281. package/src/pagination/GetSamplingRulesPaginator.ts +0 -58
  282. package/src/pagination/GetSamplingStatisticSummariesPaginator.ts +0 -58
  283. package/src/pagination/GetServiceGraphPaginator.ts +0 -58
  284. package/src/pagination/GetTimeSeriesServiceStatisticsPaginator.ts +0 -58
  285. package/src/pagination/GetTraceGraphPaginator.ts +0 -58
  286. package/src/pagination/GetTraceSummariesPaginator.ts +0 -58
  287. package/src/pagination/Interfaces.ts +0 -8
  288. package/src/protocols/Aws_restJson1.ts +0 -4338
  289. package/src/runtimeConfig.browser.ts +0 -41
  290. package/src/runtimeConfig.native.ts +0 -17
  291. package/src/runtimeConfig.shared.ts +0 -17
  292. package/src/runtimeConfig.ts +0 -46
  293. package/tsconfig.es.json +0 -10
  294. package/tsconfig.json +0 -33
  295. package/tsconfig.types.json +0 -9
package/src/XRay.ts DELETED
@@ -1,1036 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- BatchGetTracesCommand,
5
- BatchGetTracesCommandInput,
6
- BatchGetTracesCommandOutput,
7
- } from "./commands/BatchGetTracesCommand";
8
- import { CreateGroupCommand, CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
9
- import {
10
- CreateSamplingRuleCommand,
11
- CreateSamplingRuleCommandInput,
12
- CreateSamplingRuleCommandOutput,
13
- } from "./commands/CreateSamplingRuleCommand";
14
- import { DeleteGroupCommand, DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
15
- import {
16
- DeleteSamplingRuleCommand,
17
- DeleteSamplingRuleCommandInput,
18
- DeleteSamplingRuleCommandOutput,
19
- } from "./commands/DeleteSamplingRuleCommand";
20
- import {
21
- GetEncryptionConfigCommand,
22
- GetEncryptionConfigCommandInput,
23
- GetEncryptionConfigCommandOutput,
24
- } from "./commands/GetEncryptionConfigCommand";
25
- import { GetGroupCommand, GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroupCommand";
26
- import { GetGroupsCommand, GetGroupsCommandInput, GetGroupsCommandOutput } from "./commands/GetGroupsCommand";
27
- import { GetInsightCommand, GetInsightCommandInput, GetInsightCommandOutput } from "./commands/GetInsightCommand";
28
- import {
29
- GetInsightEventsCommand,
30
- GetInsightEventsCommandInput,
31
- GetInsightEventsCommandOutput,
32
- } from "./commands/GetInsightEventsCommand";
33
- import {
34
- GetInsightImpactGraphCommand,
35
- GetInsightImpactGraphCommandInput,
36
- GetInsightImpactGraphCommandOutput,
37
- } from "./commands/GetInsightImpactGraphCommand";
38
- import {
39
- GetInsightSummariesCommand,
40
- GetInsightSummariesCommandInput,
41
- GetInsightSummariesCommandOutput,
42
- } from "./commands/GetInsightSummariesCommand";
43
- import {
44
- GetSamplingRulesCommand,
45
- GetSamplingRulesCommandInput,
46
- GetSamplingRulesCommandOutput,
47
- } from "./commands/GetSamplingRulesCommand";
48
- import {
49
- GetSamplingStatisticSummariesCommand,
50
- GetSamplingStatisticSummariesCommandInput,
51
- GetSamplingStatisticSummariesCommandOutput,
52
- } from "./commands/GetSamplingStatisticSummariesCommand";
53
- import {
54
- GetSamplingTargetsCommand,
55
- GetSamplingTargetsCommandInput,
56
- GetSamplingTargetsCommandOutput,
57
- } from "./commands/GetSamplingTargetsCommand";
58
- import {
59
- GetServiceGraphCommand,
60
- GetServiceGraphCommandInput,
61
- GetServiceGraphCommandOutput,
62
- } from "./commands/GetServiceGraphCommand";
63
- import {
64
- GetTimeSeriesServiceStatisticsCommand,
65
- GetTimeSeriesServiceStatisticsCommandInput,
66
- GetTimeSeriesServiceStatisticsCommandOutput,
67
- } from "./commands/GetTimeSeriesServiceStatisticsCommand";
68
- import {
69
- GetTraceGraphCommand,
70
- GetTraceGraphCommandInput,
71
- GetTraceGraphCommandOutput,
72
- } from "./commands/GetTraceGraphCommand";
73
- import {
74
- GetTraceSummariesCommand,
75
- GetTraceSummariesCommandInput,
76
- GetTraceSummariesCommandOutput,
77
- } from "./commands/GetTraceSummariesCommand";
78
- import {
79
- ListTagsForResourceCommand,
80
- ListTagsForResourceCommandInput,
81
- ListTagsForResourceCommandOutput,
82
- } from "./commands/ListTagsForResourceCommand";
83
- import {
84
- PutEncryptionConfigCommand,
85
- PutEncryptionConfigCommandInput,
86
- PutEncryptionConfigCommandOutput,
87
- } from "./commands/PutEncryptionConfigCommand";
88
- import {
89
- PutTelemetryRecordsCommand,
90
- PutTelemetryRecordsCommandInput,
91
- PutTelemetryRecordsCommandOutput,
92
- } from "./commands/PutTelemetryRecordsCommand";
93
- import {
94
- PutTraceSegmentsCommand,
95
- PutTraceSegmentsCommandInput,
96
- PutTraceSegmentsCommandOutput,
97
- } from "./commands/PutTraceSegmentsCommand";
98
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
99
- import {
100
- UntagResourceCommand,
101
- UntagResourceCommandInput,
102
- UntagResourceCommandOutput,
103
- } from "./commands/UntagResourceCommand";
104
- import { UpdateGroupCommand, UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
105
- import {
106
- UpdateSamplingRuleCommand,
107
- UpdateSamplingRuleCommandInput,
108
- UpdateSamplingRuleCommandOutput,
109
- } from "./commands/UpdateSamplingRuleCommand";
110
- import { XRayClient } from "./XRayClient";
111
-
112
- /**
113
- * <p>Amazon Web Services X-Ray provides APIs for managing debug traces and retrieving service maps
114
- * and other data created by processing those traces.</p>
115
- */
116
- export class XRay extends XRayClient {
117
- /**
118
- * <p>Retrieves a list of traces specified by ID. Each trace is a collection of segment
119
- * documents that originates from a single request. Use <code>GetTraceSummaries</code> to get a
120
- * list of trace IDs.</p>
121
- */
122
- public batchGetTraces(
123
- args: BatchGetTracesCommandInput,
124
- options?: __HttpHandlerOptions
125
- ): Promise<BatchGetTracesCommandOutput>;
126
- public batchGetTraces(
127
- args: BatchGetTracesCommandInput,
128
- cb: (err: any, data?: BatchGetTracesCommandOutput) => void
129
- ): void;
130
- public batchGetTraces(
131
- args: BatchGetTracesCommandInput,
132
- options: __HttpHandlerOptions,
133
- cb: (err: any, data?: BatchGetTracesCommandOutput) => void
134
- ): void;
135
- public batchGetTraces(
136
- args: BatchGetTracesCommandInput,
137
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchGetTracesCommandOutput) => void),
138
- cb?: (err: any, data?: BatchGetTracesCommandOutput) => void
139
- ): Promise<BatchGetTracesCommandOutput> | void {
140
- const command = new BatchGetTracesCommand(args);
141
- if (typeof optionsOrCb === "function") {
142
- this.send(command, optionsOrCb);
143
- } else if (typeof cb === "function") {
144
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
- this.send(command, optionsOrCb || {}, cb);
146
- } else {
147
- return this.send(command, optionsOrCb);
148
- }
149
- }
150
-
151
- /**
152
- * <p>Creates a group resource with a name and a filter expression. </p>
153
- */
154
- public createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>;
155
- public createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
156
- public createGroup(
157
- args: CreateGroupCommandInput,
158
- options: __HttpHandlerOptions,
159
- cb: (err: any, data?: CreateGroupCommandOutput) => void
160
- ): void;
161
- public createGroup(
162
- args: CreateGroupCommandInput,
163
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateGroupCommandOutput) => void),
164
- cb?: (err: any, data?: CreateGroupCommandOutput) => void
165
- ): Promise<CreateGroupCommandOutput> | void {
166
- const command = new CreateGroupCommand(args);
167
- if (typeof optionsOrCb === "function") {
168
- this.send(command, optionsOrCb);
169
- } else if (typeof cb === "function") {
170
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
- this.send(command, optionsOrCb || {}, cb);
172
- } else {
173
- return this.send(command, optionsOrCb);
174
- }
175
- }
176
-
177
- /**
178
- * <p>Creates a rule to control sampling behavior for instrumented applications. Services
179
- * retrieve rules with <a href="https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingRules.html">GetSamplingRules</a>, and evaluate each rule in ascending
180
- * order of <i>priority</i> for each request. If a rule matches, the service
181
- * records a trace, borrowing it from the reservoir size. After 10 seconds, the service
182
- * 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
183
- * each in-use rule. The updated rule contains a trace quota that the service can use instead
184
- * of borrowing from the reservoir.</p>
185
- */
186
- public createSamplingRule(
187
- args: CreateSamplingRuleCommandInput,
188
- options?: __HttpHandlerOptions
189
- ): Promise<CreateSamplingRuleCommandOutput>;
190
- public createSamplingRule(
191
- args: CreateSamplingRuleCommandInput,
192
- cb: (err: any, data?: CreateSamplingRuleCommandOutput) => void
193
- ): void;
194
- public createSamplingRule(
195
- args: CreateSamplingRuleCommandInput,
196
- options: __HttpHandlerOptions,
197
- cb: (err: any, data?: CreateSamplingRuleCommandOutput) => void
198
- ): void;
199
- public createSamplingRule(
200
- args: CreateSamplingRuleCommandInput,
201
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateSamplingRuleCommandOutput) => void),
202
- cb?: (err: any, data?: CreateSamplingRuleCommandOutput) => void
203
- ): Promise<CreateSamplingRuleCommandOutput> | void {
204
- const command = new CreateSamplingRuleCommand(args);
205
- if (typeof optionsOrCb === "function") {
206
- this.send(command, optionsOrCb);
207
- } else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
- this.send(command, optionsOrCb || {}, cb);
210
- } else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
-
215
- /**
216
- * <p>Deletes a group resource.</p>
217
- */
218
- public deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>;
219
- public deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
220
- public deleteGroup(
221
- args: DeleteGroupCommandInput,
222
- options: __HttpHandlerOptions,
223
- cb: (err: any, data?: DeleteGroupCommandOutput) => void
224
- ): void;
225
- public deleteGroup(
226
- args: DeleteGroupCommandInput,
227
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteGroupCommandOutput) => void),
228
- cb?: (err: any, data?: DeleteGroupCommandOutput) => void
229
- ): Promise<DeleteGroupCommandOutput> | void {
230
- const command = new DeleteGroupCommand(args);
231
- if (typeof optionsOrCb === "function") {
232
- this.send(command, optionsOrCb);
233
- } else if (typeof cb === "function") {
234
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
235
- this.send(command, optionsOrCb || {}, cb);
236
- } else {
237
- return this.send(command, optionsOrCb);
238
- }
239
- }
240
-
241
- /**
242
- * <p>Deletes a sampling rule.</p>
243
- */
244
- public deleteSamplingRule(
245
- args: DeleteSamplingRuleCommandInput,
246
- options?: __HttpHandlerOptions
247
- ): Promise<DeleteSamplingRuleCommandOutput>;
248
- public deleteSamplingRule(
249
- args: DeleteSamplingRuleCommandInput,
250
- cb: (err: any, data?: DeleteSamplingRuleCommandOutput) => void
251
- ): void;
252
- public deleteSamplingRule(
253
- args: DeleteSamplingRuleCommandInput,
254
- options: __HttpHandlerOptions,
255
- cb: (err: any, data?: DeleteSamplingRuleCommandOutput) => void
256
- ): void;
257
- public deleteSamplingRule(
258
- args: DeleteSamplingRuleCommandInput,
259
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteSamplingRuleCommandOutput) => void),
260
- cb?: (err: any, data?: DeleteSamplingRuleCommandOutput) => void
261
- ): Promise<DeleteSamplingRuleCommandOutput> | void {
262
- const command = new DeleteSamplingRuleCommand(args);
263
- if (typeof optionsOrCb === "function") {
264
- this.send(command, optionsOrCb);
265
- } else if (typeof cb === "function") {
266
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
- this.send(command, optionsOrCb || {}, cb);
268
- } else {
269
- return this.send(command, optionsOrCb);
270
- }
271
- }
272
-
273
- /**
274
- * <p>Retrieves the current encryption configuration for X-Ray data.</p>
275
- */
276
- public getEncryptionConfig(
277
- args: GetEncryptionConfigCommandInput,
278
- options?: __HttpHandlerOptions
279
- ): Promise<GetEncryptionConfigCommandOutput>;
280
- public getEncryptionConfig(
281
- args: GetEncryptionConfigCommandInput,
282
- cb: (err: any, data?: GetEncryptionConfigCommandOutput) => void
283
- ): void;
284
- public getEncryptionConfig(
285
- args: GetEncryptionConfigCommandInput,
286
- options: __HttpHandlerOptions,
287
- cb: (err: any, data?: GetEncryptionConfigCommandOutput) => void
288
- ): void;
289
- public getEncryptionConfig(
290
- args: GetEncryptionConfigCommandInput,
291
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetEncryptionConfigCommandOutput) => void),
292
- cb?: (err: any, data?: GetEncryptionConfigCommandOutput) => void
293
- ): Promise<GetEncryptionConfigCommandOutput> | void {
294
- const command = new GetEncryptionConfigCommand(args);
295
- if (typeof optionsOrCb === "function") {
296
- this.send(command, optionsOrCb);
297
- } else if (typeof cb === "function") {
298
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
- this.send(command, optionsOrCb || {}, cb);
300
- } else {
301
- return this.send(command, optionsOrCb);
302
- }
303
- }
304
-
305
- /**
306
- * <p>Retrieves group resource details.</p>
307
- */
308
- public getGroup(args: GetGroupCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupCommandOutput>;
309
- public getGroup(args: GetGroupCommandInput, cb: (err: any, data?: GetGroupCommandOutput) => void): void;
310
- public getGroup(
311
- args: GetGroupCommandInput,
312
- options: __HttpHandlerOptions,
313
- cb: (err: any, data?: GetGroupCommandOutput) => void
314
- ): void;
315
- public getGroup(
316
- args: GetGroupCommandInput,
317
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetGroupCommandOutput) => void),
318
- cb?: (err: any, data?: GetGroupCommandOutput) => void
319
- ): Promise<GetGroupCommandOutput> | void {
320
- const command = new GetGroupCommand(args);
321
- if (typeof optionsOrCb === "function") {
322
- this.send(command, optionsOrCb);
323
- } else if (typeof cb === "function") {
324
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
325
- this.send(command, optionsOrCb || {}, cb);
326
- } else {
327
- return this.send(command, optionsOrCb);
328
- }
329
- }
330
-
331
- /**
332
- * <p>Retrieves all active group details.</p>
333
- */
334
- public getGroups(args: GetGroupsCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupsCommandOutput>;
335
- public getGroups(args: GetGroupsCommandInput, cb: (err: any, data?: GetGroupsCommandOutput) => void): void;
336
- public getGroups(
337
- args: GetGroupsCommandInput,
338
- options: __HttpHandlerOptions,
339
- cb: (err: any, data?: GetGroupsCommandOutput) => void
340
- ): void;
341
- public getGroups(
342
- args: GetGroupsCommandInput,
343
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetGroupsCommandOutput) => void),
344
- cb?: (err: any, data?: GetGroupsCommandOutput) => void
345
- ): Promise<GetGroupsCommandOutput> | void {
346
- const command = new GetGroupsCommand(args);
347
- if (typeof optionsOrCb === "function") {
348
- this.send(command, optionsOrCb);
349
- } else if (typeof cb === "function") {
350
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
- this.send(command, optionsOrCb || {}, cb);
352
- } else {
353
- return this.send(command, optionsOrCb);
354
- }
355
- }
356
-
357
- /**
358
- * <p>Retrieves the summary information of an insight. This includes impact to clients and
359
- * root cause services, the top anomalous services, the category, the state of the insight,
360
- * and the start and end time of the insight.</p>
361
- */
362
- public getInsight(args: GetInsightCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightCommandOutput>;
363
- public getInsight(args: GetInsightCommandInput, cb: (err: any, data?: GetInsightCommandOutput) => void): void;
364
- public getInsight(
365
- args: GetInsightCommandInput,
366
- options: __HttpHandlerOptions,
367
- cb: (err: any, data?: GetInsightCommandOutput) => void
368
- ): void;
369
- public getInsight(
370
- args: GetInsightCommandInput,
371
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInsightCommandOutput) => void),
372
- cb?: (err: any, data?: GetInsightCommandOutput) => void
373
- ): Promise<GetInsightCommandOutput> | void {
374
- const command = new GetInsightCommand(args);
375
- if (typeof optionsOrCb === "function") {
376
- this.send(command, optionsOrCb);
377
- } else if (typeof cb === "function") {
378
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
379
- this.send(command, optionsOrCb || {}, cb);
380
- } else {
381
- return this.send(command, optionsOrCb);
382
- }
383
- }
384
-
385
- /**
386
- * <p>X-Ray reevaluates insights periodically until they're resolved, and records each intermediate state as an
387
- * event. You can review an insight's events in the Impact Timeline on the Inspect page in the X-Ray
388
- * console.</p>
389
- */
390
- public getInsightEvents(
391
- args: GetInsightEventsCommandInput,
392
- options?: __HttpHandlerOptions
393
- ): Promise<GetInsightEventsCommandOutput>;
394
- public getInsightEvents(
395
- args: GetInsightEventsCommandInput,
396
- cb: (err: any, data?: GetInsightEventsCommandOutput) => void
397
- ): void;
398
- public getInsightEvents(
399
- args: GetInsightEventsCommandInput,
400
- options: __HttpHandlerOptions,
401
- cb: (err: any, data?: GetInsightEventsCommandOutput) => void
402
- ): void;
403
- public getInsightEvents(
404
- args: GetInsightEventsCommandInput,
405
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInsightEventsCommandOutput) => void),
406
- cb?: (err: any, data?: GetInsightEventsCommandOutput) => void
407
- ): Promise<GetInsightEventsCommandOutput> | void {
408
- const command = new GetInsightEventsCommand(args);
409
- if (typeof optionsOrCb === "function") {
410
- this.send(command, optionsOrCb);
411
- } else if (typeof cb === "function") {
412
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
413
- this.send(command, optionsOrCb || {}, cb);
414
- } else {
415
- return this.send(command, optionsOrCb);
416
- }
417
- }
418
-
419
- /**
420
- * <p>Retrieves a service graph structure filtered by the specified insight. The service graph is limited to only
421
- * structural information. For a complete service graph, use this API with the GetServiceGraph API.</p>
422
- */
423
- public getInsightImpactGraph(
424
- args: GetInsightImpactGraphCommandInput,
425
- options?: __HttpHandlerOptions
426
- ): Promise<GetInsightImpactGraphCommandOutput>;
427
- public getInsightImpactGraph(
428
- args: GetInsightImpactGraphCommandInput,
429
- cb: (err: any, data?: GetInsightImpactGraphCommandOutput) => void
430
- ): void;
431
- public getInsightImpactGraph(
432
- args: GetInsightImpactGraphCommandInput,
433
- options: __HttpHandlerOptions,
434
- cb: (err: any, data?: GetInsightImpactGraphCommandOutput) => void
435
- ): void;
436
- public getInsightImpactGraph(
437
- args: GetInsightImpactGraphCommandInput,
438
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInsightImpactGraphCommandOutput) => void),
439
- cb?: (err: any, data?: GetInsightImpactGraphCommandOutput) => void
440
- ): Promise<GetInsightImpactGraphCommandOutput> | void {
441
- const command = new GetInsightImpactGraphCommand(args);
442
- if (typeof optionsOrCb === "function") {
443
- this.send(command, optionsOrCb);
444
- } else if (typeof cb === "function") {
445
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
446
- this.send(command, optionsOrCb || {}, cb);
447
- } else {
448
- return this.send(command, optionsOrCb);
449
- }
450
- }
451
-
452
- /**
453
- * <p>Retrieves the summaries of all insights in the specified group matching the provided filter values.</p>
454
- */
455
- public getInsightSummaries(
456
- args: GetInsightSummariesCommandInput,
457
- options?: __HttpHandlerOptions
458
- ): Promise<GetInsightSummariesCommandOutput>;
459
- public getInsightSummaries(
460
- args: GetInsightSummariesCommandInput,
461
- cb: (err: any, data?: GetInsightSummariesCommandOutput) => void
462
- ): void;
463
- public getInsightSummaries(
464
- args: GetInsightSummariesCommandInput,
465
- options: __HttpHandlerOptions,
466
- cb: (err: any, data?: GetInsightSummariesCommandOutput) => void
467
- ): void;
468
- public getInsightSummaries(
469
- args: GetInsightSummariesCommandInput,
470
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInsightSummariesCommandOutput) => void),
471
- cb?: (err: any, data?: GetInsightSummariesCommandOutput) => void
472
- ): Promise<GetInsightSummariesCommandOutput> | void {
473
- const command = new GetInsightSummariesCommand(args);
474
- if (typeof optionsOrCb === "function") {
475
- this.send(command, optionsOrCb);
476
- } else if (typeof cb === "function") {
477
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
478
- this.send(command, optionsOrCb || {}, cb);
479
- } else {
480
- return this.send(command, optionsOrCb);
481
- }
482
- }
483
-
484
- /**
485
- * <p>Retrieves all sampling rules.</p>
486
- */
487
- public getSamplingRules(
488
- args: GetSamplingRulesCommandInput,
489
- options?: __HttpHandlerOptions
490
- ): Promise<GetSamplingRulesCommandOutput>;
491
- public getSamplingRules(
492
- args: GetSamplingRulesCommandInput,
493
- cb: (err: any, data?: GetSamplingRulesCommandOutput) => void
494
- ): void;
495
- public getSamplingRules(
496
- args: GetSamplingRulesCommandInput,
497
- options: __HttpHandlerOptions,
498
- cb: (err: any, data?: GetSamplingRulesCommandOutput) => void
499
- ): void;
500
- public getSamplingRules(
501
- args: GetSamplingRulesCommandInput,
502
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSamplingRulesCommandOutput) => void),
503
- cb?: (err: any, data?: GetSamplingRulesCommandOutput) => void
504
- ): Promise<GetSamplingRulesCommandOutput> | void {
505
- const command = new GetSamplingRulesCommand(args);
506
- if (typeof optionsOrCb === "function") {
507
- this.send(command, optionsOrCb);
508
- } else if (typeof cb === "function") {
509
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
510
- this.send(command, optionsOrCb || {}, cb);
511
- } else {
512
- return this.send(command, optionsOrCb);
513
- }
514
- }
515
-
516
- /**
517
- * <p>Retrieves information about recent sampling results for all sampling rules.</p>
518
- */
519
- public getSamplingStatisticSummaries(
520
- args: GetSamplingStatisticSummariesCommandInput,
521
- options?: __HttpHandlerOptions
522
- ): Promise<GetSamplingStatisticSummariesCommandOutput>;
523
- public getSamplingStatisticSummaries(
524
- args: GetSamplingStatisticSummariesCommandInput,
525
- cb: (err: any, data?: GetSamplingStatisticSummariesCommandOutput) => void
526
- ): void;
527
- public getSamplingStatisticSummaries(
528
- args: GetSamplingStatisticSummariesCommandInput,
529
- options: __HttpHandlerOptions,
530
- cb: (err: any, data?: GetSamplingStatisticSummariesCommandOutput) => void
531
- ): void;
532
- public getSamplingStatisticSummaries(
533
- args: GetSamplingStatisticSummariesCommandInput,
534
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSamplingStatisticSummariesCommandOutput) => void),
535
- cb?: (err: any, data?: GetSamplingStatisticSummariesCommandOutput) => void
536
- ): Promise<GetSamplingStatisticSummariesCommandOutput> | void {
537
- const command = new GetSamplingStatisticSummariesCommand(args);
538
- if (typeof optionsOrCb === "function") {
539
- this.send(command, optionsOrCb);
540
- } else if (typeof cb === "function") {
541
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
542
- this.send(command, optionsOrCb || {}, cb);
543
- } else {
544
- return this.send(command, optionsOrCb);
545
- }
546
- }
547
-
548
- /**
549
- * <p>Requests a sampling quota for rules that the service is using to sample requests.
550
- * </p>
551
- */
552
- public getSamplingTargets(
553
- args: GetSamplingTargetsCommandInput,
554
- options?: __HttpHandlerOptions
555
- ): Promise<GetSamplingTargetsCommandOutput>;
556
- public getSamplingTargets(
557
- args: GetSamplingTargetsCommandInput,
558
- cb: (err: any, data?: GetSamplingTargetsCommandOutput) => void
559
- ): void;
560
- public getSamplingTargets(
561
- args: GetSamplingTargetsCommandInput,
562
- options: __HttpHandlerOptions,
563
- cb: (err: any, data?: GetSamplingTargetsCommandOutput) => void
564
- ): void;
565
- public getSamplingTargets(
566
- args: GetSamplingTargetsCommandInput,
567
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSamplingTargetsCommandOutput) => void),
568
- cb?: (err: any, data?: GetSamplingTargetsCommandOutput) => void
569
- ): Promise<GetSamplingTargetsCommandOutput> | void {
570
- const command = new GetSamplingTargetsCommand(args);
571
- if (typeof optionsOrCb === "function") {
572
- this.send(command, optionsOrCb);
573
- } else if (typeof cb === "function") {
574
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
575
- this.send(command, optionsOrCb || {}, cb);
576
- } else {
577
- return this.send(command, optionsOrCb);
578
- }
579
- }
580
-
581
- /**
582
- * <p>Retrieves a document that describes services that process incoming requests, and
583
- * downstream services that they call as a result. Root services process incoming requests and
584
- * 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>.
585
- * Downstream services can be other applications, Amazon Web Services resources, HTTP web APIs, or SQL
586
- * databases.</p>
587
- */
588
- public getServiceGraph(
589
- args: GetServiceGraphCommandInput,
590
- options?: __HttpHandlerOptions
591
- ): Promise<GetServiceGraphCommandOutput>;
592
- public getServiceGraph(
593
- args: GetServiceGraphCommandInput,
594
- cb: (err: any, data?: GetServiceGraphCommandOutput) => void
595
- ): void;
596
- public getServiceGraph(
597
- args: GetServiceGraphCommandInput,
598
- options: __HttpHandlerOptions,
599
- cb: (err: any, data?: GetServiceGraphCommandOutput) => void
600
- ): void;
601
- public getServiceGraph(
602
- args: GetServiceGraphCommandInput,
603
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetServiceGraphCommandOutput) => void),
604
- cb?: (err: any, data?: GetServiceGraphCommandOutput) => void
605
- ): Promise<GetServiceGraphCommandOutput> | void {
606
- const command = new GetServiceGraphCommand(args);
607
- if (typeof optionsOrCb === "function") {
608
- this.send(command, optionsOrCb);
609
- } else if (typeof cb === "function") {
610
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
611
- this.send(command, optionsOrCb || {}, cb);
612
- } else {
613
- return this.send(command, optionsOrCb);
614
- }
615
- }
616
-
617
- /**
618
- * <p>Get an aggregation of service statistics defined by a specific time
619
- * range.</p>
620
- */
621
- public getTimeSeriesServiceStatistics(
622
- args: GetTimeSeriesServiceStatisticsCommandInput,
623
- options?: __HttpHandlerOptions
624
- ): Promise<GetTimeSeriesServiceStatisticsCommandOutput>;
625
- public getTimeSeriesServiceStatistics(
626
- args: GetTimeSeriesServiceStatisticsCommandInput,
627
- cb: (err: any, data?: GetTimeSeriesServiceStatisticsCommandOutput) => void
628
- ): void;
629
- public getTimeSeriesServiceStatistics(
630
- args: GetTimeSeriesServiceStatisticsCommandInput,
631
- options: __HttpHandlerOptions,
632
- cb: (err: any, data?: GetTimeSeriesServiceStatisticsCommandOutput) => void
633
- ): void;
634
- public getTimeSeriesServiceStatistics(
635
- args: GetTimeSeriesServiceStatisticsCommandInput,
636
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTimeSeriesServiceStatisticsCommandOutput) => void),
637
- cb?: (err: any, data?: GetTimeSeriesServiceStatisticsCommandOutput) => void
638
- ): Promise<GetTimeSeriesServiceStatisticsCommandOutput> | void {
639
- const command = new GetTimeSeriesServiceStatisticsCommand(args);
640
- if (typeof optionsOrCb === "function") {
641
- this.send(command, optionsOrCb);
642
- } else if (typeof cb === "function") {
643
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
644
- this.send(command, optionsOrCb || {}, cb);
645
- } else {
646
- return this.send(command, optionsOrCb);
647
- }
648
- }
649
-
650
- /**
651
- * <p>Retrieves a service graph for one or more specific trace IDs.</p>
652
- */
653
- public getTraceGraph(
654
- args: GetTraceGraphCommandInput,
655
- options?: __HttpHandlerOptions
656
- ): Promise<GetTraceGraphCommandOutput>;
657
- public getTraceGraph(
658
- args: GetTraceGraphCommandInput,
659
- cb: (err: any, data?: GetTraceGraphCommandOutput) => void
660
- ): void;
661
- public getTraceGraph(
662
- args: GetTraceGraphCommandInput,
663
- options: __HttpHandlerOptions,
664
- cb: (err: any, data?: GetTraceGraphCommandOutput) => void
665
- ): void;
666
- public getTraceGraph(
667
- args: GetTraceGraphCommandInput,
668
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTraceGraphCommandOutput) => void),
669
- cb?: (err: any, data?: GetTraceGraphCommandOutput) => void
670
- ): Promise<GetTraceGraphCommandOutput> | void {
671
- const command = new GetTraceGraphCommand(args);
672
- if (typeof optionsOrCb === "function") {
673
- this.send(command, optionsOrCb);
674
- } else if (typeof cb === "function") {
675
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
676
- this.send(command, optionsOrCb || {}, cb);
677
- } else {
678
- return this.send(command, optionsOrCb);
679
- }
680
- }
681
-
682
- /**
683
- * <p>Retrieves IDs and annotations for traces available for a specified time frame using an
684
- * optional filter. To get the full traces, pass the trace IDs to
685
- * <code>BatchGetTraces</code>.</p>
686
- * <p>A filter expression can target traced requests that hit specific service nodes or
687
- * edges, have errors, or come from a known user. For example, the following filter expression
688
- * targets traces that pass through <code>api.example.com</code>:</p>
689
- * <p>
690
- * <code>service("api.example.com")</code>
691
- * </p>
692
- * <p>This filter expression finds traces that have an annotation named <code>account</code>
693
- * with the value <code>12345</code>:</p>
694
- * <p>
695
- * <code>annotation.account = "12345"</code>
696
- * </p>
697
- * <p>For a full list of indexed fields and keywords that you can use in filter expressions,
698
- * see <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html">Using Filter
699
- * Expressions</a> in the <i>Amazon Web Services X-Ray Developer Guide</i>.</p>
700
- */
701
- public getTraceSummaries(
702
- args: GetTraceSummariesCommandInput,
703
- options?: __HttpHandlerOptions
704
- ): Promise<GetTraceSummariesCommandOutput>;
705
- public getTraceSummaries(
706
- args: GetTraceSummariesCommandInput,
707
- cb: (err: any, data?: GetTraceSummariesCommandOutput) => void
708
- ): void;
709
- public getTraceSummaries(
710
- args: GetTraceSummariesCommandInput,
711
- options: __HttpHandlerOptions,
712
- cb: (err: any, data?: GetTraceSummariesCommandOutput) => void
713
- ): void;
714
- public getTraceSummaries(
715
- args: GetTraceSummariesCommandInput,
716
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTraceSummariesCommandOutput) => void),
717
- cb?: (err: any, data?: GetTraceSummariesCommandOutput) => void
718
- ): Promise<GetTraceSummariesCommandOutput> | void {
719
- const command = new GetTraceSummariesCommand(args);
720
- if (typeof optionsOrCb === "function") {
721
- this.send(command, optionsOrCb);
722
- } else if (typeof cb === "function") {
723
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
724
- this.send(command, optionsOrCb || {}, cb);
725
- } else {
726
- return this.send(command, optionsOrCb);
727
- }
728
- }
729
-
730
- /**
731
- * <p>Returns a list of tags that are applied to the specified Amazon Web Services X-Ray group or sampling rule.</p>
732
- */
733
- public listTagsForResource(
734
- args: ListTagsForResourceCommandInput,
735
- options?: __HttpHandlerOptions
736
- ): Promise<ListTagsForResourceCommandOutput>;
737
- public listTagsForResource(
738
- args: ListTagsForResourceCommandInput,
739
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
740
- ): void;
741
- public listTagsForResource(
742
- args: ListTagsForResourceCommandInput,
743
- options: __HttpHandlerOptions,
744
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
745
- ): void;
746
- public listTagsForResource(
747
- args: ListTagsForResourceCommandInput,
748
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
749
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
750
- ): Promise<ListTagsForResourceCommandOutput> | void {
751
- const command = new ListTagsForResourceCommand(args);
752
- if (typeof optionsOrCb === "function") {
753
- this.send(command, optionsOrCb);
754
- } else if (typeof cb === "function") {
755
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
756
- this.send(command, optionsOrCb || {}, cb);
757
- } else {
758
- return this.send(command, optionsOrCb);
759
- }
760
- }
761
-
762
- /**
763
- * <p>Updates the encryption configuration for X-Ray data.</p>
764
- */
765
- public putEncryptionConfig(
766
- args: PutEncryptionConfigCommandInput,
767
- options?: __HttpHandlerOptions
768
- ): Promise<PutEncryptionConfigCommandOutput>;
769
- public putEncryptionConfig(
770
- args: PutEncryptionConfigCommandInput,
771
- cb: (err: any, data?: PutEncryptionConfigCommandOutput) => void
772
- ): void;
773
- public putEncryptionConfig(
774
- args: PutEncryptionConfigCommandInput,
775
- options: __HttpHandlerOptions,
776
- cb: (err: any, data?: PutEncryptionConfigCommandOutput) => void
777
- ): void;
778
- public putEncryptionConfig(
779
- args: PutEncryptionConfigCommandInput,
780
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutEncryptionConfigCommandOutput) => void),
781
- cb?: (err: any, data?: PutEncryptionConfigCommandOutput) => void
782
- ): Promise<PutEncryptionConfigCommandOutput> | void {
783
- const command = new PutEncryptionConfigCommand(args);
784
- if (typeof optionsOrCb === "function") {
785
- this.send(command, optionsOrCb);
786
- } else if (typeof cb === "function") {
787
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
788
- this.send(command, optionsOrCb || {}, cb);
789
- } else {
790
- return this.send(command, optionsOrCb);
791
- }
792
- }
793
-
794
- /**
795
- * <p>Used by the Amazon Web Services X-Ray daemon to upload telemetry.</p>
796
- */
797
- public putTelemetryRecords(
798
- args: PutTelemetryRecordsCommandInput,
799
- options?: __HttpHandlerOptions
800
- ): Promise<PutTelemetryRecordsCommandOutput>;
801
- public putTelemetryRecords(
802
- args: PutTelemetryRecordsCommandInput,
803
- cb: (err: any, data?: PutTelemetryRecordsCommandOutput) => void
804
- ): void;
805
- public putTelemetryRecords(
806
- args: PutTelemetryRecordsCommandInput,
807
- options: __HttpHandlerOptions,
808
- cb: (err: any, data?: PutTelemetryRecordsCommandOutput) => void
809
- ): void;
810
- public putTelemetryRecords(
811
- args: PutTelemetryRecordsCommandInput,
812
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutTelemetryRecordsCommandOutput) => void),
813
- cb?: (err: any, data?: PutTelemetryRecordsCommandOutput) => void
814
- ): Promise<PutTelemetryRecordsCommandOutput> | void {
815
- const command = new PutTelemetryRecordsCommand(args);
816
- if (typeof optionsOrCb === "function") {
817
- this.send(command, optionsOrCb);
818
- } else if (typeof cb === "function") {
819
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
820
- this.send(command, optionsOrCb || {}, cb);
821
- } else {
822
- return this.send(command, optionsOrCb);
823
- }
824
- }
825
-
826
- /**
827
- * <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
828
- * batches. A segment document can be a completed segment, an in-progress segment, or an array of
829
- * subsegments.</p>
830
- * <p>Segments must include the following fields. For the full segment document schema, see
831
- * <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html">Amazon Web Services X-Ray
832
- * Segment Documents</a> in the <i>Amazon Web Services X-Ray Developer Guide</i>.</p>
833
- * <p class="title">
834
- * <b>Required segment document fields</b>
835
- * </p>
836
- * <ul>
837
- * <li>
838
- * <p>
839
- * <code>name</code> - The name of the service that handled the request.</p>
840
- * </li>
841
- * <li>
842
- * <p>
843
- * <code>id</code> - A 64-bit identifier for the segment, unique among segments in the same trace, in 16
844
- * hexadecimal digits.</p>
845
- * </li>
846
- * <li>
847
- * <p>
848
- * <code>trace_id</code> - A unique identifier that connects all segments and subsegments originating from
849
- * a single client request.</p>
850
- * </li>
851
- * <li>
852
- * <p>
853
- * <code>start_time</code> - Time the segment or subsegment was created, in floating point seconds in
854
- * epoch time, accurate to milliseconds. For example, <code>1480615200.010</code> or
855
- * <code>1.480615200010E9</code>.</p>
856
- * </li>
857
- * <li>
858
- * <p>
859
- * <code>end_time</code> - Time the segment or subsegment was closed. For example,
860
- * <code>1480615200.090</code> or <code>1.480615200090E9</code>. Specify either an <code>end_time</code> or
861
- * <code>in_progress</code>.</p>
862
- * </li>
863
- * <li>
864
- * <p>
865
- * <code>in_progress</code> - Set to <code>true</code> instead of specifying an <code>end_time</code> to
866
- * record that a segment has been started, but is not complete. Send an in-progress segment when your application
867
- * receives a request that will take a long time to serve, to trace that the request was received. When the
868
- * response is sent, send the complete segment to overwrite the in-progress segment.</p>
869
- * </li>
870
- * </ul>
871
- * <p>A <code>trace_id</code> consists of three numbers separated by hyphens. For example,
872
- * 1-58406520-a006649127e371903a2de979. This includes:</p>
873
- * <p class="title">
874
- * <b>Trace ID Format</b>
875
- * </p>
876
- * <ul>
877
- * <li>
878
- * <p>The version number, for instance, <code>1</code>.</p>
879
- * </li>
880
- * <li>
881
- * <p>The time of the original request, in Unix epoch time, in 8 hexadecimal digits. For
882
- * example, 10:00AM December 2nd, 2016 PST in epoch time is <code>1480615200</code> seconds,
883
- * or <code>58406520</code> in hexadecimal.</p>
884
- * </li>
885
- * <li>
886
- * <p>A 96-bit identifier for the trace, globally unique, in 24 hexadecimal
887
- * digits.</p>
888
- * </li>
889
- * </ul>
890
- */
891
- public putTraceSegments(
892
- args: PutTraceSegmentsCommandInput,
893
- options?: __HttpHandlerOptions
894
- ): Promise<PutTraceSegmentsCommandOutput>;
895
- public putTraceSegments(
896
- args: PutTraceSegmentsCommandInput,
897
- cb: (err: any, data?: PutTraceSegmentsCommandOutput) => void
898
- ): void;
899
- public putTraceSegments(
900
- args: PutTraceSegmentsCommandInput,
901
- options: __HttpHandlerOptions,
902
- cb: (err: any, data?: PutTraceSegmentsCommandOutput) => void
903
- ): void;
904
- public putTraceSegments(
905
- args: PutTraceSegmentsCommandInput,
906
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutTraceSegmentsCommandOutput) => void),
907
- cb?: (err: any, data?: PutTraceSegmentsCommandOutput) => void
908
- ): Promise<PutTraceSegmentsCommandOutput> | void {
909
- const command = new PutTraceSegmentsCommand(args);
910
- if (typeof optionsOrCb === "function") {
911
- this.send(command, optionsOrCb);
912
- } else if (typeof cb === "function") {
913
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
914
- this.send(command, optionsOrCb || {}, cb);
915
- } else {
916
- return this.send(command, optionsOrCb);
917
- }
918
- }
919
-
920
- /**
921
- * <p>Applies tags to an existing Amazon Web Services X-Ray group or sampling rule.</p>
922
- */
923
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
924
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
925
- public tagResource(
926
- args: TagResourceCommandInput,
927
- options: __HttpHandlerOptions,
928
- cb: (err: any, data?: TagResourceCommandOutput) => void
929
- ): void;
930
- public tagResource(
931
- args: TagResourceCommandInput,
932
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
933
- cb?: (err: any, data?: TagResourceCommandOutput) => void
934
- ): Promise<TagResourceCommandOutput> | void {
935
- const command = new TagResourceCommand(args);
936
- if (typeof optionsOrCb === "function") {
937
- this.send(command, optionsOrCb);
938
- } else if (typeof cb === "function") {
939
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
940
- this.send(command, optionsOrCb || {}, cb);
941
- } else {
942
- return this.send(command, optionsOrCb);
943
- }
944
- }
945
-
946
- /**
947
- * <p>Removes tags from an Amazon Web Services X-Ray group or sampling rule. You cannot edit or delete system
948
- * tags (those with an <code>aws:</code> prefix).</p>
949
- */
950
- public untagResource(
951
- args: UntagResourceCommandInput,
952
- options?: __HttpHandlerOptions
953
- ): Promise<UntagResourceCommandOutput>;
954
- public untagResource(
955
- args: UntagResourceCommandInput,
956
- cb: (err: any, data?: UntagResourceCommandOutput) => void
957
- ): void;
958
- public untagResource(
959
- args: UntagResourceCommandInput,
960
- options: __HttpHandlerOptions,
961
- cb: (err: any, data?: UntagResourceCommandOutput) => void
962
- ): void;
963
- public untagResource(
964
- args: UntagResourceCommandInput,
965
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
966
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
967
- ): Promise<UntagResourceCommandOutput> | void {
968
- const command = new UntagResourceCommand(args);
969
- if (typeof optionsOrCb === "function") {
970
- this.send(command, optionsOrCb);
971
- } else if (typeof cb === "function") {
972
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
973
- this.send(command, optionsOrCb || {}, cb);
974
- } else {
975
- return this.send(command, optionsOrCb);
976
- }
977
- }
978
-
979
- /**
980
- * <p>Updates a group resource.</p>
981
- */
982
- public updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
983
- public updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
984
- public updateGroup(
985
- args: UpdateGroupCommandInput,
986
- options: __HttpHandlerOptions,
987
- cb: (err: any, data?: UpdateGroupCommandOutput) => void
988
- ): void;
989
- public updateGroup(
990
- args: UpdateGroupCommandInput,
991
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateGroupCommandOutput) => void),
992
- cb?: (err: any, data?: UpdateGroupCommandOutput) => void
993
- ): Promise<UpdateGroupCommandOutput> | void {
994
- const command = new UpdateGroupCommand(args);
995
- if (typeof optionsOrCb === "function") {
996
- this.send(command, optionsOrCb);
997
- } else if (typeof cb === "function") {
998
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
999
- this.send(command, optionsOrCb || {}, cb);
1000
- } else {
1001
- return this.send(command, optionsOrCb);
1002
- }
1003
- }
1004
-
1005
- /**
1006
- * <p>Modifies a sampling rule's configuration.</p>
1007
- */
1008
- public updateSamplingRule(
1009
- args: UpdateSamplingRuleCommandInput,
1010
- options?: __HttpHandlerOptions
1011
- ): Promise<UpdateSamplingRuleCommandOutput>;
1012
- public updateSamplingRule(
1013
- args: UpdateSamplingRuleCommandInput,
1014
- cb: (err: any, data?: UpdateSamplingRuleCommandOutput) => void
1015
- ): void;
1016
- public updateSamplingRule(
1017
- args: UpdateSamplingRuleCommandInput,
1018
- options: __HttpHandlerOptions,
1019
- cb: (err: any, data?: UpdateSamplingRuleCommandOutput) => void
1020
- ): void;
1021
- public updateSamplingRule(
1022
- args: UpdateSamplingRuleCommandInput,
1023
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateSamplingRuleCommandOutput) => void),
1024
- cb?: (err: any, data?: UpdateSamplingRuleCommandOutput) => void
1025
- ): Promise<UpdateSamplingRuleCommandOutput> | void {
1026
- const command = new UpdateSamplingRuleCommand(args);
1027
- if (typeof optionsOrCb === "function") {
1028
- this.send(command, optionsOrCb);
1029
- } else if (typeof cb === "function") {
1030
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1031
- this.send(command, optionsOrCb || {}, cb);
1032
- } else {
1033
- return this.send(command, optionsOrCb);
1034
- }
1035
- }
1036
- }