import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Network Manager Connectivity Configuration. * * > **Note:** The `azure.network.NetworkManagerConnectivityConfiguration` deployment may modify or delete existing Network Peering resource. * * ## 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-network-manager", * location: example.location, * resourceGroupName: example.name, * scope: { * subscriptionIds: [current.then(current => current.id)], * }, * scopeAccesses: [ * "Connectivity", * "SecurityAdmin", * ], * description: "example network manager", * }); * const exampleNetworkManagerNetworkGroup = new azure.network.NetworkManagerNetworkGroup("example", { * name: "example-group", * networkManagerId: exampleNetworkManager.id, * }); * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", { * name: "example-net", * location: example.location, * resourceGroupName: example.name, * addressSpaces: ["10.0.0.0/16"], * flowTimeoutInMinutes: 10, * }); * const example2 = new azure.network.NetworkManagerNetworkGroup("example2", { * name: "example-group2", * networkManagerId: exampleNetworkManager.id, * }); * const exampleNetworkManagerConnectivityConfiguration = new azure.network.NetworkManagerConnectivityConfiguration("example", { * name: "example-connectivity-conf", * networkManagerId: exampleNetworkManager.id, * connectivityTopology: "HubAndSpoke", * appliesToGroups: [ * { * groupConnectivity: "DirectlyConnected", * networkGroupId: exampleNetworkManagerNetworkGroup.id, * }, * { * groupConnectivity: "DirectlyConnected", * networkGroupId: example2.id, * }, * ], * hub: { * resourceId: exampleVirtualNetwork.id, * resourceType: "Microsoft.Network/virtualNetworks", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Network Manager Connectivity Configuration can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/networkManagerConnectivityConfiguration:NetworkManagerConnectivityConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/networkManagers/networkManager1/connectivityConfigurations/configuration1 * ``` */ export declare class NetworkManagerConnectivityConfiguration extends pulumi.CustomResource { /** * Get an existing NetworkManagerConnectivityConfiguration 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?: NetworkManagerConnectivityConfigurationState, opts?: pulumi.CustomResourceOptions): NetworkManagerConnectivityConfiguration; /** * Returns true if the given object is an instance of NetworkManagerConnectivityConfiguration. 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 NetworkManagerConnectivityConfiguration; /** * One or more `appliesToGroup` blocks as defined below. */ readonly appliesToGroups: pulumi.Output; /** * Specifies the connectivity topology type. Possible values are `HubAndSpoke` and `Mesh`. */ readonly connectivityTopology: pulumi.Output; /** * Indicates whether to remove current existing Virtual Network Peering in the Connectivity Configuration affected scope. Possible values are `true` and `false`. */ readonly deleteExistingPeeringEnabled: pulumi.Output; /** * A description of the Connectivity Configuration. */ readonly description: pulumi.Output; /** * Indicates whether to global mesh is supported. Possible values are `true` and `false`. */ readonly globalMeshEnabled: pulumi.Output; /** * A `hub` block as defined below. */ readonly hub: pulumi.Output; /** * Specifies the name which should be used for this Network Manager Connectivity Configuration. Changing this forces a new Network Manager Connectivity Configuration to be created. */ readonly name: pulumi.Output; /** * Specifies the ID of the Network Manager. Changing this forces a new Network Manager Connectivity Configuration to be created. */ readonly networkManagerId: pulumi.Output; /** * Create a NetworkManagerConnectivityConfiguration 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: NetworkManagerConnectivityConfigurationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkManagerConnectivityConfiguration resources. */ export interface NetworkManagerConnectivityConfigurationState { /** * One or more `appliesToGroup` blocks as defined below. */ appliesToGroups?: pulumi.Input[]>; /** * Specifies the connectivity topology type. Possible values are `HubAndSpoke` and `Mesh`. */ connectivityTopology?: pulumi.Input; /** * Indicates whether to remove current existing Virtual Network Peering in the Connectivity Configuration affected scope. Possible values are `true` and `false`. */ deleteExistingPeeringEnabled?: pulumi.Input; /** * A description of the Connectivity Configuration. */ description?: pulumi.Input; /** * Indicates whether to global mesh is supported. Possible values are `true` and `false`. */ globalMeshEnabled?: pulumi.Input; /** * A `hub` block as defined below. */ hub?: pulumi.Input; /** * Specifies the name which should be used for this Network Manager Connectivity Configuration. Changing this forces a new Network Manager Connectivity Configuration to be created. */ name?: pulumi.Input; /** * Specifies the ID of the Network Manager. Changing this forces a new Network Manager Connectivity Configuration to be created. */ networkManagerId?: pulumi.Input; } /** * The set of arguments for constructing a NetworkManagerConnectivityConfiguration resource. */ export interface NetworkManagerConnectivityConfigurationArgs { /** * One or more `appliesToGroup` blocks as defined below. */ appliesToGroups: pulumi.Input[]>; /** * Specifies the connectivity topology type. Possible values are `HubAndSpoke` and `Mesh`. */ connectivityTopology: pulumi.Input; /** * Indicates whether to remove current existing Virtual Network Peering in the Connectivity Configuration affected scope. Possible values are `true` and `false`. */ deleteExistingPeeringEnabled?: pulumi.Input; /** * A description of the Connectivity Configuration. */ description?: pulumi.Input; /** * Indicates whether to global mesh is supported. Possible values are `true` and `false`. */ globalMeshEnabled?: pulumi.Input; /** * A `hub` block as defined below. */ hub?: pulumi.Input; /** * Specifies the name which should be used for this Network Manager Connectivity Configuration. Changing this forces a new Network Manager Connectivity Configuration to be created. */ name?: pulumi.Input; /** * Specifies the ID of the Network Manager. Changing this forces a new Network Manager Connectivity Configuration to be created. */ networkManagerId: pulumi.Input; }