amazonka-iot-dataplane-2.0: Amazon IoT Data Plane 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.IoTData.GetRetainedMessage

Description

Gets the details of a single retained message for the specified topic.

This action returns the message payload of the retained message, which can incur messaging costs. To list only the topic names of the retained messages, call ListRetainedMessages.

Requires permission to access the GetRetainedMessage action.

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

Synopsis

Creating a Request

data GetRetainedMessage Source #

The input for the GetRetainedMessage operation.

See: newGetRetainedMessage smart constructor.

Constructors

GetRetainedMessage' 

Fields

  • topic :: Text

    The topic name of the retained message to retrieve.

Instances

Instances details
ToHeaders GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

ToPath GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

ToQuery GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

AWSRequest GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Associated Types

type AWSResponse GetRetainedMessage #

Generic GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Associated Types

type Rep GetRetainedMessage :: Type -> Type #

Read GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Show GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

NFData GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Methods

rnf :: GetRetainedMessage -> () #

Eq GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Hashable GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

type AWSResponse GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

type Rep GetRetainedMessage Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

type Rep GetRetainedMessage = D1 ('MetaData "GetRetainedMessage" "Amazonka.IoTData.GetRetainedMessage" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "GetRetainedMessage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "topic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetRetainedMessage Source #

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

GetRetainedMessage, getRetainedMessage_topic - The topic name of the retained message to retrieve.

Request Lenses

getRetainedMessage_topic :: Lens' GetRetainedMessage Text Source #

The topic name of the retained message to retrieve.

Destructuring the Response

data GetRetainedMessageResponse Source #

The output from the GetRetainedMessage operation.

See: newGetRetainedMessageResponse smart constructor.

Constructors

GetRetainedMessageResponse' 

Fields

Instances

Instances details
Generic GetRetainedMessageResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Associated Types

type Rep GetRetainedMessageResponse :: Type -> Type #

Read GetRetainedMessageResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Show GetRetainedMessageResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

NFData GetRetainedMessageResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

Eq GetRetainedMessageResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

type Rep GetRetainedMessageResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetRetainedMessage

type Rep GetRetainedMessageResponse = D1 ('MetaData "GetRetainedMessageResponse" "Amazonka.IoTData.GetRetainedMessage" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "GetRetainedMessageResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lastModifiedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64))) :*: (S1 ('MetaSel ('Just "qos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "topic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetRetainedMessageResponse Source #

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

GetRetainedMessageResponse, getRetainedMessageResponse_lastModifiedTime - The Epoch date and time, in milliseconds, when the retained message was stored by IoT.

$sel:payload:GetRetainedMessageResponse', getRetainedMessageResponse_payload - The Base64-encoded message payload of the retained message body.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

GetRetainedMessageResponse, getRetainedMessageResponse_qos - The quality of service (QoS) level used to publish the retained message.

GetRetainedMessage, getRetainedMessageResponse_topic - The topic name to which the retained message was published.

$sel:httpStatus:GetRetainedMessageResponse', getRetainedMessageResponse_httpStatus - The response's http status code.

Response Lenses

getRetainedMessageResponse_lastModifiedTime :: Lens' GetRetainedMessageResponse (Maybe Integer) Source #

The Epoch date and time, in milliseconds, when the retained message was stored by IoT.

getRetainedMessageResponse_payload :: Lens' GetRetainedMessageResponse (Maybe ByteString) Source #

The Base64-encoded message payload of the retained message body.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

getRetainedMessageResponse_qos :: Lens' GetRetainedMessageResponse (Maybe Natural) Source #

The quality of service (QoS) level used to publish the retained message.

getRetainedMessageResponse_topic :: Lens' GetRetainedMessageResponse (Maybe Text) Source #

The topic name to which the retained message was published.