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

Description

Modifies the flag, ChangeProtection, which indicates whether it is possible to change the firewall. If the flag is set to TRUE, the firewall is protected from changes. This setting helps protect against accidentally changing a firewall that's in use.

Synopsis

Creating a Request

data UpdateFirewallPolicyChangeProtection Source #

Constructors

UpdateFirewallPolicyChangeProtection' 

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.

  • firewallPolicyChangeProtection :: Bool

    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Instances

Instances details
ToJSON UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

ToHeaders UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

ToPath UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

ToQuery UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

AWSRequest UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Generic UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Read UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Show UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

NFData UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Eq UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Hashable UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

type AWSResponse UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

type Rep UpdateFirewallPolicyChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

type Rep UpdateFirewallPolicyChangeProtection = D1 ('MetaData "UpdateFirewallPolicyChangeProtection" "Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "UpdateFirewallPolicyChangeProtection'" '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 "firewallPolicyChangeProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

newUpdateFirewallPolicyChangeProtection Source #

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

UpdateFirewallPolicyChangeProtection, updateFirewallPolicyChangeProtection_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

UpdateFirewallPolicyChangeProtection, updateFirewallPolicyChangeProtection_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.

UpdateFirewallPolicyChangeProtection, updateFirewallPolicyChangeProtection_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.

UpdateFirewallPolicyChangeProtection, updateFirewallPolicyChangeProtection_firewallPolicyChangeProtection - A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Request Lenses

updateFirewallPolicyChangeProtection_firewallArn :: Lens' UpdateFirewallPolicyChangeProtection (Maybe Text) Source #

The Amazon Resource Name (ARN) of the firewall.

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

updateFirewallPolicyChangeProtection_firewallName :: Lens' UpdateFirewallPolicyChangeProtection (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.

updateFirewallPolicyChangeProtection_updateToken :: Lens' UpdateFirewallPolicyChangeProtection (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.

updateFirewallPolicyChangeProtection_firewallPolicyChangeProtection :: Lens' UpdateFirewallPolicyChangeProtection Bool Source #

A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Destructuring the Response

data UpdateFirewallPolicyChangeProtectionResponse Source #

Constructors

UpdateFirewallPolicyChangeProtectionResponse' 

Fields

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

  • firewallPolicyChangeProtection :: Maybe Bool

    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

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

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Read UpdateFirewallPolicyChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Show UpdateFirewallPolicyChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

NFData UpdateFirewallPolicyChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

Eq UpdateFirewallPolicyChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

type Rep UpdateFirewallPolicyChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection

type Rep UpdateFirewallPolicyChangeProtectionResponse = D1 ('MetaData "UpdateFirewallPolicyChangeProtectionResponse" "Amazonka.NetworkFirewall.UpdateFirewallPolicyChangeProtection" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "UpdateFirewallPolicyChangeProtectionResponse'" '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 "firewallPolicyChangeProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "updateToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newUpdateFirewallPolicyChangeProtectionResponse Source #

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

UpdateFirewallPolicyChangeProtection, updateFirewallPolicyChangeProtectionResponse_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

UpdateFirewallPolicyChangeProtection, updateFirewallPolicyChangeProtectionResponse_firewallPolicyChangeProtection - A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

UpdateFirewallPolicyChangeProtection, updateFirewallPolicyChangeProtectionResponse_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:UpdateFirewallPolicyChangeProtectionResponse', updateFirewallPolicyChangeProtectionResponse_httpStatus - The response's http status code.

Response Lenses

updateFirewallPolicyChangeProtectionResponse_firewallName :: Lens' UpdateFirewallPolicyChangeProtectionResponse (Maybe Text) Source #

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

updateFirewallPolicyChangeProtectionResponse_firewallPolicyChangeProtection :: Lens' UpdateFirewallPolicyChangeProtectionResponse (Maybe Bool) Source #

A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

updateFirewallPolicyChangeProtectionResponse_updateToken :: Lens' UpdateFirewallPolicyChangeProtectionResponse (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.