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 group that can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.
Synopsis
- data CreateGroup = CreateGroup' {
- organizationId :: Text
- name :: Text
- newCreateGroup :: Text -> Text -> CreateGroup
- createGroup_organizationId :: Lens' CreateGroup Text
- createGroup_name :: Lens' CreateGroup Text
- data CreateGroupResponse = CreateGroupResponse' {
- groupId :: Maybe Text
- httpStatus :: Int
- newCreateGroupResponse :: Int -> CreateGroupResponse
- createGroupResponse_groupId :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
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:organizationId:CreateGroup'
, createGroup_organizationId
- The organization under which the group is to be created.
$sel:name:CreateGroup'
, createGroup_name
- The name of the group.
Request Lenses
createGroup_organizationId :: Lens' CreateGroup Text Source #
The organization under which the group is to be created.
createGroup_name :: Lens' CreateGroup Text Source #
The name of the group.
Destructuring the Response
data CreateGroupResponse Source #
See: newCreateGroupResponse
smart constructor.
CreateGroupResponse' | |
|
Instances
newCreateGroupResponse Source #
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:groupId:CreateGroupResponse'
, createGroupResponse_groupId
- The identifier of the group.
$sel:httpStatus:CreateGroupResponse'
, createGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createGroupResponse_groupId :: Lens' CreateGroupResponse (Maybe Text) Source #
The identifier of the group.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int Source #
The response's http status code.