import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a gateway in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const network = new ovh.CloudNetworkPrivateVrack("network", { * serviceName: "", * name: "my-private-network", * region: "GRA1", * }); * const subnet = new ovh.CloudNetworkPrivateVrackSubnet("subnet", { * serviceName: network.serviceName, * networkId: network.id, * name: "my-subnet", * cidr: "10.0.0.0/24", * region: "GRA1", * }); * const gateway = new ovh.CloudGateway("gateway", { * serviceName: network.serviceName, * region: "GRA1", * name: "my-gateway", * externalGateway: { * enabled: true, * model: "S", * }, * subnetIds: [subnet.id], * }); * ``` * * ## Import * * A cloud gateway can be imported using the `service_name` and `gateway_id`, separated by `/`: * * terraform * * import { * * to = ovh_cloud_gateway.gateway * * id = "/" * * } * * bash * * ```sh * $ pulumi import ovh:index/cloudGateway:CloudGateway gateway service_name/gateway_id * ``` */ export declare class CloudGateway extends pulumi.CustomResource { /** * Get an existing CloudGateway 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?: CloudGatewayState, opts?: pulumi.CustomResourceOptions): CloudGateway; /** * Returns true if the given object is an instance of CloudGateway. 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 CloudGateway; /** * Availability zone for the gateway. **Changing this value recreates the resource.** */ readonly availabilityZone: pulumi.Output; /** * Computed hash representing the current target specification value. */ readonly checksum: pulumi.Output; /** * Creation date of the gateway. */ readonly createdAt: pulumi.Output; /** * Current state of the gateway: */ readonly currentState: pulumi.Output; /** * Gateway description. */ readonly description: pulumi.Output; /** * External gateway configuration: */ readonly externalGateway: pulumi.Output; /** * Gateway name. */ readonly name: pulumi.Output; /** * Region where the gateway will be created. **Changing this value recreates the resource.** */ readonly region: pulumi.Output; /** * Gateway readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: pulumi.Output; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ readonly serviceName: pulumi.Output; /** * List of subnet IDs to attach as router interfaces. */ readonly subnetIds: pulumi.Output; /** * Last update date of the gateway. */ readonly updatedAt: pulumi.Output; /** * Create a CloudGateway 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: CloudGatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudGateway resources. */ export interface CloudGatewayState { /** * Availability zone for the gateway. **Changing this value recreates the resource.** */ availabilityZone?: pulumi.Input; /** * Computed hash representing the current target specification value. */ checksum?: pulumi.Input; /** * Creation date of the gateway. */ createdAt?: pulumi.Input; /** * Current state of the gateway: */ currentState?: pulumi.Input; /** * Gateway description. */ description?: pulumi.Input; /** * External gateway configuration: */ externalGateway?: pulumi.Input; /** * Gateway name. */ name?: pulumi.Input; /** * Region where the gateway will be created. **Changing this value recreates the resource.** */ region?: pulumi.Input; /** * Gateway readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ resourceStatus?: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; /** * List of subnet IDs to attach as router interfaces. */ subnetIds?: pulumi.Input[]>; /** * Last update date of the gateway. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CloudGateway resource. */ export interface CloudGatewayArgs { /** * Availability zone for the gateway. **Changing this value recreates the resource.** */ availabilityZone?: pulumi.Input; /** * Gateway description. */ description?: pulumi.Input; /** * External gateway configuration: */ externalGateway?: pulumi.Input; /** * Gateway name. */ name?: pulumi.Input; /** * Region where the gateway will be created. **Changing this value recreates the resource.** */ region: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName: pulumi.Input; /** * List of subnet IDs to attach as router interfaces. */ subnetIds?: pulumi.Input[]>; }