permalink |
---|
/compute_health_check/ |
compute_health_check
represents the google_compute_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 withGrpcHealthCheck()
fn withGrpcHealthCheckMixin()
fn withHealthyThreshold()
fn withHttp2HealthCheck()
fn withHttp2HealthCheckMixin()
fn withHttpHealthCheck()
fn withHttpHealthCheckMixin()
fn withHttpsHealthCheck()
fn withHttpsHealthCheckMixin()
fn withLogConfig()
fn withLogConfigMixin()
fn withName()
fn withProject()
fn withSslHealthCheck()
fn withSslHealthCheckMixin()
fn withTcpHealthCheck()
fn withTcpHealthCheckMixin()
fn withTimeoutSec()
fn withTimeouts()
fn withTimeoutsMixin()
fn withUnhealthyThreshold()
obj grpc_health_check
obj http2_health_check
obj http_health_check
obj https_health_check
obj log_config
obj ssl_health_check
obj tcp_health_check
obj timeouts
new()
google.compute_health_check.new
injects a new google_compute_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_health_check.new('some_id')
You can get the reference to the id
field of the created google.compute_health_check
using the reference:
$._ref.google_compute_health_check.some_id.get('id')
This is the same as directly entering "${ google_compute_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.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.project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
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.grpc_health_check
(list[obj]
): A nested object resource Whennull
, thegrpc_health_check
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_health_check.grpc_health_check.new constructor.http2_health_check
(list[obj]
): A nested object resource Whennull
, thehttp2_health_check
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_health_check.http2_health_check.new constructor.http_health_check
(list[obj]
): A nested object resource Whennull
, thehttp_health_check
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_health_check.http_health_check.new constructor.https_health_check
(list[obj]
): A nested object resource Whennull
, thehttps_health_check
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_health_check.https_health_check.new constructor.log_config
(list[obj]
): Configure logging on this health check. Whennull
, thelog_config
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_health_check.log_config.new constructor.ssl_health_check
(list[obj]
): A nested object resource Whennull
, thessl_health_check
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_health_check.ssl_health_check.new constructor.tcp_health_check
(list[obj]
): A nested object resource Whennull
, thetcp_health_check
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_health_check.tcp_health_check.new constructor.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_health_check.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.compute_health_check.newAttrs
constructs a new object with attributes and blocks configured for the compute_health_check
Terraform resource.
Unlike google.compute_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.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.project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
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.grpc_health_check
(list[obj]
): A nested object resource Whennull
, thegrpc_health_check
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_health_check.grpc_health_check.new constructor.http2_health_check
(list[obj]
): A nested object resource Whennull
, thehttp2_health_check
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_health_check.http2_health_check.new constructor.http_health_check
(list[obj]
): A nested object resource Whennull
, thehttp_health_check
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_health_check.http_health_check.new constructor.https_health_check
(list[obj]
): A nested object resource Whennull
, thehttps_health_check
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_health_check.https_health_check.new constructor.log_config
(list[obj]
): Configure logging on this health check. Whennull
, thelog_config
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_health_check.log_config.new constructor.ssl_health_check
(list[obj]
): A nested object resource Whennull
, thessl_health_check
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_health_check.ssl_health_check.new constructor.tcp_health_check
(list[obj]
): A nested object resource Whennull
, thetcp_health_check
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_health_check.tcp_health_check.new constructor.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_health_check.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
compute_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.
withGrpcHealthCheck()
google.list[obj].withGrpcHealthCheck
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the grpc_health_check field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withGrpcHealthCheckMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thegrpc_health_check
field.
withGrpcHealthCheckMixin()
google.list[obj].withGrpcHealthCheckMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the grpc_health_check field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withGrpcHealthCheck
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thegrpc_health_check
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.
withHttp2HealthCheck()
google.list[obj].withHttp2HealthCheck
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the http2_health_check field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withHttp2HealthCheckMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttp2_health_check
field.
withHttp2HealthCheckMixin()
google.list[obj].withHttp2HealthCheckMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the http2_health_check field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withHttp2HealthCheck
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttp2_health_check
field.
withHttpHealthCheck()
google.list[obj].withHttpHealthCheck
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the http_health_check field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withHttpHealthCheckMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttp_health_check
field.
withHttpHealthCheckMixin()
google.list[obj].withHttpHealthCheckMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the http_health_check field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withHttpHealthCheck
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttp_health_check
field.
withHttpsHealthCheck()
google.list[obj].withHttpsHealthCheck
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the https_health_check field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withHttpsHealthCheckMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttps_health_check
field.
withHttpsHealthCheckMixin()
google.list[obj].withHttpsHealthCheckMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the https_health_check field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withHttpsHealthCheck
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttps_health_check
field.
withLogConfig()
google.list[obj].withLogConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the log_config field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withLogConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelog_config
field.
withLogConfigMixin()
google.list[obj].withLogConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the log_config field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withLogConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelog_config
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.
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.
withSslHealthCheck()
google.list[obj].withSslHealthCheck
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the ssl_health_check field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withSslHealthCheckMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thessl_health_check
field.
withSslHealthCheckMixin()
google.list[obj].withSslHealthCheckMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the ssl_health_check field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withSslHealthCheck
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thessl_health_check
field.
withTcpHealthCheck()
google.list[obj].withTcpHealthCheck
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the tcp_health_check field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withTcpHealthCheckMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetcp_health_check
field.
withTcpHealthCheckMixin()
google.list[obj].withTcpHealthCheckMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the tcp_health_check field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withTcpHealthCheck
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thetcp_health_check
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_health_check.grpc_health_check.new
constructs a new object with attributes and blocks configured for the grpc_health_check
Terraform sub block.
Args:
grpc_service_name
(string
): The gRPC service name for the health check. The value of grpcServiceName has the following meanings by convention:- Empty serviceName means the overall status of all services at the backend.
- Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service.
The grpcServiceName can only be ASCII. When
null
, thegrpc_service_name
field will be omitted from the resulting object. port
(number
): The port number for the health check request. Must be specified if portName and portSpecification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535. Whennull
, theport
field will be omitted from the resulting object.port_name
(string
): Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Whennull
, theport_name
field will be omitted from the resulting object.port_specification
(string
): Specifies how port is selected for health checking, can be one of the following values:
-
'USE_FIXED_PORT': The port number in 'port' is used for health checking.
-
'USE_NAMED_PORT': The 'portName' is used for health checking.
-
'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
If not specified, gRPC health check follows behavior specified in 'port' and
'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"] When null
, the port_specification
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
grpc_health_check
sub block.
new()
google.compute_health_check.http2_health_check.new
constructs a new object with attributes and blocks configured for the http2_health_check
Terraform sub block.
Args:
host
(string
): The value of the host header in the HTTP2 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.port
(number
): The TCP port number for the HTTP2 health check request. The default value is 443. Whennull
, theport
field will be omitted from the resulting object.port_name
(string
): Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Whennull
, theport_name
field will be omitted from the resulting object.port_specification
(string
): Specifies how port is selected for health checking, can be one of the following values:
-
'USE_FIXED_PORT': The port number in 'port' is used for health checking.
-
'USE_NAMED_PORT': The 'portName' is used for health checking.
-
'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
If not specified, HTTP2 health check follows behavior specified in 'port' and
'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"] When null
, the port_specification
field will be omitted from the resulting object.
proxy_header
(string
): Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"] Whennull
, theproxy_header
field will be omitted from the resulting object.request_path
(string
): The request path of the HTTP2 health check request. The default value is /. Whennull
, therequest_path
field will be omitted from the resulting object.response
(string
): The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. Whennull
, theresponse
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
http2_health_check
sub block.
new()
google.compute_health_check.http_health_check.new
constructs a new object with attributes and blocks configured for the http_health_check
Terraform sub block.
Args:
host
(string
): The value of the host header in the HTTP 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.port
(number
): The TCP port number for the HTTP health check request. The default value is 80. Whennull
, theport
field will be omitted from the resulting object.port_name
(string
): Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Whennull
, theport_name
field will be omitted from the resulting object.port_specification
(string
): Specifies how port is selected for health checking, can be one of the following values:
-
'USE_FIXED_PORT': The port number in 'port' is used for health checking.
-
'USE_NAMED_PORT': The 'portName' is used for health checking.
-
'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
If not specified, HTTP health check follows behavior specified in 'port' and
'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"] When null
, the port_specification
field will be omitted from the resulting object.
proxy_header
(string
): Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"] Whennull
, theproxy_header
field will be omitted from the resulting object.request_path
(string
): The request path of the HTTP health check request. The default value is /. Whennull
, therequest_path
field will be omitted from the resulting object.response
(string
): The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. Whennull
, theresponse
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
http_health_check
sub block.
new()
google.compute_health_check.https_health_check.new
constructs a new object with attributes and blocks configured for the https_health_check
Terraform sub block.
Args:
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.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.port_name
(string
): Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Whennull
, theport_name
field will be omitted from the resulting object.port_specification
(string
): Specifies how port is selected for health checking, can be one of the following values:
-
'USE_FIXED_PORT': The port number in 'port' is used for health checking.
-
'USE_NAMED_PORT': The 'portName' is used for health checking.
-
'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
If not specified, HTTPS health check follows behavior specified in 'port' and
'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"] When null
, the port_specification
field will be omitted from the resulting object.
proxy_header
(string
): Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"] Whennull
, theproxy_header
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.response
(string
): The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. Whennull
, theresponse
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
https_health_check
sub block.
new()
google.compute_health_check.log_config.new
constructs a new object with attributes and blocks configured for the log_config
Terraform sub block.
Args:
enable
(bool
): Indicates whether or not to export logs. This is false by default, which means no health check logging will be done. Whennull
, theenable
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
log_config
sub block.
new()
google.compute_health_check.ssl_health_check.new
constructs a new object with attributes and blocks configured for the ssl_health_check
Terraform sub block.
Args:
port
(number
): The TCP port number for the SSL health check request. The default value is 443. Whennull
, theport
field will be omitted from the resulting object.port_name
(string
): Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Whennull
, theport_name
field will be omitted from the resulting object.port_specification
(string
): Specifies how port is selected for health checking, can be one of the following values:
-
'USE_FIXED_PORT': The port number in 'port' is used for health checking.
-
'USE_NAMED_PORT': The 'portName' is used for health checking.
-
'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
If not specified, SSL health check follows behavior specified in 'port' and
'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"] When null
, the port_specification
field will be omitted from the resulting object.
proxy_header
(string
): Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"] Whennull
, theproxy_header
field will be omitted from the resulting object.request
(string
): The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. Whennull
, therequest
field will be omitted from the resulting object.response
(string
): The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. Whennull
, theresponse
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
ssl_health_check
sub block.
new()
google.compute_health_check.tcp_health_check.new
constructs a new object with attributes and blocks configured for the tcp_health_check
Terraform sub block.
Args:
port
(number
): The TCP port number for the TCP health check request. The default value is 443. Whennull
, theport
field will be omitted from the resulting object.port_name
(string
): Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Whennull
, theport_name
field will be omitted from the resulting object.port_specification
(string
): Specifies how port is selected for health checking, can be one of the following values:
-
'USE_FIXED_PORT': The port number in 'port' is used for health checking.
-
'USE_NAMED_PORT': The 'portName' is used for health checking.
-
'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
If not specified, TCP health check follows behavior specified in 'port' and
'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"] When null
, the port_specification
field will be omitted from the resulting object.
proxy_header
(string
): Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"] Whennull
, theproxy_header
field will be omitted from the resulting object.request
(string
): The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. Whennull
, therequest
field will be omitted from the resulting object.response
(string
): The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. Whennull
, theresponse
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
tcp_health_check
sub block.
new()
google.compute_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.