/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the waf-2015-08-24.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.WAF.Model
{
///
/// Container for the parameters to the PutLoggingConfiguration operation.
///
///
/// 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:
///
/// -
///
/// 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.
///
/// -
///
/// 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.
///
///
public partial class PutLoggingConfigurationRequest : AmazonWAFRequest
{
private LoggingConfiguration _loggingConfiguration;
///
/// Gets and sets the property 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
.
///
///
///
[AWSProperty(Required=true)]
public LoggingConfiguration LoggingConfiguration
{
get { return this._loggingConfiguration; }
set { this._loggingConfiguration = value; }
}
// Check to see if LoggingConfiguration property is set
internal bool IsSetLoggingConfiguration()
{
return this._loggingConfiguration != null;
}
}
}