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.
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
public abstract CopyDBParameterGroupResponse CopyDBParameterGroup( CopyDBParameterGroupRequest request )
Container for the necessary parameters to execute the CopyDBParameterGroup service method.
Exception | Condition |
---|---|
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. |
This example copies 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;
.NET Framework:
Supported in: 4.5, 4.0, 3.5