ALIYUN::CDN::DomainConfig is used to add multiple domain name settings.

Syntax

{
  "Type": "ALIYUN::CDN::DomainConfig",
  "Properties": {
    "Functions": String,
    "DomainNames": String
  }
}

Properties

Property Type Required Editable Description Constraint
Functions String Yes No The list of functions. None
DomainNames String Yes No The accelerated domain names. Separate multiple domain names with commas (,). None

Functions syntax

[{
  "functionArgs": [{
    "argName": "domain_name",
    "argValue": "example.com"
  }],
  "functionName": "set_req_host_header"
}]

You can set certain functions, such as filetype_based_ttl_set, in multiple configuration records. To update one of the configuration records, use the configId parameter to identify that record.

[{
  "functionArgs": [{
    "argName": "file_type",
    "argValue": "jpg"
  }, {
    "argName": "ttl",
    "argValue": "18"
  }, {
    "argName": "weight",
    "argValue": "30"
  }],
  "functionName": "filetype_based_ttl_set",
  "configId": 5068****
}]

Response parameters

Fn::GetAtt

None

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "DomainConfig": {
      "Type": "ALIYUN::CDN::DomainConfig",
      "Properties": {
        "Functions": {
          "Ref": "Functions"
        },
        "DomainNames": {
          "Ref": "DomainNames"
        }
      }
    }
  },
  "Parameters": {
    "Functions": {
      "Type": "String",
      "Description": "function list"
    },
    "DomainNames": {
      "Type": "String",
      "Description": "Your accelerated domain name, separated by commas in English."
    }
  },
  "Outputs": {}
}