Skip to content

list_collaboration_trained_model_export_jobs async

list_collaboration_trained_model_export_jobs(
    collaboration_identifier: UUID,
    trained_model_arn: TrainedModelArn,
    *,
    config_overrides: Optional[AsyncCleanRoomsMLClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    trained_model_version_identifier: Optional[UUID] = None,
) -> ListCollaborationTrainedModelExportJobsResponse

Returns a list of the export jobs for a trained model in a collaboration.

Parameters:

  • next_token (Optional[NextToken], default: None ) –

    The token value retrieved from a previous call to access the next page of results.

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

    The maximum size of the results that is returned per call.

  • collaboration_identifier (UUID) –

    The collaboration ID of the collaboration that contains the trained model export jobs that you are interested in.

  • trained_model_arn (TrainedModelArn) –

    The Amazon Resource Name (ARN) of the trained model that was used to create the export jobs that you are interested in.

  • trained_model_version_identifier (Optional[UUID], default: None ) –

    The version identifier of the trained model to filter export jobs by. When specified, only export jobs for this specific version of the trained model are returned.

Raises:

Source code in docs_src/capo_cleanroomsml/_services/async_clean_rooms_ml.py
async def list_collaboration_trained_model_export_jobs(
    self,
    collaboration_identifier: "capo_cleanroomsml.types.uuid.UUID",
    trained_model_arn: "capo_cleanroomsml.types.trained_model_arn.TrainedModelArn",
    *,
    config_overrides: Optional[AsyncCleanRoomsMLClientConfig] = None,
    next_token: Optional["capo_cleanroomsml.types.next_token.NextToken"] = None,
    max_results: Optional["capo_cleanroomsml.types.max_results.MaxResults"] = None,
    trained_model_version_identifier: Optional[
        "capo_cleanroomsml.types.uuid.UUID"
    ] = None,
) -> "capo_cleanroomsml.types.list_collaboration_trained_model_export_jobs_response.ListCollaborationTrainedModelExportJobsResponse":
    """<p>Returns a list of the export jobs for a trained model in a collaboration.</p>

    Args:
        next_token: <p>The token value retrieved from a previous call to access the next page of results.</p>
        max_results: <p>The maximum size of the results that is returned per call.</p>
        collaboration_identifier: <p>The collaboration ID of the collaboration that contains the trained model export jobs that you are interested in.</p>
        trained_model_arn: <p>The Amazon Resource Name (ARN) of the trained model that was used to create the export jobs that you are interested in.</p>
        trained_model_version_identifier: <p>The version identifier of the trained model to filter export jobs by. When specified, only export jobs for this specific version of the trained model are returned.</p>

    Raises:
        capo_cleanroomsml.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_cleanroomsml.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_cleanroomsml.errors.validation_exception.ValidationException: <p>The request parameters for this request are incorrect.</p>
        capo_cleanroomsml.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cleanroomsml.types.list_collaboration_trained_model_export_jobs_request.ListCollaborationTrainedModelExportJobsRequest]",
    ) -> AsyncOperationResponse[
        "capo_cleanroomsml.types.list_collaboration_trained_model_export_jobs_response.ListCollaborationTrainedModelExportJobsResponse"
    ]:
        import capo_cleanroomsml._operations.aws_stark_control_service.list_collaboration_trained_model_export_jobs

        (
            output,
            http_response,
        ) = await capo_cleanroomsml._operations.aws_stark_control_service.list_collaboration_trained_model_export_jobs.async_list_collaboration_trained_model_export_jobs(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListCollaborationTrainedModelExportJobs"),
    )
    input_: capo_cleanroomsml.types.list_collaboration_trained_model_export_jobs_request.ListCollaborationTrainedModelExportJobsRequest = {
        "collaboration_identifier": collaboration_identifier,
        "trained_model_arn": trained_model_arn,
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if trained_model_version_identifier is not None:
        input_["trained_model_version_identifier"] = (
            trained_model_version_identifier
        )

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output