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 |
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
- data UpdateFirewallDeleteProtection = UpdateFirewallDeleteProtection' {}
- newUpdateFirewallDeleteProtection :: Bool -> UpdateFirewallDeleteProtection
- updateFirewallDeleteProtection_firewallArn :: Lens' UpdateFirewallDeleteProtection (Maybe Text)
- updateFirewallDeleteProtection_firewallName :: Lens' UpdateFirewallDeleteProtection (Maybe Text)
- updateFirewallDeleteProtection_updateToken :: Lens' UpdateFirewallDeleteProtection (Maybe Text)
- updateFirewallDeleteProtection_deleteProtection :: Lens' UpdateFirewallDeleteProtection Bool
- data UpdateFirewallDeleteProtectionResponse = UpdateFirewallDeleteProtectionResponse' {}
- newUpdateFirewallDeleteProtectionResponse :: Int -> UpdateFirewallDeleteProtectionResponse
- updateFirewallDeleteProtectionResponse_deleteProtection :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Bool)
- updateFirewallDeleteProtectionResponse_firewallArn :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Text)
- updateFirewallDeleteProtectionResponse_firewallName :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Text)
- updateFirewallDeleteProtectionResponse_updateToken :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Text)
- updateFirewallDeleteProtectionResponse_httpStatus :: Lens' UpdateFirewallDeleteProtectionResponse Int
Creating a Request
data UpdateFirewallDeleteProtection Source #
See: newUpdateFirewallDeleteProtection
smart constructor.
UpdateFirewallDeleteProtection' | |
|
Instances
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:
UpdateFirewallDeleteProtection
, updateFirewallDeleteProtection_firewallArn
- The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
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.
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.
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_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_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_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 #
See: newUpdateFirewallDeleteProtectionResponse
smart constructor.
UpdateFirewallDeleteProtectionResponse' | |
|
Instances
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:
UpdateFirewallDeleteProtection
, updateFirewallDeleteProtectionResponse_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
.
UpdateFirewallDeleteProtection
, updateFirewallDeleteProtectionResponse_firewallArn
- The Amazon Resource Name (ARN) of the firewall.
UpdateFirewallDeleteProtection
, updateFirewallDeleteProtectionResponse_firewallName
- The descriptive name of the firewall. You can't change the name of a
firewall after you create it.
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:httpStatus:UpdateFirewallDeleteProtectionResponse'
, updateFirewallDeleteProtectionResponse_httpStatus
- The response's http status code.
Response Lenses
updateFirewallDeleteProtectionResponse_deleteProtection :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe 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
.
updateFirewallDeleteProtectionResponse_firewallArn :: Lens' UpdateFirewallDeleteProtectionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall.
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.
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_httpStatus :: Lens' UpdateFirewallDeleteProtectionResponse Int Source #
The response's http status code.