amazonka-network-firewall-2.0: Amazon Network Firewall SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.NetworkFirewall.DeleteFirewall

Description

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

Creating a Request

data DeleteFirewall Source #

See: newDeleteFirewall smart constructor.

Constructors

DeleteFirewall' 

Fields

  • firewallArn :: Maybe Text

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • firewallName :: Maybe Text

    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.

Instances

Instances details
ToJSON DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

ToHeaders DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

ToPath DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

ToQuery DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

AWSRequest DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Associated Types

type AWSResponse DeleteFirewall #

Generic DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Associated Types

type Rep DeleteFirewall :: Type -> Type #

Read DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Show DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

NFData DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Methods

rnf :: DeleteFirewall -> () #

Eq DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Hashable DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

type AWSResponse DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

type Rep DeleteFirewall Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

type Rep DeleteFirewall = D1 ('MetaData "DeleteFirewall" "Amazonka.NetworkFirewall.DeleteFirewall" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "DeleteFirewall'" 'PrefixI 'True) (S1 ('MetaSel ('Just "firewallArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "firewallName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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:

DeleteFirewall, deleteFirewall_firewallArn - The Amazon Resource Name (ARN) of the firewall.

You must specify the ARN or the name, and you can specify both.

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.

Constructors

DeleteFirewallResponse' 

Fields

Instances

Instances details
Generic DeleteFirewallResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Associated Types

type Rep DeleteFirewallResponse :: Type -> Type #

Read DeleteFirewallResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Show DeleteFirewallResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

NFData DeleteFirewallResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

Methods

rnf :: DeleteFirewallResponse -> () #

Eq DeleteFirewallResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

type Rep DeleteFirewallResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DeleteFirewall

type Rep DeleteFirewallResponse = D1 ('MetaData "DeleteFirewallResponse" "Amazonka.NetworkFirewall.DeleteFirewall" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "DeleteFirewallResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "firewall") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Firewall)) :*: (S1 ('MetaSel ('Just "firewallStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FirewallStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:firewall:DeleteFirewallResponse', deleteFirewallResponse_firewall - Undocumented member.

$sel:firewallStatus:DeleteFirewallResponse', deleteFirewallResponse_firewallStatus - Undocumented member.

$sel:httpStatus:DeleteFirewallResponse', deleteFirewallResponse_httpStatus - The response's http status code.

Response Lenses