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 |
Changes the current status of a user or agent in Amazon Connect. If the agent is currently handling a contact, this sets the agent's next status.
For more information, see Agent status and Set your next status in the Amazon Connect Administrator Guide.
Synopsis
- data PutUserStatus = PutUserStatus' {
- userId :: Text
- instanceId :: Text
- agentStatusId :: Text
- newPutUserStatus :: Text -> Text -> Text -> PutUserStatus
- putUserStatus_userId :: Lens' PutUserStatus Text
- putUserStatus_instanceId :: Lens' PutUserStatus Text
- putUserStatus_agentStatusId :: Lens' PutUserStatus Text
- data PutUserStatusResponse = PutUserStatusResponse' {
- httpStatus :: Int
- newPutUserStatusResponse :: Int -> PutUserStatusResponse
- putUserStatusResponse_httpStatus :: Lens' PutUserStatusResponse Int
Creating a Request
data PutUserStatus Source #
See: newPutUserStatus
smart constructor.
PutUserStatus' | |
|
Instances
Create a value of PutUserStatus
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:
PutUserStatus
, putUserStatus_userId
- The identifier of the user.
PutUserStatus
, putUserStatus_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
PutUserStatus
, putUserStatus_agentStatusId
- The identifier of the agent status.
Request Lenses
putUserStatus_userId :: Lens' PutUserStatus Text Source #
The identifier of the user.
putUserStatus_instanceId :: Lens' PutUserStatus Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
putUserStatus_agentStatusId :: Lens' PutUserStatus Text Source #
The identifier of the agent status.
Destructuring the Response
data PutUserStatusResponse Source #
See: newPutUserStatusResponse
smart constructor.
PutUserStatusResponse' | |
|
Instances
newPutUserStatusResponse Source #
Create a value of PutUserStatusResponse
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:PutUserStatusResponse'
, putUserStatusResponse_httpStatus
- The response's http status code.
Response Lenses
putUserStatusResponse_httpStatus :: Lens' PutUserStatusResponse Int Source #
The response's http status code.