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 |
Triggers an asynchronous flow to send text, SSML, or audio announcements to rooms that are identified by a search or filter.
Synopsis
- data SendAnnouncement = SendAnnouncement' {}
- newSendAnnouncement :: Content -> Text -> SendAnnouncement
- sendAnnouncement_timeToLiveInSeconds :: Lens' SendAnnouncement (Maybe Natural)
- sendAnnouncement_roomFilters :: Lens' SendAnnouncement [Filter]
- sendAnnouncement_content :: Lens' SendAnnouncement Content
- sendAnnouncement_clientRequestToken :: Lens' SendAnnouncement Text
- data SendAnnouncementResponse = SendAnnouncementResponse' {}
- newSendAnnouncementResponse :: Int -> SendAnnouncementResponse
- sendAnnouncementResponse_announcementArn :: Lens' SendAnnouncementResponse (Maybe Text)
- sendAnnouncementResponse_httpStatus :: Lens' SendAnnouncementResponse Int
Creating a Request
data SendAnnouncement Source #
See: newSendAnnouncement
smart constructor.
SendAnnouncement' | |
|
Instances
:: Content | |
-> Text | |
-> SendAnnouncement |
Create a value of SendAnnouncement
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:timeToLiveInSeconds:SendAnnouncement'
, sendAnnouncement_timeToLiveInSeconds
- The time to live for an announcement. Default is 300. If delivery
doesn't occur within this time, the announcement is not delivered.
$sel:roomFilters:SendAnnouncement'
, sendAnnouncement_roomFilters
- The filters to use to send an announcement to a specified list of rooms.
The supported filter keys are RoomName, ProfileName, RoomArn, and
ProfileArn. To send to all rooms, specify an empty RoomFilters list.
$sel:content:SendAnnouncement'
, sendAnnouncement_content
- The announcement content. This can contain only one of the three
possible announcement types (text, SSML or audio).
$sel:clientRequestToken:SendAnnouncement'
, sendAnnouncement_clientRequestToken
- The unique, user-specified identifier for the request that ensures
idempotency.
Request Lenses
sendAnnouncement_timeToLiveInSeconds :: Lens' SendAnnouncement (Maybe Natural) Source #
The time to live for an announcement. Default is 300. If delivery doesn't occur within this time, the announcement is not delivered.
sendAnnouncement_roomFilters :: Lens' SendAnnouncement [Filter] Source #
The filters to use to send an announcement to a specified list of rooms. The supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To send to all rooms, specify an empty RoomFilters list.
sendAnnouncement_content :: Lens' SendAnnouncement Content Source #
The announcement content. This can contain only one of the three possible announcement types (text, SSML or audio).
sendAnnouncement_clientRequestToken :: Lens' SendAnnouncement Text Source #
The unique, user-specified identifier for the request that ensures idempotency.
Destructuring the Response
data SendAnnouncementResponse Source #
See: newSendAnnouncementResponse
smart constructor.
SendAnnouncementResponse' | |
|
Instances
newSendAnnouncementResponse Source #
Create a value of SendAnnouncementResponse
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:announcementArn:SendAnnouncementResponse'
, sendAnnouncementResponse_announcementArn
- The identifier of the announcement.
$sel:httpStatus:SendAnnouncementResponse'
, sendAnnouncementResponse_httpStatus
- The response's http status code.
Response Lenses
sendAnnouncementResponse_announcementArn :: Lens' SendAnnouncementResponse (Maybe Text) Source #
The identifier of the announcement.
sendAnnouncementResponse_httpStatus :: Lens' SendAnnouncementResponse Int Source #
The response's http status code.