Skip to main content

fhir_datastores

Creates, updates, deletes or gets a fhir_datastore resource or lists fhir_datastores in a region

Overview

Namefhir_datastores
TypeResource
DescriptionHealthLake FHIR Datastore
Idaws.healthlake.fhir_datastores

Fields

NameDatatypeDescription
created_atobjectThe time that a Data Store was created.
datastore_arnstringThe Amazon Resource Name used in the creation of the Data Store.
datastore_endpointstringThe AWS endpoint for the Data Store. Each Data Store will have it's own endpoint with Data Store ID in the endpoint URL.
datastore_idstringThe AWS-generated ID number for the Data Store.
datastore_namestringThe user-generated name for the Data Store.
datastore_statusstringThe status of the Data Store. Possible statuses are 'CREATING', 'ACTIVE', 'DELETING', or 'DELETED'.
datastore_type_versionstringThe FHIR version. Only R4 version data is supported.
preload_data_configobjectThe preloaded data configuration for the Data Store. Only data preloaded from Synthea is supported.
sse_configurationobjectThe server-side encryption key configuration for a customer provided encryption key.
identity_provider_configurationobjectThe identity provider configuration for the datastore
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDatastoreTypeVersion, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all fhir_datastores in a region.

SELECT
region,
created_at,
datastore_arn,
datastore_endpoint,
datastore_id,
datastore_name,
datastore_status,
datastore_type_version,
preload_data_config,
sse_configuration,
identity_provider_configuration,
tags
FROM aws.healthlake.fhir_datastores
WHERE region = 'us-east-1';

Gets all properties from an individual fhir_datastore.

SELECT
region,
created_at,
datastore_arn,
datastore_endpoint,
datastore_id,
datastore_name,
datastore_status,
datastore_type_version,
preload_data_config,
sse_configuration,
identity_provider_configuration,
tags
FROM aws.healthlake.fhir_datastores
WHERE region = 'us-east-1' AND data__Identifier = '<DatastoreId>';

INSERT example

Use the following StackQL query and manifest file to create a new fhir_datastore resource, using stack-deploy.

/*+ create */
INSERT INTO aws.healthlake.fhir_datastores (
DatastoreTypeVersion,
region
)
SELECT
'{{ DatastoreTypeVersion }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.healthlake.fhir_datastores
WHERE data__Identifier = '<DatastoreId>'
AND region = 'us-east-1';

Permissions

To operate on the fhir_datastores resource, the following permissions are required:

Create

healthlake:CreateFHIRDatastore,
healthlake:DescribeFHIRDatastore,
iam:PassRole,
kms:DescribeKey,
kms:CreateGrant,
kms:GenerateDataKey,
kms:Decrypt,
iam:GetRole,
iam:CreateServiceLinkedRole,
ram:GetResourceShareInvitations,
ram:AcceptResourceShareInvitation,
glue:CreateDatabase,
glue:DeleteDatabase,
lambda:InvokeFunction,
healthlake:TagResource,
healthlake:UntagResource,
healthlake:ListTagsForResource

Read

healthlake:DescribeFHIRDatastore,
healthlake:ListTagsForResource

Update

healthlake:TagResource,
healthlake:UntagResource,
healthlake:ListTagsForResource,
healthlake:DescribeFHIRDatastore,
iam:PassRole,
iam:GetRole,
iam:CreateServiceLinkedRole

Delete

healthlake:DeleteFHIRDatastore,
healthlake:DescribeFHIRDatastore,
iam:PassRole,
iam:GetRole,
iam:CreateServiceLinkedRole,
ram:GetResourceShareInvitations,
ram:AcceptResourceShareInvitation,
glue:CreateDatabase,
glue:DeleteDatabase

List

healthlake:ListFHIRDatastores