import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Create a new publicRoutingPriority for the vrack in a given region. * * ## Example Usage * * Create a basic public routing priority * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * // Always sort availabilityZone by ascending priority order * const vrackPublicRoutingPriority = new ovh.VrackPublicRoutingPriority("vrack_publicRoutingPriority", { * serviceName: "pn-000000", * region: "eu-west-par", * availabilityZones: [ * { * priority: 1, * name: "eu-west-par-b", * }, * { * priority: 2, * name: "eu-west-par-c", * }, * { * priority: 3, * name: "eu-west-par-a", * }, * ], * }); * ``` * * Use the vRack datasource and configure a public routing priority * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * export = async () => { * const region = "eu-west-par"; * const vrackName = "pn-000000"; * // Datasources * const myVrack = await ovh.getVrack({ * serviceName: vrackName, * }); * // Resources * // Always sort availabilityZone by ascending priority order * const vrackPublicRoutingPriority = new ovh.VrackPublicRoutingPriority("vrack_publicRoutingPriority", { * serviceName: myVrack.serviceName, * region: region, * availabilityZones: [ * { * priority: 1, * name: "eu-west-par-b", * }, * { * priority: 2, * name: "eu-west-par-c", * }, * { * priority: 3, * name: "eu-west-par-a", * }, * ], * }); * return { * myVrack: myVrack.serviceName, * }; * } * ``` * * Import an existing public routing priority * * ## Import * * The public routing priority can be imported using the vRack `service_name` (vRack identifier) and the publicRoutingPriority (Id), separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:index/vrackPublicRoutingPriority:VrackPublicRoutingPriority vrack_publicRoutingPriority "/" * ``` */ export declare class VrackPublicRoutingPriority extends pulumi.CustomResource { /** * Get an existing VrackPublicRoutingPriority 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?: VrackPublicRoutingPriorityState, opts?: pulumi.CustomResourceOptions): VrackPublicRoutingPriority; /** * Returns true if the given object is an instance of VrackPublicRoutingPriority. 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 VrackPublicRoutingPriority; /** * A list of objects that allows to define on which AZ the Block should be active in priority, it is important to keep the objects sorted by ascending "priority" order. */ readonly availabilityZones: pulumi.Output; /** * Public routing priority identifier */ readonly priorityId: pulumi.Output; /** * The region you want the public routing priority to be created on. */ readonly region: pulumi.Output; /** * The internal name of your vrack */ readonly serviceName: pulumi.Output; /** * Public routing priority type */ readonly type: pulumi.Output; /** * vrack name */ readonly vrack: pulumi.Output; /** * Create a VrackPublicRoutingPriority 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: VrackPublicRoutingPriorityArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VrackPublicRoutingPriority resources. */ export interface VrackPublicRoutingPriorityState { /** * A list of objects that allows to define on which AZ the Block should be active in priority, it is important to keep the objects sorted by ascending "priority" order. */ availabilityZones?: pulumi.Input[]>; /** * Public routing priority identifier */ priorityId?: pulumi.Input; /** * The region you want the public routing priority to be created on. */ region?: pulumi.Input; /** * The internal name of your vrack */ serviceName?: pulumi.Input; /** * Public routing priority type */ type?: pulumi.Input; /** * vrack name */ vrack?: pulumi.Input; } /** * The set of arguments for constructing a VrackPublicRoutingPriority resource. */ export interface VrackPublicRoutingPriorityArgs { /** * A list of objects that allows to define on which AZ the Block should be active in priority, it is important to keep the objects sorted by ascending "priority" order. */ availabilityZones: pulumi.Input[]>; /** * The region you want the public routing priority to be created on. */ region: pulumi.Input; /** * The internal name of your vrack */ serviceName: pulumi.Input; }