compute library
Compute Engine resources: instances, addresses, firewalls, networks, subnetworks.
Classes
- AccessConfig
-
One entry inside
network_interface.access_config. An access config gives the interface an external IPv4 address (ephemeral when natIp is null, static when it's a reserved IP). - AdvancedMachineFeatures
-
advanced_machine_featuresblock (max_items=1). Per-CPU tuning knobs. - AliasIpRange
-
One entry inside
network_interface.alias_ip_range. Alias IPs let pods / containers running on the instance use secondary CIDR ranges from the attached subnetwork. - AttachedDisk
-
One entry inside
attached_disk. Attaches an existing persistent disk to the instance. - AutoscalerAutoscalingPolicy
-
autoscaling_policyblock — the heart of the autoscaler. Combines a replica range (minReplicas..maxReplicas) with one or more signal sub-blocks (cpuUtilization, loadBalancingUtilization, metrics) and optional smoothing controls (cooldownPeriod, scaleInControl, scalingSchedules). - AutoscalerCpuUtilization
-
cpu_utilizationblock. Drives autoscaling against the average CPU usage of instances in the target MIG. - AutoscalerLoadBalancingUtilization
-
load_balancing_utilizationblock. Drives autoscaling against backend-capacity utilization (HTTP(S) load balancer withutilizationbalancing mode). - AutoscalerMetric
-
One
metricentry — a custom Stackdriver / Cloud Monitoring signal. Exactly one of target / singleInstanceAssignment is typically set; the GCP API enforces the constraint at apply time. - AutoscalerScaleInControl
-
scale_in_controlblock. Caps how aggressively the autoscaler may shed replicas inside a timeWindowSec-second sliding window — useful for stateful workloads that need warm capacity to drain gracefully. - AutoscalerScaleInReplicas
-
max_scaled_in_replicassub-block. Express the cap as either a fixed count or a percent of the current MIG size; the schema requires at least one of the two. - AutoscalerScalingSchedule
-
One
scaling_schedulesentry. The DartMap<String, _>key becomes the schedule'snameon the wire (the schema models this as asetof blocks withnamebaked in). - BackendBucketCdnBypassCacheOnRequestHeader
-
Cache-bypass rule keyed on a request header name (one entry in
cdn_policy.bypass_cache_on_request_headers, max 5 entries). - BackendBucketCdnCacheKeyPolicy
-
cdn_policy.cache_key_policy(max_items=1). Buckets only expose the queryStringWhitelist / includeHttpHeaders axes — unlikeBackendServiceCdnCacheKeyPolicy, there is no host / protocol / query-string-as-a-whole toggle. - BackendBucketCdnNegativeCachingPolicy
-
One row in
cdn_policy.negative_caching_policy. - BackendBucketCdnPolicy
-
cdn_policyblock — Cloud CDN configuration for this backend bucket. Only honored whenGoogleComputeBackendBucket.enableCdnistrue. Distinct type fromBackendServiceCdnPolicy: the shape is similar but the schema has bucket-specific quirks (nocacheKeyPolicy.includeHost/includeProtocol/includeQueryString— buckets only expose thequeryStringWhitelist/includeHttpHeadersaxes). - BackendBucketParams
-
paramsblock — currently only carries resource-manager tags applied at creation time. Immutable: changes force replacement. - BackendServiceAwsV4Authentication
-
security_settings.aws_v4_authentication(max_items=1). accessKey is sensitive. - BackendServiceBackend
-
One entry in the
backendsset. The backend's group is the self-link of an Instance Group, Network Endpoint Group, or backend bucket — all backends in a single service must share the same kind (no mixing IG with NEG). - BackendServiceBackendCustomMetric
-
One entry under
backend.custom_metrics— a signal exported by the backend that the load balancer should consider whenbalancingModeis BackendServiceBalancingMode.customMetrics. - BackendServiceCdnBypassCacheOnRequestHeader
- Cache-bypass rule keyed on a request header name.
- BackendServiceCdnCacheKeyPolicy
-
cdn_policy.cache_key_policy(max_items=1). - BackendServiceCdnNegativeCachingPolicy
-
One row in
cdn_policy.negative_caching_policy. - BackendServiceCdnPolicy
-
cdn_policyblock. Only honored whenenableCdnistrue. - BackendServiceCircuitBreakers
-
circuit_breakersblock — caps on simultaneous activity per backend before the load balancer trips. Only honored forINTERNAL_SELF_MANAGED/INTERNAL_MANAGED/EXTERNAL_MANAGEDschemes. - BackendServiceConsistentHash
-
consistent_hashblock. Only meaningful when LocalityLbPolicy isringHashormaglev. - BackendServiceConsistentHashHttpCookie
-
consistent_hash.http_cookie(max_items=1). - BackendServiceCustomMetric
-
One entry under the top-level
custom_metrics. Mirrors BackendServiceBackendCustomMetric but withoutmaxUtilization(schema only modelsname+dry_runat this scope). - BackendServiceDuration
-
google.protobuf.Duration-shaped value used by several sub-blocks
(
consistent_hash.http_cookie.ttl,strong_session_affinity_cookie.ttl,outlier_detection.base_ejection_time, etc.). - BackendServiceIap
-
iapblock. Wraps the backend service in Cloud IAP, which gates requests on an authenticated end-user identity / IAM check before they reach the backend. - BackendServiceLocalityLbBuiltinPolicy
-
Built-in
locality_lb_policies[].policy(max_items=1). - BackendServiceLocalityLbCustomPolicy
-
Caller-supplied xDS
locality_lb_policies[].custom_policy(max_items=1). - BackendServiceLocalityLbPolicyEntry
-
One entry under
locality_lb_policies. Exactly one of policy / customPolicy should be set per entry. - BackendServiceLogConfig
-
log_configblock — Cloud Logging export configuration for the backend service. - BackendServiceMaxStreamDuration
-
max_stream_durationblock. Schema quirk: thesecondsattribute is typed as a string (not a number) — pass a decimal string like"30"or"30.500". - BackendServiceOutlierDetection
-
outlier_detectionblock — passive health checking. Hosts that exceed the configured failure thresholds are ejected from the load balancing pool forbase_ejection_time* consecutive-ejection-count. - BackendServiceParams
-
paramsblock — currently only carries resource-manager tags. - BackendServiceSecuritySettings
-
security_settingsblock — mTLS / TLS policy used when dialing backends. - BackendServiceStrongSessionAffinityCookie
-
strong_session_affinity_cookieblock. Used only whensessionAffinityis SessionAffinity.strongCookieAffinity. - BackendServiceTlsSettings
-
tls_settingsblock — newer (TLS 1.3 / authentication-config-based) TLS configuration; preferred oversecurity_settingswhen both would otherwise apply. - BackendServiceTlsSubjectAltName
-
One entry under
tls_settings.subject_alt_names. Exactly one of dnsName / uniformResourceIdentifier should be set. - BootDisk
-
boot_diskblock (single, required by GCP). At least one of initializeParams (create a new disk) or source (attach an existing disk) is required by Terraform; this helper does not enforce that because both are nullable in the schema. - ConfidentialInstanceConfig
-
confidential_instance_configblock (max_items=1). Enables Confidential VM. Requiresscheduling.on_host_maintenance = TERMINATE. - FirewallAllowRule
-
One
allowentry: an IP protocol plus optional list of port specs. - FirewallDenyRule
-
One
denyentry. Same shape as FirewallAllowRule; kept separate so caller intent is obvious at the call site (allow:vsdeny:lists are mutually exclusive per GCP API). - FirewallLogConfig
- Firewall logging configuration (single block, max_items=1). Setting this enables Cloud Logging export for matched traffic.
- ForwardingRuleServiceDirectoryRegistration
-
One entry in
service_directory_registrations. The schema caps the list at one entry; populated only for forwarding rules whoseloadBalancingSchemeisINTERNALorINTERNAL_MANAGEDso other consumers in the same project can resolve the rule by Service Directory name. - GlobalForwardingRuleMetadataFilter
-
One entry in
metadata_filters. Only consulted by Traffic Director (loadBalancingScheme: INTERNAL_SELF_MANAGED) forwarding rules — silently ignored for every other scheme. xDS clients present node metadata in their config request; this filter gates which routing config gets returned to which client. - GlobalForwardingRuleMetadataFilterLabel
-
One
metadata_filters[*].filter_labels[*]entry. Both name and value are required by the provider schema; lengths are capped at 1024 characters by the API (not enforced here). - GlobalForwardingRuleServiceDirectoryRegistration
-
One entry in
service_directory_registrations. The schema caps the list at one entry; populated only for Private Service Connect forwarding rules that target Google APIs (so other consumers in the same project can resolve the rule by Service Directory name). - GoogleComputeAddress
-
Factory wrapper for
google_compute_address(providerhashicorp/google ~> 7.0). - GoogleComputeAutoscaler
-
Factory wrapper for
google_compute_autoscaler(providerhashicorp/google ~> 7.0). - GoogleComputeBackendBucket
-
Factory wrapper for
google_compute_backend_bucket(providerhashicorp/google ~> 7.0). - GoogleComputeBackendService
-
Factory wrapper for
google_compute_backend_service(providerhashicorp/google ~> 7.0). - GoogleComputeDiskIamMember
-
Factory wrapper for
google_compute_disk_iam_member. - GoogleComputeFirewall
-
Factory wrapper for
google_compute_firewall(providerhashicorp/google ~> 7.0). - GoogleComputeForwardingRule
-
Factory wrapper for
google_compute_forwarding_rule(providerhashicorp/google ~> 7.0). - GoogleComputeGlobalAddress
-
Factory wrapper for
google_compute_global_address(providerhashicorp/google ~> 7.0). - GoogleComputeGlobalForwardingRule
-
Factory wrapper for
google_compute_global_forwarding_rule(providerhashicorp/google ~> 7.0). - GoogleComputeGlobalNetworkEndpointGroup
-
Factory wrapper for
google_compute_global_network_endpoint_group(providerhashicorp/google ~> 7.0). - GoogleComputeHealthCheck
-
Factory wrapper for
google_compute_health_check(providerhashicorp/google ~> 7.0). - GoogleComputeInstance
-
Factory wrapper for
google_compute_instance(providerhashicorp/google ~> 7.0). - GoogleComputeInstanceGroupManager
-
Factory wrapper for
google_compute_instance_group_manager(providerhashicorp/google ~> 7.0). - GoogleComputeInstanceIamMember
-
Factory wrapper for
google_compute_instance_iam_member. - GoogleComputeInstanceTemplate
-
Factory wrapper for
google_compute_instance_template(providerhashicorp/google ~> 7.0). - GoogleComputeManagedSslCertificate
-
Factory wrapper for
google_compute_managed_ssl_certificate(providerhashicorp/google ~> 7.0). - GoogleComputeNetwork
-
Factory wrapper for
google_compute_network(providerhashicorp/google ~> 7.0). - GoogleComputeNetworkEndpointGroup
-
Factory wrapper for
google_compute_network_endpoint_group(providerhashicorp/google ~> 7.0). - GoogleComputeRegionAutoscaler
-
Factory wrapper for
google_compute_region_autoscaler(providerhashicorp/google ~> 7.0). - GoogleComputeRegionBackendService
-
Factory wrapper for
google_compute_region_backend_service(providerhashicorp/google ~> 7.0). - GoogleComputeRegionHealthCheck
-
Factory wrapper for
google_compute_region_health_check(providerhashicorp/google ~> 7.0). - GoogleComputeRegionInstanceGroupManager
-
Factory wrapper for
google_compute_region_instance_group_manager(providerhashicorp/google ~> 7.0). - GoogleComputeRegionNetworkEndpointGroup
-
Factory wrapper for
google_compute_region_network_endpoint_group(providerhashicorp/google ~> 7.0). - GoogleComputeRegionTargetHttpProxy
-
Factory wrapper for
google_compute_region_target_http_proxy(providerhashicorp/google ~> 7.0). - GoogleComputeRegionTargetHttpsProxy
-
Factory wrapper for
google_compute_region_target_https_proxy(providerhashicorp/google ~> 7.0). - GoogleComputeRegionUrlMap
-
Factory wrapper for
google_compute_region_url_map(providerhashicorp/google ~> 7.0). - GoogleComputeSecurityPolicy
-
Factory wrapper for
google_compute_security_policy(providerhashicorp/google ~> 7.0). This is Google Cloud Armor: a layer-7 WAF / DDoS / rate-limiting policy that attaches to one or moregoogle_compute_backend_service(via that resource'ssecurityPolicyfield) or to backend buckets for edge variants. - GoogleComputeSslCertificate
-
Factory wrapper for
google_compute_ssl_certificate(providerhashicorp/google ~> 7.0). - GoogleComputeSslPolicy
-
Factory wrapper for
google_compute_ssl_policy(providerhashicorp/google ~> 7.0). - GoogleComputeSubnetwork
-
Factory wrapper for
google_compute_subnetwork(providerhashicorp/google ~> 7.0). - GoogleComputeSubnetworkIamMember
-
Factory wrapper for
google_compute_subnetwork_iam_member. - GoogleComputeTargetHttpProxy
-
Factory wrapper for
google_compute_target_http_proxy(providerhashicorp/google ~> 7.0). - GoogleComputeTargetHttpsProxy
-
Factory wrapper for
google_compute_target_https_proxy(providerhashicorp/google ~> 7.0). - GoogleComputeUrlMap
-
Factory wrapper for
google_compute_url_map(providerhashicorp/google ~> 7.0). - GrpcHealthCheckConfig
-
grpc_health_checkblock. Probes via the gRPC Health Checking Protocol (grpc.health.v1.Health/Check). - GuestAccelerator
-
One entry inside
guest_accelerator. Attaches a GPU / TPU to the VM. - HealthCheckLogConfig
-
log_configblock. Toggles Cloud Logging export of probe results. - Http2HealthCheckConfig
-
http2_health_checkblock. - HttpHealthCheckConfig
-
http_health_checkblock. Set this (and only this) to make the resource an HTTP health check. - HttpsHealthCheckConfig
-
https_health_checkblock. - InitializeParams
-
boot_disk.initialize_paramsblock. Creates a new disk inline at instance-create time. Mutually exclusive withbootDisk.source(which attaches an existing disk). - InstanceGroupManagerAllInstancesConfig
-
all_instances_configblock. Patches labels and metadata onto every VM the MIG manages, overlaying the instance template's values. - InstanceGroupManagerAutoHealingPolicy
-
auto_healing_policiesblock. When a VM fails its healthCheck for longer than the initial-delay window, the MIG recreates it. Schema marks both fields as required. - InstanceGroupManagerInstanceLifecyclePolicy
-
instance_lifecycle_policyblock — fine-grained behavior on failures and template updates. - InstanceGroupManagerNamedPort
-
One entry in
namedPorts. Backend services that reference this MIG byport_namelook up the matching port number here. - InstanceGroupManagerResourcePolicies
-
resource_policiesblock — wires the MIG to agoogle_compute_resource_policyworkload policy. - InstanceGroupManagerStandbyPolicy
-
standby_policyblock — controls how the MIG resumes VMs from a standby pool during scale-out. - InstanceGroupManagerStatefulDisk
-
One entry in
statefulDisks. Marks a disk attached at deviceName as stateful — the MIG preserves the disk across VM recreates per deleteRule. - InstanceGroupManagerStatefulIp
-
One entry in
statefulInternalIps/statefulExternalIps. Both blocks share the same shape. - InstanceGroupManagerTargetSizePolicy
-
One entry in
targetSizePolicies. Configures whether the MIG creates VMs individually or all at once to reachGoogleComputeInstanceGroupManager.targetSize. - InstanceGroupManagerUpdatePolicy
-
update_policyblock. Drives how the MIG rolls a new InstanceGroupManagerVersion across its members. - InstanceGroupManagerVersion
-
One entry in
versions. Each version pins an instanceTemplate (agoogle_compute_instance_templateself-link, typically a within-batch sibling) and optionally caps how many instances run that version via targetSize. - InstanceGroupManagerVersionTargetSize
-
version.target_size(max_items=1). Exactly one of fixed or percent should be set. - InstanceParams
-
paramsblock (max_items=1). Carries request-side parameters that are not persisted on the resource (currently only resource manager tags applied at instance-create time). - InstanceTemplateAccessConfig
-
One entry inside
network_interface.access_config. An access config gives the interface an external IPv4 address (ephemeral when natIp is null, static when it's a reserved IP). - InstanceTemplateAdvancedMachineFeatures
-
advanced_machine_featuresblock (max_items=1). Per-CPU tuning knobs. - InstanceTemplateAliasIpRange
-
One entry inside
network_interface.alias_ip_range. Alias IPs let pods / containers running on instances created from this template use secondary CIDR ranges from the attached subnetwork. - InstanceTemplateConfidentialInstanceConfig
-
confidential_instance_configblock (max_items=1). Enables Confidential VM. Requiresscheduling.on_host_maintenance = TERMINATE. - InstanceTemplateDisk
-
One entry inside
disk. Templates requiremin_items=1. Eachdiskeither initializes a new disk inline (sourceImage/sourceSnapshot) or attaches an existing one (source). - InstanceTemplateDiskEncryptionKey
-
disk.disk_encryption_keyblock (max_items=1). Customer-managed KMS CryptoKey used to encrypt the disk at rest. - InstanceTemplateGuestAccelerator
-
One entry inside
guest_accelerator. Attaches a GPU / TPU to instances created from this template. Both fields are required by the schema. - InstanceTemplateIpv6AccessConfig
-
One entry inside
network_interface.ipv6_access_config. GCP currently allows at most one IPv6 access config per interface; onlyPREMIUMtier is valid for IPv6 today. - InstanceTemplateNetworkInterface
-
One entry inside
network_interface. At least one is required by GCP. - InstanceTemplateNetworkPerformanceConfig
-
network_performance_configblock (max_items=1). Selects the Tier 1 network egress profile. - InstanceTemplateNodeAffinity
-
One entry inside
scheduling.node_affinities. Sole-tenant placement uses this to bind instances to a node group with matching labels. - InstanceTemplateOnInstanceStopAction
-
scheduling.on_instance_stop_actionblock (max_items=1). Defines extra behaviour applied when the choseninstance_termination_actionruns. - InstanceTemplateReservationAffinity
-
reservation_affinityblock (max_items=1). Controls whether and how instances created from this template consume capacity from a Compute Engine reservation. - InstanceTemplateScheduling
-
schedulingblock (max_items=1). Controls preemptibility, host maintenance, max run duration, and sole-tenant affinities. - InstanceTemplateSchedulingDuration
-
scheduling.max_run_duration/scheduling.local_ssd_recovery_timeoutsub-block (Duration shape). Both fields take this same shape. - InstanceTemplateServiceAccount
-
service_accountblock (max_items=1). When set, instances created from this template expose a Google service account credential to the guest via the metadata service. - InstanceTemplateShieldedInstanceConfig
-
shielded_instance_configblock (max_items=1). Enables Shielded VM features (secure boot / vTPM / integrity monitoring). - InstanceTemplateSourceImageEncryptionKey
-
disk.source_image_encryption_keyblock (max_items=1). Customer-supplied key that decrypted the source image. Instance templates do not persist customer-supplied keys, so MIGs cannot create disks from images encrypted with your own keys via a template. - InstanceTemplateSourceSnapshotEncryptionKey
-
disk.source_snapshot_encryption_keyblock (max_items=1). Customer- supplied key that decrypted the source snapshot. - InstanceTemplateSpecificReservation
-
reservation_affinity.specific_reservationsub-block (max_items=1). Only meaningful when InstanceTemplateReservationAffinity.type is InstanceTemplateReservationAffinityType.specificReservation. - Ipv6AccessConfig
-
One entry inside
network_interface.ipv6_access_config. GCP currently allows at most one IPv6 access config per interface. - ManagedSslCertificateConfig
-
managedblock payload (single block, max_items=1). Carries the list of domains Google should issue the certificate for. - NetworkInterface
-
One entry inside
network_interface. At least one is required by GCP. - NetworkPerformanceConfig
-
network_performance_configblock (max_items=1). Selects the Tier 1 network egress profile. - NodeAffinity
-
One entry inside
scheduling.node_affinities. Sole-tenant placement uses this to bind the VM to a node group with matching labels. - RegionAutoscalerAutoscalingPolicy
-
autoscaling_policyblock — the heart of the autoscaler. Combines a replica range (minReplicas..maxReplicas) with one or more signal sub-blocks (cpuUtilization, loadBalancingUtilization, metrics) and optional smoothing controls (cooldownPeriod, scaleInControl, scalingSchedules). - RegionAutoscalerCpuUtilization
-
cpu_utilizationblock. Drives autoscaling against the average CPU usage of instances in the target regional MIG. - RegionAutoscalerLoadBalancingUtilization
-
load_balancing_utilizationblock. Drives autoscaling against backend-capacity utilization (HTTP(S) load balancer withutilizationbalancing mode). - RegionAutoscalerMetric
-
One
metricentry — a custom Stackdriver / Cloud Monitoring signal. Exactly one of target / singleInstanceAssignment is typically set; the GCP API enforces the constraint at apply time. - RegionAutoscalerScaleInControl
-
scale_in_controlblock. Caps how aggressively the autoscaler may shed replicas inside a timeWindowSec-second sliding window — useful for stateful workloads that need warm capacity to drain gracefully. - RegionAutoscalerScaleInReplicas
-
max_scaled_in_replicassub-block. Express the cap as either a fixed count or a percent of the current MIG size; the schema requires at least one of the two. - RegionAutoscalerScalingSchedule
-
One
scaling_schedulesentry. The DartMap<String, _>key becomes the schedule'snameon the wire (the schema models this as asetof blocks withnamebaked in). - RegionBackendServiceBackend
-
One entry in the
backendsset. The backend's group is the self-link of an Instance Group, regional MIG, or regional Network Endpoint Group — all backends in a single service must share the same kind (no mixing IG with NEG). Note: regional backends carry a failover flag (used by RegionBackendServiceFailoverPolicy) and do not support the global resource'spreferencefield. - RegionBackendServiceBackendCustomMetric
-
One entry under
backend.custom_metrics— a signal exported by the backend that the load balancer should consider whenbalancingModeis RegionBackendServiceBalancingMode.customMetrics. - RegionBackendServiceCdnCacheKeyPolicy
-
cdn_policy.cache_key_policy(max_items=1). - RegionBackendServiceCdnNegativeCachingPolicy
-
One row in
cdn_policy.negative_caching_policy. The regional schema does not model thettlattribute (status-code key only). - RegionBackendServiceCdnPolicy
-
cdn_policyblock. Only honored whenenableCdnistrue. The regional schema omits the global resource'sbypass_cache_on_request_headersandrequest_coalescingfields. - RegionBackendServiceCircuitBreakers
-
circuit_breakersblock — caps on simultaneous activity per backend before the load balancer trips. Only honored forINTERNAL_SELF_MANAGED/INTERNAL_MANAGED/EXTERNAL_MANAGEDschemes. - RegionBackendServiceConsistentHash
-
consistent_hashblock. Only meaningful when RegionBackendServiceLocalityLbPolicy isringHashormaglev. - RegionBackendServiceConsistentHashHttpCookie
-
consistent_hash.http_cookie(max_items=1). - RegionBackendServiceCustomMetric
-
One entry under the top-level
custom_metrics. Mirrors RegionBackendServiceBackendCustomMetric but withoutmaxUtilization(schema only modelsname+dry_runat this scope). - RegionBackendServiceDuration
-
google.protobuf.Duration-shaped value used by several sub-blocks
(
consistent_hash.http_cookie.ttl,strong_session_affinity_cookie.ttl,outlier_detection.base_ejection_time,outlier_detection.interval). - RegionBackendServiceFailoverPolicy
-
failover_policyblock — only meaningful for Internal Passthrough NLBs. Backends are split into primary / failover pools (see RegionBackendServiceBackend.failover); when the primary pool's healthy fraction drops below failoverRatio, traffic is shifted to the failover pool. - RegionBackendServiceHaPolicy
-
ha_policyblock — self-managed HA for External / Internal Passthrough NLBs. Conflicts withsessionAffinity,failoverPolicy, andhealthChecks— whenhaPolicyis set, the caller is responsible for tracking endpoint health and electing a leader. - RegionBackendServiceHaPolicyLeader
-
ha_policy.leader(max_items=1). - RegionBackendServiceHaPolicyLeaderNetworkEndpoint
-
ha_policy.leader.network_endpoint(max_items=1). - RegionBackendServiceIap
-
iapblock. Wraps the regional backend service in Cloud IAP, which gates requests on an authenticated end-user identity / IAM check before they reach the backend. - RegionBackendServiceLogConfig
-
log_configblock — Cloud Logging export configuration for the regional backend service. - RegionBackendServiceNetworkPassThroughLbTrafficPolicy
-
network_pass_through_lb_traffic_policyblock — traffic steering for Internal Passthrough NLBs (currently only zonal-affinity). - RegionBackendServiceOutlierDetection
-
outlier_detectionblock — passive health checking. Hosts that exceed the configured failure thresholds are ejected from the load balancing pool forbase_ejection_time* consecutive-ejection-count. - RegionBackendServiceParams
-
paramsblock — currently only carries resource-manager tags. - RegionBackendServiceStrongSessionAffinityCookie
-
strong_session_affinity_cookieblock. Used only whensessionAffinityis RegionBackendServiceSessionAffinity.strongCookieAffinity. - RegionBackendServiceTlsSettings
-
tls_settingsblock — TLS / mTLS configuration used when dialing backends. Only meaningful whenprotocolisSSL,HTTPS, orHTTP2. The regional resource does not surfacesecurity_settings— this is the only TLS-config block available here. - RegionBackendServiceTlsSubjectAltName
-
One entry under
tls_settings.subject_alt_names. Exactly one of dnsName / uniformResourceIdentifier should be set. - RegionBackendServiceZonalAffinity
-
network_pass_through_lb_traffic_policy.zonal_affinity(max_items=1). New connections are load balanced across healthy backend endpoints in the local zone first; behavior when the in-zone healthy fraction drops below spilloverRatio is governed by spillover. - RegionHealthCheckGrpcConfig
-
grpc_health_checkblock. Probes via the gRPC Health Checking Protocol (grpc.health.v1.Health/Check). - RegionHealthCheckHttp2Config
-
http2_health_checkblock. - RegionHealthCheckHttpConfig
-
http_health_checkblock. Set this (and only this) to make the resource an HTTP health check. - RegionHealthCheckHttpsConfig
-
https_health_checkblock. - RegionHealthCheckLogConfig
-
log_configblock. Toggles Cloud Logging export of probe results. - RegionHealthCheckSslConfig
-
ssl_health_checkblock. Pure SSL/TLS probe. - RegionHealthCheckTcpConfig
-
tcp_health_checkblock. Pure TCP connect-or-payload probe. - RegionInstanceGroupManagerAllInstancesConfig
-
all_instances_configblock. Patches labels and metadata onto every VM the MIG manages, overlaying the instance template's values. - RegionInstanceGroupManagerAutoHealingPolicy
-
auto_healing_policiesblock. When a VM fails its healthCheck for longer than the initial-delay window, the MIG recreates it. Schema marks both fields as required. - RegionInstanceGroupManagerInstanceFlexibilityPolicy
-
instance_flexibility_policyblock — regional only. Lets the MIG pick from multiple machine types when creating new VMs, instead of the single machine type set on the instance template. - RegionInstanceGroupManagerInstanceLifecyclePolicy
-
instance_lifecycle_policyblock — fine-grained behavior on failures and template updates. - RegionInstanceGroupManagerInstanceSelection
- One entry in RegionInstanceGroupManagerInstanceFlexibilityPolicy.instanceSelections.
- RegionInstanceGroupManagerNamedPort
-
One entry in
namedPorts. Backend services that reference this MIG byport_namelook up the matching port number here. - RegionInstanceGroupManagerResourcePolicies
-
resource_policiesblock — wires the MIG to agoogle_compute_resource_policyworkload policy. - RegionInstanceGroupManagerStandbyPolicy
-
standby_policyblock — controls how the MIG resumes VMs from a standby pool during scale-out. - RegionInstanceGroupManagerStatefulDisk
-
One entry in
statefulDisks. Marks a disk attached at deviceName as stateful — the MIG preserves the disk across VM recreates per deleteRule. Note: cross-zone instance redistribution must be disabled (set RegionInstanceGroupManagerUpdatePolicy.instanceRedistributionType to RegionInstanceGroupManagerInstanceRedistributionType.none) before updating stateful disks on an existing regional MIG. - RegionInstanceGroupManagerStatefulIp
-
One entry in
statefulInternalIps/statefulExternalIps. Both blocks share the same shape. - RegionInstanceGroupManagerTargetSizePolicy
-
One entry in
targetSizePolicies. Configures whether the MIG creates VMs individually or all at once to reachGoogleComputeRegionInstanceGroupManager.targetSize. - RegionInstanceGroupManagerUpdatePolicy
-
update_policyblock. Drives how the regional MIG rolls a new RegionInstanceGroupManagerVersion across its members and how aggressively it rebalances acrossdistributionPolicyZones. - RegionInstanceGroupManagerVersion
-
One entry in
versions. Each version pins an instanceTemplate (agoogle_compute_instance_templateself-link, typically a within-batch sibling) and optionally caps how many instances run that version via targetSize. - RegionInstanceGroupManagerVersionTargetSize
-
version.target_size(max_items=1). Exactly one of fixed or percent should be set. - RegionNetworkEndpointGroupAppEngine
-
app_engineslot ofgoogle_compute_region_network_endpoint_group. Only valid whennetworkEndpointTypeis RegionNetworkEndpointGroupType.serverless and mutually exclusive withcloudRun/cloudFunction. - RegionNetworkEndpointGroupCloudFunction
-
cloud_functionslot ofgoogle_compute_region_network_endpoint_group. Only valid whennetworkEndpointTypeis RegionNetworkEndpointGroupType.serverless and mutually exclusive withcloudRun/appEngine. - RegionNetworkEndpointGroupCloudRun
-
cloud_runslot ofgoogle_compute_region_network_endpoint_group. Only valid whennetworkEndpointTypeis RegionNetworkEndpointGroupType.serverless and mutually exclusive withcloudFunction/appEngine. - RegionUrlMapHeaderAction
-
header_actionblock. Adds / removes headers on requests forwarded to the backend and / or responses returned to the client. Used at the top-level URL-map slot and inside RegionUrlMapRouteRule.headerAction. - RegionUrlMapHeaderMatch
-
One
match_rules[].header_matches[]entry. The schema permits one of exactMatch / prefixMatch / suffixMatch / regexMatch / presentMatch / rangeMatch per entry; invertMatch negates the outcome. Validation is left to the GCP API. - RegionUrlMapHeaderMatchRange
-
header_matches.range_matchblock. Both bounds required by the schema. - RegionUrlMapHeaderToAdd
-
One entry in RegionUrlMapHeaderAction.requestHeadersToAdd /
RegionUrlMapHeaderAction.responseHeadersToAdd. All three fields are
required by the schema at the top-level
header_actionslot. - RegionUrlMapHostRule
-
One
host_ruleentry. Binds a set ofHost:header values to a RegionUrlMapPathMatcher by name. Multiplehost_ruleentries can point at the samepathMatcher. - RegionUrlMapPathMatcher
-
One
path_matcherentry. Each path matcher is named (so RegionUrlMapHostRule can reference it) and carries a fallback defaultService plus the path-based routing rules. - RegionUrlMapPathRule
-
One
path_matcher.path_rule[]entry. Matches request paths against the paths glob list (e.g.['/login', '/login/*']) and dispatches to either a service OR an inline urlRedirect -- exactly one of the two must be set per the GCP API. - RegionUrlMapQueryParameterMatch
-
One
match_rules[].query_parameter_matches[]entry. Matches a single query parameter by name with a chosen predicate. - RegionUrlMapRouteRule
-
One
path_matcher.route_rules[]entry. Priority-ordered routing with header / query / regex match support; the GCP equivalent of an Envoyroute_config. - RegionUrlMapRouteRuleMatch
-
One
route_rules[].match_rules[]entry. Carries the actual matching predicates (one or more of full path / prefix / regex / path template, optionally further refined by header / query / metadata filters). - RegionUrlMapTest
-
One
test[]entry. Each test states "a request to host+path should resolve to service" and is evaluated by GCP at apply time -- if the routing pipeline produces a different service, the apply FAILS. Effectively a contract test for the URL map's routing table. - RegionUrlMapTestHeader
- One entry in RegionUrlMapTest.headers. Both fields required by the schema.
- RegionUrlMapUrlRedirect
-
default_url_redirect/path_rule.url_redirect/route_rules.url_redirectblock. Returns an HTTP redirect to the client instead of forwarding to a backend. - ReservationAffinity
-
reservation_affinityblock (max_items=1). Controls whether and how the VM consumes capacity from a Compute Engine reservation. - Scheduling
-
schedulingblock (max_items=1). Controls preemptibility, host maintenance, max run duration, and sole-tenant affinities. - SchedulingDuration
-
scheduling.max_run_duration/scheduling.local_ssd_recovery_timeoutsub-block (Duration shape). Both fields take this same shape. - ScratchDisk
-
One entry inside
scratch_disk. Local SSD scratch disks are instance-lifetime only -- contents are lost on stop/start. - SecondaryIpRange
-
One
secondary_ip_rangeentry. Defines an alias IP range usable by instances in this subnetwork (typically consumed by GKE pods/services). - SecurityPolicyAdaptiveProtectionConfig
-
adaptive_protection_config-- Google's ML-driven layer-7 DDoS auto-mitigation. When enabled, Cloud Armor watches traffic patterns and proposes / auto-deploys rules during a suspected attack. - SecurityPolicyAdaptiveProtectionThresholdConfig
-
One entry in
threshold_configs. The numeric knobs are passed through verbatim -- consult the Cloud Armor adaptive-protection docs for tuning guidance. - SecurityPolicyAdvancedOptionsConfig
-
advanced_options_config-- knobs that apply across the whole policy: JSON-body inspection for preconfigured WAF rules, log verbosity, and client-IP resolution headers. - SecurityPolicyJsonCustomConfig
-
advanced_options_config.json_custom_config-- list of additional Content-Type values Cloud Armor should treat as JSON for WAF body inspection (beyond the defaultapplication/json). - SecurityPolicyLayer7DdosDefenseConfig
-
layer_7_ddos_defense_configblock. Pair enable with ruleVisibility (typically'STANDARD'); per-segment thresholds can be tuned via thresholdConfigs for tenants with predictable traffic shape. - SecurityPolicyRecaptchaOptionsConfig
-
recaptcha_options_config-- policy-wide reCAPTCHA site key used for redirect-to-reCAPTCHA actions. Only the redirect site key is exposed by Terraform today; if unset, Cloud Armor uses a Google- managed key. - SecurityPolicyRule
-
One entry in
rule[]. Rules are evaluated from highest priority (lowest numeric value) to lowest priority. The first match wins and its action is enforced. Cloud Armor REQUIRES a default rule at priority2147483647matching all traffic ('*') -- if you omit it the provider injects one with SecurityPolicyRuleAction.allow, which silently disables a deny-list policy. Always author the default rule explicitly. - SecurityPolicyRuleEnforceOnKeyConfig
-
One entry in
rate_limit_options.enforce_on_key_configs. Lets a rule key on a composite of attributes (e.g. "(client IP, region)"). - SecurityPolicyRuleHeaderAction
-
rule.header_action-- request-header rewrites applied alongside the rule's match action. Useful for tagging matched requests so downstream services (or Cloud Logging) can see which Cloud Armor rule fired. - SecurityPolicyRuleHeaderAdd
-
One header rewrite in SecurityPolicyRuleHeaderAction.requestHeadersToAdds.
headerValueis optional -- omitting it adds the header with an empty string value. - SecurityPolicyRuleMatch
-
rule.match-- the condition under which a rule fires. Mutually-exclusive variants: - SecurityPolicyRuleMatchConfig
-
match.config-- payload for theSRC_IPS_V1predicate. The only field today is srcIpRanges; the schema limits this to 10 entries per rule. Pass['*']to match ALL inbound IPs (the canonical default-deny / default-allow shape). - SecurityPolicyRuleMatchExpr
-
match.expr-- a user-defined Common Expression Language (CEL) predicate evaluated against the request. The expression is passed to Cloud Armor as an opaque string; the Dart wrapper does NOT type-check CEL syntax, so callers are responsible for matching Cloud Armor's CEL dialect (see https://cloud.google.com/armor/docs/rules-language-reference). - SecurityPolicyRuleRateLimitOptions
-
rule.rate_limit_options-- threshold + action plumbing for SecurityPolicyRuleAction.throttle and SecurityPolicyRuleAction.rateBasedBan. Throttle simply rejects requests over the threshold; rate-based ban additionally locks the offending key out for banDurationSec seconds once it trips banThreshold. - SecurityPolicyRuleRateLimitThreshold
-
rate_limit_threshold/ban_thresholdshape. Count of requests per fixed intervalSec window. - SecurityPolicyRuleRedirectOptions
-
rule.redirect_options-- redirect target shape, also reused asrate_limit_options.exceed_redirect_options. Two flavors:'EXTERNAL_302'requires target (an HTTPS URL Cloud Armor 302s to);'GOOGLE_RECAPTCHA'swaps the request for a Google-hosted reCAPTCHA challenge and MUST NOT set target. - SecurityPolicyTrafficGranularityConfig
-
One entry in
traffic_granularity_configs. enableEachUniqueValue (true) and value (non-empty string) are mutually exclusive: the schema rejects setting both. - ServiceAccount
-
service_accountblock (max_items=1). When set, the VM's metadata exposes a Google service account credential to the guest. - ShieldedInstanceConfig
-
shielded_instance_configblock (max_items=1). Enables Shielded VM features (secure boot / vTPM / integrity monitoring). - SpecificReservation
-
reservation_affinity.specific_reservationsub-block (max_items=1). Only meaningful when ReservationAffinity.type isReservationAffinityType.specificReservation. - SslHealthCheckConfig
-
ssl_health_checkblock. Pure SSL/TLS probe. - SubnetworkLogConfig
-
log_configblock. Enables VPC flow logs for the subnetwork. Flow logging is not supported when the subnetworkpurposeisREGIONAL_MANAGED_PROXYorGLOBAL_MANAGED_PROXY. - TcpHealthCheckConfig
-
tcp_health_checkblock. Pure TCP connect-or-payload probe. - UrlMapHeaderAction
-
header_actionblock. Adds / removes headers on requests forwarded to the backend and / or responses returned to the client. Used at the top-level URL-map slot and inside UrlMapRouteRule.headerAction. - UrlMapHeaderMatch
-
One
match_rules[].header_matches[]entry. The schema permits one of exactMatch / prefixMatch / suffixMatch / regexMatch / presentMatch / rangeMatch per entry; invertMatch negates the outcome. Validation is left to the GCP API. - UrlMapHeaderMatchRange
-
header_matches.range_matchblock. Both bounds required by the schema. - UrlMapHeaderToAdd
-
One entry in UrlMapHeaderAction.requestHeadersToAdd /
UrlMapHeaderAction.responseHeadersToAdd. All three fields are
required by the schema at the top-level
header_actionslot. - UrlMapHostRule
-
One
host_ruleentry. Binds a set ofHost:header values to a UrlMapPathMatcher by name. Multiplehost_ruleentries can point at the samepathMatcher. - UrlMapPathMatcher
-
One
path_matcherentry. Each path matcher is named (so UrlMapHostRule can reference it) and carries a fallback defaultService plus the path-based routing rules. - UrlMapPathRule
-
One
path_matcher.path_rule[]entry. Matches request paths against the paths glob list (e.g.['/login', '/login/*']) and dispatches to either a service OR an inline urlRedirect -- exactly one of the two must be set per the GCP API. - UrlMapQueryParameterMatch
-
One
match_rules[].query_parameter_matches[]entry. Matches a single query parameter by name with a chosen predicate. - UrlMapRouteRule
-
One
path_matcher.route_rules[]entry. Priority-ordered routing with header / query / regex match support; the GCP equivalent of an Envoyroute_config. - UrlMapRouteRuleMatch
-
One
route_rules[].match_rules[]entry. Carries the actual matching predicates (one or more of full path / prefix / regex / path template, optionally further refined by header / query / metadata filters). - UrlMapTest
-
One
test[]entry. Each test states "a request to host+path should resolve to service" and is evaluated by GCP at apply time -- if the routing pipeline produces a different service, the apply FAILS. Effectively a contract test for the URL map's routing table. - UrlMapTestHeader
- One entry in UrlMapTest.headers. Both fields required by the schema.
- UrlMapUrlRedirect
-
default_url_redirect/path_rule.url_redirect/route_rules.url_redirectblock. Returns an HTTP redirect to the client instead of forwarding to a backend.
Enums
- AccessConfigNetworkTier
-
network_interface.access_config.network_tier-- service tier for the external IP.STANDARDis regional;PREMIUMis global. - AddressType
- Address allocation scope: INTERNAL (VPC-private) or EXTERNAL (public IP).
- AutoscalerCpuPredictiveMethod
- Predictive autoscaling method for AutoscalerCpuUtilization.
- AutoscalerMetricType
-
Defines how a custom-metric value is interpreted by the autoscaler.
Mirrors the API's
utilizationTargetTypeenum. - AutoscalerMode
- Operating mode for the autoscaling policy. The schema declares this as a free-form string — the enum below pins the API-accepted set so callers cannot mis-spell it. Default is on when the field is omitted from the request.
- BackendBucketCacheMode
-
cdn_policy.cache_mode. Enabling CDN (enable_cdn = true) without setting this defaults toCACHE_ALL_STATIC. Note: this is a distinct type fromBackendServiceCacheMode— bucket-side CDN policies are not interchangeable with service-side policies. - BackendBucketCompressionMode
-
compression_mode— Brotli / gzip negotiation based on the client'sAccept-Encodingheader. Note: this is a distinct type fromBackendServiceCompressionModeeven though the wire values (AUTOMATIC/DISABLED) coincide. - BackendBucketLoadBalancingScheme
-
load_balancing_scheme. The bucket can be left scheme-less (the usual case — works with classic global external and global application external load balancers) or set to internalManaged for cross-region internal layer-7 load balancing. Important: when internalManaged is set,enable_cdnmust befalse(Cloud CDN is not available for internal schemes). - BackendServiceBalancingMode
- Per-backend balancing mode. See BackendServiceBackend.balancingMode.
- BackendServiceCacheMode
-
cdn_policy.cache_mode. Enabling CDN (enable_cdn = true) without setting this defaults toCACHE_ALL_STATIC. - BackendServiceCompressionMode
-
compression_mode. Brotli / gzip negotiation based on the client'sAccept-Encodingheader. - BackendServiceLogOptionalMode
-
log_config.optional_mode. Controls which optional access-log fields are exported when BackendServiceLogConfig.enable is true. - BackendServicePreference
-
backend.preference. Cannot be set whenload_balancing_schemeisEXTERNAL. - BackendServiceProtocol
-
Wire protocol the backend service uses to talk to backends.
HTTP2andH2Crequire an HTTP(S)-class load balancer;TCP,SSL, andUDPare for Network Load Balancing / Traffic Director TCP routing.GRPCis required when the URL map is bound to a target gRPC proxy. - BgpBestPathSelectionMode
- BGP best-path selection algorithm for the VPC.
- BgpInterRegionCost
-
BGP inter-region cost calculation behaviour. Used when
bgpBestPathSelectionMode == standard. - ConfidentialInstanceType
-
confidential_instance_config.confidential_instance_type-- confidential computing technology.SEVandSEV_SNPrequire AMD CPUs (the latter also requiresmin_cpu_platform = "AMD Milan").TDXrequires Intel. - ExternalManagedMigrationState
-
external_managed_migration_state. Drives the Classic ALB → Application Load Balancer migration. State must transitionPREPARE→ optionalTEST_BY_PERCENTAGE→TEST_ALL_TRAFFICbefore the load balancing scheme can flip fromEXTERNALtoEXTERNAL_MANAGED; same order in reverse to roll back. - FirewallDirection
-
Direction of traffic this firewall rule applies to. For
ingress, at least one ofsourceRanges/sourceTags/sourceServiceAccountsis required by GCP. - FirewallLogMetadata
-
Whether to include or exclude metadata for firewall logs.
Used as the
metadatafield of FirewallLogConfig. - ForwardingRuleIpProtocol
-
IP protocol for
google_compute_forwarding_rule.ip_protocol. The set of protocols accepted at apply time depends on the load balancing scheme and target type — Application Load Balancers want tcp; protocol forwarding rules may also pick udp / esp / ah / sctp / icmp. - ForwardingRuleIpVersion
-
IP version for the regional forwarding rule's VIP. Default
IPV4. Selecting ipv6 requires a regional IPv6 GoogleComputeAddress forGoogleComputeForwardingRule.ipAddress, and (for external IPv6 NetLB rules) typically pairs withGoogleComputeForwardingRule.ipCollectionpointing at aPublicDelegatedPrefixinEXTERNAL_IPV6_FORWARDING_RULE_CREATIONmode. - ForwardingRuleLoadBalancingScheme
-
load_balancing_scheme. Picks which regional load balancer variant this forwarding rule fronts. - ForwardingRuleNetworkTier
-
network_tier. Unlike global forwarding rules (which only acceptPREMIUM), regional forwarding rules accept both tiers. The tier must match the tier of the referencedGoogleComputeForwardingRule.ipAddresswhen one is supplied. Leavenullto inherit the provider default (PREMIUM). - GlobalAddressIpVersion
-
IP protocol version for the global address. Default
ipv4. - GlobalAddressPurpose
-
purposeforgoogle_compute_global_address. Selects the role the reserved range plays. - GlobalAddressType
-
address_typeforgoogle_compute_global_address. Defaultexternal(public IP). Useinternalfor in-VPC ranges (private-services peering, internal load balancer VIPs). - GlobalForwardingRuleIpProtocol
-
IP protocol for
google_compute_global_forwarding_rule.ip_protocol. The set of protocols accepted at apply time depends on the load balancing scheme and target type — Application Load Balancers want tcp; protocol forwarding rules may also pick udp / esp / ah / sctp / icmp. - GlobalForwardingRuleIpVersion
-
IP version for the global forwarding rule's VIP. Default
IPV4. Selecting ipv6 requires a global IPv6 GoogleComputeGlobalAddress forGoogleComputeGlobalForwardingRule.ipAddress. - GlobalForwardingRuleLoadBalancingScheme
-
load_balancing_scheme. Picks which load balancer variant this forwarding rule fronts. - GlobalForwardingRuleMetadataFilterMatchCriteria
-
metadata_filters[*].filter_match_criteria. Controls how the nested GlobalForwardingRuleMetadataFilterLabel entries combine. - GlobalForwardingRuleMigrationState
-
external_managed_backend_bucket_migration_state. Drives the canary migration of backend buckets attached to this forwarding rule fromEXTERNAL(Classic ALB) toEXTERNAL_MANAGED(modern global external ALB). - GlobalForwardingRuleNetworkTier
-
network_tier. For global forwarding rules GCP only acceptsPREMIUMat apply time — the schema listsSTANDARDfor symmetry with the regional resource, but supplying it on a global rule errors out. Leave the fieldnull(provider default =PREMIUM) unless overriding is explicitly needed. - GlobalNetworkEndpointGroupType
-
network_endpoint_typeforgoogle_compute_global_network_endpoint_group. - HealthCheckPortSpecification
-
port_specificationvalue shared by every per-protocol config block. - HealthCheckProxyHeader
-
proxy_headervalue used inside every per-protocol HTTP-shaped block (HTTP, HTTPS, HTTP2, TCP, SSL). Defaults to none on the GCP API. - HealthCheckType
-
Health-check protocol. Computed on the resource (the GCP API derives
it from which per-protocol config block was set), so callers don't
set this directly — they pick the matching
*HealthCheckblock. Listed here for use in==comparisons againsttypeRefreads. - InstanceGroupManagerUpdatePolicyAction
-
update_policy.minimal_action/update_policy.most_disruptive_allowed_action. Shared enum — both fields accept the same value set. - InstanceGroupManagerUpdatePolicyReplacementMethod
-
update_policy.replacement_method.SUBSTITUTE(default) replaces VMs with newly-named ones;RECREATEpreserves instance names but requiresmax_unavailable_*> 0. - InstanceGroupManagerUpdatePolicyType
-
update_policy.type. Controls whether the MIG actively performs the rolling update or waits for an external action (resize, recreate-instances) to apply it. - InstanceTemplateAccessConfigNetworkTier
-
network_interface.access_config.network_tier-- service tier for the external IP.STANDARDis regional;PREMIUMis global. - InstanceTemplateConfidentialInstanceType
-
confidential_instance_config.confidential_instance_type-- confidential computing technology.SEVandSEV_SNPrequire AMD CPUs (the latter also requiresmin_cpu_platform = "AMD Milan").TDXrequires Intel. - InstanceTemplateDiskMode
-
disk.mode-- read / write mode for an attached or boot disk. Boot disks must beREAD_WRITE. - InstanceTemplateInstanceTerminationAction
-
scheduling.instance_termination_action-- action when a SPOT VM is preempted ormax_run_durationelapses. - InstanceTemplateNicType
-
network_interface.nic_type-- vNIC family used for the interface. - InstanceTemplateOnHostMaintenance
-
scheduling.on_host_maintenance-- behaviour during host maintenance.MIGRATE(live migration) is the default for standard VMs; preemptible / SPOT / confidential VMs must useTERMINATE. - InstanceTemplatePerformanceMonitoringUnit
-
advanced_machine_features.performance_monitoring_unit-- PMU level exposed to the guest.ARCHITECTURALis the minimum stable subset;ENHANCEDexposes the broadest set of counters. - InstanceTemplateProvisioningModel
-
scheduling.provisioning_model-- VM provisioning model.STANDARDruns at on-demand prices with no termination guarantees from GCP;SPOTruns at preemptible prices and may be reclaimed at any time. - InstanceTemplateReservationAffinityType
-
reservation_affinity.type-- reservation consumption mode. PairspecificReservationwith InstanceTemplateReservationAffinityType.specificReservation to target a named reservation;noReservationopts out. - InstanceTerminationAction
-
scheduling.instance_termination_action-- action when a SPOT VM is preempted ormax_run_durationelapses. - IpAddressSelectionPolicy
-
ip_address_selection_policy. Controls IPv4-vs-IPv6 preference when the load balancer dials a backend (or when a proxyless gRPC client dials directly). - Ipv6EndpointType
-
IPv6 endpoint type. Used when
GoogleComputeAddress.ipVersionisIpVersion.ipv6. - IpVersion
- IP protocol version for the address.
- LoadBalancingScheme
-
load_balancing_scheme. A backend service of one scheme cannot be repurposed for another — the value is effectively immutable except through the ExternalManagedMigrationState dance. - LocalityLbPolicy
-
locality_lb_policy. See the schema docstring for the matrix of which values are valid for which combination ofprotocolandload_balancing_scheme— Cloud Load Balancing silently coerces invalid values to the scheme's default at apply time. - ManagedSslCertificateType
-
Certificate provisioning mode. The schema for this resource accepts
only
MANAGED, and that value is the default — the enum exists for symmetry with the legacy unifiedgoogle_compute_ssl_certificateresource (which historically distinguishedMANAGEDfromSELF_MANAGED). For new code, omittypeentirely. - NetworkEndpointGroupType
-
network_endpoint_typeforgoogle_compute_network_endpoint_group. - NetworkFirewallPolicyEnforcementOrder
- Order in which a network firewall policy is enforced relative to classic firewall rules.
- NetworkTier
- Network service tier. PREMIUM uses Google's premium global backbone; STANDARD uses ISP-level routing (cheaper, regional).
- NicType
-
network_interface.nic_type-- vNIC family used for the interface. - OnHostMaintenance
-
scheduling.on_host_maintenance-- behaviour during host maintenance.MIGRATE(live migration) is the default for standard VMs; preemptible / SPOT / confidential VMs must useTERMINATE. - PerformanceMonitoringUnit
-
advanced_machine_features.performance_monitoring_unit-- PMU level exposed to the guest.ARCHITECTURALis the minimum stable subset;ENHANCEDexposes the broadest set of counters. - ProvisioningModel
-
scheduling.provisioning_model-- VM provisioning model.STANDARDruns at on-demand prices with no termination guarantees from GCP;SPOTruns at preemptible prices and may be reclaimed at any time. - QuicOverride
- QUIC negotiation policy for the HTTPS target proxy. When set to none (the default), Google manages whether QUIC is offered to clients; enable always offers QUIC; disable never offers it.
- RegionAutoscalerCpuPredictiveMethod
- Predictive autoscaling method for RegionAutoscalerCpuUtilization.
- RegionAutoscalerMetricType
-
Defines how a custom-metric value is interpreted by the autoscaler.
Mirrors the API's
utilizationTargetTypeenum. - RegionAutoscalerMode
- Operating mode for the autoscaling policy. The schema declares this as a free-form string — the enum below pins the API-accepted set so callers cannot mis-spell it. Default is on when the field is omitted from the request.
- RegionBackendServiceBalancingMode
-
Per-backend balancing mode. See RegionBackendServiceBackend.balancingMode.
Note: the regional resource omits the global
IN_FLIGHTmode. - RegionBackendServiceCacheMode
-
cdn_policy.cache_mode. Enabling CDN (enable_cdn = true) without setting this defaults toCACHE_ALL_STATIC. - RegionBackendServiceFastIpMove
-
ha_policy.fast_ip_move. Controls fast IP-move behavior for self-managed HA on Passthrough NLBs. - RegionBackendServiceIpAddressSelectionPolicy
-
ip_address_selection_policy. Controls IPv4-vs-IPv6 preference when the load balancer dials a backend (or when a proxyless gRPC client dials directly). - RegionBackendServiceLoadBalancingScheme
-
load_balancing_scheme. A backend service of one scheme cannot be repurposed for another — the value is effectively immutable. - RegionBackendServiceLocalityLbPolicy
-
locality_lb_policy. See the schema docstring for the matrix of which values are valid for which combination ofprotocolandload_balancing_scheme— Cloud Load Balancing silently coerces invalid values to the scheme's default at apply time. For External Passthrough NLBs only maglev and weightedMaglev are honored; for INTERNAL_MANAGED with HTTP-class protocols the full set is available. - RegionBackendServiceLogOptionalMode
-
log_config.optional_mode. Controls which optional access-log fields are exported when RegionBackendServiceLogConfig.enable is true. - RegionBackendServiceProtocol
-
Wire protocol the regional backend service uses to talk to backends.
HTTP2andH2Crequire an HTTP(S)-class load balancer;TCP,SSL, andUDPare for Passthrough Network Load Balancing / regional internal proxy routing.GRPCis required when the URL map is bound to a regional target gRPC proxy. - RegionBackendServiceSessionAffinity
-
session_affinity. Applicable only when the locality LB policy is one ofMAGLEV,WEIGHTED_MAGLEV, orRING_HASHfor HTTP-class balancers; for Passthrough NLBs clientIp and the 5-tuple variants apply directly. The regional resource adds clientIpNoDestination (Passthrough NLB variant that ignores the destination tuple component) versus the global resource. - RegionBackendServiceZonalAffinitySpillover
-
network_pass_through_lb_traffic_policy.zonal_affinity.spillover. Zonal-affinity selector for Internal Passthrough NLBs. - RegionHealthCheckPortSpecification
-
port_specificationvalue shared by every per-protocol config block. - RegionHealthCheckProxyHeader
-
proxy_headervalue used inside the per-protocol HTTP-shaped blocks (HTTP, HTTPS, HTTP2, TCP, SSL). Defaults to none on the GCP API. - RegionHealthCheckType
-
Health-check protocol on a regional health check. Computed on the
resource (the GCP API derives it from which per-protocol config
block was set), so callers don't set this directly — they pick the
matching
*HealthCheckblock. Listed here for use in==comparisons againsttypeRefreads. - RegionInstanceGroupManagerDistributionPolicyTargetShape
-
distribution_policy_target_shape. Controls how strictly the MIG converges on an even spread acrossdistributionPolicyZonesduring proactive or resize-triggered rebalancing. - RegionInstanceGroupManagerInstanceRedistributionType
-
update_policy.instance_redistribution_type(regional only).PROACTIVE(default) keeps zones balanced as VMs come and go;NONEdisables proactive rebalancing. - RegionInstanceGroupManagerUpdatePolicyAction
-
update_policy.minimal_action/update_policy.most_disruptive_allowed_action. Shared enum — both fields accept the same value set. - RegionInstanceGroupManagerUpdatePolicyReplacementMethod
-
update_policy.replacement_method.SUBSTITUTE(default) replaces VMs with newly-named ones;RECREATEpreserves instance names but requiresmax_unavailable_*> 0. - RegionInstanceGroupManagerUpdatePolicyType
-
update_policy.type. Controls whether the MIG actively performs the rolling update or waits for an external action (resize, recreate-instances) to apply it. - RegionNetworkEndpointGroupType
-
network_endpoint_typeforgoogle_compute_region_network_endpoint_group. Defaults to serverless on the API side. - RegionUrlMapRedirectResponseCode
-
HTTP redirect response code emitted by a
default_url_redirect/path_rule.url_redirect/route_rules.url_redirectblock. The schema declares this as a free-form string -- the enum below pins the API-accepted set so callers cannot mis-spell it. - ReservationAffinityType
-
reservation_affinity.type-- reservation consumption mode. PairspecificReservationwith a ReservationAffinityType.specificReservation value to target a named reservation;noReservationopts out. - RoutingMode
-
Routing mode for
google_compute_network. Controls how routes are advertised between VPC subnets (regional) or all subnets (global). - ScratchDiskInterface
-
scratch_disk.interface-- attach bus for the local SSD. Defaults toNVME;SCSIis retained for legacy machine families. - SecurityPolicyJsonParsing
-
advanced_options_config.json_parsing-- whether Cloud Armor parses JSON request bodies during WAF evaluation.standardis required for the JSON-aware preconfigured WAF rules to inspect body content; otherwise defaultdisabledkeeps inspection limited to URI / headers / query string. - SecurityPolicyLogLevel
-
advanced_options_config.log_level-- verbosity of Cloud Armor's Cloud Logging output.verboseincludes preconfigured-WAF rule match details and is the recommended setting during policy tuning; switch back tonormalfor steady-state to control log volume. - SecurityPolicyRuleAction
-
rule.action-- what Cloud Armor does when the SecurityPolicyRule matches. Thedeny(NNN)actions return a fixed HTTP status to the client;rateBasedBanandthrottleREQUIRE SecurityPolicyRule.rateLimitOptions;redirectREQUIRES SecurityPolicyRule.redirectOptions. The Terraform value preserves the literal provider strings (parentheses and digits included) -- the Dart variants pick identifier-safe names. - SecurityPolicyRuleMatchVersionedExpr
-
match.versioned_expr-- Cloud Armor's only built-in predicate today. Pair with SecurityPolicyRuleMatchConfig.srcIpRanges to match by source IP / CIDR. For richer matching (geo, path, headers), use SecurityPolicyRuleMatchExpr (CEL) instead. - SecurityPolicyType
-
type-- intended use of the security policy. Forces replacement when changed. The default (when unset on create) is SecurityPolicyType.cloudArmor. - SessionAffinity
-
session_affinity. Applicable only when the locality LB policy is one ofMAGLEV,WEIGHTED_MAGLEV, orRING_HASH(otherwise the setting is silently ignored). - SslPolicyMinTlsVersion
-
min_tls_version— the protocol-version floor. TLS 1.3 is always offered by the load balancer and is not selectable as a minimum here; the API only exposes the 1.0 / 1.1 / 1.2 floors. To force TLS 1.3 only, pair tls12 with SslPolicyProfile.restricted, which drops the legacy 1.x suites from the negotiated set. - SslPolicyProfile
-
profile— the curated cipher-suite preset. See the class-level security guidance for picking between restricted (compliance default), modern (modern browsers only), compatible (permissive legacy default), fips202205 (FIPS 202205-pinned), and custom (caller-supplied viaGoogleComputeSslPolicy.customFeatures). - SubnetworkIpv6AccessType
- Access type of the IPv6 address range held by the subnetwork. Immutable after creation. Only meaningful when SubnetworkStackType includes IPv6.
- SubnetworkLogConfigAggregationInterval
- VPC flow log aggregation interval. The default on GCP is interval5Sec (denser sampling, higher cost).
- SubnetworkLogConfigMetadata
-
VPC flow log metadata-inclusion mode. Pair
customMetadatawith the SubnetworkLogConfig.metadataFields selector. - SubnetworkPurpose
- Purpose of the subnetwork. Defaults to private when unspecified.
- SubnetworkResolveSubnetMask
- ARP resolution mode for the subnetwork. Controls which ranges respond to ARP requests. Used only by reserved-internal-range subnetworks.
- SubnetworkRole
-
Role of a managed-proxy subnetwork. Only meaningful when
purposeisREGIONAL_MANAGED_PROXYorGLOBAL_MANAGED_PROXY. - SubnetworkStackType
- IP stack type for the subnetwork. Immutable after creation.
- TlsEarlyData
- TLS 1.3 0-RTT ("Early Data") acceptance policy. Early Data lets a TLS resumption handshake carry the initial application payload alongside the handshake itself, eliminating the extra round trip at the cost of replay risk.
- UrlMapRedirectResponseCode
-
HTTP redirect response code emitted by a
default_url_redirect/path_rule.url_redirect/route_rules.url_redirectblock. The schema declares this as a free-form string -- the enum below pins the API-accepted set so callers cannot mis-spell it.