Skip to content

update_vpc_ingress_connection

update_vpc_ingress_connection(
    vpc_ingress_connection_arn: AppRunnerResourceArn,
    ingress_vpc_configuration: IngressVpcConfiguration,
    *,
    config_overrides: Optional[AppRunnerClientConfig] = None,
) -> UpdateVpcIngressConnectionResponse

Update an existing App Runner VPC Ingress Connection resource. The VPC Ingress Connection must be in one of the following states to be updated:

  • AVAILABLE

  • FAILED_CREATION

  • FAILED_UPDATE

Parameters:

  • vpc_ingress_connection_arn (AppRunnerResourceArn) –

    The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.

  • ingress_vpc_configuration (IngressVpcConfiguration) –

    Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that are used to update the VPC Ingress Connection resource.

Raises:

Source code in docs_src/capo_apprunner/_services/app_runner.py
def update_vpc_ingress_connection(
    self,
    vpc_ingress_connection_arn: "capo_apprunner.types.app_runner_resource_arn.AppRunnerResourceArn",
    ingress_vpc_configuration: "capo_apprunner.types.ingress_vpc_configuration.IngressVpcConfiguration",
    *,
    config_overrides: Optional[AppRunnerClientConfig] = None,
) -> "capo_apprunner.types.update_vpc_ingress_connection_response.UpdateVpcIngressConnectionResponse":
    """<p>Update an existing App Runner VPC Ingress Connection resource. The VPC Ingress Connection must be in one of the following states to be updated:</p> <ul> <li> <p> AVAILABLE </p> </li> <li> <p> FAILED_CREATION </p> </li> <li> <p> FAILED_UPDATE </p> </li> </ul>

    Args:
        vpc_ingress_connection_arn: <p>The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.</p>
        ingress_vpc_configuration: <p>Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that are used to update the VPC Ingress Connection resource.</p>

    Raises:
        capo_apprunner.errors.internal_service_error_exception.InternalServiceErrorException: <p>An unexpected service exception occurred.</p>
        capo_apprunner.errors.invalid_request_exception.InvalidRequestException: <p>One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.</p>
        capo_apprunner.errors.invalid_state_exception.InvalidStateException: <p>You can't perform this action when the resource is in its current state.</p>
        capo_apprunner.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.</p>
        capo_apprunner.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_apprunner.types.update_vpc_ingress_connection_request.UpdateVpcIngressConnectionRequest]",
    ) -> OperationResponse[
        "capo_apprunner.types.update_vpc_ingress_connection_response.UpdateVpcIngressConnectionResponse"
    ]:
        import capo_apprunner._operations.app_runner.update_vpc_ingress_connection

        output, http_response = (
            capo_apprunner._operations.app_runner.update_vpc_ingress_connection.update_vpc_ingress_connection(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateVpcIngressConnection")
    )
    input_: capo_apprunner.types.update_vpc_ingress_connection_request.UpdateVpcIngressConnectionRequest = {
        "vpc_ingress_connection_arn": vpc_ingress_connection_arn,
        "ingress_vpc_configuration": ingress_vpc_configuration,
    }

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