getDataTransformationProfile method
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.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter profileId :
The unique identifier of the profile to retrieve.
Parameter profileVersion :
The version number to retrieve. Specify 0 to retrieve the DRAFT version.
If you omit this parameter, the service returns the latest published
version.
Implementation
Future<GetDataTransformationProfileResponse> getDataTransformationProfile({
required String profileId,
int? profileVersion,
}) async {
_s.validateNumRange(
'profileVersion',
profileVersion,
0,
99,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.GetDataTransformationProfile'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProfileId': profileId,
if (profileVersion != null) 'ProfileVersion': profileVersion,
},
hostPrefix: 'datatransformation.',
);
return GetDataTransformationProfileResponse.fromJson(jsonResponse.body);
}