

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Contoh dasar untuk menggunakan CloudWatch Log AWS SDKs
<a name="service_code_examples_basics"></a>

Contoh kode berikut menunjukkan cara menggunakan dasar-dasar Amazon CloudWatch Logs dengan AWS SDKs. 

**Contents**
+ [Tindakan](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)