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

Description

Derived from API version 2015-05-28 of the AWS service descriptions, licensed under Apache 2.0.

IoT data

IoT data enables secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the Amazon Web Services cloud. It implements a broker for applications and things to publish messages over HTTP (Publish) and retrieve, update, and delete shadows. A shadow is a persistent representation of your things and their state in the Amazon Web Services cloud.

Find the endpoint address for actions in IoT data by running this CLI command:

aws iot describe-endpoint --endpoint-type iot:Data-ATS

The service name used by Amazon Web ServicesSignature Version 4 to sign requests is: iotdevicegateway.

Synopsis

Service Configuration

defaultService :: Service Source #

API version 2015-05-28 of the Amazon IoT Data Plane SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by IoTData.

ConflictException

_ConflictException :: AsError a => Fold a ServiceError Source #

The specified version does not match the version of the document.

InternalFailureException

_InternalFailureException :: AsError a => Fold a ServiceError Source #

An unexpected error has occurred.

InvalidRequestException

_InvalidRequestException :: AsError a => Fold a ServiceError Source #

The request is not valid.

MethodNotAllowedException

_MethodNotAllowedException :: AsError a => Fold a ServiceError Source #

The specified combination of HTTP verb and URI is not supported.

RequestEntityTooLargeException

_RequestEntityTooLargeException :: AsError a => Fold a ServiceError Source #

The payload exceeds the maximum size allowed.

ResourceNotFoundException

_ResourceNotFoundException :: AsError a => Fold a ServiceError Source #

The specified resource does not exist.

ServiceUnavailableException

_ServiceUnavailableException :: AsError a => Fold a ServiceError Source #

The service is temporarily unavailable.

ThrottlingException

_ThrottlingException :: AsError a => Fold a ServiceError Source #

The rate exceeds the limit.

UnauthorizedException

_UnauthorizedException :: AsError a => Fold a ServiceError Source #

You are not authorized to perform this operation.

UnsupportedDocumentEncodingException

_UnsupportedDocumentEncodingException :: AsError a => Fold a ServiceError Source #

The document encoding is not supported.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

DeleteThingShadow

data DeleteThingShadow Source #

The input for the DeleteThingShadow operation.

See: newDeleteThingShadow smart constructor.

Instances

Instances details
ToHeaders DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

ToPath DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

ToQuery DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

AWSRequest DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

Associated Types

type AWSResponse DeleteThingShadow #

Generic DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

Associated Types

type Rep DeleteThingShadow :: Type -> Type #

Read DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

Show DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

NFData DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

Methods

rnf :: DeleteThingShadow -> () #

Eq DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

Hashable DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

type AWSResponse DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

type Rep DeleteThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

