Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new group.
For information about the number of groups you can create, see IAM and STS quotas in the IAM User Guide.
Synopsis
- data CreateGroup = CreateGroup' {}
- newCreateGroup :: Text -> CreateGroup
- createGroup_path :: Lens' CreateGroup (Maybe Text)
- createGroup_groupName :: Lens' CreateGroup Text
- data CreateGroupResponse = CreateGroupResponse' {
- httpStatus :: Int
- group' :: Group
- newCreateGroupResponse :: Int -> Group -> CreateGroupResponse
- createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
- createGroupResponse_group :: Lens' CreateGroupResponse Group
Creating a Request
data CreateGroup Source #
See: newCreateGroup
smart constructor.
CreateGroup' | |
|
Instances
Create a value of CreateGroup
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:path:CreateGroup'
, createGroup_path
- The path to the group. For more information about paths, see
IAM identifiers
in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
This parameter allows (through its
regex pattern) a string of characters
consisting of either a forward slash (/) by itself or a string that
must begin and end with forward slashes. In addition, it can contain any
ASCII character from the ! (\u0021
) through the DEL character
(\u007F
), including most punctuation characters, digits, and upper
and lowercased letters.
$sel:groupName:CreateGroup'
, createGroup_groupName
- The name of the group to create. Do not include the path in this value.
IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".
Request Lenses
createGroup_path :: Lens' CreateGroup (Maybe Text) Source #
The path to the group. For more information about paths, see IAM identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
This parameter allows (through its
regex pattern) a string of characters
consisting of either a forward slash (/) by itself or a string that
must begin and end with forward slashes. In addition, it can contain any
ASCII character from the ! (\u0021
) through the DEL character
(\u007F
), including most punctuation characters, digits, and upper
and lowercased letters.
createGroup_groupName :: Lens' CreateGroup Text Source #
The name of the group to create. Do not include the path in this value.
IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".
Destructuring the Response
data CreateGroupResponse Source #
Contains the response to a successful CreateGroup request.
See: newCreateGroupResponse
smart constructor.
CreateGroupResponse' | |
|
Instances
newCreateGroupResponse Source #
:: Int | |
-> Group | |
-> CreateGroupResponse |
Create a value of CreateGroupResponse
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:CreateGroupResponse'
, createGroupResponse_httpStatus
- The response's http status code.
$sel:group':CreateGroupResponse'
, createGroupResponse_group
- A structure containing details about the new group.
Response Lenses
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int Source #
The response's http status code.
createGroupResponse_group :: Lens' CreateGroupResponse Group Source #
A structure containing details about the new group.