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 |
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.
Instances
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.
DisconnectUserResponse' | |
|
Instances
Generic DisconnectUserResponse Source # | |
Defined in Amazonka.IVSChat.DisconnectUser type Rep DisconnectUserResponse :: Type -> Type # | |
Read DisconnectUserResponse Source # | |
Show DisconnectUserResponse Source # | |
Defined in Amazonka.IVSChat.DisconnectUser showsPrec :: Int -> DisconnectUserResponse -> ShowS # show :: DisconnectUserResponse -> String # showList :: [DisconnectUserResponse] -> ShowS # | |
NFData DisconnectUserResponse Source # | |
Defined in Amazonka.IVSChat.DisconnectUser rnf :: DisconnectUserResponse -> () # | |
Eq DisconnectUserResponse Source # | |
Defined in Amazonka.IVSChat.DisconnectUser | |
type Rep DisconnectUserResponse Source # | |
Defined in Amazonka.IVSChat.DisconnectUser type Rep DisconnectUserResponse = D1 ('MetaData "DisconnectUserResponse" "Amazonka.IVSChat.DisconnectUser" "amazonka-ivschat-2.0-AB4QlCKEEGt4izEWjWKMb2" 'False) (C1 ('MetaCons "DisconnectUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.