private async void button4_Click(object sender, EventArgs e) { try { CognitoHelper helper = new CognitoHelper(); /*var req = new Amazon.CognitoIdentityProvider.Model.UpdateUserAttributesRequest(); * req.AccessToken = cognitoUser.SessionTokens.AccessToken; * var att1 = new Amazon.CognitoIdentityProvider.Model.AttributeType(); * var att2 = new Amazon.CognitoIdentityProvider.Model.AttributeType(); * att2.Name = "custom:test2"; * att1.Name = "custom:Attribut"; * att1.Value = textBox1.Text; * att2.Value = textBox2.Text; * req.UserAttributes.Add(att1); * req.UserAttributes.Add(att2); * var result = await helper.UpdateAttributes(req);*/ var bla = helper.getAttributes(cognitoUser).Result.UserAttributes; String ans = ""; foreach (var a in bla) { ans += a.Name + " : " + a.Value + Environment.NewLine; } MessageBox.Show(ans); } catch (Exception ex) { Console.WriteLine(ex); MessageBox.Show("Some kind of error"); } }