Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

Trail

Provides a ActionTrail Trail resource. For information about alicloud actiontrail trail and how to use it, see What is Resource Alicloud ActionTrail Trail.

NOTE: Available in 1.95.0+

NOTE: You can create a trail to deliver events to Log Service, Object Storage Service (OSS), or both. Before you call this operation to create a trail, make sure that the following requirements are met.

  • Deliver events to Log Service: A project is created in Log Service.
  • Deliver events to OSS: A bucket is created in OSS.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new actiontrail trail.
        var @default = new AliCloud.ActionTrail.Trail("default", new AliCloud.ActionTrail.TrailArgs
        {
            EventRw = "All",
            OssBucketName = "bucket_name",
            OssWriteRoleArn = "acs:ram::1182725xxxxxxxxxxx",
            TrailName = "action-trail",
            TrailRegion = "cn-hangzhou",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/actiontrail"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := actiontrail.NewTrail(ctx, "default", &actiontrail.TrailArgs{
			EventRw:         pulumi.String("All"),
			OssBucketName:   pulumi.String("bucket_name"),
			OssWriteRoleArn: pulumi.String("acs:ram::1182725xxxxxxxxxxx"),
			TrailName:       pulumi.String("action-trail"),
			TrailRegion:     pulumi.String("cn-hangzhou"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.actiontrail.Trail;
import com.pulumi.alicloud.actiontrail.TrailArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var default_ = new Trail("default", TrailArgs.builder()        
            .eventRw("All")
            .ossBucketName("bucket_name")
            .ossWriteRoleArn("acs:ram::1182725xxxxxxxxxxx")
            .trailName("action-trail")
            .trailRegion("cn-hangzhou")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

# Create a new actiontrail trail.
default = alicloud.actiontrail.Trail("default",
    event_rw="All",
    oss_bucket_name="bucket_name",
    oss_write_role_arn="acs:ram::1182725xxxxxxxxxxx",
    trail_name="action-trail",
    trail_region="cn-hangzhou")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Create a new actiontrail trail.
const defaultTrail = new alicloud.actiontrail.Trail("default", {
    eventRw: "All",
    ossBucketName: "bucket_name",
    ossWriteRoleArn: "acs:ram::1182725xxxxxxxxxxx",
    trailName: "action-trail",
    trailRegion: "cn-hangzhou",
});
resources:
  # Create a new actiontrail trail.
  default:
    type: alicloud:actiontrail:Trail
    properties:
      eventRw: All
      ossBucketName: bucket_name
      ossWriteRoleArn: acs:ram::1182725xxxxxxxxxxx
      trailName: action-trail
      trailRegion: cn-hangzhou

Create a Trail Resource

new Trail(name: string, args?: TrailArgs, opts?: CustomResourceOptions);
@overload
def Trail(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          event_rw: Optional[str] = None,
          is_organization_trail: Optional[bool] = None,
          mns_topic_arn: Optional[str] = None,
          name: Optional[str] = None,
          oss_bucket_name: Optional[str] = None,
          oss_key_prefix: Optional[str] = None,
          oss_write_role_arn: Optional[str] = None,
          role_name: Optional[str] = None,
          sls_project_arn: Optional[str] = None,
          sls_write_role_arn: Optional[str] = None,
          status: Optional[str] = None,
          trail_name: Optional[str] = None,
          trail_region: Optional[str] = None)
@overload
def Trail(resource_name: str,
          args: Optional[TrailArgs] = None,
          opts: Optional[ResourceOptions] = None)
func NewTrail(ctx *Context, name string, args *TrailArgs, opts ...ResourceOption) (*Trail, error)
public Trail(string name, TrailArgs? args = null, CustomResourceOptions? opts = null)
public Trail(String name, TrailArgs args)
public Trail(String name, TrailArgs args, CustomResourceOptions options)
type: alicloud:actiontrail:Trail
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TrailArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args TrailArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args TrailArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TrailArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TrailArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Trail Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Trail resource accepts the following input properties:

EventRw string

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

IsOrganizationTrail bool

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

MnsTopicArn string

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

Name string

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

OssBucketName string

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

OssKeyPrefix string

The prefix of the specified OSS bucket name. This parameter can be left empty.

OssWriteRoleArn string

The unique ARN of the Oss role.

RoleName string

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

SlsProjectArn string

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

SlsWriteRoleArn string

The unique ARN of the Log Service role.

Status string

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

TrailName string

The name of the trail to be created, which must be unique for an account.

TrailRegion string

The regions to which the trail is applied. Default to All.

EventRw string

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

IsOrganizationTrail bool

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

MnsTopicArn string

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

Name string

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

OssBucketName string

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

OssKeyPrefix string

The prefix of the specified OSS bucket name. This parameter can be left empty.

OssWriteRoleArn string

The unique ARN of the Oss role.

RoleName string

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

SlsProjectArn string

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

SlsWriteRoleArn string

The unique ARN of the Log Service role.

Status string

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

TrailName string

The name of the trail to be created, which must be unique for an account.

TrailRegion string

The regions to which the trail is applied. Default to All.

eventRw String

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

isOrganizationTrail Boolean

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mnsTopicArn String

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name String

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

ossBucketName String

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

ossKeyPrefix String

The prefix of the specified OSS bucket name. This parameter can be left empty.

ossWriteRoleArn String

The unique ARN of the Oss role.

roleName String

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

slsProjectArn String

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

slsWriteRoleArn String

The unique ARN of the Log Service role.

status String

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trailName String

The name of the trail to be created, which must be unique for an account.

trailRegion String

The regions to which the trail is applied. Default to All.

eventRw string

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

isOrganizationTrail boolean

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mnsTopicArn string

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name string

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

ossBucketName string

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

ossKeyPrefix string

The prefix of the specified OSS bucket name. This parameter can be left empty.

ossWriteRoleArn string

The unique ARN of the Oss role.

roleName string

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

slsProjectArn string

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

slsWriteRoleArn string

The unique ARN of the Log Service role.

status string

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trailName string

The name of the trail to be created, which must be unique for an account.

trailRegion string

The regions to which the trail is applied. Default to All.

event_rw str

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

is_organization_trail bool

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mns_topic_arn str

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name str

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

oss_bucket_name str

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

oss_key_prefix str

The prefix of the specified OSS bucket name. This parameter can be left empty.

oss_write_role_arn str

The unique ARN of the Oss role.

role_name str

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

sls_project_arn str

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

sls_write_role_arn str

The unique ARN of the Log Service role.

status str

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trail_name str

The name of the trail to be created, which must be unique for an account.

trail_region str

The regions to which the trail is applied. Default to All.

eventRw String

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

isOrganizationTrail Boolean

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mnsTopicArn String

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name String

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

ossBucketName String

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

ossKeyPrefix String

The prefix of the specified OSS bucket name. This parameter can be left empty.

ossWriteRoleArn String

The unique ARN of the Oss role.

roleName String

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

slsProjectArn String

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

slsWriteRoleArn String

The unique ARN of the Log Service role.

status String

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trailName String

The name of the trail to be created, which must be unique for an account.

trailRegion String

The regions to which the trail is applied. Default to All.

Outputs

All input properties are implicitly available as output properties. Additionally, the Trail resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing Trail Resource

Get an existing Trail resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TrailState, opts?: CustomResourceOptions): Trail
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        event_rw: Optional[str] = None,
        is_organization_trail: Optional[bool] = None,
        mns_topic_arn: Optional[str] = None,
        name: Optional[str] = None,
        oss_bucket_name: Optional[str] = None,
        oss_key_prefix: Optional[str] = None,
        oss_write_role_arn: Optional[str] = None,
        role_name: Optional[str] = None,
        sls_project_arn: Optional[str] = None,
        sls_write_role_arn: Optional[str] = None,
        status: Optional[str] = None,
        trail_name: Optional[str] = None,
        trail_region: Optional[str] = None) -> Trail
func GetTrail(ctx *Context, name string, id IDInput, state *TrailState, opts ...ResourceOption) (*Trail, error)
public static Trail Get(string name, Input<string> id, TrailState? state, CustomResourceOptions? opts = null)
public static Trail get(String name, Output<String> id, TrailState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
EventRw string

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

IsOrganizationTrail bool

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

MnsTopicArn string

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

Name string

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

OssBucketName string

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

OssKeyPrefix string

The prefix of the specified OSS bucket name. This parameter can be left empty.

OssWriteRoleArn string

The unique ARN of the Oss role.

RoleName string

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

SlsProjectArn string

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

SlsWriteRoleArn string

The unique ARN of the Log Service role.

Status string

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

TrailName string

The name of the trail to be created, which must be unique for an account.

TrailRegion string

The regions to which the trail is applied. Default to All.

EventRw string

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

IsOrganizationTrail bool

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

MnsTopicArn string

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

Name string

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

OssBucketName string

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

OssKeyPrefix string

The prefix of the specified OSS bucket name. This parameter can be left empty.

OssWriteRoleArn string

The unique ARN of the Oss role.

RoleName string

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

SlsProjectArn string

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

SlsWriteRoleArn string

The unique ARN of the Log Service role.

Status string

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

TrailName string

The name of the trail to be created, which must be unique for an account.

TrailRegion string

The regions to which the trail is applied. Default to All.

eventRw String

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

isOrganizationTrail Boolean

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mnsTopicArn String

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name String

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

ossBucketName String

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

ossKeyPrefix String

The prefix of the specified OSS bucket name. This parameter can be left empty.

ossWriteRoleArn String

The unique ARN of the Oss role.

roleName String

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

slsProjectArn String

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

slsWriteRoleArn String

The unique ARN of the Log Service role.

status String

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trailName String

The name of the trail to be created, which must be unique for an account.

trailRegion String

The regions to which the trail is applied. Default to All.

eventRw string

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

isOrganizationTrail boolean

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mnsTopicArn string

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name string

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

ossBucketName string

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

ossKeyPrefix string

The prefix of the specified OSS bucket name. This parameter can be left empty.

ossWriteRoleArn string

The unique ARN of the Oss role.

roleName string

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

slsProjectArn string

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

slsWriteRoleArn string

The unique ARN of the Log Service role.

status string

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trailName string

The name of the trail to be created, which must be unique for an account.

trailRegion string

The regions to which the trail is applied. Default to All.

event_rw str

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

is_organization_trail bool

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mns_topic_arn str

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name str

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

oss_bucket_name str

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

oss_key_prefix str

The prefix of the specified OSS bucket name. This parameter can be left empty.

oss_write_role_arn str

The unique ARN of the Oss role.

role_name str

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

sls_project_arn str

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

sls_write_role_arn str

The unique ARN of the Log Service role.

status str

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trail_name str

The name of the trail to be created, which must be unique for an account.

trail_region str

The regions to which the trail is applied. Default to All.

eventRw String

Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default to Write.

isOrganizationTrail Boolean

Specifies whether to create a multi-account trail. Valid values:true: Create a multi-account trail.false: Create a single-account trail. It is the default value.

mnsTopicArn String

Field mns_topic_arn has been deprecated from version 1.118.0.

Deprecated:

Field 'mns_topic_arn' has been deprecated from version 1.118.0

name String

Field name has been deprecated from version 1.95.0. Use trail_name instead.

Deprecated:

Field 'name' has been deprecated from version 1.95.0. Use 'trail_name' instead.

ossBucketName String

The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.

ossKeyPrefix String

The prefix of the specified OSS bucket name. This parameter can be left empty.

ossWriteRoleArn String

The unique ARN of the Oss role.

roleName String

Field name has been deprecated from version 1.118.0.

Deprecated:

Field 'role_name' has been deprecated from version 1.118.0

slsProjectArn String

The unique ARN of the Log Service project. Ensure that sls_project_arn is valid .

slsWriteRoleArn String

The unique ARN of the Log Service role.

status String

The status of ActionTrail Trail. After creation, tracking is turned on by default, and you can set the status value to Disable to turn off tracking. Valid values: Enable, Disable. Default to Enable.

trailName String

The name of the trail to be created, which must be unique for an account.

trailRegion String

The regions to which the trail is applied. Default to All.

Import

Action trail can be imported using the id or trail_name, e.g.

 $ pulumi import alicloud:actiontrail/trail:Trail default abc12345678

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.