restoreDBInstanceToPointInTime method
Future<RestoreDBInstanceToPointInTimeResult>
restoreDBInstanceToPointInTime({
- required String sourceDBInstanceIdentifier,
- required String targetDBInstanceIdentifier,
- bool? autoMinorVersionUpgrade,
- String? availabilityZone,
- String? dBInstanceClass,
- String? dBName,
- String? dBSubnetGroupName,
- String? engine,
- int? iops,
- String? licenseModel,
- bool? multiAZ,
- String? optionGroupName,
- int? port,
- bool? publiclyAccessible,
- DateTime? restoreTime,
- List<
Tag> ? tags, - bool? useLatestRestorableTime,
May throw DBInstanceAlreadyExistsFault. May throw DBInstanceNotFoundFault. May throw InstanceQuotaExceededFault. May throw InsufficientDBInstanceCapacityFault. May throw InvalidDBInstanceStateFault. May throw PointInTimeRestoreNotEnabledFault. May throw StorageQuotaExceededFault. May throw InvalidVPCNetworkStateFault. May throw InvalidRestoreFault. May throw DBSubnetGroupNotFoundFault. May throw DBSubnetGroupDoesNotCoverEnoughAZs. May throw InvalidSubnet. May throw ProvisionedIopsNotAvailableInAZFault. May throw OptionGroupNotFoundFault.
Implementation
Future<RestoreDBInstanceToPointInTimeResult> restoreDBInstanceToPointInTime({
required String sourceDBInstanceIdentifier,
required String targetDBInstanceIdentifier,
bool? autoMinorVersionUpgrade,
String? availabilityZone,
String? dBInstanceClass,
String? dBName,
String? dBSubnetGroupName,
String? engine,
int? iops,
String? licenseModel,
bool? multiAZ,
String? optionGroupName,
int? port,
bool? publiclyAccessible,
DateTime? restoreTime,
List<Tag>? tags,
bool? useLatestRestorableTime,
}) async {
ArgumentError.checkNotNull(
sourceDBInstanceIdentifier, 'sourceDBInstanceIdentifier');
ArgumentError.checkNotNull(
targetDBInstanceIdentifier, 'targetDBInstanceIdentifier');
final $request = <String, dynamic>{};
$request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier;
$request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier;
autoMinorVersionUpgrade
?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg);
availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg);
dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg);
dBName?.also((arg) => $request['DBName'] = arg);
dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg);
engine?.also((arg) => $request['Engine'] = arg);
iops?.also((arg) => $request['Iops'] = arg);
licenseModel?.also((arg) => $request['LicenseModel'] = arg);
multiAZ?.also((arg) => $request['MultiAZ'] = arg);
optionGroupName?.also((arg) => $request['OptionGroupName'] = arg);
port?.also((arg) => $request['Port'] = arg);
publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg);
restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg));
tags?.also((arg) => $request['Tags'] = arg);
useLatestRestorableTime
?.also((arg) => $request['UseLatestRestorableTime'] = arg);
final $result = await _protocol.send(
$request,
action: 'RestoreDBInstanceToPointInTime',
version: '2013-09-09',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RestoreDBInstanceToPointInTimeMessage'],
shapes: shapes,
resultWrapper: 'RestoreDBInstanceToPointInTimeResult',
);
return RestoreDBInstanceToPointInTimeResult.fromXml($result);
}