Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves information about a policy.
This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.
Synopsis
- data DescribePolicy = DescribePolicy' {}
- newDescribePolicy :: Text -> DescribePolicy
- describePolicy_policyId :: Lens' DescribePolicy Text
- data DescribePolicyResponse = DescribePolicyResponse' {
- policy :: Maybe Policy
- httpStatus :: Int
- newDescribePolicyResponse :: Int -> DescribePolicyResponse
- describePolicyResponse_policy :: Lens' DescribePolicyResponse (Maybe Policy)
- describePolicyResponse_httpStatus :: Lens' DescribePolicyResponse Int
Creating a Request
data DescribePolicy Source #
See: newDescribePolicy
smart constructor.
DescribePolicy' | |
|
Instances
Create a value of DescribePolicy
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:policyId:DescribePolicy'
, describePolicy_policyId
- 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 lowercase or uppercase letters, digits, or the underscore character (_).
Request Lenses
describePolicy_policyId :: 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 lowercase or uppercase letters, digits, or the underscore character (_).
Destructuring the Response
data DescribePolicyResponse Source #
See: newDescribePolicyResponse
smart constructor.
DescribePolicyResponse' | |
|
Instances
newDescribePolicyResponse Source #
Create a value of DescribePolicyResponse
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:policy:DescribePolicyResponse'
, describePolicyResponse_policy
- A structure that contains details about the specified policy.
$sel:httpStatus:DescribePolicyResponse'
, describePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
describePolicyResponse_policy :: Lens' DescribePolicyResponse (Maybe Policy) Source #
A structure that contains details about the specified policy.
describePolicyResponse_httpStatus :: Lens' DescribePolicyResponse Int Source #
The response's http status code.