

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

# CloudWatch AWS SDKs的動作
<a name="service_code_examples_actions"></a>

下列程式碼範例示範如何使用 AWS SDKs 執行個別 CloudWatch 動作。每個範例均包含 GitHub 的連結，您可以在連結中找到設定和執行程式碼的相關說明。

這些摘錄會呼叫 CloudWatch API，是必須在內容中執行之大型程式的程式碼摘錄。您可以在 [CloudWatch AWS SDKs的案例](service_code_examples_scenarios.md) 中查看內容中的動作。

 下列範例僅包含最常使用的動作。如需完整清單，請參閱 [Amazon CloudWatch API 參考](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/Welcome.html)。

**Topics**
+ [`DeleteAlarms`](example_cloudwatch_DeleteAlarms_section.md)
+ [`DeleteAnomalyDetector`](example_cloudwatch_DeleteAnomalyDetector_section.md)
+ [`DeleteDashboards`](example_cloudwatch_DeleteDashboards_section.md)
+ [`DescribeAlarmHistory`](example_cloudwatch_DescribeAlarmHistory_section.md)
+ [`DescribeAlarms`](example_cloudwatch_DescribeAlarms_section.md)
+ [`DescribeAlarmsForMetric`](example_cloudwatch_DescribeAlarmsForMetric_section.md)
+ [`DescribeAnomalyDetectors`](example_cloudwatch_DescribeAnomalyDetectors_section.md)
+ [`DisableAlarmActions`](example_cloudwatch_DisableAlarmActions_section.md)
+ [`EnableAlarmActions`](example_cloudwatch_EnableAlarmActions_section.md)
+ [`GetDashboard`](example_cloudwatch_GetDashboard_section.md)
+ [`GetMetricData`](example_cloudwatch_GetMetricData_section.md)
+ [`GetMetricStatistics`](example_cloudwatch_GetMetricStatistics_section.md)
+ [`GetMetricWidgetImage`](example_cloudwatch_GetMetricWidgetImage_section.md)
+ [`ListDashboards`](example_cloudwatch_ListDashboards_section.md)
+ [`ListMetrics`](example_cloudwatch_ListMetrics_section.md)
+ [`PutAnomalyDetector`](example_cloudwatch_PutAnomalyDetector_section.md)
+ [`PutDashboard`](example_cloudwatch_PutDashboard_section.md)
+ [`PutMetricAlarm`](example_cloudwatch_PutMetricAlarm_section.md)
+ [`PutMetricData`](example_cloudwatch_PutMetricData_section.md)