updateGateway method
Updates a gateway's name.
May throw ConflictingOperationException.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter gatewayId :
The ID of the gateway to update.
Parameter gatewayName :
A unique name for the gateway.
Implementation
Future<void> updateGateway({
required String gatewayId,
required String gatewayName,
}) async {
final $payload = <String, dynamic>{
'gatewayName': gatewayName,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/20200301/gateways/${Uri.encodeComponent(gatewayId)}',
hostPrefix: 'api.',
exceptionFnMap: _exceptionFns,
);
}