Skip to content

list_vpc_ingress_connections async

list_vpc_ingress_connections(
    *,
    config_overrides: Optional[AsyncAppRunnerClientConfig] = None,
    filter: Optional[ListVpcIngressConnectionsFilter] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListVpcIngressConnectionsResponse

Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account.

Parameters:

  • filter (Optional[ListVpcIngressConnectionsFilter], default: None ) –

    The VPC Ingress Connections to be listed based on either the Service Arn or Vpc Endpoint Id, or both.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to include in each response (result page). It's used for a paginated request.

    If you don't specify MaxResults, the request retrieves all available results in a single response.

  • next_token (Optional[NextToken], default: None ) –

    A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.

    If you don't specify NextToken, the request retrieves the first result page.

Raises:

Source code in docs_src/capo_apprunner/_services/async_app_runner.py
async def list_vpc_ingress_connections(
    self,
    *,
    config_overrides: Optional[AsyncAppRunnerClientConfig] = None,
    filter: Optional[
        "capo_apprunner.types.list_vpc_ingress_connections_filter.ListVpcIngressConnectionsFilter"
    ] = None,
    max_results: Optional["capo_apprunner.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_apprunner.types.next_token.NextToken"] = None,
) -> "capo_apprunner.types.list_vpc_ingress_connections_response.ListVpcIngressConnectionsResponse":
    """<p>Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account.</p>

    Args:
        filter: <p>The VPC Ingress Connections to be listed based on either the Service Arn or Vpc Endpoint Id, or both.</p>
        max_results: <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
        next_token: <p>A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</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.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_apprunner.types.list_vpc_ingress_connections_request.ListVpcIngressConnectionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_apprunner.types.list_vpc_ingress_connections_response.ListVpcIngressConnectionsResponse"
    ]:
        import capo_apprunner._operations.app_runner.list_vpc_ingress_connections

        (
            output,
            http_response,
        ) = await capo_apprunner._operations.app_runner.list_vpc_ingress_connections.async_list_vpc_ingress_connections(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListVpcIngressConnections")
    )
    input_: capo_apprunner.types.list_vpc_ingress_connections_request.ListVpcIngressConnectionsRequest = {}
    if filter is not None:
        input_["filter"] = filter
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output