| 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.FMS.GetPolicy
Description
Returns information about the specified Firewall Manager policy.
Synopsis
- data GetPolicy = GetPolicy' {}
- newGetPolicy :: Text -> GetPolicy
- getPolicy_policyId :: Lens' GetPolicy Text
- data GetPolicyResponse = GetPolicyResponse' {}
- newGetPolicyResponse :: Int -> GetPolicyResponse
- getPolicyResponse_policy :: Lens' GetPolicyResponse (Maybe Policy)
- getPolicyResponse_policyArn :: Lens' GetPolicyResponse (Maybe Text)
- getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int
Creating a Request
See: newGetPolicy smart constructor.
Constructors
| GetPolicy' | |
Instances
Create a value of GetPolicy 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:
GetPolicy, getPolicy_policyId - The ID of the Firewall Manager policy that you want the details for.
Request Lenses
getPolicy_policyId :: Lens' GetPolicy Text Source #
The ID of the Firewall Manager policy that you want the details for.
Destructuring the Response
data GetPolicyResponse Source #
See: newGetPolicyResponse smart constructor.
Constructors
| GetPolicyResponse' | |
Instances
Arguments
| :: Int | |
| -> GetPolicyResponse |
Create a value of GetPolicyResponse 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:GetPolicyResponse', getPolicyResponse_policy - Information about the specified Firewall Manager policy.
GetPolicyResponse, getPolicyResponse_policyArn - The Amazon Resource Name (ARN) of the specified policy.
$sel:httpStatus:GetPolicyResponse', getPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getPolicyResponse_policy :: Lens' GetPolicyResponse (Maybe Policy) Source #
Information about the specified Firewall Manager policy.
getPolicyResponse_policyArn :: Lens' GetPolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the specified policy.
getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int Source #
The response's http status code.