| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.NetworkFirewall.UpdateSubnetChangeProtection
Description
Synopsis
- data UpdateSubnetChangeProtection = UpdateSubnetChangeProtection' {}
 - newUpdateSubnetChangeProtection :: Bool -> UpdateSubnetChangeProtection
 - updateSubnetChangeProtection_firewallArn :: Lens' UpdateSubnetChangeProtection (Maybe Text)
 - updateSubnetChangeProtection_firewallName :: Lens' UpdateSubnetChangeProtection (Maybe Text)
 - updateSubnetChangeProtection_updateToken :: Lens' UpdateSubnetChangeProtection (Maybe Text)
 - updateSubnetChangeProtection_subnetChangeProtection :: Lens' UpdateSubnetChangeProtection Bool
 - data UpdateSubnetChangeProtectionResponse = UpdateSubnetChangeProtectionResponse' {}
 - newUpdateSubnetChangeProtectionResponse :: Int -> UpdateSubnetChangeProtectionResponse
 - updateSubnetChangeProtectionResponse_firewallArn :: Lens' UpdateSubnetChangeProtectionResponse (Maybe Text)
 - updateSubnetChangeProtectionResponse_firewallName :: Lens' UpdateSubnetChangeProtectionResponse (Maybe Text)
 - updateSubnetChangeProtectionResponse_subnetChangeProtection :: Lens' UpdateSubnetChangeProtectionResponse (Maybe Bool)
 - updateSubnetChangeProtectionResponse_updateToken :: Lens' UpdateSubnetChangeProtectionResponse (Maybe Text)
 - updateSubnetChangeProtectionResponse_httpStatus :: Lens' UpdateSubnetChangeProtectionResponse Int
 
Creating a Request
data UpdateSubnetChangeProtection Source #
See: newUpdateSubnetChangeProtection smart constructor.
Constructors
| UpdateSubnetChangeProtection' | |
Fields 
  | |
Instances
newUpdateSubnetChangeProtection Source #
Arguments
| :: Bool | |
| -> UpdateSubnetChangeProtection | 
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 #
See: newUpdateSubnetChangeProtectionResponse smart constructor.
Constructors
| UpdateSubnetChangeProtectionResponse' | |
Fields 
  | |
Instances
newUpdateSubnetChangeProtectionResponse Source #
Arguments
| :: Int | |
| -> UpdateSubnetChangeProtectionResponse | 
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_firewallArn :: Lens' UpdateSubnetChangeProtectionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall.
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.
updateSubnetChangeProtectionResponse_httpStatus :: Lens' UpdateSubnetChangeProtectionResponse Int Source #
The response's http status code.