1. Packages
  2. Volcengine
  3. API Docs
  4. cen
  5. Cen
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.cen.Cen

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage cen

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Cen.Cen("foo", new()
        {
            CenName = "tf-test-3",
            Description = "tf-test",
            ProjectName = "default",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cen.NewCen(ctx, "foo", &cen.CenArgs{
    			CenName:     pulumi.String("tf-test-3"),
    			Description: pulumi.String("tf-test"),
    			ProjectName: pulumi.String("default"),
    		})
    		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.cen.Cen;
    import com.pulumi.volcengine.cen.CenArgs;
    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 Cen("foo", CenArgs.builder()        
                .cenName("tf-test-3")
                .description("tf-test")
                .projectName("default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cen.Cen("foo",
        cen_name="tf-test-3",
        description="tf-test",
        project_name="default")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cen.Cen("foo", {
        cenName: "tf-test-3",
        description: "tf-test",
        projectName: "default",
    });
    
    resources:
      foo:
        type: volcengine:cen:Cen
        properties:
          cenName: tf-test-3
          description: tf-test
          projectName: default
    

    Create Cen Resource

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

    Constructor syntax

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

    Example

    The following reference example uses placeholder values for all input properties.

    var cenResource = new Volcengine.Cen.Cen("cenResource", new()
    {
        CenName = "string",
        Description = "string",
        ProjectName = "string",
        Tags = new[]
        {
            new Volcengine.Cen.Inputs.CenTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := cen.NewCen(ctx, "cenResource", &cen.CenArgs{
    	CenName:     pulumi.String("string"),
    	Description: pulumi.String("string"),
    	ProjectName: pulumi.String("string"),
    	Tags: cen.CenTagArray{
    		&cen.CenTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var cenResource = new Cen("cenResource", CenArgs.builder()        
        .cenName("string")
        .description("string")
        .projectName("string")
        .tags(CenTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    cen_resource = volcengine.cen.Cen("cenResource",
        cen_name="string",
        description="string",
        project_name="string",
        tags=[volcengine.cen.CenTagArgs(
            key="string",
            value="string",
        )])
    
    const cenResource = new volcengine.cen.Cen("cenResource", {
        cenName: "string",
        description: "string",
        projectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:cen:Cen
    properties:
        cenName: string
        description: string
        projectName: string
        tags:
            - key: string
              value: string
    

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

    CenName string
    The name of the cen.
    Description string
    The description of the cen.
    ProjectName string
    The ProjectName of the cen instance.
    Tags List<Volcengine.CenTag>
    Tags.
    CenName string
    The name of the cen.
    Description string
    The description of the cen.
    ProjectName string
    The ProjectName of the cen instance.
    Tags []CenTagArgs
    Tags.
    cenName String
    The name of the cen.
    description String
    The description of the cen.
    projectName String
    The ProjectName of the cen instance.
    tags List<CenTag>
    Tags.
    cenName string
    The name of the cen.
    description string
    The description of the cen.
    projectName string
    The ProjectName of the cen instance.
    tags CenTag[]
    Tags.
    cen_name str
    The name of the cen.
    description str
    The description of the cen.
    project_name str
    The ProjectName of the cen instance.
    tags Sequence[CenTagArgs]
    Tags.
    cenName String
    The name of the cen.
    description String
    The description of the cen.
    projectName String
    The ProjectName of the cen instance.
    tags List<Property Map>
    Tags.

    Outputs

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

    AccountId string
    The account ID of the cen.
    CenBandwidthPackageIds List<string>
    A list of bandwidth package IDs of the cen.
    CenId string
    The ID of the cen.
    CreationTime string
    The create time of the cen.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the cen.
    UpdateTime string
    The update time of the cen.
    AccountId string
    The account ID of the cen.
    CenBandwidthPackageIds []string
    A list of bandwidth package IDs of the cen.
    CenId string
    The ID of the cen.
    CreationTime string
    The create time of the cen.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the cen.
    UpdateTime string
    The update time of the cen.
    accountId String
    The account ID of the cen.
    cenBandwidthPackageIds List<String>
    A list of bandwidth package IDs of the cen.
    cenId String
    The ID of the cen.
    creationTime String
    The create time of the cen.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the cen.
    updateTime String
    The update time of the cen.
    accountId string
    The account ID of the cen.
    cenBandwidthPackageIds string[]
    A list of bandwidth package IDs of the cen.
    cenId string
    The ID of the cen.
    creationTime string
    The create time of the cen.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the cen.
    updateTime string
    The update time of the cen.
    account_id str
    The account ID of the cen.
    cen_bandwidth_package_ids Sequence[str]
    A list of bandwidth package IDs of the cen.
    cen_id str
    The ID of the cen.
    creation_time str
    The create time of the cen.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the cen.
    update_time str
    The update time of the cen.
    accountId String
    The account ID of the cen.
    cenBandwidthPackageIds List<String>
    A list of bandwidth package IDs of the cen.
    cenId String
    The ID of the cen.
    creationTime String
    The create time of the cen.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the cen.
    updateTime String
    The update time of the cen.

    Look up Existing Cen Resource

    Get an existing Cen 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?: CenState, opts?: CustomResourceOptions): Cen
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            cen_bandwidth_package_ids: Optional[Sequence[str]] = None,
            cen_id: Optional[str] = None,
            cen_name: Optional[str] = None,
            creation_time: Optional[str] = None,
            description: Optional[str] = None,
            project_name: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[CenTagArgs]] = None,
            update_time: Optional[str] = None) -> Cen
    func GetCen(ctx *Context, name string, id IDInput, state *CenState, opts ...ResourceOption) (*Cen, error)
    public static Cen Get(string name, Input<string> id, CenState? state, CustomResourceOptions? opts = null)
    public static Cen get(String name, Output<String> id, CenState 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:
    AccountId string
    The account ID of the cen.
    CenBandwidthPackageIds List<string>
    A list of bandwidth package IDs of the cen.
    CenId string
    The ID of the cen.
    CenName string
    The name of the cen.
    CreationTime string
    The create time of the cen.
    Description string
    The description of the cen.
    ProjectName string
    The ProjectName of the cen instance.
    Status string
    The status of the cen.
    Tags List<Volcengine.CenTag>
    Tags.
    UpdateTime string
    The update time of the cen.
    AccountId string
    The account ID of the cen.
    CenBandwidthPackageIds []string
    A list of bandwidth package IDs of the cen.
    CenId string
    The ID of the cen.
    CenName string
    The name of the cen.
    CreationTime string
    The create time of the cen.
    Description string
    The description of the cen.
    ProjectName string
    The ProjectName of the cen instance.
    Status string
    The status of the cen.
    Tags []CenTagArgs
    Tags.
    UpdateTime string
    The update time of the cen.
    accountId String
    The account ID of the cen.
    cenBandwidthPackageIds List<String>
    A list of bandwidth package IDs of the cen.
    cenId String
    The ID of the cen.
    cenName String
    The name of the cen.
    creationTime String
    The create time of the cen.
    description String
    The description of the cen.
    projectName String
    The ProjectName of the cen instance.
    status String
    The status of the cen.
    tags List<CenTag>
    Tags.
    updateTime String
    The update time of the cen.
    accountId string
    The account ID of the cen.
    cenBandwidthPackageIds string[]
    A list of bandwidth package IDs of the cen.
    cenId string
    The ID of the cen.
    cenName string
    The name of the cen.
    creationTime string
    The create time of the cen.
    description string
    The description of the cen.
    projectName string
    The ProjectName of the cen instance.
    status string
    The status of the cen.
    tags CenTag[]
    Tags.
    updateTime string
    The update time of the cen.
    account_id str
    The account ID of the cen.
    cen_bandwidth_package_ids Sequence[str]
    A list of bandwidth package IDs of the cen.
    cen_id str
    The ID of the cen.
    cen_name str
    The name of the cen.
    creation_time str
    The create time of the cen.
    description str
    The description of the cen.
    project_name str
    The ProjectName of the cen instance.
    status str
    The status of the cen.
    tags Sequence[CenTagArgs]
    Tags.
    update_time str
    The update time of the cen.
    accountId String
    The account ID of the cen.
    cenBandwidthPackageIds List<String>
    A list of bandwidth package IDs of the cen.
    cenId String
    The ID of the cen.
    cenName String
    The name of the cen.
    creationTime String
    The create time of the cen.
    description String
    The description of the cen.
    projectName String
    The ProjectName of the cen instance.
    status String
    The status of the cen.
    tags List<Property Map>
    Tags.
    updateTime String
    The update time of the cen.

    Supporting Types

    CenTag, CenTagArgs

    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

    Cen can be imported using the id, e.g.

     $ pulumi import volcengine:cen/cen:Cen default cen-7qthudw0ll6jmc****
    

    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.23 published on Wednesday, Jan 3, 2024 by Volcengine