Deletes a proxy.
Parameters:
-
proxy_identifier
(ProxyIdentifier)
–
The Amazon Resource Name (ARN) of the proxy.
Raises:
Examples:
To delete a proxy
The following example deletes the specified proxy. You must turn off deletion protection before you can delete a proxy.
>>> await client.delete_proxy(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef')
Source code in docs_src/capo_elb_proxy/_services/async_elb_proxy.py
| async def delete_proxy(
self,
proxy_identifier: "capo_elb_proxy.types.proxy_identifier.ProxyIdentifier",
*,
config_overrides: Optional[AsyncELBProxyClientConfig] = None,
) -> "capo_elb_proxy.types.delete_proxy_response.DeleteProxyResponse":
"""Deletes a proxy.
Args:
proxy_identifier: The Amazon Resource Name (ARN) of the proxy.
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.operation_not_permitted_exception.OperationNotPermittedException: The requested operation is not permitted.
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 delete a proxy
The following example deletes the specified proxy. You must turn off deletion protection before you can delete a proxy.
>>> await client.delete_proxy(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef')
"""
async def _handler(
req: "AsyncOperationRequest[capo_elb_proxy.types.delete_proxy_request.DeleteProxyRequest]",
) -> AsyncOperationResponse[
"capo_elb_proxy.types.delete_proxy_response.DeleteProxyResponse"
]:
import capo_elb_proxy._operations.elb_proxy.delete_proxy
(
output,
http_response,
) = await capo_elb_proxy._operations.elb_proxy.delete_proxy.async_delete_proxy(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteProxy")
)
input_: capo_elb_proxy.types.delete_proxy_request.DeleteProxyRequest = {
"proxy_identifier": proxy_identifier
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|