This operation lists a data set's revisions sorted by CreatedAt in descending order.
Parameters:
-
data_set_id
(Id)
–
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.
Raises:
Source code in docs_src/capo_dataexchange/_services/data_exchange.py
| def list_data_set_revisions(
self,
data_set_id: "capo_dataexchange.types.id.Id",
*,
config_overrides: Optional[DataExchangeClientConfig] = None,
max_results: Optional["capo_dataexchange.types.max_results.MaxResults"] = None,
next_token: Optional["capo_dataexchange.types.__string.__string"] = None,
) -> "capo_dataexchange.types.list_data_set_revisions_response.ListDataSetRevisionsResponse":
"""<p>This operation lists a data set's revisions 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>
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.
"""
def _handler(
req: "OperationRequest[capo_dataexchange.types.list_data_set_revisions_request.ListDataSetRevisionsRequest]",
) -> OperationResponse[
"capo_dataexchange.types.list_data_set_revisions_response.ListDataSetRevisionsResponse"
]:
import capo_dataexchange._operations.data_exchange.list_data_set_revisions
output, http_response = (
capo_dataexchange._operations.data_exchange.list_data_set_revisions.list_data_set_revisions(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListDataSetRevisions")
)
input_: capo_dataexchange.types.list_data_set_revisions_request.ListDataSetRevisionsRequest = {
"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
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|