SubnetworkLogConfigArgs

data class SubnetworkLogConfigArgs(val aggregationInterval: Output<String>? = null, val filterExpr: Output<String>? = null, val flowSampling: Output<Double>? = null, val metadata: Output<String>? = null, val metadataFields: Output<List<String>>? = null) : ConvertibleToJava<SubnetworkLogConfigArgs>

Constructors

Link copied to clipboard
constructor(aggregationInterval: Output<String>? = null, filterExpr: Output<String>? = null, flowSampling: Output<Double>? = null, metadata: Output<String>? = null, metadataFields: Output<List<String>>? = null)

Properties

Link copied to clipboard
val aggregationInterval: Output<String>? = null

Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection. Default value is INTERVAL_5_SEC. Possible values are: INTERVAL_5_SEC, INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, INTERVAL_15_MIN.

Link copied to clipboard
val filterExpr: Output<String>? = null

Export filter used to define which VPC flow logs should be logged, as as CEL expression. See https://cloud.google.com/vpc/docs/flow-logs#filtering for details on how to format this field. The default value is 'true', which evaluates to include everything.

Link copied to clipboard
val flowSampling: Output<Double>? = null

Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in 0, 1. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 which means half of all collected logs are reported.

Link copied to clipboard
val metadata: Output<String>? = null

Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA. Possible values are: EXCLUDE_ALL_METADATA, INCLUDE_ALL_METADATA, CUSTOM_METADATA.

Link copied to clipboard
val metadataFields: Output<List<String>>? = null

List of metadata fields that should be added to reported logs. Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" is set to CUSTOM_METADATA.

Functions

Link copied to clipboard
open override fun toJava(): SubnetworkLogConfigArgs