updateGlobalNetwork method
Updates an existing global network. To remove information for any of the parameters, specify an empty string.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter globalNetworkId :
The ID of your global network.
Parameter description :
A description of the global network.
Constraints: Maximum length of 256 characters.
Implementation
Future<UpdateGlobalNetworkResponse> updateGlobalNetwork({
required String globalNetworkId,
String? description,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/global-networks/${Uri.encodeComponent(globalNetworkId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateGlobalNetworkResponse.fromJson(response);
}