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

Description

List targets for the specified policy.

Requires permission to access the ListTargetsForPolicy action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTargetsForPolicy Source #

See: newListTargetsForPolicy smart constructor.

Constructors

ListTargetsForPolicy' 

Fields

Instances

Instances details
Eq ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Read ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Show ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Generic ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Associated Types

type Rep ListTargetsForPolicy :: Type -> Type #

NFData ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Methods

rnf :: ListTargetsForPolicy -> () #

Hashable ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

ToJSON ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

AWSPager ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

AWSRequest ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Associated Types

type AWSResponse ListTargetsForPolicy #

ToHeaders ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

ToPath ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

ToQuery ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

type Rep ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

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

Defined in Amazonka.IoT.ListTargetsForPolicy

newListTargetsForPolicy Source #

Create a value of ListTargetsForPolicy 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:ListTargetsForPolicy', listTargetsForPolicy_marker - A marker used to get the next set of results.

$sel:pageSize:ListTargetsForPolicy', listTargetsForPolicy_pageSize - The maximum number of results to return at one time.

$sel:policyName:ListTargetsForPolicy', listTargetsForPolicy_policyName - The policy name.

Request Lenses

listTargetsForPolicy_marker :: Lens' ListTargetsForPolicy (Maybe Text) Source #

A marker used to get the next set of results.

listTargetsForPolicy_pageSize :: Lens' ListTargetsForPolicy (Maybe Natural) Source #

The maximum number of results to return at one time.

Destructuring the Response

data ListTargetsForPolicyResponse Source #

See: newListTargetsForPolicyResponse smart constructor.

Constructors

ListTargetsForPolicyResponse' 

Fields

Instances

Instances details
Eq ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Read ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Show ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Generic ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Associated Types

type Rep ListTargetsForPolicyResponse :: Type -> Type #

NFData ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

type Rep ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

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

newListTargetsForPolicyResponse Source #

Create a value of ListTargetsForPolicyResponse 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:targets:ListTargetsForPolicyResponse', listTargetsForPolicyResponse_targets - The policy targets.

$sel:nextMarker:ListTargetsForPolicyResponse', listTargetsForPolicyResponse_nextMarker - A marker used to get the next set of results.

$sel:httpStatus:ListTargetsForPolicyResponse', listTargetsForPolicyResponse_httpStatus - The response's http status code.

Response Lenses