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 |
Sends the provided data to the specified connection.
Synopsis
- data PostToConnection = PostToConnection' {
- connectionId :: Text
- data' :: ByteString
- newPostToConnection :: Text -> ByteString -> PostToConnection
- postToConnection_connectionId :: Lens' PostToConnection Text
- postToConnection_data :: Lens' PostToConnection ByteString
- data PostToConnectionResponse = PostToConnectionResponse' {
- newPostToConnectionResponse :: PostToConnectionResponse
Creating a Request
data PostToConnection Source #
See: newPostToConnection
smart constructor.
PostToConnection' | |
|
Instances
:: Text | |
-> ByteString | |
-> PostToConnection |
Create a value of PostToConnection
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:connectionId:PostToConnection'
, postToConnection_connectionId
- The identifier of the connection that a specific client is using.
$sel:data':PostToConnection'
, postToConnection_data
- The data to be sent to the client specified by its connection id.
Request Lenses
postToConnection_connectionId :: Lens' PostToConnection Text Source #
The identifier of the connection that a specific client is using.
postToConnection_data :: Lens' PostToConnection ByteString Source #
The data to be sent to the client specified by its connection id.
Destructuring the Response
data PostToConnectionResponse Source #
See: newPostToConnectionResponse
smart constructor.
Instances
newPostToConnectionResponse :: PostToConnectionResponse Source #
Create a value of PostToConnectionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.