Nama template
ACS-VPC-BulkyEnableDeletionProtection
Deskripsi template
Mengaktifkan fitur perlindungan penghapusan untuk beberapa Virtual Private Cloud (VPC) sekaligus.
Tipe template
Otomatis
Pemilik
Alibaba Cloud
Parameter input
Parameter | Deskripsi | Tipe | Diperlukan | Nilai default | Batasan |
instanceIds | ID dari VPC. | Daftar | Ya | ||
regionId | ID wilayah. | String | Tidak | {{ ACS::RegionId }} | |
type | Tipe dari instans yang ingin Anda aktifkan fitur perlindungan penghapusannya. | String | Tidak | NATGW | |
protectionEnable | Menentukan apakah akan mengaktifkan fitur perlindungan penghapusan. | Boolean | Tidak | True | |
rateControl | Pengaturan kontrol laju. | Json | Tidak | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | Peran Resource Access Management (RAM) yang diasumsikan oleh CloudOps Orchestration Service (OOS). | String | Tidak | "" |
Parameter output
Tidak ada
Kebijakan izin yang diperlukan untuk mengeksekusi template
{
"Version": "1",
"Statement": [
{
"Action": [
"vpc:DeletionProtection"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Referensi
Untuk informasi lebih lanjut, lihat ACS-VPC-BulkyEnableDeletionProtection di GitHub.
Isi Template
FormatVersion: OOS-2019-06-01
Description:
en: Bulky enable deletion protection for instances
name-en: ACS-VPC-BulkyEnableDeletionProtection
categories:
- security
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
type:
Label:
en: Type
Type: String
AllowedValues:
- EIP
- CBWP
- NATGW
Default: NATGW
instanceIds:
Label:
en: InstanceIds
Type: List
protectionEnable:
Label:
en: ProtectionEnable
Type: Boolean
Default: true
rateControl:
Label:
en: RateControl
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: enableDeletionProtection
Action: 'ACS::ExecuteApi'
Description:
en: Enables deletion protection for an instance
Properties:
Service: VPC
API: DeletionProtection
Parameters:
RegionId: '{{ regionId }}'
Type: '{{ type }}'
InstanceId: '{{ ACS::TaskLoopItem }}'
ProtectionEnable: '{{ protectionEnable }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ instanceIds }}'