pub struct VpcFlowLogsConfig {Show 17 fields
pub aggregation_interval: Option<String>,
pub create_time: Option<DateTime<Utc>>,
pub cross_project_metadata: Option<String>,
pub description: Option<String>,
pub filter_expr: Option<String>,
pub flow_sampling: Option<f32>,
pub interconnect_attachment: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub metadata: Option<String>,
pub metadata_fields: Option<Vec<String>>,
pub name: Option<String>,
pub network: Option<String>,
pub state: Option<String>,
pub subnet: Option<String>,
pub target_resource_state: Option<String>,
pub update_time: Option<DateTime<Utc>>,
pub vpn_tunnel: Option<String>,
}Expand description
A configuration to generate VPC Flow Logs.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations vpc flow logs configs create organizations (request)
- locations vpc flow logs configs get organizations (response)
- locations vpc flow logs configs patch organizations (request)
- locations vpc flow logs configs create projects (request)
- locations vpc flow logs configs get projects (response)
- locations vpc flow logs configs patch projects (request)
Fields§
§aggregation_interval: Option<String>Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
create_time: Option<DateTime<Utc>>Output only. The time the config was created.
cross_project_metadata: Option<String>Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
description: Option<String>Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
filter_expr: Option<String>Optional. Export filter used to define which VPC Flow Logs should be logged.
flow_sampling: Option<f32>Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
interconnect_attachment: Option<String>Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
labels: Option<HashMap<String, String>>Optional. Resource labels to represent user-provided metadata.
metadata: Option<String>Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
metadata_fields: Option<Vec<String>>Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if “metadata” was set to CUSTOM_METADATA.
name: Option<String>Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id} - For organization-level configurations: organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}
network: Option<String>Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
state: Option<String>Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
subnet: Option<String>Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
target_resource_state: Option<String>Output only. Describes the state of the configured target resource for diagnostic purposes.
update_time: Option<DateTime<Utc>>Output only. The time the config was updated.
vpn_tunnel: Option<String>Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
Trait Implementations§
Source§impl Clone for VpcFlowLogsConfig
impl Clone for VpcFlowLogsConfig
Source§fn clone(&self) -> VpcFlowLogsConfig
fn clone(&self) -> VpcFlowLogsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more