

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# SDK を使用した CloudWatch Logs のアクション AWS SDKs
<a name="service_code_examples_actions"></a>

次のコード例は、 AWS SDKs で個々の CloudWatch Logs アクションを実行する方法を示しています。それぞれの例には、GitHub へのリンクがあり、そこにはコードの設定と実行に関する説明が記載されています。

これらは CloudWatch Logs API を呼び出すもので、コンテキスト内で実行する必要がある大規模なプログラムからのコード抜粋です。アクションは [SDK を使用した CloudWatch Logs のシナリオ AWS SDKs](service_code_examples_scenarios.md) のコンテキスト内で確認できます。

 以下の例には、最も一般的に使用されるアクションのみ含まれています。詳細な一覧については、「[Amazon CloudWatch Logs API Reference](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/Welcome.html)」(Amazon CloudWatch Logs API リファレンス) を参照してください。

**Topics**
+ [`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)