type Rep DeleteThingShadow = D1 ('MetaData "DeleteThingShadow" "Amazonka.IoTData.DeleteThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "DeleteThingShadow'" 'PrefixI 'True) (S1 ('MetaSel ('Just "shadowName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteThingShadow Source #

Create a value of DeleteThingShadow 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:shadowName:DeleteThingShadow', deleteThingShadow_shadowName - The name of the shadow.

$sel:thingName:DeleteThingShadow', deleteThingShadow_thingName - The name of the thing.

data DeleteThingShadowResponse Source #

The output from the DeleteThingShadow operation.

See: newDeleteThingShadowResponse smart constructor.

Instances

Instances details
Generic DeleteThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

Associated Types

type Rep DeleteThingShadowResponse :: Type -> Type #

Show DeleteThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

NFData DeleteThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

Eq DeleteThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

type Rep DeleteThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.DeleteThingShadow

type Rep DeleteThingShadowResponse = D1 ('MetaData "DeleteThingShadowResponse" "Amazonka.IoTData.DeleteThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "DeleteThingShadowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))

newDeleteThingShadowResponse Source #

Create a value of DeleteThingShadowResponse 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:httpStatus:DeleteThingShadowResponse', deleteThingShadowResponse_httpStatus - The response's http status code.

$sel:payload:DeleteThingShadowResponse', deleteThingShadowResponse_payload - The state information, in JSON format.

GetRetainedMessage

data GetRetainedMessage Source #

The input for the GetRetainedMessage operation.

See: newGetRetainedMessage smart constructor.

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.

data GetRetainedMessageResponse Source #

The output from the GetRetainedMessage operation.

See: newGetRetainedMessageResponse smart constructor.

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.

GetThingShadow

data GetThingShadow Source #

The input for the GetThingShadow operation.

See: newGetThingShadow smart constructor.

Constructors

GetThingShadow' (Maybe Text) Text 

Instances

Instances details
ToHeaders GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

ToPath GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

ToQuery GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

AWSRequest GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Associated Types

type AWSResponse GetThingShadow #

Generic GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Associated Types

type Rep GetThingShadow :: Type -> Type #

Read GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Show GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

NFData GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Methods

rnf :: GetThingShadow -> () #

Eq GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Hashable GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type AWSResponse GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadow = D1 ('MetaData "GetThingShadow" "Amazonka.IoTData.GetThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "GetThingShadow'" 'PrefixI 'True) (S1 ('MetaSel ('Just "shadowName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetThingShadow Source #

Create a value of GetThingShadow 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:shadowName:GetThingShadow', getThingShadow_shadowName - The name of the shadow.

$sel:thingName:GetThingShadow', getThingShadow_thingName - The name of the thing.

data GetThingShadowResponse Source #

The output from the GetThingShadow operation.

See: newGetThingShadowResponse smart constructor.

Instances

Instances details
Generic GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Associated Types

type Rep GetThingShadowResponse :: Type -> Type #

Show GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

NFData GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Methods

rnf :: GetThingShadowResponse -> () #

Eq GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadowResponse = D1 ('MetaData "GetThingShadowResponse" "Amazonka.IoTData.GetThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "GetThingShadowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetThingShadowResponse Source #

Create a value of GetThingShadowResponse 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:payload:GetThingShadowResponse', getThingShadowResponse_payload - The state information, in JSON format.

$sel:httpStatus:GetThingShadowResponse', getThingShadowResponse_httpStatus - The response's http status code.

ListNamedShadowsForThing

data ListNamedShadowsForThing Source #

See: newListNamedShadowsForThing smart constructor.

Instances

Instances details
ToHeaders ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

ToPath ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

ToQuery ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

AWSRequest ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Generic ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Associated Types

type Rep ListNamedShadowsForThing :: Type -> Type #

Read ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Show ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

NFData ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Eq ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Hashable ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

type AWSResponse ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

type Rep ListNamedShadowsForThing Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

type Rep ListNamedShadowsForThing = D1 ('MetaData "ListNamedShadowsForThing" "Amazonka.IoTData.ListNamedShadowsForThing" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "ListNamedShadowsForThing'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListNamedShadowsForThing Source #

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

ListNamedShadowsForThing, listNamedShadowsForThing_nextToken - The token to retrieve the next set of results.

$sel:pageSize:ListNamedShadowsForThing', listNamedShadowsForThing_pageSize - The result page size.

$sel:thingName:ListNamedShadowsForThing', listNamedShadowsForThing_thingName - The name of the thing.

data ListNamedShadowsForThingResponse Source #

See: newListNamedShadowsForThingResponse smart constructor.

Instances

Instances details
Generic ListNamedShadowsForThingResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Associated Types

type Rep ListNamedShadowsForThingResponse :: Type -> Type #

Read ListNamedShadowsForThingResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Show ListNamedShadowsForThingResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

NFData ListNamedShadowsForThingResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

Eq ListNamedShadowsForThingResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

type Rep ListNamedShadowsForThingResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListNamedShadowsForThing

type Rep ListNamedShadowsForThingResponse = D1 ('MetaData "ListNamedShadowsForThingResponse" "Amazonka.IoTData.ListNamedShadowsForThing" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "ListNamedShadowsForThingResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListNamedShadowsForThingResponse Source #

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

ListNamedShadowsForThing, listNamedShadowsForThingResponse_nextToken - The token to use to get the next set of results, or null if there are no additional results.

$sel:results:ListNamedShadowsForThingResponse', listNamedShadowsForThingResponse_results - The list of shadows for the specified thing.

$sel:timestamp:ListNamedShadowsForThingResponse', listNamedShadowsForThingResponse_timestamp - The Epoch date and time the response was generated by IoT.

$sel:httpStatus:ListNamedShadowsForThingResponse', listNamedShadowsForThingResponse_httpStatus - The response's http status code.

ListRetainedMessages (Paginated)

data ListRetainedMessages Source #

See: newListRetainedMessages smart constructor.

Instances

Instances details
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

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 #

Generic ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Associated Types

type Rep ListRetainedMessages :: Type -> Type #

Read ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Show ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

NFData ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Methods

rnf :: ListRetainedMessages -> () #

Eq ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Hashable ListRetainedMessages Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

type AWSResponse 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" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "ListRetainedMessages'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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:maxResults:ListRetainedMessages', listRetainedMessages_maxResults - The maximum number of results to return at one time.

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.

data ListRetainedMessagesResponse Source #

See: newListRetainedMessagesResponse smart constructor.

Instances

Instances details
Generic ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Associated Types

type Rep ListRetainedMessagesResponse :: Type -> Type #

Read ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Show ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

NFData ListRetainedMessagesResponse Source # 
Instance details

Defined in Amazonka.IoTData.ListRetainedMessages

Eq 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" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "ListRetainedMessagesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "retainedTopics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RetainedMessageSummary])) :*: 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:

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

$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:httpStatus:ListRetainedMessagesResponse', listRetainedMessagesResponse_httpStatus - The response's http status code.

Publish

data Publish Source #

The input for the Publish operation.

See: newPublish smart constructor.

Instances

Instances details
ToBody Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

ToHeaders Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Methods

toHeaders :: Publish -> [Header] #

ToPath Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Methods

toPath :: Publish -> ByteString #

ToQuery Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

AWSRequest Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Associated Types

type AWSResponse Publish #

Generic Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Associated Types

type Rep Publish :: Type -> Type #

Methods

from :: Publish -> Rep Publish x #

to :: Rep Publish x -> Publish #

Read Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Show Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

NFData Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Methods

rnf :: Publish -> () #

Eq Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Methods

(==) :: Publish -> Publish -> Bool #

(/=) :: Publish -> Publish -> Bool #

Hashable Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Methods

hashWithSalt :: Int -> Publish -> Int #

hash :: Publish -> Int #

type AWSResponse Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

type Rep Publish Source # 
Instance details

Defined in Amazonka.IoTData.Publish

newPublish Source #

Arguments

:: Text

Publish

-> Publish 

Create a value of Publish 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:contentType:Publish', publish_contentType - A UTF-8 encoded string that describes the content of the publishing message.

$sel:correlationData:Publish', publish_correlationData - The base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received. correlationData is an HTTP header value in the API.

$sel:messageExpiry:Publish', publish_messageExpiry - A user-defined integer value that represents the message expiry interval in seconds. If absent, the message doesn't expire. For more information about the limits of messageExpiry, see Amazon Web Services IoT Core message broker and protocol limits and quotas from the Amazon Web Services Reference Guide.

$sel:payload:Publish', publish_payload - The message body. MQTT accepts text, binary, and empty (null) message payloads.

Publishing an empty (null) payload with retain = true deletes the retained message identified by topic from Amazon Web Services IoT Core.

$sel:payloadFormatIndicator:Publish', publish_payloadFormatIndicator - An Enum string value that indicates whether the payload is formatted as UTF-8. payloadFormatIndicator is an HTTP header value in the API.

Publish, publish_qos - The Quality of Service (QoS) level. The default QoS level is 0.

$sel:responseTopic:Publish', publish_responseTopic - A UTF-8 encoded string that's used as the topic name for a response message. The response topic is used to describe the topic which the receiver should publish to as part of the request-response flow. The topic must not contain wildcard characters.

$sel:retain:Publish', publish_retain - A Boolean value that determines whether to set the RETAIN flag when the message is published.

Setting the RETAIN flag causes the message to be retained and sent to new subscribers to the topic.

Valid values: true | false

Default value: false

$sel:userProperties:Publish', publish_userProperties - A JSON string that contains an array of JSON objects. If you don’t use Amazon Web Services SDK or CLI, you must encode the JSON string to base64 format before adding it to the HTTP header. userProperties is an HTTP header value in the API.

The following example userProperties parameter is a JSON string which represents two User Properties. Note that it needs to be base64-encoded:

[{"deviceName": "alpha"}, {"deviceCnt": "45"}]

Publish, publish_topic - The name of the MQTT topic.

data PublishResponse Source #

See: newPublishResponse smart constructor.

Constructors

PublishResponse' 

Instances

Instances details
Generic PublishResponse Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Associated Types

type Rep PublishResponse :: Type -> Type #

Read PublishResponse Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Show PublishResponse Source # 
Instance details

Defined in Amazonka.IoTData.Publish

NFData PublishResponse Source # 
Instance details

Defined in Amazonka.IoTData.Publish

Methods

rnf :: PublishResponse -> () #

Eq PublishResponse Source # 
Instance details

Defined in Amazonka.IoTData.Publish

type Rep PublishResponse Source # 
Instance details

Defined in Amazonka.IoTData.Publish

type Rep PublishResponse = D1 ('MetaData "PublishResponse" "Amazonka.IoTData.Publish" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "PublishResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPublishResponse :: PublishResponse Source #

Create a value of PublishResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

UpdateThingShadow

data UpdateThingShadow Source #

The input for the UpdateThingShadow operation.

See: newUpdateThingShadow smart constructor.

Instances

Instances details
ToBody UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

ToHeaders UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

ToPath UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

ToQuery UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

AWSRequest UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type AWSResponse UpdateThingShadow #

Generic UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadow :: Type -> Type #

Show UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

NFData UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Methods

rnf :: UpdateThingShadow -> () #

Eq UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Hashable UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type AWSResponse UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type Rep UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type Rep UpdateThingShadow = D1 ('MetaData "UpdateThingShadow" "Amazonka.IoTData.UpdateThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "UpdateThingShadow'" 'PrefixI 'True) (S1 ('MetaSel ('Just "shadowName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))))

newUpdateThingShadow Source #

Create a value of UpdateThingShadow 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:shadowName:UpdateThingShadow', updateThingShadow_shadowName - The name of the shadow.

$sel:thingName:UpdateThingShadow', updateThingShadow_thingName - The name of the thing.

UpdateThingShadow, updateThingShadow_payload - The state information, in JSON format.

data UpdateThingShadowResponse Source #

The output from the UpdateThingShadow operation.

See: newUpdateThingShadowResponse smart constructor.

Instances

Instances details
Generic UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadowResponse :: Type -> Type #

Show UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

NFData UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Eq UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type Rep UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type Rep UpdateThingShadowResponse = D1 ('MetaData "UpdateThingShadowResponse" "Amazonka.IoTData.UpdateThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "UpdateThingShadowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateThingShadowResponse Source #

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

UpdateThingShadow, updateThingShadowResponse_payload - The state information, in JSON format.

$sel:httpStatus:UpdateThingShadowResponse', updateThingShadowResponse_httpStatus - The response's http status code.

Types

PayloadFormatIndicator

newtype PayloadFormatIndicator Source #

Instances

Instances details
FromJSON PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

FromJSONKey PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToJSON PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToJSONKey PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToByteString PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToHeader PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToLog PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToQuery PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

FromText PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToText PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

FromXML PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

ToXML PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

Generic PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

Associated Types

type Rep PayloadFormatIndicator :: Type -> Type #

Read PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

Show PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

NFData PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

Methods

rnf :: PayloadFormatIndicator -> () #

Eq PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

Ord PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

Hashable PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

type Rep PayloadFormatIndicator Source # 
Instance details

Defined in Amazonka.IoTData.Types.PayloadFormatIndicator

type Rep PayloadFormatIndicator = D1 ('MetaData "PayloadFormatIndicator" "Amazonka.IoTData.Types.PayloadFormatIndicator" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'True) (C1 ('MetaCons "PayloadFormatIndicator'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromPayloadFormatIndicator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

RetainedMessageSummary

data RetainedMessageSummary Source #

Information about a single retained message.

See: newRetainedMessageSummary smart constructor.

Instances

Instances details
FromJSON RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

Generic RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

Associated Types

type Rep RetainedMessageSummary :: Type -> Type #

Read RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

Show RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

NFData RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

Methods

rnf :: RetainedMessageSummary -> () #

Eq RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

Hashable RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

type Rep RetainedMessageSummary Source # 
Instance details

Defined in Amazonka.IoTData.Types.RetainedMessageSummary

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

newRetainedMessageSummary :: RetainedMessageSummary Source #

Create a value of RetainedMessageSummary 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:lastModifiedTime:RetainedMessageSummary', retainedMessageSummary_lastModifiedTime - The Epoch date and time, in milliseconds, when the retained message was stored by IoT.

$sel:payloadSize:RetainedMessageSummary', retainedMessageSummary_payloadSize - The size of the retained message's payload in bytes.

$sel:qos:RetainedMessageSummary', retainedMessageSummary_qos - The quality of service (QoS) level used to publish the retained message.

$sel:topic:RetainedMessageSummary', retainedMessageSummary_topic - The topic name to which the retained message was published.