All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::CDN::StagingConfig

更新時間:Apr 09, 2026

The ALIYUN::CDN::StagingConfig type specifies the staging configuration for a CDN domain name.

Syntax

{
  "Type": "ALIYUN::CDN::StagingConfig",
  "Properties": {
    "DomainName": String,
    "Functions": List
  }
}

Properties

Parameter

Type

Required

Update allowed

Description

Constraint

DomainName

String

Yes

No

The CDN-accelerated domain name.

None

Functions

List

Yes

No

The list of functions and their arguments for the staging configuration.

The format is as follows:

Note

  • functionName: The name of the function. For a list of configurable functions, see Configurable Functions.

  • argName: The name of a function argument. A function can have multiple arguments.

  • argValue: The value of the function argument.

Example:

[
  {
    "functionArgs": [
      {
        "argName": "Function Argument A",
        "argValue": "Value for Function Argument A"
      },
      {
        "argName": "Function Argument B",
        "argValue": "Value for Function Argument B"
      }
    ],
    "functionName": "SampleFunctionName"
  }
]

Return values

Fn::GetAtt

  • FunctionName: The function name.

  • ConfigId: The staging configuration ID.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainName:
    Type: String
    Description: The CDN-accelerated domain name.
    Required: true
  Functions:
    AssociationPropertyMetadata: {}
    AssociationProperty: List[Parameters]
    Type: Json
    Description: The list of functions and their arguments for the staging configuration.
    Required: true
Resources:
  StagingConfig:
    Type: ALIYUN::CDN::StagingConfig
    Properties:
      DomainName:
        Ref: DomainName
      Functions:
        Ref: Functions
Outputs:
  FunctionName:
    Description: The function name.
    Value:
      Fn::GetAtt:
        - StagingConfig
        - FunctionName
  ConfigId:
    Description: The staging configuration ID.
    Value:
      Fn::GetAtt:
        - StagingConfig
        - ConfigId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainName": {
      "Type": "String",
      "Description": "The CDN-accelerated domain name.",
      "Required": true
    },
    "Functions": {
      "AssociationPropertyMetadata": {},
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": "The list of functions and their arguments for the staging configuration.",
      "Required": true
    }
  },
  "Resources": {
    "StagingConfig": {
      "Type": "ALIYUN::CDN::StagingConfig",
      "Properties": {
        "DomainName": {
          "Ref": "DomainName"
        },
        "Functions": {
          "Ref": "Functions"
        }
      }
    }
  },
  "Outputs": {
    "FunctionName": {
      "Description": "The function name.",
      "Value": {
        "Fn::GetAtt": [
          "StagingConfig",
          "FunctionName"
        ]
      }
    },
    "ConfigId": {
      "Description": "The staging configuration ID.",
      "Value": {
        "Fn::GetAtt": [
          "StagingConfig",
          "ConfigId"
        ]
      }
    }
  }
}