AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Copies the specified DB parameter group.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CopyDBParameterGroupAsync.

Namespace: Amazon.Neptune
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z

Syntax

C#
public abstract CopyDBParameterGroupResponse CopyDBParameterGroup(
         CopyDBParameterGroupRequest request
)

Parameters

request
Type: Amazon.Neptune.Model.CopyDBParameterGroupRequest

Container for the necessary parameters to execute the CopyDBParameterGroup service method.

Return Value


The response from the CopyDBParameterGroup service method, as returned by Neptune.

Exceptions

ExceptionCondition
DBParameterGroupAlreadyExistsException A DB parameter group with the same name exists.
DBParameterGroupNotFoundException DBParameterGroupName does not refer to an existing DB parameter group.
DBParameterGroupQuotaExceededException Request would result in user exceeding the allowed number of DB parameter groups.

Examples

This example copies a DB parameter group.

To copy a DB parameter group


var response = client.CopyDBParameterGroup(new CopyDBParameterGroupRequest 
{
    SourceDBParameterGroupIdentifier = "mymysqlparametergroup",
    TargetDBParameterGroupDescription = "My MySQL parameter group copy",
    TargetDBParameterGroupIdentifier = "mymysqlparametergroup-copy"
});

DBParameterGroup dbParameterGroup = response.DBParameterGroup;

            

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also