

Doc AWS SDK Examples GitHub リポジトリには、他にも SDK の例があります。 [AWS](https://github.com/awsdocs/aws-doc-sdk-examples)

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

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

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

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

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

**その他のリソース**
+  **[CloudFront デベロッパーガイド](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html)** — CloudFront に関する詳細情報。
+ **[ClouFront API リファレンス](https://docs.aws.amazon.com/cloudfront/latest/APIReference/Welcome.html)** — 使用可能なすべての CloudFront アクションに関する詳細。
+ **[AWS デベロッパーセンター](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23cloudfront)** – カテゴリまたは全文検索でフィルタリングできるコード例。
+ **[AWS SDK の例](https://github.com/awsdocs/aws-doc-sdk-examples)** – 完全なコードを優先言語で含む GitHub リポジトリ。コードの設定と実行に関する説明が記載されています。

**Contents**
+ [基本](cloudfront_code_examples_basics.md)
  + [アクション](cloudfront_code_examples_actions.md)
    + [`CreateDistribution`](cloudfront_example_cloudfront_CreateDistribution_section.md)
    + [`CreateFunction`](cloudfront_example_cloudfront_CreateFunction_section.md)
    + [`CreateInvalidation`](cloudfront_example_cloudfront_CreateInvalidation_section.md)
    + [`CreateKeyGroup`](cloudfront_example_cloudfront_CreateKeyGroup_section.md)
    + [`CreatePublicKey`](cloudfront_example_cloudfront_CreatePublicKey_section.md)
    + [`DeleteDistribution`](cloudfront_example_cloudfront_DeleteDistribution_section.md)
    + [`GetCloudFrontOriginAccessIdentity`](cloudfront_example_cloudfront_GetCloudFrontOriginAccessIdentity_section.md)
    + [`GetCloudFrontOriginAccessIdentityConfig`](cloudfront_example_cloudfront_GetCloudFrontOriginAccessIdentityConfig_section.md)
    + [`GetDistribution`](cloudfront_example_cloudfront_GetDistribution_section.md)
    + [`GetDistributionConfig`](cloudfront_example_cloudfront_GetDistributionConfig_section.md)
    + [`ListCloudFrontOriginAccessIdentities`](cloudfront_example_cloudfront_ListCloudFrontOriginAccessIdentities_section.md)
    + [`ListDistributions`](cloudfront_example_cloudfront_ListDistributions_section.md)
    + [`UpdateDistribution`](cloudfront_example_cloudfront_UpdateDistribution_section.md)
+ [シナリオ](cloudfront_code_examples_scenarios.md)
  + [マルチテナントディストリビューションとディストリビューションテナントを作成する](cloudfront_example_cloudfront_CreateSaasResources_section.md)
  + [署名リソースを削除する](cloudfront_example_cloudfront_DeleteSigningResources_section.md)
  + [基本的な CloudFront ディストリビューションの開始方法](cloudfront_example_cloudfront_GettingStarted_section.md)
  + [WAF の使用開始](cloudfront_example_wafv2_GettingStarted_052_section.md)
  + [URL および cookies に署名する](cloudfront_example_cloudfront_CloudFrontUtilities_section.md)
+ [CloudFront Functions の例](cloudfront_code_examples_cloudfront_functions_examples.md)
  + [HTTP セキュリティヘッダーを追加する](cloudfront_example_cloudfront_functions_add_security_headers_section.md)
  + [CORS ヘッダーを追加する](cloudfront_example_cloudfront_functions_add_cors_header_section.md)
  + [キャッシュコントロールヘッダーを追加する](cloudfront_example_cloudfront_functions_add_cache_control_header_section.md)
  + [実際のクライアント IP ヘッダーを追加する](cloudfront_example_cloudfront_functions_add_true_client_ip_header_section.md)
  + [オリジンヘッダーを追加する](cloudfront_example_cloudfront_functions_add_origin_header_section.md)
  + [index.html をリクエスト URL に追加する](cloudfront_example_cloudfront_functions_url_rewrite_single_page_apps_section.md)
  + [クエリ文字列パラメータの正規化](cloudfront_example_cloudfront_functions_normalize_query_string_parameters_section.md)
  + [新しい URL にリダイレクトする](cloudfront_example_cloudfront_functions_redirect_based_on_country_section.md)
  + [リクエスト URI を書き換える](cloudfront_example_cloudfront_functions_kvs_conditional_read_section.md)
  + [ビューワーにより近いオリジンを選択する](cloudfront_example_cloudfront_functions_select_origin_based_on_country_section.md)
  + [キーと値のペアを使用する](cloudfront_example_cloudfront_functions_kvs_key_value_pairs_section.md)
  + [シンプルなトークンを検証する](cloudfront_example_cloudfront_functions_kvs_jwt_verify_section.md)