volcengine.cen.Cen
Explore with Pulumi AI
Provides a resource to manage cen
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Cen.Cen("foo", new()
{
CenName = "acc-test-cen",
Description = "acc-test",
ProjectName = "default",
Tags = new[]
{
new Volcengine.Cen.Inputs.CenTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
});
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("acc-test-cen"),
Description: pulumi.String("acc-test"),
ProjectName: pulumi.String("default"),
Tags: cen.CenTagArray{
&cen.CenTagArgs{
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.cen.Cen;
import com.pulumi.volcengine.cen.CenArgs;
import com.pulumi.volcengine.cen.inputs.CenTagArgs;
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("acc-test-cen")
.description("acc-test")
.projectName("default")
.tags(CenTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cen.Cen("foo",
cen_name="acc-test-cen",
description="acc-test",
project_name="default",
tags=[volcengine.cen.CenTagArgs(
key="k1",
value="v1",
)])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.cen.Cen("foo", {
cenName: "acc-test-cen",
description: "acc-test",
projectName: "default",
tags: [{
key: "k1",
value: "v1",
}],
});
resources:
foo:
type: volcengine:cen:Cen
properties:
cenName: acc-test-cen
description: acc-test
projectName: default
tags:
- key: k1
value: v1
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)
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.
Constructor 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:
- Cen
Name string - The name of the cen.
- Description string
- The description of the cen.
- Project
Name string - The ProjectName of the cen instance.
- List<Cen
Tag> - Tags.
- Cen
Name string - The name of the cen.
- Description string
- The description of the cen.
- Project
Name string - The ProjectName of the cen instance.
- []Cen
Tag Args - Tags.
- cen
Name String - The name of the cen.
- description String
- The description of the cen.
- project
Name String - The ProjectName of the cen instance.
- List<Cen
Tag> - Tags.
- cen
Name string - The name of the cen.
- description string
- The description of the cen.
- project
Name string - The ProjectName of the cen instance.
- Cen
Tag[] - 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.
- Sequence[Cen
Tag Args] - Tags.
- cen
Name String - The name of the cen.
- description String
- The description of the cen.
- project
Name String - The ProjectName of the cen instance.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cen resource produces the following output properties:
- Account
Id string - The account ID of the cen.
- Cen
Bandwidth List<string>Package Ids - A list of bandwidth package IDs of the cen.
- Cen
Id string - The ID of the cen.
- Creation
Time 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.
- Update
Time string - The update time of the cen.
- Account
Id string - The account ID of the cen.
- Cen
Bandwidth []stringPackage Ids - A list of bandwidth package IDs of the cen.
- Cen
Id string - The ID of the cen.
- Creation
Time 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.
- Update
Time string - The update time of the cen.
- account
Id String - The account ID of the cen.
- cen
Bandwidth List<String>Package Ids - A list of bandwidth package IDs of the cen.
- cen
Id String - The ID of the cen.
- creation
Time 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.
- update
Time String - The update time of the cen.
- account
Id string - The account ID of the cen.
- cen
Bandwidth string[]Package Ids - A list of bandwidth package IDs of the cen.
- cen
Id string - The ID of the cen.
- creation
Time 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.
- update
Time string - The update time of the cen.
- account_
id str - The account ID of the cen.
- cen_
bandwidth_ Sequence[str]package_ ids - 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.
- account
Id String - The account ID of the cen.
- cen
Bandwidth List<String>Package Ids - A list of bandwidth package IDs of the cen.
- cen
Id String - The ID of the cen.
- creation
Time 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.
- update
Time 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.
- Account
Id string - The account ID of the cen.
- Cen
Bandwidth List<string>Package Ids - A list of bandwidth package IDs of the cen.
- Cen
Id string - The ID of the cen.
- Cen
Name string - The name of the cen.
- Creation
Time string - The create time of the cen.
- Description string
- The description of the cen.
- Project
Name string - The ProjectName of the cen instance.
- Status string
- The status of the cen.
- List<Cen
Tag> - Tags.
- Update
Time string - The update time of the cen.
- Account
Id string - The account ID of the cen.
- Cen
Bandwidth []stringPackage Ids - A list of bandwidth package IDs of the cen.
- Cen
Id string - The ID of the cen.
- Cen
Name string - The name of the cen.
- Creation
Time string - The create time of the cen.
- Description string
- The description of the cen.
- Project
Name string - The ProjectName of the cen instance.
- Status string
- The status of the cen.
- []Cen
Tag Args - Tags.
- Update
Time string - The update time of the cen.
- account
Id String - The account ID of the cen.
- cen
Bandwidth List<String>Package Ids - A list of bandwidth package IDs of the cen.
- cen
Id String - The ID of the cen.
- cen
Name String - The name of the cen.
- creation
Time String - The create time of the cen.
- description String
- The description of the cen.
- project
Name String - The ProjectName of the cen instance.
- status String
- The status of the cen.
- List<Cen
Tag> - Tags.
- update
Time String - The update time of the cen.
- account
Id string - The account ID of the cen.
- cen
Bandwidth string[]Package Ids - A list of bandwidth package IDs of the cen.
- cen
Id string - The ID of the cen.
- cen
Name string - The name of the cen.
- creation
Time string - The create time of the cen.
- description string
- The description of the cen.
- project
Name string - The ProjectName of the cen instance.
- status string
- The status of the cen.
- Cen
Tag[] - Tags.
- update
Time string - The update time of the cen.
- account_
id str - The account ID of the cen.
- cen_
bandwidth_ Sequence[str]package_ ids - 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.
- Sequence[Cen
Tag Args] - Tags.
- update_
time str - The update time of the cen.
- account
Id String - The account ID of the cen.
- cen
Bandwidth List<String>Package Ids - A list of bandwidth package IDs of the cen.
- cen
Id String - The ID of the cen.
- cen
Name String - The name of the cen.
- creation
Time String - The create time of the cen.
- description String
- The description of the cen.
- project
Name String - The ProjectName of the cen instance.
- status String
- The status of the cen.
- List<Property Map>
- Tags.
- update
Time String - The update time of the cen.
Supporting Types
CenTag, CenTagArgs
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.