Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.compute.kotlin.RegionHealthCheckArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.RegionHealthCheckArgs.builder
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckGrpcHealthCheckArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckGrpcHealthCheckArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckHttp2HealthCheckArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckHttp2HealthCheckArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckHttpHealthCheckArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckHttpHealthCheckArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckHttpsHealthCheckArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckHttpsHealthCheckArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckLogConfigArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckLogConfigArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckSslHealthCheckArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckSslHealthCheckArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckTcpHealthCheckArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckTcpHealthCheckArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Health Checks determine whether instances are responsive and able to do work.
* They are an important part of a comprehensive load balancing configuration,
* as they enable monitoring instances behind load balancers.
* Health Checks poll instances at a specified interval. Instances that
* do not respond successfully to some number of probes in a row are marked
* as unhealthy. No new connections are sent to unhealthy instances,
* though existing connections will continue. The health check will
* continue to poll unhealthy instances. If an instance later responds
* successfully to some number of consecutive probes, it is marked
* healthy again and can receive new connections.
* To get more information about RegionHealthCheck, see:
* * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/regionHealthChecks)
* * How-to Guides
* * [Official Documentation](https://cloud.google.com/load-balancing/docs/health-checks)
* ## Example Usage
* ### Region Health Check Tcp
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const tcp_region_health_check = new gcp.compute.RegionHealthCheck("tcp-region-health-check", {
* name: "tcp-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* tcpHealthCheck: {
* port: 80,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* tcp_region_health_check = gcp.compute.RegionHealthCheck("tcp-region-health-check",
* name="tcp-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* tcp_health_check={
* "port": 80,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var tcp_region_health_check = new Gcp.Compute.RegionHealthCheck("tcp-region-health-check", new()
* {
* Name = "tcp-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* TcpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckTcpHealthCheckArgs
* {
* Port = 80,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "tcp-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("tcp-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* TcpHealthCheck: &compute.RegionHealthCheckTcpHealthCheckArgs{
* Port: pulumi.Int(80),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckTcpHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var tcp_region_health_check = new RegionHealthCheck("tcp-region-health-check", RegionHealthCheckArgs.builder()
* .name("tcp-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .tcpHealthCheck(RegionHealthCheckTcpHealthCheckArgs.builder()
* .port("80")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* tcp-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: tcp-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* tcpHealthCheck:
* port: '80'
* ```
*
* ### Region Health Check Tcp Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const tcp_region_health_check = new gcp.compute.RegionHealthCheck("tcp-region-health-check", {
* name: "tcp-region-health-check",
* description: "Health check via tcp",
* timeoutSec: 1,
* checkIntervalSec: 1,
* healthyThreshold: 4,
* unhealthyThreshold: 5,
* tcpHealthCheck: {
* portName: "health-check-port",
* portSpecification: "USE_NAMED_PORT",
* request: "ARE YOU HEALTHY?",
* proxyHeader: "NONE",
* response: "I AM HEALTHY",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* tcp_region_health_check = gcp.compute.RegionHealthCheck("tcp-region-health-check",
* name="tcp-region-health-check",
* description="Health check via tcp",
* timeout_sec=1,
* check_interval_sec=1,
* healthy_threshold=4,
* unhealthy_threshold=5,
* tcp_health_check={
* "port_name": "health-check-port",
* "port_specification": "USE_NAMED_PORT",
* "request": "ARE YOU HEALTHY?",
* "proxy_header": "NONE",
* "response": "I AM HEALTHY",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var tcp_region_health_check = new Gcp.Compute.RegionHealthCheck("tcp-region-health-check", new()
* {
* Name = "tcp-region-health-check",
* Description = "Health check via tcp",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HealthyThreshold = 4,
* UnhealthyThreshold = 5,
* TcpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckTcpHealthCheckArgs
* {
* PortName = "health-check-port",
* PortSpecification = "USE_NAMED_PORT",
* Request = "ARE YOU HEALTHY?",
* ProxyHeader = "NONE",
* Response = "I AM HEALTHY",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "tcp-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("tcp-region-health-check"),
* Description: pulumi.String("Health check via tcp"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HealthyThreshold: pulumi.Int(4),
* UnhealthyThreshold: pulumi.Int(5),
* TcpHealthCheck: &compute.RegionHealthCheckTcpHealthCheckArgs{
* PortName: pulumi.String("health-check-port"),
* PortSpecification: pulumi.String("USE_NAMED_PORT"),
* Request: pulumi.String("ARE YOU HEALTHY?"),
* ProxyHeader: pulumi.String("NONE"),
* Response: pulumi.String("I AM HEALTHY"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckTcpHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var tcp_region_health_check = new RegionHealthCheck("tcp-region-health-check", RegionHealthCheckArgs.builder()
* .name("tcp-region-health-check")
* .description("Health check via tcp")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .healthyThreshold(4)
* .unhealthyThreshold(5)
* .tcpHealthCheck(RegionHealthCheckTcpHealthCheckArgs.builder()
* .portName("health-check-port")
* .portSpecification("USE_NAMED_PORT")
* .request("ARE YOU HEALTHY?")
* .proxyHeader("NONE")
* .response("I AM HEALTHY")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* tcp-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: tcp-region-health-check
* description: Health check via tcp
* timeoutSec: 1
* checkIntervalSec: 1
* healthyThreshold: 4
* unhealthyThreshold: 5
* tcpHealthCheck:
* portName: health-check-port
* portSpecification: USE_NAMED_PORT
* request: ARE YOU HEALTHY?
* proxyHeader: NONE
* response: I AM HEALTHY
* ```
*
* ### Region Health Check Ssl
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const ssl_region_health_check = new gcp.compute.RegionHealthCheck("ssl-region-health-check", {
* name: "ssl-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* sslHealthCheck: {
* port: 443,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* ssl_region_health_check = gcp.compute.RegionHealthCheck("ssl-region-health-check",
* name="ssl-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* ssl_health_check={
* "port": 443,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var ssl_region_health_check = new Gcp.Compute.RegionHealthCheck("ssl-region-health-check", new()
* {
* Name = "ssl-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* SslHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckSslHealthCheckArgs
* {
* Port = 443,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "ssl-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("ssl-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* SslHealthCheck: &compute.RegionHealthCheckSslHealthCheckArgs{
* Port: pulumi.Int(443),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckSslHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var ssl_region_health_check = new RegionHealthCheck("ssl-region-health-check", RegionHealthCheckArgs.builder()
* .name("ssl-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .sslHealthCheck(RegionHealthCheckSslHealthCheckArgs.builder()
* .port("443")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* ssl-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: ssl-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* sslHealthCheck:
* port: '443'
* ```
*
* ### Region Health Check Ssl Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const ssl_region_health_check = new gcp.compute.RegionHealthCheck("ssl-region-health-check", {
* name: "ssl-region-health-check",
* description: "Health check via ssl",
* timeoutSec: 1,
* checkIntervalSec: 1,
* healthyThreshold: 4,
* unhealthyThreshold: 5,
* sslHealthCheck: {
* portName: "health-check-port",
* portSpecification: "USE_NAMED_PORT",
* request: "ARE YOU HEALTHY?",
* proxyHeader: "NONE",
* response: "I AM HEALTHY",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* ssl_region_health_check = gcp.compute.RegionHealthCheck("ssl-region-health-check",
* name="ssl-region-health-check",
* description="Health check via ssl",
* timeout_sec=1,
* check_interval_sec=1,
* healthy_threshold=4,
* unhealthy_threshold=5,
* ssl_health_check={
* "port_name": "health-check-port",
* "port_specification": "USE_NAMED_PORT",
* "request": "ARE YOU HEALTHY?",
* "proxy_header": "NONE",
* "response": "I AM HEALTHY",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var ssl_region_health_check = new Gcp.Compute.RegionHealthCheck("ssl-region-health-check", new()
* {
* Name = "ssl-region-health-check",
* Description = "Health check via ssl",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HealthyThreshold = 4,
* UnhealthyThreshold = 5,
* SslHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckSslHealthCheckArgs
* {
* PortName = "health-check-port",
* PortSpecification = "USE_NAMED_PORT",
* Request = "ARE YOU HEALTHY?",
* ProxyHeader = "NONE",
* Response = "I AM HEALTHY",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "ssl-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("ssl-region-health-check"),
* Description: pulumi.String("Health check via ssl"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HealthyThreshold: pulumi.Int(4),
* UnhealthyThreshold: pulumi.Int(5),
* SslHealthCheck: &compute.RegionHealthCheckSslHealthCheckArgs{
* PortName: pulumi.String("health-check-port"),
* PortSpecification: pulumi.String("USE_NAMED_PORT"),
* Request: pulumi.String("ARE YOU HEALTHY?"),
* ProxyHeader: pulumi.String("NONE"),
* Response: pulumi.String("I AM HEALTHY"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckSslHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var ssl_region_health_check = new RegionHealthCheck("ssl-region-health-check", RegionHealthCheckArgs.builder()
* .name("ssl-region-health-check")
* .description("Health check via ssl")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .healthyThreshold(4)
* .unhealthyThreshold(5)
* .sslHealthCheck(RegionHealthCheckSslHealthCheckArgs.builder()
* .portName("health-check-port")
* .portSpecification("USE_NAMED_PORT")
* .request("ARE YOU HEALTHY?")
* .proxyHeader("NONE")
* .response("I AM HEALTHY")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* ssl-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: ssl-region-health-check
* description: Health check via ssl
* timeoutSec: 1
* checkIntervalSec: 1
* healthyThreshold: 4
* unhealthyThreshold: 5
* sslHealthCheck:
* portName: health-check-port
* portSpecification: USE_NAMED_PORT
* request: ARE YOU HEALTHY?
* proxyHeader: NONE
* response: I AM HEALTHY
* ```
*
* ### Region Health Check Http
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const http_region_health_check = new gcp.compute.RegionHealthCheck("http-region-health-check", {
* name: "http-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* httpHealthCheck: {
* port: 80,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* http_region_health_check = gcp.compute.RegionHealthCheck("http-region-health-check",
* name="http-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* http_health_check={
* "port": 80,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var http_region_health_check = new Gcp.Compute.RegionHealthCheck("http-region-health-check", new()
* {
* Name = "http-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
* {
* Port = 80,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "http-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("http-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
* Port: pulumi.Int(80),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var http_region_health_check = new RegionHealthCheck("http-region-health-check", RegionHealthCheckArgs.builder()
* .name("http-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
* .port("80")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* http-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: http-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* httpHealthCheck:
* port: '80'
* ```
*
* ### Region Health Check Http Logs
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const http_region_health_check = new gcp.compute.RegionHealthCheck("http-region-health-check", {
* name: "http-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* httpHealthCheck: {
* port: 80,
* },
* logConfig: {
* enable: true,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* http_region_health_check = gcp.compute.RegionHealthCheck("http-region-health-check",
* name="http-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* http_health_check={
* "port": 80,
* },
* log_config={
* "enable": True,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var http_region_health_check = new Gcp.Compute.RegionHealthCheck("http-region-health-check", new()
* {
* Name = "http-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
* {
* Port = 80,
* },
* LogConfig = new Gcp.Compute.Inputs.RegionHealthCheckLogConfigArgs
* {
* Enable = true,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "http-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("http-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
* Port: pulumi.Int(80),
* },
* LogConfig: &compute.RegionHealthCheckLogConfigArgs{
* Enable: pulumi.Bool(true),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckLogConfigArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var http_region_health_check = new RegionHealthCheck("http-region-health-check", RegionHealthCheckArgs.builder()
* .name("http-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
* .port("80")
* .build())
* .logConfig(RegionHealthCheckLogConfigArgs.builder()
* .enable(true)
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* http-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: http-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* httpHealthCheck:
* port: '80'
* logConfig:
* enable: true
* ```
*
* ### Region Health Check Http Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const http_region_health_check = new gcp.compute.RegionHealthCheck("http-region-health-check", {
* name: "http-region-health-check",
* description: "Health check via http",
* timeoutSec: 1,
* checkIntervalSec: 1,
* healthyThreshold: 4,
* unhealthyThreshold: 5,
* httpHealthCheck: {
* portName: "health-check-port",
* portSpecification: "USE_NAMED_PORT",
* host: "1.2.3.4",
* requestPath: "/mypath",
* proxyHeader: "NONE",
* response: "I AM HEALTHY",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* http_region_health_check = gcp.compute.RegionHealthCheck("http-region-health-check",
* name="http-region-health-check",
* description="Health check via http",
* timeout_sec=1,
* check_interval_sec=1,
* healthy_threshold=4,
* unhealthy_threshold=5,
* http_health_check={
* "port_name": "health-check-port",
* "port_specification": "USE_NAMED_PORT",
* "host": "1.2.3.4",
* "request_path": "/mypath",
* "proxy_header": "NONE",
* "response": "I AM HEALTHY",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var http_region_health_check = new Gcp.Compute.RegionHealthCheck("http-region-health-check", new()
* {
* Name = "http-region-health-check",
* Description = "Health check via http",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HealthyThreshold = 4,
* UnhealthyThreshold = 5,
* HttpHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpHealthCheckArgs
* {
* PortName = "health-check-port",
* PortSpecification = "USE_NAMED_PORT",
* Host = "1.2.3.4",
* RequestPath = "/mypath",
* ProxyHeader = "NONE",
* Response = "I AM HEALTHY",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "http-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("http-region-health-check"),
* Description: pulumi.String("Health check via http"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HealthyThreshold: pulumi.Int(4),
* UnhealthyThreshold: pulumi.Int(5),
* HttpHealthCheck: &compute.RegionHealthCheckHttpHealthCheckArgs{
* PortName: pulumi.String("health-check-port"),
* PortSpecification: pulumi.String("USE_NAMED_PORT"),
* Host: pulumi.String("1.2.3.4"),
* RequestPath: pulumi.String("/mypath"),
* ProxyHeader: pulumi.String("NONE"),
* Response: pulumi.String("I AM HEALTHY"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var http_region_health_check = new RegionHealthCheck("http-region-health-check", RegionHealthCheckArgs.builder()
* .name("http-region-health-check")
* .description("Health check via http")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .healthyThreshold(4)
* .unhealthyThreshold(5)
* .httpHealthCheck(RegionHealthCheckHttpHealthCheckArgs.builder()
* .portName("health-check-port")
* .portSpecification("USE_NAMED_PORT")
* .host("1.2.3.4")
* .requestPath("/mypath")
* .proxyHeader("NONE")
* .response("I AM HEALTHY")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* http-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: http-region-health-check
* description: Health check via http
* timeoutSec: 1
* checkIntervalSec: 1
* healthyThreshold: 4
* unhealthyThreshold: 5
* httpHealthCheck:
* portName: health-check-port
* portSpecification: USE_NAMED_PORT
* host: 1.2.3.4
* requestPath: /mypath
* proxyHeader: NONE
* response: I AM HEALTHY
* ```
*
* ### Region Health Check Https
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const https_region_health_check = new gcp.compute.RegionHealthCheck("https-region-health-check", {
* name: "https-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* httpsHealthCheck: {
* port: 443,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* https_region_health_check = gcp.compute.RegionHealthCheck("https-region-health-check",
* name="https-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* https_health_check={
* "port": 443,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var https_region_health_check = new Gcp.Compute.RegionHealthCheck("https-region-health-check", new()
* {
* Name = "https-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HttpsHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpsHealthCheckArgs
* {
* Port = 443,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "https-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("https-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HttpsHealthCheck: &compute.RegionHealthCheckHttpsHealthCheckArgs{
* Port: pulumi.Int(443),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpsHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var https_region_health_check = new RegionHealthCheck("https-region-health-check", RegionHealthCheckArgs.builder()
* .name("https-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .httpsHealthCheck(RegionHealthCheckHttpsHealthCheckArgs.builder()
* .port("443")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* https-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: https-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* httpsHealthCheck:
* port: '443'
* ```
*
* ### Region Health Check Https Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const https_region_health_check = new gcp.compute.RegionHealthCheck("https-region-health-check", {
* name: "https-region-health-check",
* description: "Health check via https",
* timeoutSec: 1,
* checkIntervalSec: 1,
* healthyThreshold: 4,
* unhealthyThreshold: 5,
* httpsHealthCheck: {
* portName: "health-check-port",
* portSpecification: "USE_NAMED_PORT",
* host: "1.2.3.4",
* requestPath: "/mypath",
* proxyHeader: "NONE",
* response: "I AM HEALTHY",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* https_region_health_check = gcp.compute.RegionHealthCheck("https-region-health-check",
* name="https-region-health-check",
* description="Health check via https",
* timeout_sec=1,
* check_interval_sec=1,
* healthy_threshold=4,
* unhealthy_threshold=5,
* https_health_check={
* "port_name": "health-check-port",
* "port_specification": "USE_NAMED_PORT",
* "host": "1.2.3.4",
* "request_path": "/mypath",
* "proxy_header": "NONE",
* "response": "I AM HEALTHY",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var https_region_health_check = new Gcp.Compute.RegionHealthCheck("https-region-health-check", new()
* {
* Name = "https-region-health-check",
* Description = "Health check via https",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HealthyThreshold = 4,
* UnhealthyThreshold = 5,
* HttpsHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttpsHealthCheckArgs
* {
* PortName = "health-check-port",
* PortSpecification = "USE_NAMED_PORT",
* Host = "1.2.3.4",
* RequestPath = "/mypath",
* ProxyHeader = "NONE",
* Response = "I AM HEALTHY",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "https-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("https-region-health-check"),
* Description: pulumi.String("Health check via https"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HealthyThreshold: pulumi.Int(4),
* UnhealthyThreshold: pulumi.Int(5),
* HttpsHealthCheck: &compute.RegionHealthCheckHttpsHealthCheckArgs{
* PortName: pulumi.String("health-check-port"),
* PortSpecification: pulumi.String("USE_NAMED_PORT"),
* Host: pulumi.String("1.2.3.4"),
* RequestPath: pulumi.String("/mypath"),
* ProxyHeader: pulumi.String("NONE"),
* Response: pulumi.String("I AM HEALTHY"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttpsHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var https_region_health_check = new RegionHealthCheck("https-region-health-check", RegionHealthCheckArgs.builder()
* .name("https-region-health-check")
* .description("Health check via https")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .healthyThreshold(4)
* .unhealthyThreshold(5)
* .httpsHealthCheck(RegionHealthCheckHttpsHealthCheckArgs.builder()
* .portName("health-check-port")
* .portSpecification("USE_NAMED_PORT")
* .host("1.2.3.4")
* .requestPath("/mypath")
* .proxyHeader("NONE")
* .response("I AM HEALTHY")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* https-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: https-region-health-check
* description: Health check via https
* timeoutSec: 1
* checkIntervalSec: 1
* healthyThreshold: 4
* unhealthyThreshold: 5
* httpsHealthCheck:
* portName: health-check-port
* portSpecification: USE_NAMED_PORT
* host: 1.2.3.4
* requestPath: /mypath
* proxyHeader: NONE
* response: I AM HEALTHY
* ```
*
* ### Region Health Check Http2
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const http2_region_health_check = new gcp.compute.RegionHealthCheck("http2-region-health-check", {
* name: "http2-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* http2HealthCheck: {
* port: 443,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* http2_region_health_check = gcp.compute.RegionHealthCheck("http2-region-health-check",
* name="http2-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* http2_health_check={
* "port": 443,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var http2_region_health_check = new Gcp.Compute.RegionHealthCheck("http2-region-health-check", new()
* {
* Name = "http2-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* Http2HealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttp2HealthCheckArgs
* {
* Port = 443,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "http2-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("http2-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* Http2HealthCheck: &compute.RegionHealthCheckHttp2HealthCheckArgs{
* Port: pulumi.Int(443),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttp2HealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var http2_region_health_check = new RegionHealthCheck("http2-region-health-check", RegionHealthCheckArgs.builder()
* .name("http2-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .http2HealthCheck(RegionHealthCheckHttp2HealthCheckArgs.builder()
* .port("443")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* http2-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: http2-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* http2HealthCheck:
* port: '443'
* ```
*
* ### Region Health Check Http2 Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const http2_region_health_check = new gcp.compute.RegionHealthCheck("http2-region-health-check", {
* name: "http2-region-health-check",
* description: "Health check via http2",
* timeoutSec: 1,
* checkIntervalSec: 1,
* healthyThreshold: 4,
* unhealthyThreshold: 5,
* http2HealthCheck: {
* portName: "health-check-port",
* portSpecification: "USE_NAMED_PORT",
* host: "1.2.3.4",
* requestPath: "/mypath",
* proxyHeader: "NONE",
* response: "I AM HEALTHY",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* http2_region_health_check = gcp.compute.RegionHealthCheck("http2-region-health-check",
* name="http2-region-health-check",
* description="Health check via http2",
* timeout_sec=1,
* check_interval_sec=1,
* healthy_threshold=4,
* unhealthy_threshold=5,
* http2_health_check={
* "port_name": "health-check-port",
* "port_specification": "USE_NAMED_PORT",
* "host": "1.2.3.4",
* "request_path": "/mypath",
* "proxy_header": "NONE",
* "response": "I AM HEALTHY",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var http2_region_health_check = new Gcp.Compute.RegionHealthCheck("http2-region-health-check", new()
* {
* Name = "http2-region-health-check",
* Description = "Health check via http2",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* HealthyThreshold = 4,
* UnhealthyThreshold = 5,
* Http2HealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckHttp2HealthCheckArgs
* {
* PortName = "health-check-port",
* PortSpecification = "USE_NAMED_PORT",
* Host = "1.2.3.4",
* RequestPath = "/mypath",
* ProxyHeader = "NONE",
* Response = "I AM HEALTHY",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "http2-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("http2-region-health-check"),
* Description: pulumi.String("Health check via http2"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* HealthyThreshold: pulumi.Int(4),
* UnhealthyThreshold: pulumi.Int(5),
* Http2HealthCheck: &compute.RegionHealthCheckHttp2HealthCheckArgs{
* PortName: pulumi.String("health-check-port"),
* PortSpecification: pulumi.String("USE_NAMED_PORT"),
* Host: pulumi.String("1.2.3.4"),
* RequestPath: pulumi.String("/mypath"),
* ProxyHeader: pulumi.String("NONE"),
* Response: pulumi.String("I AM HEALTHY"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckHttp2HealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var http2_region_health_check = new RegionHealthCheck("http2-region-health-check", RegionHealthCheckArgs.builder()
* .name("http2-region-health-check")
* .description("Health check via http2")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .healthyThreshold(4)
* .unhealthyThreshold(5)
* .http2HealthCheck(RegionHealthCheckHttp2HealthCheckArgs.builder()
* .portName("health-check-port")
* .portSpecification("USE_NAMED_PORT")
* .host("1.2.3.4")
* .requestPath("/mypath")
* .proxyHeader("NONE")
* .response("I AM HEALTHY")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* http2-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: http2-region-health-check
* description: Health check via http2
* timeoutSec: 1
* checkIntervalSec: 1
* healthyThreshold: 4
* unhealthyThreshold: 5
* http2HealthCheck:
* portName: health-check-port
* portSpecification: USE_NAMED_PORT
* host: 1.2.3.4
* requestPath: /mypath
* proxyHeader: NONE
* response: I AM HEALTHY
* ```
*
* ### Region Health Check Grpc
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const grpc_region_health_check = new gcp.compute.RegionHealthCheck("grpc-region-health-check", {
* name: "grpc-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* grpcHealthCheck: {
* port: 443,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* grpc_region_health_check = gcp.compute.RegionHealthCheck("grpc-region-health-check",
* name="grpc-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* grpc_health_check={
* "port": 443,
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var grpc_region_health_check = new Gcp.Compute.RegionHealthCheck("grpc-region-health-check", new()
* {
* Name = "grpc-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* GrpcHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckGrpcHealthCheckArgs
* {
* Port = 443,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "grpc-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("grpc-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* GrpcHealthCheck: &compute.RegionHealthCheckGrpcHealthCheckArgs{
* Port: pulumi.Int(443),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckGrpcHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var grpc_region_health_check = new RegionHealthCheck("grpc-region-health-check", RegionHealthCheckArgs.builder()
* .name("grpc-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .grpcHealthCheck(RegionHealthCheckGrpcHealthCheckArgs.builder()
* .port("443")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* grpc-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: grpc-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* grpcHealthCheck:
* port: '443'
* ```
*
* ### Region Health Check Grpc Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const grpc_region_health_check = new gcp.compute.RegionHealthCheck("grpc-region-health-check", {
* name: "grpc-region-health-check",
* timeoutSec: 1,
* checkIntervalSec: 1,
* grpcHealthCheck: {
* portName: "health-check-port",
* portSpecification: "USE_NAMED_PORT",
* grpcServiceName: "testservice",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* grpc_region_health_check = gcp.compute.RegionHealthCheck("grpc-region-health-check",
* name="grpc-region-health-check",
* timeout_sec=1,
* check_interval_sec=1,
* grpc_health_check={
* "port_name": "health-check-port",
* "port_specification": "USE_NAMED_PORT",
* "grpc_service_name": "testservice",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var grpc_region_health_check = new Gcp.Compute.RegionHealthCheck("grpc-region-health-check", new()
* {
* Name = "grpc-region-health-check",
* TimeoutSec = 1,
* CheckIntervalSec = 1,
* GrpcHealthCheck = new Gcp.Compute.Inputs.RegionHealthCheckGrpcHealthCheckArgs
* {
* PortName = "health-check-port",
* PortSpecification = "USE_NAMED_PORT",
* GrpcServiceName = "testservice",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionHealthCheck(ctx, "grpc-region-health-check", &compute.RegionHealthCheckArgs{
* Name: pulumi.String("grpc-region-health-check"),
* TimeoutSec: pulumi.Int(1),
* CheckIntervalSec: pulumi.Int(1),
* GrpcHealthCheck: &compute.RegionHealthCheckGrpcHealthCheckArgs{
* PortName: pulumi.String("health-check-port"),
* PortSpecification: pulumi.String("USE_NAMED_PORT"),
* GrpcServiceName: pulumi.String("testservice"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionHealthCheck;
* import com.pulumi.gcp.compute.RegionHealthCheckArgs;
* import com.pulumi.gcp.compute.inputs.RegionHealthCheckGrpcHealthCheckArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var grpc_region_health_check = new RegionHealthCheck("grpc-region-health-check", RegionHealthCheckArgs.builder()
* .name("grpc-region-health-check")
* .timeoutSec(1)
* .checkIntervalSec(1)
* .grpcHealthCheck(RegionHealthCheckGrpcHealthCheckArgs.builder()
* .portName("health-check-port")
* .portSpecification("USE_NAMED_PORT")
* .grpcServiceName("testservice")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* grpc-region-health-check:
* type: gcp:compute:RegionHealthCheck
* properties:
* name: grpc-region-health-check
* timeoutSec: 1
* checkIntervalSec: 1
* grpcHealthCheck:
* portName: health-check-port
* portSpecification: USE_NAMED_PORT
* grpcServiceName: testservice
* ```
*
* ## Import
* RegionHealthCheck can be imported using any of these accepted formats:
* * `projects/{{project}}/regions/{{region}}/healthChecks/{{name}}`
* * `{{project}}/{{region}}/{{name}}`
* * `{{region}}/{{name}}`
* * `{{name}}`
* When using the `pulumi import` command, RegionHealthCheck can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:compute/regionHealthCheck:RegionHealthCheck default projects/{{project}}/regions/{{region}}/healthChecks/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionHealthCheck:RegionHealthCheck default {{project}}/{{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionHealthCheck:RegionHealthCheck default {{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionHealthCheck:RegionHealthCheck default {{name}}
* ```
* @property checkIntervalSec How often (in seconds) to send a health check. The default value is 5
* seconds.
* @property description An optional description of this resource. Provide this property when
* you create the resource.
* @property grpcHealthCheck A nested object resource
* Structure is documented below.
* @property healthyThreshold A so-far unhealthy instance will be marked healthy after this many
* consecutive successes. The default value is 2.
* @property http2HealthCheck A nested object resource
* Structure is documented below.
* @property httpHealthCheck A nested object resource
* Structure is documented below.
* @property httpsHealthCheck A nested object resource
* Structure is documented below.
* @property logConfig Configure logging on this health check.
* Structure is documented below.
* @property name 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.
* - - -
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property region The Region in which the created health check should reside.
* If it is not provided, the provider region is used.
* @property sslHealthCheck A nested object resource
* Structure is documented below.
* @property tcpHealthCheck A nested object resource
* Structure is documented below.
* @property timeoutSec 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.
* @property unhealthyThreshold A so-far healthy instance will be marked unhealthy after this many
* consecutive failures. The default value is 2.
*/
public data class RegionHealthCheckArgs(
public val checkIntervalSec: Output? = null,
public val description: Output? = null,
public val grpcHealthCheck: Output? = null,
public val healthyThreshold: Output? = null,
public val http2HealthCheck: Output? = null,
public val httpHealthCheck: Output? = null,
public val httpsHealthCheck: Output? = null,
public val logConfig: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val region: Output? = null,
public val sslHealthCheck: Output? = null,
public val tcpHealthCheck: Output? = null,
public val timeoutSec: Output? = null,
public val unhealthyThreshold: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.RegionHealthCheckArgs =
com.pulumi.gcp.compute.RegionHealthCheckArgs.builder()
.checkIntervalSec(checkIntervalSec?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.grpcHealthCheck(grpcHealthCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.healthyThreshold(healthyThreshold?.applyValue({ args0 -> args0 }))
.http2HealthCheck(http2HealthCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.httpHealthCheck(httpHealthCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.httpsHealthCheck(httpsHealthCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.logConfig(logConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.region(region?.applyValue({ args0 -> args0 }))
.sslHealthCheck(sslHealthCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tcpHealthCheck(tcpHealthCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.timeoutSec(timeoutSec?.applyValue({ args0 -> args0 }))
.unhealthyThreshold(unhealthyThreshold?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionHealthCheckArgs].
*/
@PulumiTagMarker
public class RegionHealthCheckArgsBuilder internal constructor() {
private var checkIntervalSec: Output? = null
private var description: Output? = null
private var grpcHealthCheck: Output? = null
private var healthyThreshold: Output? = null
private var http2HealthCheck: Output? = null
private var httpHealthCheck: Output? = null
private var httpsHealthCheck: Output? = null
private var logConfig: Output? = null
private var name: Output? = null
private var project: Output? = null
private var region: Output? = null
private var sslHealthCheck: Output? = null
private var tcpHealthCheck: Output? = null
private var timeoutSec: Output? = null
private var unhealthyThreshold: Output? = null
/**
* @param value How often (in seconds) to send a health check. The default value is 5
* seconds.
*/
@JvmName("hndjtwfohwnsmagn")
public suspend fun checkIntervalSec(`value`: Output) {
this.checkIntervalSec = value
}
/**
* @param value An optional description of this resource. Provide this property when
* you create the resource.
*/
@JvmName("mlnbtjwvmnijjwgv")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("brscwnhdlceybrdn")
public suspend fun grpcHealthCheck(`value`: Output) {
this.grpcHealthCheck = value
}
/**
* @param value A so-far unhealthy instance will be marked healthy after this many
* consecutive successes. The default value is 2.
*/
@JvmName("gsvkhsqrdvuqiabv")
public suspend fun healthyThreshold(`value`: Output) {
this.healthyThreshold = value
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("yhohtyqdfbemhecw")
public suspend fun http2HealthCheck(`value`: Output) {
this.http2HealthCheck = value
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("vqnbpsrsolbmptpk")
public suspend fun httpHealthCheck(`value`: Output) {
this.httpHealthCheck = value
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("ajqintuuynatjqom")
public suspend fun httpsHealthCheck(`value`: Output) {
this.httpsHealthCheck = value
}
/**
* @param value Configure logging on this health check.
* Structure is documented below.
*/
@JvmName("vfoissrtdagykksm")
public suspend fun logConfig(`value`: Output) {
this.logConfig = value
}
/**
* @param value 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.
* - - -
*/
@JvmName("ldlyvfuoubmlpxkb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("ryyapycjdqfthifj")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The Region in which the created health check should reside.
* If it is not provided, the provider region is used.
*/
@JvmName("yccrijpydtknapxw")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("myjvwslwutuyyfbs")
public suspend fun sslHealthCheck(`value`: Output) {
this.sslHealthCheck = value
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("lutxqgwtxsvcymcy")
public suspend fun tcpHealthCheck(`value`: Output) {
this.tcpHealthCheck = value
}
/**
* @param value 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.
*/
@JvmName("aswgneeluortdccv")
public suspend fun timeoutSec(`value`: Output) {
this.timeoutSec = value
}
/**
* @param value A so-far healthy instance will be marked unhealthy after this many
* consecutive failures. The default value is 2.
*/
@JvmName("yefqnvdnwoyaiiks")
public suspend fun unhealthyThreshold(`value`: Output) {
this.unhealthyThreshold = value
}
/**
* @param value How often (in seconds) to send a health check. The default value is 5
* seconds.
*/
@JvmName("japbcbsbvhypjssm")
public suspend fun checkIntervalSec(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.checkIntervalSec = mapped
}
/**
* @param value An optional description of this resource. Provide this property when
* you create the resource.
*/
@JvmName("bjwiicismriavhpj")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("weejkrluobqtnres")
public suspend fun grpcHealthCheck(`value`: RegionHealthCheckGrpcHealthCheckArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.grpcHealthCheck = mapped
}
/**
* @param argument A nested object resource
* Structure is documented below.
*/
@JvmName("gbhuftxfkvpjjxit")
public suspend fun grpcHealthCheck(argument: suspend RegionHealthCheckGrpcHealthCheckArgsBuilder.() -> Unit) {
val toBeMapped = RegionHealthCheckGrpcHealthCheckArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.grpcHealthCheck = mapped
}
/**
* @param value A so-far unhealthy instance will be marked healthy after this many
* consecutive successes. The default value is 2.
*/
@JvmName("pdwlexhcdqjfujjg")
public suspend fun healthyThreshold(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.healthyThreshold = mapped
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("rvmdcllrueqlyjql")
public suspend fun http2HealthCheck(`value`: RegionHealthCheckHttp2HealthCheckArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.http2HealthCheck = mapped
}
/**
* @param argument A nested object resource
* Structure is documented below.
*/
@JvmName("xgikxnvpxgiekany")
public suspend fun http2HealthCheck(argument: suspend RegionHealthCheckHttp2HealthCheckArgsBuilder.() -> Unit) {
val toBeMapped = RegionHealthCheckHttp2HealthCheckArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.http2HealthCheck = mapped
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("bjocprpmkyktpqgh")
public suspend fun httpHealthCheck(`value`: RegionHealthCheckHttpHealthCheckArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpHealthCheck = mapped
}
/**
* @param argument A nested object resource
* Structure is documented below.
*/
@JvmName("drlffyhtnihlewve")
public suspend fun httpHealthCheck(argument: suspend RegionHealthCheckHttpHealthCheckArgsBuilder.() -> Unit) {
val toBeMapped = RegionHealthCheckHttpHealthCheckArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.httpHealthCheck = mapped
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("jdudexpuuobfvgsl")
public suspend fun httpsHealthCheck(`value`: RegionHealthCheckHttpsHealthCheckArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpsHealthCheck = mapped
}
/**
* @param argument A nested object resource
* Structure is documented below.
*/
@JvmName("mbdltmnvvylepuie")
public suspend fun httpsHealthCheck(argument: suspend RegionHealthCheckHttpsHealthCheckArgsBuilder.() -> Unit) {
val toBeMapped = RegionHealthCheckHttpsHealthCheckArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.httpsHealthCheck = mapped
}
/**
* @param value Configure logging on this health check.
* Structure is documented below.
*/
@JvmName("xiwultwqoqimaplc")
public suspend fun logConfig(`value`: RegionHealthCheckLogConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logConfig = mapped
}
/**
* @param argument Configure logging on this health check.
* Structure is documented below.
*/
@JvmName("qyjtbdtepywuigvi")
public suspend fun logConfig(argument: suspend RegionHealthCheckLogConfigArgsBuilder.() -> Unit) {
val toBeMapped = RegionHealthCheckLogConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.logConfig = mapped
}
/**
* @param value 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.
* - - -
*/
@JvmName("qrfroxbmypovyqwh")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("pokqenxjjhadkeuc")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value The Region in which the created health check should reside.
* If it is not provided, the provider region is used.
*/
@JvmName("hxuelhvayuumsyfu")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("xcmnvrejhqyjywgp")
public suspend fun sslHealthCheck(`value`: RegionHealthCheckSslHealthCheckArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sslHealthCheck = mapped
}
/**
* @param argument A nested object resource
* Structure is documented below.
*/
@JvmName("jienwjfcltfdrpfg")
public suspend fun sslHealthCheck(argument: suspend RegionHealthCheckSslHealthCheckArgsBuilder.() -> Unit) {
val toBeMapped = RegionHealthCheckSslHealthCheckArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sslHealthCheck = mapped
}
/**
* @param value A nested object resource
* Structure is documented below.
*/
@JvmName("ihsftmqgaiqsabyi")
public suspend fun tcpHealthCheck(`value`: RegionHealthCheckTcpHealthCheckArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tcpHealthCheck = mapped
}
/**
* @param argument A nested object resource
* Structure is documented below.
*/
@JvmName("quuerwuixmfnxrrc")
public suspend fun tcpHealthCheck(argument: suspend RegionHealthCheckTcpHealthCheckArgsBuilder.() -> Unit) {
val toBeMapped = RegionHealthCheckTcpHealthCheckArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.tcpHealthCheck = mapped
}
/**
* @param value 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.
*/
@JvmName("apahcnqqwjnlayqf")
public suspend fun timeoutSec(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeoutSec = mapped
}
/**
* @param value A so-far healthy instance will be marked unhealthy after this many
* consecutive failures. The default value is 2.
*/
@JvmName("otycfirgnagjhpfi")
public suspend fun unhealthyThreshold(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unhealthyThreshold = mapped
}
internal fun build(): RegionHealthCheckArgs = RegionHealthCheckArgs(
checkIntervalSec = checkIntervalSec,
description = description,
grpcHealthCheck = grpcHealthCheck,
healthyThreshold = healthyThreshold,
http2HealthCheck = http2HealthCheck,
httpHealthCheck = httpHealthCheck,
httpsHealthCheck = httpsHealthCheck,
logConfig = logConfig,
name = name,
project = project,
region = region,
sslHealthCheck = sslHealthCheck,
tcpHealthCheck = tcpHealthCheck,
timeoutSec = timeoutSec,
unhealthyThreshold = unhealthyThreshold,
)
}