1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. tos
  6. BucketAccessMonitor
Viewing docs for volcenginecc v0.0.43
published on Monday, Jun 15, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.43
published on Monday, Jun 15, 2026 by Volcengine

    This API is used to set access tracking for the storage bucket. You must enable access tracking before creating lifecycle rules for last access time. Once enabled, TOS automatically checks and records the last access time for all objects in the bucket.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const bucketAccessMonitorDemo = new volcenginecc.tos.BucketAccessMonitor("BucketAccessMonitorDemo", {bucket: "ccapi-test"});
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    bucket_access_monitor_demo = volcenginecc.tos.BucketAccessMonitor("BucketAccessMonitorDemo", bucket="ccapi-test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/tos"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tos.NewBucketAccessMonitor(ctx, "BucketAccessMonitorDemo", &tos.BucketAccessMonitorArgs{
    			Bucket: pulumi.String("ccapi-test"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var bucketAccessMonitorDemo = new Volcenginecc.Tos.BucketAccessMonitor("BucketAccessMonitorDemo", new()
        {
            Bucket = "ccapi-test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.tos.BucketAccessMonitor;
    import com.volcengine.volcenginecc.tos.BucketAccessMonitorArgs;
    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 bucketAccessMonitorDemo = new BucketAccessMonitor("bucketAccessMonitorDemo", BucketAccessMonitorArgs.builder()
                .bucket("ccapi-test")
                .build());
    
        }
    }
    
    resources:
      bucketAccessMonitorDemo:
        type: volcenginecc:tos:BucketAccessMonitor
        name: BucketAccessMonitorDemo
        properties:
          bucket: ccapi-test
    
    Example coming soon!
    

    Create BucketAccessMonitor Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BucketAccessMonitor(name: string, args: BucketAccessMonitorArgs, opts?: CustomResourceOptions);
    @overload
    def BucketAccessMonitor(resource_name: str,
                            args: BucketAccessMonitorArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def BucketAccessMonitor(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            bucket: Optional[str] = None)
    func NewBucketAccessMonitor(ctx *Context, name string, args BucketAccessMonitorArgs, opts ...ResourceOption) (*BucketAccessMonitor, error)
    public BucketAccessMonitor(string name, BucketAccessMonitorArgs args, CustomResourceOptions? opts = null)
    public BucketAccessMonitor(String name, BucketAccessMonitorArgs args)
    public BucketAccessMonitor(String name, BucketAccessMonitorArgs args, CustomResourceOptions options)
    
    type: volcenginecc:tos:BucketAccessMonitor
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "volcenginecc_tos_bucketaccessmonitor" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args BucketAccessMonitorArgs
    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 BucketAccessMonitorArgs
    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 BucketAccessMonitorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BucketAccessMonitorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BucketAccessMonitorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var bucketAccessMonitorResource = new Volcenginecc.Tos.BucketAccessMonitor("bucketAccessMonitorResource", new()
    {
        Bucket = "string",
    });
    
    example, err := tos.NewBucketAccessMonitor(ctx, "bucketAccessMonitorResource", &tos.BucketAccessMonitorArgs{
    	Bucket: pulumi.String("string"),
    })
    
    resource "volcenginecc_tos_bucketaccessmonitor" "bucketAccessMonitorResource" {
      bucket = "string"
    }
    
    var bucketAccessMonitorResource = new BucketAccessMonitor("bucketAccessMonitorResource", BucketAccessMonitorArgs.builder()
        .bucket("string")
        .build());
    
    bucket_access_monitor_resource = volcenginecc.tos.BucketAccessMonitor("bucketAccessMonitorResource", bucket="string")
    
    const bucketAccessMonitorResource = new volcenginecc.tos.BucketAccessMonitor("bucketAccessMonitorResource", {bucket: "string"});
    
    type: volcenginecc:tos:BucketAccessMonitor
    properties:
        bucket: string
    

    BucketAccessMonitor Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The BucketAccessMonitor resource accepts the following input properties:

    Bucket string
    Bucket name.
    Bucket string
    Bucket name.
    bucket string
    Bucket name.
    bucket String
    Bucket name.
    bucket string
    Bucket name.
    bucket str
    Bucket name.
    bucket String
    Bucket name.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.

    Look up Existing BucketAccessMonitor Resource

    Get an existing BucketAccessMonitor 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?: BucketAccessMonitorState, opts?: CustomResourceOptions): BucketAccessMonitor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            status: Optional[str] = None) -> BucketAccessMonitor
    func GetBucketAccessMonitor(ctx *Context, name string, id IDInput, state *BucketAccessMonitorState, opts ...ResourceOption) (*BucketAccessMonitor, error)
    public static BucketAccessMonitor Get(string name, Input<string> id, BucketAccessMonitorState? state, CustomResourceOptions? opts = null)
    public static BucketAccessMonitor get(String name, Output<String> id, BucketAccessMonitorState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:tos:BucketAccessMonitor    get:      id: ${id}
    import {
      to = volcenginecc_tos_bucketaccessmonitor.example
      id = "${id}"
    }
    
    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:
    Bucket string
    Bucket name.
    Status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    Bucket string
    Bucket name.
    Status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    bucket string
    Bucket name.
    status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    bucket String
    Bucket name.
    status String
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    bucket string
    Bucket name.
    status string
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    bucket str
    Bucket name.
    status str
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.
    bucket String
    Bucket name.
    status String
    Whether to enable access tracking. Value descriptions: Enabled: Access tracking is enabled. Disabled: Access tracking is disabled.

    Import

    $ pulumi import volcenginecc:tos/bucketAccessMonitor:BucketAccessMonitor example "bucket"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.43
    published on Monday, Jun 15, 2026 by Volcengine

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial