import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Create a new Gateway for existing subnet in the specified public cloud project. * * ## Import * * A gateway can be imported using the `service_name`, `region` and `id` (identifier of the gateway) properties, separated by a `/`. * * However, please note that in the case of a gateway import, `network_id` and `subnet_id` values used at gateway creation are not injected back in the state. * * If you want to define these properties on your imported resource, you have to add an "ignore_changes" lifecycle argument in order not to trigger a recreation, as suggested in the following example. * * terraform * * resource "ovh_cloud_project_gateway" "imported_gateway" { * * service_name = ovh_cloud_project_network_private.mypriv.service_name * * name = "" * * model = "" * * region = "" * * network_id = "" * * subnet_id = "" * * lifecycle { * * ignore_changes = [network_id, subnet_id] * * } * * } * * import { * * id = "//" * * to = ovh_cloud_project_gateway.imported_gateway * * } * * bash * * ```sh * $ pulumi import ovh:CloudProject/gateway:Gateway gateway service_name/region/id * ``` */ export declare class Gateway extends pulumi.CustomResource { /** * Get an existing Gateway 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?: GatewayState, opts?: pulumi.CustomResourceOptions): Gateway; /** * Returns true if the given object is an instance of Gateway. 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 Gateway; /** * List of External Information of the gateway. */ readonly externalInformations: pulumi.Output; /** * Interfaces list of the gateway. */ readonly interfaces: pulumi.Output; /** * Model of the gateway. */ readonly model: pulumi.Output; /** * Name of the gateway. */ readonly name: pulumi.Output; /** * ID of the private network. */ readonly networkId: pulumi.Output; /** * Region of the gateway. */ readonly region: pulumi.Output; /** * ID of the private network. */ readonly serviceName: pulumi.Output; /** * Status of the gateway. */ readonly status: pulumi.Output; /** * ID of the subnet. */ readonly subnetId: pulumi.Output; /** * Create a Gateway 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: GatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Gateway resources. */ export interface GatewayState { /** * List of External Information of the gateway. */ externalInformations?: pulumi.Input[]>; /** * Interfaces list of the gateway. */ interfaces?: pulumi.Input[]>; /** * Model of the gateway. */ model?: pulumi.Input; /** * Name of the gateway. */ name?: pulumi.Input; /** * ID of the private network. */ networkId?: pulumi.Input; /** * Region of the gateway. */ region?: pulumi.Input; /** * ID of the private network. */ serviceName?: pulumi.Input; /** * Status of the gateway. */ status?: pulumi.Input; /** * ID of the subnet. */ subnetId?: pulumi.Input; } /** * The set of arguments for constructing a Gateway resource. */ export interface GatewayArgs { /** * Model of the gateway. */ model: pulumi.Input; /** * Name of the gateway. */ name?: pulumi.Input; /** * ID of the private network. */ networkId: pulumi.Input; /** * Region of the gateway. */ region: pulumi.Input; /** * ID of the private network. */ serviceName?: pulumi.Input; /** * ID of the subnet. */ subnetId: pulumi.Input; }