updateFlow method
Future<UpdateFlowResponse>
updateFlow({
- required String flowArn,
- UpdateFailoverConfig? sourceFailoverConfig,
Updates flow
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.
Parameter flowArn
:
The flow that you want to update.
Implementation
Future<UpdateFlowResponse> updateFlow({
required String flowArn,
UpdateFailoverConfig? sourceFailoverConfig,
}) async {
ArgumentError.checkNotNull(flowArn, 'flowArn');
final $payload = <String, dynamic>{
if (sourceFailoverConfig != null)
'sourceFailoverConfig': sourceFailoverConfig,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/v1/flows/${Uri.encodeComponent(flowArn)}',
exceptionFnMap: _exceptionFns,
);
return UpdateFlowResponse.fromJson(response);
}