@pulumi/openstack
Version: 
A Pulumi package for creating and managing OpenStack cloud resources.
136 lines (135 loc) • 5.46 kB
TypeScript
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:bgpvpn/networkAssociateV2:NetworkAssociateV2 association_1 2145aaa9-edaa-44fb-9815-e47a96677a72/67bb952a-f9d1-4fc8-ae84-082253a879d4
 * ```
 */
export declare class NetworkAssociateV2 extends pulumi.CustomResource {
    /**
     * Get an existing NetworkAssociateV2 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?: NetworkAssociateV2State, opts?: pulumi.CustomResourceOptions): NetworkAssociateV2;
    /**
     * Returns true if the given object is an instance of NetworkAssociateV2.  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 NetworkAssociateV2;
    /**
     * 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 NetworkAssociateV2 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: NetworkAssociateV2Args, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering NetworkAssociateV2 resources.
 */
export interface NetworkAssociateV2State {
    /**
     * 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 NetworkAssociateV2 resource.
 */
export interface NetworkAssociateV2Args {
    /**
     * 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>;
}