Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ESA::CustomScenePolicy

Última atualização: Jun 27, 2026

Cria uma política específica para cenários.

Sintaxe

{
  "Type": "ALIYUN::ESA::CustomScenePolicy",
  "Properties": {
    "CustomScenePolicyName": String,
    "CreateTime": String,
    "EndTime": String,
    "Objects": String,
    "Template": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Atualização permitida

Descrição

Restrições

CustomScenePolicyName

String

Sim

Sim

Nome da política.

Nenhuma

CreateTime

String

Sim

Sim

Horário de início da política.

Especifique o horário em UTC no formato yyyy-MM-ddTHH:mm:ssZ (ISO 8601).

EndTime

String

Sim

Sim

Horário de término da política.

Especifique o horário em UTC no formato yyyy-MM-ddTHH:mm:ssZ (ISO 8601).

Objects

String

Sim

Sim

IDs dos sites a serem associados à política.

Separe vários IDs de sites com vírgulas (,).

Nota

Este campo será descontinuado. Use o campo websiteIds. Se websiteIds for especificado, Objects será ignorado. Para evitar ambiguidades durante atualizações, especifique websiteIds ou Objects.

Template

String

Sim

Sim

Nome do modelo.

Valor válido:

  • promotion: Grandes eventos

Valores de retorno

Fn::GetAtt

  • CustomScenePolicyName: Nome da política.

  • EndTime: Horário de expiração da política.

  • CreateTime: Horário de criação da política.

  • Objects: IDs dos sites associados.

  • PolicyId: ID da política.

  • Template: Nome do modelo.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CustomScenePolicyName:
    Type: String
    Description:
      en: The policy name.
    Required: true
  EndTime:
    Type: String
    Description:
      en: |-
        The time when the policy expires.
        The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Required: true
  CreateTime:
    Type: String
    Description:
      en: |-
        The time when the policy takes effect.
        The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Required: true
  Objects:
    Type: String
    Description:
      en: The IDs of the websites that you want to associate with the policy. Separate multiple IDs with commas (,).
    Required: true
  Template:
    Type: String
    Description:
      en: |-
        The name of the policy template. Valid value:
        promotion: major events.
    AllowedValues:
      - promotion
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ESA::CustomScenePolicy
    Properties:
      CustomScenePolicyName:
        Ref: CustomScenePolicyName
      EndTime:
        Ref: EndTime
      CreateTime:
        Ref: CreateTime
      Objects:
        Ref: Objects
      Template:
        Ref: Template
Outputs:
  CustomScenePolicyName:
    Description: The name of the policy.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CustomScenePolicyName
  EndTime:
    Description: The time when the policy expires.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EndTime
  CreateTime:
    Description: The time when the policy takes effect.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  Objects:
    Description: The IDs of websites associated.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Objects
  PolicyId:
    Description: The Id of the Policy.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - PolicyId
  Template:
    Description: The name of the policy template.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Template
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CustomScenePolicyName": {
      "Type": "String",
      "Description": {
        "en": "The policy name."
      },
      "Required": true
    },
    "EndTime": {
      "Type": "String",
      "Description": {
        "en": "The time when the policy expires.\nThe time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC."
      },
      "Required": true
    },
    "CreateTime": {
      "Type": "String",
      "Description": {
        "en": "The time when the policy takes effect.\nThe time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC."
      },
      "Required": true
    },
    "Objects": {
      "Type": "String",
      "Description": {
        "en": "The IDs of the websites that you want to associate with the policy. Separate multiple IDs with commas (,)."
      },
      "Required": true
    },
    "Template": {
      "Type": "String",
      "Description": {
        "en": "The name of the policy template. Valid value:\npromotion: major events."
      },
      "AllowedValues": [
        "promotion"
      ],
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ESA::CustomScenePolicy",
      "Properties": {
        "CustomScenePolicyName": {
          "Ref": "CustomScenePolicyName"
        },
        "EndTime": {
          "Ref": "EndTime"
        },
        "CreateTime": {
          "Ref": "CreateTime"
        },
        "Objects": {
          "Ref": "Objects"
        },
        "Template": {
          "Ref": "Template"
        }
      }
    }
  },
  "Outputs": {
    "CustomScenePolicyName": {
      "Description": "The name of the policy.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CustomScenePolicyName"
        ]
      }
    },
    "EndTime": {
      "Description": "The time when the policy expires.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EndTime"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the policy takes effect.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "Objects": {
      "Description": "The IDs of websites associated.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Objects"
        ]
      }
    },
    "PolicyId": {
      "Description": "The Id of the Policy.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "PolicyId"
        ]
      }
    },
    "Template": {
      "Description": "The name of the policy template.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Template"
        ]
      }
    }
  }
}