

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 AWS SDKs Amazon ECR 程式碼範例
<a name="service_code_examples"></a>

下列程式碼範例示範如何搭配 AWS 軟體開發套件 (SDK) 使用 Amazon ECR。

*基本概念*是程式碼範例，這些範例說明如何在服務內執行基本操作。

*Actions* 是大型程式的程式碼摘錄，必須在內容中執行。雖然動作會告訴您如何呼叫個別服務函數，但您可以在其相關情境中查看內容中的動作。

*案例*是向您展示如何呼叫服務中的多個函數或與其他 AWS 服務組合來完成特定任務的程式碼範例。

如需 AWS SDK 開發人員指南和程式碼範例的完整清單，請參閱 [搭配 SDK 使用 Amazon ECR AWS](sdk-general-information-section.md)。此主題也包含有關入門的資訊和舊版 SDK 的詳細資訊。

**Contents**
+ [基本概念](service_code_examples_basics.md)
  + [Hello Amazon ECR](example_ecr_Hello_section.md)
  + [了解基本概念](example_ecr_Scenario_RepositoryManagement_section.md)
  + [動作](service_code_examples_actions.md)
    + [`CreateRepository`](example_ecr_CreateRepository_section.md)
    + [`DeleteRepository`](example_ecr_DeleteRepository_section.md)
    + [`DescribeImages`](example_ecr_DescribeImages_section.md)
    + [`DescribeRepositories`](example_ecr_DescribeRepositories_section.md)
    + [`GetAuthorizationToken`](example_ecr_GetAuthorizationToken_section.md)
    + [`GetRepositoryPolicy`](example_ecr_GetRepositoryPolicy_section.md)
    + [`ListImages`](example_ecr_ListImages_section.md)
    + [`PushImageCmd`](example_ecr_PushImageCmd_section.md)
    + [`PutLifeCyclePolicy`](example_ecr_PutLifeCyclePolicy_section.md)
    + [`SetRepositoryPolicy`](example_ecr_SetRepositoryPolicy_section.md)
    + [`StartLifecyclePolicyPreview`](example_ecr_StartLifecyclePolicyPreview_section.md)
+ [案例](service_code_examples_scenarios.md)
  + [Amazon ECR 入門](example_ecr_GettingStarted_078_section.md)