in src/Amazon.Extensions.CognitoAuthentication/CognitoUser.cs [774:790]
private DeleteUserAttributesRequest CreateDeleteUserAttributesRequest(IList<string> attributeNamesToDelete)
{
if (attributeNamesToDelete == null || attributeNamesToDelete.Count < 1)
{
throw new ArgumentNullException(nameof(attributeNamesToDelete), $"{nameof(attributeNamesToDelete)} cannot be null or empty.");
}
EnsureUserAuthenticated();
DeleteUserAttributesRequest deleteUserAttributesRequest = new DeleteUserAttributesRequest()
{
AccessToken = SessionTokens.AccessToken,
UserAttributeNames = new List<string>(attributeNamesToDelete)
};
return deleteUserAttributesRequest;
}