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.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
ToJSON ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.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

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 #

Generic ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Associated Types

type Rep ListTargetsForPolicy :: Type -> Type #

Read ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Show ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

NFData ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Methods

rnf :: ListTargetsForPolicy -> () #

Eq ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Hashable ListTargetsForPolicy Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

type AWSResponse 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" '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))))

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.

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
Generic ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Associated Types

type Rep ListTargetsForPolicyResponse :: Type -> Type #

Read ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Show ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

NFData ListTargetsForPolicyResponse Source # 
Instance details

Defined in Amazonka.IoT.ListTargetsForPolicy

Eq 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "ListTargetsForPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "targets") '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:nextMarker:ListTargetsForPolicyResponse', listTargetsForPolicyResponse_nextMarker - A marker used to get the next set of results.

ListTargetsForPolicyResponse, listTargetsForPolicyResponse_targets - The policy targets.

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

Response Lenses