libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph
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.IoTThingsGraph.SearchEntities

Description

Searches for entities of the specified type. You can search for entities in your namespace and the public namespace that you're tracking.

This operation returns paginated results.

Synopsis

Creating a Request

data SearchEntities Source #

See: newSearchEntities smart constructor.

Constructors

SearchEntities' 

Fields

  • filters :: Maybe [EntityFilter]

    Optional filter to apply to the search. Valid filters are NAME NAMESPACE, SEMANTIC_TYPE_PATH and REFERENCED_ENTITY_ID. REFERENCED_ENTITY_ID filters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.

    Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.

  • namespaceVersion :: Maybe Integer

    The version of the user's namespace. Defaults to the latest version of the user's namespace.

  • nextToken :: Maybe Text

    The string that specifies the next page of results. Use this when you're paginating results.

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

  • entityTypes :: [EntityType]

    The entity types for which to search.

Instances

Instances details
Eq SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Read SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Show SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Generic SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Associated Types

type Rep SearchEntities :: Type -> Type #

NFData SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Methods

rnf :: SearchEntities -> () #

Hashable SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

ToJSON SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

AWSPager SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

AWSRequest SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Associated Types

type AWSResponse SearchEntities #

ToHeaders SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

ToPath SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

ToQuery SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

type Rep SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

type Rep SearchEntities = D1 ('MetaData "SearchEntities" "Amazonka.IoTThingsGraph.SearchEntities" "libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph" 'False) (C1 ('MetaCons "SearchEntities'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EntityFilter])) :*: S1 ('MetaSel ('Just "namespaceVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "entityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [EntityType])))))
type AWSResponse SearchEntities Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

newSearchEntities :: SearchEntities Source #

Create a value of SearchEntities 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:filters:SearchEntities', searchEntities_filters - Optional filter to apply to the search. Valid filters are NAME NAMESPACE, SEMANTIC_TYPE_PATH and REFERENCED_ENTITY_ID. REFERENCED_ENTITY_ID filters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.

Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.

$sel:namespaceVersion:SearchEntities', searchEntities_namespaceVersion - The version of the user's namespace. Defaults to the latest version of the user's namespace.

$sel:nextToken:SearchEntities', searchEntities_nextToken - The string that specifies the next page of results. Use this when you're paginating results.

$sel:maxResults:SearchEntities', searchEntities_maxResults - The maximum number of results to return in the response.

$sel:entityTypes:SearchEntities', searchEntities_entityTypes - The entity types for which to search.

Request Lenses

searchEntities_filters :: Lens' SearchEntities (Maybe [EntityFilter]) Source #

Optional filter to apply to the search. Valid filters are NAME NAMESPACE, SEMANTIC_TYPE_PATH and REFERENCED_ENTITY_ID. REFERENCED_ENTITY_ID filters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.

Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.

searchEntities_namespaceVersion :: Lens' SearchEntities (Maybe Integer) Source #

The version of the user's namespace. Defaults to the latest version of the user's namespace.

searchEntities_nextToken :: Lens' SearchEntities (Maybe Text) Source #

The string that specifies the next page of results. Use this when you're paginating results.

searchEntities_maxResults :: Lens' SearchEntities (Maybe Natural) Source #

The maximum number of results to return in the response.

searchEntities_entityTypes :: Lens' SearchEntities [EntityType] Source #

The entity types for which to search.

Destructuring the Response

data SearchEntitiesResponse Source #

See: newSearchEntitiesResponse smart constructor.

Constructors

SearchEntitiesResponse' 

Fields

Instances

Instances details
Eq SearchEntitiesResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Read SearchEntitiesResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Show SearchEntitiesResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Generic SearchEntitiesResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Associated Types

type Rep SearchEntitiesResponse :: Type -> Type #

NFData SearchEntitiesResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

Methods

rnf :: SearchEntitiesResponse -> () #

type Rep SearchEntitiesResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.SearchEntities

type Rep SearchEntitiesResponse = D1 ('MetaData "SearchEntitiesResponse" "Amazonka.IoTThingsGraph.SearchEntities" "libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph" 'False) (C1 ('MetaCons "SearchEntitiesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "descriptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EntityDescription])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSearchEntitiesResponse Source #

Create a value of SearchEntitiesResponse 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:SearchEntities', searchEntitiesResponse_nextToken - The string to specify as nextToken when you request the next page of results.

$sel:descriptions:SearchEntitiesResponse', searchEntitiesResponse_descriptions - An array of descriptions for each entity returned in the search result.

$sel:httpStatus:SearchEntitiesResponse', searchEntitiesResponse_httpStatus - The response's http status code.

Response Lenses

searchEntitiesResponse_nextToken :: Lens' SearchEntitiesResponse (Maybe Text) Source #

The string to specify as nextToken when you request the next page of results.

searchEntitiesResponse_descriptions :: Lens' SearchEntitiesResponse (Maybe [EntityDescription]) Source #

An array of descriptions for each entity returned in the search result.