updateDirectConnectGateway method
Updates the name of a current Direct Connect gateway.
May throw DirectConnectClientException.
May throw DirectConnectServerException.
Parameter directConnectGatewayId :
The ID of the Direct Connect gateway to update.
Parameter newDirectConnectGatewayName :
The new name for the Direct Connect gateway.
Implementation
Future<UpdateDirectConnectGatewayResponse> updateDirectConnectGateway({
required String directConnectGatewayId,
required String newDirectConnectGatewayName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OvertureService.UpdateDirectConnectGateway'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'directConnectGatewayId': directConnectGatewayId,
'newDirectConnectGatewayName': newDirectConnectGatewayName,
},
);
return UpdateDirectConnectGatewayResponse.fromJson(jsonResponse.body);
}