Copyright | (c) 2013-2017 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 |
Retrieves information about a policy.
This operation can be called only from the organization's master account.
Creating a Request
Creates a value of DescribePolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dpPolicyId
- The unique identifier (ID) of the policy that you want details about. You can get the ID from theListPolicies
orListPoliciesForTarget
operations. The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
data DescribePolicy Source #
See: describePolicy
smart constructor.
Request Lenses
dpPolicyId :: Lens' DescribePolicy Text Source #
The unique identifier (ID) of the policy that you want details about. You can get the ID from the ListPolicies
or ListPoliciesForTarget
operations. The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
Destructuring the Response
describePolicyResponse Source #
Creates a value of DescribePolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dprsPolicy
- A structure that contains details about the specified policy.dprsResponseStatus
- -- | The response status code.
data DescribePolicyResponse Source #
See: describePolicyResponse
smart constructor.
Response Lenses
dprsPolicy :: Lens' DescribePolicyResponse (Maybe Policy) Source #
A structure that contains details about the specified policy.
dprsResponseStatus :: Lens' DescribePolicyResponse Int Source #
- - | The response status code.