全部产品
Search
文档中心

CloudOps Orchestration Service:ACS-KMS-BulkyUpdateRotationPolicy

更新时间:Jun 28, 2025

Nama template

ACS-KMS-BulkyUpdateRotationPolicy

Eksekusi Sekarang

Deskripsi template

Memperbarui kebijakan rotasi kunci.

Tipe template

Otomatis

Pemilik

Alibaba Cloud

Parameter input

Parameter

Deskripsi

Tipe data

Diperlukan

Nilai default

Batasan

keyIds

ID kunci.

Daftar

Ya

rotationInterval

Interval di mana rotasi kunci otomatis dilakukan.

String

Ya

regionId

ID wilayah.

String

Tidak

{{ ACS::RegionId }}

rateControl

Pengaturan kontrol laju.

Json

Tidak

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

OOSAssumeRole

Peran RAM yang diasumsikan oleh CloudOps Orchestration Service (OOS).

String

Tidak

""

Parameter output

Tidak tersedia.

Kebijakan izin yang diperlukan untuk mengeksekusi template

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "kms:UpdateRotationPolicy"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

Referensi

ACS-KMS-BulkyUpdateRotationPolicy

Isi Template

FormatVersion: OOS-2019-06-01
Description:
  en: Update rotation policy
  name-en: ACS-KMS-BulkyUpdateRotationPolicy
  categories:
    - security
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  keyIds:
    Label:
      en: KeyIds
    Type: List
  rotationInterval:
    Label:
      en: RotationInterval
    Type: String
  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: updateRotationPolicy
    Action: 'ACS::ExecuteAPI'
    Description:
      en: Update rotation policy
    Properties:
      Service: KMS
      API: UpdateRotationPolicy
      Parameters:
        RegionId: '{{ regionId }}'
        KeyId: '{{ ACS::TaskLoopItem }}'
        EnableAutomaticRotation: true
        RotationInterval: '{{ rotationInterval }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ keyIds }}'