

文件 AWS 開發套件範例 GitHub 儲存庫中有更多可用的 [AWS SDK 範例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

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

下列程式碼範例示範如何使用 AWS SDKs 執行個別 X-Ray 動作。每個範例均包含 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)