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.ListThings

Description

Lists your things. Use the attributeName and attributeValue parameters to filter your things. For example, calling ListThings with attributeName=Color and attributeValue=Red retrieves all things in the registry that contain an attribute Color with the value Red. For more information, see List Things from the Amazon Web Services IoT Core Developer Guide.

Requires permission to access the ListThings action.

You will not be charged for calling this API if an Access denied error is returned. You will also not be charged if no attributes or pagination token was provided in request and no pagination token and no results were returned.

This operation returns paginated results.

Synopsis

Creating a Request

data ListThings Source #

The input for the ListThings operation.

See: newListThings smart constructor.

Constructors

ListThings' 

Fields

  • attributeName :: Maybe Text

    The attribute name used to search for things.

  • attributeValue :: Maybe Text

    The attribute value used to search for things.

  • maxResults :: Maybe Natural

    The maximum number of results to return in this operation.

  • 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.

  • thingTypeName :: Maybe Text

    The name of the thing type used to search for things.

  • usePrefixAttributeValue :: Maybe Bool

    When true, the action returns the thing resources with attribute values that start with the attributeValue provided.

    When false, or not present, the action returns only the thing resources with attribute values that match the entire attributeValue provided.

Instances

Instances details
ToHeaders ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Methods

toHeaders :: ListThings -> [Header] #

ToPath ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

ToQuery ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

AWSPager ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

AWSRequest ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Associated Types

type AWSResponse ListThings #

Generic ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Associated Types

type Rep ListThings :: Type -> Type #

Read ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Show ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

NFData ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Methods

rnf :: ListThings -> () #

Eq ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Hashable ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

type AWSResponse ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

type Rep ListThings Source # 
Instance details

Defined in Amazonka.IoT.ListThings

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

newListThings :: ListThings Source #

Create a value of ListThings 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:attributeName:ListThings', listThings_attributeName - The attribute name used to search for things.

$sel:attributeValue:ListThings', listThings_attributeValue - The attribute value used to search for things.

$sel:maxResults:ListThings', listThings_maxResults - The maximum number of results to return in this operation.

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

ListThings, listThings_thingTypeName - The name of the thing type used to search for things.

$sel:usePrefixAttributeValue:ListThings', listThings_usePrefixAttributeValue - When true, the action returns the thing resources with attribute values that start with the attributeValue provided.

When false, or not present, the action returns only the thing resources with attribute values that match the entire attributeValue provided.

Request Lenses

listThings_attributeName :: Lens' ListThings (Maybe Text) Source #

The attribute name used to search for things.

listThings_attributeValue :: Lens' ListThings (Maybe Text) Source #

The attribute value used to search for things.

listThings_maxResults :: Lens' ListThings (Maybe Natural) Source #

The maximum number of results to return in this operation.

listThings_nextToken :: Lens' ListThings (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.

listThings_thingTypeName :: Lens' ListThings (Maybe Text) Source #

The name of the thing type used to search for things.

listThings_usePrefixAttributeValue :: Lens' ListThings (Maybe Bool) Source #

When true, the action returns the thing resources with attribute values that start with the attributeValue provided.

When false, or not present, the action returns only the thing resources with attribute values that match the entire attributeValue provided.

Destructuring the Response

data ListThingsResponse Source #

The output from the ListThings operation.

See: newListThingsResponse smart constructor.

Constructors

ListThingsResponse' 

Fields

Instances

Instances details
Generic ListThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Associated Types

type Rep ListThingsResponse :: Type -> Type #

Read ListThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Show ListThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThings

NFData ListThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThings

Methods

rnf :: ListThingsResponse -> () #

Eq ListThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThings

type Rep ListThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThings

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

newListThingsResponse Source #

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

ListThings, listThingsResponse_nextToken - The token to use to get the next set of results. Will not be returned if operation has returned all results.

$sel:things:ListThingsResponse', listThingsResponse_things - The things.

$sel:httpStatus:ListThingsResponse', listThingsResponse_httpStatus - The response's http status code.

Response Lenses

listThingsResponse_nextToken :: Lens' ListThingsResponse (Maybe Text) Source #

The token to use to get the next set of results. Will not be returned if operation has returned all results.