amazonka-chime-2.0: Amazon Chime 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.Chime.ListChannelMessages

Description

List all the messages in a channel. Returns a paginated list of ChannelMessages. By default, sorted by creation timestamp in descending order.

Redacted messages appear in the results as empty, since they are only redacted, not deleted. Deleted messages do not appear in the results. This action always returns the latest version of an edited message.

Also, 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

Creating a Request

data ListChannelMessages Source #

See: newListChannelMessages smart constructor.

Constructors

ListChannelMessages' 

Fields

Instances

Instances details
ToHeaders ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

ToPath ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

ToQuery ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

AWSRequest ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

Associated Types

type AWSResponse ListChannelMessages #

Generic ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

Associated Types

type Rep ListChannelMessages :: Type -> Type #

Show ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

NFData ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

Methods

rnf :: ListChannelMessages -> () #

Eq ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

Hashable ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

type AWSResponse ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

type Rep ListChannelMessages Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

newListChannelMessages Source #

Create a value of ListChannelMessages 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:ListChannelMessages', listChannelMessages_chimeBearer - The AppInstanceUserArn of the user that makes the API call.

$sel:maxResults:ListChannelMessages', listChannelMessages_maxResults - The maximum number of messages that you want returned.

ListChannelMessages, listChannelMessages_nextToken - The token passed by previous API calls until all requested messages are returned.

$sel:notAfter:ListChannelMessages', listChannelMessages_notAfter - The final or ending time stamp for your requested messages.

$sel:notBefore:ListChannelMessages', listChannelMessages_notBefore - The initial or starting time stamp for your requested messages.

$sel:sortOrder:ListChannelMessages', listChannelMessages_sortOrder - The order in which you want messages sorted. Default is Descending, based on time created.

ListChannelMessages, listChannelMessages_channelArn - The ARN of the channel.

Request Lenses

listChannelMessages_chimeBearer :: Lens' ListChannelMessages (Maybe Text) Source #

The AppInstanceUserArn of the user that makes the API call.

listChannelMessages_maxResults :: Lens' ListChannelMessages (Maybe Natural) Source #

The maximum number of messages that you want returned.

listChannelMessages_nextToken :: Lens' ListChannelMessages (Maybe Text) Source #

The token passed by previous API calls until all requested messages are returned.

listChannelMessages_notAfter :: Lens' ListChannelMessages (Maybe UTCTime) Source #

The final or ending time stamp for your requested messages.

listChannelMessages_notBefore :: Lens' ListChannelMessages (Maybe UTCTime) Source #

The initial or starting time stamp for your requested messages.

listChannelMessages_sortOrder :: Lens' ListChannelMessages (Maybe SortOrder) Source #

The order in which you want messages sorted. Default is Descending, based on time created.

Destructuring the Response

data ListChannelMessagesResponse Source #

See: newListChannelMessagesResponse smart constructor.

Constructors

ListChannelMessagesResponse' 

Fields

Instances

Instances details
Generic ListChannelMessagesResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

Associated Types

type Rep ListChannelMessagesResponse :: Type -> Type #

Show ListChannelMessagesResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

NFData ListChannelMessagesResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

Eq ListChannelMessagesResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

type Rep ListChannelMessagesResponse Source # 
Instance details

Defined in Amazonka.Chime.ListChannelMessages

type Rep ListChannelMessagesResponse = D1 ('MetaData "ListChannelMessagesResponse" "Amazonka.Chime.ListChannelMessages" "amazonka-chime-2.0-AQIuSSkHccQ9VXokPBc5Nb" 'False) (C1 ('MetaCons "ListChannelMessagesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "channelMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ChannelMessageSummary]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListChannelMessagesResponse Source #

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

ListChannelMessages, listChannelMessagesResponse_channelArn - The ARN of the channel containing the requested messages.

$sel:channelMessages:ListChannelMessagesResponse', listChannelMessagesResponse_channelMessages - The information about, and content of, each requested message.

ListChannelMessages, listChannelMessagesResponse_nextToken - The token passed by previous API calls until all requested messages are returned.

$sel:httpStatus:ListChannelMessagesResponse', listChannelMessagesResponse_httpStatus - The response's http status code.

Response Lenses

listChannelMessagesResponse_channelArn :: Lens' ListChannelMessagesResponse (Maybe Text) Source #

The ARN of the channel containing the requested messages.

listChannelMessagesResponse_channelMessages :: Lens' ListChannelMessagesResponse (Maybe [ChannelMessageSummary]) Source #

The information about, and content of, each requested message.

listChannelMessagesResponse_nextToken :: Lens' ListChannelMessagesResponse (Maybe Text) Source #

The token passed by previous API calls until all requested messages are returned.