This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order.
Parameters:
-
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.
-
origin
(Optional[__string], default:
None
)
–
A property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers).
Raises:
Source code in docs_src/capo_dataexchange/_services/data_exchange.py
| def list_data_sets(
self,
*,
config_overrides: Optional[DataExchangeClientConfig] = None,
max_results: Optional["capo_dataexchange.types.max_results.MaxResults"] = None,
next_token: Optional["capo_dataexchange.types.__string.__string"] = None,
origin: Optional["capo_dataexchange.types.__string.__string"] = None,
) -> "capo_dataexchange.types.list_data_sets_response.ListDataSetsResponse":
"""<p>This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order.</p>
Args:
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>
origin: <p>A property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers).</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_sets_request.ListDataSetsRequest]",
) -> OperationResponse[
"capo_dataexchange.types.list_data_sets_response.ListDataSetsResponse"
]:
import capo_dataexchange._operations.data_exchange.list_data_sets
output, http_response = (
capo_dataexchange._operations.data_exchange.list_data_sets.list_data_sets(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListDataSets")
)
input_: capo_dataexchange.types.list_data_sets_request.ListDataSetsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
if origin is not None:
input_["origin"] = origin
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|