libZSservicesZSamazonka-wafZSamazonka-waf
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.WAF.PutLoggingConfiguration

Description

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.

For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.

Associates a LoggingConfiguration with a specified web ACL.

You can access information about all traffic that AWS WAF inspects using the following steps:

  1. Create an Amazon Kinesis Data Firehose.

    Create the data firehose with a PUT source and in the region that you are operating. However, if you are capturing logs for Amazon CloudFront, always create the firehose in US East (N. Virginia).

    Do not create the data firehose using a Kinesis stream as your source.

  2. Associate that firehose to your web ACL using a PutLoggingConfiguration request.

When you successfully enable logging using a PutLoggingConfiguration request, AWS WAF will create a service linked role with the necessary permissions to write logs to the Amazon Kinesis Data Firehose. For more information, see Logging Web ACL Traffic Information in the AWS WAF Developer Guide.

Synopsis

Creating a Request

data PutLoggingConfiguration Source #

See: newPutLoggingConfiguration smart constructor.

Constructors

PutLoggingConfiguration' 

Fields

  • loggingConfiguration :: LoggingConfiguration

    The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.

    When specifying Type in RedactedFields, you must use one of the following values: URI, QUERY_STRING, HEADER, or METHOD.

Instances

Instances details
Eq PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Read PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Show PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Generic PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Associated Types

type Rep PutLoggingConfiguration :: Type -> Type #

NFData PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Methods

rnf :: PutLoggingConfiguration -> () #

Hashable PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

ToJSON PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

AWSRequest PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

ToHeaders PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

ToPath PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

ToQuery PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

type Rep PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

type Rep PutLoggingConfiguration = D1 ('MetaData "PutLoggingConfiguration" "Amazonka.WAF.PutLoggingConfiguration" "libZSservicesZSamazonka-wafZSamazonka-waf" 'False) (C1 ('MetaCons "PutLoggingConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loggingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LoggingConfiguration)))
type AWSResponse PutLoggingConfiguration Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

newPutLoggingConfiguration Source #

Create a value of PutLoggingConfiguration 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:loggingConfiguration:PutLoggingConfiguration', putLoggingConfiguration_loggingConfiguration - The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.

When specifying Type in RedactedFields, you must use one of the following values: URI, QUERY_STRING, HEADER, or METHOD.

Request Lenses

putLoggingConfiguration_loggingConfiguration :: Lens' PutLoggingConfiguration LoggingConfiguration Source #

The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.

When specifying Type in RedactedFields, you must use one of the following values: URI, QUERY_STRING, HEADER, or METHOD.

Destructuring the Response

data PutLoggingConfigurationResponse Source #

See: newPutLoggingConfigurationResponse smart constructor.

Constructors

PutLoggingConfigurationResponse' 

Fields

Instances

Instances details
Eq PutLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Read PutLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Show PutLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Generic PutLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

Associated Types

type Rep PutLoggingConfigurationResponse :: Type -> Type #

NFData PutLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

type Rep PutLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.WAF.PutLoggingConfiguration

type Rep PutLoggingConfigurationResponse = D1 ('MetaData "PutLoggingConfigurationResponse" "Amazonka.WAF.PutLoggingConfiguration" "libZSservicesZSamazonka-wafZSamazonka-waf" 'False) (C1 ('MetaCons "PutLoggingConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loggingConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutLoggingConfigurationResponse Source #

Create a value of PutLoggingConfigurationResponse 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:loggingConfiguration:PutLoggingConfiguration', putLoggingConfigurationResponse_loggingConfiguration - The LoggingConfiguration that you submitted in the request.

$sel:httpStatus:PutLoggingConfigurationResponse', putLoggingConfigurationResponse_httpStatus - The response's http status code.

Response Lenses