刪除 HealthLake 資料存放區 - AWS HealthLake

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

刪除 HealthLake 資料存放區

使用 DeleteFHIRDatastore刪除 HealthLake 資料存放區。下列功能表提供 AWS CLI AWS SDKs 的 AWS Management Console 和 程式碼範例程序。如需詳細資訊,請參閱 AWS HealthLake API 參考中的 DeleteFHIRDatastore

刪除 HealthLake 資料存放區

根據您的存取偏好設定選擇選單 AWS HealthLake。

CLI
AWS CLI

刪除 FHIR 資料存放區

下列delete-fhir-datastore範例示範如何刪除資料存放區及其在 AWS HealthLake 中的所有內容。

aws healthlake delete-fhir-datastore \ --datastore-id (Data store ID)

輸出:

{ "DatastoreEndpoint": "https://healthlake.us-east-1.amazonaws.com/datastore/(Data store ID)/r4/", "DatastoreArn": "arn:aws:healthlake:us-east-1:(AWS Account ID):datastore/(Data store ID)", "DatastoreStatus": "DELETING", "DatastoreId": "(Data store ID)" }

如需詳細資訊,請參閱 AWS HealthLake 開發人員指南中的建立和監控 FHIR 資料存放區 <https://docs.aws.amazon.com/healthlake/latest/devguide/working-with-FHIR-healthlake.html>。

Python
SDK for Python (Boto3)
@classmethod def from_client(cls) -> "HealthLakeWrapper": """ Creates a HealthLakeWrapper instance with a default AWS HealthLake client. :return: An instance of HealthLakeWrapper initialized with the default HealthLake client. """ health_lake_client = boto3.client("healthlake") return cls(health_lake_client) def delete_fhir_datastore(self, datastore_id: str) -> None: """ Deletes a HealthLake data store. :param datastore_id: The data store ID. """ try: self.health_lake_client.delete_fhir_datastore(DatastoreId=datastore_id) except ClientError as err: logger.exception( "Couldn't delete data store with ID %s. Here's why %s", datastore_id, err.response["Error"]["Message"], ) raise
  • 如需 API 詳細資訊,請參閱《適用於 AWS Python (Boto3) 的 SDK API 參考》中的 DeleteFHIRDatastore

注意

GitHub 上提供更多範例。尋找完整範例,並了解如何在 AWS 程式碼範例儲存庫中設定和執行。

可用性範例

找不到所需的內容嗎? 使用此頁面右側的提供意見回饋連結來請求程式碼範例。

  1. 登入 HealthLake 主控台上的資料存放區頁面。

  2. 選擇資料存放區。

    資料存放區詳細資訊頁面隨即開啟。

  3. 選擇 刪除

    刪除資料存放區頁面隨即開啟。

  4. 若要確認刪除資料存放區,請在文字輸入欄位中輸入資料存放區名稱。

  5. 選擇刪除