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 |
Returns information about the specified AWS Firewall Manager policy.
Synopsis
Creating a Request
Creates a value of GetPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gpPolicyId
- The ID of the AWS Firewall Manager policy that you want the details for.
See: getPolicy
smart constructor.
Instances
Request Lenses
gpPolicyId :: Lens' GetPolicy Text Source #
The ID of the AWS Firewall Manager policy that you want the details for.
Destructuring the Response
Creates a value of GetPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gprsPolicyARN
- The Amazon Resource Name (ARN) of the specified policy.gprsPolicy
- Information about the specified AWS Firewall Manager policy.gprsResponseStatus
- -- | The response status code.
data GetPolicyResponse Source #
See: getPolicyResponse
smart constructor.
Instances
Response Lenses
gprsPolicyARN :: Lens' GetPolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the specified policy.
gprsPolicy :: Lens' GetPolicyResponse (Maybe Policy) Source #
Information about the specified AWS Firewall Manager policy.
gprsResponseStatus :: Lens' GetPolicyResponse Int Source #
- - | The response status code.