def __init__(__self__, *, aggregation_interval: Optional[pulumi.Input['SubnetworkLogConfigAggregationInterval']]=None, enable: Optional[pulumi.Input[bool]]=None, filter_expr: Optional[pulumi.Input[str]]=None, flow_sampling: Optional[pulumi.Input[float]]=None, metadata: Optional[pulumi.Input['SubnetworkLogConfigMetadata']]=None, metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
    '\n        The available logging options for this subnetwork.\n        :param pulumi.Input[\'SubnetworkLogConfigAggregationInterval\'] aggregation_interval: 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.\n        :param pulumi.Input[bool] enable: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.\n        :param pulumi.Input[str] filter_expr: Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.\n        :param pulumi.Input[float] flow_sampling: 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 unless otherwise specified by the org policy, which means half of all collected logs are reported.\n        :param pulumi.Input[\'SubnetworkLogConfigMetadata\'] metadata: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] metadata_fields: Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.\n        '
    if (aggregation_interval is not None):
        pulumi.set(__self__, 'aggregation_interval', aggregation_interval)
    if (enable is not None):
        pulumi.set(__self__, 'enable', enable)
    if (filter_expr is not None):
        pulumi.set(__self__, 'filter_expr', filter_expr)
    if (flow_sampling is not None):
        pulumi.set(__self__, 'flow_sampling', flow_sampling)
    if (metadata is not None):
        pulumi.set(__self__, 'metadata', metadata)
    if (metadata_fields is not None):
        pulumi.set(__self__, 'metadata_fields', metadata_fields)
The available logging options for this subnetwork.
:param pulumi.Input['SubnetworkLogConfigAggregationInterval'] aggregation_interval: 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.
:param pulumi.Input[bool] enable: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.
:param pulumi.Input[str] filter_expr: Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
:param pulumi.Input[float] flow_sampling: 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 unless otherwise specified by the org policy, which means half of all collected logs are reported.
:param pulumi.Input['SubnetworkLogConfigMetadata'] metadata: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
:param pulumi.Input[Sequence[pulumi.Input[str]]] metadata_fields: Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
def __init__(__self__, *, aggregation_interval: Optional[pulumi.Input['SubnetworkLogConfigAggregationInterval']]=None, enable: Optional[pulumi.Input[bool]]=None, filter_expr: Optional[pulumi.Input[str]]=None, flow_sampling: Optional[pulumi.Input[float]]=None, metadata: Optional[pulumi.Input['SubnetworkLogConfigMetadata']]=None, metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
    '\n        The available logging options for this subnetwork.\n        :param pulumi.Input[\'SubnetworkLogConfigAggregationInterval\'] aggregation_interval: 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.\n        :param pulumi.Input[bool] enable: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.\n        :param pulumi.Input[str] filter_expr: Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.\n        :param pulumi.Input[float] flow_sampling: 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 unless otherwise specified by the org policy, which means half of all collected logs are reported.\n        :param pulumi.Input[\'SubnetworkLogConfigMetadata\'] metadata: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] metadata_fields: Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.\n        '
    if (aggregation_interval is not None):
        pulumi.set(__self__, 'aggregation_interval', aggregation_interval)
    if (enable is not None):
        pulumi.set(__self__, 'enable', enable)
    if (filter_expr is not None):
        pulumi.set(__self__, 'filter_expr', filter_expr)
    if (flow_sampling is not None):
        pulumi.set(__self__, 'flow_sampling', flow_sampling)
    if (metadata is not None):
        pulumi.set(__self__, 'metadata', metadata)
    if (metadata_fields is not None):
        pulumi.set(__self__, 'metadata_fields', metadata_fields)