This operation returns information about all received data grants.
Parameters:
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to be included in the next page.
-
next_token
(Optional[__string], default:
None
)
–
The pagination token used to retrieve the next page of results for this operation.
-
acceptance_state
(Optional[AcceptanceStateFilterValues], default:
None
)
–
The acceptance state of the data grants to list.
Raises:
Source code in docs_src/capo_dataexchange/_services/async_data_exchange.py
| async def list_received_data_grants(
self,
*,
config_overrides: Optional[AsyncDataExchangeClientConfig] = None,
max_results: Optional["capo_dataexchange.types.max_results.MaxResults"] = None,
next_token: Optional["capo_dataexchange.types.__string.__string"] = None,
acceptance_state: Optional[
"capo_dataexchange.types.acceptance_state_filter_values.AcceptanceStateFilterValues"
] = None,
) -> "capo_dataexchange.types.list_received_data_grants_response.ListReceivedDataGrantsResponse":
"""<p>This operation returns information about all received data grants.</p>
Args:
max_results: <p>The maximum number of results to be included in the next page.</p>
next_token: <p>The pagination token used to retrieve the next page of results for this operation.</p>
acceptance_state: <p>The acceptance state of the data grants to list.</p>
Raises:
capo_dataexchange.errors.access_denied_exception.AccessDeniedException: <p>Access to the resource is denied.</p>
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_received_data_grants_request.ListReceivedDataGrantsRequest]",
) -> AsyncOperationResponse[
"capo_dataexchange.types.list_received_data_grants_response.ListReceivedDataGrantsResponse"
]:
import capo_dataexchange._operations.data_exchange.list_received_data_grants
(
output,
http_response,
) = await capo_dataexchange._operations.data_exchange.list_received_data_grants.async_list_received_data_grants(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListReceivedDataGrants")
)
input_: capo_dataexchange.types.list_received_data_grants_request.ListReceivedDataGrantsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
if acceptance_state is not None:
input_["acceptance_state"] = acceptance_state
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|