libZSservicesZSamazonka-iotZSamazonka-iot
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.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

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

  • maxResults :: Maybe Natural

    The maximum number of results to return at one time.

  • thingName :: Text

    The thing name.

Instances

Instances details
Eq ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Read ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Show 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 #

NFData ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Methods

rnf :: ListThingGroupsForThing -> () #

Hashable 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

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

type Rep ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

type Rep ListThingGroupsForThing = D1 ('MetaData "ListThingGroupsForThing" "Amazonka.IoT.ListThingGroupsForThing" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListThingGroupsForThing'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListThingGroupsForThing Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

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:nextToken: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.

$sel:maxResults:ListThingGroupsForThing', listThingGroupsForThing_maxResults - The maximum number of results to return at one time.

$sel:thingName:ListThingGroupsForThing', listThingGroupsForThing_thingName - The thing name.

Request Lenses

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.

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

The maximum number of results to return at one time.

Destructuring the Response

data ListThingGroupsForThingResponse Source #

See: newListThingGroupsForThingResponse smart constructor.

Constructors

ListThingGroupsForThingResponse' 

Fields

Instances

Instances details
Eq ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Read ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Show ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Generic ListThingGroupsForThingResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingGroupsForThing

Associated Types

type Rep ListThingGroupsForThingResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListThingGroupsForThingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "thingGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GroupNameAndArn])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

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

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

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