import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateDBParameterGroupMessage, CreateDBParameterGroupResult } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateDBParameterGroupCommand}. */ export interface CreateDBParameterGroupCommandInput extends CreateDBParameterGroupMessage { } /** * @public * * The output of {@link CreateDBParameterGroupCommand}. */ export interface CreateDBParameterGroupCommandOutput extends CreateDBParameterGroupResult, __MetadataBearer { } declare const CreateDBParameterGroupCommand_base: { new (input: CreateDBParameterGroupCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDBParameterGroupCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a new DB parameter group.

A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.

This command doesn't apply to RDS Custom.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, CreateDBParameterGroupCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, CreateDBParameterGroupCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // CreateDBParameterGroupMessage * DBParameterGroupName: "STRING_VALUE", // required * DBParameterGroupFamily: "STRING_VALUE", // required * Description: "STRING_VALUE", // required * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateDBParameterGroupCommand(input); * const response = await client.send(command); * // { // CreateDBParameterGroupResult * // DBParameterGroup: { // DBParameterGroup * // DBParameterGroupName: "STRING_VALUE", * // DBParameterGroupFamily: "STRING_VALUE", * // Description: "STRING_VALUE", * // DBParameterGroupArn: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateDBParameterGroupCommandInput - {@link CreateDBParameterGroupCommandInput} * @returns {@link CreateDBParameterGroupCommandOutput} * @see {@link CreateDBParameterGroupCommandInput} for command's `input` shape. * @see {@link CreateDBParameterGroupCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link DBParameterGroupAlreadyExistsFault} (client fault) *

A DB parameter group with the same name exists.

* * @throws {@link DBParameterGroupQuotaExceededFault} (client fault) *

The request would result in the user exceeding the allowed number of DB parameter groups.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To create a DB parameter group * ```javascript * // The following example creates a DB parameter group. * const input = { * DBParameterGroupFamily: "MySQL8.0", * DBParameterGroupName: "mydbparametergroup", * Description: "My new parameter group" * }; * const command = new CreateDBParameterGroupCommand(input); * const response = await client.send(command); * /* response is * { * DBParameterGroup: { * DBParameterGroupArn: "arn:aws:rds:us-east-1:123456789012:pg:mydbparametergroup", * DBParameterGroupFamily: "mysql8.0", * DBParameterGroupName: "mydbparametergroup", * Description: "My new parameter group" * } * } * *\/ * ``` * * @public */ export declare class CreateDBParameterGroupCommand extends CreateDBParameterGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDBParameterGroupMessage; output: CreateDBParameterGroupResult; }; sdk: { input: CreateDBParameterGroupCommandInput; output: CreateDBParameterGroupCommandOutput; }; }; }