copyDBParameterGroup method
May throw DBParameterGroupNotFoundFault. May throw DBParameterGroupAlreadyExistsFault. May throw DBParameterGroupQuotaExceededFault.
Implementation
Future<CopyDBParameterGroupResult> copyDBParameterGroup({
required String sourceDBParameterGroupIdentifier,
required String targetDBParameterGroupDescription,
required String targetDBParameterGroupIdentifier,
List<Tag>? tags,
}) async {
ArgumentError.checkNotNull(
sourceDBParameterGroupIdentifier, 'sourceDBParameterGroupIdentifier');
ArgumentError.checkNotNull(
targetDBParameterGroupDescription, 'targetDBParameterGroupDescription');
ArgumentError.checkNotNull(
targetDBParameterGroupIdentifier, 'targetDBParameterGroupIdentifier');
final $request = <String, dynamic>{};
$request['SourceDBParameterGroupIdentifier'] =
sourceDBParameterGroupIdentifier;
$request['TargetDBParameterGroupDescription'] =
targetDBParameterGroupDescription;
$request['TargetDBParameterGroupIdentifier'] =
targetDBParameterGroupIdentifier;
tags?.also((arg) => $request['Tags'] = arg);
final $result = await _protocol.send(
$request,
action: 'CopyDBParameterGroup',
version: '2014-09-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CopyDBParameterGroupMessage'],
shapes: shapes,
resultWrapper: 'CopyDBParameterGroupResult',
);
return CopyDBParameterGroupResult.fromXml($result);
}