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

Description

Lists the things associated with the specified principal. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

Requires permission to access the ListPrincipalThings action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPrincipalThings Source #

The input for the ListPrincipalThings operation.

See: newListPrincipalThings smart constructor.

Constructors

ListPrincipalThings' 

Fields

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

  • principal :: Text

    The principal.

Instances

Instances details
ToHeaders ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

ToPath ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

ToQuery ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

AWSPager ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

AWSRequest ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Associated Types

type AWSResponse ListPrincipalThings #

Generic ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Associated Types

type Rep ListPrincipalThings :: Type -> Type #

Read ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Show ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

NFData ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Methods

rnf :: ListPrincipalThings -> () #

Eq ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Hashable ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

type AWSResponse ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

type Rep ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

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

newListPrincipalThings Source #

Create a value of ListPrincipalThings 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:ListPrincipalThings', listPrincipalThings_maxResults - The maximum number of results to return in this operation.

ListPrincipalThings, listPrincipalThings_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:principal:ListPrincipalThings', listPrincipalThings_principal - The principal.

Request Lenses

listPrincipalThings_maxResults :: Lens' ListPrincipalThings (Maybe Natural) Source #

The maximum number of results to return in this operation.

listPrincipalThings_nextToken :: Lens' ListPrincipalThings (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 ListPrincipalThingsResponse Source #

The output from the ListPrincipalThings operation.

See: newListPrincipalThingsResponse smart constructor.

Constructors

ListPrincipalThingsResponse' 

Fields

Instances

Instances details
Generic ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Associated Types

type Rep ListPrincipalThingsResponse :: Type -> Type #

Read ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Show ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

NFData ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Eq ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

type Rep ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

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

newListPrincipalThingsResponse Source #

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

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

$sel:things:ListPrincipalThingsResponse', listPrincipalThingsResponse_things - The things.

$sel:httpStatus:ListPrincipalThingsResponse', listPrincipalThingsResponse_httpStatus - The response's http status code.

Response Lenses

listPrincipalThingsResponse_nextToken :: Lens' ListPrincipalThingsResponse (Maybe Text) Source #

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