云企业网(Cloud Enterprise Network,CEN)提供一种能够快速构建跨地域私有网络(VPC)与云下数据中心(IDC)之间高速、优质、稳定的网络能力,帮助您打造一张具有企业级规模和通信能力的全球云上网络。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const cENCENDemo = new bytepluscc.cen.Cen("CENCENDemo", {
cenName: "CENCENDemo",
description: "CENCENDemo descripiton",
projectName: "iac",
tags: [{
key: "dev",
value: "test",
}],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
c_encen_demo = bytepluscc.cen.Cen("CENCENDemo",
cen_name="CENCENDemo",
description="CENCENDemo descripiton",
project_name="iac",
tags=[{
"key": "dev",
"value": "test",
}])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cen.NewCen(ctx, "CENCENDemo", &cen.CenArgs{
CenName: pulumi.String("CENCENDemo"),
Description: pulumi.String("CENCENDemo descripiton"),
ProjectName: pulumi.String("iac"),
Tags: cen.CenTagArray{
&cen.CenTagArgs{
Key: pulumi.String("dev"),
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 cENCENDemo = new Bytepluscc.Cen.Cen("CENCENDemo", new()
{
CenName = "CENCENDemo",
Description = "CENCENDemo descripiton",
ProjectName = "iac",
Tags = new[]
{
new Bytepluscc.Cen.Inputs.CenTagArgs
{
Key = "dev",
Value = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.cen.Cen;
import com.byteplus.bytepluscc.cen.CenArgs;
import com.pulumi.bytepluscc.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 cENCENDemo = new Cen("cENCENDemo", CenArgs.builder()
.cenName("CENCENDemo")
.description("CENCENDemo descripiton")
.projectName("iac")
.tags(CenTagArgs.builder()
.key("dev")
.value("test")
.build())
.build());
}
}
resources:
cENCENDemo:
type: bytepluscc:cen:Cen
name: CENCENDemo
properties:
cenName: CENCENDemo
description: CENCENDemo descripiton
projectName: iac
tags:
- key: dev
value: test
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: bytepluscc: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 Bytepluscc.Cen.Cen("cenResource", new()
{
CenName = "string",
Description = "string",
ProjectName = "string",
Tags = new[]
{
new Bytepluscc.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 = bytepluscc.cen.Cen("cenResource",
cen_name="string",
description="string",
project_name="string",
tags=[{
"key": "string",
"value": "string",
}])
const cenResource = new bytepluscc.cen.Cen("cenResource", {
cenName: "string",
description: "string",
projectName: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc: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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Cen resource accepts the following input properties:
- Cen
Name string - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- Description string
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- Project
Name string - CEN实例所属项目的名称。不填则默认为default。
-
List<Byteplus.
Cen Tag>
- Cen
Name string - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- Description string
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- Project
Name string - CEN实例所属项目的名称。不填则默认为default。
-
[]Cen
Tag Args
- cen
Name String - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- description String
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project
Name String - CEN实例所属项目的名称。不填则默认为default。
-
List<Cen
Tag>
- cen
Name string - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- description string
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project
Name string - CEN实例所属项目的名称。不填则默认为default。
-
Cen
Tag[]
- cen_
name str - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- description str
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project_
name str - CEN实例所属项目的名称。不填则默认为default。
-
Sequence[Cen
Tag Args]
- cen
Name String - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- description String
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project
Name String - CEN实例所属项目的名称。不填则默认为default。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Cen resource produces the following output properties:
- Account
Id string - CEN实例所属的账号ID。
- Cen
Bandwidth List<string>Package Ids - 带宽包ID。
- Cen
Id string - CEN实例的ID。
- Creation
Time string - 创建CEN实例的时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- Update
Time string - 更新CEN实例的时间。
- Account
Id string - CEN实例所属的账号ID。
- Cen
Bandwidth []stringPackage Ids - 带宽包ID。
- Cen
Id string - CEN实例的ID。
- Creation
Time string - 创建CEN实例的时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- Update
Time string - 更新CEN实例的时间。
- account
Id String - CEN实例所属的账号ID。
- cen
Bandwidth List<String>Package Ids - 带宽包ID。
- cen
Id String - CEN实例的ID。
- creation
Time String - 创建CEN实例的时间。
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update
Time String - 更新CEN实例的时间。
- account
Id string - CEN实例所属的账号ID。
- cen
Bandwidth string[]Package Ids - 带宽包ID。
- cen
Id string - CEN实例的ID。
- creation
Time string - 创建CEN实例的时间。
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update
Time string - 更新CEN实例的时间。
- account_
id str - CEN实例所属的账号ID。
- cen_
bandwidth_ Sequence[str]package_ ids - 带宽包ID。
- cen_
id str - CEN实例的ID。
- creation_
time str - 创建CEN实例的时间。
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update_
time str - 更新CEN实例的时间。
- account
Id String - CEN实例所属的账号ID。
- cen
Bandwidth List<String>Package Ids - 带宽包ID。
- cen
Id String - CEN实例的ID。
- creation
Time String - 创建CEN实例的时间。
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- update
Time String - 更新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) -> Cenfunc 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)resources: _: type: bytepluscc:cen:Cen 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.
- Account
Id string - CEN实例所属的账号ID。
- Cen
Bandwidth List<string>Package Ids - 带宽包ID。
- Cen
Id string - CEN实例的ID。
- Cen
Name string - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- Creation
Time string - 创建CEN实例的时间。
- Description string
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- Project
Name string - CEN实例所属项目的名称。不填则默认为default。
- Status string
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
-
List<Byteplus.
Cen Tag> - Update
Time string - 更新CEN实例的时间。
- Account
Id string - CEN实例所属的账号ID。
- Cen
Bandwidth []stringPackage Ids - 带宽包ID。
- Cen
Id string - CEN实例的ID。
- Cen
Name string - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- Creation
Time string - 创建CEN实例的时间。
- Description string
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- Project
Name string - CEN实例所属项目的名称。不填则默认为default。
- Status string
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
-
[]Cen
Tag Args - Update
Time string - 更新CEN实例的时间。
- account
Id String - CEN实例所属的账号ID。
- cen
Bandwidth List<String>Package Ids - 带宽包ID。
- cen
Id String - CEN实例的ID。
- cen
Name String - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- creation
Time String - 创建CEN实例的时间。
- description String
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project
Name String - CEN实例所属项目的名称。不填则默认为default。
- status String
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
-
List<Cen
Tag> - update
Time String - 更新CEN实例的时间。
- account
Id string - CEN实例所属的账号ID。
- cen
Bandwidth string[]Package Ids - 带宽包ID。
- cen
Id string - CEN实例的ID。
- cen
Name string - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- creation
Time string - 创建CEN实例的时间。
- description string
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project
Name string - CEN实例所属项目的名称。不填则默认为default。
- status string
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
-
Cen
Tag[] - update
Time string - 更新CEN实例的时间。
- account_
id str - CEN实例所属的账号ID。
- cen_
bandwidth_ Sequence[str]package_ ids - 带宽包ID。
- cen_
id str - CEN实例的ID。
- cen_
name str - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- creation_
time str - 创建CEN实例的时间。
- description str
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project_
name str - CEN实例所属项目的名称。不填则默认为default。
- status str
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
-
Sequence[Cen
Tag Args] - update_
time str - 更新CEN实例的时间。
- account
Id String - CEN实例所属的账号ID。
- cen
Bandwidth List<String>Package Ids - 带宽包ID。
- cen
Id String - CEN实例的ID。
- cen
Name String - CEN实例的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。长度限制为1~128个字符。不填则默认为CEN实例的ID。
- creation
Time String - 创建CEN实例的时间。
- description String
- CEN实例的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0~255个字符。不填则默认为空。
- project
Name String - CEN实例所属项目的名称。不填则默认为default。
- status String
- CEN实例的状态。Creating: 创建中Deleting: 删除中Pending:配置中Available:可用
- List<Property Map>
- update
Time String - 更新CEN实例的时间。
Supporting Types
CenTag, CenTagArgs
Import
$ pulumi import bytepluscc:cen/cen:Cen example "cen_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
byteplusccTerraform Provider.
