updateProfile method

Future<UpdateProfileOutput> updateProfile({
  1. required String profileArn,
  2. String? profileDescription,
  3. List<ProfileQuestionUpdate>? profileQuestions,
})

Update a profile.

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

Parameter profileArn : The profile ARN.

Parameter profileDescription : The profile description.

Parameter profileQuestions : Profile questions.

Implementation

Future<UpdateProfileOutput> updateProfile({
  required String profileArn,
  String? profileDescription,
  List<ProfileQuestionUpdate>? profileQuestions,
}) async {
  final $payload = <String, dynamic>{
    if (profileDescription != null) 'ProfileDescription': profileDescription,
    if (profileQuestions != null) 'ProfileQuestions': profileQuestions,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/profiles/${Uri.encodeComponent(profileArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateProfileOutput.fromJson(response);
}