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 |
Creates a group that can be used in 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:
CreateGroup
, createGroup_organizationId
- The organization under which the group is to be created.
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.