Class ComputeTargetPool.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static ComputeTargetPool.Builder create​(software.constructs.Construct scope,
                                                       String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of ComputeTargetPool.Builder.
      • connection

        @Stability(Experimental)
        public ComputeTargetPool.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeTargetPool.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ComputeTargetPool.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public ComputeTargetPool.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public ComputeTargetPool.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public ComputeTargetPool.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public ComputeTargetPool.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public ComputeTargetPool.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public ComputeTargetPool.Builder name​(String name)
        A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#name ComputeTargetPool#name}

        Parameters:
        name - A unique name for the resource, required by GCE. Changing this forces a new resource to be created. This parameter is required.
        Returns:
        this
      • backupPool

        @Stability(Stable)
        public ComputeTargetPool.Builder backupPool​(String backupPool)
        URL to the backup target pool. Must also set failover_ratio.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#backup_pool ComputeTargetPool#backup_pool}

        Parameters:
        backupPool - URL to the backup target pool. Must also set failover_ratio. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeTargetPool.Builder description​(String description)
        Textual description field.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#description ComputeTargetPool#description}

        Parameters:
        description - Textual description field. This parameter is required.
        Returns:
        this
      • failoverRatio

        @Stability(Stable)
        public ComputeTargetPool.Builder failoverRatio​(Number failoverRatio)
        Ratio (0 to 1) of failed nodes before using the backup pool (which must also be set).

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#failover_ratio ComputeTargetPool#failover_ratio}

        Parameters:
        failoverRatio - Ratio (0 to 1) of failed nodes before using the backup pool (which must also be set). This parameter is required.
        Returns:
        this
      • healthChecks

        @Stability(Stable)
        public ComputeTargetPool.Builder healthChecks​(List<String> healthChecks)
        List of zero or one health check name or self_link. Only legacy google_compute_http_health_check is supported.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#health_checks ComputeTargetPool#health_checks}

        Parameters:
        healthChecks - List of zero or one health check name or self_link. Only legacy google_compute_http_health_check is supported. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public ComputeTargetPool.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#id ComputeTargetPool#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#id ComputeTargetPool#id}. This parameter is required.
        Returns:
        this
      • instances

        @Stability(Stable)
        public ComputeTargetPool.Builder instances​(List<String> instances)
        List of instances in the pool.

        They can be given as URLs, or in the form of "zone/name". Note that the instances need not exist at the time of target pool creation, so there is no need to use the Terraform interpolators to create a dependency on the instances from the target pool. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#instances ComputeTargetPool#instances}

        Parameters:
        instances - List of instances in the pool. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public ComputeTargetPool.Builder project​(String project)
        The ID of the project in which the resource belongs.

        If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#project ComputeTargetPool#project}

        Parameters:
        project - The ID of the project in which the resource belongs. This parameter is required.
        Returns:
        this
      • region

        @Stability(Stable)
        public ComputeTargetPool.Builder region​(String region)
        Where the target pool resides. Defaults to project region.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#region ComputeTargetPool#region}

        Parameters:
        region - Where the target pool resides. Defaults to project region. This parameter is required.
        Returns:
        this
      • sessionAffinity

        @Stability(Stable)
        public ComputeTargetPool.Builder sessionAffinity​(String sessionAffinity)
        How to distribute load.

        Options are "NONE" (no affinity). "CLIENT_IP" (hash of the source/dest addresses / ports), and "CLIENT_IP_PROTO" also includes the protocol (default "NONE"). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#session_affinity ComputeTargetPool#session_affinity}

        Parameters:
        sessionAffinity - How to distribute load. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public ComputeTargetPool.Builder timeouts​(ComputeTargetPoolTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_target_pool#timeouts ComputeTargetPool#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this