ApplicationLoadBalancerArgs class
The set of arguments for ApplicationLoadBalancer. The set of arguments for ApplicationLoadBalancer.
Constructors
-
ApplicationLoadBalancerArgs({Input<
LoadBalancerAccessLogs?> ? accessLogs, Input<int?> ? clientKeepAlive, Input<LoadBalancerConnectionLogs?> ? connectionLogs, Input<String?> ? customerOwnedIpv4Pool, Input<DefaultSecurityGroup?> ? defaultSecurityGroup, Input<TargetGroup?> ? defaultTargetGroup, Input<int?> ? defaultTargetGroupPort, Input<String?> ? desyncMitigationMode, Input<String?> ? dnsRecordClientRoutingPolicy, Input<bool?> ? dropInvalidHeaderFields, Input<bool?> ? enableDeletionProtection, Input<bool?> ? enableHttp2, Input<String?> ? enablePrefixForIpv6SourceNat, Input<bool?> ? enableTlsVersionAndCipherSuiteHeaders, Input<bool?> ? enableWafFailOpen, Input<bool?> ? enableXffClientPort, Input<bool?> ? enableZonalShift, Input<String?> ? enforceSecurityGroupInboundRulesOnPrivateLinkTraffic, Input<LoadBalancerHealthCheckLogs?> ? healthCheckLogs, Input<int?> ? idleTimeout, Input<bool?> ? internal, Input<String?> ? ipAddressType, Input<LoadBalancerIpamPools?> ? ipamPools, Input<Listener?> ? listener, Input<List< ? listeners, Input<Listener> ?>LoadBalancerMinimumLoadBalancerCapacity?> ? minimumLoadBalancerCapacity, Input<String?> ? name, Input<String?> ? namePrefix, Input<bool?> ? preserveHostHeader, Input<String?> ? region, Input<int?> ? secondaryIpsAutoAssignedPerSubnet, Input<List< ? securityGroups, Input<String> ?>List< ? subnetIds, Input<String> ?>List< ? subnetMappings, Input<LoadBalancerSubnetMapping> ?>List< ? subnets, Input<Subnet> ?>Map< ? tags, Input<String, String> ?>String?> ? xffHeaderProcessingMode}) -
Creates a new ApplicationLoadBalancerArgs.
accessLogsAccess Logs block. See below.clientKeepAliveClient keep alive value in seconds. The valid range is 60-604800 seconds. The default is 3600 seconds.connectionLogsConnection Logs block. See below. Only valid for Load Balancers of typeapplication.customerOwnedIpv4PoolID of the customer owned ipv4 pool to use for this load balancer.defaultSecurityGroupOptions for creating a default security group ifsecurityGroupsnot specified.defaultTargetGroupOptions creating a default target group.defaultTargetGroupPortPort to use to connect with the target. Valid values are ports 1-65535. Defaults to 80.desyncMitigationModeHow the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values aremonitor,defensive(default),strictest.dnsRecordClientRoutingPolicyHow traffic is distributed among the load balancer Availability Zones. Possible values areanyAvailabilityZone(default),availabilityZoneAffinity, orpartialAvailabilityZoneAffinity. See Availability Zone DNS affinity for additional details. Only valid fornetworktype load balancers.dropInvalidHeaderFieldsWhether HTTP headers with header fields that are not valid are removed by the load balancer (true) or routed to targets (false). The default is false. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens. Only valid for Load Balancers of typeapplication.enableDeletionProtectionIf true, deletion of the load balancer will be disabled via the AWS API. This will prevent this provider from deleting the load balancer. Defaults tofalse.enableHttp2Whether HTTP/2 is enabled inapplicationload balancers. Defaults totrue.enablePrefixForIpv6SourceNatWhether to use an IPv6 prefix from each subnet for source NAT.ipAddressTypemust bedualstack. Valid values:on,off.enableTlsVersionAndCipherSuiteHeadersWhether the two headers (x-amzn-tls-versionandx-amzn-tls-cipher-suite), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. Only valid for Load Balancers of typeapplication. Defaults tofalseenableWafFailOpenWhether to allow a WAF-enabled load balancer to route requests to targets if it is unable to forward the request to AWS WAF. Defaults tofalse.enableXffClientPortWhether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer inapplicationload balancers. Defaults tofalse.enableZonalShiftWhether zonal shift is enabled. Defaults tofalse.enforceSecurityGroupInboundRulesOnPrivateLinkTrafficWhether inbound security group rules are enforced for traffic originating from a PrivateLink. Only valid for Load Balancers of typenetwork. The possible values areonandoff.healthCheckLogsHealth Check Logs block. See below. Only valid for Load Balancers of typeapplication.idleTimeoutTime in seconds that the connection is allowed to be idle. Only valid for Load Balancers of typeapplication. Default: 60.internalIf true, the LB will be internal. Defaults tofalse.ipAddressTypeType of IP addresses used by the subnets for your load balancer. The possible values depend upon the load balancer type:ipv4(all load balancer types),dualstack(all load balancer types), anddualstack-without-public-ipv4(typeapplicationonly).ipamPools. The IPAM pools to use with the load balancer. Only valid for Load Balancers of typeapplication. See ipamPools for more information.listenerA listener to create. Only one oflistenerandlistenerscan be specified.listenersList of listeners to create. Only one oflistenerandlistenerscan be specified.minimumLoadBalancerCapacityMinimum capacity for a load balancer. Only valid for Load Balancers of typeapplicationornetwork.nameName of the LB. This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. If not specified, this provider will autogenerate a name beginning withtf-lb.namePrefixCreates a unique name beginning with the specified prefix. Conflicts withname.preserveHostHeaderWhether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. Defaults tofalse.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.secondaryIpsAutoAssignedPerSubnetThe number of secondary IP addresses to configure for your load balancer nodes. Only valid for Load Balancers of typenetwork. The valid range is 0-7. When decreased, this will force a recreation of the resource. Default:0.securityGroupsList of security group IDs to assign to the LB. Only valid for Load Balancers of typeapplicationornetwork. For load balancers of typenetworksecurity groups cannot be added if none are currently present, and cannot all be removed once added. If either of these conditions are met, this will force a recreation of the resource.subnetIdsList of subnet IDs to attach to the LB. For Load Balancers of typenetworksubnets can only be added (see Availability Zones), deleting a subnet for load balancers of typenetworkwill force a recreation of the resource.subnetMappingsSubnet mapping block. See below. For Load Balancers of typenetworksubnet mappings can only be added.subnetsA list of subnets to attach to the LB. Only one ofsubnets,subnetIdsorsubnetMappingscan be specifiedtagsMap of tags to assign to the resource. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.xffHeaderProcessingModeDetermines how the load balancer modifies theX-Forwarded-Forheader in the HTTP request before sending the request to the target. The possible values areappend,preserve, andremove. Only valid for Load Balancers of typeapplication. The default isappend.const -
ApplicationLoadBalancerArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
accessLogs
→ Input<
LoadBalancerAccessLogs?> ? -
Access Logs block. See below.
final
-
clientKeepAlive
→ Input<
int?> ? -
Client keep alive value in seconds. The valid range is 60-604800 seconds. The default is 3600 seconds.
final
-
connectionLogs
→ Input<
LoadBalancerConnectionLogs?> ? -
Connection Logs block. See below. Only valid for Load Balancers of type
application.final -
customerOwnedIpv4Pool
→ Input<
String?> ? -
ID of the customer owned ipv4 pool to use for this load balancer.
final
-
defaultSecurityGroup
→ Input<
DefaultSecurityGroup?> ? -
Options for creating a default security group if securityGroups not specified.
final
-
defaultTargetGroup
→ Input<
TargetGroup?> ? -
Options creating a default target group.
final
-
defaultTargetGroupPort
→ Input<
int?> ? -
Port to use to connect with the target. Valid values are ports 1-65535. Defaults to 80.
final
-
desyncMitigationMode
→ Input<
String?> ? -
How the load balancer handles requests that might pose a security risk to an application due to HTTP desync. Valid values are
monitor,defensive(default),strictest.final -
dnsRecordClientRoutingPolicy
→ Input<
String?> ? -
How traffic is distributed among the load balancer Availability Zones. Possible values are
anyAvailabilityZone(default),availabilityZoneAffinity, orpartialAvailabilityZoneAffinity. See Availability Zone DNS affinity for additional details. Only valid fornetworktype load balancers.final -
dropInvalidHeaderFields
→ Input<
bool?> ? -
Whether HTTP headers with header fields that are not valid are removed by the load balancer (true) or routed to targets (false). The default is false. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens. Only valid for Load Balancers of type
application.final -
enableDeletionProtection
→ Input<
bool?> ? -
If true, deletion of the load balancer will be disabled via the AWS API. This will prevent this provider from deleting the load balancer. Defaults to
false.final -
enableHttp2
→ Input<
bool?> ? -
Whether HTTP/2 is enabled in
applicationload balancers. Defaults totrue.final -
enablePrefixForIpv6SourceNat
→ Input<
String?> ? -
Whether to use an IPv6 prefix from each subnet for source NAT.
ipAddressTypemust bedualstack. Valid values:on,off.final -
enableTlsVersionAndCipherSuiteHeaders
→ Input<
bool?> ? -
Whether the two headers (
x-amzn-tls-versionandx-amzn-tls-cipher-suite), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. Only valid for Load Balancers of typeapplication. Defaults tofalsefinal -
enableWafFailOpen
→ Input<
bool?> ? -
Whether to allow a WAF-enabled load balancer to route requests to targets if it is unable to forward the request to AWS WAF. Defaults to
false.final -
enableXffClientPort
→ Input<
bool?> ? -
Whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer in
applicationload balancers. Defaults tofalse.final -
enableZonalShift
→ Input<
bool?> ? -
Whether zonal shift is enabled. Defaults to
false.final -
enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
→ Input<
String?> ? -
Whether inbound security group rules are enforced for traffic originating from a PrivateLink. Only valid for Load Balancers of type
network. The possible values areonandoff.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
healthCheckLogs
→ Input<
LoadBalancerHealthCheckLogs?> ? -
Health Check Logs block. See below. Only valid for Load Balancers of type
application.final -
idleTimeout
→ Input<
int?> ? -
Time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type
application. Default: 60.final -
internal
→ Input<
bool?> ? -
If true, the LB will be internal. Defaults to
false.final -
ipAddressType
→ Input<
String?> ? -
Type of IP addresses used by the subnets for your load balancer. The possible values depend upon the load balancer type:
ipv4(all load balancer types),dualstack(all load balancer types), anddualstack-without-public-ipv4(typeapplicationonly).final -
ipamPools
→ Input<
LoadBalancerIpamPools?> ? -
. The IPAM pools to use with the load balancer. Only valid for Load Balancers of type
application. See ipamPools for more information.final -
listener
→ Input<
Listener?> ? -
A listener to create. Only one of listener and listeners can be specified.
final
-
listeners
→ Input<
List< ?Listener> ?> -
List of listeners to create. Only one of listener and listeners can be specified.
final
-
minimumLoadBalancerCapacity
→ Input<
LoadBalancerMinimumLoadBalancerCapacity?> ? -
Minimum capacity for a load balancer. Only valid for Load Balancers of type
applicationornetwork.final -
name
→ Input<
String?> ? -
Name of the LB. This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. If not specified, this provider will autogenerate a name beginning with
tf-lb.final -
namePrefix
→ Input<
String?> ? -
Creates a unique name beginning with the specified prefix. Conflicts with
name.final -
preserveHostHeader
→ Input<
bool?> ? -
Whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. Defaults to
false.final -
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secondaryIpsAutoAssignedPerSubnet
→ Input<
int?> ? -
The number of secondary IP addresses to configure for your load balancer nodes. Only valid for Load Balancers of type
network. The valid range is 0-7. When decreased, this will force a recreation of the resource. Default:0.final -
securityGroups
→ Input<
List< ?String> ?> -
List of security group IDs to assign to the LB. Only valid for Load Balancers of type
applicationornetwork. For load balancers of typenetworksecurity groups cannot be added if none are currently present, and cannot all be removed once added. If either of these conditions are met, this will force a recreation of the resource.final -
subnetIds
→ Input<
List< ?String> ?> -
List of subnet IDs to attach to the LB. For Load Balancers of type
networksubnets can only be added (see Availability Zones), deleting a subnet for load balancers of typenetworkwill force a recreation of the resource.final -
subnetMappings
→ Input<
List< ?LoadBalancerSubnetMapping> ?> -
Subnet mapping block. See below. For Load Balancers of type
networksubnet mappings can only be added.final -
subnets
→ Input<
List< ?Subnet> ?> -
A list of subnets to attach to the LB. Only one of subnets, subnetIds or subnetMappings can be specified
final
-
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
xffHeaderProcessingMode
→ Input<
String?> ? -
Determines how the load balancer modifies the
X-Forwarded-Forheader in the HTTP request before sending the request to the target. The possible values areappend,preserve, andremove. Only valid for Load Balancers of typeapplication. The default isappend.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited