permalink |
---|
/compute_https_health_check/ |
compute_https_health_check
represents the google_compute_https_health_check
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withCheckIntervalSec()
fn withDescription()
fn withHealthyThreshold()
fn withHost()
fn withName()
fn withPort()
fn withProject()
fn withRequestPath()
fn withTimeoutSec()
fn withTimeouts()
fn withTimeoutsMixin()
fn withUnhealthyThreshold()
obj timeouts
new()
google.compute_https_health_check.new
injects a new google_compute_https_health_check
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.compute_https_health_check.new('some_id')
You can get the reference to the id
field of the created google.compute_https_health_check
using the reference:
$._ref.google_compute_https_health_check.some_id.get('id')
This is the same as directly entering "${ google_compute_https_health_check.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.check_interval_sec
(number
): How often (in seconds) to send a health check. The default value is 5 seconds. Whennull
, thecheck_interval_sec
field will be omitted from the resulting object.description
(string
): An optional description of this resource. Provide this property when you create the resource. Whennull
, thedescription
field will be omitted from the resulting object.healthy_threshold
(number
): A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2. Whennull
, thehealthy_threshold
field will be omitted from the resulting object.host
(string
): The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. Whennull
, thehost
field will be omitted from the resulting object.name
(string
): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression 'a-z?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.port
(number
): The TCP port number for the HTTPS health check request. The default value is 443. Whennull
, theport
field will be omitted from the resulting object.project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
field will be omitted from the resulting object.request_path
(string
): The request path of the HTTPS health check request. The default value is /. Whennull
, therequest_path
field will be omitted from the resulting object.timeout_sec
(number
): How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. Whennull
, thetimeout_sec
field will be omitted from the resulting object.unhealthy_threshold
(number
): A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. Whennull
, theunhealthy_threshold
field will be omitted from the resulting object.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_https_health_check.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.compute_https_health_check.newAttrs
constructs a new object with attributes and blocks configured for the compute_https_health_check
Terraform resource.
Unlike google.compute_https_health_check.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
check_interval_sec
(number
): How often (in seconds) to send a health check. The default value is 5 seconds. Whennull
, thecheck_interval_sec
field will be omitted from the resulting object.description
(string
): An optional description of this resource. Provide this property when you create the resource. Whennull
, thedescription
field will be omitted from the resulting object.healthy_threshold
(number
): A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2. Whennull
, thehealthy_threshold
field will be omitted from the resulting object.host
(string
): The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. Whennull
, thehost
field will be omitted from the resulting object.name
(string
): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression 'a-z?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.port
(number
): The TCP port number for the HTTPS health check request. The default value is 443. Whennull
, theport
field will be omitted from the resulting object.project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
field will be omitted from the resulting object.request_path
(string
): The request path of the HTTPS health check request. The default value is /. Whennull
, therequest_path
field will be omitted from the resulting object.timeout_sec
(number
): How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. Whennull
, thetimeout_sec
field will be omitted from the resulting object.unhealthy_threshold
(number
): A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. Whennull
, theunhealthy_threshold
field will be omitted from the resulting object.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_https_health_check.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
compute_https_health_check
resource into the root Terraform configuration.
withCheckIntervalSec()
google.number.withCheckIntervalSec
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the check_interval_sec field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for thecheck_interval_sec
field.
withDescription()
google.string.withDescription
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the description field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedescription
field.
withHealthyThreshold()
google.number.withHealthyThreshold
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the healthy_threshold field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for thehealthy_threshold
field.
withHost()
google.string.withHost
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the host field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thehost
field.
withName()
google.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withPort()
google.number.withPort
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the port field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for theport
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withRequestPath()
google.string.withRequestPath
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the request_path field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for therequest_path
field.
withTimeoutSec()
google.number.withTimeoutSec
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the timeout_sec field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for thetimeout_sec
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withUnhealthyThreshold()
google.number.withUnhealthyThreshold
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the unhealthy_threshold field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for theunhealthy_threshold
field.
new()
google.compute_https_health_check.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.