Lists all data export definitions.
Parameters:
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of objects that are returned for the request.
-
next_token
(Optional[NextPageToken], default:
None
)
–
The token to retrieve the next set of results.
Raises:
Source code in docs_src/capo_bcm_data_exports/_services/async_bcm_data_exports.py
| async def list_exports(
self,
*,
config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
max_results: Optional[
"capo_bcm_data_exports.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_bcm_data_exports.types.next_page_token.NextPageToken"
] = None,
) -> "capo_bcm_data_exports.types.list_exports_response.ListExportsResponse":
"""<p>Lists all data export definitions.</p>
Args:
max_results: <p>The maximum number of objects that are returned for the request.</p>
next_token: <p>The token to retrieve the next set of results.</p>
Raises:
capo_bcm_data_exports.errors.internal_server_exception.InternalServerException: <p>An error on the server occurred during the processing of your request. Try again later.</p>
capo_bcm_data_exports.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_bcm_data_exports.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_bcm_data_exports.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_bcm_data_exports.types.list_exports_request.ListExportsRequest]",
) -> AsyncOperationResponse[
"capo_bcm_data_exports.types.list_exports_response.ListExportsResponse"
]:
import capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.list_exports
(
output,
http_response,
) = await capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.list_exports.async_list_exports(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListExports")
)
input_: capo_bcm_data_exports.types.list_exports_request.ListExportsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|