A WAFv2 Logging Configuration Resource Provider
Create LoggingConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def LoggingConfiguration(resource_name: str,
args: LoggingConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoggingConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
log_destination_configs: Optional[Sequence[str]] = None,
resource_arn: Optional[str] = None,
logging_filter: Optional[LoggingFilterPropertiesArgs] = None,
redacted_fields: Optional[Sequence[LoggingConfigurationFieldToMatchArgs]] = None)
type: aws-native:wafv2:LoggingConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_wafv2_logging_configuration" "name" {
# resource properties
}
Parameters
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
LoggingConfigurationArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
LoggingConfigurationArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
LoggingConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LoggingConfiguration resource accepts the following input properties:
- LogDestinationConfigs
[]string
- The Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
- ResourceArn
string
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
- LoggingFilter
LoggingFilterPropertiesArgs
- 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.
- RedactedFields
[]LoggingConfigurationFieldToMatchArgs
- 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.
- log_destination_configs
list(string)
- The Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
- resource_arn
string
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
- logging_filter
object
- 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.
- redacted_fields
list(object)
- 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.
- logDestinationConfigs
List<String>
- The Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
- resourceArn
String
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
- loggingFilter
LoggingFilterProperties
- 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.
- redactedFields
List<LoggingConfigurationFieldToMatch>
- 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.
- logDestinationConfigs
string[]
- The Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
- resourceArn
string
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
- loggingFilter
LoggingFilterProperties
- 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.
- redactedFields
LoggingConfigurationFieldToMatch[]
- 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.
- log_destination_configs
Sequence[str]
- The Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
- resource_arn
str
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
- logging_filter
LoggingFilterPropertiesArgs
- 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.
- redacted_fields
Sequence[LoggingConfigurationFieldToMatchArgs]
- 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.
- logDestinationConfigs
List<String>
- The Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
- resourceArn
String
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
- loggingFilter
Property Map
- 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.
- redactedFields
List<Property Map>
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoggingConfiguration resource produces the following output properties:
- Id
string
- The provider-assigned unique ID for this managed resource.
- ManagedByFirewallManager
bool
- 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.
- Id
string
- The provider-assigned unique ID for this managed resource.
- ManagedByFirewallManager
bool
- 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.
- id
string
- The provider-assigned unique ID for this managed resource.
- managed_by_firewall_manager
bool
- 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.
- id
String
- The provider-assigned unique ID for this managed resource.
- managedByFirewallManager
Boolean
- 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.
- id
string
- The provider-assigned unique ID for this managed resource.
- managedByFirewallManager
boolean
- 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.
- id
str
- The provider-assigned unique ID for this managed resource.
- managed_by_firewall_manager
bool
- 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.
- id
String
- The provider-assigned unique ID for this managed resource.
- managedByFirewallManager
Boolean
- 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.
Look up Existing LoggingConfiguration Resource
Get an existing LoggingConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
func GetLoggingConfiguration(ctx *Context, name string, id IDInput, state *LoggingConfigurationState, opts ...ResourceOption) (*LoggingConfiguration, error)
public static LoggingConfiguration get(String name, Output<String> id, CustomResourceOptions options)
resources: existingLoggingConfiguration: type: aws-native:wafv2:LoggingConfiguration get: id: ${id}
import {
to = aws-native_wafv2_logging_configuration.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
LoggingConfigurationState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
LoggingConfigurationCondition, LoggingConfigurationConditionArgs
LoggingConfigurationConditionActionConditionProperties, LoggingConfigurationConditionActionConditionPropertiesArgs
A single action condition.
LoggingConfigurationConditionActionConditionPropertiesAction
Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
| Name | Value |
|---|
| Allow | ALLOW |
| Block | BLOCK |
| Count | COUNT |
| Captcha | CAPTCHA |
| Challenge | CHALLENGE |
| Monetize | MONETIZE |
| ExcludedAsCount | EXCLUDED_AS_COUNT |
| Name | Value |
|---|
| LoggingConfigurationConditionActionConditionPropertiesActionAllow | ALLOW |
| LoggingConfigurationConditionActionConditionPropertiesActionBlock | BLOCK |
| LoggingConfigurationConditionActionConditionPropertiesActionCount | COUNT |
| LoggingConfigurationConditionActionConditionPropertiesActionCaptcha | CAPTCHA |
| LoggingConfigurationConditionActionConditionPropertiesActionChallenge | CHALLENGE |
| LoggingConfigurationConditionActionConditionPropertiesActionMonetize | MONETIZE |
| LoggingConfigurationConditionActionConditionPropertiesActionExcludedAsCount | EXCLUDED_AS_COUNT |
| Value |
|---|
ALLOW |
BLOCK |
COUNT |
CAPTCHA |
CHALLENGE |
MONETIZE |
EXCLUDED_AS_COUNT |
| Name | Value |
|---|
| Allow | ALLOW |
| Block | BLOCK |
| Count | COUNT |
| Captcha | CAPTCHA |
| Challenge | CHALLENGE |
| Monetize | MONETIZE |
| ExcludedAsCount | EXCLUDED_AS_COUNT |
| Name | Value |
|---|
| Allow | ALLOW |
| Block | BLOCK |
| Count | COUNT |
| Captcha | CAPTCHA |
| Challenge | CHALLENGE |
| Monetize | MONETIZE |
| ExcludedAsCount | EXCLUDED_AS_COUNT |
| Name | Value |
|---|
| ALLOW | ALLOW |
| BLOCK | BLOCK |
| COUNT | COUNT |
| CAPTCHA | CAPTCHA |
| CHALLENGE | CHALLENGE |
| MONETIZE | MONETIZE |
| EXCLUDED_AS_COUNT | EXCLUDED_AS_COUNT |
| Value |
|---|
ALLOW |
BLOCK |
COUNT |
CAPTCHA |
CHALLENGE |
MONETIZE |
EXCLUDED_AS_COUNT |
LoggingConfigurationConditionLabelNameConditionProperties, LoggingConfigurationConditionLabelNameConditionPropertiesArgs
A single label name condition.
- LabelName
string
- The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
- LabelName
string
- The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
- label_name
string
- The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
- labelName
String
- The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
- labelName
string
- The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
- label_name
str
- The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
- labelName
String
- The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
LoggingConfigurationFieldToMatch, LoggingConfigurationFieldToMatchArgs
A key-value pair to associate with a resource.
- Method
object
- Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
- QueryString
object
- Inspect the query string. This is the part of a URL that appears after a ? character, if any.
-
Pulumi.AwsNative.WaFv2.Inputs.LoggingConfigurationFieldToMatchSingleHeaderProperties
- Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- UriPath
object
- Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
- Method
interface{}
- Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
- QueryString
interface{}
- Inspect the query string. This is the part of a URL that appears after a ? character, if any.
-
LoggingConfigurationFieldToMatchSingleHeaderProperties
- Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- UriPath
interface{}
- Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
- method
any
- Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
- query_string
any
- Inspect the query string. This is the part of a URL that appears after a ? character, if any.
-
object
- Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- uri_path
any
- Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
- method
Object
- Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
- queryString
Object
- Inspect the query string. This is the part of a URL that appears after a ? character, if any.
-
LoggingConfigurationFieldToMatchSingleHeaderProperties
- Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- uriPath
Object
- Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
- method
any
- Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
- queryString
any
- Inspect the query string. This is the part of a URL that appears after a ? character, if any.
-
LoggingConfigurationFieldToMatchSingleHeaderProperties
- Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- uriPath
any
- Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
- method
Any
- Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
- query_string
Any
- Inspect the query string. This is the part of a URL that appears after a ? character, if any.
-
LoggingConfigurationFieldToMatchSingleHeaderProperties
- Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- uri_path
Any
- Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
- method
Any
- Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
- queryString
Any
- Inspect the query string. This is the part of a URL that appears after a ? character, if any.
-
Property Map
- Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- uriPath
Any
- Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
- Name
string
- The name of the query header to inspect.
- Name
string
- The name of the query header to inspect.
- name
string
- The name of the query header to inspect.
- name
String
- The name of the query header to inspect.
- name
string
- The name of the query header to inspect.
- name
str
- The name of the query header to inspect.
- name
String
- The name of the query header to inspect.
LoggingConfigurationFilter, LoggingConfigurationFilterArgs
LoggingConfigurationFilterBehavior
How to handle logs that satisfy the filter's conditions and requirement.
| Name | Value |
|---|
| Keep | KEEP |
| Drop | DROP |
| Name | Value |
|---|
| LoggingConfigurationFilterBehaviorKeep | KEEP |
| LoggingConfigurationFilterBehaviorDrop | DROP |
| Name | Value |
|---|
| Keep | KEEP |
| Drop | DROP |
| Name | Value |
|---|
| Keep | KEEP |
| Drop | DROP |
| Name | Value |
|---|
| KEEP | KEEP |
| DROP | DROP |
LoggingConfigurationFilterRequirement
Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
| Name | Value |
|---|
| MeetsAll | MEETS_ALL |
| MeetsAny | MEETS_ANY |
| Name | Value |
|---|
| LoggingConfigurationFilterRequirementMeetsAll | MEETS_ALL |
| LoggingConfigurationFilterRequirementMeetsAny | MEETS_ANY |
| Name | Value |
|---|
| MeetsAll | MEETS_ALL |
| MeetsAny | MEETS_ANY |
| Name | Value |
|---|
| MeetsAll | MEETS_ALL |
| MeetsAny | MEETS_ANY |
| Name | Value |
|---|
| MEETS_ALL | MEETS_ALL |
| MEETS_ANY | MEETS_ANY |
LoggingConfigurationLoggingFilterPropertiesDefaultBehavior
Default handling for logs that don't match any of the specified filtering conditions.
| Name | Value |
|---|
| Keep | KEEP |
| Drop | DROP |
| Name | Value |
|---|
| LoggingConfigurationLoggingFilterPropertiesDefaultBehaviorKeep | KEEP |
| LoggingConfigurationLoggingFilterPropertiesDefaultBehaviorDrop | DROP |
| Name | Value |
|---|
| Keep | KEEP |
| Drop | DROP |
| Name | Value |
|---|
| Keep | KEEP |
| Drop | DROP |
| Name | Value |
|---|
| KEEP | KEEP |
| DROP | DROP |
LoggingFilterProperties, LoggingFilterPropertiesArgs
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.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0