import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Route Map. * * ## 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 exampleVirtualWan = new azure.network.VirtualWan("example", { * name: "example-vwan", * resourceGroupName: example.name, * location: example.location, * }); * const exampleVirtualHub = new azure.network.VirtualHub("example", { * name: "example-vhub", * resourceGroupName: example.name, * location: example.location, * virtualWanId: exampleVirtualWan.id, * addressPrefix: "10.0.1.0/24", * }); * const exampleRouteMap = new azure.network.RouteMap("example", { * name: "example-rm", * virtualHubId: exampleVirtualHub.id, * rules: [{ * name: "rule1", * nextStepIfMatched: "Continue", * actions: [{ * type: "Add", * parameters: [{ * asPaths: ["22334"], * }], * }], * matchCriterions: [{ * matchCondition: "Contains", * routePrefixes: ["10.0.0.0/8"], * }], * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Route Maps can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/routeMap:RouteMap example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1 * ``` */ export declare class RouteMap extends pulumi.CustomResource { /** * Get an existing RouteMap 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?: RouteMapState, opts?: pulumi.CustomResourceOptions): RouteMap; /** * Returns true if the given object is an instance of RouteMap. 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 RouteMap; /** * The name which should be used for this Route Map. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A `rule` block as defined below. */ readonly rules: pulumi.Output; /** * The resource ID of the Virtual Hub. Changing this forces a new resource to be created. */ readonly virtualHubId: pulumi.Output; /** * Create a RouteMap 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: RouteMapArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RouteMap resources. */ export interface RouteMapState { /** * The name which should be used for this Route Map. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A `rule` block as defined below. */ rules?: pulumi.Input[]>; /** * The resource ID of the Virtual Hub. Changing this forces a new resource to be created. */ virtualHubId?: pulumi.Input; } /** * The set of arguments for constructing a RouteMap resource. */ export interface RouteMapArgs { /** * The name which should be used for this Route Map. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A `rule` block as defined below. */ rules?: pulumi.Input[]>; /** * The resource ID of the Virtual Hub. Changing this forces a new resource to be created. */ virtualHubId: pulumi.Input; }