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 user hierarchy group.
Synopsis
- data CreateUserHierarchyGroup = CreateUserHierarchyGroup' {
- parentGroupId :: Maybe Text
- name :: Text
- instanceId :: Text
- newCreateUserHierarchyGroup :: Text -> Text -> CreateUserHierarchyGroup
- createUserHierarchyGroup_parentGroupId :: Lens' CreateUserHierarchyGroup (Maybe Text)
- createUserHierarchyGroup_name :: Lens' CreateUserHierarchyGroup Text
- createUserHierarchyGroup_instanceId :: Lens' CreateUserHierarchyGroup Text
- data CreateUserHierarchyGroupResponse = CreateUserHierarchyGroupResponse' {}
- newCreateUserHierarchyGroupResponse :: Int -> CreateUserHierarchyGroupResponse
- createUserHierarchyGroupResponse_hierarchyGroupArn :: Lens' CreateUserHierarchyGroupResponse (Maybe Text)
- createUserHierarchyGroupResponse_hierarchyGroupId :: Lens' CreateUserHierarchyGroupResponse (Maybe Text)
- createUserHierarchyGroupResponse_httpStatus :: Lens' CreateUserHierarchyGroupResponse Int
Creating a Request
data CreateUserHierarchyGroup Source #
See: newCreateUserHierarchyGroup
smart constructor.
CreateUserHierarchyGroup' | |
|
Instances
newCreateUserHierarchyGroup Source #
:: Text | |
-> Text | |
-> CreateUserHierarchyGroup |
Create a value of CreateUserHierarchyGroup
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:parentGroupId:CreateUserHierarchyGroup'
, createUserHierarchyGroup_parentGroupId
- The identifier for the parent hierarchy group. The user hierarchy is
created at level one if the parent group ID is null.
$sel:name:CreateUserHierarchyGroup'
, createUserHierarchyGroup_name
- The name of the user hierarchy group. Must not be more than 100
characters.
$sel:instanceId:CreateUserHierarchyGroup'
, createUserHierarchyGroup_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
createUserHierarchyGroup_parentGroupId :: Lens' CreateUserHierarchyGroup (Maybe Text) Source #
The identifier for the parent hierarchy group. The user hierarchy is created at level one if the parent group ID is null.
createUserHierarchyGroup_name :: Lens' CreateUserHierarchyGroup Text Source #
The name of the user hierarchy group. Must not be more than 100 characters.
createUserHierarchyGroup_instanceId :: Lens' CreateUserHierarchyGroup Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
Destructuring the Response
data CreateUserHierarchyGroupResponse Source #
See: newCreateUserHierarchyGroupResponse
smart constructor.
CreateUserHierarchyGroupResponse' | |
|
Instances
newCreateUserHierarchyGroupResponse Source #
Create a value of CreateUserHierarchyGroupResponse
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:hierarchyGroupArn:CreateUserHierarchyGroupResponse'
, createUserHierarchyGroupResponse_hierarchyGroupArn
- The Amazon Resource Name (ARN) of the hierarchy group.
$sel:hierarchyGroupId:CreateUserHierarchyGroupResponse'
, createUserHierarchyGroupResponse_hierarchyGroupId
- The identifier of the hierarchy group.
$sel:httpStatus:CreateUserHierarchyGroupResponse'
, createUserHierarchyGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createUserHierarchyGroupResponse_hierarchyGroupArn :: Lens' CreateUserHierarchyGroupResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the hierarchy group.
createUserHierarchyGroupResponse_hierarchyGroupId :: Lens' CreateUserHierarchyGroupResponse (Maybe Text) Source #
The identifier of the hierarchy group.
createUserHierarchyGroupResponse_httpStatus :: Lens' CreateUserHierarchyGroupResponse Int Source #
The response's http status code.