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 |
Deletes the specified Firewall and its FirewallStatus. This operation
requires the firewall's DeleteProtection
flag to be FALSE
. You
can't revert this operation.
You can check whether a firewall is in use by reviewing the route tables for the Availability Zones where you have firewall subnet mappings. Retrieve the subnet mappings by calling DescribeFirewall. You define and update the route tables through Amazon VPC. As needed, update the route tables for the zones to remove the firewall endpoints. When the route tables no longer use the firewall endpoints, you can remove the firewall safely.
To delete a firewall, remove the delete protection if you need to using UpdateFirewallDeleteProtection, then delete the firewall by calling DeleteFirewall.
Synopsis
- data DeleteFirewall = DeleteFirewall' {}
- newDeleteFirewall :: DeleteFirewall
- deleteFirewall_firewallArn :: Lens' DeleteFirewall (Maybe Text)
- deleteFirewall_firewallName :: Lens' DeleteFirewall (Maybe Text)
- data DeleteFirewallResponse = DeleteFirewallResponse' {}
- newDeleteFirewallResponse :: Int -> DeleteFirewallResponse
- deleteFirewallResponse_firewallStatus :: Lens' DeleteFirewallResponse (Maybe FirewallStatus)
- deleteFirewallResponse_firewall :: Lens' DeleteFirewallResponse (Maybe Firewall)
- deleteFirewallResponse_httpStatus :: Lens' DeleteFirewallResponse Int
Creating a Request
data DeleteFirewall Source #
See: newDeleteFirewall
smart constructor.
DeleteFirewall' | |
|
Instances
newDeleteFirewall :: DeleteFirewall Source #
Create a value of DeleteFirewall
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:firewallArn:DeleteFirewall'
, deleteFirewall_firewallArn
- The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
$sel:firewallName:DeleteFirewall'
, deleteFirewall_firewallName
- The descriptive name of the firewall. You can't change the name of a
firewall after you create it.
You must specify the ARN or the name, and you can specify both.
Request Lenses
deleteFirewall_firewallArn :: Lens' DeleteFirewall (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
deleteFirewall_firewallName :: Lens' DeleteFirewall (Maybe Text) Source #
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
Destructuring the Response
data DeleteFirewallResponse Source #
See: newDeleteFirewallResponse
smart constructor.
DeleteFirewallResponse' | |
|
Instances
newDeleteFirewallResponse Source #
Create a value of DeleteFirewallResponse
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:firewallStatus:DeleteFirewallResponse'
, deleteFirewallResponse_firewallStatus
- Undocumented member.
$sel:firewall:DeleteFirewallResponse'
, deleteFirewallResponse_firewall
- Undocumented member.
$sel:httpStatus:DeleteFirewallResponse'
, deleteFirewallResponse_httpStatus
- The response's http status code.
Response Lenses
deleteFirewallResponse_firewallStatus :: Lens' DeleteFirewallResponse (Maybe FirewallStatus) Source #
Undocumented member.
deleteFirewallResponse_firewall :: Lens' DeleteFirewallResponse (Maybe Firewall) Source #
Undocumented member.
deleteFirewallResponse_httpStatus :: Lens' DeleteFirewallResponse Int Source #
The response's http status code.