1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. CtsTrackerV1
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.CtsTrackerV1

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Allows you to collect, store, and query cloud resource operation records.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const bucketName = config.requireObject("bucketName");
    const trackerV1 = new flexibleengine.CtsTrackerV1("trackerV1", {
        bucketName: bucketName,
        filePrefixName: "tracker",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    bucket_name = config.require_object("bucketName")
    tracker_v1 = flexibleengine.CtsTrackerV1("trackerV1",
        bucket_name=bucket_name,
        file_prefix_name="tracker")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		bucketName := cfg.RequireObject("bucketName")
    		_, err := flexibleengine.NewCtsTrackerV1(ctx, "trackerV1", &flexibleengine.CtsTrackerV1Args{
    			BucketName:     pulumi.Any(bucketName),
    			FilePrefixName: pulumi.String("tracker"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var bucketName = config.RequireObject<dynamic>("bucketName");
        var trackerV1 = new Flexibleengine.CtsTrackerV1("trackerV1", new()
        {
            BucketName = bucketName,
            FilePrefixName = "tracker",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CtsTrackerV1;
    import com.pulumi.flexibleengine.CtsTrackerV1Args;
    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) {
            final var config = ctx.config();
            final var bucketName = config.get("bucketName");
            var trackerV1 = new CtsTrackerV1("trackerV1", CtsTrackerV1Args.builder()
                .bucketName(bucketName)
                .filePrefixName("tracker")
                .build());
    
        }
    }
    
    configuration:
      bucketName:
        type: dynamic
    resources:
      trackerV1:
        type: flexibleengine:CtsTrackerV1
        properties:
          bucketName: ${bucketName}
          filePrefixName: tracker
    

    Create CtsTrackerV1 Resource

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

    Constructor syntax

    new CtsTrackerV1(name: string, args: CtsTrackerV1Args, opts?: CustomResourceOptions);
    @overload
    def CtsTrackerV1(resource_name: str,
                     args: CtsTrackerV1Args,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def CtsTrackerV1(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     bucket_name: Optional[str] = None,
                     cts_tracker_v1_id: Optional[str] = None,
                     file_prefix_name: Optional[str] = None,
                     region: Optional[str] = None,
                     status: Optional[str] = None,
                     timeouts: Optional[CtsTrackerV1TimeoutsArgs] = None)
    func NewCtsTrackerV1(ctx *Context, name string, args CtsTrackerV1Args, opts ...ResourceOption) (*CtsTrackerV1, error)
    public CtsTrackerV1(string name, CtsTrackerV1Args args, CustomResourceOptions? opts = null)
    public CtsTrackerV1(String name, CtsTrackerV1Args args)
    public CtsTrackerV1(String name, CtsTrackerV1Args args, CustomResourceOptions options)
    
    type: flexibleengine:CtsTrackerV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CtsTrackerV1Args
    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 CtsTrackerV1Args
    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 CtsTrackerV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CtsTrackerV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CtsTrackerV1Args
    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 ctsTrackerV1Resource = new Flexibleengine.CtsTrackerV1("ctsTrackerV1Resource", new()
    {
        BucketName = "string",
        CtsTrackerV1Id = "string",
        FilePrefixName = "string",
        Region = "string",
        Status = "string",
        Timeouts = new Flexibleengine.Inputs.CtsTrackerV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := flexibleengine.NewCtsTrackerV1(ctx, "ctsTrackerV1Resource", &flexibleengine.CtsTrackerV1Args{
    	BucketName:     pulumi.String("string"),
    	CtsTrackerV1Id: pulumi.String("string"),
    	FilePrefixName: pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	Status:         pulumi.String("string"),
    	Timeouts: &flexibleengine.CtsTrackerV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var ctsTrackerV1Resource = new CtsTrackerV1("ctsTrackerV1Resource", CtsTrackerV1Args.builder()
        .bucketName("string")
        .ctsTrackerV1Id("string")
        .filePrefixName("string")
        .region("string")
        .status("string")
        .timeouts(CtsTrackerV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    cts_tracker_v1_resource = flexibleengine.CtsTrackerV1("ctsTrackerV1Resource",
        bucket_name="string",
        cts_tracker_v1_id="string",
        file_prefix_name="string",
        region="string",
        status="string",
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const ctsTrackerV1Resource = new flexibleengine.CtsTrackerV1("ctsTrackerV1Resource", {
        bucketName: "string",
        ctsTrackerV1Id: "string",
        filePrefixName: "string",
        region: "string",
        status: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: flexibleengine:CtsTrackerV1
    properties:
        bucketName: string
        ctsTrackerV1Id: string
        filePrefixName: string
        region: string
        status: string
        timeouts:
            create: string
            delete: string
    

    CtsTrackerV1 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 CtsTrackerV1 resource accepts the following input properties:

    BucketName string
    The OBS bucket name for a tracker.
    CtsTrackerV1Id string
    FilePrefixName string
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    Region string
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    Status string
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    Timeouts CtsTrackerV1Timeouts
    BucketName string
    The OBS bucket name for a tracker.
    CtsTrackerV1Id string
    FilePrefixName string
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    Region string
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    Status string
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    Timeouts CtsTrackerV1TimeoutsArgs
    bucketName String
    The OBS bucket name for a tracker.
    ctsTrackerV1Id String
    filePrefixName String
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region String
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status String
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts CtsTrackerV1Timeouts
    bucketName string
    The OBS bucket name for a tracker.
    ctsTrackerV1Id string
    filePrefixName string
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region string
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status string
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts CtsTrackerV1Timeouts
    bucket_name str
    The OBS bucket name for a tracker.
    cts_tracker_v1_id str
    file_prefix_name str
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region str
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status str
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts CtsTrackerV1TimeoutsArgs
    bucketName String
    The OBS bucket name for a tracker.
    ctsTrackerV1Id String
    filePrefixName String
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region String
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status String
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    TrackerName string
    The tracker name. Currently, only tracker system is available.
    Id string
    The provider-assigned unique ID for this managed resource.
    TrackerName string
    The tracker name. Currently, only tracker system is available.
    id String
    The provider-assigned unique ID for this managed resource.
    trackerName String
    The tracker name. Currently, only tracker system is available.
    id string
    The provider-assigned unique ID for this managed resource.
    trackerName string
    The tracker name. Currently, only tracker system is available.
    id str
    The provider-assigned unique ID for this managed resource.
    tracker_name str
    The tracker name. Currently, only tracker system is available.
    id String
    The provider-assigned unique ID for this managed resource.
    trackerName String
    The tracker name. Currently, only tracker system is available.

    Look up Existing CtsTrackerV1 Resource

    Get an existing CtsTrackerV1 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?: CtsTrackerV1State, opts?: CustomResourceOptions): CtsTrackerV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket_name: Optional[str] = None,
            cts_tracker_v1_id: Optional[str] = None,
            file_prefix_name: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[CtsTrackerV1TimeoutsArgs] = None,
            tracker_name: Optional[str] = None) -> CtsTrackerV1
    func GetCtsTrackerV1(ctx *Context, name string, id IDInput, state *CtsTrackerV1State, opts ...ResourceOption) (*CtsTrackerV1, error)
    public static CtsTrackerV1 Get(string name, Input<string> id, CtsTrackerV1State? state, CustomResourceOptions? opts = null)
    public static CtsTrackerV1 get(String name, Output<String> id, CtsTrackerV1State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:CtsTrackerV1    get:      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:
    BucketName string
    The OBS bucket name for a tracker.
    CtsTrackerV1Id string
    FilePrefixName string
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    Region string
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    Status string
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    Timeouts CtsTrackerV1Timeouts
    TrackerName string
    The tracker name. Currently, only tracker system is available.
    BucketName string
    The OBS bucket name for a tracker.
    CtsTrackerV1Id string
    FilePrefixName string
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    Region string
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    Status string
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    Timeouts CtsTrackerV1TimeoutsArgs
    TrackerName string
    The tracker name. Currently, only tracker system is available.
    bucketName String
    The OBS bucket name for a tracker.
    ctsTrackerV1Id String
    filePrefixName String
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region String
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status String
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts CtsTrackerV1Timeouts
    trackerName String
    The tracker name. Currently, only tracker system is available.
    bucketName string
    The OBS bucket name for a tracker.
    ctsTrackerV1Id string
    filePrefixName string
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region string
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status string
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts CtsTrackerV1Timeouts
    trackerName string
    The tracker name. Currently, only tracker system is available.
    bucket_name str
    The OBS bucket name for a tracker.
    cts_tracker_v1_id str
    file_prefix_name str
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region str
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status str
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts CtsTrackerV1TimeoutsArgs
    tracker_name str
    The tracker name. Currently, only tracker system is available.
    bucketName String
    The OBS bucket name for a tracker.
    ctsTrackerV1Id String
    filePrefixName String
    The prefix of a log that needs to be stored in an OBS bucket. The value can contain letters, digits, and special characters .-_, but cannot contain spaces. The length is 1 to 64 characters.
    region String
    Specifies the region in which to create the CTS tracker resource. If omitted, the provider-level region will be used. Changing this will create a new CTS tracker resource.
    status String
    The status of a tracker. The value should be enabled when creating a tracker, and can be enabled or disabled when updating it.
    timeouts Property Map
    trackerName String
    The tracker name. Currently, only tracker system is available.

    Supporting Types

    CtsTrackerV1Timeouts, CtsTrackerV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    CTS tracker can be imported using tracker_name, e.g.

    $ pulumi import flexibleengine:index/ctsTrackerV1:CtsTrackerV1 tracker system
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud