Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Trail
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.ActionTrail
Assembly: Pulumi.AliCloud.dll
Syntax
public class Trail : CustomResource

Constructors

View Source

Trail(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 Source

EventRw

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>
View Source

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>
View Source

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>
View Source

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>
View Source

RoleName

The RAM role in ActionTrail permitted by the user.

Declaration
public Output<string> RoleName { get; }
Property Value
Type Description
Output<System.String>
View Source

SlsProjectArn

The unique ARN of the Log Service project.

Declaration
public Output<string> SlsProjectArn { get; }
Property Value
Type Description
Output<System.String>
View Source

SlsWriteRoleArn

The unique ARN of the Log Service role.

Declaration
public Output<string> SlsWriteRoleArn { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.