Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Latest commit

 

History

History
2419 lines (1500 loc) · 101 KB

File metadata and controls

2419 lines (1500 loc) · 101 KB

healthcheck Submodule

Constructs

Healthcheck

Represents a {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck cloudflare_healthcheck}.

Initializers

import { healthcheck } from '@cdktf/provider-cloudflare'

new healthcheck.Healthcheck(scope: Construct, id: string, config: HealthcheckConfig)
Name Type Description
scope constructs.Construct The scope in which to define this construct.
id string The scoped construct ID.
config HealthcheckConfig No description.

scopeRequired
  • Type: constructs.Construct

The scope in which to define this construct.


idRequired
  • Type: string

The scoped construct ID.

Must be unique amongst siblings in the same scope


configRequired

Methods

Name Description
toString Returns a string representation of this construct.
addOverride No description.
overrideLogicalId Overrides the auto-generated logical ID with a specific ID.
resetOverrideLogicalId Resets a previously passed logical Id to use the auto-generated logical id again.
toHclTerraform No description.
toMetadata No description.
toTerraform Adds this resource to the terraform JSON output.
addMoveTarget Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
getAnyMapAttribute No description.
getBooleanAttribute No description.
getBooleanMapAttribute No description.
getListAttribute No description.
getNumberAttribute No description.
getNumberListAttribute No description.
getNumberMapAttribute No description.
getStringAttribute No description.
getStringMapAttribute No description.
hasResourceMove No description.
importFrom No description.
interpolationForAttribute No description.
moveFromId Move the resource corresponding to "id" to this resource.
moveTo Moves this resource to the target resource given by moveTarget.
moveToId Moves this resource to the resource corresponding to "id".
putHttpConfig No description.
putTcpConfig No description.
resetCheckRegions No description.
resetConsecutiveFails No description.
resetConsecutiveSuccesses No description.
resetDescription No description.
resetHttpConfig No description.
resetInterval No description.
resetRetries No description.
resetSuspended No description.
resetTcpConfig No description.
resetTimeout No description.
resetType No description.

toString
public toString(): string

Returns a string representation of this construct.

addOverride
public addOverride(path: string, value: any): void
pathRequired
  • Type: string

valueRequired
  • Type: any

overrideLogicalId
public overrideLogicalId(newLogicalId: string): void

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired
  • Type: string

The new logical ID to use for this stack element.


resetOverrideLogicalId
public resetOverrideLogicalId(): void

Resets a previously passed logical Id to use the auto-generated logical id again.

toHclTerraform
public toHclTerraform(): any
toMetadata
public toMetadata(): any
toTerraform
public toTerraform(): any

Adds this resource to the terraform JSON output.

addMoveTarget
public addMoveTarget(moveTarget: string): void

Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.

moveTargetRequired
  • Type: string

The string move target that will correspond to this resource.


getAnyMapAttribute
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
terraformAttributeRequired
  • Type: string

getBooleanAttribute
public getBooleanAttribute(terraformAttribute: string): IResolvable
terraformAttributeRequired
  • Type: string

getBooleanMapAttribute
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
terraformAttributeRequired
  • Type: string

getListAttribute
public getListAttribute(terraformAttribute: string): string[]
terraformAttributeRequired
  • Type: string

getNumberAttribute
public getNumberAttribute(terraformAttribute: string): number
terraformAttributeRequired
  • Type: string

getNumberListAttribute
public getNumberListAttribute(terraformAttribute: string): number[]
terraformAttributeRequired
  • Type: string

getNumberMapAttribute
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
terraformAttributeRequired
  • Type: string

getStringAttribute
public getStringAttribute(terraformAttribute: string): string
terraformAttributeRequired
  • Type: string

getStringMapAttribute
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
terraformAttributeRequired
  • Type: string

hasResourceMove
public hasResourceMove(): TerraformResourceMoveByTarget | TerraformResourceMoveById
importFrom
public importFrom(id: string, provider?: TerraformProvider): void
idRequired
  • Type: string

providerOptional
  • Type: cdktf.TerraformProvider

