Skip to content

list_data_transformation_profile_versions async

list_data_transformation_profile_versions(
    profile_id: ProfileIdString,
    *,
    config_overrides: Optional[AsyncHealthLakeClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[DataTransformationNextToken] = None,
) -> ListDataTransformationProfileVersionsResponse

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.

Parameters:

  • profile_id (ProfileIdString) –

    The unique identifier of the profile whose versions to list.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of profile versions 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_profile_versions(
    self,
    profile_id: "capo_healthlake.types.profile_id_string.ProfileIdString",
    *,
    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_profile_versions_response.ListDataTransformationProfileVersionsResponse":
    """<p>Lists all versions of a specific data transformation profile (DRAFT and published), in reverse chronological order (newest first). Use <code>GetDataTransformationProfile</code> to retrieve profile content. Results are paginated. Use the <code>NextToken</code> parameter to retrieve additional results.</p>

    Args:
        profile_id: <p>The unique identifier of the profile whose versions to list.</p>
        max_results: <p>The maximum number of profile versions 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.resource_not_found_exception.ResourceNotFoundException: <p>The requested data store was not found.</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_profile_versions_request.ListDataTransformationProfileVersionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_healthlake.types.list_data_transformation_profile_versions_response.ListDataTransformationProfileVersionsResponse"
    ]:
        import capo_healthlake._operations.health_lake.list_data_transformation_profile_versions

        (
            output,
            http_response,
        ) = await capo_healthlake._operations.health_lake.list_data_transformation_profile_versions.async_list_data_transformation_profile_versions(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDataTransformationProfileVersions")
    )
    input_: capo_healthlake.types.list_data_transformation_profile_versions_request.ListDataTransformationProfileVersionsRequest = {
        "profile_id": profile_id
    }
    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