amazonka-chime-sdk-messaging-2.0: Amazon Chime SDK Messaging SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ChimeSDKMessaging.SendChannelMessage

Description

Sends a message to a particular channel that the member is a part of.

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.

Also, STANDARD messages can contain 4KB of data and the 1KB of metadata. CONTROL messages can contain 30 bytes of data and no metadata.

Synopsis

Creating a Request

data SendChannelMessage Source #

See: newSendChannelMessage smart constructor.

Constructors

SendChannelMessage' 

Fields

Instances

Instances details
ToJSON SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

ToHeaders SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

ToPath SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

ToQuery SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

AWSRequest SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

Associated Types

type AWSResponse SendChannelMessage #

Generic SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

Associated Types

type Rep SendChannelMessage :: Type -> Type #

Show SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

NFData SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

Methods

rnf :: SendChannelMessage -> () #

Eq SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

Hashable SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

type AWSResponse SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

type Rep SendChannelMessage Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

type Rep SendChannelMessage = D1 ('MetaData "SendChannelMessage" "Amazonka.ChimeSDKMessaging.SendChannelMessage" "amazonka-chime-sdk-messaging-2.0-BxY1AbjLoDB4AQUv82PCQZ" 'False) (C1 ('MetaCons "SendChannelMessage'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "messageAttributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text MessageAttributeValue))) :*: S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "pushNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PushNotificationConfiguration)) :*: (S1 ('MetaSel ('Just "subChannelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :*: ((S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ChannelMessageType)) :*: (S1 ('MetaSel ('Just "persistence") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ChannelMessagePersistenceType) :*: (S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "chimeBearer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newSendChannelMessage Source #

Create a value of SendChannelMessage 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:

SendChannelMessage, sendChannelMessage_messageAttributes - The attributes for the message, used for message filtering along with a FilterRule defined in the PushNotificationPreferences.

SendChannelMessage, sendChannelMessage_metadata - The optional metadata for each message.

SendChannelMessage, sendChannelMessage_pushNotification - The push notification configuration of the message.

SendChannelMessage, sendChannelMessage_subChannelId - The ID of the SubChannel in the request.

SendChannelMessage, sendChannelMessage_channelArn - The ARN of the channel.

SendChannelMessage, sendChannelMessage_content - The content of the message.

SendChannelMessage, sendChannelMessage_type - The type of message, STANDARD or CONTROL.

SendChannelMessage, sendChannelMessage_persistence - Boolean that controls whether the message is persisted on the back end. Required.

$sel:clientRequestToken:SendChannelMessage', sendChannelMessage_clientRequestToken - The Idempotency token for each client request.

$sel:chimeBearer:SendChannelMessage', sendChannelMessage_chimeBearer - The AppInstanceUserArn of the user that makes the API call.

Request Lenses

sendChannelMessage_messageAttributes :: Lens' SendChannelMessage (Maybe (HashMap Text MessageAttributeValue)) Source #

The attributes for the message, used for message filtering along with a FilterRule defined in the PushNotificationPreferences.

sendChannelMessage_metadata :: Lens' SendChannelMessage (Maybe Text) Source #

The optional metadata for each message.

sendChannelMessage_subChannelId :: Lens' SendChannelMessage (Maybe Text) Source #

The ID of the SubChannel in the request.

sendChannelMessage_type :: Lens' SendChannelMessage ChannelMessageType Source #

The type of message, STANDARD or CONTROL.

sendChannelMessage_persistence :: Lens' SendChannelMessage ChannelMessagePersistenceType Source #

Boolean that controls whether the message is persisted on the back end. Required.

sendChannelMessage_clientRequestToken :: Lens' SendChannelMessage Text Source #

The Idempotency token for each client request.

sendChannelMessage_chimeBearer :: Lens' SendChannelMessage Text Source #

The AppInstanceUserArn of the user that makes the API call.

Destructuring the Response

data SendChannelMessageResponse Source #

See: newSendChannelMessageResponse smart constructor.

Constructors

SendChannelMessageResponse' 

Fields

Instances

Instances details
Generic SendChannelMessageResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

Associated Types

type Rep SendChannelMessageResponse :: Type -> Type #

Read SendChannelMessageResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

Show SendChannelMessageResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

NFData SendChannelMessageResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

Eq SendChannelMessageResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

type Rep SendChannelMessageResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.SendChannelMessage

type Rep SendChannelMessageResponse = D1 ('MetaData "SendChannelMessageResponse" "Amazonka.ChimeSDKMessaging.SendChannelMessage" "amazonka-chime-sdk-messaging-2.0-BxY1AbjLoDB4AQUv82PCQZ" 'False) (C1 ('MetaCons "SendChannelMessageResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelMessageStatusStructure)) :*: (S1 ('MetaSel ('Just "subChannelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newSendChannelMessageResponse Source #

Create a value of SendChannelMessageResponse 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:

SendChannelMessage, sendChannelMessageResponse_channelArn - The ARN of the channel.

SendChannelMessageResponse, sendChannelMessageResponse_messageId - The ID string assigned to each message.

SendChannelMessageResponse, sendChannelMessageResponse_status - The status of the channel message.

SendChannelMessage, sendChannelMessageResponse_subChannelId - The ID of the SubChannel in the response.

$sel:httpStatus:SendChannelMessageResponse', sendChannelMessageResponse_httpStatus - The response's http status code.

Response Lenses