Concede autorização entre contas para uma VPC.
Sintaxe
{
"Type": "ALIYUN::PVTZ::UserVpcAuthorization",
"Properties": {
"AuthCode": String,
"AuthChannel": String,
"AuthorizedUserId": String,
"AuthType": String,
"IgnoreDeletionForbidden": Boolean
}
}
Propriedades
| Nome da propriedade | Tipo | Obrigatório | Atualização permitida | Descrição | Restrições |
| AuthCode | String | Não | Não | Código de verificação. | Obrigatório se AuthChannel for definido como AUTH_CODE ou deixado vazio. |
| AuthChannel | String | Não | Não | Canal de autorização. | Valores válidos:
|
| AuthorizedUserId | String | Sim | Não | ID da conta Alibaba Cloud proprietária dos recursos a autorizar. | Nenhuma |
| AuthType | String | Não | Não | Tipo de autorização. | Valor fixo: NORMAL (autorização padrão). |
| IgnoreDeletionForbidden | Boolean | Não | Sim | Defina se a proteção contra exclusão será ignorada. | Valores válidos:
|
Valores de retorno
Fn::GetAtt
AuthorizedUserId: ID da conta Alibaba Cloud que recebeu a autorização.
AuthType: tipo de autorização.
Exemplos
-
Formato
YAMLROSTemplateFormatVersion: '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 -
Formato
JSON{ "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" ] } } } }