1. Docs
  2. @pulumi/awsx
  3. classic
  4. cloudtrail

Module classic/cloudtrail



    Resource Trail

    class Trail extends ComponentResource


    new Trail(name: string, args: TrailArgs, opts?: pulumi.CustomResourceOptions)

    Create a Trail resource with the given unique name, arguments, and options.

    • name The unique name of the resource.
    • args The arguments to use to populate this resource's properties.
    • opts A bag of options that control this resource's behavior.

    method getData

    protected getData(): Promise<TData>

    Retrieves the data produces by [initialize]. The data is immediately available in a derived class’s constructor after the super(...) call to ComponentResource.

    method getProvider

    getProvider(moduleMember: string): ProviderResource | undefined

    method initialize

    protected initialize(args: Inputs): Promise<TData>

    Can be overridden by a subclass to asynchronously initialize data for this Component automatically when constructed. The data will be available immediately for subclass constructors to use. To access the data use .getData.

    method isInstance

    static isInstance(obj: any): obj is ComponentResource

    Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

    method registerOutputs

    protected registerOutputs(outputs?: Inputs | Promise<Inputs> | Output<Inputs>): void

    registerOutputs registers synthetic outputs that a component has initialized, usually by allocating other child sub-resources and propagating their resulting property values.

    ComponentResources can call this at the end of their constructor to indicate that they are done creating child resources. This is not strictly necessary as this will automatically be called after the initialize method completes.

    property bucket

    public bucket: Bucket | undefined;

    The managed S3 Bucket where the Trail will place its logs.

    property logGroup

    public logGroup: LogGroup | undefined;

    The managed CloudWatch Log Group.

    property trail

    public trail: Trail;

    The CloudTrail Trail.

    property urn

    urn: Output<URN>;

    urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

      Pulumi AI - What cloud infrastructure would you like to build? Generate Program