updateUserJourney method

Future<UpdateUserJourneyResponse> updateUserJourney({
  1. required String systemArn,
  2. required String userJourneyId,
  3. String? description,
  4. String? name,
  5. String? policyArn,
})

Updates an existing user journey.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter userJourneyId : The identifier of the user journey to update.

Implementation

Future<UpdateUserJourneyResponse> updateUserJourney({
  required String systemArn,
  required String userJourneyId,
  String? description,
  String? name,
  String? policyArn,
}) async {
  final $payload = <String, dynamic>{
    'systemArn': systemArn,
    'userJourneyId': userJourneyId,
    if (description != null) 'description': description,
    if (name != null) 'name': name,
    if (policyArn != null) 'policyArn': policyArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v2/update-user-journey',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateUserJourneyResponse.fromJson(response);
}