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

Description

Lists the policies attached to the specified thing group.

Requires permission to access the ListAttachedPolicies action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAttachedPolicies Source #

See: newListAttachedPolicies smart constructor.

Constructors

ListAttachedPolicies' 

Fields

  • marker :: Maybe Text

    The token to retrieve the next set of results.

  • recursive :: Maybe Bool

    When true, recursively list attached policies.

  • pageSize :: Maybe Natural

    The maximum number of results to be returned per request.

  • target :: Text

    The group or principal for which the policies will be listed. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).

Instances

Instances details
Eq ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Read ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Show ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Generic ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Associated Types

type Rep ListAttachedPolicies :: Type -> Type #

NFData ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Methods

rnf :: ListAttachedPolicies -> () #

Hashable ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

ToJSON ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

AWSPager ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

AWSRequest ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Associated Types

type AWSResponse ListAttachedPolicies #

ToHeaders ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

ToPath ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

ToQuery ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

type Rep ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

type Rep ListAttachedPolicies = D1 ('MetaData "ListAttachedPolicies" "Amazonka.IoT.ListAttachedPolicies" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListAttachedPolicies'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "recursive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListAttachedPolicies Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

newListAttachedPolicies Source #

Create a value of ListAttachedPolicies 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:marker:ListAttachedPolicies', listAttachedPolicies_marker - The token to retrieve the next set of results.

$sel:recursive:ListAttachedPolicies', listAttachedPolicies_recursive - When true, recursively list attached policies.

$sel:pageSize:ListAttachedPolicies', listAttachedPolicies_pageSize - The maximum number of results to be returned per request.

$sel:target:ListAttachedPolicies', listAttachedPolicies_target - The group or principal for which the policies will be listed. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).

Request Lenses

listAttachedPolicies_marker :: Lens' ListAttachedPolicies (Maybe Text) Source #

The token to retrieve the next set of results.

listAttachedPolicies_recursive :: Lens' ListAttachedPolicies (Maybe Bool) Source #

When true, recursively list attached policies.

listAttachedPolicies_pageSize :: Lens' ListAttachedPolicies (Maybe Natural) Source #

The maximum number of results to be returned per request.

listAttachedPolicies_target :: Lens' ListAttachedPolicies Text Source #

The group or principal for which the policies will be listed. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).

Destructuring the Response

data ListAttachedPoliciesResponse Source #

See: newListAttachedPoliciesResponse smart constructor.

Constructors

ListAttachedPoliciesResponse' 

Fields

Instances

Instances details
Eq ListAttachedPoliciesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Read ListAttachedPoliciesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Show ListAttachedPoliciesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Generic ListAttachedPoliciesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

Associated Types

type Rep ListAttachedPoliciesResponse :: Type -> Type #

NFData ListAttachedPoliciesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

type Rep ListAttachedPoliciesResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAttachedPolicies

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

newListAttachedPoliciesResponse Source #

Create a value of ListAttachedPoliciesResponse 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:nextMarker:ListAttachedPoliciesResponse', listAttachedPoliciesResponse_nextMarker - The token to retrieve the next set of results, or ``null`` if there are no more results.

$sel:policies:ListAttachedPoliciesResponse', listAttachedPoliciesResponse_policies - The policies.

$sel:httpStatus:ListAttachedPoliciesResponse', listAttachedPoliciesResponse_httpStatus - The response's http status code.

Response Lenses

listAttachedPoliciesResponse_nextMarker :: Lens' ListAttachedPoliciesResponse (Maybe Text) Source #

The token to retrieve the next set of results, or ``null`` if there are no more results.