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 |
Gets message status for a specified messageId
. Use this API to
determine the intermediate status of messages going through channel flow
processing. The API provides an alternative to retrieving message status
if the event was not received because a client wasn't connected to a
websocket.
Messages can have any one of these statuses.
- SENT
- Message processed successfully
- PENDING
- Ongoing processing
- FAILED
- Processing failed
- DENIED
- Messasge denied by the processor
- This API does not return statuses for denied messages, because we don't store them once the processor denies them.
- Only the message sender can invoke this API.
- The
x-amz-chime-bearer
request header is mandatory. Use theAppInstanceUserArn
of the user that makes the API call as the value in the header
Synopsis
- data GetChannelMessageStatus = GetChannelMessageStatus' {
- channelArn :: Text
- messageId :: Text
- chimeBearer :: Text
- newGetChannelMessageStatus :: Text -> Text -> Text -> GetChannelMessageStatus
- getChannelMessageStatus_channelArn :: Lens' GetChannelMessageStatus Text
- getChannelMessageStatus_messageId :: Lens' GetChannelMessageStatus Text
- getChannelMessageStatus_chimeBearer :: Lens' GetChannelMessageStatus Text
- data GetChannelMessageStatusResponse = GetChannelMessageStatusResponse' {}
- newGetChannelMessageStatusResponse :: Int -> GetChannelMessageStatusResponse
- getChannelMessageStatusResponse_status :: Lens' GetChannelMessageStatusResponse (Maybe ChannelMessageStatusStructure)
- getChannelMessageStatusResponse_httpStatus :: Lens' GetChannelMessageStatusResponse Int
Creating a Request
data GetChannelMessageStatus Source #
See: newGetChannelMessageStatus
smart constructor.
GetChannelMessageStatus' | |
|
Instances
newGetChannelMessageStatus Source #
:: Text | |
-> Text | |
-> Text | |
-> GetChannelMessageStatus |
Create a value of GetChannelMessageStatus
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:GetChannelMessageStatus'
, getChannelMessageStatus_channelArn
- The ARN of the channel
$sel:messageId:GetChannelMessageStatus'
, getChannelMessageStatus_messageId
- The ID of the message.
$sel:chimeBearer:GetChannelMessageStatus'
, getChannelMessageStatus_chimeBearer
- The AppInstanceUserArn
of the user making the API call.
Request Lenses
getChannelMessageStatus_channelArn :: Lens' GetChannelMessageStatus Text Source #
The ARN of the channel
getChannelMessageStatus_messageId :: Lens' GetChannelMessageStatus Text Source #
The ID of the message.
getChannelMessageStatus_chimeBearer :: Lens' GetChannelMessageStatus Text Source #
The AppInstanceUserArn
of the user making the API call.
Destructuring the Response
data GetChannelMessageStatusResponse Source #
See: newGetChannelMessageStatusResponse
smart constructor.
GetChannelMessageStatusResponse' | |
|
Instances
Eq GetChannelMessageStatusResponse Source # | |
Read GetChannelMessageStatusResponse Source # | |
Show GetChannelMessageStatusResponse Source # | |
Generic GetChannelMessageStatusResponse Source # | |
NFData GetChannelMessageStatusResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.GetChannelMessageStatus rnf :: GetChannelMessageStatusResponse -> () # | |
type Rep GetChannelMessageStatusResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.GetChannelMessageStatus type Rep GetChannelMessageStatusResponse = D1 ('MetaData "GetChannelMessageStatusResponse" "Amazonka.ChimeSDKMessaging.GetChannelMessageStatus" "libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging" 'False) (C1 ('MetaCons "GetChannelMessageStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelMessageStatusStructure)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetChannelMessageStatusResponse Source #
Create a value of GetChannelMessageStatusResponse
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:status:GetChannelMessageStatusResponse'
, getChannelMessageStatusResponse_status
- The message status and details.
$sel:httpStatus:GetChannelMessageStatusResponse'
, getChannelMessageStatusResponse_httpStatus
- The response's http status code.
Response Lenses
getChannelMessageStatusResponse_status :: Lens' GetChannelMessageStatusResponse (Maybe ChannelMessageStatusStructure) Source #
The message status and details.
getChannelMessageStatusResponse_httpStatus :: Lens' GetChannelMessageStatusResponse Int Source #
The response's http status code.