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

Copies the specified DB cluster parameter group.

You can't copy a default DB cluster parameter group. Instead, create a new custom DB cluster parameter group, which copies the default parameters and values for the specified DB cluster parameter group family.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, CopyDBClusterParameterGroupCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, CopyDBClusterParameterGroupCommand } = 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 = { // CopyDBClusterParameterGroupMessage * SourceDBClusterParameterGroupIdentifier: "STRING_VALUE", // required * TargetDBClusterParameterGroupIdentifier: "STRING_VALUE", // required * TargetDBClusterParameterGroupDescription: "STRING_VALUE", // required * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CopyDBClusterParameterGroupCommand(input); * const response = await client.send(command); * // { // CopyDBClusterParameterGroupResult * // DBClusterParameterGroup: { // DBClusterParameterGroup * // DBClusterParameterGroupName: "STRING_VALUE", * // DBParameterGroupFamily: "STRING_VALUE", * // Description: "STRING_VALUE", * // DBClusterParameterGroupArn: "STRING_VALUE", * // }, * // }; * * ``` * * @param CopyDBClusterParameterGroupCommandInput - {@link CopyDBClusterParameterGroupCommandInput} * @returns {@link CopyDBClusterParameterGroupCommandOutput} * @see {@link CopyDBClusterParameterGroupCommandInput} for command's `input` shape. * @see {@link CopyDBClusterParameterGroupCommandOutput} 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 DBParameterGroupNotFoundFault} (client fault) *

DBParameterGroupName doesn't refer to an existing DB parameter group.

* * @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 copy a DB cluster parameter group * ```javascript * // This example copies a DB cluster parameter group. * const input = { * SourceDBClusterParameterGroupIdentifier: "mydbclusterparametergroup", * TargetDBClusterParameterGroupDescription: "My DB cluster parameter group copy", * TargetDBClusterParameterGroupIdentifier: "mydbclusterparametergroup-copy" * }; * const command = new CopyDBClusterParameterGroupCommand(input); * const response = await client.send(command); * /* response is * { * DBClusterParameterGroup: { * DBClusterParameterGroupArn: "arn:aws:rds:us-east-1:123456789012:cluster-pg:mydbclusterparametergroup-copy", * DBClusterParameterGroupName: "mydbclusterparametergroup-copy", * DBParameterGroupFamily: "aurora-mysql5.7", * Description: "My DB cluster parameter group copy" * } * } * *\/ * ``` * * @public */ export declare class CopyDBClusterParameterGroupCommand extends CopyDBClusterParameterGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CopyDBClusterParameterGroupMessage; output: CopyDBClusterParameterGroupResult; }; sdk: { input: CopyDBClusterParameterGroupCommandInput; output: CopyDBClusterParameterGroupCommandOutput; }; }; }