listDataTransformationProfileVersions method
Lists all versions of a specific data transformation profile (DRAFT and
published), in reverse chronological order (newest first). Use
GetDataTransformationProfile to retrieve profile content.
Results are paginated. Use the NextToken parameter to
retrieve additional results.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter profileId :
The unique identifier of the profile whose versions to list.
Parameter maxResults :
The maximum number of profile versions to return per page. If you don't
specify a value, the service returns up to 100 results.
Parameter nextToken :
The pagination token from a previous response. Pass this value to retrieve
the next page of results.
Implementation
Future<ListDataTransformationProfileVersionsResponse>
listDataTransformationProfileVersions({
required String profileId,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.ListDataTransformationProfileVersions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProfileId': profileId,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
hostPrefix: 'datatransformation.',
);
return ListDataTransformationProfileVersionsResponse.fromJson(
jsonResponse.body);
}