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.
Parameters:
-
source_format
(SourceFormat)
–
Filters the results by source data format.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of profiles to return per page. If you don't specify a value, the service returns up to 100 results.
-
next_token
(Optional[DataTransformationNextToken], default:
None
)
–
The pagination token from a previous response. Pass this value to retrieve the next page of results.
Raises:
Source code in docs_src/capo_healthlake/_services/async_health_lake.py
| async def list_data_transformation_profiles(
self,
source_format: "capo_healthlake.types.source_format.SourceFormat",
*,
config_overrides: Optional[AsyncHealthLakeClientConfig] = None,
max_results: Optional["capo_healthlake.types.max_results.MaxResults"] = None,
next_token: Optional[
"capo_healthlake.types.data_transformation_next_token.DataTransformationNextToken"
] = None,
) -> "capo_healthlake.types.list_data_transformation_profiles_response.ListDataTransformationProfilesResponse":
"""<p>Lists all data transformation profiles in your account, returning the latest version summary for each. Use <code>GetDataTransformationProfile</code> to retrieve profile content. Results are paginated. Use the <code>NextToken</code> parameter to retrieve additional results.</p>
Args:
source_format: <p>Filters the results by source data format.</p>
max_results: <p>The maximum number of profiles to return per page. If you don't specify a value, the service returns up to 100 results.</p>
next_token: <p>The pagination token from a previous response. Pass this value to retrieve the next page of results.</p>
Raises:
capo_healthlake.errors.access_denied_exception.AccessDeniedException: <p>Access is denied. Your account is not authorized to perform this operation.</p>
capo_healthlake.errors.internal_server_exception.InternalServerException: <p>An unknown internal error occurred in the service.</p>
capo_healthlake.errors.throttling_exception.ThrottlingException: <p>The user has exceeded their maximum number of allowed calls to the given API. </p>
capo_healthlake.errors.validation_exception.ValidationException: <p>The user input parameter was invalid.</p>
capo_healthlake.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_healthlake.types.list_data_transformation_profiles_request.ListDataTransformationProfilesRequest]",
) -> AsyncOperationResponse[
"capo_healthlake.types.list_data_transformation_profiles_response.ListDataTransformationProfilesResponse"
]:
import capo_healthlake._operations.health_lake.list_data_transformation_profiles
(
output,
http_response,
) = await capo_healthlake._operations.health_lake.list_data_transformation_profiles.async_list_data_transformation_profiles(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListDataTransformationProfiles")
)
input_: capo_healthlake.types.list_data_transformation_profiles_request.ListDataTransformationProfilesRequest = {
"source_format": source_format
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|