1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. tls
  5. Project
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus

    日志项目是数据的项目管理单元,用于租户资源隔离和控制,通常一个日志项目对应一个应用、业务或产品。

    Example Usage

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

    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: bytepluscc: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 byteplusccProjectResource = new Bytepluscc.Tls.Project("byteplusccProjectResource", new()
    {
        ProjectName = "string",
        Description = "string",
        IamProjectName = "string",
        Tags = new[]
        {
            new Bytepluscc.Tls.Inputs.ProjectTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := tls.NewProject(ctx, "byteplusccProjectResource", &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 byteplusccProjectResource = new com.byteplus.bytepluscc.tls.Project("byteplusccProjectResource", com.byteplus.bytepluscc.tls.ProjectArgs.builder()
        .projectName("string")
        .description("string")
        .iamProjectName("string")
        .tags(ProjectTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    bytepluscc_project_resource = bytepluscc.tls.Project("byteplusccProjectResource",
        project_name="string",
        description="string",
        iam_project_name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const byteplusccProjectResource = new bytepluscc.tls.Project("byteplusccProjectResource", {
        projectName: "string",
        description: "string",
        iamProjectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: bytepluscc: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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Project resource accepts the following input properties:

    ProjectName string
    日志项目名称。
    Description string
    日志项目的简单描述。
    IamProjectName string
    日志项目所属的 IAM 项目。
    Tags List<Byteplus.ProjectTag>
    ProjectName string
    日志项目名称。
    Description string
    日志项目的简单描述。
    IamProjectName string
    日志项目所属的 IAM 项目。
    Tags []ProjectTagArgs
    projectName String
    日志项目名称。
    description String
    日志项目的简单描述。
    iamProjectName String
    日志项目所属的 IAM 项目。
    tags List<ProjectTag>
    projectName string
    日志项目名称。
    description string
    日志项目的简单描述。
    iamProjectName string
    日志项目所属的 IAM 项目。
    tags ProjectTag[]
    project_name str
    日志项目名称。
    description str
    日志项目的简单描述。
    iam_project_name str
    日志项目所属的 IAM 项目。
    tags Sequence[ProjectTagArgs]
    projectName String
    日志项目名称。
    description String
    日志项目的简单描述。
    iamProjectName String
    日志项目所属的 IAM 项目。
    tags List<Property Map>

    Outputs

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

    CreatedTime string
    日志项目创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    InnerNetDomain string
    私网连接域名。
    ProjectId string
    日志项目的 ID。
    TopicCount int
    当前日志项目下的日志主题数量。
    CreatedTime string
    日志项目创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    InnerNetDomain string
    私网连接域名。
    ProjectId string
    日志项目的 ID。
    TopicCount int
    当前日志项目下的日志主题数量。
    createdTime String
    日志项目创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    innerNetDomain String
    私网连接域名。
    projectId String
    日志项目的 ID。
    topicCount Integer
    当前日志项目下的日志主题数量。
    createdTime string
    日志项目创建时间。
    id string
    The provider-assigned unique ID for this managed resource.
    innerNetDomain string
    私网连接域名。
    projectId string
    日志项目的 ID。
    topicCount number
    当前日志项目下的日志主题数量。
    created_time str
    日志项目创建时间。
    id str
    The provider-assigned unique ID for this managed resource.
    inner_net_domain str
    私网连接域名。
    project_id str
    日志项目的 ID。
    topic_count int
    当前日志项目下的日志主题数量。
    createdTime String
    日志项目创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    innerNetDomain String
    私网连接域名。
    projectId String
    日志项目的 ID。
    topicCount Number
    当前日志项目下的日志主题数量。

    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,
            created_time: Optional[str] = None,
            description: Optional[str] = None,
            iam_project_name: Optional[str] = None,
            inner_net_domain: Optional[str] = None,
            project_id: 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)
    resources:  _:    type: bytepluscc:tls:Project    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:
    CreatedTime string
    日志项目创建时间。
    Description string
    日志项目的简单描述。
    IamProjectName string
    日志项目所属的 IAM 项目。
    InnerNetDomain string
    私网连接域名。
    ProjectId string
    日志项目的 ID。
    ProjectName string
    日志项目名称。
    Tags List<Byteplus.ProjectTag>
    TopicCount int
    当前日志项目下的日志主题数量。
    CreatedTime string
    日志项目创建时间。
    Description string
    日志项目的简单描述。
    IamProjectName string
    日志项目所属的 IAM 项目。
    InnerNetDomain string
    私网连接域名。
    ProjectId string
    日志项目的 ID。
    ProjectName string
    日志项目名称。
    Tags []ProjectTagArgs
    TopicCount int
    当前日志项目下的日志主题数量。
    createdTime String
    日志项目创建时间。
    description String
    日志项目的简单描述。
    iamProjectName String
    日志项目所属的 IAM 项目。
    innerNetDomain String
    私网连接域名。
    projectId String
    日志项目的 ID。
    projectName String
    日志项目名称。
    tags List<ProjectTag>
    topicCount Integer
    当前日志项目下的日志主题数量。
    createdTime string
    日志项目创建时间。
    description string
    日志项目的简单描述。
    iamProjectName string
    日志项目所属的 IAM 项目。
    innerNetDomain string
    私网连接域名。
    projectId string
    日志项目的 ID。
    projectName string
    日志项目名称。
    tags ProjectTag[]
    topicCount number
    当前日志项目下的日志主题数量。
    created_time str
    日志项目创建时间。
    description str
    日志项目的简单描述。
    iam_project_name str
    日志项目所属的 IAM 项目。
    inner_net_domain str
    私网连接域名。
    project_id str
    日志项目的 ID。
    project_name str
    日志项目名称。
    tags Sequence[ProjectTagArgs]
    topic_count int
    当前日志项目下的日志主题数量。
    createdTime String
    日志项目创建时间。
    description String
    日志项目的简单描述。
    iamProjectName String
    日志项目所属的 IAM 项目。
    innerNetDomain String
    私网连接域名。
    projectId String
    日志项目的 ID。
    projectName String
    日志项目名称。
    tags List<Property Map>
    topicCount Number
    当前日志项目下的日志主题数量。

    Supporting Types

    ProjectTag, ProjectTagArgs

    Key string
    标签键。
    Value string
    标签值。
    Key string
    标签键。
    Value string
    标签值。
    key String
    标签键。
    value String
    标签值。
    key string
    标签键。
    value string
    标签值。
    key str
    标签键。
    value str
    标签值。
    key String
    标签键。
    value String
    标签值。

    Import

    $ pulumi import bytepluscc:tls/project:Project example "project_id"
    

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

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.