amazonka-iam-2.0: Amazon Identity and Access Management 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.IAM.AddUserToGroup

Description

Adds the specified user to the specified group.

Synopsis

Creating a Request

data AddUserToGroup Source #

See: newAddUserToGroup smart constructor.

Constructors

AddUserToGroup' 

Fields

  • groupName :: Text

    The name of the group to update.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

  • userName :: Text

    The name of the user to add.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Instances

Instances details
ToHeaders AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

ToPath AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

ToQuery AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

AWSRequest AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Associated Types

type AWSResponse AddUserToGroup #

Generic AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Associated Types

type Rep AddUserToGroup :: Type -> Type #

Read AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Show AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

NFData AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Methods

rnf :: AddUserToGroup -> () #

Eq AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Hashable AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

type AWSResponse AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

type Rep AddUserToGroup Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

type Rep AddUserToGroup = D1 ('MetaData "AddUserToGroup" "Amazonka.IAM.AddUserToGroup" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "AddUserToGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newAddUserToGroup Source #

Create a value of AddUserToGroup 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:

AddUserToGroup, addUserToGroup_groupName - The name of the group to update.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

AddUserToGroup, addUserToGroup_userName - The name of the user to add.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Request Lenses

addUserToGroup_groupName :: Lens' AddUserToGroup Text Source #

The name of the group to update.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

addUserToGroup_userName :: Lens' AddUserToGroup Text Source #

The name of the user to add.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Destructuring the Response

data AddUserToGroupResponse Source #

See: newAddUserToGroupResponse smart constructor.

Instances

Instances details
Generic AddUserToGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Associated Types

type Rep AddUserToGroupResponse :: Type -> Type #

Read AddUserToGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Show AddUserToGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

NFData AddUserToGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

Methods

rnf :: AddUserToGroupResponse -> () #

Eq AddUserToGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

type Rep AddUserToGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.AddUserToGroup

type Rep AddUserToGroupResponse = D1 ('MetaData "AddUserToGroupResponse" "Amazonka.IAM.AddUserToGroup" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "AddUserToGroupResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAddUserToGroupResponse :: AddUserToGroupResponse Source #

Create a value of AddUserToGroupResponse with all optional fields omitted.

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