Deprecated. Use DescribeVpnGateways instead. See DescribeVPNGateways in the Amazon Elastic Compute Cloud API Reference.
Lists the virtual private gateways owned by the Amazon Web Services account.
You can create one or more Direct Connect private virtual interfaces linked to a virtual private gateway.
Raises:
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
| async def describe_virtual_gateways(
self, *, config_overrides: Optional[AsyncDirectConnectClientConfig] = None
) -> "capo_direct_connect.types.virtual_gateways.VirtualGateways":
"""<note> <p>Deprecated. Use <code>DescribeVpnGateways</code> instead. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpnGateways.html">DescribeVPNGateways</a> in the <i>Amazon Elastic Compute Cloud API Reference</i>.</p> </note> <p>Lists the virtual private gateways owned by the Amazon Web Services account.</p> <p>You can create one or more Direct Connect private virtual interfaces linked to a virtual private gateway.</p>
Raises:
capo_direct_connect.errors.direct_connect_client_exception.DirectConnectClientException: <p>One or more parameters are not valid.</p>
capo_direct_connect.errors.direct_connect_server_exception.DirectConnectServerException: <p>A server-side error occurred.</p>
capo_direct_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_direct_connect.types.virtual_gateways.VirtualGateways"
]:
import capo_direct_connect._operations.overture_service.describe_virtual_gateways
(
output,
http_response,
) = await capo_direct_connect._operations.overture_service.describe_virtual_gateways.async_describe_virtual_gateways(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeVirtualGateways")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|