Use the ALIYUN::CDN::SubTask resource to create a custom report task.
Syntax
{
"Type": "ALIYUN::CDN::SubTask",
"Properties": {
"ReportIds": List,
"DomainName": String
}
}
Properties
|
Parameter |
Type |
Required |
Updatable |
Description |
Constraints |
|
ReportIds |
List |
Yes |
Yes |
The IDs of the reports to generate. |
Length: 1 to 12. Valid values:
|
|
DomainName |
String |
No |
Yes |
The domain name for which the reports are generated. |
None |
Return values
Fn::GetAtt
This resource does not return any attributes.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DomainName:
Type: String
Description: The domain name.
Required: false
ReportIds:
AssociationPropertyMetadata:
Parameter:
Type: String
Description: The report ID.
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description: |-
The report IDs.
The value can be up to 128 bytes in length.
Required: true
MinLength: 1
MaxLength: 12
Resources:
SubTask:
Type: ALIYUN::CDN::SubTask
Properties:
DomainName:
Ref: DomainName
ReportIds:
Ref: ReportIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DomainName": {
"Type": "String",
"Description": "The domain name.",
"Required": false
},
"ReportIds": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Description": "The report ID.",
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": "The report IDs.\nThe value can be up to 128 bytes in length.",
"Required": true,
"MinLength": 1,
"MaxLength": 12
}
},
"Resources": {
"SubTask": {
"Type": "ALIYUN::CDN::SubTask",
"Properties": {
"DomainName": {
"Ref": "DomainName"
},
"ReportIds": {
"Ref": "ReportIds"
}
}
}
}
}