Skip to content

update_fhir_datastore async

update_fhir_datastore(
    datastore_id: DatastoreId,
    *,
    config_overrides: Optional[AsyncHealthLakeClientConfig] = None,
    datastore_name: Optional[DatastoreName] = None,
    analytics_configuration: Optional[AnalyticsConfiguration] = None,
    nlp_configuration: Optional[NlpConfiguration] = None,
    profile_configuration: Optional[ProfileConfiguration] = None,
    identity_provider_configuration: Optional[IdentityProviderConfiguration] = None,
    backup_configuration: Optional[BackupConfiguration] = None,
) -> UpdateFHIRDatastoreResponse

Update the properties of a FHIR-enabled data store.

Parameters:

Raises:

Examples:

Update a data store's name and configuration

>>> await client.update_fhir_datastore(datastore_id='datastore-id', datastore_name='RenamedFhirDatastore', nlp_configuration={'Status': 'ENABLED'}, analytics_configuration={'Status': 'DISABLED'}, profile_configuration={'DefaultProfiles': ['us-core-3.1.1', 'carin-bb-2.0.0']}, identity_provider_configuration={'AuthorizationStrategy': 'SMART_ON_FHIR_V1', 'FineGrainedAuthorizationEnabled': True})
Source code in docs_src/capo_healthlake/_services/async_health_lake.py
async def update_fhir_datastore(
    self,
    datastore_id: "capo_healthlake.types.datastore_id.DatastoreId",
    *,
    config_overrides: Optional[AsyncHealthLakeClientConfig] = None,
    datastore_name: Optional[
        "capo_healthlake.types.datastore_name.DatastoreName"
    ] = None,
    analytics_configuration: Optional[
        "capo_healthlake.types.analytics_configuration.AnalyticsConfiguration"
    ] = None,
    nlp_configuration: Optional[
        "capo_healthlake.types.nlp_configuration.NlpConfiguration"
    ] = None,
    profile_configuration: Optional[
        "capo_healthlake.types.profile_configuration.ProfileConfiguration"
    ] = None,
    identity_provider_configuration: Optional[
        "capo_healthlake.types.identity_provider_configuration.IdentityProviderConfiguration"
    ] = None,
    backup_configuration: Optional[
        "capo_healthlake.types.backup_configuration.BackupConfiguration"
    ] = None,
) -> "capo_healthlake.types.update_fhir_datastore_response.UpdateFHIRDatastoreResponse":
    """<p>Update the properties of a FHIR-enabled data store.</p>

    Args:
        datastore_id: <p>The data store identifier.</p>
        datastore_name: <p>The data store name.</p>
        analytics_configuration: <p>The analytics configuration for the data store.</p>
        nlp_configuration: <p>The natural language processing (NLP) configuration for the data store.</p>
        profile_configuration: <p>The profile configuration for the data store.</p>
        identity_provider_configuration: <p>The identity provider configuration for the data store.</p>
        backup_configuration: The backup configuration for the data store.

    Raises:
        capo_healthlake.errors.access_denied_exception.AccessDeniedException: <p>Access is denied. Your account is not authorized to perform this operation.</p>
        capo_healthlake.errors.conflict_exception.ConflictException: <p>The data store is in a transition state and the user requested action cannot be performed.</p>
        capo_healthlake.errors.internal_server_exception.InternalServerException: <p>An unknown internal error occurred in the service.</p>
        capo_healthlake.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested data store was not found.</p>
        capo_healthlake.errors.throttling_exception.ThrottlingException: <p>The user has exceeded their maximum number of allowed calls to the given API. </p>
        capo_healthlake.errors.validation_exception.ValidationException: <p>The user input parameter was invalid.</p>
        capo_healthlake.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Update a data store's name and configuration

        >>> await client.update_fhir_datastore(datastore_id='datastore-id', datastore_name='RenamedFhirDatastore', nlp_configuration={'Status': 'ENABLED'}, analytics_configuration={'Status': 'DISABLED'}, profile_configuration={'DefaultProfiles': ['us-core-3.1.1', 'carin-bb-2.0.0']}, identity_provider_configuration={'AuthorizationStrategy': 'SMART_ON_FHIR_V1', 'FineGrainedAuthorizationEnabled': True})
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_healthlake.types.update_fhir_datastore_request.UpdateFHIRDatastoreRequest]",
    ) -> AsyncOperationResponse[
        "capo_healthlake.types.update_fhir_datastore_response.UpdateFHIRDatastoreResponse"
    ]:
        import capo_healthlake._operations.health_lake.update_fhir_datastore

        (
            output,
            http_response,
        ) = await capo_healthlake._operations.health_lake.update_fhir_datastore.async_update_fhir_datastore(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateFHIRDatastore")
    )
    input_: capo_healthlake.types.update_fhir_datastore_request.UpdateFHIRDatastoreRequest = {
        "datastore_id": datastore_id
    }
    if datastore_name is not None:
        input_["datastore_name"] = datastore_name
    if analytics_configuration is not None:
        input_["analytics_configuration"] = analytics_configuration
    if nlp_configuration is not None:
        input_["nlp_configuration"] = nlp_configuration
    if profile_configuration is not None:
        input_["profile_configuration"] = profile_configuration
    if identity_provider_configuration is not None:
        input_["identity_provider_configuration"] = identity_provider_configuration
    if backup_configuration is not None:
        input_["backup_configuration"] = backup_configuration

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output