Skip to main content

data_transformation_profiles

Creates, updates, deletes, gets or lists a data_transformation_profiles resource.

Overview

Namedata_transformation_profiles
TypeResource
Idaws.healthlake.data_transformation_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
change_descriptionstringA description of what changed in this version.
last_updated_atstring (date-time)The timestamp when this version was last updated.
profile_descriptionstringThe description of the profile.
profile_idstringThe unique identifier of the profile. (pattern: <code>[a-f0-9]{32}</code>)
profile_mappingobjectThe profile content as a map of file paths to content strings.
profile_namestringThe name of the profile.
source_formatstringThe source data format of the profile. (CCDA, CSV)
target_formatstringThe target output format of the profile. (FHIR_R4)
versionintegerThe version number of the retrieved profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_transformation_profileselectregionRetrieves a data transformation profile's metadata and profile content at a specific version. Specify version 0 to retrieve the DRAFT, a version number between 1 and 99 to retrieve a specific published version, or omit the version to retrieve the latest published version.
list_data_transformation_profilesselectregionLists all data transformation profiles in your account, returning the latest version summary for each. Use GetDataTransformationProfile to retrieve profile content. Results are paginated. Use the NextToken parameter to retrieve additional results.
create_data_transformation_profileinsertregion, SourceFormat, Source, ProfileNameCreates a data transformation profile in DRAFT state. Specify a built-in starter profile, an existing profile version, raw profile content, or a sample data file as the source.
update_data_transformation_profileupdateregion, ProfileId, ProfileMappingUpdates the DRAFT version (version 0) of a data transformation profile with new profile content. The update replaces all existing DRAFT content.
delete_data_transformation_profiledeleteregionDeletes a data transformation profile and all its versions, including the DRAFT and all published versions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a data transformation profile's metadata and profile content at a specific version. Specify version 0 to retrieve the DRAFT, a version number between 1 and 99 to retrieve a specific published version, or omit the version to retrieve the latest published version.

SELECT
change_description,
last_updated_at,
profile_description,
profile_id,
profile_mapping,
profile_name,
source_format,
target_format,
version
FROM aws.healthlake.data_transformation_profiles
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a data transformation profile in DRAFT state. Specify a built-in starter profile, an existing profile version, raw profile content, or a sample data file as the source.

INSERT INTO aws.healthlake.data_transformation_profiles (
SourceFormat,
Source,
KmsKeyId,
ProfileDescription,
ProfileName,
Tags,
ClientToken,
region
)
SELECT
'{{ SourceFormat }}' /* required */,
'{{ Source }}' /* required */,
'{{ KmsKeyId }}',
'{{ ProfileDescription }}',
'{{ ProfileName }}' /* required */,
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
last_updated_at,
profile_id,
profile_name,
source_format,
target_format,
version
;

UPDATE examples

Updates the DRAFT version (version 0) of a data transformation profile with new profile content. The update replaces all existing DRAFT content.

UPDATE aws.healthlake.data_transformation_profiles
SET
ProfileId = '{{ ProfileId }}',
ProfileMapping = '{{ ProfileMapping }}',
ChangeDescription = '{{ ChangeDescription }}'
WHERE
region = '{{ region }}' --required
AND ProfileId = '{{ ProfileId }}' --required
AND ProfileMapping = '{{ ProfileMapping }}' --required
RETURNING
last_updated_at,
profile_id,
profile_name,
source_format,
target_format;

DELETE examples

Deletes a data transformation profile and all its versions, including the DRAFT and all published versions.

DELETE FROM aws.healthlake.data_transformation_profiles
WHERE region = '{{ region }}' --required
;