import * as pulumi from "@pulumi/pulumi"; /** * Manages a Network Manager Subscription Connection which may cross tenants. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const current = azure.core.getSubscription({}); * const exampleNetworkManager = new azure.network.NetworkManager("example", { * name: "example-networkmanager", * location: example.location, * resourceGroupName: example.name, * scope: { * subscriptionIds: [current.then(current => current.id)], * }, * scopeAccesses: ["SecurityAdmin"], * }); * const exampleNetworkManagerSubscriptionConnection = new azure.network.NetworkManagerSubscriptionConnection("example", { * name: "example-nsnmc", * subscriptionId: current.then(current => current.id), * networkManagerId: exampleNetworkManager.id, * description: "example", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Network Subscription Network Manager Connection can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/networkManagerSubscriptionConnection:NetworkManagerSubscriptionConnection example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkManagerConnections/networkManagerConnection1 * ``` */ export declare class NetworkManagerSubscriptionConnection extends pulumi.CustomResource { /** * Get an existing NetworkManagerSubscriptionConnection 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?: NetworkManagerSubscriptionConnectionState, opts?: pulumi.CustomResourceOptions): NetworkManagerSubscriptionConnection; /** * Returns true if the given object is an instance of NetworkManagerSubscriptionConnection. 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 NetworkManagerSubscriptionConnection; /** * The Connection state of the Network Manager Subscription Connection. */ readonly connectionState: pulumi.Output; /** * A description of the Network Manager Subscription Connection. */ readonly description: pulumi.Output; /** * Specifies the name which should be used for this Network Subscription Network Manager Connection. Changing this forces a new Network Subscription Network Manager Connection to be created. */ readonly name: pulumi.Output; /** * Specifies the ID of the Network Manager which the Subscription is connected to. */ readonly networkManagerId: pulumi.Output; /** * Specifies the ID of the target Subscription. Changing this forces a new resource to be created. */ readonly subscriptionId: pulumi.Output; /** * Create a NetworkManagerSubscriptionConnection 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: NetworkManagerSubscriptionConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkManagerSubscriptionConnection resources. */ export interface NetworkManagerSubscriptionConnectionState { /** * The Connection state of the Network Manager Subscription Connection. */ connectionState?: pulumi.Input; /** * A description of the Network Manager Subscription Connection. */ description?: pulumi.Input; /** * Specifies the name which should be used for this Network Subscription Network Manager Connection. Changing this forces a new Network Subscription Network Manager Connection to be created. */ name?: pulumi.Input; /** * Specifies the ID of the Network Manager which the Subscription is connected to. */ networkManagerId?: pulumi.Input; /** * Specifies the ID of the target Subscription. Changing this forces a new resource to be created. */ subscriptionId?: pulumi.Input; } /** * The set of arguments for constructing a NetworkManagerSubscriptionConnection resource. */ export interface NetworkManagerSubscriptionConnectionArgs { /** * A description of the Network Manager Subscription Connection. */ description?: pulumi.Input; /** * Specifies the name which should be used for this Network Subscription Network Manager Connection. Changing this forces a new Network Subscription Network Manager Connection to be created. */ name?: pulumi.Input; /** * Specifies the ID of the Network Manager which the Subscription is connected to. */ networkManagerId: pulumi.Input; /** * Specifies the ID of the target Subscription. Changing this forces a new resource to be created. */ subscriptionId: pulumi.Input; }