copyDBParameterGroup method

Future<CopyDBParameterGroupResult> copyDBParameterGroup({
  1. required String sourceDBParameterGroupIdentifier,
  2. required String targetDBParameterGroupDescription,
  3. required String targetDBParameterGroupIdentifier,
  4. List<Tag>? tags,
})

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);
}