Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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' {
- targets :: Maybe [Text]
- nextMarker :: Maybe Text
- httpStatus :: Int
- newListTargetsForPolicyResponse :: Int -> ListTargetsForPolicyResponse
- listTargetsForPolicyResponse_targets :: Lens' ListTargetsForPolicyResponse (Maybe [Text])
- listTargetsForPolicyResponse_nextMarker :: Lens' ListTargetsForPolicyResponse (Maybe Text)
- listTargetsForPolicyResponse_httpStatus :: Lens' ListTargetsForPolicyResponse Int
Creating a Request
data ListTargetsForPolicy Source #
See: newListTargetsForPolicy
smart constructor.
Instances
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.
listTargetsForPolicy_policyName :: Lens' ListTargetsForPolicy Text Source #
The policy name.
Destructuring the Response
data ListTargetsForPolicyResponse Source #
See: newListTargetsForPolicyResponse
smart constructor.
ListTargetsForPolicyResponse' | |
|
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: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
listTargetsForPolicyResponse_targets :: Lens' ListTargetsForPolicyResponse (Maybe [Text]) Source #
The policy targets.
listTargetsForPolicyResponse_nextMarker :: Lens' ListTargetsForPolicyResponse (Maybe Text) Source #
A marker used to get the next set of results.
listTargetsForPolicyResponse_httpStatus :: Lens' ListTargetsForPolicyResponse Int Source #
The response's http status code.