ALIYUN::ACTIONTRAIL::Trail is used to create a trail to deliver events to Simple Log Service or Object Storage Service (OSS).
Syntax
{
"Type": "ALIYUN::ACTIONTRAIL::Trail",
"Properties": {
"Name": String,
"OssBucketName": String,
"RoleName": String,
"OssKeyPrefix": String,
"EventRW": String,
"SlsProjectArn": String,
"SlsWriteRoleArn": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Name | String | Yes | No | The trail name. | The name must be 6 to 36 characters in length. The name must start with a letter and can contain letters, digits, hyphens (-), and underscores (_). Note The name must be unique within an Alibaba Cloud account. |
OssBucketName | String | No | Yes | The name of the OSS bucket to which you want to deliver events. | The name must be 3 to 63 characters in length. The name must start with a lowercase letter or a digit and can contain lowercase letters, digits, and hyphens (-). Note
|
RoleName | String | No | Yes | The service-linked role that is assumed by ActionTrail. | Default value: AliyunServiceRoleForActionTrail. |
OssKeyPrefix | String | No | Yes | The name prefix of objects where you want to store delivered events in the OSS bucket. | The prefix must be 6 to 32 characters in length. The prefix must start with a letter and can contain letters, digits, hyphens (-), forward slashes (/), and underscores (_). |
EventRW | String | No | Yes | The read/write type of the events that you want to deliver. | Valid values:
|
SlsProjectArn | String | No | Yes | The Alibaba Cloud Resource Name (ARN) of the Simple Log Service project to which you want to deliver events. | Make sure that a project and a Logstore of Simple Log Service are created. You must specify the name of a Logstore in the following format: For more information, see Create a project and Create a Logstore. Note You must specify at least one of OssBucketName and SlsProjectArn. |
SlsWriteRoleArn | String | No | Yes | The ARN of the role that is assumed by ActionTrail to deliver events to the Simple Log Service project. | None. |
Return values
Fn::GetAtt
Name: the trail name.