restoreFromRecoveryPoint method
Restore the data from a recovery point.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter namespaceName :
The name of the namespace to restore data into.
Parameter recoveryPointId :
The unique identifier of the recovery point to restore from.
Parameter workgroupName :
The name of the workgroup used to restore data.
Parameter maintainIntegration :
If true, maintain existing data sharing, zero-ETL and S3
event integrations when restoring. Otherwise, integrations will not be
maintained after the restore operation. Integrations are only maintained
when restored to the same serverless namespace.
Default: true
Implementation
Future<RestoreFromRecoveryPointResponse> restoreFromRecoveryPoint({
required String namespaceName,
required String recoveryPointId,
required String workgroupName,
bool? maintainIntegration,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RedshiftServerless.RestoreFromRecoveryPoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'namespaceName': namespaceName,
'recoveryPointId': recoveryPointId,
'workgroupName': workgroupName,
if (maintainIntegration != null)
'maintainIntegration': maintainIntegration,
},
);
return RestoreFromRecoveryPointResponse.fromJson(jsonResponse.body);
}