ALIYUN::PVTZ::UserVpcAuthorization digunakan untuk mengaitkan virtual private cloud (VPC) lintas akun.
Sintaksis
{
"Type": "ALIYUN::PVTZ::UserVpcAuthorization",
"Properties": {
"AuthCode": String,
"AuthChannel": String,
"AuthorizedUserId": String,
"AuthType": String,
"IgnoreDeletionForbidden": Boolean
}
}Properti
| Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Batasan |
| AuthCode | String | Tidak | Tidak | Kode verifikasi. | Properti ini diperlukan ketika properti AuthChannel diatur ke AUTH_CODE atau dibiarkan kosong. |
| AuthChannel | String | Tidak | Tidak | Saluran otorisasi. | Nilai default: AUTH_CODE. Nilai yang valid:
|
| AuthorizedUserId | String | Ya | Tidak | ID akun Alibaba Cloud kepada siapa Anda ingin memberikan izin. | Tidak ada |
| AuthType | String | Tidak | Tidak | Jenis otorisasi. | Atur nilainya ke NORMAL. Nilai tersebut menentukan bahwa hanya izin reguler yang diberikan. |
| IgnoreDeletionForbidden | Boolean | Tidak | Ya | Menunjukkan apakah akan mengabaikan perlindungan penghapusan. | Nilai yang valid:
|
Nilai Pengembalian
Fn::GetAtt
- AuthorizedUserId: ID akun Alibaba Cloud kepada siapa Anda ingin memberikan izin.
- AuthType: jenis otorisasi.
Contoh
JSONformat{ "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" ] } } } }