@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoggingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Defines an association between Amazon Kinesis Data Firehose destinations and a web ACL resource, for logging from WAF. As part of the association, you can specify parts of the standard logging fields to keep out of the logs and you can specify filters so that you log only a subset of the logging records.
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.
|
LoggingFilter |
getLoggingFilter()
Filtering that specifies which web requests are kept in the logs and which are dropped.
|
Boolean |
getManagedByFirewallManager()
Indicates whether the logging configuration was created by Firewall Manager, as part of an 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 Firewall Manager, as part of an 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 |
setLoggingFilter(LoggingFilter loggingFilter)
Filtering that specifies which web requests are kept in the logs and which are dropped.
|
void |
setManagedByFirewallManager(Boolean managedByFirewallManager)
Indicates whether the logging configuration was created by Firewall Manager, as part of an 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 |
withLoggingFilter(LoggingFilter loggingFilter)
Filtering that specifies which web requests are kept in the logs and which are dropped.
|
LoggingConfiguration |
withManagedByFirewallManager(Boolean managedByFirewallManager)
Indicates whether the logging configuration was created by Firewall Manager, as part of an 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
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
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
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
redactedFields
- The parts of the request that you want to keep out of the logs. For example, if you redact the
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
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
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
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
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
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
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
redactedFields
- The parts of the request that you want to keep out of the logs. For example, if you redact the
SingleHeader
field, the HEADER
field in the firehose will be xxx
.
You can specify only the following fields for redaction: UriPath
, QueryString
,
SingleHeader
, Method
, and JsonBody
.
public void setManagedByFirewallManager(Boolean managedByFirewallManager)
Indicates whether the logging configuration was created by Firewall Manager, as part of an WAF policy configuration. If true, only Firewall Manager can modify or delete the configuration.
managedByFirewallManager
- Indicates whether the logging configuration was created by Firewall Manager, as part of an 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 Firewall Manager, as part of an 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 Firewall Manager, as part of an WAF policy configuration. If true, only Firewall Manager can modify or delete the configuration.
managedByFirewallManager
- Indicates whether the logging configuration was created by Firewall Manager, as part of an 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 Firewall Manager, as part of an WAF policy configuration. If true, only Firewall Manager can modify or delete the configuration.
public void setLoggingFilter(LoggingFilter loggingFilter)
Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
loggingFilter
- Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on
the rule action and on the web request labels that were applied by matching rules during web ACL
evaluation.public LoggingFilter getLoggingFilter()
Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
public LoggingConfiguration withLoggingFilter(LoggingFilter loggingFilter)
Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
loggingFilter
- Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on
the rule action and on the web request labels that were applied by matching rules during web ACL
evaluation.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.