import * as pulumi from "@pulumi/pulumi"; /** * Create a new IP whitelist on your private cloud database instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const ip = new ovh.hosting.PrivateDatabaseAllowlist("ip", { * serviceName: "XXXXXX", * ip: "1.2.3.4", * name: "A name for your IP address", * service: true, * sftp: true, * }); * ``` * * ## Import * * OVHcloud database whitelist can be imported using the `service_name` and the `ip`, separated by "/" E.g., * * ```sh * $ pulumi import ovh:Hosting/privateDatabaseAllowlist:PrivateDatabaseAllowlist ip service_name/ip * ``` */ export declare class PrivateDatabaseAllowlist extends pulumi.CustomResource { /** * Get an existing PrivateDatabaseAllowlist 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?: PrivateDatabaseAllowlistState, opts?: pulumi.CustomResourceOptions): PrivateDatabaseAllowlist; /** * Returns true if the given object is an instance of PrivateDatabaseAllowlist. 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 PrivateDatabaseAllowlist; /** * The whitelisted IP in your instance. */ readonly ip: pulumi.Output; /** * Custom name for your Whitelisted IP. */ readonly name: pulumi.Output; /** * Authorize this IP to access service port. Values can be `true` or `false` */ readonly service: pulumi.Output; /** * The internal name of your private database. */ readonly serviceName: pulumi.Output; /** * Authorize this IP to access SFTP port. Values can be `true` or `false` */ readonly sftp: pulumi.Output; /** * Create a PrivateDatabaseAllowlist 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: PrivateDatabaseAllowlistArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PrivateDatabaseAllowlist resources. */ export interface PrivateDatabaseAllowlistState { /** * The whitelisted IP in your instance. */ ip?: pulumi.Input; /** * Custom name for your Whitelisted IP. */ name?: pulumi.Input; /** * Authorize this IP to access service port. Values can be `true` or `false` */ service?: pulumi.Input; /** * The internal name of your private database. */ serviceName?: pulumi.Input; /** * Authorize this IP to access SFTP port. Values can be `true` or `false` */ sftp?: pulumi.Input; } /** * The set of arguments for constructing a PrivateDatabaseAllowlist resource. */ export interface PrivateDatabaseAllowlistArgs { /** * The whitelisted IP in your instance. */ ip: pulumi.Input; /** * Custom name for your Whitelisted IP. */ name?: pulumi.Input; /** * Authorize this IP to access service port. Values can be `true` or `false` */ service: pulumi.Input; /** * The internal name of your private database. */ serviceName: pulumi.Input; /** * Authorize this IP to access SFTP port. Values can be `true` or `false` */ sftp: pulumi.Input; }