tencentcloud.TsfRepository
Explore with Pulumi AI
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:
- Bucket
Name string - the name of the bucket where the warehouse is located.
- Bucket
Region string - Bucket region where the warehouse is located.
- Repository
Name string - warehouse name.
- Repository
Type string - warehouse type (default warehouse: default, private warehouse: private).
- Directory string
- directory.
- Repository
Desc string - warehouse description.
- Tsf
Repository stringId - ID of the resource.
- Bucket
Name string - the name of the bucket where the warehouse is located.
- Bucket
Region string - Bucket region where the warehouse is located.
- Repository
Name string - warehouse name.
- Repository
Type string - warehouse type (default warehouse: default, private warehouse: private).
- Directory string
- directory.
- Repository
Desc string - warehouse description.
- Tsf
Repository stringId - ID of the resource.
- bucket
Name String - the name of the bucket where the warehouse is located.
- bucket
Region String - Bucket region where the warehouse is located.
- repository
Name String - warehouse name.
- repository
Type String - warehouse type (default warehouse: default, private warehouse: private).
- directory String
- directory.
- repository
Desc String - warehouse description.
- tsf
Repository StringId - ID of the resource.
- bucket
Name string - the name of the bucket where the warehouse is located.
- bucket
Region string - Bucket region where the warehouse is located.
- repository
Name string - warehouse name.
- repository
Type string - warehouse type (default warehouse: default, private warehouse: private).
- directory string
- directory.
- repository
Desc string - warehouse description.
- tsf
Repository stringId - 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_ strid - ID of the resource.
- bucket
Name String - the name of the bucket where the warehouse is located.
- bucket
Region String - Bucket region where the warehouse is located.
- repository
Name String - warehouse name.
- repository
Type String - warehouse type (default warehouse: default, private warehouse: private).
- directory String
- directory.
- repository
Desc String - warehouse description.
- tsf
Repository StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TsfRepository resource produces the following output properties:
- Create
Time string - warehouse creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Used bool - whether the repository is in use.
- Repository
Id string - Warehouse ID.
- Create
Time string - warehouse creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Used bool - whether the repository is in use.
- Repository
Id string - Warehouse ID.
- create
Time String - warehouse creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Used Boolean - whether the repository is in use.
- repository
Id String - Warehouse ID.
- create
Time string - warehouse creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Used boolean - whether the repository is in use.
- repository
Id 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.
- create
Time String - warehouse creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Used Boolean - whether the repository is in use.
- repository
Id 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.
- Bucket
Name string - the name of the bucket where the warehouse is located.
- Bucket
Region string - Bucket region where the warehouse is located.
- Create
Time string - warehouse creation time.
- Directory string
- directory.
- Is
Used bool - whether the repository is in use.
- Repository
Desc string - warehouse description.
- Repository
Id string - Warehouse ID.
- Repository
Name string - warehouse name.
- Repository
Type string - warehouse type (default warehouse: default, private warehouse: private).
- Tsf
Repository stringId - ID of the resource.
- Bucket
Name string - the name of the bucket where the warehouse is located.
- Bucket
Region string - Bucket region where the warehouse is located.
- Create
Time string - warehouse creation time.
- Directory string
- directory.
- Is
Used bool - whether the repository is in use.
- Repository
Desc string - warehouse description.
- Repository
Id string - Warehouse ID.
- Repository
Name string - warehouse name.
- Repository
Type string - warehouse type (default warehouse: default, private warehouse: private).
- Tsf
Repository stringId - ID of the resource.
- bucket
Name String - the name of the bucket where the warehouse is located.
- bucket
Region String - Bucket region where the warehouse is located.
- create
Time String - warehouse creation time.
- directory String
- directory.
- is
Used Boolean - whether the repository is in use.
- repository
Desc String - warehouse description.
- repository
Id String - Warehouse ID.
- repository
Name String - warehouse name.
- repository
Type String - warehouse type (default warehouse: default, private warehouse: private).
- tsf
Repository StringId - ID of the resource.
- bucket
Name string - the name of the bucket where the warehouse is located.
- bucket
Region string - Bucket region where the warehouse is located.
- create
Time string - warehouse creation time.
- directory string
- directory.
- is
Used boolean - whether the repository is in use.
- repository
Desc string - warehouse description.
- repository
Id string - Warehouse ID.
- repository
Name string - warehouse name.
- repository
Type string - warehouse type (default warehouse: default, private warehouse: private).
- tsf
Repository stringId - 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_ strid - ID of the resource.
- bucket
Name String - the name of the bucket where the warehouse is located.
- bucket
Region String - Bucket region where the warehouse is located.
- create
Time String - warehouse creation time.
- directory String
- directory.
- is
Used Boolean - whether the repository is in use.
- repository
Desc String - warehouse description.
- repository
Id String - Warehouse ID.
- repository
Name String - warehouse name.
- repository
Type String - warehouse type (default warehouse: default, private warehouse: private).
- tsf
Repository StringId - 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.