ALIYUN::VPC::VpcPeerConnection digunakan untuk membuat koneksi peering antara virtual private cloud (VPC).
Sintaks
{
"Type": "ALIYUN::VPC::VpcPeerConnection",
"Properties": {
"Description": String,
"DeletionForce": Boolean,
"AcceptingVpcId": String,
"VpcId": String,
"AcceptingRegionId": String,
"AcceptingAliUid": Integer,
"Name": String,
"ResourceGroupId": String,
"Bandwidth": Integer,
"LinkType": String
}
}Properti
Properti | Tipe | Wajib | Dapat Diedit | Deskripsi | Batasan |
Description | String | Tidak | Ya | Deskripsi koneksi peering VPC. | Panjang deskripsi harus antara 2 hingga 256 karakter. Deskripsi harus dimulai dengan huruf atau karakter Tionghoa, dan tidak boleh diawali dengan |
DeletionForce | Boolean | Tidak | Ya | Menentukan apakah koneksi peering VPC akan dihapus secara paksa. | Nilai yang valid:
|
AcceptingVpcId | String | Ya | Tidak | ID VPC penerima. | ID VPC penerima harus berbeda dari ID VPC peminta. |
VpcId | String | Ya | Tidak | ID VPC peminta. | Tidak ada. |
AcceptingRegionId | String | Tidak | Tidak | ID wilayah VPC penerima. | Nilai yang valid:
|
AcceptingAliUid | Integer | Tidak | Tidak | ID akun Alibaba Cloud tempat VPC penerima berada. | Nilai yang valid:
Catatan Jika VPC penerima dimiliki oleh pengguna Resource Access Management (RAM), tentukan ID akun Alibaba Cloud tempat pengguna RAM tersebut berada. |
Name | String | Tidak | Ya | Nama koneksi peering VPC. | Panjang nama harus antara 2 hingga 128 karakter, dan dapat berisi angka, garis bawah (_), serta tanda hubung (-). Nama harus dimulai dengan huruf. |
ResourceGroupId | String | Tidak | Tidak | ID kelompok sumber daya. | Tidak ada |
Bandwidth | Integer | Tidak | Tidak | Bandwidth koneksi peering VPC. | Unit: Mbps. Nilainya harus berupa bilangan bulat lebih besar dari 0. Catatan Parameter ini hanya berlaku untuk koneksi peering VPC antar-wilayah. |
LinkType | String | Tidak | Tidak | Tipe tautan. | Nilai yang valid:
|
Nilai kembalian
Fn::GetAtt
InstanceId: ID instans tempat koneksi peering VPC dibuat.
Contoh
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AcceptingVpcId:
Type: String
Description: The ID of the acceptor VPC.
VpcId:
Type: String
Description: The ID of the requester VPC.
Resources:
VpcPeerConnection:
Type: ALIYUN::VPC::VpcPeerConnection
Properties:
AcceptingVpcId:
Ref: AcceptingVpcId
VpcId:
Ref: VpcId
Outputs:
InstanceId:
Description: The instance ID of the VPC peering connection.
Value:
Fn::GetAtt:
- VpcPeerConnection
- InstanceId{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AcceptingVpcId": {
"Type": "String",
"Description": "The ID of the acceptor VPC."
},
"VpcId": {
"Type": "String",
"Description": "The ID of the requester VPC."
}
},
"Resources": {
"VpcPeerConnection": {
"Type": "ALIYUN::VPC::VpcPeerConnection",
"Properties": {
"AcceptingVpcId": {
"Ref": "AcceptingVpcId"
},
"VpcId": {
"Ref": "VpcId"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "The instance ID of the VPC peering connection.",
"Value": {
"Fn::GetAtt": [
"VpcPeerConnection",
"InstanceId"
]
}
}
}
}