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 all of the policy generations requested in the last seven days.
This operation returns paginated results.
Synopsis
- data ListPolicyGenerations = ListPolicyGenerations' {}
- newListPolicyGenerations :: ListPolicyGenerations
- listPolicyGenerations_nextToken :: Lens' ListPolicyGenerations (Maybe Text)
- listPolicyGenerations_principalArn :: Lens' ListPolicyGenerations (Maybe Text)
- listPolicyGenerations_maxResults :: Lens' ListPolicyGenerations (Maybe Natural)
- data ListPolicyGenerationsResponse = ListPolicyGenerationsResponse' {}
- newListPolicyGenerationsResponse :: Int -> ListPolicyGenerationsResponse
- listPolicyGenerationsResponse_nextToken :: Lens' ListPolicyGenerationsResponse (Maybe Text)
- listPolicyGenerationsResponse_httpStatus :: Lens' ListPolicyGenerationsResponse Int
- listPolicyGenerationsResponse_policyGenerations :: Lens' ListPolicyGenerationsResponse [PolicyGeneration]
Creating a Request
data ListPolicyGenerations Source #
See: newListPolicyGenerations
smart constructor.
ListPolicyGenerations' | |
|
Instances
newListPolicyGenerations :: ListPolicyGenerations Source #
Create a value of ListPolicyGenerations
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:nextToken:ListPolicyGenerations'
, listPolicyGenerations_nextToken
- A token used for pagination of results returned.
$sel:principalArn:ListPolicyGenerations'
, listPolicyGenerations_principalArn
- The ARN of the IAM entity (user or role) for which you are generating a
policy. Use this with ListGeneratedPolicies
to filter the results to
only include results for a specific principal.
$sel:maxResults:ListPolicyGenerations'
, listPolicyGenerations_maxResults
- The maximum number of results to return in the response.
Request Lenses
listPolicyGenerations_nextToken :: Lens' ListPolicyGenerations (Maybe Text) Source #
A token used for pagination of results returned.
listPolicyGenerations_principalArn :: Lens' ListPolicyGenerations (Maybe Text) Source #
The ARN of the IAM entity (user or role) for which you are generating a
policy. Use this with ListGeneratedPolicies
to filter the results to
only include results for a specific principal.
listPolicyGenerations_maxResults :: Lens' ListPolicyGenerations (Maybe Natural) Source #
The maximum number of results to return in the response.
Destructuring the Response
data ListPolicyGenerationsResponse Source #
See: newListPolicyGenerationsResponse
smart constructor.
ListPolicyGenerationsResponse' | |
|
Instances
newListPolicyGenerationsResponse Source #
Create a value of ListPolicyGenerationsResponse
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:nextToken:ListPolicyGenerations'
, listPolicyGenerationsResponse_nextToken
- A token used for pagination of results returned.
$sel:httpStatus:ListPolicyGenerationsResponse'
, listPolicyGenerationsResponse_httpStatus
- The response's http status code.
$sel:policyGenerations:ListPolicyGenerationsResponse'
, listPolicyGenerationsResponse_policyGenerations
- A PolicyGeneration
object that contains details about the generated
policy.
Response Lenses
listPolicyGenerationsResponse_nextToken :: Lens' ListPolicyGenerationsResponse (Maybe Text) Source #
A token used for pagination of results returned.
listPolicyGenerationsResponse_httpStatus :: Lens' ListPolicyGenerationsResponse Int Source #
The response's http status code.
listPolicyGenerationsResponse_policyGenerations :: Lens' ListPolicyGenerationsResponse [PolicyGeneration] Source #
A PolicyGeneration
object that contains details about the generated
policy.