updateLinkModuleFlow method
Updates a link module flow.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter gatewayId :
The unique identifier of the gateway.
Parameter linkId :
The unique identifier of the link.
Parameter modules :
The configuration of a module.
Parameter clientToken :
The unique client token.
Implementation
Future<UpdateLinkModuleFlowResponse> updateLinkModuleFlow({
required String gatewayId,
required String linkId,
required List<ModuleConfiguration> modules,
String? clientToken,
}) async {
final $payload = <String, dynamic>{
'modules': modules,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/gateway/${Uri.encodeComponent(gatewayId)}/link/${Uri.encodeComponent(linkId)}/module-flow',
exceptionFnMap: _exceptionFns,
);
return UpdateLinkModuleFlowResponse.fromJson(response);
}