AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.CognitoIdentityProvider.Model.AdminCreateUserResponse

Namespace: Amazon.CognitoIdentityProvider.Model
Assembly: AWSSDK.CognitoIdentityProvider.dll
Version: 3.x.y.z

Syntax

C#
public class AdminCreateUserResponse : AmazonWebServiceResponse

The AdminCreateUserResponse type exposes the following members

Constructors

NameDescription
Public Method AdminCreateUserResponse()

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property User Amazon.CognitoIdentityProvider.Model.UserType

Gets and sets the property User.

The newly created user.

Examples

This request submits a value for all possible parameters for AdminCreateUser.

An AdminCreateUser request for for a test user named John.


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;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5