amazonka-workmail-2.0: Amazon WorkMail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkMail.CreateUser

Description

Creates a user who can be used in 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
ToJSON CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.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

AWSRequest CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Associated Types

type AWSResponse CreateUser #

Generic CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Associated Types

type Rep CreateUser :: Type -> Type #

Show CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

NFData CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Methods

rnf :: CreateUser -> () #

Eq CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Hashable CreateUser Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

type AWSResponse 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" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" '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)))))

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:

CreateUser, createUser_organizationId - The identifier of the organization for which the user is created.

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.

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
Generic CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Associated Types

type Rep CreateUserResponse :: Type -> Type #

Read CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Show CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

NFData CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

Methods

rnf :: CreateUserResponse -> () #

Eq CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

type Rep CreateUserResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateUser

type Rep CreateUserResponse = D1 ('MetaData "CreateUserResponse" "Amazonka.WorkMail.CreateUser" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" '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:

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.