Documentation ¶
Index ¶
- func LoadBalancerMonitor_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func LoadBalancerMonitor_IsConstruct(x interface{}) *bool
- func LoadBalancerMonitor_IsTerraformElement(x interface{}) *bool
- func LoadBalancerMonitor_IsTerraformResource(x interface{}) *bool
- func LoadBalancerMonitor_TfResourceType() *string
- func NewLoadBalancerMonitorHeaderList_Override(l LoadBalancerMonitorHeaderList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewLoadBalancerMonitorHeaderOutputReference_Override(l LoadBalancerMonitorHeaderOutputReference, ...)
- func NewLoadBalancerMonitor_Override(l LoadBalancerMonitor, scope constructs.Construct, id *string, ...)
- type LoadBalancerMonitor
- type LoadBalancerMonitorConfig
- type LoadBalancerMonitorHeader
- type LoadBalancerMonitorHeaderList
- type LoadBalancerMonitorHeaderOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadBalancerMonitor_GenerateConfigForImport ¶
func LoadBalancerMonitor_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a LoadBalancerMonitor resource upon running "cdktf plan <stack-name>".
func LoadBalancerMonitor_IsConstruct ¶
func LoadBalancerMonitor_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 LoadBalancerMonitor_IsTerraformElement ¶
func LoadBalancerMonitor_IsTerraformElement(x interface{}) *bool
Experimental.
func LoadBalancerMonitor_IsTerraformResource ¶
func LoadBalancerMonitor_IsTerraformResource(x interface{}) *bool
Experimental.
func LoadBalancerMonitor_TfResourceType ¶
func LoadBalancerMonitor_TfResourceType() *string
func NewLoadBalancerMonitorHeaderList_Override ¶
func NewLoadBalancerMonitorHeaderList_Override(l LoadBalancerMonitorHeaderList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewLoadBalancerMonitorHeaderOutputReference_Override ¶
func NewLoadBalancerMonitorHeaderOutputReference_Override(l LoadBalancerMonitorHeaderOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewLoadBalancerMonitor_Override ¶
func NewLoadBalancerMonitor_Override(l LoadBalancerMonitor, scope constructs.Construct, id *string, config *LoadBalancerMonitorConfig)
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor cloudflare_load_balancer_monitor} Resource.
Types ¶
type LoadBalancerMonitor ¶
type LoadBalancerMonitor interface { cdktf.TerraformResource AccountId() *string SetAccountId(val *string) AccountIdInput() *string AllowInsecure() interface{} SetAllowInsecure(val interface{}) AllowInsecureInput() interface{} // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) ConsecutiveDown() *float64 SetConsecutiveDown(val *float64) ConsecutiveDownInput() *float64 ConsecutiveUp() *float64 SetConsecutiveUp(val *float64) ConsecutiveUpInput() *float64 // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) CreatedOn() *string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Description() *string SetDescription(val *string) DescriptionInput() *string ExpectedBody() *string SetExpectedBody(val *string) ExpectedBodyInput() *string ExpectedCodes() *string SetExpectedCodes(val *string) ExpectedCodesInput() *string FollowRedirects() interface{} SetFollowRedirects(val interface{}) FollowRedirectsInput() interface{} // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Header() LoadBalancerMonitorHeaderList HeaderInput() interface{} Id() *string SetId(val *string) IdInput() *string Interval() *float64 SetInterval(val *float64) IntervalInput() *float64 // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Method() *string SetMethod(val *string) MethodInput() *string ModifiedOn() *string // The tree node. Node() constructs.Node Path() *string SetPath(val *string) PathInput() *string Port() *float64 SetPort(val *float64) PortInput() *float64 ProbeZone() *string SetProbeZone(val *string) ProbeZoneInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} Retries() *float64 SetRetries(val *float64) RetriesInput() *float64 // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Timeout() *float64 SetTimeout(val *float64) TimeoutInput() *float64 Type() *string SetType(val *string) TypeInput() *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) PutHeader(value interface{}) ResetAllowInsecure() ResetConsecutiveDown() ResetConsecutiveUp() ResetDescription() ResetExpectedBody() ResetExpectedCodes() ResetFollowRedirects() ResetHeader() ResetId() ResetInterval() ResetMethod() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPath() ResetPort() ResetProbeZone() ResetRetries() ResetTimeout() ResetType() 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/4.49.0/docs/resources/load_balancer_monitor cloudflare_load_balancer_monitor}.
func NewLoadBalancerMonitor ¶
func NewLoadBalancerMonitor(scope constructs.Construct, id *string, config *LoadBalancerMonitorConfig) LoadBalancerMonitor
Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor cloudflare_load_balancer_monitor} Resource.
type LoadBalancerMonitorConfig ¶
type LoadBalancerMonitorConfig 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"` // The account identifier to target for the resource. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#account_id LoadBalancerMonitor#account_id} AccountId *string `field:"required" json:"accountId" yaml:"accountId"` // Do not validate the certificate when monitor use HTTPS. Only valid if `type` is "http" or "https". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#allow_insecure LoadBalancerMonitor#allow_insecure} AllowInsecure interface{} `field:"optional" json:"allowInsecure" yaml:"allowInsecure"` // To be marked unhealthy the monitored origin must fail this healthcheck N consecutive times. Defaults to `0`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#consecutive_down LoadBalancerMonitor#consecutive_down} ConsecutiveDown *float64 `field:"optional" json:"consecutiveDown" yaml:"consecutiveDown"` // To be marked healthy the monitored origin must pass this healthcheck N consecutive times. Defaults to `0`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#consecutive_up LoadBalancerMonitor#consecutive_up} ConsecutiveUp *float64 `field:"optional" json:"consecutiveUp" yaml:"consecutiveUp"` // Free text description. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#description LoadBalancerMonitor#description} Description *string `field:"optional" json:"description" yaml:"description"` // A case-insensitive sub-string to look for in the response body. // // If this string is not found, the origin will be marked as unhealthy. Only valid if `type` is "http" or "https". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#expected_body LoadBalancerMonitor#expected_body} ExpectedBody *string `field:"optional" json:"expectedBody" yaml:"expectedBody"` // The expected HTTP response code or code range of the health check. // // Eg `2xx`. Only valid and required if `type` is "http" or "https". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#expected_codes LoadBalancerMonitor#expected_codes} ExpectedCodes *string `field:"optional" json:"expectedCodes" yaml:"expectedCodes"` // Follow redirects if returned by the origin. Only valid if `type` is "http" or "https". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#follow_redirects LoadBalancerMonitor#follow_redirects} FollowRedirects interface{} `field:"optional" json:"followRedirects" yaml:"followRedirects"` // header block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#header LoadBalancerMonitor#header} Header interface{} `field:"optional" json:"header" yaml:"header"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#id LoadBalancerMonitor#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // The interval between each health check. // // Shorter intervals may improve failover time, but will increase load on the origins as we check from multiple locations. Defaults to `60`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#interval LoadBalancerMonitor#interval} Interval *float64 `field:"optional" json:"interval" yaml:"interval"` // The method to use for the health check. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#method LoadBalancerMonitor#method} Method *string `field:"optional" json:"method" yaml:"method"` // The endpoint path to health check against. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#path LoadBalancerMonitor#path} Path *string `field:"optional" json:"path" yaml:"path"` // The port number to use for the healthcheck, required when creating a TCP monitor. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#port LoadBalancerMonitor#port} Port *float64 `field:"optional" json:"port" yaml:"port"` // Assign this monitor to emulate the specified zone while probing. Only valid if `type` is "http" or "https". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#probe_zone LoadBalancerMonitor#probe_zone} ProbeZone *string `field:"optional" json:"probeZone" yaml:"probeZone"` // The number of retries to attempt in case of a timeout before marking the origin as unhealthy. // // Retries are attempted immediately. Defaults to `2`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#retries LoadBalancerMonitor#retries} Retries *float64 `field:"optional" json:"retries" yaml:"retries"` // The timeout (in seconds) before marking the health check as failed. Defaults to `5`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#timeout LoadBalancerMonitor#timeout} Timeout *float64 `field:"optional" json:"timeout" yaml:"timeout"` // The protocol to use for the healthcheck. Available values: `http`, `https`, `tcp`, `udp_icmp`, `icmp_ping`, `smtp`. Defaults to `http`. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#type LoadBalancerMonitor#type} Type *string `field:"optional" json:"type" yaml:"type"` }
type LoadBalancerMonitorHeader ¶
type LoadBalancerMonitorHeader struct { // The header name. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#header LoadBalancerMonitor#header} Header *string `field:"required" json:"header" yaml:"header"` // A list of values for the header. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.0/docs/resources/load_balancer_monitor#values LoadBalancerMonitor#values} Values *[]*string `field:"required" json:"values" yaml:"values"` }
type LoadBalancerMonitorHeaderList ¶
type LoadBalancerMonitorHeaderList 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) LoadBalancerMonitorHeaderOutputReference // 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 NewLoadBalancerMonitorHeaderList ¶
func NewLoadBalancerMonitorHeaderList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) LoadBalancerMonitorHeaderList
type LoadBalancerMonitorHeaderOutputReference ¶
type LoadBalancerMonitorHeaderOutputReference 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 Header() *string SetHeader(val *string) HeaderInput() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Values() *[]*string SetValues(val *[]*string) ValuesInput() *[]*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 // 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 NewLoadBalancerMonitorHeaderOutputReference ¶
func NewLoadBalancerMonitorHeaderOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) LoadBalancerMonitorHeaderOutputReference