interpolationForAttribute
public interpolationForAttribute(terraformAttribute: string): IResolvable
terraformAttributeRequired
  • Type: string

moveFromId
public moveFromId(id: string): void

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.

idRequired
  • Type: string

Full id of resource being moved from, e.g. "aws_s3_bucket.example".


moveTo
public moveTo(moveTarget: string, index?: string | number): void

Moves this resource to the target resource given by moveTarget.

moveTargetRequired
  • Type: string

The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.


indexOptional
  • Type: string | number

Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.


moveToId
public moveToId(id: string): void

Moves this resource to the resource corresponding to "id".

idRequired
  • Type: string

Full id of resource to move to, e.g. "aws_s3_bucket.example".


putHttpConfig
public putHttpConfig(value: HealthcheckHttpConfig): void
valueRequired

putTcpConfig
public putTcpConfig(value: HealthcheckTcpConfig): void
valueRequired

resetCheckRegions
public resetCheckRegions(): void
resetConsecutiveFails
public resetConsecutiveFails(): void
resetConsecutiveSuccesses
public resetConsecutiveSuccesses(): void
resetDescription
public resetDescription(): void
resetHttpConfig
public resetHttpConfig(): void
resetInterval
public resetInterval(): void
resetRetries
public resetRetries(): void
resetSuspended
public resetSuspended(): void
resetTcpConfig
public resetTcpConfig(): void
resetTimeout
public resetTimeout(): void
resetType
public resetType(): void

Static Functions

Name Description
isConstruct Checks if x is a construct.
isTerraformElement No description.
isTerraformResource No description.
generateConfigForImport Generates CDKTF code for importing a Healthcheck resource upon running "cdktf plan ".

isConstruct
import { healthcheck } from '@cdktf/provider-cloudflare'

healthcheck.Healthcheck.isConstruct(x: any)

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.

xRequired
  • Type: any

Any object.


isTerraformElement
import { healthcheck } from '@cdktf/provider-cloudflare'

healthcheck.Healthcheck.isTerraformElement(x: any)
xRequired
  • Type: any

isTerraformResource
import { healthcheck } from '@cdktf/provider-cloudflare'

healthcheck.Healthcheck.isTerraformResource(x: any)
xRequired
  • Type: any

generateConfigForImport
import { healthcheck } from '@cdktf/provider-cloudflare'

healthcheck.Healthcheck.generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: TerraformProvider)

Generates CDKTF code for importing a Healthcheck resource upon running "cdktf plan ".

scopeRequired
  • Type: constructs.Construct

The scope in which to define this construct.


importToIdRequired
  • Type: string

The construct id used in the generated config for the Healthcheck to import.


importFromIdRequired
  • Type: string

The id of the existing Healthcheck that should be imported.

Refer to the {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#import import section} in the documentation of this resource for the id to use


providerOptional
  • Type: cdktf.TerraformProvider

? Optional instance of the provider where the Healthcheck to import is found.


Properties

Name Type Description
node constructs.Node The tree node.
cdktfStack cdktf.TerraformStack No description.
fqn string No description.
friendlyUniqueId string No description.
terraformMetaArguments {[ key: string ]: any} No description.
terraformResourceType string No description.
terraformGeneratorMetadata cdktf.TerraformProviderGeneratorMetadata No description.
connection cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection No description.
count number | cdktf.TerraformCount No description.
dependsOn string[] No description.
forEach cdktf.ITerraformIterator No description.
lifecycle cdktf.TerraformResourceLifecycle No description.
provider cdktf.TerraformProvider No description.
provisioners cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] No description.
createdOn string No description.
failureReason string No description.
httpConfig HealthcheckHttpConfigOutputReference No description.
id string No description.
modifiedOn string No description.
status string No description.
tcpConfig HealthcheckTcpConfigOutputReference No description.
addressInput string No description.
checkRegionsInput string[] No description.
consecutiveFailsInput number No description.
consecutiveSuccessesInput number No description.
descriptionInput string No description.
httpConfigInput cdktf.IResolvable | HealthcheckHttpConfig No description.
intervalInput number No description.
nameInput string No description.
retriesInput number No description.
suspendedInput boolean | cdktf.IResolvable No description.
tcpConfigInput cdktf.IResolvable | HealthcheckTcpConfig No description.
timeoutInput number No description.
typeInput string No description.
zoneIdInput string No description.
address string No description.
checkRegions string[] No description.
consecutiveFails number No description.
consecutiveSuccesses number No description.
description string No description.
interval number No description.
name string No description.
retries number No description.
suspended boolean | cdktf.IResolvable No description.
timeout number No description.
type string No description.
zoneId string No description.

