createDBSnapshot method

Future<CreateDBSnapshotResult> createDBSnapshot({
  1. required String dBInstanceIdentifier,
  2. required String dBSnapshotIdentifier,
})

Implementation

Future<CreateDBSnapshotResult> createDBSnapshot({
  required String dBInstanceIdentifier,
  required String dBSnapshotIdentifier,
}) async {
  ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
  ArgumentError.checkNotNull(dBSnapshotIdentifier, 'dBSnapshotIdentifier');
  final $request = <String, dynamic>{};
  $request['DBInstanceIdentifier'] = dBInstanceIdentifier;
  $request['DBSnapshotIdentifier'] = dBSnapshotIdentifier;
  final $result = await _protocol.send(
    $request,
    action: 'CreateDBSnapshot',
    version: '2013-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CreateDBSnapshotMessage'],
    shapes: shapes,
    resultWrapper: 'CreateDBSnapshotResult',
  );
  return CreateDBSnapshotResult.fromXml($result);
}