updateFHIRDatastore method

Future<UpdateFHIRDatastoreResponse> updateFHIRDatastore({
  1. required String datastoreId,
  2. AnalyticsConfiguration? analyticsConfiguration,
  3. String? datastoreName,
  4. IdentityProviderConfiguration? identityProviderConfiguration,
  5. NlpConfiguration? nlpConfiguration,
  6. ProfileConfiguration? profileConfiguration,
})

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);
}