describe_virtual_interfaces
async
¶
describe_virtual_interfaces(
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
connection_id: Optional[ConnectionId] = None,
virtual_interface_id: Optional[VirtualInterfaceId] = None,
max_results: Optional[MaxResultSetSize] = None,
next_token: Optional[PaginationToken] = None,
) -> VirtualInterfaces
Displays all virtual interfaces for an Amazon Web Services account. Virtual interfaces deleted fewer than 15 minutes before you make the request are also returned. If you specify a connection ID, only the virtual interfaces associated with the connection are returned. If you specify a virtual interface ID, then only a single virtual interface is returned.
A virtual interface (VLAN) transmits the traffic between the Direct Connect location and the customer network.
-
If you're using an
asn, the response includes the ASN value in both theasnandasnLongfields. -
If you're using
asnLong, the response returns a value of0(zero) for theasnattribute because it exceeds the highest ASN value of 2,147,483,647 that it can support
Parameters:
-
connection_id(Optional[ConnectionId], default:None) –The ID of the connection.
-
virtual_interface_id(Optional[VirtualInterfaceId], default:None) –The ID of the virtual interface.
-
max_results(Optional[MaxResultSetSize], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.If
MaxResultsis given a value larger than 100, only 100 results are returned. -
next_token(Optional[PaginationToken], default:None) –The token for the next page of results.
Raises:
-
DirectConnectClientException–One or more parameters are not valid.
-
DirectConnectServerException–A server-side error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 | |