libZSservicesZSamazonka-memorydbZSamazonka-memorydb
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.MemoryDb.CreateUser

Description

Creates a MemoryDB user. For more information, see Authenticating users with Access Contol Lists (ACLs).

Synopsis

Creating a Request

data CreateUser Source #

See: newCreateUser smart constructor.

Constructors

CreateUser' 

Fields

  • tags :: Maybe [Tag]

    A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

  • userName :: Text

    The name of the user. This value must be unique as it also serves as the user identifier.

  • authenticationMode :: AuthenticationMode

    Denotes the user's authentication properties, such as whether it requires a password to authenticate.

  • accessString :: Text

    Access permissions string used for this user.

Instances

Instances details
Eq CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Read CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Show CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Generic CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Associated Types

type Rep CreateUser :: Type -> Type #

NFData CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Methods

rnf :: CreateUser -> () #

Hashable CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

ToJSON CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

AWSRequest CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Associated Types

type AWSResponse CreateUser #

ToHeaders CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Methods

toHeaders :: CreateUser -> [Header] #

ToPath CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

ToQuery CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

type Rep CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

type Rep CreateUser = D1 ('MetaData "CreateUser" "Amazonka.MemoryDb.CreateUser" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "CreateUser'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "authenticationMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AuthenticationMode) :*: S1 ('MetaSel ('Just "accessString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateUser Source # 
Instance details

Defined in Amazonka.MemoryDb.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:tags:CreateUser', createUser_tags - A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

$sel:userName:CreateUser', createUser_userName - The name of the user. This value must be unique as it also serves as the user identifier.

$sel:authenticationMode:CreateUser', createUser_authenticationMode - Denotes the user's authentication properties, such as whether it requires a password to authenticate.

$sel:accessString:CreateUser', createUser_accessString - Access permissions string used for this user.

Request Lenses

createUser_tags :: Lens' CreateUser (Maybe [Tag]) Source #

A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

createUser_userName :: Lens' CreateUser Text Source #

The name of the user. This value must be unique as it also serves as the user identifier.

createUser_authenticationMode :: Lens' CreateUser AuthenticationMode Source #

Denotes the user's authentication properties, such as whether it requires a password to authenticate.

createUser_accessString :: Lens' CreateUser Text Source #

Access permissions string used for this 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.MemoryDb.CreateUser

Read CreateUserResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Show CreateUserResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Generic CreateUserResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Associated Types

type Rep CreateUserResponse :: Type -> Type #

NFData CreateUserResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

Methods

rnf :: CreateUserResponse -> () #

type Rep CreateUserResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateUser

type Rep CreateUserResponse = D1 ('MetaData "CreateUserResponse" "Amazonka.MemoryDb.CreateUser" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "CreateUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe User)) :*: 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:user:CreateUserResponse', createUserResponse_user - The newly-created user.

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

Response Lenses