deleteFHIRDatastore method
Delete a FHIR-enabled data store.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter datastoreId :
The AWS-generated identifier for the data store to be deleted.
Implementation
Future<DeleteFHIRDatastoreResponse> deleteFHIRDatastore({
required String datastoreId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.DeleteFHIRDatastore'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatastoreId': datastoreId,
},
);
return DeleteFHIRDatastoreResponse.fromJson(jsonResponse.body);
}