Class OpsworksHaproxyLayerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.opsworks_haproxy_layer.OpsworksHaproxyLayerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpsworksHaproxyLayerConfig>
- Enclosing interface:
- OpsworksHaproxyLayerConfig
@Stability(Stable) public static final class OpsworksHaproxyLayerConfig.Builder extends Object implements software.amazon.jsii.Builder<OpsworksHaproxyLayerConfig>
A builder forOpsworksHaproxyLayerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
stackId
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder stackId(String stackId)
Sets the value ofOpsworksHaproxyLayerConfig.getStackId()- Parameters:
stackId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#stack_id OpsworksHaproxyLayer#stack_id}. This parameter is required.- Returns:
this
-
statsPassword
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder statsPassword(String statsPassword)
Sets the value ofOpsworksHaproxyLayerConfig.getStatsPassword()- Parameters:
statsPassword- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#stats_password OpsworksHaproxyLayer#stats_password}. This parameter is required.- Returns:
this
-
autoAssignElasticIps
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder autoAssignElasticIps(Boolean autoAssignElasticIps)
Sets the value ofOpsworksHaproxyLayerConfig.getAutoAssignElasticIps()- Parameters:
autoAssignElasticIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#auto_assign_elastic_ips OpsworksHaproxyLayer#auto_assign_elastic_ips}.- Returns:
this
-
autoAssignElasticIps
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder autoAssignElasticIps(com.hashicorp.cdktf.IResolvable autoAssignElasticIps)
Sets the value ofOpsworksHaproxyLayerConfig.getAutoAssignElasticIps()- Parameters:
autoAssignElasticIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#auto_assign_elastic_ips OpsworksHaproxyLayer#auto_assign_elastic_ips}.- Returns:
this
-
autoAssignPublicIps
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder autoAssignPublicIps(Boolean autoAssignPublicIps)
Sets the value ofOpsworksHaproxyLayerConfig.getAutoAssignPublicIps()- Parameters:
autoAssignPublicIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#auto_assign_public_ips OpsworksHaproxyLayer#auto_assign_public_ips}.- Returns:
this
-
autoAssignPublicIps
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder autoAssignPublicIps(com.hashicorp.cdktf.IResolvable autoAssignPublicIps)
Sets the value ofOpsworksHaproxyLayerConfig.getAutoAssignPublicIps()- Parameters:
autoAssignPublicIps- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#auto_assign_public_ips OpsworksHaproxyLayer#auto_assign_public_ips}.- Returns:
this
-
autoHealing
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder autoHealing(Boolean autoHealing)
Sets the value ofOpsworksHaproxyLayerConfig.getAutoHealing()- Parameters:
autoHealing- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#auto_healing OpsworksHaproxyLayer#auto_healing}.- Returns:
this
-
autoHealing
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder autoHealing(com.hashicorp.cdktf.IResolvable autoHealing)
Sets the value ofOpsworksHaproxyLayerConfig.getAutoHealing()- Parameters:
autoHealing- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#auto_healing OpsworksHaproxyLayer#auto_healing}.- Returns:
this
-
cloudwatchConfiguration
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder cloudwatchConfiguration(OpsworksHaproxyLayerCloudwatchConfiguration cloudwatchConfiguration)
Sets the value ofOpsworksHaproxyLayerConfig.getCloudwatchConfiguration()- Parameters:
cloudwatchConfiguration- cloudwatch_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#cloudwatch_configuration OpsworksHaproxyLayer#cloudwatch_configuration}- Returns:
this
-
customConfigureRecipes
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customConfigureRecipes(List<String> customConfigureRecipes)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomConfigureRecipes()- Parameters:
customConfigureRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_configure_recipes OpsworksHaproxyLayer#custom_configure_recipes}.- Returns:
this
-
customDeployRecipes
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customDeployRecipes(List<String> customDeployRecipes)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomDeployRecipes()- Parameters:
customDeployRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_deploy_recipes OpsworksHaproxyLayer#custom_deploy_recipes}.- Returns:
this
-
customInstanceProfileArn
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customInstanceProfileArn(String customInstanceProfileArn)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomInstanceProfileArn()- Parameters:
customInstanceProfileArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_instance_profile_arn OpsworksHaproxyLayer#custom_instance_profile_arn}.- Returns:
this
-
customJson
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customJson(String customJson)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomJson()- Parameters:
customJson- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_json OpsworksHaproxyLayer#custom_json}.- Returns:
this
-
customSecurityGroupIds
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customSecurityGroupIds(List<String> customSecurityGroupIds)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomSecurityGroupIds()- Parameters:
customSecurityGroupIds- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_security_group_ids OpsworksHaproxyLayer#custom_security_group_ids}.- Returns:
this
-
customSetupRecipes
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customSetupRecipes(List<String> customSetupRecipes)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomSetupRecipes()- Parameters:
customSetupRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_setup_recipes OpsworksHaproxyLayer#custom_setup_recipes}.- Returns:
this
-
customShutdownRecipes
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customShutdownRecipes(List<String> customShutdownRecipes)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomShutdownRecipes()- Parameters:
customShutdownRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_shutdown_recipes OpsworksHaproxyLayer#custom_shutdown_recipes}.- Returns:
this
-
customUndeployRecipes
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder customUndeployRecipes(List<String> customUndeployRecipes)
Sets the value ofOpsworksHaproxyLayerConfig.getCustomUndeployRecipes()- Parameters:
customUndeployRecipes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#custom_undeploy_recipes OpsworksHaproxyLayer#custom_undeploy_recipes}.- Returns:
this
-
drainElbOnShutdown
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder drainElbOnShutdown(Boolean drainElbOnShutdown)
Sets the value ofOpsworksHaproxyLayerConfig.getDrainElbOnShutdown()- Parameters:
drainElbOnShutdown- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#drain_elb_on_shutdown OpsworksHaproxyLayer#drain_elb_on_shutdown}.- Returns:
this
-
drainElbOnShutdown
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder drainElbOnShutdown(com.hashicorp.cdktf.IResolvable drainElbOnShutdown)
Sets the value ofOpsworksHaproxyLayerConfig.getDrainElbOnShutdown()- Parameters:
drainElbOnShutdown- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#drain_elb_on_shutdown OpsworksHaproxyLayer#drain_elb_on_shutdown}.- Returns:
this
-
ebsVolume
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder ebsVolume(com.hashicorp.cdktf.IResolvable ebsVolume)
Sets the value ofOpsworksHaproxyLayerConfig.getEbsVolume()- Parameters:
ebsVolume- ebs_volume block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#ebs_volume OpsworksHaproxyLayer#ebs_volume}- Returns:
this
-
ebsVolume
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder ebsVolume(List<? extends OpsworksHaproxyLayerEbsVolume> ebsVolume)
Sets the value ofOpsworksHaproxyLayerConfig.getEbsVolume()- Parameters:
ebsVolume- ebs_volume block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#ebs_volume OpsworksHaproxyLayer#ebs_volume}- Returns:
this
-
elasticLoadBalancer
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder elasticLoadBalancer(String elasticLoadBalancer)
Sets the value ofOpsworksHaproxyLayerConfig.getElasticLoadBalancer()- Parameters:
elasticLoadBalancer- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#elastic_load_balancer OpsworksHaproxyLayer#elastic_load_balancer}.- Returns:
this
-
healthcheckMethod
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder healthcheckMethod(String healthcheckMethod)
Sets the value ofOpsworksHaproxyLayerConfig.getHealthcheckMethod()- Parameters:
healthcheckMethod- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#healthcheck_method OpsworksHaproxyLayer#healthcheck_method}.- Returns:
this
-
healthcheckUrl
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder healthcheckUrl(String healthcheckUrl)
Sets the value ofOpsworksHaproxyLayerConfig.getHealthcheckUrl()- Parameters:
healthcheckUrl- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#healthcheck_url OpsworksHaproxyLayer#healthcheck_url}.- Returns:
this
-
id
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder id(String id)
Sets the value ofOpsworksHaproxyLayerConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#id OpsworksHaproxyLayer#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.- Returns:
this
-
installUpdatesOnBoot
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder installUpdatesOnBoot(Boolean installUpdatesOnBoot)
Sets the value ofOpsworksHaproxyLayerConfig.getInstallUpdatesOnBoot()- Parameters:
installUpdatesOnBoot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#install_updates_on_boot OpsworksHaproxyLayer#install_updates_on_boot}.- Returns:
this
-
installUpdatesOnBoot
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder installUpdatesOnBoot(com.hashicorp.cdktf.IResolvable installUpdatesOnBoot)
Sets the value ofOpsworksHaproxyLayerConfig.getInstallUpdatesOnBoot()- Parameters:
installUpdatesOnBoot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#install_updates_on_boot OpsworksHaproxyLayer#install_updates_on_boot}.- Returns:
this
-
instanceShutdownTimeout
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder instanceShutdownTimeout(Number instanceShutdownTimeout)
Sets the value ofOpsworksHaproxyLayerConfig.getInstanceShutdownTimeout()- Parameters:
instanceShutdownTimeout- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#instance_shutdown_timeout OpsworksHaproxyLayer#instance_shutdown_timeout}.- Returns:
this
-
loadBasedAutoScaling
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder loadBasedAutoScaling(OpsworksHaproxyLayerLoadBasedAutoScaling loadBasedAutoScaling)
Sets the value ofOpsworksHaproxyLayerConfig.getLoadBasedAutoScaling()- Parameters:
loadBasedAutoScaling- load_based_auto_scaling block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#load_based_auto_scaling OpsworksHaproxyLayer#load_based_auto_scaling}- Returns:
this
-
name
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder name(String name)
Sets the value ofOpsworksHaproxyLayerConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#name OpsworksHaproxyLayer#name}.- Returns:
this
-
statsEnabled
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder statsEnabled(Boolean statsEnabled)
Sets the value ofOpsworksHaproxyLayerConfig.getStatsEnabled()- Parameters:
statsEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#stats_enabled OpsworksHaproxyLayer#stats_enabled}.- Returns:
this
-
statsEnabled
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder statsEnabled(com.hashicorp.cdktf.IResolvable statsEnabled)
Sets the value ofOpsworksHaproxyLayerConfig.getStatsEnabled()- Parameters:
statsEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#stats_enabled OpsworksHaproxyLayer#stats_enabled}.- Returns:
this
-
statsUrl
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder statsUrl(String statsUrl)
Sets the value ofOpsworksHaproxyLayerConfig.getStatsUrl()- Parameters:
statsUrl- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#stats_url OpsworksHaproxyLayer#stats_url}.- Returns:
this
-
statsUser
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder statsUser(String statsUser)
Sets the value ofOpsworksHaproxyLayerConfig.getStatsUser()- Parameters:
statsUser- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#stats_user OpsworksHaproxyLayer#stats_user}.- Returns:
this
-
systemPackages
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder systemPackages(List<String> systemPackages)
Sets the value ofOpsworksHaproxyLayerConfig.getSystemPackages()- Parameters:
systemPackages- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#system_packages OpsworksHaproxyLayer#system_packages}.- Returns:
this
-
tags
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder tags(Map<String,String> tags)
Sets the value ofOpsworksHaproxyLayerConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#tags OpsworksHaproxyLayer#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofOpsworksHaproxyLayerConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#tags_all OpsworksHaproxyLayer#tags_all}.- Returns:
this
-
useEbsOptimizedInstances
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Sets the value ofOpsworksHaproxyLayerConfig.getUseEbsOptimizedInstances()- Parameters:
useEbsOptimizedInstances- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#use_ebs_optimized_instances OpsworksHaproxyLayer#use_ebs_optimized_instances}.- Returns:
this
-
useEbsOptimizedInstances
@Stability(Stable) public OpsworksHaproxyLayerConfig.Builder useEbsOptimizedInstances(com.hashicorp.cdktf.IResolvable useEbsOptimizedInstances)
Sets the value ofOpsworksHaproxyLayerConfig.getUseEbsOptimizedInstances()- Parameters:
useEbsOptimizedInstances- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/opsworks_haproxy_layer#use_ebs_optimized_instances OpsworksHaproxyLayer#use_ebs_optimized_instances}.- Returns:
this
-
connection
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public OpsworksHaproxyLayerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public OpsworksHaproxyLayerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OpsworksHaproxyLayerConfig>- Returns:
- a new instance of
OpsworksHaproxyLayerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-