| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IAM.AddUserToGroup
Description
Adds the specified user to the specified group.
Synopsis
- data AddUserToGroup = AddUserToGroup' {}
- newAddUserToGroup :: Text -> Text -> AddUserToGroup
- addUserToGroup_groupName :: Lens' AddUserToGroup Text
- addUserToGroup_userName :: Lens' AddUserToGroup Text
- data AddUserToGroupResponse = AddUserToGroupResponse' {
- newAddUserToGroupResponse :: AddUserToGroupResponse
Creating a Request
data AddUserToGroup Source #
See: newAddUserToGroup smart constructor.
Constructors
| AddUserToGroup' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> AddUserToGroup |
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.
Constructors
| AddUserToGroupResponse' | |
Instances
| Generic AddUserToGroupResponse Source # | |
Defined in Amazonka.IAM.AddUserToGroup Associated Types type Rep AddUserToGroupResponse :: Type -> Type # Methods from :: AddUserToGroupResponse -> Rep AddUserToGroupResponse x # to :: Rep AddUserToGroupResponse x -> AddUserToGroupResponse # | |
| Read AddUserToGroupResponse Source # | |
Defined in Amazonka.IAM.AddUserToGroup | |
| Show AddUserToGroupResponse Source # | |
Defined in Amazonka.IAM.AddUserToGroup Methods showsPrec :: Int -> AddUserToGroupResponse -> ShowS # show :: AddUserToGroupResponse -> String # showList :: [AddUserToGroupResponse] -> ShowS # | |
| NFData AddUserToGroupResponse Source # | |
Defined in Amazonka.IAM.AddUserToGroup Methods rnf :: AddUserToGroupResponse -> () # | |
| Eq AddUserToGroupResponse Source # | |
Defined in Amazonka.IAM.AddUserToGroup Methods (==) :: AddUserToGroupResponse -> AddUserToGroupResponse -> Bool # (/=) :: AddUserToGroupResponse -> AddUserToGroupResponse -> Bool # | |
| type Rep AddUserToGroupResponse Source # | |
newAddUserToGroupResponse :: AddUserToGroupResponse Source #
Create a value of AddUserToGroupResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.