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

Description

List the thing groups to which the specified thing belongs.

Requires permission to access the ListThingGroupsForThing action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListThingGroupsForThing Source #

See: newListThingGroupsForThing smart constructor.

Constructors

ListThingGroupsForThing' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return at one time.

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

  • thingName :: Text

    The thing name.

Instances

Instances details
ToHeaders ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

ToPath ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

ToQuery ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

AWSPager ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

AWSRequest ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Generic ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Associated Types

type Rep ListThingGroupsForThing :: Type -> Type #

Read ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Show ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

NFData ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Methods

rnf :: ListThingGroupsForThing -> () #

Eq ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Hashable ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

type AWSResponse ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

type Rep ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

type Rep ListThingGroupsForThing = D1 ('MetaData "ListThingGroupsForThing" "Amazonka.IoT.ListThingGroupsForThing" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListThingGroupsForThing'" '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 "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListThingGroupsForThing Source #

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

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

ListThingGroupsForThing, listThingGroupsForThing_thingName - The thing name.

Request Lenses

listThingGroupsForThing_maxResults :: Lens' ListThingGroupsForThing (Maybe Natural) Source #

The maximum number of results to return at one time.

listThingGroupsForThing_nextToken :: Lens' ListThingGroupsForThing (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.

Destructuring the Response

data ListThingGroupsForThingResponse Source #

See: newListThingGroupsForThingResponse smart constructor.

Constructors

ListThingGroupsForThingResponse' 

Fields

Instances

Instances details
Generic ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Associated Types

type Rep ListThingGroupsForThingResponse :: Type -> Type #

Read ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Show ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

NFData ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Eq ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

type Rep ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

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

newListThingGroupsForThingResponse Source #

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

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

$sel:thingGroups:ListThingGroupsForThingResponse', listThingGroupsForThingResponse_thingGroups - The thing groups.

$sel:httpStatus:ListThingGroupsForThingResponse', listThingGroupsForThingResponse_httpStatus - The response's http status code.

Response Lenses

listThingGroupsForThingResponse_nextToken :: Lens' ListThingGroupsForThingResponse (Maybe Text) Source #

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