copyDBSnapshot method
May throw DBSnapshotAlreadyExistsFault. May throw DBSnapshotNotFoundFault. May throw InvalidDBSnapshotStateFault. May throw SnapshotQuotaExceededFault.
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-01-10',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CopyDBSnapshotMessage'],
shapes: shapes,
resultWrapper: 'CopyDBSnapshotResult',
);
return CopyDBSnapshotResult.fromXml($result);
}