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 |
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_policyArn :: Lens' GetPolicyResponse (Maybe Text)
- getPolicyResponse_policy :: Lens' GetPolicyResponse (Maybe Policy)
- 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:
$sel:policyId: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:policyArn:GetPolicyResponse'
, getPolicyResponse_policyArn
- The Amazon Resource Name (ARN) of the specified policy.
$sel:policy:GetPolicyResponse'
, getPolicyResponse_policy
- Information about the specified Firewall Manager policy.
$sel:httpStatus:GetPolicyResponse'
, getPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getPolicyResponse_policyArn :: Lens' GetPolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the specified policy.
getPolicyResponse_policy :: Lens' GetPolicyResponse (Maybe Policy) Source #
Information about the specified Firewall Manager policy.
getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int Source #
The response's http status code.