

# 使用已与您共享的第三方私有扩展
<a name="registry-private"></a>

要使用已与您共享的第三方私有扩展，您必须先使用 CloudFormation 在要使用这些扩展的账户和区域中进行*注册*。注册扩展会将其副本上传到您账户中的 CloudFormation 注册表并激活它。注册私有扩展后，其会在该 AWS 账户和区域的 CloudFormation 注册表中显示，您可以在堆栈模板中使用该扩展。

**Topics**
+ [用于注册第三方私有扩展的 IAM 权限](#registry-register-permissions)
+ [处理私有扩展的常用 AWS CLI 命令](#registry-commonly-used-commands-private-extensions)
+ [在您的账户中注册第三方私有扩展。](registry-register-private-extension.md)
+ [从您的账户中删除第三方私有扩展](registry-private-deregister-extension.md)

## 用于注册第三方私有扩展的 IAM 权限
<a name="registry-register-permissions"></a>

作为注册私有扩展的一部分，您可指定一个包含扩展项目包的 Amazon S3 存储桶。此项目包中包含您要注册的扩展必需的所有源文件。注册扩展的用户必须能够访问 Amazon S3 存储桶中的项目包。为此，用户必须具有扩展包的 [https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) 权限。

无论您是使用 AWS CLI 的 [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/register-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/register-type.html) 命令还是 CloudFormation CLI 的 [https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-cli-submit.html](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-cli-submit.html) 命令，都是如此。

有关更多信息，请参阅*《Service Authorization Reference》*中的 [Actions, resources, and condition keys for Amazon S3](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html)。

## 处理私有扩展的常用 AWS CLI 命令
<a name="registry-commonly-used-commands-private-extensions"></a>

处理私有扩展的常用命令包括：
+  [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/register-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/register-type.html) 可在您的账户中注册私人扩展。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-type-registration.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-type-registration.html) 可返回注册请求的当前状态。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-types.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-types.html) 可列出您账户中的扩展。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-type.html) 可返回有关特定扩展或特定扩展版本的详细信息，包括当前配置数据。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/set-type-configuration.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/set-type-configuration.html) 可指定您账户中扩展的配置数据，以及禁用和启用挂钩。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/set-type-default-version.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/set-type-default-version.html) 可指定哪个扩展版本是默认版本。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/deregister-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/deregister-type.html) 可删除您账户中的私有扩展或扩展版本。