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 |
Amazonka.Organizations.DescribeResourcePolicy
Description
Retrieves information about a resource policy.
You can only call this operation from the organization's management account or by a member account that is a delegated administrator for an AWS service.
Synopsis
- data DescribeResourcePolicy = DescribeResourcePolicy' {
- newDescribeResourcePolicy :: DescribeResourcePolicy
- data DescribeResourcePolicyResponse = DescribeResourcePolicyResponse' {}
- newDescribeResourcePolicyResponse :: Int -> DescribeResourcePolicyResponse
- describeResourcePolicyResponse_resourcePolicy :: Lens' DescribeResourcePolicyResponse (Maybe ResourcePolicy)
- describeResourcePolicyResponse_httpStatus :: Lens' DescribeResourcePolicyResponse Int
Creating a Request
data DescribeResourcePolicy Source #
See: newDescribeResourcePolicy
smart constructor.
Constructors
DescribeResourcePolicy' | |
Instances
newDescribeResourcePolicy :: DescribeResourcePolicy Source #
Create a value of DescribeResourcePolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data DescribeResourcePolicyResponse Source #
See: newDescribeResourcePolicyResponse
smart constructor.
Constructors
DescribeResourcePolicyResponse' | |
Fields
|
Instances
newDescribeResourcePolicyResponse Source #
Create a value of DescribeResourcePolicyResponse
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:resourcePolicy:DescribeResourcePolicyResponse'
, describeResourcePolicyResponse_resourcePolicy
- A structure that contains details about the resource policy.
$sel:httpStatus:DescribeResourcePolicyResponse'
, describeResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
describeResourcePolicyResponse_resourcePolicy :: Lens' DescribeResourcePolicyResponse (Maybe ResourcePolicy) Source #
A structure that contains details about the resource policy.
describeResourcePolicyResponse_httpStatus :: Lens' DescribeResourcePolicyResponse Int Source #
The response's http status code.