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 |
Amazonka.IVSChat.DisconnectUser
Description
Disconnects all connections using a specified user ID from a room. This replicates the DisconnectUser WebSocket operation in the Amazon IVS Chat Messaging API.
Synopsis
- data DisconnectUser = DisconnectUser' {}
- newDisconnectUser :: Text -> Text -> DisconnectUser
- disconnectUser_reason :: Lens' DisconnectUser (Maybe Text)
- disconnectUser_roomIdentifier :: Lens' DisconnectUser Text
- disconnectUser_userId :: Lens' DisconnectUser Text
- data DisconnectUserResponse = DisconnectUserResponse' {
- httpStatus :: Int
- newDisconnectUserResponse :: Int -> DisconnectUserResponse
- disconnectUserResponse_httpStatus :: Lens' DisconnectUserResponse Int
Creating a Request
data DisconnectUser Source #
See: newDisconnectUser
smart constructor.
Constructors
DisconnectUser' | |
Instances
Arguments
:: Text | |
-> Text | |
-> DisconnectUser |
Create a value of DisconnectUser
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:reason:DisconnectUser'
, disconnectUser_reason
- Reason for disconnecting the user.
$sel:roomIdentifier:DisconnectUser'
, disconnectUser_roomIdentifier
- Identifier of the room from which the user's clients should be
disconnected. Currently this must be an ARN.
$sel:userId:DisconnectUser'
, disconnectUser_userId
- ID of the user (connection) to disconnect from the room.
Request Lenses
disconnectUser_reason :: Lens' DisconnectUser (Maybe Text) Source #
Reason for disconnecting the user.
disconnectUser_roomIdentifier :: Lens' DisconnectUser Text Source #
Identifier of the room from which the user's clients should be disconnected. Currently this must be an ARN.
disconnectUser_userId :: Lens' DisconnectUser Text Source #
ID of the user (connection) to disconnect from the room.
Destructuring the Response
data DisconnectUserResponse Source #
See: newDisconnectUserResponse
smart constructor.
Constructors
DisconnectUserResponse' | |
Fields
|
Instances
newDisconnectUserResponse Source #
Create a value of DisconnectUserResponse
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:DisconnectUserResponse'
, disconnectUserResponse_httpStatus
- The response's http status code.
Response Lenses
disconnectUserResponse_httpStatus :: Lens' DisconnectUserResponse Int Source #
The response's http status code.