libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AlexaBusiness.SendAnnouncement

Description

Triggers an asynchronous flow to send text, SSML, or audio announcements to rooms that are identified by a search or filter.

Synopsis

Creating a Request

data SendAnnouncement Source #

See: newSendAnnouncement smart constructor.

Constructors

SendAnnouncement' 

Fields

  • timeToLiveInSeconds :: Maybe Natural

    The time to live for an announcement. Default is 300. If delivery doesn't occur within this time, the announcement is not delivered.

  • roomFilters :: [Filter]

    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.

  • content :: Content

    The announcement content. This can contain only one of the three possible announcement types (text, SSML or audio).

  • clientRequestToken :: Text

    The unique, user-specified identifier for the request that ensures idempotency.

Instances

Instances details
Eq SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Read SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Show SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Generic SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Associated Types

type Rep SendAnnouncement :: Type -> Type #

NFData SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Methods

rnf :: SendAnnouncement -> () #

Hashable SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

ToJSON SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

AWSRequest SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Associated Types

type AWSResponse SendAnnouncement #

ToHeaders SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

ToPath SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

ToQuery SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

type Rep SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

type Rep SendAnnouncement = D1 ('MetaData "SendAnnouncement" "Amazonka.AlexaBusiness.SendAnnouncement" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SendAnnouncement'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "timeToLiveInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "roomFilters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Filter])) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Content) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SendAnnouncement Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

newSendAnnouncement Source #

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.

Constructors

SendAnnouncementResponse' 

Fields

Instances

Instances details
Eq SendAnnouncementResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Read SendAnnouncementResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Show SendAnnouncementResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Generic SendAnnouncementResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

Associated Types

type Rep SendAnnouncementResponse :: Type -> Type #

NFData SendAnnouncementResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

type Rep SendAnnouncementResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SendAnnouncement

type Rep SendAnnouncementResponse = D1 ('MetaData "SendAnnouncementResponse" "Amazonka.AlexaBusiness.SendAnnouncement" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SendAnnouncementResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "announcementArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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