libZSservicesZSamazonka-iot-dataplaneZSamazonka-iot-dataplane
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.IoTData.ListRetainedMessages

Description

Lists summary information about the retained messages stored for the account.

This action returns only the topic names of the retained messages. It doesn't return any message payloads. Although this action doesn't return a message payload, it can still incur messaging costs.

To get the message payload of a retained message, call GetRetainedMessage with the topic name of the retained message.

Requires permission to access the ListRetainedMessages action.

For more information about messaging costs, see IoT Core pricing - Messaging.

This operation returns paginated results.

Synopsis

Creating a Request

data ListRetainedMessages Source #

See: newListRetainedMessages smart constructor.

Constructors

ListRetainedMessages' 

Fields

  • nextToken :: Maybe Text

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

  • maxResults :: Maybe Natural

    The maximum number of results to return at one time.

Instances

Instances details
Eq ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Read ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Show ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Generic ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Associated Types

type Rep ListRetainedMessages :: Type -> Type #

NFData ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Methods

rnf :: ListRetainedMessages -> () #

Hashable ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

AWSPager ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

AWSRequest ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Associated Types

type AWSResponse ListRetainedMessages #

ToHeaders ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

ToPath ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

ToQuery ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

type Rep ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

type Rep ListRetainedMessages = D1 ('MetaData "ListRetainedMessages" "Amazonka.IoTData.ListRetainedMessages" "libZSservicesZSamazonka-iot-dataplaneZSamazonka-iot-dataplane" 'False) (C1 ('MetaCons "ListRetainedMessages'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

newListRetainedMessages :: ListRetainedMessages Source #

Create a value of ListRetainedMessages 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:nextToken:ListRetainedMessages', listRetainedMessages_nextToken - To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

$sel:maxResults:ListRetainedMessages', listRetainedMessages_maxResults - The maximum number of results to return at one time.

Request Lenses

listRetainedMessages_nextToken :: Lens' ListRetainedMessages (Maybe Text) Source #

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

listRetainedMessages_maxResults :: Lens' ListRetainedMessages (Maybe Natural) Source #

The maximum number of results to return at one time.

Destructuring the Response

data ListRetainedMessagesResponse Source #

See: newListRetainedMessagesResponse smart constructor.

Constructors

ListRetainedMessagesResponse' 

Fields

Instances

Instances details
Eq ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Read ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Show ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Generic ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Associated Types

type Rep ListRetainedMessagesResponse :: Type -> Type #

NFData ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

type Rep ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

type Rep ListRetainedMessagesResponse = D1 ('MetaData "ListRetainedMessagesResponse" "Amazonka.IoTData.ListRetainedMessages" "libZSservicesZSamazonka-iot-dataplaneZSamazonka-iot-dataplane" 'False) (C1 ('MetaCons "ListRetainedMessagesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "retainedTopics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RetainedMessageSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListRetainedMessagesResponse Source #

Create a value of ListRetainedMessagesResponse 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:retainedTopics:ListRetainedMessagesResponse', listRetainedMessagesResponse_retainedTopics - A summary list the account's retained messages. The information returned doesn't include the message payloads of the retained messages.

$sel:nextToken:ListRetainedMessages', listRetainedMessagesResponse_nextToken - The token for the next set of results, or null if there are no additional results.

$sel:httpStatus:ListRetainedMessagesResponse', listRetainedMessagesResponse_httpStatus - The response's http status code.

Response Lenses

listRetainedMessagesResponse_retainedTopics :: Lens' ListRetainedMessagesResponse (Maybe [RetainedMessageSummary]) Source #

A summary list the account's retained messages. The information returned doesn't include the message payloads of the retained messages.

listRetainedMessagesResponse_nextToken :: Lens' ListRetainedMessagesResponse (Maybe Text) Source #

The token for the next set of results, or null if there are no additional results.