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

Description

 
Synopsis

Creating a Request

data UpdateSubnetChangeProtection Source #

See: newUpdateSubnetChangeProtection smart constructor.

Constructors

UpdateSubnetChangeProtection' 

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.

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

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Read UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

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

NFData UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

Hashable UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

ToJSON UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

AWSRequest 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

type Rep UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

type Rep UpdateSubnetChangeProtection = D1 ('MetaData "UpdateSubnetChangeProtection" "Amazonka.NetworkFirewall.UpdateSubnetChangeProtection" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "UpdateSubnetChangeProtection'" '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 "subnetChangeProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))
type AWSResponse UpdateSubnetChangeProtection Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

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:

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

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

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

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

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

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

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

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

Generic UpdateSubnetChangeProtectionResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateSubnetChangeProtection

NFData 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" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "UpdateSubnetChangeProtectionResponse'" '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 "subnetChangeProtection") '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)))))

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:

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

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

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

$sel:httpStatus:UpdateSubnetChangeProtectionResponse', updateSubnetChangeProtectionResponse_httpStatus - The response's http status code.

Response Lenses

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.

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