updateVirtualInterfaceAttributes method
Updates the specified attributes of the specified virtual private interface.
Setting the MTU of a virtual interface to 9001 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. To check whether your virtual q interface supports jumbo frames, call DescribeVirtualInterfaces.
May throw DirectConnectServerException. May throw DirectConnectClientException.
Parameter virtualInterfaceId
:
The ID of the virtual private interface.
Parameter mtu
:
The maximum transmission unit (MTU), in bytes. The supported values are
1500 and 9001. The default value is 1500.
Implementation
Future<VirtualInterface> updateVirtualInterfaceAttributes({
required String virtualInterfaceId,
int? mtu,
}) async {
ArgumentError.checkNotNull(virtualInterfaceId, 'virtualInterfaceId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OvertureService.UpdateVirtualInterfaceAttributes'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'virtualInterfaceId': virtualInterfaceId,
if (mtu != null) 'mtu': mtu,
},
);
return VirtualInterface.fromJson(jsonResponse.body);
}