Class BackendServiceArgs
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class BackendServiceArgs : ResourceArgs
Constructors
View SourceBackendServiceArgs()
Declaration
public BackendServiceArgs()
Properties
View SourceAffinityCookieTtlSec
Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day. When the load balancing scheme is INTERNAL, this field is not used.
Declaration
public Input<int> AffinityCookieTtlSec { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Backends
The set of backends that serve this BackendService. Structure is documented below.
Declaration
public InputList<BackendServiceBackendArgs> Backends { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<BackendServiceBackendArgs> |
CdnPolicy
Cloud CDN configuration for this BackendService. Structure is documented below.
Declaration
public Input<BackendServiceCdnPolicyArgs> CdnPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BackendServiceCdnPolicyArgs> |
CircuitBreakers
Settings controlling the volume of connections to a backend service. This field is applicable only when the load_balancing_scheme is set to INTERNAL_SELF_MANAGED. Structure is documented below.
Declaration
public Input<BackendServiceCircuitBreakersArgs> CircuitBreakers { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BackendServiceCircuitBreakersArgs> |
ConnectionDrainingTimeoutSec
Time for which instance will be drained (not accept new connections, but still work to finish started).
Declaration
public Input<int> ConnectionDrainingTimeoutSec { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
ConsistentHash
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field only applies if the load_balancing_scheme is set to INTERNAL_SELF_MANAGED. This field is only applicable when locality_lb_policy is set to MAGLEV or RING_HASH. Structure is documented below.
Declaration
public Input<BackendServiceConsistentHashArgs> ConsistentHash { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BackendServiceConsistentHashArgs> |
CustomRequestHeaders
Headers that the HTTP/S load balancer should add to proxied requests.
Declaration
public InputList<string> CustomRequestHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Description
An optional description of this resource. Provide this property when you create the resource.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EnableCdn
If true, enable Cloud CDN for this BackendService.
Declaration
public Input<bool> EnableCdn { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
HealthChecks
The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required. For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Declaration
public Input<string> HealthChecks { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Iap
Settings for enabling Cloud Identity Aware Proxy Structure is documented below.
Declaration
public Input<BackendServiceIapArgs> Iap { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BackendServiceIapArgs> |
LoadBalancingScheme
Indicates whether the backend service will be used with internal or external load balancing. A backend service created for one type of load balancing cannot be used with the other.
Declaration
public Input<string> LoadBalancingScheme { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
LocalityLbPolicy
The load balancing algorithm used within the scope of the locality. The possible values are - ROUND_ROBIN - This is a simple policy in which each healthy backend is selected in round robin order. LEAST_REQUEST - An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. RING_HASH - The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. RANDOM - The load balancer selects a random healthy host. ORIGINAL_DESTINATION - Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. MAGLEV - used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, refer to https://ai.google/research/pubs/pub44824 This field is applicable only when the load_balancing_scheme is set to INTERNAL_SELF_MANAGED.
Declaration
public Input<string> LocalityLbPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
LogConfig
This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver. Structure is documented below.
Declaration
public Input<BackendServiceLogConfigArgs> LogConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BackendServiceLogConfigArgs> |
Name
Name of the cookie.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
OutlierDetection
Settings controlling eviction of unhealthy hosts from the load balancing pool. This field is applicable only when the load_balancing_scheme is set to INTERNAL_SELF_MANAGED. Structure is documented below.
Declaration
public Input<BackendServiceOutlierDetectionArgs> OutlierDetection { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<BackendServiceOutlierDetectionArgs> |
PortName
Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
Declaration
public Input<string> PortName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Input<string> Project { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Protocol
The protocol this BackendService uses to communicate with backends. The default is HTTP. NOTE: HTTP2 is only valid for beta HTTP/2 load balancer types and may result in errors if used with the GA API.
Declaration
public Input<string> Protocol { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SecurityPolicy
The security policy associated with this backend service.
Declaration
public Input<string> SecurityPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SessionAffinity
Type of session affinity to use. The default is NONE. Session affinity is not applicable if the protocol is UDP.
Declaration
public Input<string> SessionAffinity { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
TimeoutSec
How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. Valid range is [1, 86400].
Declaration
public Input<int> TimeoutSec { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |