updateDataTransformationProfile method
Updates the DRAFT version (version 0) of a data transformation profile with new profile content. The update replaces all existing DRAFT content.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter profileId :
The unique identifier of the profile to update.
Parameter profileMapping :
The new profile content for the DRAFT version. This is a full replacement
of all profile files.
Parameter changeDescription :
A description of what changed in this update.
Implementation
Future<UpdateDataTransformationProfileResponse>
updateDataTransformationProfile({
required String profileId,
required Map<String, String> profileMapping,
String? changeDescription,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.UpdateDataTransformationProfile'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProfileId': profileId,
'ProfileMapping': profileMapping,
if (changeDescription != null) 'ChangeDescription': changeDescription,
},
hostPrefix: 'datatransformation.',
);
return UpdateDataTransformationProfileResponse.fromJson(jsonResponse.body);
}