1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. Project
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.tls.Project

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage tls project

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Tls.Project("foo", new()
        {
            Description = "tf-desc",
            IamProjectName = "default",
            ProjectName = "tf-test",
            Tags = new[]
            {
                new Volcengine.Tls.Inputs.ProjectTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.NewProject(ctx, "foo", &tls.ProjectArgs{
    			Description:    pulumi.String("tf-desc"),
    			IamProjectName: pulumi.String("default"),
    			ProjectName:    pulumi.String("tf-test"),
    			Tags: tls.ProjectTagArray{
    				&tls.ProjectTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.Project;
    import com.pulumi.volcengine.tls.ProjectArgs;
    import com.pulumi.volcengine.tls.inputs.ProjectTagArgs;
    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 foo = new Project("foo", ProjectArgs.builder()        
                .description("tf-desc")
                .iamProjectName("default")
                .projectName("tf-test")
                .tags(ProjectTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.tls.Project("foo",
        description="tf-desc",
        iam_project_name="default",
        project_name="tf-test",
        tags=[volcengine.tls.ProjectTagArgs(
            key="k1",
            value="v1",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.tls.Project("foo", {
        description: "tf-desc",
        iamProjectName: "default",
        projectName: "tf-test",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    
    resources:
      foo:
        type: volcengine:tls:Project
        properties:
          description: tf-desc
          iamProjectName: default
          projectName: tf-test
          tags:
            - key: k1
              value: v1
    

    Create Project Resource

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

    Constructor syntax

    new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
    @overload
    def Project(resource_name: str,
                args: ProjectArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Project(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                project_name: Optional[str] = None,
                description: Optional[str] = None,
                iam_project_name: Optional[str] = None,
                tags: Optional[Sequence[ProjectTagArgs]] = None)
    func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
    public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
    public Project(String name, ProjectArgs args)
    public Project(String name, ProjectArgs args, CustomResourceOptions options)
    
    type: volcengine:tls:Project
    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 ProjectArgs
    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 ProjectArgs
    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 ProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectArgs
    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 projectResource = new Volcengine.Tls.Project("projectResource", new()
    {
        ProjectName = "string",
        Description = "string",
        IamProjectName = "string",
        Tags = new[]
        {
            new Volcengine.Tls.Inputs.ProjectTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := tls.NewProject(ctx, "projectResource", &tls.ProjectArgs{
    	ProjectName:    pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	IamProjectName: pulumi.String("string"),
    	Tags: tls.ProjectTagArray{
    		&tls.ProjectTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var projectResource = new Project("projectResource", ProjectArgs.builder()
        .projectName("string")
        .description("string")
        .iamProjectName("string")
        .tags(ProjectTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    project_resource = volcengine.tls.Project("projectResource",
        project_name="string",
        description="string",
        iam_project_name="string",
        tags=[volcengine.tls.ProjectTagArgs(
            key="string",
            value="string",
        )])
    
    const projectResource = new volcengine.tls.Project("projectResource", {
        projectName: "string",
        description: "string",
        iamProjectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:tls:Project
    properties:
        description: string
        iamProjectName: string
        projectName: string
        tags:
            - key: string
              value: string
    

    Project Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Project resource accepts the following input properties:

    ProjectName string
    The name of the tls project.
    Description string
    The description of the tls project.
    IamProjectName string
    The IAM project name of the tls project.
    Tags List<ProjectTag>
    Tags.
    ProjectName string
    The name of the tls project.
    Description string
    The description of the tls project.
    IamProjectName string
    The IAM project name of the tls project.
    Tags []ProjectTagArgs
    Tags.
    projectName String
    The name of the tls project.
    description String
    The description of the tls project.
    iamProjectName String
    The IAM project name of the tls project.
    tags List<ProjectTag>
    Tags.
    projectName string
    The name of the tls project.
    description string
    The description of the tls project.
    iamProjectName string
    The IAM project name of the tls project.
    tags ProjectTag[]
    Tags.
    project_name str
    The name of the tls project.
    description str
    The description of the tls project.
    iam_project_name str
    The IAM project name of the tls project.
    tags Sequence[ProjectTagArgs]
    Tags.
    projectName String
    The name of the tls project.
    description String
    The description of the tls project.
    iamProjectName String
    The IAM project name of the tls project.
    tags List<Property Map>
    Tags.

    Outputs

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

    CreateTime string
    The create time of the tls project.
    Id string
    The provider-assigned unique ID for this managed resource.
    InnerNetDomain string
    The inner net domain of the tls project.
    TopicCount int
    The count of topics in the tls project.
    CreateTime string
    The create time of the tls project.
    Id string
    The provider-assigned unique ID for this managed resource.
    InnerNetDomain string
    The inner net domain of the tls project.
    TopicCount int
    The count of topics in the tls project.
    createTime String
    The create time of the tls project.
    id String
    The provider-assigned unique ID for this managed resource.
    innerNetDomain String
    The inner net domain of the tls project.
    topicCount Integer
    The count of topics in the tls project.
    createTime string
    The create time of the tls project.
    id string
    The provider-assigned unique ID for this managed resource.
    innerNetDomain string
    The inner net domain of the tls project.
    topicCount number
    The count of topics in the tls project.
    create_time str
    The create time of the tls project.
    id str
    The provider-assigned unique ID for this managed resource.
    inner_net_domain str
    The inner net domain of the tls project.
    topic_count int
    The count of topics in the tls project.
    createTime String
    The create time of the tls project.
    id String
    The provider-assigned unique ID for this managed resource.
    innerNetDomain String
    The inner net domain of the tls project.
    topicCount Number
    The count of topics in the tls project.

    Look up Existing Project Resource

    Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            iam_project_name: Optional[str] = None,
            inner_net_domain: Optional[str] = None,
            project_name: Optional[str] = None,
            tags: Optional[Sequence[ProjectTagArgs]] = None,
            topic_count: Optional[int] = None) -> Project
    func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
    public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
    public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CreateTime string
    The create time of the tls project.
    Description string
    The description of the tls project.
    IamProjectName string
    The IAM project name of the tls project.
    InnerNetDomain string
    The inner net domain of the tls project.
    ProjectName string
    The name of the tls project.
    Tags List<ProjectTag>
    Tags.
    TopicCount int
    The count of topics in the tls project.
    CreateTime string
    The create time of the tls project.
    Description string
    The description of the tls project.
    IamProjectName string
    The IAM project name of the tls project.
    InnerNetDomain string
    The inner net domain of the tls project.
    ProjectName string
    The name of the tls project.
    Tags []ProjectTagArgs
    Tags.
    TopicCount int
    The count of topics in the tls project.
    createTime String
    The create time of the tls project.
    description String
    The description of the tls project.
    iamProjectName String
    The IAM project name of the tls project.
    innerNetDomain String
    The inner net domain of the tls project.
    projectName String
    The name of the tls project.
    tags List<ProjectTag>
    Tags.
    topicCount Integer
    The count of topics in the tls project.
    createTime string
    The create time of the tls project.
    description string
    The description of the tls project.
    iamProjectName string
    The IAM project name of the tls project.
    innerNetDomain string
    The inner net domain of the tls project.
    projectName string
    The name of the tls project.
    tags ProjectTag[]
    Tags.
    topicCount number
    The count of topics in the tls project.
    create_time str
    The create time of the tls project.
    description str
    The description of the tls project.
    iam_project_name str
    The IAM project name of the tls project.
    inner_net_domain str
    The inner net domain of the tls project.
    project_name str
    The name of the tls project.
    tags Sequence[ProjectTagArgs]
    Tags.
    topic_count int
    The count of topics in the tls project.
    createTime String
    The create time of the tls project.
    description String
    The description of the tls project.
    iamProjectName String
    The IAM project name of the tls project.
    innerNetDomain String
    The inner net domain of the tls project.
    projectName String
    The name of the tls project.
    tags List<Property Map>
    Tags.
    topicCount Number
    The count of topics in the tls project.

    Supporting Types

    ProjectTag, ProjectTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Import

    Tls Project can be imported using the id, e.g.

     $ pulumi import volcengine:tls/project:Project default e020c978-4f05-40e1-9167-0113d3ef****
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine