This operation lists your jobs sorted by CreatedAt in descending order.
Parameters:
-
data_set_id
(Optional[__string], default:
None
)
–
The unique identifier for a data set.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results returned by a single call.
-
next_token
(Optional[__string], default:
None
)
–
The token value retrieved from a previous call to access the next page of results.
-
revision_id
(Optional[__string], default:
None
)
–
The unique identifier for a revision.
Raises:
Source code in docs_src/capo_dataexchange/_services/async_data_exchange.py
| async def list_jobs(
self,
*,
config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
data_set_id: Optional["capo_dataexchange.types.__string.__string"] = None,
max_results: Optional["capo_dataexchange.types.max_results.MaxResults"] = None,
next_token: Optional["capo_dataexchange.types.__string.__string"] = None,
revision_id: Optional["capo_dataexchange.types.__string.__string"] = None,
) -> "capo_dataexchange.types.list_jobs_response.ListJobsResponse":
"""<p>This operation lists your jobs sorted by CreatedAt in descending order.</p>
Args:
data_set_id: <p>The unique identifier for a data set.</p>
max_results: <p>The maximum number of results returned by a single call.</p>
next_token: <p>The token value retrieved from a previous call to access the next page of results.</p>
revision_id: <p>The unique identifier for a revision.</p>
Raises:
capo_dataexchange.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
capo_dataexchange.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found.</p>
capo_dataexchange.errors.throttling_exception.ThrottlingException: <p>The limit on the number of requests per second was exceeded.</p>
capo_dataexchange.errors.validation_exception.ValidationException: <p>The request was invalid.</p>
capo_dataexchange.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_dataexchange.types.list_jobs_request.ListJobsRequest]",
) -> AsyncOperationResponse[
"capo_dataexchange.types.list_jobs_response.ListJobsResponse"
]:
import capo_dataexchange._operations.data_exchange.list_jobs
(
output,
http_response,
) = await capo_dataexchange._operations.data_exchange.list_jobs.async_list_jobs(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListJobs")
)
input_: capo_dataexchange.types.list_jobs_request.ListJobsRequest = {}
if data_set_id is not None:
input_["data_set_id"] = data_set_id
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
if revision_id is not None:
input_["revision_id"] = revision_id
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|