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

Description

 
Synopsis

Creating a Request

data UpdateSubnetChangeProtection Source #

See: newUpdateSubnetChangeProtection smart constructor.

Constructors

UpdateSubnetChangeProtection' 

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.

  • subnetChangeProtection :: Bool

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

Instances

Instances details
ToJSON UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

ToHeaders UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

ToPath UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

ToQuery UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

AWSRequest UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Generic UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Associated Types

type Rep UpdateSubnetChangeProtection :: Type -> Type #

Read UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Show UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

NFData UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Eq UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Hashable UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

type AWSResponse UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

type Rep UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

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

newUpdateSubnetChangeProtection Source #

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

UpdateSubnetChangeProtection, updateSubnetChangeProtection_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

UpdateSubnetChangeProtection, updateSubnetChangeProtection_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.

UpdateSubnetChangeProtection, updateSubnetChangeProtection_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.

UpdateSubnetChangeProtection, updateSubnetChangeProtection_subnetChangeProtection - A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Request Lenses

updateSubnetChangeProtection_firewallArn :: Lens' UpdateSubnetChangeProtection (Maybe Text) Source #

The Amazon Resource Name (ARN) of the firewall.

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

updateSubnetChangeProtection_firewallName :: Lens' UpdateSubnetChangeProtection (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.

updateSubnetChangeProtection_updateToken :: Lens' UpdateSubnetChangeProtection (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.

updateSubnetChangeProtection_subnetChangeProtection :: Lens' UpdateSubnetChangeProtection Bool Source #

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

Destructuring the Response

data UpdateSubnetChangeProtectionResponse Source #

Constructors

UpdateSubnetChangeProtectionResponse' 

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.

  • subnetChangeProtection :: Maybe Bool

    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations 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 UpdateSubnetChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Read UpdateSubnetChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Show UpdateSubnetChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

NFData UpdateSubnetChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Eq UpdateSubnetChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

type Rep UpdateSubnetChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

type Rep UpdateSubnetChangeProtectionResponse = D1 ('MetaData "UpdateSubnetChangeProtectionResponse" "Amazonka.NetworkFirewall.UpdateSubnetChangeProtection" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "UpdateSubnetChangeProtectionResponse'" '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 "subnetChangeProtection") '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)))))

newUpdateSubnetChangeProtectionResponse Source #

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

UpdateSubnetChangeProtection, updateSubnetChangeProtectionResponse_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

UpdateSubnetChangeProtection, updateSubnetChangeProtectionResponse_subnetChangeProtection - A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

UpdateSubnetChangeProtection, updateSubnetChangeProtectionResponse_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:UpdateSubnetChangeProtectionResponse', updateSubnetChangeProtectionResponse_httpStatus - The response's http status code.

Response Lenses

updateSubnetChangeProtectionResponse_firewallName :: Lens' UpdateSubnetChangeProtectionResponse (Maybe Text) Source #

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

updateSubnetChangeProtectionResponse_subnetChangeProtection :: Lens' UpdateSubnetChangeProtectionResponse (Maybe Bool) Source #

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

updateSubnetChangeProtectionResponse_updateToken :: Lens' UpdateSubnetChangeProtectionResponse (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.