Class Trail
Provides a new resource to manage Action Trail.
NOTE: Available in 1.35.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
// Create a new action trail.
var foo = new AliCloud.ActionTrail.Trail("foo", new AliCloud.ActionTrail.TrailArgs
{
EventRw = "Write-test",
OssBucketName = alicloud_oss_bucket.Bucket.Id,
OssKeyPrefix = "at-product-account-audit-B",
RoleName = alicloud_ram_role_policy_attachment.Attach.Role_name,
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.ActionTrail
Assembly: Pulumi.AliCloud.dll
Syntax
public class Trail : CustomResource
Constructors
View SourceTrail(String, TrailArgs, CustomResourceOptions)
Create a Trail resource with the given unique name, arguments, and options.
Declaration
public Trail(string name, TrailArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TrailArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEventRw
Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default value: Write.
Declaration
public Output<string> EventRw { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the trail to be created, which must be unique for an account.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OssBucketName
The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.
Declaration
public Output<string> OssBucketName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OssKeyPrefix
The prefix of the specified OSS bucket name. This parameter can be left empty.
Declaration
public Output<string> OssKeyPrefix { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RoleName
The RAM role in ActionTrail permitted by the user.
Declaration
public Output<string> RoleName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SlsProjectArn
The unique ARN of the Log Service project.
Declaration
public Output<string> SlsProjectArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SlsWriteRoleArn
The unique ARN of the Log Service role.
Declaration
public Output<string> SlsWriteRoleArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, TrailState, CustomResourceOptions)
Get an existing Trail resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Trail Get(string name, Input<string> id, TrailState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TrailState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Trail |