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

Description

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 to LogDestinationConfigs.
  • Delete a log destination object by removing a single LogDestinationConfig array element from LogDestinationConfigs.
  • Change the LogDestination setting in a single LogDestinationConfig 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

Creating a Request

data UpdateLoggingConfiguration Source #

See: newUpdateLoggingConfiguration smart constructor.

Constructors

UpdateLoggingConfiguration' 

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.

  • loggingConfiguration :: Maybe LoggingConfiguration

    Defines how Network Firewall performs logging for a firewall. If you omit this setting, Network Firewall disables logging for the firewall.

Instances

Instances details
ToJSON UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

ToHeaders UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

ToPath UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

ToQuery UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

AWSRequest UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Generic UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Associated Types

type Rep UpdateLoggingConfiguration :: Type -> Type #

Read UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Show UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

NFData UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Eq UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Hashable UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

type AWSResponse UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

type Rep UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

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

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:

UpdateLoggingConfiguration, updateLoggingConfiguration_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

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.

UpdateLoggingConfiguration, updateLoggingConfiguration_loggingConfiguration - Defines how Network Firewall performs logging for a firewall. If you omit this setting, Network Firewall disables logging for the firewall.

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

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.

Destructuring the Response

data UpdateLoggingConfigurationResponse Source #

Constructors

UpdateLoggingConfigurationResponse' 

Fields

Instances

Instances details
Generic UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Associated Types

type Rep UpdateLoggingConfigurationResponse :: Type -> Type #

Read UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Show UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

NFData UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Eq UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

type Rep UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

type Rep UpdateLoggingConfigurationResponse = D1 ('MetaData "UpdateLoggingConfigurationResponse" "Amazonka.NetworkFirewall.UpdateLoggingConfiguration" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "UpdateLoggingConfigurationResponse'" '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 "loggingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

UpdateLoggingConfiguration, updateLoggingConfigurationResponse_firewallArn - The Amazon Resource Name (ARN) of the firewall.

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

UpdateLoggingConfiguration, updateLoggingConfigurationResponse_loggingConfiguration - Undocumented member.

$sel:httpStatus:UpdateLoggingConfigurationResponse', updateLoggingConfigurationResponse_httpStatus - The response's http status code.

Response Lenses

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.