

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

# SDK を使用した CloudWatch Logs のコード例 AWS SDKs
<a name="service_code_examples"></a>

次のコード例は、 AWS Software Development Kit (SDK) で CloudWatch Logs を使用する方法を示しています。

*アクション*はより大きなプログラムからのコードの抜粋であり、コンテキスト内で実行する必要があります。アクションは個々のサービス機能を呼び出す方法を示していますが、コンテキスト内のアクションは、関連するシナリオで確認できます。

*シナリオ*は、1 つのサービス内から、または他の AWS のサービスと組み合わせて複数の関数を呼び出し、特定のタスクを実行する方法を示すコード例です。

 AWS SDK 開発者ガイドとコード例の完全なリストについては、「」を参照してください[AWS SDK での CloudWatch Logs の使用](sdk-general-information-section.md)。このトピックには、使用開始方法に関する情報と、以前の SDK バージョンの詳細も含まれています。

**Contents**
+ [基本](service_code_examples_basics.md)
  + [アクション](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)
+ [シナリオ](service_code_examples_scenarios.md)
  + [Amazon ECS Service Connect を設定する](example_ecs_ServiceConnect_085_section.md)
  + [最初の Lambda 関数の作成](example_lambda_GettingStarted_019_section.md)
  + [大規模なクエリを実行する](example_cloudwatch-logs_Scenario_BigQuery_section.md)
  + [スケジュールされたイベントを使用した Lambda 関数の呼び出し](example_cross_LambdaScheduledEvents_section.md)