

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

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

下列程式碼範例示範如何使用 AWS SDKs 執行個別 Amazon ECR 動作。每個範例均包含 GitHub 的連結，您可以在連結中找到設定和執行程式碼的相關說明。

這些摘錄會呼叫 Amazon ECR API，是必須在內容中執行之大型程式的程式碼摘錄。您可以在 [使用 AWS SDKs Amazon ECR 案例](service_code_examples_scenarios.md) 中查看內容中的動作。

 下列範例僅包含最常使用的動作。如需完整清單，請參閱《[Amazon Elastic Container Registry API 參考](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)