Skip to content

describe_vpc_connector async

describe_vpc_connector(
    vpc_connector_arn: AppRunnerResourceArn,
    *,
    config_overrides: Optional[AsyncAppRunnerClientConfig] = None,
) -> DescribeVpcConnectorResponse

Return a description of an App Runner VPC connector resource.

Parameters:

  • vpc_connector_arn (AppRunnerResourceArn) –

    The Amazon Resource Name (ARN) of the App Runner VPC connector that you want a description for.

    The ARN must be a full VPC connector ARN.

Raises:

Source code in docs_src/capo_apprunner/_services/async_app_runner.py
async def describe_vpc_connector(
    self,
    vpc_connector_arn: "capo_apprunner.types.app_runner_resource_arn.AppRunnerResourceArn",
    *,
    config_overrides: Optional[AsyncAppRunnerClientConfig] = None,
) -> "capo_apprunner.types.describe_vpc_connector_response.DescribeVpcConnectorResponse":
    """<p>Return a description of an App Runner VPC connector resource.</p>

    Args:
        vpc_connector_arn: <p>The Amazon Resource Name (ARN) of the App Runner VPC connector that you want a description for.</p> <p>The ARN must be a full VPC connector ARN.</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.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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_apprunner.types.describe_vpc_connector_request.DescribeVpcConnectorRequest]",
    ) -> AsyncOperationResponse[
        "capo_apprunner.types.describe_vpc_connector_response.DescribeVpcConnectorResponse"
    ]:
        import capo_apprunner._operations.app_runner.describe_vpc_connector

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeVpcConnector")
    )
    input_: capo_apprunner.types.describe_vpc_connector_request.DescribeVpcConnectorRequest = {
        "vpc_connector_arn": vpc_connector_arn
    }

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