Skip to content

delete_fhir_datastore async

delete_fhir_datastore(
    datastore_id: DatastoreId,
    *,
    config_overrides: Optional[AsyncHealthLakeClientConfig] = None,
) -> DeleteFHIRDatastoreResponse

Delete a FHIR-enabled data store.

Parameters:

  • datastore_id (DatastoreId) –

    The Amazon Web Services-generated identifier for the data store to be deleted.

Raises:

Source code in docs_src/capo_healthlake/_services/async_health_lake.py
async def delete_fhir_datastore(
    self,
    datastore_id: "capo_healthlake.types.datastore_id.DatastoreId",
    *,
    config_overrides: Optional[AsyncHealthLakeClientConfig] = None,
) -> "capo_healthlake.types.delete_fhir_datastore_response.DeleteFHIRDatastoreResponse":
    """<p>Delete a FHIR-enabled data store.</p>

    Args:
        datastore_id: <p> The Amazon Web Services-generated identifier for the data store to be deleted.</p>

    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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_healthlake.types.delete_fhir_datastore_request.DeleteFHIRDatastoreRequest]",
    ) -> AsyncOperationResponse[
        "capo_healthlake.types.delete_fhir_datastore_response.DeleteFHIRDatastoreResponse"
    ]:
        import capo_healthlake._operations.health_lake.delete_fhir_datastore

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteFHIRDatastore")
    )
    input_: capo_healthlake.types.delete_fhir_datastore_request.DeleteFHIRDatastoreRequest = {
        "datastore_id": datastore_id
    }

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