Documentation ¶
Index ¶
- func Healthcheck_IsConstruct(x interface{}) *bool
- func Healthcheck_IsTerraformElement(x interface{}) *bool
- func Healthcheck_IsTerraformResource(x interface{}) *bool
- func Healthcheck_TfResourceType() *string
- func NewHealthcheckHeaderList_Override(h HealthcheckHeaderList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewHealthcheckHeaderOutputReference_Override(h HealthcheckHeaderOutputReference, ...)
- func NewHealthcheckTimeoutsOutputReference_Override(h HealthcheckTimeoutsOutputReference, ...)
- func NewHealthcheck_Override(h Healthcheck, scope constructs.Construct, id *string, ...)
- type Healthcheck
- type HealthcheckConfig
- type HealthcheckHeader
- type HealthcheckHeaderList
- type HealthcheckHeaderOutputReference
- type HealthcheckTimeouts
- type HealthcheckTimeoutsOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Healthcheck_IsConstruct ¶
func Healthcheck_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 Healthcheck_IsTerraformElement ¶
func Healthcheck_IsTerraformElement(x interface{}) *bool
Experimental.
func Healthcheck_IsTerraformResource ¶
func Healthcheck_IsTerraformResource(x interface{}) *bool
Experimental.
func Healthcheck_TfResourceType ¶
func Healthcheck_TfResourceType() *string
func NewHealthcheckHeaderList_Override ¶
func NewHealthcheckHeaderList_Override(h HealthcheckHeaderList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewHealthcheckHeaderOutputReference_Override ¶
func NewHealthcheckHeaderOutputReference_Override(h HealthcheckHeaderOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewHealthcheckTimeoutsOutputReference_Override ¶
func NewHealthcheckTimeoutsOutputReference_Override(h HealthcheckTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewHealthcheck_Override ¶
func NewHealthcheck_Override(h Healthcheck, scope constructs.Construct, id *string, config *HealthcheckConfig)
Create a new {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck cloudflare_healthcheck} Resource.
Types ¶
type Healthcheck ¶
type Healthcheck interface { cdktf.TerraformResource Address() *string SetAddress(val *string) AddressInput() *string AllowInsecure() interface{} SetAllowInsecure(val interface{}) AllowInsecureInput() interface{} // Experimental. CdktfStack() cdktf.TerraformStack CheckRegions() *[]*string SetCheckRegions(val *[]*string) CheckRegionsInput() *[]*string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) ConsecutiveFails() *float64 SetConsecutiveFails(val *float64) ConsecutiveFailsInput() *float64 ConsecutiveSuccesses() *float64 SetConsecutiveSuccesses(val *float64) ConsecutiveSuccessesInput() *float64 // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) 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() HealthcheckHeaderList 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 Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node Path() *string SetPath(val *string) PathInput() *string Port() *float64 SetPort(val *float64) PortInput() *float64 // 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 Suspended() interface{} SetSuspended(val interface{}) SuspendedInput() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Timeout() *float64 SetTimeout(val *float64) TimeoutInput() *float64 Timeouts() HealthcheckTimeoutsOutputReference TimeoutsInput() interface{} Type() *string SetType(val *string) TypeInput() *string ZoneId() *string SetZoneId(val *string) ZoneIdInput() *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. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutHeader(value interface{}) PutTimeouts(value *HealthcheckTimeouts) ResetAllowInsecure() ResetCheckRegions() ResetConsecutiveFails() ResetConsecutiveSuccesses() 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() ResetRetries() ResetSuspended() ResetTimeout() ResetTimeouts() SynthesizeAttributes() *map[string]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://www.terraform.io/docs/providers/cloudflare/r/healthcheck cloudflare_healthcheck}.
func NewHealthcheck ¶
func NewHealthcheck(scope constructs.Construct, id *string, config *HealthcheckConfig) Healthcheck
Create a new {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck cloudflare_healthcheck} Resource.
type HealthcheckConfig ¶
type HealthcheckConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count *float64 `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 hostname or IP address of the origin server to run health checks on. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#address Healthcheck#address} Address *string `field:"required" json:"address" yaml:"address"` // A short name to identify the health check. Only alphanumeric characters, hyphens, and underscores are allowed. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#name Healthcheck#name} Name *string `field:"required" json:"name" yaml:"name"` // The protocol to use for the health check. Available values: `TCP`, `HTTP`, `HTTPS`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#type Healthcheck#type} Type *string `field:"required" json:"type" yaml:"type"` // The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#zone_id Healthcheck#zone_id} ZoneId *string `field:"required" json:"zoneId" yaml:"zoneId"` // Do not validate the certificate when the health check uses HTTPS. Defaults to `false`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#allow_insecure Healthcheck#allow_insecure} AllowInsecure interface{} `field:"optional" json:"allowInsecure" yaml:"allowInsecure"` // A list of regions from which to run health checks. // // If not set, Cloudflare will pick a default region. Available values: `WNAM`, `ENAM`, `WEU`, `EEU`, `NSAM`, `SSAM`, `OC`, `ME`, `NAF`, `SAF`, `IN`, `SEAS`, `NEAS`, `ALL_REGIONS`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#check_regions Healthcheck#check_regions} CheckRegions *[]*string `field:"optional" json:"checkRegions" yaml:"checkRegions"` // The number of consecutive fails required from a health check before changing the health to unhealthy. Defaults to `1`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#consecutive_fails Healthcheck#consecutive_fails} ConsecutiveFails *float64 `field:"optional" json:"consecutiveFails" yaml:"consecutiveFails"` // The number of consecutive successes required from a health check before changing the health to healthy. Defaults to `1`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#consecutive_successes Healthcheck#consecutive_successes} ConsecutiveSuccesses *float64 `field:"optional" json:"consecutiveSuccesses" yaml:"consecutiveSuccesses"` // A human-readable description of the health check. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#description Healthcheck#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. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#expected_body Healthcheck#expected_body} ExpectedBody *string `field:"optional" json:"expectedBody" yaml:"expectedBody"` // 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://www.terraform.io/docs/providers/cloudflare/r/healthcheck#expected_codes Healthcheck#expected_codes} ExpectedCodes *[]*string `field:"optional" json:"expectedCodes" yaml:"expectedCodes"` // Follow redirects if the origin returns a 3xx status code. Defaults to `false`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#follow_redirects Healthcheck#follow_redirects} FollowRedirects interface{} `field:"optional" json:"followRedirects" yaml:"followRedirects"` // header block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#header Healthcheck#header} Header interface{} `field:"optional" json:"header" yaml:"header"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#id Healthcheck#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 give quicker notifications if the origin status changes, but will increase the load on the origin as we check from multiple locations. Defaults to `60`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#interval Healthcheck#interval} Interval *float64 `field:"optional" json:"interval" yaml:"interval"` // The HTTP method to use for the health check. Available values: `connection_established`, `GET`, `HEAD`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#method Healthcheck#method} Method *string `field:"optional" json:"method" yaml:"method"` // The endpoint path to health check against. Defaults to `/`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#path Healthcheck#path} Path *string `field:"optional" json:"path" yaml:"path"` // Port number to connect to for the health check. Defaults to `80`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#port Healthcheck#port} Port *float64 `field:"optional" json:"port" yaml:"port"` // 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://www.terraform.io/docs/providers/cloudflare/r/healthcheck#retries Healthcheck#retries} Retries *float64 `field:"optional" json:"retries" yaml:"retries"` // If suspended, no health checks are sent to the origin. Defaults to `false`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#suspended Healthcheck#suspended} Suspended interface{} `field:"optional" json:"suspended" yaml:"suspended"` // The timeout (in seconds) before marking the health check as failed. Defaults to `5`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#timeout Healthcheck#timeout} Timeout *float64 `field:"optional" json:"timeout" yaml:"timeout"` // timeouts block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#timeouts Healthcheck#timeouts} Timeouts *HealthcheckTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"` }
type HealthcheckHeader ¶
type HealthcheckHeader struct { // The header name. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#header Healthcheck#header} Header *string `field:"required" json:"header" yaml:"header"` // A list of string values for the header. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#values Healthcheck#values} Values *[]*string `field:"required" json:"values" yaml:"values"` }
type HealthcheckHeaderList ¶
type HealthcheckHeaderList 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) // Experimental. ComputeFqn() *string Get(index *float64) HealthcheckHeaderOutputReference // 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 NewHealthcheckHeaderList ¶
func NewHealthcheckHeaderList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) HealthcheckHeaderList
type HealthcheckHeaderOutputReference ¶
type HealthcheckHeaderOutputReference 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 NewHealthcheckHeaderOutputReference ¶
func NewHealthcheckHeaderOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) HealthcheckHeaderOutputReference
type HealthcheckTimeouts ¶
type HealthcheckTimeouts struct { // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/cloudflare/r/healthcheck#create Healthcheck#create}. Create *string `field:"optional" json:"create" yaml:"create"` }
type HealthcheckTimeoutsOutputReference ¶
type HealthcheckTimeoutsOutputReference 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) Create() *string SetCreate(val *string) CreateInput() *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{}) // 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 ResetCreate() // 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 NewHealthcheckTimeoutsOutputReference ¶
func NewHealthcheckTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) HealthcheckTimeoutsOutputReference
Source Files ¶
- healthcheck.go
- healthcheck_Healthcheck.go
- healthcheck_HealthcheckConfig.go
- healthcheck_HealthcheckHeader.go
- healthcheck_HealthcheckHeaderList.go
- healthcheck_HealthcheckHeaderList__runtime_type_checks.go
- healthcheck_HealthcheckHeaderOutputReference.go
- healthcheck_HealthcheckHeaderOutputReference__runtime_type_checks.go
- healthcheck_HealthcheckTimeouts.go
- healthcheck_HealthcheckTimeoutsOutputReference.go
- healthcheck_HealthcheckTimeoutsOutputReference__runtime_type_checks.go
- healthcheck_Healthcheck__runtime_type_checks.go