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 |
Redacts message content, but not metadata. The message exists in the back end, but the action returns null content, and the state shows as redacted.
The x-amz-chime-bearer
request header is mandatory. Use the
AppInstanceUserArn
of the user that makes the API call as the value in
the header.
Synopsis
- data RedactChannelMessage = RedactChannelMessage' {
- chimeBearer :: Maybe Text
- channelArn :: Text
- messageId :: Text
- newRedactChannelMessage :: Text -> Text -> RedactChannelMessage
- redactChannelMessage_chimeBearer :: Lens' RedactChannelMessage (Maybe Text)
- redactChannelMessage_channelArn :: Lens' RedactChannelMessage Text
- redactChannelMessage_messageId :: Lens' RedactChannelMessage Text
- data RedactChannelMessageResponse = RedactChannelMessageResponse' {
- channelArn :: Maybe Text
- messageId :: Maybe Text
- httpStatus :: Int
- newRedactChannelMessageResponse :: Int -> RedactChannelMessageResponse
- redactChannelMessageResponse_channelArn :: Lens' RedactChannelMessageResponse (Maybe Text)
- redactChannelMessageResponse_messageId :: Lens' RedactChannelMessageResponse (Maybe Text)
- redactChannelMessageResponse_httpStatus :: Lens' RedactChannelMessageResponse Int
Creating a Request
data RedactChannelMessage Source #
See: newRedactChannelMessage
smart constructor.
RedactChannelMessage' | |
|
Instances
newRedactChannelMessage Source #
:: Text | |
-> Text | |
-> RedactChannelMessage |
Create a value of RedactChannelMessage
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:chimeBearer:RedactChannelMessage'
, redactChannelMessage_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:channelArn:RedactChannelMessage'
, redactChannelMessage_channelArn
- The ARN of the channel containing the messages that you want to redact.
$sel:messageId:RedactChannelMessage'
, redactChannelMessage_messageId
- The ID of the message being redacted.
Request Lenses
redactChannelMessage_chimeBearer :: Lens' RedactChannelMessage (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
redactChannelMessage_channelArn :: Lens' RedactChannelMessage Text Source #
The ARN of the channel containing the messages that you want to redact.
redactChannelMessage_messageId :: Lens' RedactChannelMessage Text Source #
The ID of the message being redacted.
Destructuring the Response
data RedactChannelMessageResponse Source #
See: newRedactChannelMessageResponse
smart constructor.
RedactChannelMessageResponse' | |
|
Instances
newRedactChannelMessageResponse Source #
Create a value of RedactChannelMessageResponse
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:channelArn:RedactChannelMessage'
, redactChannelMessageResponse_channelArn
- The ARN of the channel containing the messages that you want to redact.
$sel:messageId:RedactChannelMessage'
, redactChannelMessageResponse_messageId
- The ID of the message being redacted.
$sel:httpStatus:RedactChannelMessageResponse'
, redactChannelMessageResponse_httpStatus
- The response's http status code.
Response Lenses
redactChannelMessageResponse_channelArn :: Lens' RedactChannelMessageResponse (Maybe Text) Source #
The ARN of the channel containing the messages that you want to redact.
redactChannelMessageResponse_messageId :: Lens' RedactChannelMessageResponse (Maybe Text) Source #
The ID of the message being redacted.
redactChannelMessageResponse_httpStatus :: Lens' RedactChannelMessageResponse Int Source #
The response's http status code.