amazonka-mq-2.0: Amazon MQ 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.MQ.CreateUser

Description

Creates an ActiveMQ user.

Synopsis

Creating a Request

data CreateUser Source #

Creates a new ActiveMQ user.

See: newCreateUser smart constructor.

Constructors

CreateUser' 

Fields

  • consoleAccess :: Maybe Bool

    Enables access to the ActiveMQ Web Console for the ActiveMQ user.

  • groups :: Maybe [Text]

    The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

  • username :: Text

    The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

  • brokerId :: Text

    The unique ID that Amazon MQ generates for the broker.

  • password :: Text

    Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).

Instances

Instances details
ToJSON CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

ToHeaders CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

Methods

toHeaders :: CreateUser -> [Header] #

ToPath CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

ToQuery CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

AWSRequest CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

Associated Types

type AWSResponse CreateUser #

Generic CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

Associated Types

type Rep CreateUser :: Type -> Type #

Read CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

Show CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

NFData CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

Methods

rnf :: CreateUser -> () #

Eq CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

Hashable CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

type AWSResponse CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

type Rep CreateUser Source # 
Instance details

Defined in Amazonka.MQ.CreateUser

type Rep CreateUser = D1 ('MetaData "CreateUser" "Amazonka.MQ.CreateUser" "amazonka-mq-2.0-3ebKNoK022m255Abw9OF0s" 'False) (C1 ('MetaCons "CreateUser'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "consoleAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "brokerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 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_consoleAccess - Enables access to the ActiveMQ Web Console for the ActiveMQ user.

CreateUser, createUser_groups - The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

CreateUser, createUser_username - The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

CreateUser, createUser_brokerId - The unique ID that Amazon MQ generates for the broker.

CreateUser, createUser_password - Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).

Request Lenses

createUser_consoleAccess :: Lens' CreateUser (Maybe Bool) Source #

Enables access to the ActiveMQ Web Console for the ActiveMQ user.

createUser_groups :: Lens' CreateUser (Maybe [Text]) Source #

The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

createUser_username :: Lens' CreateUser Text Source #

The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

createUser_brokerId :: Lens' CreateUser Text Source #

The unique ID that Amazon MQ generates for the broker.

createUser_password :: Lens' CreateUser Text Source #

Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).

Destructuring the Response

data CreateUserResponse Source #

See: newCreateUserResponse smart constructor.

Constructors

CreateUserResponse' 

Fields

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:httpStatus:CreateUserResponse', createUserResponse_httpStatus - The response's http status code.

Response Lenses