

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 Amazon 软件开发工具包的 Amazon ECR 的代码示例
<a name="service_code_examples"></a>

以下代码示例展示了如何将 Amazon ECR 与 Amazon 软件开发套件 (SDK) 一起使用。

*基本功能*是向您展示如何在服务中执行基本操作的代码示例。

*操作*是大型程序的代码摘录，必须在上下文中运行。您可以通过操作了解如何调用单个服务函数，还可以通过函数相关场景的上下文查看操作。

*场景*是向您展示如何通过在一个服务中调用多个函数或与其他 Amazon Web Services 服务服务结合来完成特定任务的代码示例。

有关 S Amazon DK 开发者指南和代码示例的完整列表，请参阅[将 Amazon ECR 与软件开发工具包配合 Amazon 使用](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)