/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WAFV2 { namespace Model { /** *

This is the latest version of AWS WAF, named AWS WAFV2, * released in November, 2019. For information, including how to migrate your AWS * WAF resources from the prior release, see the AWS * WAF Developer Guide.

Defines an association between Amazon * Kinesis Data Firehose destinations and a web ACL resource, for logging from AWS * WAF. As part of the association, you can specify parts of the standard logging * fields to keep out of the logs.

See Also:

AWS * API Reference

*/ class AWS_WAFV2_API LoggingConfiguration { public: LoggingConfiguration(); LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue); LoggingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline LoggingConfiguration& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline LoggingConfiguration& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline LoggingConfiguration& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline const Aws::Vector& GetLogDestinationConfigs() const{ return m_logDestinationConfigs; } /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; } /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline void SetLogDestinationConfigs(const Aws::Vector& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = value; } /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline void SetLogDestinationConfigs(Aws::Vector&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::move(value); } /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline LoggingConfiguration& WithLogDestinationConfigs(const Aws::Vector& value) { SetLogDestinationConfigs(value); return *this;} /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline LoggingConfiguration& WithLogDestinationConfigs(Aws::Vector&& value) { SetLogDestinationConfigs(std::move(value)); return *this;} /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline LoggingConfiguration& AddLogDestinationConfigs(const Aws::String& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; } /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline LoggingConfiguration& AddLogDestinationConfigs(Aws::String&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(std::move(value)); return *this; } /** *

The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to * associate with the web ACL.

*/ inline LoggingConfiguration& AddLogDestinationConfigs(const char* value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; } /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline const Aws::Vector& GetRedactedFields() const{ return m_redactedFields; } /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; } /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline void SetRedactedFields(const Aws::Vector& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = value; } /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline void SetRedactedFields(Aws::Vector&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::move(value); } /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline LoggingConfiguration& WithRedactedFields(const Aws::Vector& value) { SetRedactedFields(value); return *this;} /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline LoggingConfiguration& WithRedactedFields(Aws::Vector&& value) { SetRedactedFields(std::move(value)); return *this;} /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline LoggingConfiguration& AddRedactedFields(const FieldToMatch& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(value); return *this; } /** *

The parts of the request that you want to keep out of the logs. For example, * if you redact the HEADER field, the HEADER field in * the firehose will be xxx.

You must use one of the * following values: URI, QUERY_STRING, * HEADER, or METHOD.

*/ inline LoggingConfiguration& AddRedactedFields(FieldToMatch&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(std::move(value)); return *this; } /** *

Indicates whether the logging configuration was created by AWS Firewall * Manager, as part of an AWS WAF policy configuration. If true, only Firewall * Manager can modify or delete the configuration.

*/ inline bool GetManagedByFirewallManager() const{ return m_managedByFirewallManager; } /** *

Indicates whether the logging configuration was created by AWS Firewall * Manager, as part of an AWS WAF policy configuration. If true, only Firewall * Manager can modify or delete the configuration.

*/ inline bool ManagedByFirewallManagerHasBeenSet() const { return m_managedByFirewallManagerHasBeenSet; } /** *

Indicates whether the logging configuration was created by AWS Firewall * Manager, as part of an AWS WAF policy configuration. If true, only Firewall * Manager can modify or delete the configuration.

*/ inline void SetManagedByFirewallManager(bool value) { m_managedByFirewallManagerHasBeenSet = true; m_managedByFirewallManager = value; } /** *

Indicates whether the logging configuration was created by AWS Firewall * Manager, as part of an AWS WAF policy configuration. If true, only Firewall * Manager can modify or delete the configuration.

*/ inline LoggingConfiguration& WithManagedByFirewallManager(bool value) { SetManagedByFirewallManager(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet; Aws::Vector m_logDestinationConfigs; bool m_logDestinationConfigsHasBeenSet; Aws::Vector m_redactedFields; bool m_redactedFieldsHasBeenSet; bool m_managedByFirewallManager; bool m_managedByFirewallManagerHasBeenSet; }; } // namespace Model } // namespace WAFV2 } // namespace Aws