Trail Deprecated
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",
});
Content copied to clipboard
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")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Import
Action trail can be imported using the id, e.g.
$ pulumi import alicloud:actiontrail/trailDeprecated:TrailDeprecated foo abc12345678
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.
Link copied to clipboard
The prefix of the specified OSS bucket name. This parameter can be left empty.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The unique ARN of the Log Service project.
Link copied to clipboard
The unique ARN of the Log Service role.
Link copied to clipboard