nodeRequired
public readonly node: Node;
  • Type: constructs.Node

The tree node.


cdktfStackRequired
public readonly cdktfStack: TerraformStack;
  • Type: cdktf.TerraformStack

fqnRequired
public readonly fqn: string;
  • Type: string

friendlyUniqueIdRequired
public readonly friendlyUniqueId: string;
  • Type: string

terraformMetaArgumentsRequired
public readonly terraformMetaArguments: {[ key: string ]: any};
  • Type: {[ key: string ]: any}

terraformResourceTypeRequired
public readonly terraformResourceType: string;
  • Type: string

terraformGeneratorMetadataOptional
public readonly terraformGeneratorMetadata: TerraformProviderGeneratorMetadata;
  • Type: cdktf.TerraformProviderGeneratorMetadata

connectionOptional
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
  • Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection

countOptional
public readonly count: number | TerraformCount;
  • Type: number | cdktf.TerraformCount

dependsOnOptional
public readonly dependsOn: string[];
  • Type: string[]

forEachOptional
public readonly forEach: ITerraformIterator;
  • Type: cdktf.ITerraformIterator

lifecycleOptional
public readonly lifecycle: TerraformResourceLifecycle;
  • Type: cdktf.TerraformResourceLifecycle

providerOptional
public readonly provider: TerraformProvider;
  • Type: cdktf.TerraformProvider

provisionersOptional
public readonly provisioners: (FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner)[];
  • Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]

createdOnRequired
public readonly createdOn: string;
  • Type: string

failureReasonRequired
public readonly failureReason: string;
  • Type: string

httpConfigRequired
public readonly httpConfig: HealthcheckHttpConfigOutputReference;

idRequired
public readonly id: string;
  • Type: string

modifiedOnRequired
public readonly modifiedOn: string;
  • Type: string

statusRequired
public readonly status: string;
  • Type: string

tcpConfigRequired
public readonly tcpConfig: HealthcheckTcpConfigOutputReference;

addressInputOptional
public readonly addressInput: string;
  • Type: string

checkRegionsInputOptional
public readonly checkRegionsInput: string[];
  • Type: string[]

consecutiveFailsInputOptional
public readonly consecutiveFailsInput: number;
  • Type: number

consecutiveSuccessesInputOptional
public readonly consecutiveSuccessesInput: number;
  • Type: number

descriptionInputOptional
public readonly descriptionInput: string;
  • Type: string

httpConfigInputOptional
public readonly httpConfigInput: IResolvable | HealthcheckHttpConfig;

intervalInputOptional
public readonly intervalInput: number;
  • Type: number

nameInputOptional
public readonly nameInput: string;
  • Type: string

retriesInputOptional
public readonly retriesInput: number;
  • Type: number

suspendedInputOptional
public readonly suspendedInput: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

tcpConfigInputOptional
public readonly tcpConfigInput: IResolvable | HealthcheckTcpConfig;

timeoutInputOptional
public readonly timeoutInput: number;
  • Type: number

typeInputOptional
public readonly typeInput: string;
  • Type: string

zoneIdInputOptional
public readonly zoneIdInput: string;
  • Type: string

addressRequired
public readonly address: string;
  • Type: string

checkRegionsRequired
public readonly checkRegions: string[];
  • Type: string[]

consecutiveFailsRequired
public readonly consecutiveFails: number;
  • Type: number

consecutiveSuccessesRequired
public readonly consecutiveSuccesses: number;
  • Type: number

