@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoggingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
LoggingConfiguration() |
Modifier and Type | Method and Description |
---|---|
LoggingConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getLogDestinationConfigs()
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
|
Boolean |
getManagedByFirewallManager()
Indicates whether the logging configuration was created by AWS Firewall Manager, as part of an AWS WAF policy
configuration.
|
List<FieldToMatch> |
getRedactedFields()
The parts of the request that you want to keep out of the logs.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the web ACL that you want to associate with
LogDestinationConfigs . |
int |
hashCode() |
Boolean |
isManagedByFirewallManager()
Indicates whether the logging configuration was created by AWS Firewall Manager, as part of an AWS WAF policy
configuration.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLogDestinationConfigs(Collection<String> logDestinationConfigs)
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
|
void |
setManagedByFirewallManager(Boolean managedByFirewallManager)
Indicates whether the logging configuration was created by AWS Firewall Manager, as part of an AWS WAF policy
configuration.
|
void |
setRedactedFields(Collection<FieldToMatch> redactedFields)
The parts of the request that you want to keep out of the logs.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with
LogDestinationConfigs . |
String |
toString()
Returns a string representation of this object.
|
LoggingConfiguration |
withLogDestinationConfigs(Collection<String> logDestinationConfigs)
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
|
LoggingConfiguration |
withLogDestinationConfigs(String... logDestinationConfigs)
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
|
LoggingConfiguration |
withManagedByFirewallManager(Boolean managedByFirewallManager)
Indicates whether the logging configuration was created by AWS Firewall Manager, as part of an AWS WAF policy
configuration.
|
LoggingConfiguration |
withRedactedFields(Collection<FieldToMatch> redactedFields)
The parts of the request that you want to keep out of the logs.
|
LoggingConfiguration |
withRedactedFields(FieldToMatch... redactedFields)
The parts of the request that you want to keep out of the logs.
|
LoggingConfiguration |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with
LogDestinationConfigs . |
public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
resourceArn
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with
LogDestinationConfigs
.public String getResourceArn()
The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
LogDestinationConfigs
.public LoggingConfiguration withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
resourceArn
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with
LogDestinationConfigs
.public List<String> getLogDestinationConfigs()
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
public void setLogDestinationConfigs(Collection<String> logDestinationConfigs)
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
logDestinationConfigs
- The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.public LoggingConfiguration withLogDestinationConfigs(String... logDestinationConfigs)
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
NOTE: This method appends the values to the existing list (if any). Use
setLogDestinationConfigs(java.util.Collection)
or
withLogDestinationConfigs(java.util.Collection)
if you want to override the existing values.
logDestinationConfigs
- The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.public LoggingConfiguration withLogDestinationConfigs(Collection<String> logDestinationConfigs)
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
logDestinationConfigs
- The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.public List<FieldToMatch> getRedactedFields()
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
.
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
.
public void setRedactedFields(Collection<FieldToMatch> 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
.
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
.
public LoggingConfiguration withRedactedFields(FieldToMatch... 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
.
NOTE: This method appends the values to the existing list (if any). Use
setRedactedFields(java.util.Collection)
or withRedactedFields(java.util.Collection)
if you want
to override the existing values.
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
.
public LoggingConfiguration withRedactedFields(Collection<FieldToMatch> 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
.
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
.
public void setManagedByFirewallManager(Boolean 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.
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.public Boolean getManagedByFirewallManager()
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.
public LoggingConfiguration withManagedByFirewallManager(Boolean 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.
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.public Boolean isManagedByFirewallManager()
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.
public String toString()
toString
in class Object
Object.toString()
public LoggingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.