UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

172 lines (171 loc) 6.3 kB
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; /** * Manages a RDS ParameterGroup resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const pg1 = new huaweicloud.Rds.Parametergroup("pg_1", { * datastore: { * type: "mysql", * version: "5.6", * }, * description: "description_1", * values: { * autocommit: "OFF", * max_connections: "10", * }, * }); * ``` * * ## Import * * Parameter groups can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Rds/parametergroup:Parametergroup pg_1 7117d38e-4c8f-4624-a505-bd96b97d024c * ``` */ export declare class Parametergroup extends pulumi.CustomResource { /** * Get an existing Parametergroup 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?: ParametergroupState, opts?: pulumi.CustomResourceOptions): Parametergroup; /** * Returns true if the given object is an instance of Parametergroup. 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 Parametergroup; /** * Indicates the parameter configuration defined by users based on the default parameters * groups. */ readonly configurationParameters: pulumi.Output<outputs.Rds.ParametergroupConfigurationParameter[]>; /** * The creation time, in UTC format. */ readonly createdAt: pulumi.Output<string>; /** * Database object. The database object structure is documented below. Changing * this creates a new parameter group. */ readonly datastore: pulumi.Output<outputs.Rds.ParametergroupDatastore>; /** * The parameter group description. It contains a maximum of 256 characters and cannot * contain the following special characters:>!<"&'= the value is left blank by default. */ readonly description: pulumi.Output<string | undefined>; /** * The parameter group name. It contains a maximum of 64 characters. */ readonly name: pulumi.Output<string>; /** * The region in which to create the RDS parameter group. If omitted, the * provider-level region will be used. Changing this creates a new parameter group. */ readonly region: pulumi.Output<string>; /** * The last update time, in UTC format. */ readonly updatedAt: pulumi.Output<string>; /** * Parameter group values key/value pairs defined by users based on the default parameter * groups. */ readonly values: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Parametergroup 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: ParametergroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Parametergroup resources. */ export interface ParametergroupState { /** * Indicates the parameter configuration defined by users based on the default parameters * groups. */ configurationParameters?: pulumi.Input<pulumi.Input<inputs.Rds.ParametergroupConfigurationParameter>[]>; /** * The creation time, in UTC format. */ createdAt?: pulumi.Input<string>; /** * Database object. The database object structure is documented below. Changing * this creates a new parameter group. */ datastore?: pulumi.Input<inputs.Rds.ParametergroupDatastore>; /** * The parameter group description. It contains a maximum of 256 characters and cannot * contain the following special characters:>!<"&'= the value is left blank by default. */ description?: pulumi.Input<string>; /** * The parameter group name. It contains a maximum of 64 characters. */ name?: pulumi.Input<string>; /** * The region in which to create the RDS parameter group. If omitted, the * provider-level region will be used. Changing this creates a new parameter group. */ region?: pulumi.Input<string>; /** * The last update time, in UTC format. */ updatedAt?: pulumi.Input<string>; /** * Parameter group values key/value pairs defined by users based on the default parameter * groups. */ values?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; } /** * The set of arguments for constructing a Parametergroup resource. */ export interface ParametergroupArgs { /** * Database object. The database object structure is documented below. Changing * this creates a new parameter group. */ datastore: pulumi.Input<inputs.Rds.ParametergroupDatastore>; /** * The parameter group description. It contains a maximum of 256 characters and cannot * contain the following special characters:>!<"&'= the value is left blank by default. */ description?: pulumi.Input<string>; /** * The parameter group name. It contains a maximum of 64 characters. */ name?: pulumi.Input<string>; /** * The region in which to create the RDS parameter group. If omitted, the * provider-level region will be used. Changing this creates a new parameter group. */ region?: pulumi.Input<string>; /** * Parameter group values key/value pairs defined by users based on the default parameter * groups. */ values?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }