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

  • loggingConfiguration :: Maybe LoggingConfiguration

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

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

Instances

Instances details
Eq UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Read UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

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

NFData UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Hashable UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

ToJSON UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

AWSRequest 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

type Rep UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

type Rep UpdateLoggingConfiguration = D1 ('MetaData "UpdateLoggingConfiguration" "Amazonka.NetworkFirewall.UpdateLoggingConfiguration" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "UpdateLoggingConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "firewallArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "loggingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingConfiguration)) :*: S1 ('MetaSel ('Just "firewallName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))
type AWSResponse UpdateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

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 #

Constructors

UpdateLoggingConfigurationResponse' 

Fields

Instances

Instances details
Eq UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Read UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Show UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Generic UpdateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.UpdateLoggingConfiguration

Associated Types

type Rep UpdateLoggingConfigurationResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "UpdateLoggingConfigurationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "firewallArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "loggingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingConfiguration))) :*: (S1 ('MetaSel ('Just "firewallName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

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