amazonka-iot-2.0: Amazon IoT 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.IoT.ListOTAUpdates

Description

Lists OTA updates.

Requires permission to access the ListOTAUpdates action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListOTAUpdates Source #

See: newListOTAUpdates smart constructor.

Constructors

ListOTAUpdates' 

Fields

Instances

Instances details
ToHeaders ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

ToPath ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

ToQuery ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

AWSPager ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

AWSRequest ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Associated Types

type AWSResponse ListOTAUpdates #

Generic ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Associated Types

type Rep ListOTAUpdates :: Type -> Type #

Read ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Show ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

NFData ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Methods

rnf :: ListOTAUpdates -> () #

Eq ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Hashable ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

type AWSResponse ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

type Rep ListOTAUpdates Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

type Rep ListOTAUpdates = D1 ('MetaData "ListOTAUpdates" "Amazonka.IoT.ListOTAUpdates" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListOTAUpdates'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "otaUpdateStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OTAUpdateStatus)))))

newListOTAUpdates :: ListOTAUpdates Source #

Create a value of ListOTAUpdates 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:ListOTAUpdates', listOTAUpdates_maxResults - The maximum number of results to return at one time.

ListOTAUpdates, listOTAUpdates_nextToken - A token used to retrieve the next set of results.

ListOTAUpdates, listOTAUpdates_otaUpdateStatus - The OTA update job status.

Request Lenses

listOTAUpdates_maxResults :: Lens' ListOTAUpdates (Maybe Natural) Source #

The maximum number of results to return at one time.

listOTAUpdates_nextToken :: Lens' ListOTAUpdates (Maybe Text) Source #

A token used to retrieve the next set of results.

Destructuring the Response

data ListOTAUpdatesResponse Source #

See: newListOTAUpdatesResponse smart constructor.

Constructors

ListOTAUpdatesResponse' 

Fields

Instances

Instances details
Generic ListOTAUpdatesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Associated Types

type Rep ListOTAUpdatesResponse :: Type -> Type #

Read ListOTAUpdatesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Show ListOTAUpdatesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

NFData ListOTAUpdatesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

Methods

rnf :: ListOTAUpdatesResponse -> () #

Eq ListOTAUpdatesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

type Rep ListOTAUpdatesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListOTAUpdates

type Rep ListOTAUpdatesResponse = D1 ('MetaData "ListOTAUpdatesResponse" "Amazonka.IoT.ListOTAUpdates" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListOTAUpdatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "otaUpdates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [OTAUpdateSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListOTAUpdatesResponse Source #

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

ListOTAUpdates, listOTAUpdatesResponse_nextToken - A token to use to get the next set of results.

$sel:otaUpdates:ListOTAUpdatesResponse', listOTAUpdatesResponse_otaUpdates - A list of OTA update jobs.

$sel:httpStatus:ListOTAUpdatesResponse', listOTAUpdatesResponse_httpStatus - The response's http status code.

Response Lenses

listOTAUpdatesResponse_nextToken :: Lens' ListOTAUpdatesResponse (Maybe Text) Source #

A token to use to get the next set of results.