tencentcloud.PtsProject
Explore with Pulumi AI
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.
- Pts
Project stringId - ID of the resource.
- List<Pts
Project Tag> - Tags List.
- Description string
- Pts object description.
- Name string
- ptsObjectName, which must be required.
- Pts
Project stringId - ID of the resource.
- []Pts
Project Tag Args - Tags List.
- description String
- Pts object description.
- name String
- ptsObjectName, which must be required.
- pts
Project StringId - ID of the resource.
- List<Pts
Project Tag> - Tags List.
- description string
- Pts object description.
- name string
- ptsObjectName, which must be required.
- pts
Project stringId - ID of the resource.
- Pts
Project Tag[] - Tags List.
- description str
- Pts object description.
- name str
- ptsObjectName, which must be required.
- pts_
project_ strid - ID of the resource.
- Sequence[Pts
Project Tag Args] - Tags List.
- description String
- Pts object description.
- name String
- ptsObjectName, which must be required.
- pts
Project StringId - ID of the resource.
- List<Property Map>
- Tags List.
Outputs
All input properties are implicitly available as output properties. Additionally, the PtsProject resource produces the following output properties:
- 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_ struin - Sub-user ID.
- uin str
- User ID.
- updated_
at str - 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.
- App
Id double - App ID.
- Created
At string - Creation time.
- Description string
- Pts object description.
- Name string
- ptsObjectName, which must be required.
- Pts
Project stringId - ID of the resource.
- Status string
- Project status.
- Sub
Account stringUin - Sub-user ID.
- List<Pts
Project Tag> - Tags List.
- Uin string
- User ID.
- Updated
At string - Update time.
- App
Id float64 - App ID.
- Created
At string - Creation time.
- Description string
- Pts object description.
- Name string
- ptsObjectName, which must be required.
- Pts
Project stringId - ID of the resource.
- Status string
- Project status.
- Sub
Account stringUin - Sub-user ID.
- []Pts
Project Tag Args - Tags List.
- Uin string
- User ID.
- Updated
At string - Update time.
- app
Id Double - App ID.
- created
At String - Creation time.
- description String
- Pts object description.
- name String
- ptsObjectName, which must be required.
- pts
Project StringId - ID of the resource.
- status String
- Project status.
- sub
Account StringUin - Sub-user ID.
- List<Pts
Project Tag> - Tags List.
- uin String
- User ID.
- updated
At String - Update time.
- app
Id number - App ID.
- created
At string - Creation time.
- description string
- Pts object description.
- name string
- ptsObjectName, which must be required.
- pts
Project stringId - ID of the resource.
- status string
- Project status.
- sub
Account stringUin - Sub-user ID.
- Pts
Project Tag[] - Tags List.
- uin string
- User ID.
- updated
At 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_ strid - ID of the resource.
- status str
- Project status.
- sub_
account_ struin - Sub-user ID.
- Sequence[Pts
Project Tag Args] - Tags List.
- uin str
- User ID.
- updated_
at str - Update time.
- app
Id Number - App ID.
- created
At String - Creation time.
- description String
- Pts object description.
- name String
- ptsObjectName, which must be required.
- pts
Project StringId - ID of the resource.
- status String
- Project status.
- sub
Account StringUin - Sub-user ID.
- List<Property Map>
- Tags List.
- uin String
- User ID.
- updated
At String - Update time.
Supporting Types
PtsProjectTag, PtsProjectTagArgs
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.