Skip to content

update_proxy_network_configuration

update_proxy_network_configuration(
    proxy_identifier: ProxyIdentifier,
    vpc_configuration: UpdateProxyVpcConfiguration,
    *,
    config_overrides: Optional[ELBProxyClientConfig] = None,
) -> UpdateProxyNetworkConfigurationResponse

Updates the network configuration for the specified proxy.

Parameters:

Raises:

Examples:

To update the network configuration for a proxy The following example replaces the security groups for the specified proxy. The subnets don't change.

>>> client.update_proxy_network_configuration(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', vpc_configuration={'securityGroups': [{'securityGroupId': 'sg-1a2b3c4d'}]})
Source code in docs_src/capo_elb_proxy/_services/elb_proxy.py
def update_proxy_network_configuration(
    self,
    proxy_identifier: "capo_elb_proxy.types.proxy_identifier.ProxyIdentifier",
    vpc_configuration: "capo_elb_proxy.types.update_proxy_vpc_configuration.UpdateProxyVpcConfiguration",
    *,
    config_overrides: Optional[ELBProxyClientConfig] = None,
) -> "capo_elb_proxy.types.update_proxy_network_configuration_response.UpdateProxyNetworkConfigurationResponse":
    """Updates the network configuration for the specified proxy.

    Args:
        proxy_identifier: The Amazon Resource Name (ARN) of the proxy.
        vpc_configuration: The updated VPC configuration for 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.access_denied_exception.AccessDeniedException: The user does not have sufficient access to perform this action.
        capo_elb_proxy.errors.resource_not_found_exception.ResourceNotFoundException: The request references a resource that does not exist.
        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 update the network configuration for a proxy
        The following example replaces the security groups for the specified proxy. The subnets don't change.

        >>> client.update_proxy_network_configuration(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef', vpc_configuration={'securityGroups': [{'securityGroupId': 'sg-1a2b3c4d'}]})
    """

    def _handler(
        req: "OperationRequest[capo_elb_proxy.types.update_proxy_network_configuration_request.UpdateProxyNetworkConfigurationRequest]",
    ) -> OperationResponse[
        "capo_elb_proxy.types.update_proxy_network_configuration_response.UpdateProxyNetworkConfigurationResponse"
    ]:
        import capo_elb_proxy._operations.elb_proxy.update_proxy_network_configuration

        output, http_response = (
            capo_elb_proxy._operations.elb_proxy.update_proxy_network_configuration.update_proxy_network_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateProxyNetworkConfiguration")
    )
    input_: capo_elb_proxy.types.update_proxy_network_configuration_request.UpdateProxyNetworkConfigurationRequest = {
        "proxy_identifier": proxy_identifier,
        "vpc_configuration": vpc_configuration,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output