| 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.Connect.Types.ChatMessage
Description
Synopsis
- data ChatMessage = ChatMessage' {
- contentType :: Text
- content :: Text
- newChatMessage :: Text -> Text -> ChatMessage
- chatMessage_contentType :: Lens' ChatMessage Text
- chatMessage_content :: Lens' ChatMessage Text
Documentation
data ChatMessage Source #
A chat message.
See: newChatMessage smart constructor.
Constructors
| ChatMessage' | |
Fields
| |
Instances
Create a value of ChatMessage 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:contentType:ChatMessage', chatMessage_contentType - The type of the content. Supported types are text/plain,
text/markdown, and application/json.
$sel:content:ChatMessage', chatMessage_content - The content of the chat message.
- For
text/plainandtext/markdown, the Length Constraints are Minimum of 1, Maximum of 1024. - For
application/json, the Length Constraints are Minimum of 1, Maximum of 12000.
chatMessage_contentType :: Lens' ChatMessage Text Source #
The type of the content. Supported types are text/plain,
text/markdown, and application/json.
chatMessage_content :: Lens' ChatMessage Text Source #
The content of the chat message.
- For
text/plainandtext/markdown, the Length Constraints are Minimum of 1, Maximum of 1024. - For
application/json, the Length Constraints are Minimum of 1, Maximum of 12000.