import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The virtual interface is built on top of a physical dedicated line. It is a logical interface that enables the local data center (IDC) to connect to different private networks in the cloud via the physical dedicated line. Supports both static routing and BGP routing. This operation uses BGP routing. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const directConnectVirtualInterfaceDemo = new volcenginecc.directconnect.VirtualInterface("DirectConnectVirtualInterfaceDemo", { * localIpv6Ip: "2408:xxxx:cc:400::1/64", * description: "生产环境虚拟接口", * directConnectGatewayId: "dcg-****", * directConnectConnectionId: "dcc-****", * peerIp: "192.168.100.2/30", * enableBfdEcho: false, * enableNqa: false, * bfdDetectMultiplier: 3, * peerIpv6Ip: "2408:xxxx:cc:400::2/64", * routeType: "BGP", * virtualInterfaceName: "prod-virtual-interface", * localIp: "192.168.100.1/30", * enableBfd: true, * bandwidth: 50, * vlanId: 2111, * tags: [{ * value: "env", * key: "test", * }], * bfdDetectInterval: 1000, * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:directconnect/virtualInterface:VirtualInterface example "virtual_interface_id" * ``` */ export declare class VirtualInterface extends pulumi.CustomResource { /** * Get an existing VirtualInterface 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, state?: VirtualInterfaceState, opts?: pulumi.CustomResourceOptions): VirtualInterface; /** * Returns true if the given object is an instance of VirtualInterface. 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 VirtualInterface; /** * ID of the account to which the dedicated line gateway belongs. */ readonly accountId: pulumi.Output; /** * Bandwidth limit of the virtual interface, in Mbps. */ readonly bandwidth: pulumi.Output; /** * BFD detection interval (ms). */ readonly bfdDetectInterval: pulumi.Output; /** * BFD detection count. */ readonly bfdDetectMultiplier: pulumi.Output; /** * Time when the virtual interface was created. */ readonly creationTime: pulumi.Output; /** * Description of the virtual interface. */ readonly description: pulumi.Output; /** * ID of the physical dedicated line associated with the virtual interface. */ readonly directConnectConnectionId: pulumi.Output; /** * ID of the dedicated gateway associated with the virtual interface. */ readonly directConnectGatewayId: pulumi.Output; /** * Enable BFD detection. true: enabled false: disabled. */ readonly enableBfd: pulumi.Output; /** * Enable BFD detection echo packet mode. true: enabled false: disabled. */ readonly enableBfdEcho: pulumi.Output; /** * Is NQA detection enabled? true: enabled false: not enabled. */ readonly enableNqa: pulumi.Output; /** * Local gateway interconnection IP address of the virtual interface. */ readonly localIp: pulumi.Output; /** * IPv6 address of the local gateway interconnection IP for the virtual interface. */ readonly localIpv6Ip: pulumi.Output; /** * Interval for sending consecutive probe packets in NQA detection. */ readonly nqaDetectInterval: pulumi.Output; /** * NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty. */ readonly nqaDetectMultiplier: pulumi.Output; /** * Peer gateway interconnection IP address of the virtual interface. */ readonly peerIp: pulumi.Output; /** * IPv6 address of the peer gateway interconnection IP for the virtual interface. */ readonly peerIpv6Ip: pulumi.Output; /** * Route type of the virtual interface. */ readonly routeType: pulumi.Output; /** * Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available. */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Time when the virtual interface was updated. */ readonly updateTime: pulumi.Output; /** * ID of the virtual interface. */ readonly virtualInterfaceId: pulumi.Output; /** * Name of the virtual interface. */ readonly virtualInterfaceName: pulumi.Output; /** * VLAN ID of the virtual interface. */ readonly vlanId: pulumi.Output; /** * Create a VirtualInterface 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: VirtualInterfaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VirtualInterface resources. */ export interface VirtualInterfaceState { /** * ID of the account to which the dedicated line gateway belongs. */ accountId?: pulumi.Input; /** * Bandwidth limit of the virtual interface, in Mbps. */ bandwidth?: pulumi.Input; /** * BFD detection interval (ms). */ bfdDetectInterval?: pulumi.Input; /** * BFD detection count. */ bfdDetectMultiplier?: pulumi.Input; /** * Time when the virtual interface was created. */ creationTime?: pulumi.Input; /** * Description of the virtual interface. */ description?: pulumi.Input; /** * ID of the physical dedicated line associated with the virtual interface. */ directConnectConnectionId?: pulumi.Input; /** * ID of the dedicated gateway associated with the virtual interface. */ directConnectGatewayId?: pulumi.Input; /** * Enable BFD detection. true: enabled false: disabled. */ enableBfd?: pulumi.Input; /** * Enable BFD detection echo packet mode. true: enabled false: disabled. */ enableBfdEcho?: pulumi.Input; /** * Is NQA detection enabled? true: enabled false: not enabled. */ enableNqa?: pulumi.Input; /** * Local gateway interconnection IP address of the virtual interface. */ localIp?: pulumi.Input; /** * IPv6 address of the local gateway interconnection IP for the virtual interface. */ localIpv6Ip?: pulumi.Input; /** * Interval for sending consecutive probe packets in NQA detection. */ nqaDetectInterval?: pulumi.Input; /** * NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty. */ nqaDetectMultiplier?: pulumi.Input; /** * Peer gateway interconnection IP address of the virtual interface. */ peerIp?: pulumi.Input; /** * IPv6 address of the peer gateway interconnection IP for the virtual interface. */ peerIpv6Ip?: pulumi.Input; /** * Route type of the virtual interface. */ routeType?: pulumi.Input; /** * Status of the virtual interface. Creating: creating Deleting: deleting Pending: configuring Available: available. */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Time when the virtual interface was updated. */ updateTime?: pulumi.Input; /** * ID of the virtual interface. */ virtualInterfaceId?: pulumi.Input; /** * Name of the virtual interface. */ virtualInterfaceName?: pulumi.Input; /** * VLAN ID of the virtual interface. */ vlanId?: pulumi.Input; } /** * The set of arguments for constructing a VirtualInterface resource. */ export interface VirtualInterfaceArgs { /** * Bandwidth limit of the virtual interface, in Mbps. */ bandwidth?: pulumi.Input; /** * BFD detection interval (ms). */ bfdDetectInterval?: pulumi.Input; /** * BFD detection count. */ bfdDetectMultiplier?: pulumi.Input; /** * Description of the virtual interface. */ description?: pulumi.Input; /** * ID of the physical dedicated line associated with the virtual interface. */ directConnectConnectionId: pulumi.Input; /** * ID of the dedicated gateway associated with the virtual interface. */ directConnectGatewayId: pulumi.Input; /** * Enable BFD detection. true: enabled false: disabled. */ enableBfd?: pulumi.Input; /** * Enable BFD detection echo packet mode. true: enabled false: disabled. */ enableBfdEcho?: pulumi.Input; /** * Is NQA detection enabled? true: enabled false: not enabled. */ enableNqa?: pulumi.Input; /** * Local gateway interconnection IP address of the virtual interface. */ localIp: pulumi.Input; /** * IPv6 address of the local gateway interconnection IP for the virtual interface. */ localIpv6Ip?: pulumi.Input; /** * Interval for sending consecutive probe packets in NQA detection. */ nqaDetectInterval?: pulumi.Input; /** * NQA detection count. If the number of consecutive NQA detection failures reaches the set count, the link is considered faulty. */ nqaDetectMultiplier?: pulumi.Input; /** * Peer gateway interconnection IP address of the virtual interface. */ peerIp: pulumi.Input; /** * IPv6 address of the peer gateway interconnection IP for the virtual interface. */ peerIpv6Ip?: pulumi.Input; /** * Route type of the virtual interface. */ routeType?: pulumi.Input; tags?: pulumi.Input[]>; /** * Name of the virtual interface. */ virtualInterfaceName?: pulumi.Input; /** * VLAN ID of the virtual interface. */ vlanId: pulumi.Input; }