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 |
Synopsis
- data ChannelMessage = ChannelMessage' {
- sender :: Maybe Identity
- channelArn :: Maybe Text
- content :: Maybe (Sensitive Text)
- redacted :: Maybe Bool
- persistence :: Maybe ChannelMessagePersistenceType
- metadata :: Maybe (Sensitive Text)
- type' :: Maybe ChannelMessageType
- createdTimestamp :: Maybe POSIX
- messageId :: Maybe Text
- lastUpdatedTimestamp :: Maybe POSIX
- lastEditedTimestamp :: Maybe POSIX
- newChannelMessage :: ChannelMessage
- channelMessage_sender :: Lens' ChannelMessage (Maybe Identity)
- channelMessage_channelArn :: Lens' ChannelMessage (Maybe Text)
- channelMessage_content :: Lens' ChannelMessage (Maybe Text)
- channelMessage_redacted :: Lens' ChannelMessage (Maybe Bool)
- channelMessage_persistence :: Lens' ChannelMessage (Maybe ChannelMessagePersistenceType)
- channelMessage_metadata :: Lens' ChannelMessage (Maybe Text)
- channelMessage_type :: Lens' ChannelMessage (Maybe ChannelMessageType)
- channelMessage_createdTimestamp :: Lens' ChannelMessage (Maybe UTCTime)
- channelMessage_messageId :: Lens' ChannelMessage (Maybe Text)
- channelMessage_lastUpdatedTimestamp :: Lens' ChannelMessage (Maybe UTCTime)
- channelMessage_lastEditedTimestamp :: Lens' ChannelMessage (Maybe UTCTime)
Documentation
data ChannelMessage Source #
The details of a message in a channel.
See: newChannelMessage
smart constructor.
ChannelMessage' | |
|
Instances
newChannelMessage :: ChannelMessage Source #
Create a value of ChannelMessage
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:sender:ChannelMessage'
, channelMessage_sender
- The message sender.
$sel:channelArn:ChannelMessage'
, channelMessage_channelArn
- The ARN of the channel.
$sel:content:ChannelMessage'
, channelMessage_content
- The message content.
$sel:redacted:ChannelMessage'
, channelMessage_redacted
- Hides the content of a message.
$sel:persistence:ChannelMessage'
, channelMessage_persistence
- The persistence setting for a channel message.
$sel:metadata:ChannelMessage'
, channelMessage_metadata
- The message metadata.
$sel:type':ChannelMessage'
, channelMessage_type
- The message type.
$sel:createdTimestamp:ChannelMessage'
, channelMessage_createdTimestamp
- The time at which the message was created.
$sel:messageId:ChannelMessage'
, channelMessage_messageId
- The ID of a message.
$sel:lastUpdatedTimestamp:ChannelMessage'
, channelMessage_lastUpdatedTimestamp
- The time at which a message was updated.
$sel:lastEditedTimestamp:ChannelMessage'
, channelMessage_lastEditedTimestamp
- The time at which a message was edited.
channelMessage_sender :: Lens' ChannelMessage (Maybe Identity) Source #
The message sender.
channelMessage_channelArn :: Lens' ChannelMessage (Maybe Text) Source #
The ARN of the channel.
channelMessage_content :: Lens' ChannelMessage (Maybe Text) Source #
The message content.
channelMessage_redacted :: Lens' ChannelMessage (Maybe Bool) Source #
Hides the content of a message.
channelMessage_persistence :: Lens' ChannelMessage (Maybe ChannelMessagePersistenceType) Source #
The persistence setting for a channel message.
channelMessage_metadata :: Lens' ChannelMessage (Maybe Text) Source #
The message metadata.
channelMessage_type :: Lens' ChannelMessage (Maybe ChannelMessageType) Source #
The message type.
channelMessage_createdTimestamp :: Lens' ChannelMessage (Maybe UTCTime) Source #
The time at which the message was created.
channelMessage_messageId :: Lens' ChannelMessage (Maybe Text) Source #
The ID of a message.
channelMessage_lastUpdatedTimestamp :: Lens' ChannelMessage (Maybe UTCTime) Source #
The time at which a message was updated.
channelMessage_lastEditedTimestamp :: Lens' ChannelMessage (Maybe UTCTime) Source #
The time at which a message was edited.