Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new group.
For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide.
- createGroup :: Text -> CreateGroup
- data CreateGroup
- cgPath :: Lens' CreateGroup (Maybe Text)
- cgGroupName :: Lens' CreateGroup Text
- createGroupResponse :: Int -> Group -> CreateGroupResponse
- data CreateGroupResponse
- cgrsResponseStatus :: Lens' CreateGroupResponse Int
- cgrsGroup :: Lens' CreateGroupResponse Group
Creating a Request
Creates a value of CreateGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateGroup Source
See: createGroup
smart constructor.
Request Lenses
cgPath :: Lens' CreateGroup (Maybe Text) Source
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
cgGroupName :: Lens' CreateGroup Text Source
The name of the group to create. Do not include the path in this value.
Destructuring the Response
Creates a value of CreateGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateGroupResponse Source
Contains the response to a successful CreateGroup request.
See: createGroupResponse
smart constructor.
Response Lenses
cgrsResponseStatus :: Lens' CreateGroupResponse Int Source
The response status code.
cgrsGroup :: Lens' CreateGroupResponse Group Source
Information about the group.