すべてのプロダクト
Search
ドキュメントセンター

CloudOps Orchestration Service:ACS-VPC-BulkyEnableDeletionProtection

最終更新日:Jan 17, 2025

テンプレート名

ACS-VPC-BulkyEnableDeletionProtection

今すぐ実行

テンプレートの説明

複数の仮想プライベートクラウド ( VPC ) の削除保護機能を一度に有効にします。

テンプレートの種類

自動化

所有者

Alibaba Cloud

入力パラメーター

パラメーター

説明

種類

必須

デフォルト値

制限

instanceIds

VPC の ID。

リスト

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

type

削除保護機能を有効にするインスタンスの種類。

文字列

いいえ

NATGW

protectionEnable

削除保護機能を有効にするかどうかを指定します。

ブール値

いいえ

True

rateControl

レート制御設定。

JSON

いいえ

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10}

OOSAssumeRole

CloudOps Orchestration Service ( OOS ) によって引き受けられる Resource Access Management ( RAM ) ロール。

文字列

いいえ

""

出力パラメーター

なし

テンプレートを実行するために必要な権限ポリシー

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "vpc:DeletionProtection"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

参照

詳細については、GitHub の ACS-VPC-BulkyEnableDeletionProtection をご参照ください。

テンプレートの内容

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 }}'