copyDBClusterParameterGroup method
Copies the specified DB cluster parameter group.
May throw DBParameterGroupAlreadyExistsFault.
May throw DBParameterGroupNotFoundFault.
May throw DBParameterGroupQuotaExceededFault.
Parameter sourceDBClusterParameterGroupIdentifier :
The identifier or Amazon Resource Name (ARN) for the source DB cluster
parameter group. For information about creating an ARN, see
Constructing an Amazon Resource Name (ARN).
Constraints:
- Must specify a valid DB cluster parameter group.
-
Must specify a valid DB cluster parameter group identifier, for example
my-db-cluster-param-group, or a valid ARN. - The source DB cluster parameter group must be in the same Amazon Region as the copy. Neptune does not support cross-Region copying of parameter groups.
Parameter targetDBClusterParameterGroupDescription :
A description for the copied DB cluster parameter group.
Parameter targetDBClusterParameterGroupIdentifier :
The identifier for the copied DB cluster parameter group.
Constraints:
- Cannot be null, empty, or blank
- Must contain from 1 to 255 letters, numbers, or hyphens
- First character must be a letter
- Cannot end with a hyphen or contain two consecutive hyphens
my-cluster-param-group1
Parameter tags :
The tags to be assigned to the copied DB cluster parameter group.
Implementation
Future<CopyDBClusterParameterGroupResult> copyDBClusterParameterGroup({
required String sourceDBClusterParameterGroupIdentifier,
required String targetDBClusterParameterGroupDescription,
required String targetDBClusterParameterGroupIdentifier,
List<Tag>? tags,
}) async {
final $request = <String, String>{
'SourceDBClusterParameterGroupIdentifier':
sourceDBClusterParameterGroupIdentifier,
'TargetDBClusterParameterGroupDescription':
targetDBClusterParameterGroupDescription,
'TargetDBClusterParameterGroupIdentifier':
targetDBClusterParameterGroupIdentifier,
if (tags != null)
if (tags.isEmpty)
'Tags': ''
else
for (var i1 = 0; i1 < tags.length; i1++)
for (var e3 in tags[i1].toQueryMap().entries)
'Tags.Tag.${i1 + 1}.${e3.key}': e3.value,
};
final $result = await _protocol.send(
$request,
action: 'CopyDBClusterParameterGroup',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'CopyDBClusterParameterGroupResult',
);
return CopyDBClusterParameterGroupResult.fromXml($result);
}