1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TsfRepository
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TsfRepository

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tsf repository

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const repository = new tencentcloud.TsfRepository("repository", {
        bucketName: "",
        bucketRegion: "",
        directory: "",
        repositoryDesc: "",
        repositoryName: "",
        repositoryType: "",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    repository = tencentcloud.TsfRepository("repository",
        bucket_name="",
        bucket_region="",
        directory="",
        repository_desc="",
        repository_name="",
        repository_type="")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTsfRepository(ctx, "repository", &tencentcloud.TsfRepositoryArgs{
    			BucketName:     pulumi.String(""),
    			BucketRegion:   pulumi.String(""),
    			Directory:      pulumi.String(""),
    			RepositoryDesc: pulumi.String(""),
    			RepositoryName: pulumi.String(""),
    			RepositoryType: pulumi.String(""),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var repository = new Tencentcloud.TsfRepository("repository", new()
        {
            BucketName = "",
            BucketRegion = "",
            Directory = "",
            RepositoryDesc = "",
            RepositoryName = "",
            RepositoryType = "",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TsfRepository;
    import com.pulumi.tencentcloud.TsfRepositoryArgs;
    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 repository = new TsfRepository("repository", TsfRepositoryArgs.builder()
                .bucketName("")
                .bucketRegion("")
                .directory("")
                .repositoryDesc("")
                .repositoryName("")
                .repositoryType("")
                .build());
    
        }
    }
    
    resources:
      repository:
        type: tencentcloud:TsfRepository
        properties:
          bucketName: ""
          bucketRegion: ""
          directory: ""
          repositoryDesc: ""
          repositoryName: ""
          repositoryType: ""
    

    Create TsfRepository Resource

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

    Constructor syntax

    new TsfRepository(name: string, args: TsfRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def TsfRepository(resource_name: str,
                      args: TsfRepositoryArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def TsfRepository(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      bucket_name: Optional[str] = None,
                      bucket_region: Optional[str] = None,
                      repository_name: Optional[str] = None,
                      repository_type: Optional[str] = None,
                      directory: Optional[str] = None,
                      repository_desc: Optional[str] = None,
                      tsf_repository_id: Optional[str] = None)
    func NewTsfRepository(ctx *Context, name string, args TsfRepositoryArgs, opts ...ResourceOption) (*TsfRepository, error)
    public TsfRepository(string name, TsfRepositoryArgs args, CustomResourceOptions? opts = null)
    public TsfRepository(String name, TsfRepositoryArgs args)
    public TsfRepository(String name, TsfRepositoryArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TsfRepository
    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 TsfRepositoryArgs
    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 TsfRepositoryArgs
    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 TsfRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TsfRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TsfRepositoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    BucketName string
    the name of the bucket where the warehouse is located.
    BucketRegion string
    Bucket region where the warehouse is located.
    RepositoryName string
    warehouse name.
    RepositoryType string
    warehouse type (default warehouse: default, private warehouse: private).
    Directory string
    directory.
    RepositoryDesc string
    warehouse description.
    TsfRepositoryId string
    ID of the resource.
    BucketName string
    the name of the bucket where the warehouse is located.
    BucketRegion string
    Bucket region where the warehouse is located.
    RepositoryName string
    warehouse name.
    RepositoryType string
    warehouse type (default warehouse: default, private warehouse: private).
    Directory string
    directory.
    RepositoryDesc string
    warehouse description.
    TsfRepositoryId string
    ID of the resource.
    bucketName String
    the name of the bucket where the warehouse is located.
    bucketRegion String
    Bucket region where the warehouse is located.
    repositoryName String
    warehouse name.
    repositoryType String
    warehouse type (default warehouse: default, private warehouse: private).
    directory String
    directory.
    repositoryDesc String
    warehouse description.
    tsfRepositoryId String
    ID of the resource.
    bucketName string
    the name of the bucket where the warehouse is located.
    bucketRegion string
    Bucket region where the warehouse is located.
    repositoryName string
    warehouse name.
    repositoryType string
    warehouse type (default warehouse: default, private warehouse: private).
    directory string
    directory.
    repositoryDesc string
    warehouse description.
    tsfRepositoryId string
    ID of the resource.
    bucket_name str
    the name of the bucket where the warehouse is located.
    bucket_region str
    Bucket region where the warehouse is located.
    repository_name str
    warehouse name.
    repository_type str
    warehouse type (default warehouse: default, private warehouse: private).
    directory str
    directory.
    repository_desc str
    warehouse description.
    tsf_repository_id str
    ID of the resource.
    bucketName String
    the name of the bucket where the warehouse is located.
    bucketRegion String
    Bucket region where the warehouse is located.
    repositoryName String
    warehouse name.
    repositoryType String
    warehouse type (default warehouse: default, private warehouse: private).
    directory String
    directory.
    repositoryDesc String
    warehouse description.
    tsfRepositoryId String
    ID of the resource.

    Outputs

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

    CreateTime string
    warehouse creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsUsed bool
    whether the repository is in use.
    RepositoryId string
    Warehouse ID.
    CreateTime string
    warehouse creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsUsed bool
    whether the repository is in use.
    RepositoryId string
    Warehouse ID.
    createTime String
    warehouse creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    isUsed Boolean
    whether the repository is in use.
    repositoryId String
    Warehouse ID.
    createTime string
    warehouse creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    isUsed boolean
    whether the repository is in use.
    repositoryId string
    Warehouse ID.
    create_time str
    warehouse creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    is_used bool
    whether the repository is in use.
    repository_id str
    Warehouse ID.
    createTime String
    warehouse creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    isUsed Boolean
    whether the repository is in use.
    repositoryId String
    Warehouse ID.

    Look up Existing TsfRepository Resource

    Get an existing TsfRepository 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?: TsfRepositoryState, opts?: CustomResourceOptions): TsfRepository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket_name: Optional[str] = None,
            bucket_region: Optional[str] = None,
            create_time: Optional[str] = None,
            directory: Optional[str] = None,
            is_used: Optional[bool] = None,
            repository_desc: Optional[str] = None,
            repository_id: Optional[str] = None,
            repository_name: Optional[str] = None,
            repository_type: Optional[str] = None,
            tsf_repository_id: Optional[str] = None) -> TsfRepository
    func GetTsfRepository(ctx *Context, name string, id IDInput, state *TsfRepositoryState, opts ...ResourceOption) (*TsfRepository, error)
    public static TsfRepository Get(string name, Input<string> id, TsfRepositoryState? state, CustomResourceOptions? opts = null)
    public static TsfRepository get(String name, Output<String> id, TsfRepositoryState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TsfRepository    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 name of the bucket where the warehouse is located.
    BucketRegion string
    Bucket region where the warehouse is located.
    CreateTime string
    warehouse creation time.
    Directory string
    directory.
    IsUsed bool
    whether the repository is in use.
    RepositoryDesc string
    warehouse description.
    RepositoryId string
    Warehouse ID.
    RepositoryName string
    warehouse name.
    RepositoryType string
    warehouse type (default warehouse: default, private warehouse: private).
    TsfRepositoryId string
    ID of the resource.
    BucketName string
    the name of the bucket where the warehouse is located.
    BucketRegion string
    Bucket region where the warehouse is located.
    CreateTime string
    warehouse creation time.
    Directory string
    directory.
    IsUsed bool
    whether the repository is in use.
    RepositoryDesc string
    warehouse description.
    RepositoryId string
    Warehouse ID.
    RepositoryName string
    warehouse name.
    RepositoryType string
    warehouse type (default warehouse: default, private warehouse: private).
    TsfRepositoryId string
    ID of the resource.
    bucketName String
    the name of the bucket where the warehouse is located.
    bucketRegion String
    Bucket region where the warehouse is located.
    createTime String
    warehouse creation time.
    directory String
    directory.
    isUsed Boolean
    whether the repository is in use.
    repositoryDesc String
    warehouse description.
    repositoryId String
    Warehouse ID.
    repositoryName String
    warehouse name.
    repositoryType String
    warehouse type (default warehouse: default, private warehouse: private).
    tsfRepositoryId String
    ID of the resource.
    bucketName string
    the name of the bucket where the warehouse is located.
    bucketRegion string
    Bucket region where the warehouse is located.
    createTime string
    warehouse creation time.
    directory string
    directory.
    isUsed boolean
    whether the repository is in use.
    repositoryDesc string
    warehouse description.
    repositoryId string
    Warehouse ID.
    repositoryName string
    warehouse name.
    repositoryType string
    warehouse type (default warehouse: default, private warehouse: private).
    tsfRepositoryId string
    ID of the resource.
    bucket_name str
    the name of the bucket where the warehouse is located.
    bucket_region str
    Bucket region where the warehouse is located.
    create_time str
    warehouse creation time.
    directory str
    directory.
    is_used bool
    whether the repository is in use.
    repository_desc str
    warehouse description.
    repository_id str
    Warehouse ID.
    repository_name str
    warehouse name.
    repository_type str
    warehouse type (default warehouse: default, private warehouse: private).
    tsf_repository_id str
    ID of the resource.
    bucketName String
    the name of the bucket where the warehouse is located.
    bucketRegion String
    Bucket region where the warehouse is located.
    createTime String
    warehouse creation time.
    directory String
    directory.
    isUsed Boolean
    whether the repository is in use.
    repositoryDesc String
    warehouse description.
    repositoryId String
    Warehouse ID.
    repositoryName String
    warehouse name.
    repositoryType String
    warehouse type (default warehouse: default, private warehouse: private).
    tsfRepositoryId String
    ID of the resource.

    Import

    tsf repository can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tsfRepository:TsfRepository repository repository_id
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack