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 |
Retrieves a resource policy that you created in a PutResourcePolicy request.
Synopsis
- data DescribeResourcePolicy = DescribeResourcePolicy' {
- resourceArn :: Text
- newDescribeResourcePolicy :: Text -> DescribeResourcePolicy
- describeResourcePolicy_resourceArn :: Lens' DescribeResourcePolicy Text
- data DescribeResourcePolicyResponse = DescribeResourcePolicyResponse' {
- policy :: Maybe Text
- httpStatus :: Int
- newDescribeResourcePolicyResponse :: Int -> DescribeResourcePolicyResponse
- describeResourcePolicyResponse_policy :: Lens' DescribeResourcePolicyResponse (Maybe Text)
- describeResourcePolicyResponse_httpStatus :: Lens' DescribeResourcePolicyResponse Int
Creating a Request
data DescribeResourcePolicy Source #
See: newDescribeResourcePolicy
smart constructor.
DescribeResourcePolicy' | |
|
Instances
newDescribeResourcePolicy Source #
Create a value of DescribeResourcePolicy
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:resourceArn:DescribeResourcePolicy'
, describeResourcePolicy_resourceArn
- The Amazon Resource Name (ARN) of the rule group or firewall policy
whose resource policy you want to retrieve.
Request Lenses
describeResourcePolicy_resourceArn :: Lens' DescribeResourcePolicy Text Source #
The Amazon Resource Name (ARN) of the rule group or firewall policy whose resource policy you want to retrieve.
Destructuring the Response
data DescribeResourcePolicyResponse Source #
See: newDescribeResourcePolicyResponse
smart constructor.
DescribeResourcePolicyResponse' | |
|
Instances
Eq DescribeResourcePolicyResponse Source # | |
Read DescribeResourcePolicyResponse Source # | |
Show DescribeResourcePolicyResponse Source # | |
Generic DescribeResourcePolicyResponse Source # | |
NFData DescribeResourcePolicyResponse Source # | |
Defined in Amazonka.NetworkFirewall.DescribeResourcePolicy rnf :: DescribeResourcePolicyResponse -> () # | |
type Rep DescribeResourcePolicyResponse Source # | |
Defined in Amazonka.NetworkFirewall.DescribeResourcePolicy type Rep DescribeResourcePolicyResponse = D1 ('MetaData "DescribeResourcePolicyResponse" "Amazonka.NetworkFirewall.DescribeResourcePolicy" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "DescribeResourcePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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:policy:DescribeResourcePolicyResponse'
, describeResourcePolicyResponse_policy
- The AWS Identity and Access Management policy for the resource.
$sel:httpStatus:DescribeResourcePolicyResponse'
, describeResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
describeResourcePolicyResponse_policy :: Lens' DescribeResourcePolicyResponse (Maybe Text) Source #
The AWS Identity and Access Management policy for the resource.
describeResourcePolicyResponse_httpStatus :: Lens' DescribeResourcePolicyResponse Int Source #
The response's http status code.