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< ? effectiveLabels, Input<String, String> ?>String?> ? filterExpr, Input<double?> ? flowSampling, Input<String?> ? interconnectAttachment, Input<Map< ? labels, Input<String, String> ?>String?> ? location, Input<String?> ? metadata, Input<List< ? metadataFields, Input<String> ?>String?> ? name, Input<String?> ? network, Input<String?> ? project, Input<Map< ? pulumiLabels, Input<String, String> ?>String?> ? state, Input<String?> ? subnet, Input<String?> ? targetResourceState, Input<String?> ? updateTime, Input<String?> ? vpcFlowLogsConfigId, Input<String?> ? vpnTunnel}) -
Creates a new VpcFlowLogsConfigState.
aggregationIntervalOptional. The aggregation interval for the logs. Default value iscreateTimeOutput only. The time the config was created.deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.descriptionOptional. The user-supplied description of the VPC Flow Logs configuration. MaximumeffectiveLabelsAll of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.filterExprOptional. Export filter used to define which VPC Flow Logs should be logged.flowSamplingOptional. The value of the field must be in (0, 1]. The sampling rateinterconnectAttachmentTraffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}labelsOptional. Resource labels to represent user-provided metadata.locationResource ID segment making up resourcename. It identifies the resourcemetadataOptional. Configures whether all, none or a subset of metadata fieldsmetadataFieldsOptional. Custom metadata fields to include in the reported VPC flownameIdentifier. Unique name of the configuration using the form:projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}networkTraffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}projectThe ID of the project in which the resource belongs.pulumiLabelsThe combination of labels configured directly on the resourcestateOptional. The state of the VPC Flow Log configuration. Default valuesubnetTraffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}targetResourceStateDescribes the state of the configured target resource for diagnosticupdateTimeOutput only. The time the config was updated.vpcFlowLogsConfigIdRequired. ID of theVpcFlowLogsConfig.vpnTunnelTraffic 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 typenetworkmanagement.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