Lists the proxies owned by the caller account.
Parameters:
-
max_results
(Optional[int], default:
None
)
–
The maximum number of results to return.
-
next_token
(Optional[NextToken], default:
None
)
–
A pagination token for the next page of results.
Raises:
Examples:
To list your proxies
The following example lists the proxies owned by the calling account.
>>> client.list_proxies()
Source code in docs_src/capo_elb_proxy/_services/elb_proxy.py
| def list_proxies(
self,
*,
config_overrides: Optional[ELBProxyClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional["capo_elb_proxy.types.next_token.NextToken"] = None,
) -> "capo_elb_proxy.types.list_proxies_response.ListProxiesResponse":
"""Lists the proxies owned by the caller account.
Args:
max_results: The maximum number of results to return.
next_token: A pagination token for the next page of results.
Raises:
capo_elb_proxy.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
capo_elb_proxy.errors.throttling_exception.ThrottlingException: The limit on the number of requests per second was exceeded.
capo_elb_proxy.errors.validation_exception.ValidationException: The input does not satisfy the constraints specified by an AWS service.
capo_elb_proxy.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To list your proxies
The following example lists the proxies owned by the calling account.
>>> client.list_proxies()
"""
def _handler(
req: "OperationRequest[capo_elb_proxy.types.list_proxies_request.ListProxiesRequest]",
) -> OperationResponse[
"capo_elb_proxy.types.list_proxies_response.ListProxiesResponse"
]:
import capo_elb_proxy._operations.elb_proxy.list_proxies
output, http_response = (
capo_elb_proxy._operations.elb_proxy.list_proxies.list_proxies(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListProxies")
)
input_: capo_elb_proxy.types.list_proxies_request.ListProxiesRequest = {}
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
|