搭UpdateRepositoryDescription配 AWS SDK或使用 CLI - AWS SDK 程式碼範例

AWS 文檔 AWS SDK示例 GitHub 回購中有更多SDK示例

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

UpdateRepositoryDescription配 AWS SDK或使用 CLI

下列程式碼範例會示範如何使用UpdateRepositoryDescription

CLI
AWS CLI

若要變更存放庫的描述

此範例會變更 AWS CodeCommit 存放庫的描述。只有在發生錯誤時,此命令才會產生輸出。

命令:

aws codecommit update-repository-description --repository-name MyDemoRepo --repository-description "This description was changed"

輸出:

None.
PowerShell
適用的工具 PowerShell

範例 1:此範例會變更指定存放庫的描述。

Update-CCRepositoryDescription -RepositoryName MyDemoRepo -RepositoryDescription "This is an updated description."