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 |
Creates an Firewall Manager policy.
Firewall Manager provides the following types of policies:
- An WAF policy (type WAFV2), which defines rule groups to run first in the corresponding WAF web ACL and rule groups to run last in the web ACL.
- An WAF Classic policy (type WAF), which defines a rule group.
- A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources.
- A security group policy, which manages VPC security groups across your Amazon Web Services organization.
- An Network Firewall policy, which provides firewall rules to filter network traffic in specified Amazon VPCs.
- A DNS Firewall policy, which provides Route 53 Resolver DNS Firewall rules to filter DNS queries for specified VPCs.
Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, create multiple policies. You can create multiple policies for each type.
You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.
Synopsis
- data PutPolicy = PutPolicy' {}
- newPutPolicy :: Policy -> PutPolicy
- putPolicy_tagList :: Lens' PutPolicy (Maybe [Tag])
- putPolicy_policy :: Lens' PutPolicy Policy
- data PutPolicyResponse = PutPolicyResponse' {}
- newPutPolicyResponse :: Int -> PutPolicyResponse
- putPolicyResponse_policyArn :: Lens' PutPolicyResponse (Maybe Text)
- putPolicyResponse_policy :: Lens' PutPolicyResponse (Maybe Policy)
- putPolicyResponse_httpStatus :: Lens' PutPolicyResponse Int
Creating a Request
See: newPutPolicy
smart constructor.
Instances
Create a value of PutPolicy
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:tagList:PutPolicy'
, putPolicy_tagList
- The tags to add to the Amazon Web Services resource.
$sel:policy:PutPolicy'
, putPolicy_policy
- The details of the Firewall Manager policy to be created.
Request Lenses
putPolicy_tagList :: Lens' PutPolicy (Maybe [Tag]) Source #
The tags to add to the Amazon Web Services resource.
putPolicy_policy :: Lens' PutPolicy Policy Source #
The details of the Firewall Manager policy to be created.
Destructuring the Response
data PutPolicyResponse Source #
See: newPutPolicyResponse
smart constructor.
Instances
Create a value of PutPolicyResponse
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:PutPolicyResponse'
, putPolicyResponse_policyArn
- The Amazon Resource Name (ARN) of the policy.
$sel:policy:PutPolicy'
, putPolicyResponse_policy
- The details of the Firewall Manager policy.
$sel:httpStatus:PutPolicyResponse'
, putPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
putPolicyResponse_policyArn :: Lens' PutPolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the policy.
putPolicyResponse_policy :: Lens' PutPolicyResponse (Maybe Policy) Source #
The details of the Firewall Manager policy.
putPolicyResponse_httpStatus :: Lens' PutPolicyResponse Int Source #
The response's http status code.