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

Description

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

Requires permission to access the ListThingPrincipals action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListThingPrincipals Source #

The input for the ListThingPrincipal operation.

See: newListThingPrincipals smart constructor.

Constructors

ListThingPrincipals' 

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.

  • thingName :: Text

    The name of the thing.

Instances

Instances details
Eq ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Read ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Show ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Generic ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Associated Types

type Rep ListThingPrincipals :: Type -> Type #

NFData ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Methods

rnf :: ListThingPrincipals -> () #

Hashable ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

AWSPager ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

AWSRequest ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Associated Types

type AWSResponse ListThingPrincipals #

ToHeaders ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

ToPath ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

ToQuery ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

type Rep ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

type Rep ListThingPrincipals = D1 ('MetaData "ListThingPrincipals" "Amazonka.IoT.ListThingPrincipals" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListThingPrincipals'" '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 ListThingPrincipals Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

newListThingPrincipals Source #

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

$sel:thingName:ListThingPrincipals', listThingPrincipals_thingName - The name of the thing.

Request Lenses

listThingPrincipals_nextToken :: Lens' ListThingPrincipals (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.

listThingPrincipals_maxResults :: Lens' ListThingPrincipals (Maybe Natural) Source #

The maximum number of results to return in this operation.

Destructuring the Response

data ListThingPrincipalsResponse Source #

The output from the ListThingPrincipals operation.

See: newListThingPrincipalsResponse smart constructor.

Constructors

ListThingPrincipalsResponse' 

Fields

Instances

Instances details
Eq ListThingPrincipalsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Read ListThingPrincipalsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Show ListThingPrincipalsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Generic ListThingPrincipalsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

Associated Types

type Rep ListThingPrincipalsResponse :: Type -> Type #

NFData ListThingPrincipalsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

type Rep ListThingPrincipalsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListThingPrincipals

type Rep ListThingPrincipalsResponse = D1 ('MetaData "ListThingPrincipalsResponse" "Amazonka.IoT.ListThingPrincipals" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListThingPrincipalsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "principals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListThingPrincipalsResponse Source #

Create a value of ListThingPrincipalsResponse 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:principals:ListThingPrincipalsResponse', listThingPrincipalsResponse_principals - The principals associated with the thing.

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

$sel:httpStatus:ListThingPrincipalsResponse', listThingPrincipalsResponse_httpStatus - The response's http status code.

Response Lenses

listThingPrincipalsResponse_nextToken :: Lens' ListThingPrincipalsResponse (Maybe Text) Source #

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