libZSservicesZSamazonka-workmailZSamazonka-workmail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkMail.CreateUser

Description

Creates a user who can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.

Synopsis

Creating a Request

data CreateUser Source #

See: newCreateUser smart constructor.

Constructors

CreateUser' 

Fields

  • organizationId :: Text

    The identifier of the organization for which the user is created.

  • name :: Text

    The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.

  • displayName :: Text

    The display name for the new user.

  • password :: Sensitive Text

    The password for the new user.

Instances

Instances details
Eq CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Show CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Generic CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Associated Types

type Rep CreateUser :: Type -> Type #

NFData CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Methods

rnf :: CreateUser -> () #

Hashable CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

ToJSON CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

AWSRequest CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Associated Types

type AWSResponse CreateUser #

ToHeaders CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Methods

toHeaders :: CreateUser -> [Header] #

ToPath CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

ToQuery CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

type Rep CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

type Rep CreateUser = D1 ('MetaData "CreateUser" "Amazonka.WorkMail.CreateUser" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "CreateUser'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))
type AWSResponse CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

newCreateUser Source #

Create a value of CreateUser with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:organizationId:CreateUser', createUser_organizationId - The identifier of the organization for which the user is created.

$sel:name:CreateUser', createUser_name - The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.

$sel:displayName:CreateUser', createUser_displayName - The display name for the new user.

$sel:password:CreateUser', createUser_password - The password for the new user.

Request Lenses

createUser_organizationId :: Lens' CreateUser Text Source #

The identifier of the organization for which the user is created.

createUser_name :: Lens' CreateUser Text Source #

The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.

createUser_displayName :: Lens' CreateUser Text Source #

The display name for the new user.

createUser_password :: Lens' CreateUser Text Source #

The password for the new user.

Destructuring the Response

data CreateUserResponse Source #

See: newCreateUserResponse smart constructor.

Constructors

CreateUserResponse' 

Fields

Instances

Instances details
Eq CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Read CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Show CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Generic CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Associated Types

type Rep CreateUserResponse :: Type -> Type #

NFData CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Methods

rnf :: CreateUserResponse -> () #

type Rep CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

type Rep CreateUserResponse = D1 ('MetaData "CreateUserResponse" "Amazonka.WorkMail.CreateUser" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "CreateUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateUserResponse Source #

Create a value of CreateUserResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:userId:CreateUserResponse', createUserResponse_userId - The identifier for the new user.

$sel:httpStatus:CreateUserResponse', createUserResponse_httpStatus - The response's http status code.

Response Lenses

createUserResponse_userId :: Lens' CreateUserResponse (Maybe Text) Source #

The identifier for the new user.