Skip to content

delete_proxy

delete_proxy(
    proxy_identifier: ProxyIdentifier,
    *,
    config_overrides: Optional[ELBProxyClientConfig] = None,
) -> DeleteProxyResponse

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.

>>> 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/elb_proxy.py
def delete_proxy(
    self,
    proxy_identifier: "capo_elb_proxy.types.proxy_identifier.ProxyIdentifier",
    *,
    config_overrides: Optional[ELBProxyClientConfig] = 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.

        >>> client.delete_proxy(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef')
    """

    def _handler(
        req: "OperationRequest[capo_elb_proxy.types.delete_proxy_request.DeleteProxyRequest]",
    ) -> OperationResponse[
        "capo_elb_proxy.types.delete_proxy_response.DeleteProxyResponse"
    ]:
        import capo_elb_proxy._operations.elb_proxy.delete_proxy

        output, http_response = (
            capo_elb_proxy._operations.elb_proxy.delete_proxy.delete_proxy(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output