Returns a list of kdb environments created in an account.
Parameters:
-
next_token
(Optional[PaginationToken], default:
None
)
–
A token that indicates where a results page should begin.
-
max_results
(Optional[BoxedInteger], default:
None
)
–
The maximum number of results to return in this request.
Raises:
Source code in docs_src/capo_finspace/_services/async_finspace.py
| async def list_kx_environments(
self,
*,
config_overrides: Optional[AsyncfinspaceClientConfig] = None,
next_token: Optional[
"capo_finspace.types.pagination_token.PaginationToken"
] = None,
max_results: Optional["capo_finspace.types.boxed_integer.BoxedInteger"] = None,
) -> "capo_finspace.types.list_kx_environments_response.ListKxEnvironmentsResponse":
"""<p>Returns a list of kdb environments created in an account.</p>
Args:
next_token: <p>A token that indicates where a results page should begin.</p>
max_results: <p>The maximum number of results to return in this request.</p>
Raises:
capo_finspace.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_finspace.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_finspace.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
capo_finspace.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_finspace.types.list_kx_environments_request.ListKxEnvironmentsRequest]",
) -> AsyncOperationResponse[
"capo_finspace.types.list_kx_environments_response.ListKxEnvironmentsResponse"
]:
import capo_finspace._operations.aws_habanero_management_service.list_kx_environments
(
output,
http_response,
) = await capo_finspace._operations.aws_habanero_management_service.list_kx_environments.async_list_kx_environments(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListKxEnvironments")
)
input_: capo_finspace.types.list_kx_environments_request.ListKxEnvironmentsRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|