Class LbConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.lb.LbConfig.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LbConfig.BuilderaccessLogs(LbAccessLogs accessLogs)Sets the value ofLbConfig.getAccessLogs()LbConfigbuild()Builds the configured instance.LbConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()LbConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()LbConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()LbConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()LbConfig.BuildercustomerOwnedIpv4Pool(String customerOwnedIpv4Pool)Sets the value ofLbConfig.getCustomerOwnedIpv4Pool()LbConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()LbConfig.BuilderdesyncMitigationMode(String desyncMitigationMode)Sets the value ofLbConfig.getDesyncMitigationMode()LbConfig.BuilderdropInvalidHeaderFields(com.hashicorp.cdktf.IResolvable dropInvalidHeaderFields)Sets the value ofLbConfig.getDropInvalidHeaderFields()LbConfig.BuilderdropInvalidHeaderFields(Boolean dropInvalidHeaderFields)Sets the value ofLbConfig.getDropInvalidHeaderFields()LbConfig.BuilderenableCrossZoneLoadBalancing(com.hashicorp.cdktf.IResolvable enableCrossZoneLoadBalancing)Sets the value ofLbConfig.getEnableCrossZoneLoadBalancing()LbConfig.BuilderenableCrossZoneLoadBalancing(Boolean enableCrossZoneLoadBalancing)Sets the value ofLbConfig.getEnableCrossZoneLoadBalancing()LbConfig.BuilderenableDeletionProtection(com.hashicorp.cdktf.IResolvable enableDeletionProtection)Sets the value ofLbConfig.getEnableDeletionProtection()LbConfig.BuilderenableDeletionProtection(Boolean enableDeletionProtection)Sets the value ofLbConfig.getEnableDeletionProtection()LbConfig.BuilderenableHttp2(com.hashicorp.cdktf.IResolvable enableHttp2)Sets the value ofLbConfig.getEnableHttp2()LbConfig.BuilderenableHttp2(Boolean enableHttp2)Sets the value ofLbConfig.getEnableHttp2()LbConfig.BuilderenableTlsVersionAndCipherSuiteHeaders(com.hashicorp.cdktf.IResolvable enableTlsVersionAndCipherSuiteHeaders)Sets the value ofLbConfig.getEnableTlsVersionAndCipherSuiteHeaders()LbConfig.BuilderenableTlsVersionAndCipherSuiteHeaders(Boolean enableTlsVersionAndCipherSuiteHeaders)Sets the value ofLbConfig.getEnableTlsVersionAndCipherSuiteHeaders()LbConfig.BuilderenableWafFailOpen(com.hashicorp.cdktf.IResolvable enableWafFailOpen)Sets the value ofLbConfig.getEnableWafFailOpen()LbConfig.BuilderenableWafFailOpen(Boolean enableWafFailOpen)Sets the value ofLbConfig.getEnableWafFailOpen()LbConfig.BuilderenableXffClientPort(com.hashicorp.cdktf.IResolvable enableXffClientPort)Sets the value ofLbConfig.getEnableXffClientPort()LbConfig.BuilderenableXffClientPort(Boolean enableXffClientPort)Sets the value ofLbConfig.getEnableXffClientPort()LbConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()LbConfig.Builderid(String id)Sets the value ofLbConfig.getId()LbConfig.BuilderidleTimeout(Number idleTimeout)Sets the value ofLbConfig.getIdleTimeout()LbConfig.Builderinternal(com.hashicorp.cdktf.IResolvable internal)Sets the value ofLbConfig.getInternal()LbConfig.Builderinternal(Boolean internal)Sets the value ofLbConfig.getInternal()LbConfig.BuilderipAddressType(String ipAddressType)Sets the value ofLbConfig.getIpAddressType()LbConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()LbConfig.BuilderloadBalancerType(String loadBalancerType)Sets the value ofLbConfig.getLoadBalancerType()LbConfig.Buildername(String name)Sets the value ofLbConfig.getName()LbConfig.BuildernamePrefix(String namePrefix)Sets the value ofLbConfig.getNamePrefix()LbConfig.BuilderpreserveHostHeader(com.hashicorp.cdktf.IResolvable preserveHostHeader)Sets the value ofLbConfig.getPreserveHostHeader()LbConfig.BuilderpreserveHostHeader(Boolean preserveHostHeader)Sets the value ofLbConfig.getPreserveHostHeader()LbConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()LbConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()LbConfig.BuildersecurityGroups(List<String> securityGroups)Sets the value ofLbConfig.getSecurityGroups()LbConfig.BuildersubnetMapping(com.hashicorp.cdktf.IResolvable subnetMapping)Sets the value ofLbConfig.getSubnetMapping()LbConfig.BuildersubnetMapping(List<? extends LbSubnetMapping> subnetMapping)Sets the value ofLbConfig.getSubnetMapping()LbConfig.Buildersubnets(List<String> subnets)Sets the value ofLbConfig.getSubnets()LbConfig.Buildertags(Map<String,String> tags)Sets the value ofLbConfig.getTags()LbConfig.BuildertagsAll(Map<String,String> tagsAll)Sets the value ofLbConfig.getTagsAll()LbConfig.Buildertimeouts(LbTimeouts timeouts)Sets the value ofLbConfig.getTimeouts()LbConfig.BuilderxffHeaderProcessingMode(String xffHeaderProcessingMode)Sets the value ofLbConfig.getXffHeaderProcessingMode()
-
-
-
Method Detail
-
accessLogs
@Stability(Stable) public LbConfig.Builder accessLogs(LbAccessLogs accessLogs)
Sets the value ofLbConfig.getAccessLogs()- Parameters:
accessLogs- access_logs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#access_logs Lb#access_logs}- Returns:
this
-
customerOwnedIpv4Pool
@Stability(Stable) public LbConfig.Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool)
Sets the value ofLbConfig.getCustomerOwnedIpv4Pool()- Parameters:
customerOwnedIpv4Pool- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#customer_owned_ipv4_pool Lb#customer_owned_ipv4_pool}.- Returns:
this
-
desyncMitigationMode
@Stability(Stable) public LbConfig.Builder desyncMitigationMode(String desyncMitigationMode)
Sets the value ofLbConfig.getDesyncMitigationMode()- Parameters:
desyncMitigationMode- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#desync_mitigation_mode Lb#desync_mitigation_mode}.- Returns:
this
-
dropInvalidHeaderFields
@Stability(Stable) public LbConfig.Builder dropInvalidHeaderFields(Boolean dropInvalidHeaderFields)
Sets the value ofLbConfig.getDropInvalidHeaderFields()- Parameters:
dropInvalidHeaderFields- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#drop_invalid_header_fields Lb#drop_invalid_header_fields}.- Returns:
this
-
dropInvalidHeaderFields
@Stability(Stable) public LbConfig.Builder dropInvalidHeaderFields(com.hashicorp.cdktf.IResolvable dropInvalidHeaderFields)
Sets the value ofLbConfig.getDropInvalidHeaderFields()- Parameters:
dropInvalidHeaderFields- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#drop_invalid_header_fields Lb#drop_invalid_header_fields}.- Returns:
this
-
enableCrossZoneLoadBalancing
@Stability(Stable) public LbConfig.Builder enableCrossZoneLoadBalancing(Boolean enableCrossZoneLoadBalancing)
Sets the value ofLbConfig.getEnableCrossZoneLoadBalancing()- Parameters:
enableCrossZoneLoadBalancing- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_cross_zone_load_balancing Lb#enable_cross_zone_load_balancing}.- Returns:
this
-
enableCrossZoneLoadBalancing
@Stability(Stable) public LbConfig.Builder enableCrossZoneLoadBalancing(com.hashicorp.cdktf.IResolvable enableCrossZoneLoadBalancing)
Sets the value ofLbConfig.getEnableCrossZoneLoadBalancing()- Parameters:
enableCrossZoneLoadBalancing- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_cross_zone_load_balancing Lb#enable_cross_zone_load_balancing}.- Returns:
this
-
enableDeletionProtection
@Stability(Stable) public LbConfig.Builder enableDeletionProtection(Boolean enableDeletionProtection)
Sets the value ofLbConfig.getEnableDeletionProtection()- Parameters:
enableDeletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_deletion_protection Lb#enable_deletion_protection}.- Returns:
this
-
enableDeletionProtection
@Stability(Stable) public LbConfig.Builder enableDeletionProtection(com.hashicorp.cdktf.IResolvable enableDeletionProtection)
Sets the value ofLbConfig.getEnableDeletionProtection()- Parameters:
enableDeletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_deletion_protection Lb#enable_deletion_protection}.- Returns:
this
-
enableHttp2
@Stability(Stable) public LbConfig.Builder enableHttp2(Boolean enableHttp2)
Sets the value ofLbConfig.getEnableHttp2()- Parameters:
enableHttp2- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_http2 Lb#enable_http2}.- Returns:
this
-
enableHttp2
@Stability(Stable) public LbConfig.Builder enableHttp2(com.hashicorp.cdktf.IResolvable enableHttp2)
Sets the value ofLbConfig.getEnableHttp2()- Parameters:
enableHttp2- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_http2 Lb#enable_http2}.- Returns:
this
-
enableTlsVersionAndCipherSuiteHeaders
@Stability(Stable) public LbConfig.Builder enableTlsVersionAndCipherSuiteHeaders(Boolean enableTlsVersionAndCipherSuiteHeaders)
Sets the value ofLbConfig.getEnableTlsVersionAndCipherSuiteHeaders()- Parameters:
enableTlsVersionAndCipherSuiteHeaders- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_tls_version_and_cipher_suite_headers Lb#enable_tls_version_and_cipher_suite_headers}.- Returns:
this
-
enableTlsVersionAndCipherSuiteHeaders
@Stability(Stable) public LbConfig.Builder enableTlsVersionAndCipherSuiteHeaders(com.hashicorp.cdktf.IResolvable enableTlsVersionAndCipherSuiteHeaders)
Sets the value ofLbConfig.getEnableTlsVersionAndCipherSuiteHeaders()- Parameters:
enableTlsVersionAndCipherSuiteHeaders- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_tls_version_and_cipher_suite_headers Lb#enable_tls_version_and_cipher_suite_headers}.- Returns:
this
-
enableWafFailOpen
@Stability(Stable) public LbConfig.Builder enableWafFailOpen(Boolean enableWafFailOpen)
Sets the value ofLbConfig.getEnableWafFailOpen()- Parameters:
enableWafFailOpen- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_waf_fail_open Lb#enable_waf_fail_open}.- Returns:
this
-
enableWafFailOpen
@Stability(Stable) public LbConfig.Builder enableWafFailOpen(com.hashicorp.cdktf.IResolvable enableWafFailOpen)
Sets the value ofLbConfig.getEnableWafFailOpen()- Parameters:
enableWafFailOpen- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_waf_fail_open Lb#enable_waf_fail_open}.- Returns:
this
-
enableXffClientPort
@Stability(Stable) public LbConfig.Builder enableXffClientPort(Boolean enableXffClientPort)
Sets the value ofLbConfig.getEnableXffClientPort()- Parameters:
enableXffClientPort- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_xff_client_port Lb#enable_xff_client_port}.- Returns:
this
-
enableXffClientPort
@Stability(Stable) public LbConfig.Builder enableXffClientPort(com.hashicorp.cdktf.IResolvable enableXffClientPort)
Sets the value ofLbConfig.getEnableXffClientPort()- Parameters:
enableXffClientPort- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#enable_xff_client_port Lb#enable_xff_client_port}.- Returns:
this
-
id
@Stability(Stable) public LbConfig.Builder id(String id)
Sets the value ofLbConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#id Lb#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
-
idleTimeout
@Stability(Stable) public LbConfig.Builder idleTimeout(Number idleTimeout)
Sets the value ofLbConfig.getIdleTimeout()- Parameters:
idleTimeout- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#idle_timeout Lb#idle_timeout}.- Returns:
this
-
internal
@Stability(Stable) public LbConfig.Builder internal(Boolean internal)
Sets the value ofLbConfig.getInternal()- Parameters:
internal- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#internal Lb#internal}.- Returns:
this
-
internal
@Stability(Stable) public LbConfig.Builder internal(com.hashicorp.cdktf.IResolvable internal)
Sets the value ofLbConfig.getInternal()- Parameters:
internal- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#internal Lb#internal}.- Returns:
this
-
ipAddressType
@Stability(Stable) public LbConfig.Builder ipAddressType(String ipAddressType)
Sets the value ofLbConfig.getIpAddressType()- Parameters:
ipAddressType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#ip_address_type Lb#ip_address_type}.- Returns:
this
-
loadBalancerType
@Stability(Stable) public LbConfig.Builder loadBalancerType(String loadBalancerType)
Sets the value ofLbConfig.getLoadBalancerType()- Parameters:
loadBalancerType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#load_balancer_type Lb#load_balancer_type}.- Returns:
this
-
name
@Stability(Stable) public LbConfig.Builder name(String name)
Sets the value ofLbConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#name Lb#name}.- Returns:
this
-
namePrefix
@Stability(Stable) public LbConfig.Builder namePrefix(String namePrefix)
Sets the value ofLbConfig.getNamePrefix()- Parameters:
namePrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#name_prefix Lb#name_prefix}.- Returns:
this
-
preserveHostHeader
@Stability(Stable) public LbConfig.Builder preserveHostHeader(Boolean preserveHostHeader)
Sets the value ofLbConfig.getPreserveHostHeader()- Parameters:
preserveHostHeader- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#preserve_host_header Lb#preserve_host_header}.- Returns:
this
-
preserveHostHeader
@Stability(Stable) public LbConfig.Builder preserveHostHeader(com.hashicorp.cdktf.IResolvable preserveHostHeader)
Sets the value ofLbConfig.getPreserveHostHeader()- Parameters:
preserveHostHeader- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#preserve_host_header Lb#preserve_host_header}.- Returns:
this
-
securityGroups
@Stability(Stable) public LbConfig.Builder securityGroups(List<String> securityGroups)
Sets the value ofLbConfig.getSecurityGroups()- Parameters:
securityGroups- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#security_groups Lb#security_groups}.- Returns:
this
-
subnetMapping
@Stability(Stable) public LbConfig.Builder subnetMapping(com.hashicorp.cdktf.IResolvable subnetMapping)
Sets the value ofLbConfig.getSubnetMapping()- Parameters:
subnetMapping- subnet_mapping block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#subnet_mapping Lb#subnet_mapping}- Returns:
this
-
subnetMapping
@Stability(Stable) public LbConfig.Builder subnetMapping(List<? extends LbSubnetMapping> subnetMapping)
Sets the value ofLbConfig.getSubnetMapping()- Parameters:
subnetMapping- subnet_mapping block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#subnet_mapping Lb#subnet_mapping}- Returns:
this
-
subnets
@Stability(Stable) public LbConfig.Builder subnets(List<String> subnets)
Sets the value ofLbConfig.getSubnets()- Parameters:
subnets- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#subnets Lb#subnets}.- Returns:
this
-
tags
@Stability(Stable) public LbConfig.Builder tags(Map<String,String> tags)
Sets the value ofLbConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#tags Lb#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public LbConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofLbConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#tags_all Lb#tags_all}.- Returns:
this
-
timeouts
@Stability(Stable) public LbConfig.Builder timeouts(LbTimeouts timeouts)
Sets the value ofLbConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#timeouts Lb#timeouts}- Returns:
this
-
xffHeaderProcessingMode
@Stability(Stable) public LbConfig.Builder xffHeaderProcessingMode(String xffHeaderProcessingMode)
Sets the value ofLbConfig.getXffHeaderProcessingMode()- Parameters:
xffHeaderProcessingMode- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/lb#xff_header_processing_mode Lb#xff_header_processing_mode}.- Returns:
this
-
connection
@Stability(Experimental) public LbConfig.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 LbConfig.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 LbConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public LbConfig.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 LbConfig.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 LbConfig.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 LbConfig.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 LbConfig.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 LbConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public LbConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LbConfig>- Returns:
- a new instance of
LbConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-