import * as pulumi from "@pulumi/pulumi"; /** * Manages an Express Route Circuit Connection. * * ## 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 exampleExpressRoutePort = new azure.network.ExpressRoutePort("example", { * name: "example-erport", * resourceGroupName: example.name, * location: example.location, * peeringLocation: "Equinix-Seattle-SE2", * bandwidthInGbps: 10, * encapsulation: "Dot1Q", * }); * const exampleExpressRouteCircuit = new azure.network.ExpressRouteCircuit("example", { * name: "example-ercircuit", * location: example.location, * resourceGroupName: example.name, * expressRoutePortId: exampleExpressRoutePort.id, * bandwidthInGbps: 5, * sku: { * tier: "Standard", * family: "MeteredData", * }, * }); * const example2 = new azure.network.ExpressRoutePort("example2", { * name: "example-erport2", * resourceGroupName: example.name, * location: example.location, * peeringLocation: "Allied-Toronto-King-West", * bandwidthInGbps: 10, * encapsulation: "Dot1Q", * }); * const example2ExpressRouteCircuit = new azure.network.ExpressRouteCircuit("example2", { * name: "example-ercircuit2", * location: example.location, * resourceGroupName: example.name, * expressRoutePortId: example2.id, * bandwidthInGbps: 5, * sku: { * tier: "Standard", * family: "MeteredData", * }, * }); * const exampleExpressRouteCircuitPeering = new azure.network.ExpressRouteCircuitPeering("example", { * peeringType: "AzurePrivatePeering", * expressRouteCircuitName: exampleExpressRouteCircuit.name, * resourceGroupName: example.name, * sharedKey: "ItsASecret", * peerAsn: 100, * primaryPeerAddressPrefix: "192.168.1.0/30", * secondaryPeerAddressPrefix: "192.168.1.0/30", * vlanId: 100, * }); * const example2ExpressRouteCircuitPeering = new azure.network.ExpressRouteCircuitPeering("example2", { * peeringType: "AzurePrivatePeering", * expressRouteCircuitName: example2ExpressRouteCircuit.name, * resourceGroupName: example.name, * sharedKey: "ItsASecret", * peerAsn: 100, * primaryPeerAddressPrefix: "192.168.1.0/30", * secondaryPeerAddressPrefix: "192.168.1.0/30", * vlanId: 100, * }); * const exampleExpressRouteCircuitConnection = new azure.network.ExpressRouteCircuitConnection("example", { * name: "example-ercircuitconnection", * peeringId: exampleExpressRouteCircuitPeering.id, * peerPeeringId: example2ExpressRouteCircuitPeering.id, * addressPrefixIpv4: "192.169.9.0/29", * authorizationKey: "846a1918-b7a2-4917-b43c-8c4cdaee006a", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Express Route Circuit Connections can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/expressRouteCircuitConnection:ExpressRouteCircuitConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/expressRouteCircuits/circuit1/peerings/peering1/connections/connection1 * ``` */ export declare class ExpressRouteCircuitConnection extends pulumi.CustomResource { /** * Get an existing ExpressRouteCircuitConnection 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?: ExpressRouteCircuitConnectionState, opts?: pulumi.CustomResourceOptions): ExpressRouteCircuitConnection; /** * Returns true if the given object is an instance of ExpressRouteCircuitConnection. 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 ExpressRouteCircuitConnection; /** * The IPv4 address space from which to allocate customer address for global reach. Changing this forces a new Express Route Circuit Connection to be created. */ readonly addressPrefixIpv4: pulumi.Output; /** * The IPv6 address space from which to allocate customer addresses for global reach. * * > **Note:** `addressPrefixIpv6` cannot be set when ExpressRoute Circuit Connection with ExpressRoute Circuit based on ExpressRoute Port. */ readonly addressPrefixIpv6: pulumi.Output; /** * The authorization key which is associated with the Express Route Circuit Connection. */ readonly authorizationKey: pulumi.Output; /** * The name which should be used for this Express Route Circuit Connection. Changing this forces a new Express Route Circuit Connection to be created. */ readonly name: pulumi.Output; /** * The ID of the peered Express Route Circuit Private Peering. Changing this forces a new Express Route Circuit Connection to be created. */ readonly peerPeeringId: pulumi.Output; /** * The ID of the Express Route Circuit Private Peering that this Express Route Circuit Connection connects with. Changing this forces a new Express Route Circuit Connection to be created. */ readonly peeringId: pulumi.Output; /** * Create a ExpressRouteCircuitConnection 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: ExpressRouteCircuitConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ExpressRouteCircuitConnection resources. */ export interface ExpressRouteCircuitConnectionState { /** * The IPv4 address space from which to allocate customer address for global reach. Changing this forces a new Express Route Circuit Connection to be created. */ addressPrefixIpv4?: pulumi.Input; /** * The IPv6 address space from which to allocate customer addresses for global reach. * * > **Note:** `addressPrefixIpv6` cannot be set when ExpressRoute Circuit Connection with ExpressRoute Circuit based on ExpressRoute Port. */ addressPrefixIpv6?: pulumi.Input; /** * The authorization key which is associated with the Express Route Circuit Connection. */ authorizationKey?: pulumi.Input; /** * The name which should be used for this Express Route Circuit Connection. Changing this forces a new Express Route Circuit Connection to be created. */ name?: pulumi.Input; /** * The ID of the peered Express Route Circuit Private Peering. Changing this forces a new Express Route Circuit Connection to be created. */ peerPeeringId?: pulumi.Input; /** * The ID of the Express Route Circuit Private Peering that this Express Route Circuit Connection connects with. Changing this forces a new Express Route Circuit Connection to be created. */ peeringId?: pulumi.Input; } /** * The set of arguments for constructing a ExpressRouteCircuitConnection resource. */ export interface ExpressRouteCircuitConnectionArgs { /** * The IPv4 address space from which to allocate customer address for global reach. Changing this forces a new Express Route Circuit Connection to be created. */ addressPrefixIpv4: pulumi.Input; /** * The IPv6 address space from which to allocate customer addresses for global reach. * * > **Note:** `addressPrefixIpv6` cannot be set when ExpressRoute Circuit Connection with ExpressRoute Circuit based on ExpressRoute Port. */ addressPrefixIpv6?: pulumi.Input; /** * The authorization key which is associated with the Express Route Circuit Connection. */ authorizationKey?: pulumi.Input; /** * The name which should be used for this Express Route Circuit Connection. Changing this forces a new Express Route Circuit Connection to be created. */ name?: pulumi.Input; /** * The ID of the peered Express Route Circuit Private Peering. Changing this forces a new Express Route Circuit Connection to be created. */ peerPeeringId: pulumi.Input; /** * The ID of the Express Route Circuit Private Peering that this Express Route Circuit Connection connects with. Changing this forces a new Express Route Circuit Connection to be created. */ peeringId: pulumi.Input; }