Skip to content

list_edge_packaging_jobs

list_edge_packaging_jobs(
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[ListMaxResults] = None,
    creation_time_after: Optional[Timestamp] = None,
    creation_time_before: Optional[Timestamp] = None,
    last_modified_time_after: Optional[Timestamp] = None,
    last_modified_time_before: Optional[Timestamp] = None,
    name_contains: Optional[NameContains] = None,
    model_name_contains: Optional[NameContains] = None,
    status_equals: Optional[EdgePackagingJobStatus] = None,
    sort_by: Optional[ListEdgePackagingJobsSortBy] = None,
    sort_order: Optional[SortOrder] = None,
) -> ListEdgePackagingJobsResponse

Returns a list of edge packaging jobs.

Parameters:

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

    The response from the last list when returning a list large enough to need tokening.

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

    Maximum number of results to select.

  • creation_time_after (Optional[Timestamp], default: None ) –

    Select jobs where the job was created after specified time.

  • creation_time_before (Optional[Timestamp], default: None ) –

    Select jobs where the job was created before specified time.

  • last_modified_time_after (Optional[Timestamp], default: None ) –

    Select jobs where the job was updated after specified time.

  • last_modified_time_before (Optional[Timestamp], default: None ) –

    Select jobs where the job was updated before specified time.

  • name_contains (Optional[NameContains], default: None ) –

    Filter for jobs containing this name in their packaging job name.

  • model_name_contains (Optional[NameContains], default: None ) –

    Filter for jobs where the model name contains this string.

  • status_equals (Optional[EdgePackagingJobStatus], default: None ) –

    The job status to filter for.

  • sort_by (Optional[ListEdgePackagingJobsSortBy], default: None ) –

    Use to specify what column to sort by.

  • sort_order (Optional[SortOrder], default: None ) –

    What direction to sort by.

Raises:

Source code in docs_src/capo_sagemaker/_services/sage_maker.py
def list_edge_packaging_jobs(
    self,
    *,
    config_overrides: Optional[SageMakerClientConfig] = None,
    next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_sagemaker.types.list_max_results.ListMaxResults"
    ] = None,
    creation_time_after: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    creation_time_before: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    last_modified_time_after: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    last_modified_time_before: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    name_contains: Optional[
        "capo_sagemaker.types.name_contains.NameContains"
    ] = None,
    model_name_contains: Optional[
        "capo_sagemaker.types.name_contains.NameContains"
    ] = None,
    status_equals: Optional[
        "capo_sagemaker.types.edge_packaging_job_status.EdgePackagingJobStatus"
    ] = None,
    sort_by: Optional[
        "capo_sagemaker.types.list_edge_packaging_jobs_sort_by.ListEdgePackagingJobsSortBy"
    ] = None,
    sort_order: Optional["capo_sagemaker.types.sort_order.SortOrder"] = None,
) -> "capo_sagemaker.types.list_edge_packaging_jobs_response.ListEdgePackagingJobsResponse":
    """<p>Returns a list of edge packaging jobs.</p>

    Args:
        next_token: <p>The response from the last list when returning a list large enough to need tokening.</p>
        max_results: <p>Maximum number of results to select.</p>
        creation_time_after: <p>Select jobs where the job was created after specified time.</p>
        creation_time_before: <p>Select jobs where the job was created before specified time.</p>
        last_modified_time_after: <p>Select jobs where the job was updated after specified time.</p>
        last_modified_time_before: <p>Select jobs where the job was updated before specified time.</p>
        name_contains: <p>Filter for jobs containing this name in their packaging job name.</p>
        model_name_contains: <p>Filter for jobs where the model name contains this string.</p>
        status_equals: <p>The job status to filter for.</p>
        sort_by: <p>Use to specify what column to sort by.</p>
        sort_order: <p>What direction to sort by.</p>

    Raises:
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker.types.list_edge_packaging_jobs_request.ListEdgePackagingJobsRequest]",
    ) -> OperationResponse[
        "capo_sagemaker.types.list_edge_packaging_jobs_response.ListEdgePackagingJobsResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.list_edge_packaging_jobs

        output, http_response = (
            capo_sagemaker._operations.sage_maker.list_edge_packaging_jobs.list_edge_packaging_jobs(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListEdgePackagingJobs")
    )
    input_: capo_sagemaker.types.list_edge_packaging_jobs_request.ListEdgePackagingJobsRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if creation_time_after is not None:
        input_["creation_time_after"] = creation_time_after
    if creation_time_before is not None:
        input_["creation_time_before"] = creation_time_before
    if last_modified_time_after is not None:
        input_["last_modified_time_after"] = last_modified_time_after
    if last_modified_time_before is not None:
        input_["last_modified_time_before"] = last_modified_time_before
    if name_contains is not None:
        input_["name_contains"] = name_contains
    if model_name_contains is not None:
        input_["model_name_contains"] = model_name_contains
    if status_equals is not None:
        input_["status_equals"] = status_equals
    if sort_by is not None:
        input_["sort_by"] = sort_by
    if sort_order is not None:
        input_["sort_order"] = sort_order

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output