AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Represents the response from the server to the request to create the user.
Namespace: Amazon.CognitoIdentityProvider.Model
Assembly: AWSSDK.CognitoIdentityProvider.dll
Version: 3.x.y.z
public class AdminCreateUserResponse : AmazonWebServiceResponse
The AdminCreateUserResponse type exposes the following members
| Name | Description | |
|---|---|---|
|
AdminCreateUserResponse() |
| Name | Type | Description | |
|---|---|---|---|
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
User | Amazon.CognitoIdentityProvider.Model.UserType |
Gets and sets the property User. The new user's profile details. |
This request submits a value for all possible parameters for AdminCreateUser.
var client = new AmazonCognitoIdentityProviderClient();
var response = client.AdminCreateUser(new AdminCreateUserRequest
{
DesiredDeliveryMediums = new List<string> {
"SMS"
},
MessageAction = "SUPPRESS",
TemporaryPassword = "This-is-my-test-99!",
UserAttributes = new List<AttributeType> {
new AttributeType {
Name = "name",
Value = "John"
},
new AttributeType {
Name = "phone_number",
Value = "+12065551212"
},
new AttributeType {
Name = "email",
Value = "testuser@example.com"
}
},
UserPoolId = "us-east-1_EXAMPLE",
Username = "testuser"
});
UserType user = response.User;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer