Class ComputeRegionBackendServiceFailoverPolicy.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- com.hashicorp.cdktf.providers.google.compute_region_backend_service.ComputeRegionBackendServiceFailoverPolicy.Jsii$Proxy
-
- All Implemented Interfaces:
ComputeRegionBackendServiceFailoverPolicy,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ComputeRegionBackendServiceFailoverPolicy
@Stability(Stable) @Internal public static final class ComputeRegionBackendServiceFailoverPolicy.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ComputeRegionBackendServiceFailoverPolicy
An implementation forComputeRegionBackendServiceFailoverPolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface com.hashicorp.cdktf.providers.google.compute_region_backend_service.ComputeRegionBackendServiceFailoverPolicy
ComputeRegionBackendServiceFailoverPolicy.Builder, ComputeRegionBackendServiceFailoverPolicy.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ComputeRegionBackendServiceFailoverPolicy.Builder builder)Constructor that initializes the object based on literal property values passed by theComputeRegionBackendServiceFailoverPolicy.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)ObjectgetDisableConnectionDrainOnFailover()On failover or failback, this field indicates whether connection drain will be honored.ObjectgetDropTrafficIfUnhealthy()This option is used only when no healthy VMs are detected in the primary and backup instance groups.NumbergetFailoverRatio()The value of the field must be in [0, 1].inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ComputeRegionBackendServiceFailoverPolicy.Builder builder)
Constructor that initializes the object based on literal property values passed by theComputeRegionBackendServiceFailoverPolicy.Builder.
-
-
Method Detail
-
getDisableConnectionDrainOnFailover
public final Object getDisableConnectionDrainOnFailover()
Description copied from interface:ComputeRegionBackendServiceFailoverPolicyOn failover or failback, this field indicates whether connection drain will be honored.Setting this to true has the following effect: connections to the old active pool are not drained. Connections to the new active pool use the timeout of 10 min (currently fixed). Setting to false has the following effect: both old and new connections will have a drain timeout of 10 min. This can be set to true only if the protocol is TCP. The default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#disable_connection_drain_on_failover ComputeRegionBackendService#disable_connection_drain_on_failover}
- Specified by:
getDisableConnectionDrainOnFailoverin interfaceComputeRegionBackendServiceFailoverPolicy
-
getDropTrafficIfUnhealthy
public final Object getDropTrafficIfUnhealthy()
Description copied from interface:ComputeRegionBackendServiceFailoverPolicyThis option is used only when no healthy VMs are detected in the primary and backup instance groups.When set to true, traffic is dropped. When set to false, new connections are sent across all VMs in the primary group. The default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#drop_traffic_if_unhealthy ComputeRegionBackendService#drop_traffic_if_unhealthy}
- Specified by:
getDropTrafficIfUnhealthyin interfaceComputeRegionBackendServiceFailoverPolicy
-
getFailoverRatio
public final Number getFailoverRatio()
Description copied from interface:ComputeRegionBackendServiceFailoverPolicyThe value of the field must be in [0, 1].If the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend. In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. This field is only used with l4 load balancing. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#failover_ratio ComputeRegionBackendService#failover_ratio}
- Specified by:
getFailoverRatioin interfaceComputeRegionBackendServiceFailoverPolicy
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-