@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
176 lines (175 loc) • 4.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage direct connect bgp peer
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.direct_connect.BgpPeer("foo", {
* description: "tf-test",
* remoteAsn: 2000,
* virtualInterfaceId: "dcv-62vi13v131tsn3gd6il****",
* });
* ```
*
* ## Import
*
* DirectConnectBgpPeer can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:direct_connect/bgpPeer:BgpPeer default bgp-2752hz4teko3k7fap8u4c****
* ```
*/
export declare class BgpPeer extends pulumi.CustomResource {
/**
* Get an existing BgpPeer 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?: BgpPeerState, opts?: pulumi.CustomResourceOptions): BgpPeer;
/**
* Returns true if the given object is an instance of BgpPeer. 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 BgpPeer;
/**
* The id of account.
*/
readonly accountId: pulumi.Output<string>;
/**
* The auth key of bgp peer.
*/
readonly authKey: pulumi.Output<string | undefined>;
/**
* The id of bgp peer.
*/
readonly bgpPeerId: pulumi.Output<string>;
/**
* The name of bgp peer.
*/
readonly bgpPeerName: pulumi.Output<string>;
/**
* The create time of bgp peer.
*/
readonly creationTime: pulumi.Output<string>;
/**
* The description of bgp peer.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The local asn of bgp peer.
*/
readonly localAsn: pulumi.Output<number>;
/**
* The remote asn of bgp peer.
*/
readonly remoteAsn: pulumi.Output<number>;
/**
* The session status of bgp peer.
*/
readonly sessionStatus: pulumi.Output<string>;
/**
* The status of bgp peer.
*/
readonly status: pulumi.Output<string>;
/**
* The update time of bgp peer.
*/
readonly updateTime: pulumi.Output<string>;
/**
* The id of virtual interface.
*/
readonly virtualInterfaceId: pulumi.Output<string>;
/**
* Create a BgpPeer 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: BgpPeerArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering BgpPeer resources.
*/
export interface BgpPeerState {
/**
* The id of account.
*/
accountId?: pulumi.Input<string>;
/**
* The auth key of bgp peer.
*/
authKey?: pulumi.Input<string>;
/**
* The id of bgp peer.
*/
bgpPeerId?: pulumi.Input<string>;
/**
* The name of bgp peer.
*/
bgpPeerName?: pulumi.Input<string>;
/**
* The create time of bgp peer.
*/
creationTime?: pulumi.Input<string>;
/**
* The description of bgp peer.
*/
description?: pulumi.Input<string>;
/**
* The local asn of bgp peer.
*/
localAsn?: pulumi.Input<number>;
/**
* The remote asn of bgp peer.
*/
remoteAsn?: pulumi.Input<number>;
/**
* The session status of bgp peer.
*/
sessionStatus?: pulumi.Input<string>;
/**
* The status of bgp peer.
*/
status?: pulumi.Input<string>;
/**
* The update time of bgp peer.
*/
updateTime?: pulumi.Input<string>;
/**
* The id of virtual interface.
*/
virtualInterfaceId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a BgpPeer resource.
*/
export interface BgpPeerArgs {
/**
* The auth key of bgp peer.
*/
authKey?: pulumi.Input<string>;
/**
* The name of bgp peer.
*/
bgpPeerName?: pulumi.Input<string>;
/**
* The description of bgp peer.
*/
description?: pulumi.Input<string>;
/**
* The remote asn of bgp peer.
*/
remoteAsn: pulumi.Input<number>;
/**
* The id of virtual interface.
*/
virtualInterfaceId: pulumi.Input<string>;
}