

文档 AWS SDK 示例 GitHub 存储库中还有更多 [S AWS DK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 X-Ray 的操作 AWS SDKs
<a name="xray_code_examples_actions"></a>

以下代码示例演示如何使用执行单个 X-Ray 操作 AWS SDKs。每个示例都包含一个指向的链接 GitHub，您可以在其中找到有关设置和运行代码的说明。

 以下示例仅包括最常用的操作。有关完整列表，请参阅 [AWS X-Ray API 参考](https://docs.aws.amazon.com/xray/latest/api/Welcome.html)。

**Topics**
+ [`CreateGroup`](xray_example_xray_CreateGroup_section.md)
+ [`CreateSamplingRule`](xray_example_xray_CreateSamplingRule_section.md)
+ [`DeleteGroup`](xray_example_xray_DeleteGroup_section.md)
+ [`DeleteSamplingRule`](xray_example_xray_DeleteSamplingRule_section.md)
+ [`GetGroups`](xray_example_xray_GetGroups_section.md)
+ [`GetSamplingRules`](xray_example_xray_GetSamplingRules_section.md)
+ [`GetServiceGraph`](xray_example_xray_GetServiceGraph_section.md)