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.
-
如需詳API細資訊,請參閱AWS CLI 指令參考UpdateRepositoryDescription
中的。
-
- PowerShell
-
- 適用的工具 PowerShell
-
範例 1:此範例會變更指定存放庫的描述。
Update-CCRepositoryDescription -RepositoryName MyDemoRepo -RepositoryDescription "This is an updated description."
-
如需詳API細資訊,請參閱AWS Tools for PowerShell 指令程UpdateRepositoryDescription式參考中的。
-
UpdateDefaultBranch
UpdateRepositoryName