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.UpdateFirewallDeleteProtection

Description

Modifies the flag, DeleteProtection, which indicates whether it is possible to delete the firewall. If the flag is set to TRUE, the firewall is protected against deletion. This setting helps protect against accidentally deleting a firewall that's in use.

Synopsis

Creating a Request

data UpdateFirewallDeleteProtection Source #

See: newUpdateFirewallDeleteProtection smart constructor.

Constructors

UpdateFirewallDeleteProtection' 

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.

  • updateToken :: Maybe Text

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • deleteProtection :: Bool

    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

Instances

Instances details
ToJSON UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

ToHeaders UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

ToPath UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

ToQuery UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

AWSRequest UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Generic UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Associated Types

type Rep UpdateFirewallDeleteProtection :: Type -> Type #

Read UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Show UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

NFData UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Eq UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Hashable UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

type AWSResponse UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

type Rep UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

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

newUpdateFirewallDeleteProtection Source #

Create a value of UpdateFirewallDeleteProtection 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:

UpdateFirewallDeleteProtection, updateFirewallDeleteProtection_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

UpdateFirewallDeleteProtection, updateFirewallDeleteProtection_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.

UpdateFirewallDeleteProtection, updateFirewallDeleteProtection_updateToken - An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

UpdateFirewallDeleteProtection, updateFirewallDeleteProtection_deleteProtection - A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

Request Lenses

updateFirewallDeleteProtection_firewallArn :: Lens' UpdateFirewallDeleteProtection (Maybe Text) Source #

The Amazon Resource Name (ARN) of the firewall.

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

updateFirewallDeleteProtection_firewallName :: Lens' UpdateFirewallDeleteProtection (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.

updateFirewallDeleteProtection_updateToken :: Lens' UpdateFirewallDeleteProtection (Maybe Text) Source #

An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

updateFirewallDeleteProtection_deleteProtection :: Lens' UpdateFirewallDeleteProtection Bool Source #

A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

Destructuring the Response

data UpdateFirewallDeleteProtectionResponse Source #

Constructors

UpdateFirewallDeleteProtectionResponse' 

Fields

  • deleteProtection :: Maybe Bool

    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

  • firewallArn :: Maybe Text

    The Amazon Resource Name (ARN) of the firewall.

  • firewallName :: Maybe Text

    The descriptive name of the firewall. You can't change the name of a firewall after you create it.

  • updateToken :: Maybe Text

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic UpdateFirewallDeleteProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Read UpdateFirewallDeleteProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Show UpdateFirewallDeleteProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

NFData UpdateFirewallDeleteProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Eq UpdateFirewallDeleteProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

type Rep UpdateFirewallDeleteProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

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

newUpdateFirewallDeleteProtectionResponse Source #

Create a value of UpdateFirewallDeleteProtectionResponse 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:

UpdateFirewallDeleteProtection, updateFirewallDeleteProtectionResponse_deleteProtection - A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

UpdateFirewallDeleteProtection, updateFirewallDeleteProtectionResponse_firewallArn - The Amazon Resource Name (ARN) of the firewall.

UpdateFirewallDeleteProtection, updateFirewallDeleteProtectionResponse_firewallName - The descriptive name of the firewall. You can't change the name of a firewall after you create it.

UpdateFirewallDeleteProtection, updateFirewallDeleteProtectionResponse_updateToken - An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

$sel:httpStatus:UpdateFirewallDeleteProtectionResponse', updateFirewallDeleteProtectionResponse_httpStatus - The response's http status code.

Response Lenses

updateFirewallDeleteProtectionResponse_deleteProtection :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Bool) Source #

A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

updateFirewallDeleteProtectionResponse_firewallName :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Text) Source #

The descriptive name of the firewall. You can't change the name of a firewall after you create it.

updateFirewallDeleteProtectionResponse_updateToken :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Text) Source #

An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.