TrailDeprecated

class TrailDeprecated : KotlinCustomResource

Deprecated

Resource renamed to `Trail`

DEPRECATED: This resource has been renamed to alicloud.actiontrail.Trail from version 1.95.0. Provides a new resource to manage Action Trail. NOTE: Available in 1.35.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Create a new action trail.
const foo = new alicloud.actiontrail.TrailDeprecated("foo", {
name: "action-trail",
eventRw: "Write-test",
ossBucketName: bucket.id,
roleName: attach.roleName,
ossKeyPrefix: "at-product-account-audit-B",
});
import pulumi
import pulumi_alicloud as alicloud
# Create a new action trail.
foo = alicloud.actiontrail.TrailDeprecated("foo",
name="action-trail",
event_rw="Write-test",
oss_bucket_name=bucket["id"],
role_name=attach["roleName"],
oss_key_prefix="at-product-account-audit-B")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Create a new action trail.
var foo = new AliCloud.ActionTrail.TrailDeprecated("foo", new()
{
Name = "action-trail",
EventRw = "Write-test",
OssBucketName = bucket.Id,
RoleName = attach.RoleName,
OssKeyPrefix = "at-product-account-audit-B",
});
});
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 {
// Create a new action trail.
_, err := actiontrail.NewTrailDeprecated(ctx, "foo", &actiontrail.TrailDeprecatedArgs{
Name: pulumi.String("action-trail"),
EventRw: pulumi.String("Write-test"),
OssBucketName: pulumi.Any(bucket.Id),
RoleName: pulumi.Any(attach.RoleName),
OssKeyPrefix: pulumi.String("at-product-account-audit-B"),
})
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.TrailDeprecated;
import com.pulumi.alicloud.actiontrail.TrailDeprecatedArgs;
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) {
// Create a new action trail.
var foo = new TrailDeprecated("foo", TrailDeprecatedArgs.builder()
.name("action-trail")
.eventRw("Write-test")
.ossBucketName(bucket.id())
.roleName(attach.roleName())
.ossKeyPrefix("at-product-account-audit-B")
.build());
}
}
resources:
# Create a new action trail.
foo:
type: alicloud:actiontrail:TrailDeprecated
properties:
name: action-trail
eventRw: Write-test
ossBucketName: ${bucket.id}
roleName: ${attach.roleName}
ossKeyPrefix: at-product-account-audit-B

Import

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

$ pulumi import alicloud:actiontrail/trailDeprecated:TrailDeprecated foo abc12345678

Properties

Link copied to clipboard
val eventRw: Output<String>?

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
Link copied to clipboard
val mnsTopicArn: Output<String>?
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val ossBucketName: Output<String>?

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

Link copied to clipboard
val ossKeyPrefix: Output<String>?

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

Link copied to clipboard
val ossWriteRoleArn: Output<String>?
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleName: Output<String>

The RAM role in ActionTrail permitted by the user.

Link copied to clipboard
val slsProjectArn: Output<String>?

The unique ARN of the Log Service project.

Link copied to clipboard
val slsWriteRoleArn: Output<String>

The unique ARN of the Log Service role.

Link copied to clipboard
val status: Output<String>?
Link copied to clipboard
val trailName: Output<String>
Link copied to clipboard
val trailRegion: Output<String>
Link copied to clipboard
val urn: Output<String>