| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.ListTargetsForPolicy
Description
List targets for the specified policy.
Requires permission to access the ListTargetsForPolicy action.
This operation returns paginated results.
Synopsis
- data ListTargetsForPolicy = ListTargetsForPolicy' {}
- newListTargetsForPolicy :: Text -> ListTargetsForPolicy
- listTargetsForPolicy_marker :: Lens' ListTargetsForPolicy (Maybe Text)
- listTargetsForPolicy_pageSize :: Lens' ListTargetsForPolicy (Maybe Natural)
- listTargetsForPolicy_policyName :: Lens' ListTargetsForPolicy Text
- data ListTargetsForPolicyResponse = ListTargetsForPolicyResponse' {
- nextMarker :: Maybe Text
- targets :: Maybe [Text]
- httpStatus :: Int
- newListTargetsForPolicyResponse :: Int -> ListTargetsForPolicyResponse
- listTargetsForPolicyResponse_nextMarker :: Lens' ListTargetsForPolicyResponse (Maybe Text)
- listTargetsForPolicyResponse_targets :: Lens' ListTargetsForPolicyResponse (Maybe [Text])
- listTargetsForPolicyResponse_httpStatus :: Lens' ListTargetsForPolicyResponse Int
Creating a Request
data ListTargetsForPolicy Source #
See: newListTargetsForPolicy smart constructor.
Constructors
| ListTargetsForPolicy' | |
Instances
newListTargetsForPolicy Source #
Arguments
| :: Text | |
| -> ListTargetsForPolicy |
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.
listTargetsForPolicy_policyName :: Lens' ListTargetsForPolicy Text Source #
The policy name.
Destructuring the Response
data ListTargetsForPolicyResponse Source #
See: newListTargetsForPolicyResponse smart constructor.
Constructors
| ListTargetsForPolicyResponse' | |
Fields
| |
Instances
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
listTargetsForPolicyResponse_nextMarker :: Lens' ListTargetsForPolicyResponse (Maybe Text) Source #
A marker used to get the next set of results.
listTargetsForPolicyResponse_targets :: Lens' ListTargetsForPolicyResponse (Maybe [Text]) Source #
The policy targets.
listTargetsForPolicyResponse_httpStatus :: Lens' ListTargetsForPolicyResponse Int Source #
The response's http status code.