updateFHIRDatastore method
Update the properties of 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 data store identifier.
Parameter analyticsConfiguration :
The analytics configuration for the data store.
Parameter datastoreName :
The data store name.
Parameter identityProviderConfiguration :
The identity provider configuration for the data store.
Parameter nlpConfiguration :
The natural language processing (NLP) configuration for the data store.
Parameter profileConfiguration :
The profile configuration for the data store.
Implementation
Future<UpdateFHIRDatastoreResponse> updateFHIRDatastore({
required String datastoreId,
AnalyticsConfiguration? analyticsConfiguration,
String? datastoreName,
IdentityProviderConfiguration? identityProviderConfiguration,
NlpConfiguration? nlpConfiguration,
ProfileConfiguration? profileConfiguration,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.UpdateFHIRDatastore'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatastoreId': datastoreId,
if (analyticsConfiguration != null)
'AnalyticsConfiguration': analyticsConfiguration,
if (datastoreName != null) 'DatastoreName': datastoreName,
if (identityProviderConfiguration != null)
'IdentityProviderConfiguration': identityProviderConfiguration,
if (nlpConfiguration != null) 'NlpConfiguration': nlpConfiguration,
if (profileConfiguration != null)
'ProfileConfiguration': profileConfiguration,
},
);
return UpdateFHIRDatastoreResponse.fromJson(jsonResponse.body);
}