

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

# 使用 CloudWatch 日志的基本示例 AWS SDKs
<a name="service_code_examples_basics"></a>

以下代码示例展示了如何使用 Amazon CloudWatch Logs 的基础知识 AWS SDKs。

**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)