putUsers method
Adds one or more users to a Users dataset. For more information see importing-users.
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter datasetArn
:
The Amazon Resource Number (ARN) of the Users dataset you are adding the
user or users to.
Parameter users
:
A list of user data.
Implementation
Future<void> putUsers({
required String datasetArn,
required List<User> users,
}) async {
ArgumentError.checkNotNull(datasetArn, 'datasetArn');
_s.validateStringLength(
'datasetArn',
datasetArn,
0,
256,
isRequired: true,
);
ArgumentError.checkNotNull(users, 'users');
final $payload = <String, dynamic>{
'datasetArn': datasetArn,
'users': users,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/users',
exceptionFnMap: _exceptionFns,
);
}