libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

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

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

  • 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
Eq UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Read UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Show 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 #

NFData UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

Hashable UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

ToJSON UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

AWSRequest 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

type Rep UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

type Rep UpdateFirewallDeleteProtection = D1 ('MetaData "UpdateFirewallDeleteProtection" "Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "UpdateFirewallDeleteProtection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "updateToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "firewallArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "firewallName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "deleteProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))
type AWSResponse UpdateFirewallDeleteProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

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:

$sel:updateToken: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.

$sel:firewallArn:UpdateFirewallDeleteProtection', updateFirewallDeleteProtection_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

$sel:firewallName: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.

$sel:deleteProtection: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_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_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_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

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

  • firewallArn :: Maybe Text

    The Amazon Resource Name (ARN) of the firewall.

  • deleteProtection :: Maybe Bool
     
  • firewallName :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq 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

Generic UpdateFirewallDeleteProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallDeleteProtection

NFData 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" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "UpdateFirewallDeleteProtectionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "updateToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "firewallArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "deleteProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "firewallName") '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:

$sel:updateToken: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:firewallArn:UpdateFirewallDeleteProtection', updateFirewallDeleteProtectionResponse_firewallArn - The Amazon Resource Name (ARN) of the firewall.

$sel:deleteProtection:UpdateFirewallDeleteProtection', updateFirewallDeleteProtectionResponse_deleteProtection -

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

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

Response Lenses

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.

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.