The ALIYUN::CDN::FcTrigger resource adds a Function Compute trigger.
Syntax
{
"Type": "ALIYUN::CDN::FcTrigger",
"Properties": {
"EventMetaName": String,
"EventMetaVersion": String,
"Notes": String,
"RoleARN": String,
"SourceARN": String,
"TriggerARN": String,
"FunctionARN": String
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraint |
|
EventMetaName |
String |
Yes |
No |
Specifies the event metadata name. |
None |
|
EventMetaVersion |
String |
Yes |
No |
Specifies the event metadata version. |
None |
|
Notes |
String |
Yes |
No |
Specifies notes about the trigger. |
None |
|
RoleARN |
String |
Yes |
No |
Specifies the role ARN. |
None |
|
SourceARN |
String |
Yes |
No |
Specifies the source ARN. |
None |
|
TriggerARN |
String |
Yes |
No |
Specifies the trigger ARN. |
None |
|
FunctionARN |
String |
No |
No |
Specifies the function ARN. |
None |
Return values
Fn::GetAtt
No returned attributes.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TriggerARN:
Type: String
Description: The trigger ARN.
Required: true
EventMetaName:
Type: String
Description: The event metadata name.
Required: true
SourceARN:
Type: String
Description: The source ARN.
Required: true
EventMetaVersion:
Type: String
Description: The event metadata version.
Required: true
RoleARN:
Type: String
Description: The role ARN.
Required: true
Notes:
Type: String
Description: Notes about the trigger.
Required: true
Resources:
FcTrigger:
Type: ALIYUN::CDN::FcTrigger
Properties:
TriggerARN:
Ref: TriggerARN
EventMetaName:
Ref: EventMetaName
SourceARN:
Ref: SourceARN
EventMetaVersion:
Ref: EventMetaVersion
RoleARN:
Ref: RoleARN
Notes:
Ref: Notes
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TriggerARN": {
"Type": "String",
"Description": "The trigger ARN.",
"Required": true
},
"EventMetaName": {
"Type": "String",
"Description": "The event metadata name.",
"Required": true
},
"SourceARN": {
"Type": "String",
"Description": "The source ARN.",
"Required": true
},
"EventMetaVersion": {
"Type": "String",
"Description": "The event metadata version.",
"Required": true
},
"RoleARN": {
"Type": "String",
"Description": "The role ARN.",
"Required": true
},
"Notes": {
"Type": "String",
"Description": "Notes about the trigger.",
"Required": true
}
},
"Resources": {
"FcTrigger": {
"Type": "ALIYUN::CDN::FcTrigger",
"Properties": {
"TriggerARN": {
"Ref": "TriggerARN"
},
"EventMetaName": {
"Ref": "EventMetaName"
},
"SourceARN": {
"Ref": "SourceARN"
},
"EventMetaVersion": {
"Ref": "EventMetaVersion"
},
"RoleARN": {
"Ref": "RoleARN"
},
"Notes": {
"Ref": "Notes"
}
}
}
}
}
该文章对您有帮助吗?