describeFHIRDatastore method

Future<DescribeFHIRDatastoreResponse> describeFHIRDatastore({
  1. required String datastoreId,
})

Get properties for a FHIR-enabled data store.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter datastoreId : The data store identifier.

Implementation

Future<DescribeFHIRDatastoreResponse> describeFHIRDatastore({
  required String datastoreId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'HealthLake.DescribeFHIRDatastore'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DatastoreId': datastoreId,
    },
  );

  return DescribeFHIRDatastoreResponse.fromJson(jsonResponse.body);
}