listDataTransformationProfiles method
Lists 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.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter sourceFormat :
Filters the results by source data format.
Parameter maxResults :
The maximum number of profiles 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<ListDataTransformationProfilesResponse>
listDataTransformationProfiles({
required SourceFormat sourceFormat,
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.ListDataTransformationProfiles'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SourceFormat': sourceFormat.value,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
hostPrefix: 'datatransformation.',
);
return ListDataTransformationProfilesResponse.fromJson(jsonResponse.body);
}