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 |
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.
Instances
Eq GetPolicy Source # | |
Read GetPolicy Source # | |
Show GetPolicy Source # | |
Generic GetPolicy Source # | |
NFData GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy | |
Hashable GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy | |
ToJSON GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy | |
AWSRequest GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy type AWSResponse GetPolicy # request :: GetPolicy -> Request GetPolicy # response :: MonadResource m => Logger -> Service -> Proxy GetPolicy -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetPolicy))) # | |
ToHeaders GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy | |
ToPath GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy toPath :: GetPolicy -> ByteString # | |
ToQuery GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy toQuery :: GetPolicy -> QueryString # | |
type Rep GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy | |
type AWSResponse GetPolicy Source # | |
Defined in Amazonka.FMS.GetPolicy |
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.
Instances
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.