Use the ALIYUN::ACTIONTRAIL::HistoryDeliveryJob resource to create a history delivery job.
Syntax
{
"Type": "ALIYUN::ACTIONTRAIL::HistoryDeliveryJob",
"Properties": {
"TrailName": String
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
TrailName |
String |
Yes |
No |
The name of the trail. |
None |
Return values
Fn::GetAtt
JobId: The ID of the history delivery job.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TrailName:
Type: String
Description:
en: The name of the trail.
zh: 跟踪的名称。
Required: true
Resources:
HistoryDeliveryJob:
Type: ALIYUN::ACTIONTRAIL::HistoryDeliveryJob
Properties:
TrailName:
Ref: TrailName
Outputs:
JobId:
Description:
en: The ID of the history delivery job.
zh: 历史投递任务的ID。
Value:
Fn::GetAtt:
- HistoryDeliveryJob
- JobId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TrailName": {
"Type": "String",
"Description": {
"en": "The name of the trail.",
"zh": "跟踪的名称。"
},
"Required": true
}
},
"Resources": {
"HistoryDeliveryJob": {
"Type": "ALIYUN::ACTIONTRAIL::HistoryDeliveryJob",
"Properties": {
"TrailName": {
"Ref": "TrailName"
}
}
}
},
"Outputs": {
"JobId": {
"Description": {
"en": "The ID of the history delivery job.",
"zh": "历史投递任务的ID。"
},
"Value": {
"Fn::GetAtt": [
"HistoryDeliveryJob",
"JobId"
]
}
}
}
}