Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists the versions of the specified policy and identifies the default version.
Synopsis
- listPolicyVersions :: Text -> ListPolicyVersions
- data ListPolicyVersions
- lpvPolicyName :: Lens' ListPolicyVersions Text
- listPolicyVersionsResponse :: Int -> ListPolicyVersionsResponse
- data ListPolicyVersionsResponse
- lpvrsPolicyVersions :: Lens' ListPolicyVersionsResponse [PolicyVersion]
- lpvrsResponseStatus :: Lens' ListPolicyVersionsResponse Int
Creating a Request
Creates a value of ListPolicyVersions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpvPolicyName
- The policy name.
data ListPolicyVersions Source #
The input for the ListPolicyVersions operation.
See: listPolicyVersions
smart constructor.
Instances
Request Lenses
lpvPolicyName :: Lens' ListPolicyVersions Text Source #
The policy name.
Destructuring the Response
listPolicyVersionsResponse Source #
Creates a value of ListPolicyVersionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpvrsPolicyVersions
- The policy versions.lpvrsResponseStatus
- -- | The response status code.
data ListPolicyVersionsResponse Source #
The output from the ListPolicyVersions operation.
See: listPolicyVersionsResponse
smart constructor.
Instances
Response Lenses
lpvrsPolicyVersions :: Lens' ListPolicyVersionsResponse [PolicyVersion] Source #
The policy versions.
lpvrsResponseStatus :: Lens' ListPolicyVersionsResponse Int Source #
- - | The response status code.