UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

139 lines (138 loc) 5.89 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a V2 BGP VPN network association resource within OpenStack. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const association1 = new openstack.bgpvpn.NetworkAssociateV2("association_1", { * bgpvpnId: "e7189337-5684-46ee-bcb1-44f1a57066c9", * networkId: "de83d56c-4d2f-44f7-ac24-af393252204f", * }); * ``` * * ## Import * * BGP VPN network associations can be imported using the BGP VPN ID and BGP VPN * * network association ID separated by a slash, e.g.: * * hcl * * ```sh * $ pulumi import openstack:index/bgpvpnNetworkAssociateV2:BgpvpnNetworkAssociateV2 association_1 2145aaa9-edaa-44fb-9815-e47a96677a72/67bb952a-f9d1-4fc8-ae84-082253a879d4 * ``` * * @deprecated openstack.index/bgpvpnnetworkassociatev2.BgpvpnNetworkAssociateV2 has been deprecated in favor of openstack.bgpvpn/networkassociatev2.NetworkAssociateV2 */ export declare class BgpvpnNetworkAssociateV2 extends pulumi.CustomResource { /** * Get an existing BgpvpnNetworkAssociateV2 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?: BgpvpnNetworkAssociateV2State, opts?: pulumi.CustomResourceOptions): BgpvpnNetworkAssociateV2; /** * Returns true if the given object is an instance of BgpvpnNetworkAssociateV2. 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 BgpvpnNetworkAssociateV2; /** * The ID of the BGP VPN to which the network will be * associated. Changing this creates a new BGP VPN network association */ readonly bgpvpnId: pulumi.Output<string>; /** * The ID of the network to be associated with the BGP * VPN. Changing this creates a new BGP VPN network association. */ readonly networkId: pulumi.Output<string>; /** * The ID of the project that owns the BGP VPN network * association. Only administrative and users with `advsvc` role can specify a * project ID other than their own. Changing this creates a new BGP VPN network * association. */ readonly projectId: pulumi.Output<string>; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to create a BGP VPN network association. If * omitted, the `region` argument of the provider is used. Changing this creates * a new BGP VPN network association. */ readonly region: pulumi.Output<string>; /** * Create a BgpvpnNetworkAssociateV2 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. */ /** @deprecated openstack.index/bgpvpnnetworkassociatev2.BgpvpnNetworkAssociateV2 has been deprecated in favor of openstack.bgpvpn/networkassociatev2.NetworkAssociateV2 */ constructor(name: string, args: BgpvpnNetworkAssociateV2Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BgpvpnNetworkAssociateV2 resources. */ export interface BgpvpnNetworkAssociateV2State { /** * The ID of the BGP VPN to which the network will be * associated. Changing this creates a new BGP VPN network association */ bgpvpnId?: pulumi.Input<string>; /** * The ID of the network to be associated with the BGP * VPN. Changing this creates a new BGP VPN network association. */ networkId?: pulumi.Input<string>; /** * The ID of the project that owns the BGP VPN network * association. Only administrative and users with `advsvc` role can specify a * project ID other than their own. Changing this creates a new BGP VPN network * association. */ projectId?: pulumi.Input<string>; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to create a BGP VPN network association. If * omitted, the `region` argument of the provider is used. Changing this creates * a new BGP VPN network association. */ region?: pulumi.Input<string>; } /** * The set of arguments for constructing a BgpvpnNetworkAssociateV2 resource. */ export interface BgpvpnNetworkAssociateV2Args { /** * The ID of the BGP VPN to which the network will be * associated. Changing this creates a new BGP VPN network association */ bgpvpnId: pulumi.Input<string>; /** * The ID of the network to be associated with the BGP * VPN. Changing this creates a new BGP VPN network association. */ networkId: pulumi.Input<string>; /** * The ID of the project that owns the BGP VPN network * association. Only administrative and users with `advsvc` role can specify a * project ID other than their own. Changing this creates a new BGP VPN network * association. */ projectId?: pulumi.Input<string>; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to create a BGP VPN network association. If * omitted, the `region` argument of the provider is used. Changing this creates * a new BGP VPN network association. */ region?: pulumi.Input<string>; }