Skip to content

list_sync_jobs

list_sync_jobs(
    workspace_id: Id,
    *,
    config_overrides: Optional[IoTTwinMakerClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListSyncJobsResponse

List all SyncJobs.

Parameters:

  • workspace_id (Id) –

    The ID of the workspace that contains the sync job.

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

    The maximum number of results to return at one time. The default is 50.

    Valid Range: Minimum value of 0. Maximum value of 200.

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

    The string that specifies the next page of results.

Raises:

Source code in docs_src/capo_iottwinmaker/_services/io_t_twin_maker.py
def list_sync_jobs(
    self,
    workspace_id: "capo_iottwinmaker.types.id.Id",
    *,
    config_overrides: Optional[IoTTwinMakerClientConfig] = None,
    max_results: Optional["capo_iottwinmaker.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_iottwinmaker.types.next_token.NextToken"] = None,
) -> "capo_iottwinmaker.types.list_sync_jobs_response.ListSyncJobsResponse":
    """<p>List all SyncJobs.</p>

    Args:
        workspace_id: <p>The ID of the workspace that contains the sync job.</p>
        max_results: <p>The maximum number of results to return at one time. The default is 50.</p> <p>Valid Range: Minimum value of 0. Maximum value of 200.</p>
        next_token: <p>The string that specifies the next page of results.</p>

    Raises:
        capo_iottwinmaker.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p>
        capo_iottwinmaker.errors.internal_server_exception.InternalServerException: <p>An unexpected error has occurred.</p>
        capo_iottwinmaker.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The service quota was exceeded.</p>
        capo_iottwinmaker.errors.throttling_exception.ThrottlingException: <p>The rate exceeds the limit.</p>
        capo_iottwinmaker.errors.validation_exception.ValidationException: <p>Failed</p>
        capo_iottwinmaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iottwinmaker.types.list_sync_jobs_request.ListSyncJobsRequest]",
    ) -> OperationResponse[
        "capo_iottwinmaker.types.list_sync_jobs_response.ListSyncJobsResponse"
    ]:
        import capo_iottwinmaker._operations.aws_io_t_twin_maker.list_sync_jobs

        output, http_response = (
            capo_iottwinmaker._operations.aws_io_t_twin_maker.list_sync_jobs.list_sync_jobs(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSyncJobs")
    )
    input_: capo_iottwinmaker.types.list_sync_jobs_request.ListSyncJobsRequest = {
        "workspace_id": workspace_id
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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