UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

147 lines (146 loc) 4.97 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages RDS for PostgreSQL plugin on the databases within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const instanceId = config.requireObject("instanceId"); * const databaseName = config.requireObject("databaseName"); * const test = new huaweicloud.rds.PgPlugin("test", { * instanceId: instanceId, * databaseName: databaseName, * }); * ``` * * ## Import * * The RDS for PostgreSQL plugin can be imported using the `instance_id`, `database_name` and `name` separated by slashs, e.g.bash * * ```sh * $ pulumi import huaweicloud:Rds/pgPlugin:PgPlugin test <instance_id>/<database_name>/<name> * ``` */ export declare class PgPlugin extends pulumi.CustomResource { /** * Get an existing PgPlugin 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<pulumi.ID>, state?: PgPluginState, opts?: pulumi.CustomResourceOptions): PgPlugin; /** * Returns true if the given object is an instance of PgPlugin. 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 PgPlugin; /** * Specifies the database name. * Changing this parameter will create a new resource. */ readonly databaseName: pulumi.Output<string>; /** * The plugin description. */ readonly description: pulumi.Output<string>; /** * Specifies the PostgreSQL instance ID. * Changing this parameter will create a new resource. */ readonly instanceId: pulumi.Output<string>; /** * Specifies the plugin name. * Changing this parameter will create a new resource. */ readonly name: pulumi.Output<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * Dependent preloaded library. */ readonly sharedPreloadLibraries: pulumi.Output<string>; /** * The plugin version. */ readonly version: pulumi.Output<string>; /** * Create a PgPlugin 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: PgPluginArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PgPlugin resources. */ export interface PgPluginState { /** * Specifies the database name. * Changing this parameter will create a new resource. */ databaseName?: pulumi.Input<string>; /** * The plugin description. */ description?: pulumi.Input<string>; /** * Specifies the PostgreSQL instance ID. * Changing this parameter will create a new resource. */ instanceId?: pulumi.Input<string>; /** * Specifies the plugin name. * Changing this parameter will create a new resource. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * Dependent preloaded library. */ sharedPreloadLibraries?: pulumi.Input<string>; /** * The plugin version. */ version?: pulumi.Input<string>; } /** * The set of arguments for constructing a PgPlugin resource. */ export interface PgPluginArgs { /** * Specifies the database name. * Changing this parameter will create a new resource. */ databaseName: pulumi.Input<string>; /** * Specifies the PostgreSQL instance ID. * Changing this parameter will create a new resource. */ instanceId: pulumi.Input<string>; /** * Specifies the plugin name. * Changing this parameter will create a new resource. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; }