

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# HealthLake 데이터 스토어 업데이트
<a name="managing-data-stores-update"></a>

`UpdateFHIRDatastore`를 사용하여 기존 AWS HealthLake 데이터 스토어의 구성을 업데이트합니다. 데이터 스토어 이름, 자연어 처리(NLP) 구성, 분석 구성, 기본 FHIR 검증 프로필 및 자격 증명 공급자 구성을 업데이트할 수 있습니다. 데이터 스토어를 생성할 때 선택한 암호화 구성은 변경할 수 없습니다.

**참고**  
자격 증명 공급자 구성을 업데이트하면 유지하려는 모든 필드를 포함하여 전체가 대체됩니다. 생략한 필드는 모두 지워집니다.

다음 메뉴에서는 AWS CLI 및 AWS SDKs에 대한 예제를 제공합니다. 자세한 내용을 알아보려면 [*AWS HealthLake API 참조의 `UpdateFHIRDatastore`*](https://docs.aws.amazon.com/healthlake/latest/APIReference/API_UpdateFHIRDatastore.html) 섹션을 참조하세요.

**중요**  
NLP 및 분석 변경 사항은 비동기 워크플로를 통해 적용됩니다. 데이터 스토어 상태는 로 변경`UPDATING`되고 업데이트가 완료되면 `ACTIVE` 로 돌아가거나 업데이트`UPDATE_FAILED`가 완료되지 않으면 로 표시됩니다. 데이터 스토어 이름, FHIR 검증 프로필 및 자격 증명 공급자 변경 사항은 즉시 적용되며 상태를 변경하지 않습니다. 한 번에 하나의 데이터 스토어에 대해 하나의 업데이트만 진행할 수 있습니다. 한 업데이트가 실행되는 동안 두 번째 업데이트가 제출되면가 반환됩니다`ConflictException`. `DescribeFHIRDatastore`를 사용하여 업데이트 상태를 추적합니다.

**HealthLake 데이터 스토어를 업데이트하려면**  
액세스 기본 설정에 따라 메뉴를 선택합니다 AWS HealthLake.

## AWS CLI 및 SDKs
<a name="managing-data-stores-update-cli-sdk"></a>

------
#### [ AWS CLI ]

**예제 1: 데이터 스토어 이름 바꾸기**

```
aws healthlake update-fhir-datastore \
  --datastore-id "{{datastore-id}}" \
  --datastore-name "RenamedFhirDatastore"
```

**예제 2: NLP 활성화**

```
aws healthlake update-fhir-datastore \
  --datastore-id "{{datastore-id}}" \
  --nlp-configuration '{ "Status": "ENABLED" }'
```

**예제 3: 분석 일시 중지**

```
aws healthlake update-fhir-datastore \
  --datastore-id "{{datastore-id}}" \
  --analytics-configuration '{ "Status": "PAUSED" }'
```

**예제 4: 기본 FHIR 검증 프로필 업데이트**

```
aws healthlake update-fhir-datastore \
  --datastore-id "{{datastore-id}}" \
  --profile-configuration '{ "DefaultProfiles": ["us-core-3.1.1", "carin-bb-2.0.0"] }'
```

응답은에서 반환한 것과 동일한 셰이프인 전체 `DatastoreProperties`를 반환합니다`DescribeFHIRDatastore`.

```
{
    "DatastoreProperties": {
        "DatastoreId": "{{datastore-id}}",
        "DatastoreArn": "arn:aws:healthlake:us-east-1:{{account-id}}:datastore/{{datastore-id}}",
        "DatastoreName": "RenamedFhirDatastore",
        "DatastoreStatus": "UPDATING",
        "DatastoreTypeVersion": "R4",
        "DatastoreEndpoint": "https://healthlake.us-east-1.amazonaws.com/datastore/{{datastore-id}}/r4/",
        "NlpConfiguration": { "Status": "ENABLING" },
        "AnalyticsConfiguration": { "Status": "PAUSING" },
        "ProfileConfiguration": { "DefaultProfiles": [ "us-core-3.1.1", "carin-bb-2.0.0" ] },
        "IdentityProviderConfiguration": {
            "AuthorizationStrategy": "SMART_ON_FHIR_V1",
            "FineGrainedAuthorizationEnabled": true
        }
    }
}
```

API 세부 정보는 CLI 명령 참조의 [update-fhir-datastore](https://docs.aws.amazon.com/cli/latest/reference/healthlake/update-fhir-datastore.html)를 참조하세요. *AWS * 

------
#### [ Python ]

**SDK for Python (Boto3)**

```
def update_fhir_datastore(
    self,
    datastore_id: str,
    **kwargs,
) -> dict[str, any]:
    """
    Updates the configuration of an existing HealthLake data store.

    Pass any of DatastoreName, NlpConfiguration, AnalyticsConfiguration,
    ProfileConfiguration, or IdentityProviderConfiguration as keyword
    arguments. Omitted fields are left unchanged.

    :param datastore_id: The ID of the data store to update.
    :return: The response, including the full DatastoreProperties.
    """
    try:
        return self.health_lake_client.update_fhir_datastore(
            DatastoreId=datastore_id, **kwargs
        )
    except ClientError as err:
        logger.exception(
            "Couldn't update data store %s. Here's why: %s",
            datastore_id,
            err.response["Error"]["Message"],
        )
        raise
```

API 세부 정보는 Python용 SDK(Boto3) API 참조의 [UpdateFHIRDatastore](https://docs.aws.amazon.com/goto/boto3/healthlake-2017-07-01/UpdateFHIRDatastore)를 참조하세요. *AWS * 

------

**예제 가용성**  
필요한 예제를 찾을 수 없습니까? 이 페이지의 오른쪽 사이드바에 있는 **피드백 제공** 링크를 사용하여 코드 예제를 요청합니다.