

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

# 使用 SDK 的 CloudWatch Logs 基本範例 AWS SDKs
<a name="service_code_examples_basics"></a>

下列程式碼範例示範如何搭配 AWS SDK 使用 Amazon CloudWatch Logs。

**Contents**
+ [動作](service_code_examples_actions.md)
  + [`AssociateKmsKey`](example_cloudwatch-logs_AssociateKmsKey_section.md)
  + [`CancelExportTask`](example_cloudwatch-logs_CancelExportTask_section.md)
  + [`CreateExportTask`](example_cloudwatch-logs_CreateExportTask_section.md)
  + [`CreateLogGroup`](example_cloudwatch-logs_CreateLogGroup_section.md)
  + [`CreateLogStream`](example_cloudwatch-logs_CreateLogStream_section.md)
  + [`DeleteLogGroup`](example_cloudwatch-logs_DeleteLogGroup_section.md)
  + [`DeleteSubscriptionFilter`](example_cloudwatch-logs_DeleteSubscriptionFilter_section.md)
  + [`DescribeExportTasks`](example_cloudwatch-logs_DescribeExportTasks_section.md)
  + [`DescribeLogGroups`](example_cloudwatch-logs_DescribeLogGroups_section.md)
  + [`DescribeLogStreams`](example_cloudwatch-logs_DescribeLogStreams_section.md)
  + [`DescribeSubscriptionFilters`](example_cloudwatch-logs_DescribeSubscriptionFilters_section.md)
  + [`GetLogEvents`](example_cloudwatch-logs_GetLogEvents_section.md)
  + [`GetQueryResults`](example_cloudwatch-logs_GetQueryResults_section.md)
  + [`PutSubscriptionFilter`](example_cloudwatch-logs_PutSubscriptionFilter_section.md)
  + [`StartLiveTail`](example_cloudwatch-logs_StartLiveTail_section.md)
  + [`StartQuery`](example_cloudwatch-logs_StartQuery_section.md)