UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

218 lines (217 loc) 7.06 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage direct connect connection * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.direct_connect.Connection("foo", { * bandwidth: 1000, * customerContactEmail: "email@aaa.com", * customerContactPhone: "12345678911", * customerName: "tf-a", * description: "tf-test", * directConnectAccessPointId: "ap-cn-beijing-a", * directConnectConnectionName: "tf-test-connection", * lineOperator: "ChinaOther", * peerLocation: "XX路XX号XX楼XX机房", * portSpec: "10G", * portType: "10GBase", * tags: [{ * key: "k1", * value: "v1", * }], * }); * ``` * * ## Import * * DirectConnectConnection can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:direct_connect/connection:Connection default dcc-7qthudw0ll6jmc**** * ``` */ export declare class Connection extends pulumi.CustomResource { /** * Get an existing Connection resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectionState, opts?: pulumi.CustomResourceOptions): Connection; /** * Returns true if the given object is an instance of Connection. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Connection; /** * The line band width,unit:Mbps. */ readonly bandwidth: pulumi.Output<number>; /** * The dedicated line contact email. */ readonly customerContactEmail: pulumi.Output<string>; /** * The dedicated line contact phone. */ readonly customerContactPhone: pulumi.Output<string>; /** * The dedicated line contact name. */ readonly customerName: pulumi.Output<string>; /** * The description of direct connect. */ readonly description: pulumi.Output<string | undefined>; /** * The direct connect access point id. */ readonly directConnectAccessPointId: pulumi.Output<string>; /** * The name of direct connect. */ readonly directConnectConnectionName: pulumi.Output<string>; /** * The physical leased line operator.valid value contains `ChinaTelecom`,`ChinaMobile`,`ChinaUnicom`,`ChinaOther`. */ readonly lineOperator: pulumi.Output<string>; /** * The local IDC address. */ readonly peerLocation: pulumi.Output<string>; /** * The physical leased line port spec.valid value contains `1G`,`10G`. */ readonly portSpec: pulumi.Output<string>; /** * The physical leased line port type and spec.valid value contains `1000Base-T`,`10GBase-T`,`1000Base`,`10GBase`,`40GBase`,`100GBase`. */ readonly portType: pulumi.Output<string>; /** * The physical leased line tags. */ readonly tags: pulumi.Output<outputs.direct_connect.ConnectionTag[] | undefined>; /** * Create a Connection resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Connection resources. */ export interface ConnectionState { /** * The line band width,unit:Mbps. */ bandwidth?: pulumi.Input<number>; /** * The dedicated line contact email. */ customerContactEmail?: pulumi.Input<string>; /** * The dedicated line contact phone. */ customerContactPhone?: pulumi.Input<string>; /** * The dedicated line contact name. */ customerName?: pulumi.Input<string>; /** * The description of direct connect. */ description?: pulumi.Input<string>; /** * The direct connect access point id. */ directConnectAccessPointId?: pulumi.Input<string>; /** * The name of direct connect. */ directConnectConnectionName?: pulumi.Input<string>; /** * The physical leased line operator.valid value contains `ChinaTelecom`,`ChinaMobile`,`ChinaUnicom`,`ChinaOther`. */ lineOperator?: pulumi.Input<string>; /** * The local IDC address. */ peerLocation?: pulumi.Input<string>; /** * The physical leased line port spec.valid value contains `1G`,`10G`. */ portSpec?: pulumi.Input<string>; /** * The physical leased line port type and spec.valid value contains `1000Base-T`,`10GBase-T`,`1000Base`,`10GBase`,`40GBase`,`100GBase`. */ portType?: pulumi.Input<string>; /** * The physical leased line tags. */ tags?: pulumi.Input<pulumi.Input<inputs.direct_connect.ConnectionTag>[]>; } /** * The set of arguments for constructing a Connection resource. */ export interface ConnectionArgs { /** * The line band width,unit:Mbps. */ bandwidth: pulumi.Input<number>; /** * The dedicated line contact email. */ customerContactEmail: pulumi.Input<string>; /** * The dedicated line contact phone. */ customerContactPhone: pulumi.Input<string>; /** * The dedicated line contact name. */ customerName: pulumi.Input<string>; /** * The description of direct connect. */ description?: pulumi.Input<string>; /** * The direct connect access point id. */ directConnectAccessPointId: pulumi.Input<string>; /** * The name of direct connect. */ directConnectConnectionName?: pulumi.Input<string>; /** * The physical leased line operator.valid value contains `ChinaTelecom`,`ChinaMobile`,`ChinaUnicom`,`ChinaOther`. */ lineOperator: pulumi.Input<string>; /** * The local IDC address. */ peerLocation: pulumi.Input<string>; /** * The physical leased line port spec.valid value contains `1G`,`10G`. */ portSpec: pulumi.Input<string>; /** * The physical leased line port type and spec.valid value contains `1000Base-T`,`10GBase-T`,`1000Base`,`10GBase`,`40GBase`,`100GBase`. */ portType: pulumi.Input<string>; /** * The physical leased line tags. */ tags?: pulumi.Input<pulumi.Input<inputs.direct_connect.ConnectionTag>[]>; }