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 |
Lists the policies attached to the specified thing group.
Requires permission to access the ListAttachedPolicies action.
This operation returns paginated results.
Synopsis
- data ListAttachedPolicies = ListAttachedPolicies' {}
- newListAttachedPolicies :: Text -> ListAttachedPolicies
- listAttachedPolicies_marker :: Lens' ListAttachedPolicies (Maybe Text)
- listAttachedPolicies_recursive :: Lens' ListAttachedPolicies (Maybe Bool)
- listAttachedPolicies_pageSize :: Lens' ListAttachedPolicies (Maybe Natural)
- listAttachedPolicies_target :: Lens' ListAttachedPolicies Text
- data ListAttachedPoliciesResponse = ListAttachedPoliciesResponse' {
- nextMarker :: Maybe Text
- policies :: Maybe [Policy]
- httpStatus :: Int
- newListAttachedPoliciesResponse :: Int -> ListAttachedPoliciesResponse
- listAttachedPoliciesResponse_nextMarker :: Lens' ListAttachedPoliciesResponse (Maybe Text)
- listAttachedPoliciesResponse_policies :: Lens' ListAttachedPoliciesResponse (Maybe [Policy])
- listAttachedPoliciesResponse_httpStatus :: Lens' ListAttachedPoliciesResponse Int
Creating a Request
data ListAttachedPolicies Source #
See: newListAttachedPolicies
smart constructor.
ListAttachedPolicies' | |
|
Instances
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.
ListAttachedPoliciesResponse' | |
|
Instances
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.
listAttachedPoliciesResponse_policies :: Lens' ListAttachedPoliciesResponse (Maybe [Policy]) Source #
The policies.
listAttachedPoliciesResponse_httpStatus :: Lens' ListAttachedPoliciesResponse Int Source #
The response's http status code.