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

  • 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 in this operation.

  • principal :: Text

    The principal.

Instances

Instances details
Eq ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Read ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Show ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Generic ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Associated Types

type Rep ListPrincipalThings :: Type -> Type #

NFData ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Methods

rnf :: ListPrincipalThings -> () #

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

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

type Rep ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

type Rep ListPrincipalThings = D1 ('MetaData "ListPrincipalThings" "Amazonka.IoT.ListPrincipalThings" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListPrincipalThings'" '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 "principal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListPrincipalThings Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

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

$sel:principal:ListPrincipalThings', listPrincipalThings_principal - The principal.

Request Lenses

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.

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

The maximum number of results to return in this operation.

Destructuring the Response

data ListPrincipalThingsResponse Source #

The output from the ListPrincipalThings operation.

See: newListPrincipalThingsResponse smart constructor.

Constructors

ListPrincipalThingsResponse' 

Fields

Instances

Instances details
Eq ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Read ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Show ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Generic ListPrincipalThingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListPrincipalThings

Associated Types

type Rep ListPrincipalThingsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotZSamazonka-iot" '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:

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