Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Sets the logging configuration for the specified firewall.
To change the logging configuration, retrieve the LoggingConfiguration by calling DescribeLoggingConfiguration, then change it and provide the modified object to this update call. You must change the logging configuration one LogDestinationConfig at a time inside the retrieved LoggingConfiguration object.
You can perform only one of the following actions in any call to
UpdateLoggingConfiguration
:
- Create a new log destination object by adding a single
LogDestinationConfig
array element toLogDestinationConfigs
. - Delete a log destination object by removing a single
LogDestinationConfig
array element fromLogDestinationConfigs
. - Change the
LogDestination
setting in a singleLogDestinationConfig
array element.
You can't change the LogDestinationType
or LogType
in a
LogDestinationConfig
. To change these settings, delete the existing
LogDestinationConfig
object and create a new one, using two separate
calls to this update operation.
Synopsis
- data UpdateLoggingConfiguration = UpdateLoggingConfiguration' {}
- newUpdateLoggingConfiguration :: UpdateLoggingConfiguration
- updateLoggingConfiguration_firewallArn :: Lens' UpdateLoggingConfiguration (Maybe Text)
- updateLoggingConfiguration_loggingConfiguration :: Lens' UpdateLoggingConfiguration (Maybe LoggingConfiguration)
- updateLoggingConfiguration_firewallName :: Lens' UpdateLoggingConfiguration (Maybe Text)
- data UpdateLoggingConfigurationResponse = UpdateLoggingConfigurationResponse' {}
- newUpdateLoggingConfigurationResponse :: Int -> UpdateLoggingConfigurationResponse
- updateLoggingConfigurationResponse_firewallArn :: Lens' UpdateLoggingConfigurationResponse (Maybe Text)
- updateLoggingConfigurationResponse_loggingConfiguration :: Lens' UpdateLoggingConfigurationResponse (Maybe LoggingConfiguration)
- updateLoggingConfigurationResponse_firewallName :: Lens' UpdateLoggingConfigurationResponse (Maybe Text)
- updateLoggingConfigurationResponse_httpStatus :: Lens' UpdateLoggingConfigurationResponse Int
Creating a Request
data UpdateLoggingConfiguration Source #
See: newUpdateLoggingConfiguration
smart constructor.
UpdateLoggingConfiguration' | |
|
Instances
newUpdateLoggingConfiguration :: UpdateLoggingConfiguration Source #
Create a value of UpdateLoggingConfiguration
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:firewallArn:UpdateLoggingConfiguration'
, updateLoggingConfiguration_firewallArn
- The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
$sel:loggingConfiguration:UpdateLoggingConfiguration'
, updateLoggingConfiguration_loggingConfiguration
- Defines how Network Firewall performs logging for a firewall. If you
omit this setting, Network Firewall disables logging for the firewall.
$sel:firewallName:UpdateLoggingConfiguration'
, updateLoggingConfiguration_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.
Request Lenses
updateLoggingConfiguration_firewallArn :: Lens' UpdateLoggingConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
updateLoggingConfiguration_loggingConfiguration :: Lens' UpdateLoggingConfiguration (Maybe LoggingConfiguration) Source #
Defines how Network Firewall performs logging for a firewall. If you omit this setting, Network Firewall disables logging for the firewall.
updateLoggingConfiguration_firewallName :: Lens' UpdateLoggingConfiguration (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.
Destructuring the Response
data UpdateLoggingConfigurationResponse Source #
See: newUpdateLoggingConfigurationResponse
smart constructor.
UpdateLoggingConfigurationResponse' | |
|
Instances
newUpdateLoggingConfigurationResponse Source #
Create a value of UpdateLoggingConfigurationResponse
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:firewallArn:UpdateLoggingConfiguration'
, updateLoggingConfigurationResponse_firewallArn
- The Amazon Resource Name (ARN) of the firewall.
$sel:loggingConfiguration:UpdateLoggingConfiguration'
, updateLoggingConfigurationResponse_loggingConfiguration
- Undocumented member.
$sel:firewallName:UpdateLoggingConfiguration'
, updateLoggingConfigurationResponse_firewallName
- The descriptive name of the firewall. You can't change the name of a
firewall after you create it.
$sel:httpStatus:UpdateLoggingConfigurationResponse'
, updateLoggingConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
updateLoggingConfigurationResponse_firewallArn :: Lens' UpdateLoggingConfigurationResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall.
updateLoggingConfigurationResponse_loggingConfiguration :: Lens' UpdateLoggingConfigurationResponse (Maybe LoggingConfiguration) Source #
Undocumented member.
updateLoggingConfigurationResponse_firewallName :: Lens' UpdateLoggingConfigurationResponse (Maybe Text) Source #
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
updateLoggingConfigurationResponse_httpStatus :: Lens' UpdateLoggingConfigurationResponse Int Source #
The response's http status code.