

# AWS SDK를 사용한 CloudFront 코드 예제
<a name="service_code_examples"></a>

다음 코드 예제에서는 AWS 소프트웨어 개발 키트(SDK)에서 CloudFront를 사용하는 방법을 보여줍니다.

*작업*은 대규모 프로그램에서 발췌한 코드이며 컨텍스트에 맞춰 실행해야 합니다. 작업은 개별 서비스 함수를 직접 호출하는 방법을 보여주며, 관련 시나리오의 컨텍스트에 맞는 작업을 볼 수 있습니다.

*시나리오*는 서비스 내에서 또는 다른 AWS 서비스와 결합된 상태에서 여러 함수를 직접적 호출하여 특정 작업을 수행하는 방법을 보여주는 코드 예제입니다.

AWS SDK 개발자 가이드 및 코드 예제의 전체 목록은 [AWS SDK와 함께 CloudFront 사용](sdk-general-information-section.md)을 참조하세요. 이 주제에는 시작하기에 대한 정보와 이전 SDK 버전에 대한 세부 정보도 포함되어 있습니다.

**Contents**
+ [기본 사항](service_code_examples_basics.md)
  + [작업](service_code_examples_actions.md)
    + [`CreateDistribution`](example_cloudfront_CreateDistribution_section.md)
    + [`CreateFunction`](example_cloudfront_CreateFunction_section.md)
    + [`CreateInvalidation`](example_cloudfront_CreateInvalidation_section.md)
    + [`CreateKeyGroup`](example_cloudfront_CreateKeyGroup_section.md)
    + [`CreatePublicKey`](example_cloudfront_CreatePublicKey_section.md)
    + [`DeleteDistribution`](example_cloudfront_DeleteDistribution_section.md)
    + [`GetCloudFrontOriginAccessIdentity`](example_cloudfront_GetCloudFrontOriginAccessIdentity_section.md)
    + [`GetCloudFrontOriginAccessIdentityConfig`](example_cloudfront_GetCloudFrontOriginAccessIdentityConfig_section.md)
    + [`GetDistribution`](example_cloudfront_GetDistribution_section.md)
    + [`GetDistributionConfig`](example_cloudfront_GetDistributionConfig_section.md)
    + [`ListCloudFrontOriginAccessIdentities`](example_cloudfront_ListCloudFrontOriginAccessIdentities_section.md)
    + [`ListDistributions`](example_cloudfront_ListDistributions_section.md)
    + [`UpdateDistribution`](example_cloudfront_UpdateDistribution_section.md)
+ [시나리오](service_code_examples_scenarios.md)
  + [다중 테넌트 배포 및 배포 테넌트 생성](example_cloudfront_CreateSaasResources_section.md)
  + [서명 리소스 삭제](example_cloudfront_DeleteSigningResources_section.md)
  + [CloudFront 시작하기](example_cloudfront_GettingStarted_section.md)
  + [URL 및 쿠키에 서명](example_cloudfront_CloudFrontUtilities_section.md)
+ [CloudFront Functions 예제](service_code_examples_cloudfront_functions_examples.md)
  + [HTTP 보안 헤더 추가](example_cloudfront_functions_add_security_headers_section.md)
  + [CORS 헤더 추가](example_cloudfront_functions_add_cors_header_section.md)
  + [캐시 제어 헤더 추가](example_cloudfront_functions_add_cache_control_header_section.md)
  + [실제 클라이언트 IP 헤더 추가](example_cloudfront_functions_add_true_client_ip_header_section.md)
  + [오리진 헤더 추가](example_cloudfront_functions_add_origin_header_section.md)
  + [요청 URL에 index.html 추가](example_cloudfront_functions_url_rewrite_single_page_apps_section.md)
  + [쿼리 문자열 파라미터 정규화](example_cloudfront_functions_normalize_query_string_parameters_section.md)
  + [새 URL로 리디렉션](example_cloudfront_functions_redirect_based_on_country_section.md)
  + [요청 URI 재작성](example_cloudfront_functions_kvs_conditional_read_section.md)
  + [뷰어에 더 가까운 오리진 선택](example_cloudfront_functions_select_origin_based_on_country_section.md)
  + [키 값 페어 사용](example_cloudfront_functions_kvs_key_value_pairs_section.md)
  + [단순 토큰 검증](example_cloudfront_functions_kvs_jwt_verify_section.md)