descriptionRequired
public readonly description: string;
  • Type: string

intervalRequired
public readonly interval: number;
  • Type: number

nameRequired
public readonly name: string;
  • Type: string

retriesRequired
public readonly retries: number;
  • Type: number

suspendedRequired
public readonly suspended: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

timeoutRequired
public readonly timeout: number;
  • Type: number

typeRequired
public readonly type: string;
  • Type: string

zoneIdRequired
public readonly zoneId: string;
  • Type: string

Constants

Name Type Description
tfResourceType string No description.

tfResourceTypeRequired
public readonly tfResourceType: string;
  • Type: string

Structs

HealthcheckConfig

Initializer

import { healthcheck } from '@cdktf/provider-cloudflare'

const healthcheckConfig: healthcheck.HealthcheckConfig = { ... }

Properties

Name Type Description
connection cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection No description.
count number | cdktf.TerraformCount No description.
dependsOn cdktf.ITerraformDependable[] No description.
forEach cdktf.ITerraformIterator No description.
lifecycle cdktf.TerraformResourceLifecycle No description.
provider cdktf.TerraformProvider No description.
provisioners cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] No description.
address string The hostname or IP address of the origin server to run health checks on.
name string A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.
zoneId string Identifier.
checkRegions string[] A list of regions from which to run health checks. Null means Cloudflare will pick a default region.
consecutiveFails number The number of consecutive fails required from a health check before changing the health to unhealthy.
consecutiveSuccesses number The number of consecutive successes required from a health check before changing the health to healthy.
description string A human-readable description of the health check.
httpConfig HealthcheckHttpConfig Parameters specific to an HTTP or HTTPS health check.
interval number The interval between each health check.
retries number The number of retries to attempt in case of a timeout before marking the origin as unhealthy.
suspended boolean | cdktf.IResolvable If suspended, no health checks are sent to the origin.
tcpConfig HealthcheckTcpConfig Parameters specific to TCP health check.
timeout number The timeout (in seconds) before marking the health check as failed.
type string The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.

connectionOptional
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
  • Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection

countOptional
public readonly count: number | TerraformCount;
  • Type: number | cdktf.TerraformCount

dependsOnOptional
public readonly dependsOn: ITerraformDependable[];
  • Type: cdktf.ITerraformDependable[]

forEachOptional
public readonly forEach: ITerraformIterator;
  • Type: cdktf.ITerraformIterator

lifecycleOptional
public readonly lifecycle: TerraformResourceLifecycle;
  • Type: cdktf.TerraformResourceLifecycle

providerOptional
public readonly provider: TerraformProvider;
  • Type: cdktf.TerraformProvider

provisionersOptional
public readonly provisioners: (FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner)[];
  • Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]

addressRequired
public readonly address: string;
  • Type: string

The hostname or IP address of the origin server to run health checks on.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#address Healthcheck#address}


nameRequired
public readonly name: string;
  • Type: string

A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#name Healthcheck#name}


zoneIdRequired
public readonly zoneId: string;
  • Type: string

Identifier.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#zone_id Healthcheck#zone_id}


checkRegionsOptional
public readonly checkRegions: string[];
  • Type: string[]

A list of regions from which to run health checks. Null means Cloudflare will pick a default region.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#check_regions Healthcheck#check_regions}


consecutiveFailsOptional
public readonly consecutiveFails: number;
  • Type: number

The number of consecutive fails required from a health check before changing the health to unhealthy.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#consecutive_fails Healthcheck#consecutive_fails}


consecutiveSuccessesOptional
public readonly consecutiveSuccesses: number;
  • Type: number

The number of consecutive successes required from a health check before changing the health to healthy.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#consecutive_successes Healthcheck#consecutive_successes}


descriptionOptional
public readonly description: string;
  • Type: string

A human-readable description of the health check.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#description Healthcheck#description}


httpConfigOptional
public readonly httpConfig: HealthcheckHttpConfig;

Parameters specific to an HTTP or HTTPS health check.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#http_config Healthcheck#http_config}


intervalOptional
public readonly interval: number;
  • Type: number

The interval between each health check.

Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#interval Healthcheck#interval}


retriesOptional
public readonly retries: number;
  • Type: number

The number of retries to attempt in case of a timeout before marking the origin as unhealthy.

Retries are attempted immediately.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#retries Healthcheck#retries}


suspendedOptional
public readonly suspended: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

If suspended, no health checks are sent to the origin.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#suspended Healthcheck#suspended}


tcpConfigOptional
public readonly tcpConfig: HealthcheckTcpConfig;

Parameters specific to TCP health check.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#tcp_config Healthcheck#tcp_config}


timeoutOptional
public readonly timeout: number;
  • Type: number

The timeout (in seconds) before marking the health check as failed.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#timeout Healthcheck#timeout}


typeOptional
public readonly type: string;
  • Type: string

The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#type Healthcheck#type}


HealthcheckHttpConfig

Initializer

import { healthcheck } from '@cdktf/provider-cloudflare'

const healthcheckHttpConfig: healthcheck.HealthcheckHttpConfig = { ... }

Properties

Name Type Description
allowInsecure boolean | cdktf.IResolvable Do not validate the certificate when the health check uses HTTPS.
expectedBody string A case-insensitive sub-string to look for in the response body.
expectedCodes string[] The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.
followRedirects boolean | cdktf.IResolvable Follow redirects if the origin returns a 3xx status code.
header cdktf.IResolvable | {[ key: string ]: string[]} The HTTP request headers to send in the health check.
method string The HTTP method to use for the health check. Available values: "GET", "HEAD".
path string The endpoint path to health check against.
port number Port number to connect to for the health check.

allowInsecureOptional
public readonly allowInsecure: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

Do not validate the certificate when the health check uses HTTPS.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#allow_insecure Healthcheck#allow_insecure}


expectedBodyOptional
public readonly expectedBody: string;
  • Type: string

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.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#expected_body Healthcheck#expected_body}


expectedCodesOptional
public readonly expectedCodes: string[];
  • Type: string[]

The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#expected_codes Healthcheck#expected_codes}


followRedirectsOptional
public readonly followRedirects: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

Follow redirects if the origin returns a 3xx status code.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#follow_redirects Healthcheck#follow_redirects}


headerOptional
public readonly header: IResolvable | {[ key: string ]: string[]};
  • Type: cdktf.IResolvable | {[ key: string ]: string[]}

The HTTP request headers to send in the health check.

It is recommended you set a Host header by default. The User-Agent header cannot be overridden.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#header Healthcheck#header}


methodOptional
public readonly method: string;
  • Type: string

The HTTP method to use for the health check. Available values: "GET", "HEAD".

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#method Healthcheck#method}


pathOptional
public readonly path: string;
  • Type: string

The endpoint path to health check against.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#path Healthcheck#path}


portOptional
public readonly port: number;
  • Type: number

Port number to connect to for the health check.

Defaults to 80 if type is HTTP or 443 if type is HTTPS.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#port Healthcheck#port}


HealthcheckTcpConfig

Initializer

import { healthcheck } from '@cdktf/provider-cloudflare'

const healthcheckTcpConfig: healthcheck.HealthcheckTcpConfig = { ... }

Properties

Name Type Description
method string The TCP connection method to use for the health check. Available values: "connection_established".
port number Port number to connect to for the health check. Defaults to 80.

methodOptional
public readonly method: string;
  • Type: string

The TCP connection method to use for the health check. Available values: "connection_established".

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#method Healthcheck#method}


portOptional
public readonly port: number;
  • Type: number

Port number to connect to for the health check. Defaults to 80.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.14.0/docs/resources/healthcheck#port Healthcheck#port}


Classes

HealthcheckHttpConfigOutputReference

Initializers

import { healthcheck } from '@cdktf/provider-cloudflare'

new healthcheck.HealthcheckHttpConfigOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string)
Name Type Description
terraformResource cdktf.IInterpolatingParent The parent resource.
terraformAttribute string The attribute on the parent resource this class is referencing.

terraformResourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraformAttributeRequired
  • Type: string

The attribute on the parent resource this class is referencing.


Methods

Name Description
computeFqn No description.
getAnyMapAttribute No description.
getBooleanAttribute No description.
getBooleanMapAttribute No description.
getListAttribute No description.
getNumberAttribute No description.
getNumberListAttribute No description.
getNumberMapAttribute No description.
getStringAttribute No description.
getStringMapAttribute No description.
interpolationForAttribute No description.
resolve Produce the Token's value at resolution time.
toString Return a string representation of this resolvable object.
resetAllowInsecure No description.
resetExpectedBody No description.
resetExpectedCodes No description.
resetFollowRedirects No description.
resetHeader No description.
resetMethod No description.
resetPath No description.
resetPort No description.

computeFqn
public computeFqn(): string
getAnyMapAttribute
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
terraformAttributeRequired
  • Type: string

getBooleanAttribute
public getBooleanAttribute(terraformAttribute: string): IResolvable
terraformAttributeRequired
  • Type: string

getBooleanMapAttribute
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
terraformAttributeRequired
  • Type: string

getListAttribute
public getListAttribute(terraformAttribute: string): string[]
terraformAttributeRequired
  • Type: string

getNumberAttribute
public getNumberAttribute(terraformAttribute: string): number
terraformAttributeRequired
  • Type: string

getNumberListAttribute
public getNumberListAttribute(terraformAttribute: string): number[]
terraformAttributeRequired
  • Type: string

getNumberMapAttribute
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
terraformAttributeRequired
  • Type: string

getStringAttribute
public getStringAttribute(terraformAttribute: string): string
terraformAttributeRequired
  • Type: string

getStringMapAttribute
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
terraformAttributeRequired
  • Type: string

interpolationForAttribute
public interpolationForAttribute(property: string): IResolvable
propertyRequired
  • Type: string

resolve
public resolve(_context: IResolveContext): any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

toString
public toString(): string

Return a string representation of this resolvable object.

Returns a reversible string representation.

resetAllowInsecure
public resetAllowInsecure(): void
resetExpectedBody
public resetExpectedBody(): void
resetExpectedCodes
public resetExpectedCodes(): void
resetFollowRedirects
public resetFollowRedirects(): void
resetHeader
public resetHeader(): void
resetMethod
public resetMethod(): void
resetPath
public resetPath(): void
resetPort
public resetPort(): void

Properties

Name Type Description
creationStack string[] The creation stack of this resolvable which will be appended to errors thrown during resolution.
fqn string No description.
allowInsecureInput boolean | cdktf.IResolvable No description.
expectedBodyInput string No description.
expectedCodesInput string[] No description.
followRedirectsInput boolean | cdktf.IResolvable No description.
headerInput cdktf.IResolvable | {[ key: string ]: string[]} No description.
methodInput string No description.
pathInput string No description.
portInput number No description.
allowInsecure boolean | cdktf.IResolvable No description.
expectedBody string No description.
expectedCodes string[] No description.
followRedirects boolean | cdktf.IResolvable No description.
header cdktf.IResolvable | {[ key: string ]: string[]} No description.
method string No description.
path string No description.
port number No description.
internalValue cdktf.IResolvable | HealthcheckHttpConfig No description.

creationStackRequired
public readonly creationStack: string[];
  • Type: 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.


fqnRequired
public readonly fqn: string;
  • Type: string

allowInsecureInputOptional
public readonly allowInsecureInput: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

expectedBodyInputOptional
public readonly expectedBodyInput: string;
  • Type: string

expectedCodesInputOptional
public readonly expectedCodesInput: string[];
  • Type: string[]

followRedirectsInputOptional
public readonly followRedirectsInput: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

headerInputOptional
public readonly headerInput: IResolvable | {[ key: string ]: string[]};
  • Type: cdktf.IResolvable | {[ key: string ]: string[]}

methodInputOptional
public readonly methodInput: string;
  • Type: string

pathInputOptional
public readonly pathInput: string;
  • Type: string

