@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
264 lines (263 loc) • 8.23 kB
TypeScript
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 virtual interface
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.direct_connect.VirtualInterface("foo", {
* description: "tf-test",
* directConnectConnectionId: "dcc-rtkzeotzst1cu3numzi****",
* directConnectGatewayId: "dcg-638x4bjvjawwn3gd5xw****",
* enableBfd: false,
* localIp: "**.**.**.**/**",
* peerIp: "**.**.**.**/**",
* routeType: "Static",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* virtualInterfaceName: "tf-test-vi",
* vlanId: 2,
* });
* ```
*
* ## Import
*
* DirectConnectVirtualInterface can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:direct_connect/virtualInterface:VirtualInterface default resource_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<pulumi.ID>, 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;
/**
* The band width limit of virtual interface,in Mbps.
*/
readonly bandwidth: pulumi.Output<number>;
/**
* The BFD detect interval.
*/
readonly bfdDetectInterval: pulumi.Output<number | undefined>;
/**
* The BFD detect times.
*/
readonly bfdDetectMultiplier: pulumi.Output<number | undefined>;
/**
* The description of virtual interface.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The direct connect connection ID which associated with.
*/
readonly directConnectConnectionId: pulumi.Output<string>;
/**
* The direct connect gateway ID which associated with.
*/
readonly directConnectGatewayId: pulumi.Output<string>;
/**
* Whether enable BFD detect.
*/
readonly enableBfd: pulumi.Output<boolean | undefined>;
/**
* Whether enable NQA detect.
*/
readonly enableNqa: pulumi.Output<boolean | undefined>;
/**
* The local IP that associated with.
*/
readonly localIp: pulumi.Output<string>;
/**
* The NQA detect interval.
*/
readonly nqaDetectInterval: pulumi.Output<number | undefined>;
/**
* The NAQ detect times.
*/
readonly nqaDetectMultiplier: pulumi.Output<number | undefined>;
/**
* The peer IP that associated with.
*/
readonly peerIp: pulumi.Output<string>;
/**
* The route type of virtual interface,valid value contains `Static`,`BGP`.
*/
readonly routeType: pulumi.Output<string>;
/**
* The tags that direct connect gateway added.
*/
readonly tags: pulumi.Output<outputs.direct_connect.VirtualInterfaceTag[] | undefined>;
/**
* The name of virtual interface.
*/
readonly virtualInterfaceName: pulumi.Output<string | undefined>;
/**
* The VLAN ID used to connect to the local IDC, please ensure that this VLAN ID is not occupied, the value range: 0 ~ 2999.
*/
readonly vlanId: pulumi.Output<number>;
/**
* 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 {
/**
* The band width limit of virtual interface,in Mbps.
*/
bandwidth?: pulumi.Input<number>;
/**
* The BFD detect interval.
*/
bfdDetectInterval?: pulumi.Input<number>;
/**
* The BFD detect times.
*/
bfdDetectMultiplier?: pulumi.Input<number>;
/**
* The description of virtual interface.
*/
description?: pulumi.Input<string>;
/**
* The direct connect connection ID which associated with.
*/
directConnectConnectionId?: pulumi.Input<string>;
/**
* The direct connect gateway ID which associated with.
*/
directConnectGatewayId?: pulumi.Input<string>;
/**
* Whether enable BFD detect.
*/
enableBfd?: pulumi.Input<boolean>;
/**
* Whether enable NQA detect.
*/
enableNqa?: pulumi.Input<boolean>;
/**
* The local IP that associated with.
*/
localIp?: pulumi.Input<string>;
/**
* The NQA detect interval.
*/
nqaDetectInterval?: pulumi.Input<number>;
/**
* The NAQ detect times.
*/
nqaDetectMultiplier?: pulumi.Input<number>;
/**
* The peer IP that associated with.
*/
peerIp?: pulumi.Input<string>;
/**
* The route type of virtual interface,valid value contains `Static`,`BGP`.
*/
routeType?: pulumi.Input<string>;
/**
* The tags that direct connect gateway added.
*/
tags?: pulumi.Input<pulumi.Input<inputs.direct_connect.VirtualInterfaceTag>[]>;
/**
* The name of virtual interface.
*/
virtualInterfaceName?: pulumi.Input<string>;
/**
* The VLAN ID used to connect to the local IDC, please ensure that this VLAN ID is not occupied, the value range: 0 ~ 2999.
*/
vlanId?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a VirtualInterface resource.
*/
export interface VirtualInterfaceArgs {
/**
* The band width limit of virtual interface,in Mbps.
*/
bandwidth?: pulumi.Input<number>;
/**
* The BFD detect interval.
*/
bfdDetectInterval?: pulumi.Input<number>;
/**
* The BFD detect times.
*/
bfdDetectMultiplier?: pulumi.Input<number>;
/**
* The description of virtual interface.
*/
description?: pulumi.Input<string>;
/**
* The direct connect connection ID which associated with.
*/
directConnectConnectionId: pulumi.Input<string>;
/**
* The direct connect gateway ID which associated with.
*/
directConnectGatewayId: pulumi.Input<string>;
/**
* Whether enable BFD detect.
*/
enableBfd?: pulumi.Input<boolean>;
/**
* Whether enable NQA detect.
*/
enableNqa?: pulumi.Input<boolean>;
/**
* The local IP that associated with.
*/
localIp: pulumi.Input<string>;
/**
* The NQA detect interval.
*/
nqaDetectInterval?: pulumi.Input<number>;
/**
* The NAQ detect times.
*/
nqaDetectMultiplier?: pulumi.Input<number>;
/**
* The peer IP that associated with.
*/
peerIp: pulumi.Input<string>;
/**
* The route type of virtual interface,valid value contains `Static`,`BGP`.
*/
routeType?: pulumi.Input<string>;
/**
* The tags that direct connect gateway added.
*/
tags?: pulumi.Input<pulumi.Input<inputs.direct_connect.VirtualInterfaceTag>[]>;
/**
* The name of virtual interface.
*/
virtualInterfaceName?: pulumi.Input<string>;
/**
* The VLAN ID used to connect to the local IDC, please ensure that this VLAN ID is not occupied, the value range: 0 ~ 2999.
*/
vlanId: pulumi.Input<number>;
}