Class ContainerClusterPrivateClusterConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • enablePrivateEndpoint

        @Stability(Stable)
        public ContainerClusterPrivateClusterConfig.Builder enablePrivateEndpoint​(Boolean enablePrivateEndpoint)
        Parameters:
        enablePrivateEndpoint - When true, the cluster's private endpoint is used as the cluster endpoint and access through the public endpoint is disabled. When false, either endpoint can be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_endpoint ContainerCluster#enable_private_endpoint}
        Returns:
        this
      • enablePrivateEndpoint

        @Stability(Stable)
        public ContainerClusterPrivateClusterConfig.Builder enablePrivateEndpoint​(com.hashicorp.cdktf.IResolvable enablePrivateEndpoint)
        Parameters:
        enablePrivateEndpoint - When true, the cluster's private endpoint is used as the cluster endpoint and access through the public endpoint is disabled. When false, either endpoint can be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_endpoint ContainerCluster#enable_private_endpoint}
        Returns:
        this
      • enablePrivateNodes

        @Stability(Stable)
        public ContainerClusterPrivateClusterConfig.Builder enablePrivateNodes​(Boolean enablePrivateNodes)
        Parameters:
        enablePrivateNodes - Enables the private cluster feature, creating a private endpoint on the cluster. In a private cluster, nodes only have RFC 1918 private addresses and communicate with the master's private endpoint via private networking. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_nodes ContainerCluster#enable_private_nodes}
        Returns:
        this
      • enablePrivateNodes

        @Stability(Stable)
        public ContainerClusterPrivateClusterConfig.Builder enablePrivateNodes​(com.hashicorp.cdktf.IResolvable enablePrivateNodes)
        Parameters:
        enablePrivateNodes - Enables the private cluster feature, creating a private endpoint on the cluster. In a private cluster, nodes only have RFC 1918 private addresses and communicate with the master's private endpoint via private networking. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#enable_private_nodes ContainerCluster#enable_private_nodes}
        Returns:
        this
      • masterIpv4CidrBlock

        @Stability(Stable)
        public ContainerClusterPrivateClusterConfig.Builder masterIpv4CidrBlock​(String masterIpv4CidrBlock)
        Parameters:
        masterIpv4CidrBlock - The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning private IP addresses to the cluster master(s) and the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network, and it must be a /28 subnet. See Private Cluster Limitations for more details. This field only applies to private clusters, when enable_private_nodes is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#master_ipv4_cidr_block ContainerCluster#master_ipv4_cidr_block}
        Returns:
        this
      • privateEndpointSubnetwork

        @Stability(Stable)
        public ContainerClusterPrivateClusterConfig.Builder privateEndpointSubnetwork​(String privateEndpointSubnetwork)
        Parameters:
        privateEndpointSubnetwork - Subnetwork in cluster's network where master's endpoint will be provisioned. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_cluster#private_endpoint_subnetwork ContainerCluster#private_endpoint_subnetwork}
        Returns:
        this