volcengine.tls.Project
Explore with Pulumi AI
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:
- Project
Name string - The name of the tls project.
- Description string
- The description of the tls project.
- Iam
Project stringName - The IAM project name of the tls project.
- List<Project
Tag> - Tags.
- Project
Name string - The name of the tls project.
- Description string
- The description of the tls project.
- Iam
Project stringName - The IAM project name of the tls project.
- []Project
Tag Args - Tags.
- project
Name String - The name of the tls project.
- description String
- The description of the tls project.
- iam
Project StringName - The IAM project name of the tls project.
- List<Project
Tag> - Tags.
- project
Name string - The name of the tls project.
- description string
- The description of the tls project.
- iam
Project stringName - The IAM project name of the tls project.
- Project
Tag[] - Tags.
- project_
name str - The name of the tls project.
- description str
- The description of the tls project.
- iam_
project_ strname - The IAM project name of the tls project.
- Sequence[Project
Tag Args] - Tags.
- project
Name String - The name of the tls project.
- description String
- The description of the tls project.
- iam
Project StringName - The IAM project name of the tls project.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- Create
Time string - The create time of the tls project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inner
Net stringDomain - The inner net domain of the tls project.
- Topic
Count int - The count of topics in the tls project.
- Create
Time string - The create time of the tls project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inner
Net stringDomain - The inner net domain of the tls project.
- Topic
Count int - The count of topics in the tls project.
- create
Time String - The create time of the tls project.
- id String
- The provider-assigned unique ID for this managed resource.
- inner
Net StringDomain - The inner net domain of the tls project.
- topic
Count Integer - The count of topics in the tls project.
- create
Time string - The create time of the tls project.
- id string
- The provider-assigned unique ID for this managed resource.
- inner
Net stringDomain - The inner net domain of the tls project.
- topic
Count 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_ strdomain - The inner net domain of the tls project.
- topic_
count int - The count of topics in the tls project.
- create
Time String - The create time of the tls project.
- id String
- The provider-assigned unique ID for this managed resource.
- inner
Net StringDomain - The inner net domain of the tls project.
- topic
Count 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.
- Create
Time string - The create time of the tls project.
- Description string
- The description of the tls project.
- Iam
Project stringName - The IAM project name of the tls project.
- Inner
Net stringDomain - The inner net domain of the tls project.
- Project
Name string - The name of the tls project.
- List<Project
Tag> - Tags.
- Topic
Count int - The count of topics in the tls project.
- Create
Time string - The create time of the tls project.
- Description string
- The description of the tls project.
- Iam
Project stringName - The IAM project name of the tls project.
- Inner
Net stringDomain - The inner net domain of the tls project.
- Project
Name string - The name of the tls project.
- []Project
Tag Args - Tags.
- Topic
Count int - The count of topics in the tls project.
- create
Time String - The create time of the tls project.
- description String
- The description of the tls project.
- iam
Project StringName - The IAM project name of the tls project.
- inner
Net StringDomain - The inner net domain of the tls project.
- project
Name String - The name of the tls project.
- List<Project
Tag> - Tags.
- topic
Count Integer - The count of topics in the tls project.
- create
Time string - The create time of the tls project.
- description string
- The description of the tls project.
- iam
Project stringName - The IAM project name of the tls project.
- inner
Net stringDomain - The inner net domain of the tls project.
- project
Name string - The name of the tls project.
- Project
Tag[] - Tags.
- topic
Count 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_ strname - The IAM project name of the tls project.
- inner_
net_ strdomain - The inner net domain of the tls project.
- project_
name str - The name of the tls project.
- Sequence[Project
Tag Args] - Tags.
- topic_
count int - The count of topics in the tls project.
- create
Time String - The create time of the tls project.
- description String
- The description of the tls project.
- iam
Project StringName - The IAM project name of the tls project.
- inner
Net StringDomain - The inner net domain of the tls project.
- project
Name String - The name of the tls project.
- List<Property Map>
- Tags.
- topic
Count Number - The count of topics in the tls project.
Supporting Types
ProjectTag, ProjectTagArgs
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.