ALIYUN::PVTZ::UserVpcAuthorization is used to associate virtual private clouds (VPCs) across accounts.
Syntax
{
"Type": "ALIYUN::PVTZ::UserVpcAuthorization",
"Properties": {
"AuthCode": String,
"AuthChannel": String,
"AuthorizedUserId": String,
"AuthType": String,
"IgnoreDeletionForbidden": Boolean
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
AuthCode | String | No | No | The verification code. | This property is required when the AuthChannel property is set to AUTH_CODE or left empty. |
AuthChannel | String | No | No | The authorization channel. | Default value: AUTH_CODE. Valid values:
|
AuthorizedUserId | String | Yes | No | The ID of the Alibaba Cloud account to which you want to grant permissions. | None |
AuthType | String | No | No | The authorization type. | Set the value to NORMAL. The value specifies that only regular permissions are granted. |
IgnoreDeletionForbidden | Boolean | No | Yes | Indicates whether to ignore deletion protection. | Valid values:
|
Return values
Fn::GetAtt
- AuthorizedUserId: the ID of the Alibaba Cloud account to which you want to grant permissions.
- AuthType: the authorization type.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "UserVpcAuthorization": { "Type": "ALIYUN::PVTZ::UserVpcAuthorization", "Properties": { "AuthCode": "12hsj839", "AuthChannel": "AUTH_CODE", "AuthorizedUserId": { "Ref": "ALIYUN::AccountId" }, "AuthType": "NORMAL" } } }, "Outputs": { "AuthorizedUserId": { "Description": "The account ID of the user who authorizes the resource.", "Value": { "Fn::GetAtt": [ "UserVpcAuthorization", "AuthorizedUserId" ] } }, "AuthType": { "Description": "Authorization type.", "Value": { "Fn::GetAtt": [ "UserVpcAuthorization", "AuthType" ] } } } }