updateUserIdentityInfo method
Future<void>
updateUserIdentityInfo({
- required UserIdentityInfo identityInfo,
- required String instanceId,
- required String userId,
Updates the identity information for the specified user.
May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.
Parameter identityInfo
:
The identity information for the user.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Parameter userId
:
The identifier of the user account.
Implementation
Future<void> updateUserIdentityInfo({
required UserIdentityInfo identityInfo,
required String instanceId,
required String userId,
}) async {
ArgumentError.checkNotNull(identityInfo, 'identityInfo');
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
ArgumentError.checkNotNull(userId, 'userId');
final $payload = <String, dynamic>{
'IdentityInfo': identityInfo,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/users/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(userId)}/identity-info',
exceptionFnMap: _exceptionFns,
);
}