copyDBSnapshot method

Future<CopyDBSnapshotResult> copyDBSnapshot({
  1. required String sourceDBSnapshotIdentifier,
  2. required String targetDBSnapshotIdentifier,
})

Implementation

Future<CopyDBSnapshotResult> copyDBSnapshot({
  required String sourceDBSnapshotIdentifier,
  required String targetDBSnapshotIdentifier,
}) async {
  ArgumentError.checkNotNull(
      sourceDBSnapshotIdentifier, 'sourceDBSnapshotIdentifier');
  ArgumentError.checkNotNull(
      targetDBSnapshotIdentifier, 'targetDBSnapshotIdentifier');
  final $request = <String, dynamic>{};
  $request['SourceDBSnapshotIdentifier'] = sourceDBSnapshotIdentifier;
  $request['TargetDBSnapshotIdentifier'] = targetDBSnapshotIdentifier;
  final $result = await _protocol.send(
    $request,
    action: 'CopyDBSnapshot',
    version: '2013-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CopyDBSnapshotMessage'],
    shapes: shapes,
    resultWrapper: 'CopyDBSnapshotResult',
  );
  return CopyDBSnapshotResult.fromXml($result);
}