Documentation
¶
Index ¶
- func LoadBalancer_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func LoadBalancer_IsConstruct(x interface{}) *bool
- func LoadBalancer_IsTerraformElement(x interface{}) *bool
- func LoadBalancer_IsTerraformResource(x interface{}) *bool
- func LoadBalancer_TfResourceType() *string
- func NewLoadBalancerAdaptiveRoutingOutputReference_Override(l LoadBalancerAdaptiveRoutingOutputReference, ...)
- func NewLoadBalancerLocationStrategyOutputReference_Override(l LoadBalancerLocationStrategyOutputReference, ...)
- func NewLoadBalancerRandomSteeringOutputReference_Override(l LoadBalancerRandomSteeringOutputReference, ...)
- func NewLoadBalancerRulesFixedResponseOutputReference_Override(l LoadBalancerRulesFixedResponseOutputReference, ...)
- func NewLoadBalancerRulesList_Override(l LoadBalancerRulesList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewLoadBalancerRulesOutputReference_Override(l LoadBalancerRulesOutputReference, ...)
- func NewLoadBalancerRulesOverridesAdaptiveRoutingOutputReference_Override(l LoadBalancerRulesOverridesAdaptiveRoutingOutputReference, ...)
- func NewLoadBalancerRulesOverridesLocationStrategyOutputReference_Override(l LoadBalancerRulesOverridesLocationStrategyOutputReference, ...)
- func NewLoadBalancerRulesOverridesOutputReference_Override(l LoadBalancerRulesOverridesOutputReference, ...)
- func NewLoadBalancerRulesOverridesRandomSteeringOutputReference_Override(l LoadBalancerRulesOverridesRandomSteeringOutputReference, ...)
- func NewLoadBalancerRulesOverridesSessionAffinityAttributesOutputReference_Override(l LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference, ...)
- func NewLoadBalancerSessionAffinityAttributesOutputReference_Override(l LoadBalancerSessionAffinityAttributesOutputReference, ...)
- func NewLoadBalancer_Override(l LoadBalancer, scope constructs.Construct, id *string, ...)
- type LoadBalancer
- type LoadBalancerAdaptiveRouting
- type LoadBalancerAdaptiveRoutingOutputReference
- type LoadBalancerConfig
- type LoadBalancerLocationStrategy
- type LoadBalancerLocationStrategyOutputReference
- type LoadBalancerRandomSteering
- type LoadBalancerRandomSteeringOutputReference
- type LoadBalancerRules
- type LoadBalancerRulesFixedResponse
- type LoadBalancerRulesFixedResponseOutputReference
- type LoadBalancerRulesList
- type LoadBalancerRulesOutputReference
- type LoadBalancerRulesOverrides
- type LoadBalancerRulesOverridesAdaptiveRouting
- type LoadBalancerRulesOverridesAdaptiveRoutingOutputReference
- type LoadBalancerRulesOverridesLocationStrategy
- type LoadBalancerRulesOverridesLocationStrategyOutputReference
- type LoadBalancerRulesOverridesOutputReference
- type LoadBalancerRulesOverridesRandomSteering
- type LoadBalancerRulesOverridesRandomSteeringOutputReference
- type LoadBalancerRulesOverridesSessionAffinityAttributes
- type LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference
- type LoadBalancerSessionAffinityAttributes
- type LoadBalancerSessionAffinityAttributesOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadBalancer_GenerateConfigForImport ¶
func LoadBalancer_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a LoadBalancer resource upon running "cdktf plan <stack-name>".
func LoadBalancer_IsConstruct ¶
func LoadBalancer_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func LoadBalancer_IsTerraformElement ¶
func LoadBalancer_IsTerraformElement(x interface{}) *bool
Experimental.
func LoadBalancer_IsTerraformResource ¶
func LoadBalancer_IsTerraformResource(x interface{}) *bool
Experimental.
func LoadBalancer_TfResourceType ¶
func LoadBalancer_TfResourceType() *string
func NewLoadBalancerAdaptiveRoutingOutputReference_Override ¶
func NewLoadBalancerAdaptiveRoutingOutputReference_Override(l LoadBalancerAdaptiveRoutingOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerLocationStrategyOutputReference_Override ¶
func NewLoadBalancerLocationStrategyOutputReference_Override(l LoadBalancerLocationStrategyOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerRandomSteeringOutputReference_Override ¶
func NewLoadBalancerRandomSteeringOutputReference_Override(l LoadBalancerRandomSteeringOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerRulesFixedResponseOutputReference_Override ¶
func NewLoadBalancerRulesFixedResponseOutputReference_Override(l LoadBalancerRulesFixedResponseOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerRulesList_Override ¶
func NewLoadBalancerRulesList_Override(l LoadBalancerRulesList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewLoadBalancerRulesOutputReference_Override ¶
func NewLoadBalancerRulesOutputReference_Override(l LoadBalancerRulesOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewLoadBalancerRulesOverridesAdaptiveRoutingOutputReference_Override ¶
func NewLoadBalancerRulesOverridesAdaptiveRoutingOutputReference_Override(l LoadBalancerRulesOverridesAdaptiveRoutingOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerRulesOverridesLocationStrategyOutputReference_Override ¶
func NewLoadBalancerRulesOverridesLocationStrategyOutputReference_Override(l LoadBalancerRulesOverridesLocationStrategyOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerRulesOverridesOutputReference_Override ¶
func NewLoadBalancerRulesOverridesOutputReference_Override(l LoadBalancerRulesOverridesOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerRulesOverridesRandomSteeringOutputReference_Override ¶
func NewLoadBalancerRulesOverridesRandomSteeringOutputReference_Override(l LoadBalancerRulesOverridesRandomSteeringOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerRulesOverridesSessionAffinityAttributesOutputReference_Override ¶
func NewLoadBalancerRulesOverridesSessionAffinityAttributesOutputReference_Override(l LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancerSessionAffinityAttributesOutputReference_Override ¶
func NewLoadBalancerSessionAffinityAttributesOutputReference_Override(l LoadBalancerSessionAffinityAttributesOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewLoadBalancer_Override ¶
func NewLoadBalancer_Override(l LoadBalancer, scope constructs.Construct, id *string, config *LoadBalancerConfig)
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer cloudflare_load_balancer} Resource.
Types ¶
type LoadBalancer ¶
type LoadBalancer interface { cdktf.TerraformResource AdaptiveRouting() LoadBalancerAdaptiveRoutingOutputReference AdaptiveRoutingInput() interface{} // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) CountryPools() interface{} SetCountryPools(val interface{}) CountryPoolsInput() interface{} CreatedOn() *string DefaultPools() *[]*string SetDefaultPools(val *[]*string) DefaultPoolsInput() *[]*string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Description() *string SetDescription(val *string) DescriptionInput() *string Enabled() interface{} SetEnabled(val interface{}) EnabledInput() interface{} FallbackPool() *string SetFallbackPool(val *string) FallbackPoolInput() *string // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) LocationStrategy() LoadBalancerLocationStrategyOutputReference LocationStrategyInput() interface{} ModifiedOn() *string Name() *string SetName(val *string) NameInput() *string Networks() *[]*string SetNetworks(val *[]*string) NetworksInput() *[]*string // The tree node. Node() constructs.Node PopPools() interface{} SetPopPools(val interface{}) PopPoolsInput() interface{} // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) Proxied() interface{} SetProxied(val interface{}) ProxiedInput() interface{} RandomSteering() LoadBalancerRandomSteeringOutputReference RandomSteeringInput() interface{} // Experimental. RawOverrides() interface{} RegionPools() interface{} SetRegionPools(val interface{}) RegionPoolsInput() interface{} Rules() LoadBalancerRulesList RulesInput() interface{} SessionAffinity() *string SetSessionAffinity(val *string) SessionAffinityAttributes() LoadBalancerSessionAffinityAttributesOutputReference SessionAffinityAttributesInput() interface{} SessionAffinityInput() *string SessionAffinityTtl() *float64 SetSessionAffinityTtl(val *float64) SessionAffinityTtlInput() *float64 SteeringPolicy() *string SetSteeringPolicy(val *string) SteeringPolicyInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Ttl() *float64 SetTtl(val *float64) TtlInput() *float64 ZoneId() *string SetZoneId(val *string) ZoneIdInput() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. HasResourceMove() interface{} // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Move the resource corresponding to "id" to this resource. // // Note that the resource being moved from must be marked as moved using it's instance function. // Experimental. MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. MoveTo(moveTarget *string, index interface{}) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutAdaptiveRouting(value *LoadBalancerAdaptiveRouting) PutLocationStrategy(value *LoadBalancerLocationStrategy) PutRandomSteering(value *LoadBalancerRandomSteering) PutRules(value interface{}) PutSessionAffinityAttributes(value *LoadBalancerSessionAffinityAttributes) ResetAdaptiveRouting() ResetCountryPools() ResetDescription() ResetEnabled() ResetLocationStrategy() ResetNetworks() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPopPools() ResetProxied() ResetRandomSteering() ResetRegionPools() ResetRules() ResetSessionAffinity() ResetSessionAffinityAttributes() ResetSessionAffinityTtl() ResetSteeringPolicy() ResetTtl() SynthesizeAttributes() *map[string]interface{} SynthesizeHclAttributes() *map[string]interface{} // Experimental. ToHclTerraform() interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer cloudflare_load_balancer}.
func NewLoadBalancer ¶
func NewLoadBalancer(scope constructs.Construct, id *string, config *LoadBalancerConfig) LoadBalancer
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer cloudflare_load_balancer} Resource.
type LoadBalancerAdaptiveRouting ¶
type LoadBalancerAdaptiveRouting struct { // Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. // // When set false (the default) zero-downtime failover will only occur between origins within the same pool. See `session_affinity_attributes` for control over when sessions are broken or reassigned. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#failover_across_pools LoadBalancer#failover_across_pools} FailoverAcrossPools interface{} `field:"optional" json:"failoverAcrossPools" yaml:"failoverAcrossPools"` }
type LoadBalancerAdaptiveRoutingOutputReference ¶
type LoadBalancerAdaptiveRoutingOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string FailoverAcrossPools() interface{} SetFailoverAcrossPools(val interface{}) FailoverAcrossPoolsInput() interface{} // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetFailoverAcrossPools() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerAdaptiveRoutingOutputReference ¶
func NewLoadBalancerAdaptiveRoutingOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerAdaptiveRoutingOutputReference
type LoadBalancerConfig ¶
type LoadBalancerConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // A list of pool IDs ordered by their failover priority. // // Pools defined here are used by default, or when region_pools are not configured for a given region. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#default_pools LoadBalancer#default_pools} DefaultPools *[]*string `field:"required" json:"defaultPools" yaml:"defaultPools"` // The pool ID to use when all other pools are detected as unhealthy. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#fallback_pool LoadBalancer#fallback_pool} FallbackPool *string `field:"required" json:"fallbackPool" yaml:"fallbackPool"` // The DNS hostname to associate with your Load Balancer. // // If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#name LoadBalancer#name} Name *string `field:"required" json:"name" yaml:"name"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#zone_id LoadBalancer#zone_id}. ZoneId *string `field:"required" json:"zoneId" yaml:"zoneId"` // Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. // // For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#adaptive_routing LoadBalancer#adaptive_routing} AdaptiveRouting *LoadBalancerAdaptiveRouting `field:"optional" json:"adaptiveRouting" yaml:"adaptiveRouting"` // A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. // // Any country not explicitly defined will fall back to using the corresponding region_pool mapping if it exists else to default_pools. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#country_pools LoadBalancer#country_pools} CountryPools interface{} `field:"optional" json:"countryPools" yaml:"countryPools"` // Object description. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#description LoadBalancer#description} Description *string `field:"optional" json:"description" yaml:"description"` // Whether to enable (the default) this load balancer. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#enabled LoadBalancer#enabled} Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // Controls location-based steering for non-proxied requests. See `steering_policy` to learn how steering is affected. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#location_strategy LoadBalancer#location_strategy} LocationStrategy *LoadBalancerLocationStrategy `field:"optional" json:"locationStrategy" yaml:"locationStrategy"` // List of networks where Load Balancer or Pool is enabled. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#networks LoadBalancer#networks} Networks *[]*string `field:"optional" json:"networks" yaml:"networks"` // (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). // // Any PoPs not explicitly defined will fall back to using the corresponding country_pool, then region_pool mapping if it exists else to default_pools. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#pop_pools LoadBalancer#pop_pools} PopPools interface{} `field:"optional" json:"popPools" yaml:"popPools"` // Whether the hostname should be gray clouded (false) or orange clouded (true). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#proxied LoadBalancer#proxied} Proxied interface{} `field:"optional" json:"proxied" yaml:"proxied"` // Configures pool weights. // // - `steering_policy="random"`: A random pool is selected with probability proportional to pool weights. // - `steering_policy="least_outstanding_requests"`: Use pool weights to scale each pool's outstanding requests. // - `steering_policy="least_connections"`: Use pool weights to scale each pool's open connections. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#random_steering LoadBalancer#random_steering} RandomSteering *LoadBalancerRandomSteering `field:"optional" json:"randomSteering" yaml:"randomSteering"` // A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. // // Any regions not explicitly defined will fall back to using default_pools. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#region_pools LoadBalancer#region_pools} RegionPools interface{} `field:"optional" json:"regionPools" yaml:"regionPools"` // BETA Field Not General Access: A list of rules for this load balancer to execute. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#rules LoadBalancer#rules} Rules interface{} `field:"optional" json:"rules" yaml:"rules"` // Specifies the type of session affinity the load balancer should use unless specified as `"none"`. // // The supported types are: // - `"cookie"`: On the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy, then a new origin server is calculated and used. // - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin selection is stable and based on the client's ip address. // - `"header"`: On the first request to a proxied load balancer, a session key based on the configured HTTP headers (see `session_affinity_attributes.headers`) is generated, encoding the request headers used for storing in the load balancer session state which origin the request will be forwarded to. Subsequent requests to the load balancer with the same headers will be sent to the same origin server, for the duration of the session and as long as the origin server remains healthy. If the session has been idle for the duration of `session_affinity_ttl` seconds or the origin server is unhealthy, then a new origin server is calculated and used. See `headers` in `session_affinity_attributes` for additional required configuration. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#session_affinity LoadBalancer#session_affinity} SessionAffinity *string `field:"optional" json:"sessionAffinity" yaml:"sessionAffinity"` // Configures attributes for session affinity. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#session_affinity_attributes LoadBalancer#session_affinity_attributes} SessionAffinityAttributes *LoadBalancerSessionAffinityAttributes `field:"optional" json:"sessionAffinityAttributes" yaml:"sessionAffinityAttributes"` // Time, in seconds, until a client's session expires after being created. // // Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per `session_affinity` policy are: // - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used unless explicitly set. The accepted range of values is between [1800, 604800]. // - `"header"`: The current default of 1800 seconds will be used unless explicitly set. The accepted range of values is between [30, 3600]. Note: With session affinity by header, sessions only expire after they haven't been used for the number of seconds specified. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#session_affinity_ttl LoadBalancer#session_affinity_ttl} SessionAffinityTtl *float64 `field:"optional" json:"sessionAffinityTtl" yaml:"sessionAffinityTtl"` // Steering Policy for this load balancer. // // - `"off"`: Use `default_pools`. // - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools` is determined by `location_strategy`. // - `"random"`: Select a pool randomly. // - `"dynamic_latency"`: Use round trip time to select the closest pool in default_pools (requires pool health checks). // - `"proximity"`: Use the pools' latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by `location_strategy` for non-proxied requests. // - `"least_outstanding_requests"`: Select a pool by taking into consideration `random_steering` weights, as well as each pool's number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others. // - `"least_connections"`: Select a pool by taking into consideration `random_steering` weights, as well as each pool's number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#steering_policy LoadBalancer#steering_policy} SteeringPolicy *string `field:"optional" json:"steeringPolicy" yaml:"steeringPolicy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. // // This only applies to gray-clouded (unproxied) load balancers. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#ttl LoadBalancer#ttl} Ttl *float64 `field:"optional" json:"ttl" yaml:"ttl"` }
type LoadBalancerLocationStrategy ¶
type LoadBalancerLocationStrategy struct { // Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful. // // - `"pop"`: Use the Cloudflare PoP location. // - `"resolver_ip"`: Use the DNS resolver GeoIP location. If the GeoIP lookup is unsuccessful, use the Cloudflare PoP location. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#mode LoadBalancer#mode} Mode *string `field:"optional" json:"mode" yaml:"mode"` // Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location. // // - `"always"`: Always prefer ECS. // - `"never"`: Never prefer ECS. // - `"proximity"`: Prefer ECS only when `steering_policy="proximity"`. // - `"geo"`: Prefer ECS only when `steering_policy="geo"`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#prefer_ecs LoadBalancer#prefer_ecs} PreferEcs *string `field:"optional" json:"preferEcs" yaml:"preferEcs"` }
type LoadBalancerLocationStrategyOutputReference ¶
type LoadBalancerLocationStrategyOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Mode() *string SetMode(val *string) ModeInput() *string PreferEcs() *string SetPreferEcs(val *string) PreferEcsInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetMode() ResetPreferEcs() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerLocationStrategyOutputReference ¶
func NewLoadBalancerLocationStrategyOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerLocationStrategyOutputReference
type LoadBalancerRandomSteering ¶
type LoadBalancerRandomSteering struct { // The default weight for pools in the load balancer that are not specified in the pool_weights map. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#default_weight LoadBalancer#default_weight} DefaultWeight *float64 `field:"optional" json:"defaultWeight" yaml:"defaultWeight"` // A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#pool_weights LoadBalancer#pool_weights} PoolWeights *map[string]*float64 `field:"optional" json:"poolWeights" yaml:"poolWeights"` }
type LoadBalancerRandomSteeringOutputReference ¶
type LoadBalancerRandomSteeringOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string DefaultWeight() *float64 SetDefaultWeight(val *float64) DefaultWeightInput() *float64 // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) PoolWeights() *map[string]*float64 SetPoolWeights(val *map[string]*float64) PoolWeightsInput() *map[string]*float64 // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetDefaultWeight() ResetPoolWeights() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRandomSteeringOutputReference ¶
func NewLoadBalancerRandomSteeringOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerRandomSteeringOutputReference
type LoadBalancerRules ¶
type LoadBalancerRules struct { // The condition expressions to evaluate. // // If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#condition LoadBalancer#condition} Condition *string `field:"optional" json:"condition" yaml:"condition"` // Disable this specific rule. It will no longer be evaluated by this load balancer. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#disabled LoadBalancer#disabled} Disabled interface{} `field:"optional" json:"disabled" yaml:"disabled"` // A collection of fields used to directly respond to the eyeball instead of routing to a pool. // // If a fixed_response is supplied the rule will be marked as terminates. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#fixed_response LoadBalancer#fixed_response} FixedResponse *LoadBalancerRulesFixedResponse `field:"optional" json:"fixedResponse" yaml:"fixedResponse"` // Name of this rule. Only used for human readability. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#name LoadBalancer#name} Name *string `field:"optional" json:"name" yaml:"name"` // A collection of overrides to apply to the load balancer when this rule's condition is true. // // All fields are optional. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#overrides LoadBalancer#overrides} Overrides *LoadBalancerRulesOverrides `field:"optional" json:"overrides" yaml:"overrides"` // The order in which rules should be executed in relation to each other. // // Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#priority LoadBalancer#priority} Priority *float64 `field:"optional" json:"priority" yaml:"priority"` // If this rule's condition is true, this causes rule evaluation to stop after processing this rule. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#terminates LoadBalancer#terminates} Terminates interface{} `field:"optional" json:"terminates" yaml:"terminates"` }
type LoadBalancerRulesFixedResponse ¶
type LoadBalancerRulesFixedResponse struct { // The http 'Content-Type' header to include in the response. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#content_type LoadBalancer#content_type} ContentType *string `field:"optional" json:"contentType" yaml:"contentType"` // The http 'Location' header to include in the response. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#location LoadBalancer#location} Location *string `field:"optional" json:"location" yaml:"location"` // Text to include as the http body. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#message_body LoadBalancer#message_body} MessageBody *string `field:"optional" json:"messageBody" yaml:"messageBody"` // The http status code to respond with. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#status_code LoadBalancer#status_code} StatusCode *float64 `field:"optional" json:"statusCode" yaml:"statusCode"` }
type LoadBalancerRulesFixedResponseOutputReference ¶
type LoadBalancerRulesFixedResponseOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) ContentType() *string SetContentType(val *string) ContentTypeInput() *string // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Location() *string SetLocation(val *string) LocationInput() *string MessageBody() *string SetMessageBody(val *string) MessageBodyInput() *string StatusCode() *float64 SetStatusCode(val *float64) StatusCodeInput() *float64 // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetContentType() ResetLocation() ResetMessageBody() ResetStatusCode() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesFixedResponseOutputReference ¶
func NewLoadBalancerRulesFixedResponseOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerRulesFixedResponseOutputReference
type LoadBalancerRulesList ¶
type LoadBalancerRulesList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Creating an iterator for this complex list. // // The list will be converted into a map with the mapKeyAttributeName as the key. // Experimental. AllWithMapKey(mapKeyAttributeName *string) cdktf.DynamicListTerraformIterator // Experimental. ComputeFqn() *string Get(index *float64) LoadBalancerRulesOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesList ¶
func NewLoadBalancerRulesList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) LoadBalancerRulesList
type LoadBalancerRulesOutputReference ¶
type LoadBalancerRulesOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) Condition() *string SetCondition(val *string) ConditionInput() *string // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Disabled() interface{} SetDisabled(val interface{}) DisabledInput() interface{} FixedResponse() LoadBalancerRulesFixedResponseOutputReference FixedResponseInput() interface{} // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Name() *string SetName(val *string) NameInput() *string Overrides() LoadBalancerRulesOverridesOutputReference OverridesInput() interface{} Priority() *float64 SetPriority(val *float64) PriorityInput() *float64 Terminates() interface{} SetTerminates(val interface{}) TerminatesInput() interface{} // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutFixedResponse(value *LoadBalancerRulesFixedResponse) PutOverrides(value *LoadBalancerRulesOverrides) ResetCondition() ResetDisabled() ResetFixedResponse() ResetName() ResetOverrides() ResetPriority() ResetTerminates() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesOutputReference ¶
func NewLoadBalancerRulesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) LoadBalancerRulesOutputReference
type LoadBalancerRulesOverrides ¶
type LoadBalancerRulesOverrides struct { // Controls features that modify the routing of requests to pools and origins in response to dynamic conditions, such as during the interval between active health monitoring requests. // // For example, zero-downtime failover occurs immediately when an origin becomes unavailable due to HTTP 521, 522, or 523 response codes. If there is another healthy origin in the same pool, the request is retried once against this alternate origin. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#adaptive_routing LoadBalancer#adaptive_routing} AdaptiveRouting *LoadBalancerRulesOverridesAdaptiveRouting `field:"optional" json:"adaptiveRouting" yaml:"adaptiveRouting"` // A mapping of country codes to a list of pool IDs (ordered by their failover priority) for the given country. // // Any country not explicitly defined will fall back to using the corresponding region_pool mapping if it exists else to default_pools. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#country_pools LoadBalancer#country_pools} CountryPools interface{} `field:"optional" json:"countryPools" yaml:"countryPools"` // A list of pool IDs ordered by their failover priority. // // Pools defined here are used by default, or when region_pools are not configured for a given region. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#default_pools LoadBalancer#default_pools} DefaultPools *[]*string `field:"optional" json:"defaultPools" yaml:"defaultPools"` // The pool ID to use when all other pools are detected as unhealthy. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#fallback_pool LoadBalancer#fallback_pool} FallbackPool *string `field:"optional" json:"fallbackPool" yaml:"fallbackPool"` // Controls location-based steering for non-proxied requests. See `steering_policy` to learn how steering is affected. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#location_strategy LoadBalancer#location_strategy} LocationStrategy *LoadBalancerRulesOverridesLocationStrategy `field:"optional" json:"locationStrategy" yaml:"locationStrategy"` // (Enterprise only): A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). // // Any PoPs not explicitly defined will fall back to using the corresponding country_pool, then region_pool mapping if it exists else to default_pools. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#pop_pools LoadBalancer#pop_pools} PopPools interface{} `field:"optional" json:"popPools" yaml:"popPools"` // Configures pool weights. // // - `steering_policy="random"`: A random pool is selected with probability proportional to pool weights. // - `steering_policy="least_outstanding_requests"`: Use pool weights to scale each pool's outstanding requests. // - `steering_policy="least_connections"`: Use pool weights to scale each pool's open connections. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#random_steering LoadBalancer#random_steering} RandomSteering *LoadBalancerRulesOverridesRandomSteering `field:"optional" json:"randomSteering" yaml:"randomSteering"` // A mapping of region codes to a list of pool IDs (ordered by their failover priority) for the given region. // // Any regions not explicitly defined will fall back to using default_pools. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#region_pools LoadBalancer#region_pools} RegionPools interface{} `field:"optional" json:"regionPools" yaml:"regionPools"` // Specifies the type of session affinity the load balancer should use unless specified as `"none"`. // // The supported types are: // - `"cookie"`: On the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy, then a new origin server is calculated and used. // - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin selection is stable and based on the client's ip address. // - `"header"`: On the first request to a proxied load balancer, a session key based on the configured HTTP headers (see `session_affinity_attributes.headers`) is generated, encoding the request headers used for storing in the load balancer session state which origin the request will be forwarded to. Subsequent requests to the load balancer with the same headers will be sent to the same origin server, for the duration of the session and as long as the origin server remains healthy. If the session has been idle for the duration of `session_affinity_ttl` seconds or the origin server is unhealthy, then a new origin server is calculated and used. See `headers` in `session_affinity_attributes` for additional required configuration. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#session_affinity LoadBalancer#session_affinity} SessionAffinity *string `field:"optional" json:"sessionAffinity" yaml:"sessionAffinity"` // Configures attributes for session affinity. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#session_affinity_attributes LoadBalancer#session_affinity_attributes} SessionAffinityAttributes *LoadBalancerRulesOverridesSessionAffinityAttributes `field:"optional" json:"sessionAffinityAttributes" yaml:"sessionAffinityAttributes"` // Time, in seconds, until a client's session expires after being created. // // Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per `session_affinity` policy are: // - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used unless explicitly set. The accepted range of values is between [1800, 604800]. // - `"header"`: The current default of 1800 seconds will be used unless explicitly set. The accepted range of values is between [30, 3600]. Note: With session affinity by header, sessions only expire after they haven't been used for the number of seconds specified. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#session_affinity_ttl LoadBalancer#session_affinity_ttl} SessionAffinityTtl *float64 `field:"optional" json:"sessionAffinityTtl" yaml:"sessionAffinityTtl"` // Steering Policy for this load balancer. // // - `"off"`: Use `default_pools`. // - `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools` is determined by `location_strategy`. // - `"random"`: Select a pool randomly. // - `"dynamic_latency"`: Use round trip time to select the closest pool in default_pools (requires pool health checks). // - `"proximity"`: Use the pools' latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by `location_strategy` for non-proxied requests. // - `"least_outstanding_requests"`: Select a pool by taking into consideration `random_steering` weights, as well as each pool's number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others. // - `"least_connections"`: Select a pool by taking into consideration `random_steering` weights, as well as each pool's number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections. // - `""`: Will map to `"geo"` if you use `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#steering_policy LoadBalancer#steering_policy} SteeringPolicy *string `field:"optional" json:"steeringPolicy" yaml:"steeringPolicy"` // Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. // // This only applies to gray-clouded (unproxied) load balancers. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#ttl LoadBalancer#ttl} Ttl *float64 `field:"optional" json:"ttl" yaml:"ttl"` }
type LoadBalancerRulesOverridesAdaptiveRouting ¶
type LoadBalancerRulesOverridesAdaptiveRouting struct { // Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. // // When set false (the default) zero-downtime failover will only occur between origins within the same pool. See `session_affinity_attributes` for control over when sessions are broken or reassigned. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#failover_across_pools LoadBalancer#failover_across_pools} FailoverAcrossPools interface{} `field:"optional" json:"failoverAcrossPools" yaml:"failoverAcrossPools"` }
type LoadBalancerRulesOverridesAdaptiveRoutingOutputReference ¶
type LoadBalancerRulesOverridesAdaptiveRoutingOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string FailoverAcrossPools() interface{} SetFailoverAcrossPools(val interface{}) FailoverAcrossPoolsInput() interface{} // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetFailoverAcrossPools() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesOverridesAdaptiveRoutingOutputReference ¶
func NewLoadBalancerRulesOverridesAdaptiveRoutingOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerRulesOverridesAdaptiveRoutingOutputReference
type LoadBalancerRulesOverridesLocationStrategy ¶
type LoadBalancerRulesOverridesLocationStrategy struct { // Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful. // // - `"pop"`: Use the Cloudflare PoP location. // - `"resolver_ip"`: Use the DNS resolver GeoIP location. If the GeoIP lookup is unsuccessful, use the Cloudflare PoP location. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#mode LoadBalancer#mode} Mode *string `field:"optional" json:"mode" yaml:"mode"` // Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location. // // - `"always"`: Always prefer ECS. // - `"never"`: Never prefer ECS. // - `"proximity"`: Prefer ECS only when `steering_policy="proximity"`. // - `"geo"`: Prefer ECS only when `steering_policy="geo"`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#prefer_ecs LoadBalancer#prefer_ecs} PreferEcs *string `field:"optional" json:"preferEcs" yaml:"preferEcs"` }
type LoadBalancerRulesOverridesLocationStrategyOutputReference ¶
type LoadBalancerRulesOverridesLocationStrategyOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Mode() *string SetMode(val *string) ModeInput() *string PreferEcs() *string SetPreferEcs(val *string) PreferEcsInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetMode() ResetPreferEcs() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesOverridesLocationStrategyOutputReference ¶
func NewLoadBalancerRulesOverridesLocationStrategyOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerRulesOverridesLocationStrategyOutputReference
type LoadBalancerRulesOverridesOutputReference ¶
type LoadBalancerRulesOverridesOutputReference interface { cdktf.ComplexObject AdaptiveRouting() LoadBalancerRulesOverridesAdaptiveRoutingOutputReference AdaptiveRoutingInput() interface{} // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) CountryPools() interface{} SetCountryPools(val interface{}) CountryPoolsInput() interface{} // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string DefaultPools() *[]*string SetDefaultPools(val *[]*string) DefaultPoolsInput() *[]*string FallbackPool() *string SetFallbackPool(val *string) FallbackPoolInput() *string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) LocationStrategy() LoadBalancerRulesOverridesLocationStrategyOutputReference LocationStrategyInput() interface{} PopPools() interface{} SetPopPools(val interface{}) PopPoolsInput() interface{} RandomSteering() LoadBalancerRulesOverridesRandomSteeringOutputReference RandomSteeringInput() interface{} RegionPools() interface{} SetRegionPools(val interface{}) RegionPoolsInput() interface{} SessionAffinity() *string SetSessionAffinity(val *string) SessionAffinityAttributes() LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference SessionAffinityAttributesInput() interface{} SessionAffinityInput() *string SessionAffinityTtl() *float64 SetSessionAffinityTtl(val *float64) SessionAffinityTtlInput() *float64 SteeringPolicy() *string SetSteeringPolicy(val *string) SteeringPolicyInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Ttl() *float64 SetTtl(val *float64) TtlInput() *float64 // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutAdaptiveRouting(value *LoadBalancerRulesOverridesAdaptiveRouting) PutLocationStrategy(value *LoadBalancerRulesOverridesLocationStrategy) PutRandomSteering(value *LoadBalancerRulesOverridesRandomSteering) PutSessionAffinityAttributes(value *LoadBalancerRulesOverridesSessionAffinityAttributes) ResetAdaptiveRouting() ResetCountryPools() ResetDefaultPools() ResetFallbackPool() ResetLocationStrategy() ResetPopPools() ResetRandomSteering() ResetRegionPools() ResetSessionAffinity() ResetSessionAffinityAttributes() ResetSessionAffinityTtl() ResetSteeringPolicy() ResetTtl() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesOverridesOutputReference ¶
func NewLoadBalancerRulesOverridesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerRulesOverridesOutputReference
type LoadBalancerRulesOverridesRandomSteering ¶
type LoadBalancerRulesOverridesRandomSteering struct { // The default weight for pools in the load balancer that are not specified in the pool_weights map. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#default_weight LoadBalancer#default_weight} DefaultWeight *float64 `field:"optional" json:"defaultWeight" yaml:"defaultWeight"` // A mapping of pool IDs to custom weights. The weight is relative to other pools in the load balancer. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#pool_weights LoadBalancer#pool_weights} PoolWeights *map[string]*float64 `field:"optional" json:"poolWeights" yaml:"poolWeights"` }
type LoadBalancerRulesOverridesRandomSteeringOutputReference ¶
type LoadBalancerRulesOverridesRandomSteeringOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string DefaultWeight() *float64 SetDefaultWeight(val *float64) DefaultWeightInput() *float64 // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) PoolWeights() *map[string]*float64 SetPoolWeights(val *map[string]*float64) PoolWeightsInput() *map[string]*float64 // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetDefaultWeight() ResetPoolWeights() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesOverridesRandomSteeringOutputReference ¶
func NewLoadBalancerRulesOverridesRandomSteeringOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerRulesOverridesRandomSteeringOutputReference
type LoadBalancerRulesOverridesSessionAffinityAttributes ¶
type LoadBalancerRulesOverridesSessionAffinityAttributes struct { // Configures the drain duration in seconds. // // This field is only used when session affinity is enabled on the load balancer. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#drain_duration LoadBalancer#drain_duration} DrainDuration *float64 `field:"optional" json:"drainDuration" yaml:"drainDuration"` // Configures the names of HTTP headers to base session affinity on when header `session_affinity` is enabled. // // At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format: `"cookie:<cookie-name-1>,<cookie-name-2>"` (example) where everything after the colon is a comma-separated list of cookie names. Providing only `"cookie"` will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#headers LoadBalancer#headers} Headers *[]*string `field:"optional" json:"headers" yaml:"headers"` // When header `session_affinity` is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. // // The supported values are: // - `"true"`: Load balancing requests must contain *all* of the HTTP headers specified by the `headers` session affinity attribute, otherwise sessions aren't created. // - `"false"`: Load balancing requests must contain *at least one* of the HTTP headers specified by the `headers` session affinity attribute, otherwise sessions aren't created. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#require_all_headers LoadBalancer#require_all_headers} RequireAllHeaders interface{} `field:"optional" json:"requireAllHeaders" yaml:"requireAllHeaders"` // Configures the SameSite attribute on session affinity cookie. // // Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#samesite LoadBalancer#samesite} Samesite *string `field:"optional" json:"samesite" yaml:"samesite"` // Configures the Secure attribute on session affinity cookie. // // Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#secure LoadBalancer#secure} Secure *string `field:"optional" json:"secure" yaml:"secure"` // Configures the zero-downtime failover between origins within a pool when session affinity is enabled. // // This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are: // - `"none"`: No failover takes place for sessions pinned to the origin (default). // - `"temporary"`: Traffic will be sent to another other healthy origin until the originally pinned origin is available; note that this can potentially result in heavy origin flapping. // - `"sticky"`: The session affinity cookie is updated and subsequent requests are sent to the new origin. Note: Zero-downtime failover with sticky sessions is currently not supported for session affinity by header. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#zero_downtime_failover LoadBalancer#zero_downtime_failover} ZeroDowntimeFailover *string `field:"optional" json:"zeroDowntimeFailover" yaml:"zeroDowntimeFailover"` }
type LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference ¶
type LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string DrainDuration() *float64 SetDrainDuration(val *float64) DrainDurationInput() *float64 // Experimental. Fqn() *string Headers() *[]*string SetHeaders(val *[]*string) HeadersInput() *[]*string InternalValue() interface{} SetInternalValue(val interface{}) RequireAllHeaders() interface{} SetRequireAllHeaders(val interface{}) RequireAllHeadersInput() interface{} Samesite() *string SetSamesite(val *string) SamesiteInput() *string Secure() *string SetSecure(val *string) SecureInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) ZeroDowntimeFailover() *string SetZeroDowntimeFailover(val *string) ZeroDowntimeFailoverInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetDrainDuration() ResetHeaders() ResetRequireAllHeaders() ResetSamesite() ResetSecure() ResetZeroDowntimeFailover() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerRulesOverridesSessionAffinityAttributesOutputReference ¶
func NewLoadBalancerRulesOverridesSessionAffinityAttributesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference
type LoadBalancerSessionAffinityAttributes ¶
type LoadBalancerSessionAffinityAttributes struct { // Configures the drain duration in seconds. // // This field is only used when session affinity is enabled on the load balancer. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#drain_duration LoadBalancer#drain_duration} DrainDuration *float64 `field:"optional" json:"drainDuration" yaml:"drainDuration"` // Configures the names of HTTP headers to base session affinity on when header `session_affinity` is enabled. // // At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format: `"cookie:<cookie-name-1>,<cookie-name-2>"` (example) where everything after the colon is a comma-separated list of cookie names. Providing only `"cookie"` will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#headers LoadBalancer#headers} Headers *[]*string `field:"optional" json:"headers" yaml:"headers"` // When header `session_affinity` is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. // // The supported values are: // - `"true"`: Load balancing requests must contain *all* of the HTTP headers specified by the `headers` session affinity attribute, otherwise sessions aren't created. // - `"false"`: Load balancing requests must contain *at least one* of the HTTP headers specified by the `headers` session affinity attribute, otherwise sessions aren't created. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#require_all_headers LoadBalancer#require_all_headers} RequireAllHeaders interface{} `field:"optional" json:"requireAllHeaders" yaml:"requireAllHeaders"` // Configures the SameSite attribute on session affinity cookie. // // Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#samesite LoadBalancer#samesite} Samesite *string `field:"optional" json:"samesite" yaml:"samesite"` // Configures the Secure attribute on session affinity cookie. // // Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#secure LoadBalancer#secure} Secure *string `field:"optional" json:"secure" yaml:"secure"` // Configures the zero-downtime failover between origins within a pool when session affinity is enabled. // // This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are: // - `"none"`: No failover takes place for sessions pinned to the origin (default). // - `"temporary"`: Traffic will be sent to another other healthy origin until the originally pinned origin is available; note that this can potentially result in heavy origin flapping. // - `"sticky"`: The session affinity cookie is updated and subsequent requests are sent to the new origin. Note: Zero-downtime failover with sticky sessions is currently not supported for session affinity by header. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.1.0/docs/resources/load_balancer#zero_downtime_failover LoadBalancer#zero_downtime_failover} ZeroDowntimeFailover *string `field:"optional" json:"zeroDowntimeFailover" yaml:"zeroDowntimeFailover"` }
type LoadBalancerSessionAffinityAttributesOutputReference ¶
type LoadBalancerSessionAffinityAttributesOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string DrainDuration() *float64 SetDrainDuration(val *float64) DrainDurationInput() *float64 // Experimental. Fqn() *string Headers() *[]*string SetHeaders(val *[]*string) HeadersInput() *[]*string InternalValue() interface{} SetInternalValue(val interface{}) RequireAllHeaders() interface{} SetRequireAllHeaders(val interface{}) RequireAllHeadersInput() interface{} Samesite() *string SetSamesite(val *string) SamesiteInput() *string Secure() *string SetSecure(val *string) SecureInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) ZeroDowntimeFailover() *string SetZeroDowntimeFailover(val *string) ZeroDowntimeFailoverInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetDrainDuration() ResetHeaders() ResetRequireAllHeaders() ResetSamesite() ResetSecure() ResetZeroDowntimeFailover() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewLoadBalancerSessionAffinityAttributesOutputReference ¶
func NewLoadBalancerSessionAffinityAttributesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) LoadBalancerSessionAffinityAttributesOutputReference
Source Files
¶
- LoadBalancer.go
- LoadBalancerAdaptiveRouting.go
- LoadBalancerAdaptiveRoutingOutputReference.go
- LoadBalancerAdaptiveRoutingOutputReference__checks.go
- LoadBalancerConfig.go
- LoadBalancerLocationStrategy.go
- LoadBalancerLocationStrategyOutputReference.go
- LoadBalancerLocationStrategyOutputReference__checks.go
- LoadBalancerRandomSteering.go
- LoadBalancerRandomSteeringOutputReference.go
- LoadBalancerRandomSteeringOutputReference__checks.go
- LoadBalancerRules.go
- LoadBalancerRulesFixedResponse.go
- LoadBalancerRulesFixedResponseOutputReference.go
- LoadBalancerRulesFixedResponseOutputReference__checks.go
- LoadBalancerRulesList.go
- LoadBalancerRulesList__checks.go
- LoadBalancerRulesOutputReference.go
- LoadBalancerRulesOutputReference__checks.go
- LoadBalancerRulesOverrides.go
- LoadBalancerRulesOverridesAdaptiveRouting.go
- LoadBalancerRulesOverridesAdaptiveRoutingOutputReference.go
- LoadBalancerRulesOverridesAdaptiveRoutingOutputReference__checks.go
- LoadBalancerRulesOverridesLocationStrategy.go
- LoadBalancerRulesOverridesLocationStrategyOutputReference.go
- LoadBalancerRulesOverridesLocationStrategyOutputReference__checks.go
- LoadBalancerRulesOverridesOutputReference.go
- LoadBalancerRulesOverridesOutputReference__checks.go
- LoadBalancerRulesOverridesRandomSteering.go
- LoadBalancerRulesOverridesRandomSteeringOutputReference.go
- LoadBalancerRulesOverridesRandomSteeringOutputReference__checks.go
- LoadBalancerRulesOverridesSessionAffinityAttributes.go
- LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference.go
- LoadBalancerRulesOverridesSessionAffinityAttributesOutputReference__checks.go
- LoadBalancerSessionAffinityAttributes.go
- LoadBalancerSessionAffinityAttributesOutputReference.go
- LoadBalancerSessionAffinityAttributesOutputReference__checks.go
- LoadBalancer__checks.go
- main.go