| 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.APIGatewayManagementAPI.PostToConnection
Description
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.
Constructors
| PostToConnection' | |
Fields
| |
Instances
Arguments
| :: 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.
Constructors
| PostToConnectionResponse' | |
Instances
newPostToConnectionResponse :: PostToConnectionResponse Source #
Create a value of PostToConnectionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.