import * as pulumi from "@pulumi/pulumi"; /** * Manages an ExpressRoute Port Authorization. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "exprtTest", * location: "West Europe", * }); * const exampleExpressRoutePort = new azure.network.ExpressRoutePort("example", { * name: "port1", * resourceGroupName: example.name, * location: example.location, * peeringLocation: "Airtel-Chennai-CLS", * bandwidthInGbps: 10, * encapsulation: "Dot1Q", * }); * const exampleExpressRoutePortAuthorization = new azure.network.ExpressRoutePortAuthorization("example", { * name: "exampleERCAuth", * expressRoutePortName: exampleExpressRoutePort.name, * resourceGroupName: example.name, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * ExpressRoute Port Authorizations can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/expressRoutePortAuthorization:ExpressRoutePortAuthorization auth1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRoutePorts/myExpressPort/authorizations/auth1 * ``` */ export declare class ExpressRoutePortAuthorization extends pulumi.CustomResource { /** * Get an existing ExpressRoutePortAuthorization 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?: ExpressRoutePortAuthorizationState, opts?: pulumi.CustomResourceOptions): ExpressRoutePortAuthorization; /** * Returns true if the given object is an instance of ExpressRoutePortAuthorization. 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 ExpressRoutePortAuthorization; /** * The Authorization Key. */ readonly authorizationKey: pulumi.Output; /** * The authorization use status. */ readonly authorizationUseStatus: pulumi.Output; /** * The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created. */ readonly expressRoutePortName: pulumi.Output; /** * The name of the ExpressRoute Port. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Create a ExpressRoutePortAuthorization 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: ExpressRoutePortAuthorizationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ExpressRoutePortAuthorization resources. */ export interface ExpressRoutePortAuthorizationState { /** * The Authorization Key. */ authorizationKey?: pulumi.Input; /** * The authorization use status. */ authorizationUseStatus?: pulumi.Input; /** * The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created. */ expressRoutePortName?: pulumi.Input; /** * The name of the ExpressRoute Port. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; } /** * The set of arguments for constructing a ExpressRoutePortAuthorization resource. */ export interface ExpressRoutePortAuthorizationArgs { /** * The name of the Express Route Port in which to create the Authorization. Changing this forces a new resource to be created. */ expressRoutePortName: pulumi.Input; /** * The name of the ExpressRoute Port. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which to create the ExpressRoute Port. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; }