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 versions of the specified policy and identifies the default version.
Requires permission to access the ListPolicyVersions action.
Synopsis
- data ListPolicyVersions = ListPolicyVersions' {
- policyName :: Text
- newListPolicyVersions :: Text -> ListPolicyVersions
- listPolicyVersions_policyName :: Lens' ListPolicyVersions Text
- data ListPolicyVersionsResponse = ListPolicyVersionsResponse' {}
- newListPolicyVersionsResponse :: Int -> ListPolicyVersionsResponse
- listPolicyVersionsResponse_policyVersions :: Lens' ListPolicyVersionsResponse (Maybe [PolicyVersion])
- listPolicyVersionsResponse_httpStatus :: Lens' ListPolicyVersionsResponse Int
Creating a Request
data ListPolicyVersions Source #
The input for the ListPolicyVersions operation.
See: newListPolicyVersions
smart constructor.
ListPolicyVersions' | |
|
Instances
newListPolicyVersions Source #
Create a value of ListPolicyVersions
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:policyName:ListPolicyVersions'
, listPolicyVersions_policyName
- The policy name.
Request Lenses
listPolicyVersions_policyName :: Lens' ListPolicyVersions Text Source #
The policy name.
Destructuring the Response
data ListPolicyVersionsResponse Source #
The output from the ListPolicyVersions operation.
See: newListPolicyVersionsResponse
smart constructor.
ListPolicyVersionsResponse' | |
|
Instances
newListPolicyVersionsResponse Source #
Create a value of ListPolicyVersionsResponse
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:policyVersions:ListPolicyVersionsResponse'
, listPolicyVersionsResponse_policyVersions
- The policy versions.
$sel:httpStatus:ListPolicyVersionsResponse'
, listPolicyVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
listPolicyVersionsResponse_policyVersions :: Lens' ListPolicyVersionsResponse (Maybe [PolicyVersion]) Source #
The policy versions.
listPolicyVersionsResponse_httpStatus :: Lens' ListPolicyVersionsResponse Int Source #
The response's http status code.