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

tencentcloud.PtsProject

Explore with Pulumi AI

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

    Provides a resource to create a pts project

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const project = new tencentcloud.PtsProject("project", {
        description: "desc",
        tags: [{
            tagKey: "createdBy",
            tagValue: "terraform",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    project = tencentcloud.PtsProject("project",
        description="desc",
        tags=[{
            "tag_key": "createdBy",
            "tag_value": "terraform",
        }])
    
    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.NewPtsProject(ctx, "project", &tencentcloud.PtsProjectArgs{
    			Description: pulumi.String("desc"),
    			Tags: tencentcloud.PtsProjectTagArray{
    				&tencentcloud.PtsProjectTagArgs{
    					TagKey:   pulumi.String("createdBy"),
    					TagValue: pulumi.String("terraform"),
    				},
    			},
    		})
    		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 project = new Tencentcloud.PtsProject("project", new()
        {
            Description = "desc",
            Tags = new[]
            {
                new Tencentcloud.Inputs.PtsProjectTagArgs
                {
                    TagKey = "createdBy",
                    TagValue = "terraform",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PtsProject;
    import com.pulumi.tencentcloud.PtsProjectArgs;
    import com.pulumi.tencentcloud.inputs.PtsProjectTagArgs;
    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 project = new PtsProject("project", PtsProjectArgs.builder()
                .description("desc")
                .tags(PtsProjectTagArgs.builder()
                    .tagKey("createdBy")
                    .tagValue("terraform")
                    .build())
                .build());
    
        }
    }
    
    resources:
      project:
        type: tencentcloud:PtsProject
        properties:
          description: desc
          tags:
            - tagKey: createdBy
              tagValue: terraform
    

    Create PtsProject Resource

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

    Constructor syntax

    new PtsProject(name: string, args?: PtsProjectArgs, opts?: CustomResourceOptions);
    @overload
    def PtsProject(resource_name: str,
                   args: Optional[PtsProjectArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def PtsProject(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   description: Optional[str] = None,
                   name: Optional[str] = None,
                   pts_project_id: Optional[str] = None,
                   tags: Optional[Sequence[PtsProjectTagArgs]] = None)
    func NewPtsProject(ctx *Context, name string, args *PtsProjectArgs, opts ...ResourceOption) (*PtsProject, error)
    public PtsProject(string name, PtsProjectArgs? args = null, CustomResourceOptions? opts = null)
    public PtsProject(String name, PtsProjectArgs args)
    public PtsProject(String name, PtsProjectArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PtsProject
    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 PtsProjectArgs
    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 PtsProjectArgs
    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 PtsProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PtsProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PtsProjectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Description string
    Pts object description.
    Name string
    ptsObjectName, which must be required.
    PtsProjectId string
    ID of the resource.
    Tags List<PtsProjectTag>
    Tags List.
    Description string
    Pts object description.
    Name string
    ptsObjectName, which must be required.
    PtsProjectId string
    ID of the resource.
    Tags []PtsProjectTagArgs
    Tags List.
    description String
    Pts object description.
    name String
    ptsObjectName, which must be required.
    ptsProjectId String
    ID of the resource.
    tags List<PtsProjectTag>
    Tags List.
    description string
    Pts object description.
    name string
    ptsObjectName, which must be required.
    ptsProjectId string
    ID of the resource.
    tags PtsProjectTag[]
    Tags List.
    description str
    Pts object description.
    name str
    ptsObjectName, which must be required.
    pts_project_id str
    ID of the resource.
    tags Sequence[PtsProjectTagArgs]
    Tags List.
    description String
    Pts object description.
    name String
    ptsObjectName, which must be required.
    ptsProjectId String
    ID of the resource.
    tags List<Property Map>
    Tags List.

    Outputs

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

    AppId double
    App ID.
    CreatedAt string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Project status.
    SubAccountUin string
    Sub-user ID.
    Uin string
    User ID.
    UpdatedAt string
    Update time.
    AppId float64
    App ID.
    CreatedAt string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Project status.
    SubAccountUin string
    Sub-user ID.
    Uin string
    User ID.
    UpdatedAt string
    Update time.
    appId Double
    App ID.
    createdAt String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Project status.
    subAccountUin String
    Sub-user ID.
    uin String
    User ID.
    updatedAt String
    Update time.
    appId number
    App ID.
    createdAt string
    Creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Project status.
    subAccountUin string
    Sub-user ID.
    uin string
    User ID.
    updatedAt string
    Update time.
    app_id float
    App ID.
    created_at str
    Creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Project status.
    sub_account_uin str
    Sub-user ID.
    uin str
    User ID.
    updated_at str
    Update time.
    appId Number
    App ID.
    createdAt String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Project status.
    subAccountUin String
    Sub-user ID.
    uin String
    User ID.
    updatedAt String
    Update time.

    Look up Existing PtsProject Resource

    Get an existing PtsProject 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?: PtsProjectState, opts?: CustomResourceOptions): PtsProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[float] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            pts_project_id: Optional[str] = None,
            status: Optional[str] = None,
            sub_account_uin: Optional[str] = None,
            tags: Optional[Sequence[PtsProjectTagArgs]] = None,
            uin: Optional[str] = None,
            updated_at: Optional[str] = None) -> PtsProject
    func GetPtsProject(ctx *Context, name string, id IDInput, state *PtsProjectState, opts ...ResourceOption) (*PtsProject, error)
    public static PtsProject Get(string name, Input<string> id, PtsProjectState? state, CustomResourceOptions? opts = null)
    public static PtsProject get(String name, Output<String> id, PtsProjectState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PtsProject    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:
    AppId double
    App ID.
    CreatedAt string
    Creation time.
    Description string
    Pts object description.
    Name string
    ptsObjectName, which must be required.
    PtsProjectId string
    ID of the resource.
    Status string
    Project status.
    SubAccountUin string
    Sub-user ID.
    Tags List<PtsProjectTag>
    Tags List.
    Uin string
    User ID.
    UpdatedAt string
    Update time.
    AppId float64
    App ID.
    CreatedAt string
    Creation time.
    Description string
    Pts object description.
    Name string
    ptsObjectName, which must be required.
    PtsProjectId string
    ID of the resource.
    Status string
    Project status.
    SubAccountUin string
    Sub-user ID.
    Tags []PtsProjectTagArgs
    Tags List.
    Uin string
    User ID.
    UpdatedAt string
    Update time.
    appId Double
    App ID.
    createdAt String
    Creation time.
    description String
    Pts object description.
    name String
    ptsObjectName, which must be required.
    ptsProjectId String
    ID of the resource.
    status String
    Project status.
    subAccountUin String
    Sub-user ID.
    tags List<PtsProjectTag>
    Tags List.
    uin String
    User ID.
    updatedAt String
    Update time.
    appId number
    App ID.
    createdAt string
    Creation time.
    description string
    Pts object description.
    name string
    ptsObjectName, which must be required.
    ptsProjectId string
    ID of the resource.
    status string
    Project status.
    subAccountUin string
    Sub-user ID.
    tags PtsProjectTag[]
    Tags List.
    uin string
    User ID.
    updatedAt string
    Update time.
    app_id float
    App ID.
    created_at str
    Creation time.
    description str
    Pts object description.
    name str
    ptsObjectName, which must be required.
    pts_project_id str
    ID of the resource.
    status str
    Project status.
    sub_account_uin str
    Sub-user ID.
    tags Sequence[PtsProjectTagArgs]
    Tags List.
    uin str
    User ID.
    updated_at str
    Update time.
    appId Number
    App ID.
    createdAt String
    Creation time.
    description String
    Pts object description.
    name String
    ptsObjectName, which must be required.
    ptsProjectId String
    ID of the resource.
    status String
    Project status.
    subAccountUin String
    Sub-user ID.
    tags List<Property Map>
    Tags List.
    uin String
    User ID.
    updatedAt String
    Update time.

    Supporting Types

    PtsProjectTag, PtsProjectTagArgs

    TagKey string
    tag key.
    TagValue string
    tag value.
    TagKey string
    tag key.
    TagValue string
    tag value.
    tagKey String
    tag key.
    tagValue String
    tag value.
    tagKey string
    tag key.
    tagValue string
    tag value.
    tag_key str
    tag key.
    tag_value str
    tag value.
    tagKey String
    tag key.
    tagValue String
    tag value.

    Import

    pts project can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/ptsProject:PtsProject project project-1ep27k1m
    

    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