Class ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.composer_environment.ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComposerEnvironmentConfigPrivateEnvironmentConfig>
- Enclosing interface:
- ComposerEnvironmentConfigPrivateEnvironmentConfig
@Stability(Stable) public static final class ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder extends Object implements software.amazon.jsii.Builder<ComposerEnvironmentConfigPrivateEnvironmentConfig>
A builder forComposerEnvironmentConfigPrivateEnvironmentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
cloudComposerConnectionSubnetwork
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder cloudComposerConnectionSubnetwork(String cloudComposerConnectionSubnetwork)
Sets the value ofComposerEnvironmentConfigPrivateEnvironmentConfig.getCloudComposerConnectionSubnetwork()- Parameters:
cloudComposerConnectionSubnetwork- When specified, the environment will use Private Service Connect instead of VPC peerings to connect to Cloud SQL in the Tenant Project, and the PSC endpoint in the Customer Project will use an IP address from this subnetwork. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#cloud_composer_connection_subnetwork ComposerEnvironment#cloud_composer_connection_subnetwork}- Returns:
this
-
cloudComposerNetworkIpv4CidrBlock
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder cloudComposerNetworkIpv4CidrBlock(String cloudComposerNetworkIpv4CidrBlock)
Sets the value ofComposerEnvironmentConfigPrivateEnvironmentConfig.getCloudComposerNetworkIpv4CidrBlock()- Parameters:
cloudComposerNetworkIpv4CidrBlock- The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#cloud_composer_network_ipv4_cidr_block ComposerEnvironment#cloud_composer_network_ipv4_cidr_block}- Returns:
this
-
cloudSqlIpv4CidrBlock
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder cloudSqlIpv4CidrBlock(String cloudSqlIpv4CidrBlock)
- Parameters:
cloudSqlIpv4CidrBlock- The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#cloud_sql_ipv4_cidr_block ComposerEnvironment#cloud_sql_ipv4_cidr_block}- Returns:
this
-
connectionType
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder connectionType(String connectionType)
Sets the value ofComposerEnvironmentConfigPrivateEnvironmentConfig.getConnectionType()- Parameters:
connectionType- Mode of internal communication within the Composer environment. Must be one of "VPC_PEERING" or "PRIVATE_SERVICE_CONNECT". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#connection_type ComposerEnvironment#connection_type}- Returns:
this
-
enablePrivateEndpoint
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder enablePrivateEndpoint(Boolean enablePrivateEndpoint)
- Parameters:
enablePrivateEndpoint- If true, access to the public endpoint of the GKE cluster is denied. If this field is set to true, ip_allocation_policy.use_ip_aliases must be set to true for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#enable_private_endpoint ComposerEnvironment#enable_private_endpoint}- Returns:
this
-
enablePrivateEndpoint
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder enablePrivateEndpoint(com.hashicorp.cdktf.IResolvable enablePrivateEndpoint)
- Parameters:
enablePrivateEndpoint- If true, access to the public endpoint of the GKE cluster is denied. If this field is set to true, ip_allocation_policy.use_ip_aliases must be set to true for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#enable_private_endpoint ComposerEnvironment#enable_private_endpoint}- Returns:
this
-
enablePrivatelyUsedPublicIps
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder enablePrivatelyUsedPublicIps(Boolean enablePrivatelyUsedPublicIps)
Sets the value ofComposerEnvironmentConfigPrivateEnvironmentConfig.getEnablePrivatelyUsedPublicIps()- Parameters:
enablePrivatelyUsedPublicIps- When enabled, IPs from public (non-RFC1918) ranges can be used for ip_allocation_policy.cluster_ipv4_cidr_block and ip_allocation_policy.service_ipv4_cidr_block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#enable_privately_used_public_ips ComposerEnvironment#enable_privately_used_public_ips}- Returns:
this
-
enablePrivatelyUsedPublicIps
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder enablePrivatelyUsedPublicIps(com.hashicorp.cdktf.IResolvable enablePrivatelyUsedPublicIps)
Sets the value ofComposerEnvironmentConfigPrivateEnvironmentConfig.getEnablePrivatelyUsedPublicIps()- Parameters:
enablePrivatelyUsedPublicIps- When enabled, IPs from public (non-RFC1918) ranges can be used for ip_allocation_policy.cluster_ipv4_cidr_block and ip_allocation_policy.service_ipv4_cidr_block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#enable_privately_used_public_ips ComposerEnvironment#enable_privately_used_public_ips}- Returns:
this
-
masterIpv4CidrBlock
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder masterIpv4CidrBlock(String masterIpv4CidrBlock)
- Parameters:
masterIpv4CidrBlock- The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network. If left blank, the default value of '172.16.0.0/28' is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#master_ipv4_cidr_block ComposerEnvironment#master_ipv4_cidr_block}- Returns:
this
-
webServerIpv4CidrBlock
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig.Builder webServerIpv4CidrBlock(String webServerIpv4CidrBlock)
- Parameters:
webServerIpv4CidrBlock- The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/composer_environment#web_server_ipv4_cidr_block ComposerEnvironment#web_server_ipv4_cidr_block}- Returns:
this
-
build
@Stability(Stable) public ComposerEnvironmentConfigPrivateEnvironmentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComposerEnvironmentConfigPrivateEnvironmentConfig>- Returns:
- a new instance of
ComposerEnvironmentConfigPrivateEnvironmentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-