amazonka-elasticache-2.0: Amazon ElastiCache 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.ElastiCache.CreateUserGroup

Description

For Redis engine version 6.0 onwards: Creates a Redis user group. For more information, see Using Role Based Access Control (RBAC)

Synopsis

Creating a Request

data CreateUserGroup Source #

See: newCreateUserGroup smart constructor.

Constructors

CreateUserGroup' 

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.

  • userIds :: Maybe (NonEmpty Text)

    The list of user IDs that belong to the user group.

  • userGroupId :: Text

    The ID of the user group.

  • engine :: Text

    The current supported value is Redis.

Instances

Instances details
ToHeaders CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

ToPath CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

ToQuery CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

AWSRequest CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

Associated Types

type AWSResponse CreateUserGroup #

Generic CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

Associated Types

type Rep CreateUserGroup :: Type -> Type #

Read CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

Show CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

NFData CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

Methods

rnf :: CreateUserGroup -> () #

Eq CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

Hashable CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

type AWSResponse CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

type Rep CreateUserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.CreateUserGroup

type Rep CreateUserGroup = D1 ('MetaData "CreateUserGroup" "Amazonka.ElastiCache.CreateUserGroup" "amazonka-elasticache-2.0-DTWyHgx8JwY7IlNovngF22" 'False) (C1 ('MetaCons "CreateUserGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "userIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "userGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "engine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateUserGroup Source #

Create a value of CreateUserGroup 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:CreateUserGroup', createUserGroup_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.

CreateUserGroup, createUserGroup_userIds - The list of user IDs that belong to the user group.

CreateUserGroup, createUserGroup_userGroupId - The ID of the user group.

CreateUserGroup, createUserGroup_engine - The current supported value is Redis.

Request Lenses

createUserGroup_tags :: Lens' CreateUserGroup (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.

createUserGroup_userIds :: Lens' CreateUserGroup (Maybe (NonEmpty Text)) Source #

The list of user IDs that belong to the user group.

createUserGroup_engine :: Lens' CreateUserGroup Text Source #

The current supported value is Redis.

Destructuring the Response

data UserGroup Source #

See: newUserGroup smart constructor.

Constructors

UserGroup' 

Fields

Instances

Instances details
FromXML UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

Generic UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

Associated Types

type Rep UserGroup :: Type -> Type #

Read UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

Show UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

NFData UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

Methods

rnf :: UserGroup -> () #

Eq UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

Hashable UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

type Rep UserGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.Types.UserGroup

newUserGroup :: UserGroup Source #

Create a value of UserGroup 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:arn:UserGroup', userGroup_arn - The Amazon Resource Name (ARN) of the user group.

$sel:engine:UserGroup', userGroup_engine - The current supported value is Redis.

$sel:minimumEngineVersion:UserGroup', userGroup_minimumEngineVersion - The minimum engine version required, which is Redis 6.0

$sel:pendingChanges:UserGroup', userGroup_pendingChanges - A list of updates being applied to the user group.

$sel:replicationGroups:UserGroup', userGroup_replicationGroups - A list of replication groups that the user group can access.

$sel:status:UserGroup', userGroup_status - Indicates user group status. Can be "creating", "active", "modifying", "deleting".

$sel:userGroupId:UserGroup', userGroup_userGroupId - The ID of the user group.

$sel:userIds:UserGroup', userGroup_userIds - The list of user IDs that belong to the user group.

Response Lenses

userGroup_arn :: Lens' UserGroup (Maybe Text) Source #

The Amazon Resource Name (ARN) of the user group.

userGroup_engine :: Lens' UserGroup (Maybe Text) Source #

The current supported value is Redis.

userGroup_minimumEngineVersion :: Lens' UserGroup (Maybe Text) Source #

The minimum engine version required, which is Redis 6.0

userGroup_pendingChanges :: Lens' UserGroup (Maybe UserGroupPendingChanges) Source #

A list of updates being applied to the user group.

userGroup_replicationGroups :: Lens' UserGroup (Maybe [Text]) Source #

A list of replication groups that the user group can access.

userGroup_status :: Lens' UserGroup (Maybe Text) Source #

Indicates user group status. Can be "creating", "active", "modifying", "deleting".

userGroup_userGroupId :: Lens' UserGroup (Maybe Text) Source #

The ID of the user group.

userGroup_userIds :: Lens' UserGroup (Maybe [Text]) Source #

The list of user IDs that belong to the user group.