

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

# 使用 Amazon ECR 执行的操作 AWS SDKs
<a name="service_code_examples_actions"></a>

以下代码示例演示了如何使用执行单个 Amazon ECR 操作。 AWS SDKs每个示例都包含一个指向的链接 GitHub，您可以在其中找到有关设置和运行代码的说明。

这些摘录调用 Amazon ECR API，是必须在上下文中运行的大型程序的代码摘录。您可以在[使用 Amazon ECR 的场景 AWS SDKs](service_code_examples_scenarios.md)中结合上下文查看操作。

 以下示例仅包括最常用的操作。有关完整列表，请参阅《[Amazon Elastic Container Registry API Reference](https://docs.aws.amazon.com/AmazonECR/latest/APIReference/Welcome.html)》。

**Topics**
+ [`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)