deleteSnapshotCopyConfiguration method
Future<DeleteSnapshotCopyConfigurationResponse>
deleteSnapshotCopyConfiguration({
- required String snapshotCopyConfigurationId,
Deletes a snapshot copy configuration
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter snapshotCopyConfigurationId :
The ID of the snapshot copy configuration to delete.
Implementation
Future<DeleteSnapshotCopyConfigurationResponse>
deleteSnapshotCopyConfiguration({
required String snapshotCopyConfigurationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RedshiftServerless.DeleteSnapshotCopyConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'snapshotCopyConfigurationId': snapshotCopyConfigurationId,
},
);
return DeleteSnapshotCopyConfigurationResponse.fromJson(jsonResponse.body);
}