All Products
Search
Document Center

CloudOps Orchestration Service:ACS-WAF-BulkyModifyProtectionModuleStatus

Last Updated:Dec 27, 2024

Template name

ACS-WAF-BulkyModifyProtectionModuleStatus

Execute Now

Template description

Enables a Web Application Firewall (WAF) protection module.

Template type

Automated

Owner

Alibaba Cloud

Input parameters

Parameter

Description

Type

Required

Default value

Limit

domains

The domain names.

List

Yes

instanceId

The ID of the WAF instance.

String

Yes

defenseType

The WAF protection module that you want to enable.

String

Yes

regionId

The region ID.

String

No

{{ ACS::RegionId }}

rateControl

The rate control settings.

Json

No

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

OOSAssumeRole

The Resource Access Management (RAM) role that is assumed by CloudOps Orchestration Service (OOS).

String

No

""

Output parameters

None

Permission policy that is required to execute the template

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "waf-openapi:ModifyProtectionModuleStatus"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

References

For more information, see ACS-WAF-BulkyModifyProtectionModuleStatus at GitHub.

Template content

FormatVersion: OOS-2019-06-01
Description:
  en: Modify protection module status
  name-en: ACS-WAF-BulkyModifyProtectionModuleStatus
  categories:
    - security
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  domains:
    Type: List
    Label:
      en: Domains
  instanceId:
    Label:
      en: InstanceId
    Type: String
  defenseType:
    Label:
      en: DefenseType
    Type: String
    AllowedValues:
      - waf
      - ac_cc
      - tamperproof
  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: modifyProtectionModuleStatus
    Action: ACS::ExecuteAPI
    Description:
      en: Modify protection module status
    Properties:
      Service: WAF-OPENAPI
      API: ModifyProtectionModuleStatus
      Parameters:
        RegionId: '{{ regionId }}'
        DefenseType: '{{ defenseType }}'
        Domain: '{{ ACS::TaskLoopItem }}'
        InstanceId: '{{ instanceId }}'
        ModuleStatus: 1
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ domains }}'