portInputOptional
public readonly portInput: number;
  • Type: number

allowInsecureRequired
public readonly allowInsecure: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

expectedBodyRequired
public readonly expectedBody: string;
  • Type: string

expectedCodesRequired
public readonly expectedCodes: string[];
  • Type: string[]

followRedirectsRequired
public readonly followRedirects: boolean | IResolvable;
  • Type: boolean | cdktf.IResolvable

headerRequired
public readonly header: IResolvable | {[ key: string ]: string[]};
  • Type: cdktf.IResolvable | {[ key: string ]: string[]}

methodRequired
public readonly method: string;
  • Type: string

pathRequired
public readonly path: string;
  • Type: string

portRequired
public readonly port: number;
  • Type: number

internalValueOptional
public readonly internalValue: IResolvable | HealthcheckHttpConfig;

HealthcheckTcpConfigOutputReference

Initializers

import { healthcheck } from '@cdktf/provider-cloudflare'

new healthcheck.HealthcheckTcpConfigOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string)
Name Type Description
terraformResource cdktf.IInterpolatingParent The parent resource.
terraformAttribute string The attribute on the parent resource this class is referencing.

terraformResourceRequired
  • Type: cdktf.IInterpolatingParent

The parent resource.


terraformAttributeRequired
  • Type: string

The attribute on the parent resource this class is referencing.


Methods

Name Description
computeFqn No description.
getAnyMapAttribute No description.
getBooleanAttribute No description.
getBooleanMapAttribute No description.
getListAttribute No description.
getNumberAttribute No description.
getNumberListAttribute No description.
getNumberMapAttribute No description.
getStringAttribute No description.
getStringMapAttribute No description.
interpolationForAttribute No description.
resolve Produce the Token's value at resolution time.
toString Return a string representation of this resolvable object.
resetMethod No description.
resetPort No description.

computeFqn
public computeFqn(): string
getAnyMapAttribute
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
terraformAttributeRequired
  • Type: string

getBooleanAttribute
public getBooleanAttribute(terraformAttribute: string): IResolvable
terraformAttributeRequired
  • Type: string

getBooleanMapAttribute
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
terraformAttributeRequired
  • Type: string

getListAttribute
public getListAttribute(terraformAttribute: string): string[]
terraformAttributeRequired
  • Type: string

getNumberAttribute
public getNumberAttribute(terraformAttribute: string): number
terraformAttributeRequired
  • Type: string

getNumberListAttribute
public getNumberListAttribute(terraformAttribute: string): number[]
terraformAttributeRequired
  • Type: string

getNumberMapAttribute
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
terraformAttributeRequired
  • Type: string

getStringAttribute
public getStringAttribute(terraformAttribute: string): string
terraformAttributeRequired
  • Type: string

getStringMapAttribute
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
terraformAttributeRequired
  • Type: string

interpolationForAttribute
public interpolationForAttribute(property: string): IResolvable
propertyRequired
  • Type: string

resolve
public resolve(_context: IResolveContext): any

Produce the Token's value at resolution time.

_contextRequired
  • Type: cdktf.IResolveContext

toString
public toString(): string

Return a string representation of this resolvable object.

Returns a reversible string representation.

resetMethod
public resetMethod(): void
resetPort
public resetPort(): void

Properties

Name Type Description
creationStack string[] The creation stack of this resolvable which will be appended to errors thrown during resolution.
fqn string No description.
methodInput string No description.
portInput number No description.
method string No description.
port number No description.
internalValue cdktf.IResolvable | HealthcheckTcpConfig No description.

creationStackRequired
public readonly creationStack: string[];
  • Type: 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.


fqnRequired
public readonly fqn: string;
  • Type: string

methodInputOptional
public readonly methodInput: string;
  • Type: string

portInputOptional
public readonly portInput: number;
  • Type: number

methodRequired
public readonly method: string;
  • Type: string

portRequired
public readonly port: number;
  • Type: number

internalValueOptional
public readonly internalValue: IResolvable | HealthcheckTcpConfig;