VpcFlowLogsConfigState class

Input properties used for looking up and filtering VpcFlowLogsConfig resources.

Constructors

VpcFlowLogsConfigState({Input<String?>? aggregationInterval, Input<String?>? createTime, Input<String?>? deletionPolicy, Input<String?>? description, Input<Map<String, String>?>? effectiveLabels, Input<String?>? filterExpr, Input<double?>? flowSampling, Input<String?>? interconnectAttachment, Input<Map<String, String>?>? labels, Input<String?>? location, Input<String?>? metadata, Input<List<String>?>? metadataFields, Input<String?>? name, Input<String?>? network, Input<String?>? project, Input<Map<String, String>?>? pulumiLabels, Input<String?>? state, Input<String?>? subnet, Input<String?>? targetResourceState, Input<String?>? updateTime, Input<String?>? vpcFlowLogsConfigId, Input<String?>? vpnTunnel})
Creates a new VpcFlowLogsConfigState. aggregationInterval Optional. The aggregation interval for the logs. Default value is createTime Output only. The time the config was created. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. description Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum effectiveLabels All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services. filterExpr Optional. Export filter used to define which VPC Flow Logs should be logged. flowSampling Optional. The value of the field must be in (0, 1]. The sampling rate interconnectAttachment Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name} labels Optional. Resource labels to represent user-provided metadata. location Resource ID segment making up resource name. It identifies the resource metadata Optional. Configures whether all, none or a subset of metadata fields metadataFields Optional. Custom metadata fields to include in the reported VPC flow name Identifier. Unique name of the configuration using the form: projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id} network Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name} project The ID of the project in which the resource belongs. pulumiLabels The combination of labels configured directly on the resource state Optional. The state of the VPC Flow Log configuration. Default value subnet Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name} targetResourceState Describes the state of the configured target resource for diagnostic updateTime Output only. The time the config was updated. vpcFlowLogsConfigId Required. ID of the VpcFlowLogsConfig. vpnTunnel Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
const
VpcFlowLogsConfigState.fromMap(Map<String, dynamic> map)
factory

Properties

aggregationInterval → Input<String?>?
Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC. Possible values: AGGREGATION_INTERVAL_UNSPECIFIED INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN
final
createTime → Input<String?>?
Output only. The time the config was created.
final
deletionPolicy → Input<String?>?
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
final
description → Input<String?>?
Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
final
effectiveLabels → Input<Map<String, String>?>?
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
final
filterExpr → Input<String?>?
Optional. Export filter used to define which VPC Flow Logs should be logged.
final
flowSampling → Input<double?>?
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.
final
hashCode → int
The hash code for this object.
no setterinherited
interconnectAttachment → Input<String?>?
Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
final
labels → Input<Map<String, String>?>?
Optional. Resource labels to represent user-provided metadata.
final
location → Input<String?>?
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type networkmanagement.googleapis.com/VpcFlowLogsConfig.
final
metadata → Input<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. Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA
final
metadataFields → Input<List<String>?>?
Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
final
name → Input<String?>?
Identifier. Unique name of the configuration using the form: projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}
final
network → Input<String?>?
Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
final
project → Input<String?>?
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
final
pulumiLabels → Input<Map<String, String>?>?
The combination of labels configured directly on the resource and default labels configured on the provider.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → Input<String?>?
Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Possible values: STATE_UNSPECIFIED ENABLED DISABLED
final
subnet → Input<String?>?
Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
final
targetResourceState → Input<String?>?
Describes the state of the configured target resource for diagnostic purposes. Possible values: TARGET_RESOURCE_STATE_UNSPECIFIED TARGET_RESOURCE_EXISTS TARGET_RESOURCE_DOES_NOT_EXIST
final
updateTime → Input<String?>?
Output only. The time the config was updated.
final
vpcFlowLogsConfigId → Input<String?>?
Required. ID of the VpcFlowLogsConfig.
final
vpnTunnel → Input<String?>?
Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited