NetworkLoadBalancerArgs constructor
- Input<
LoadBalancerAccessLogs?> ? accessLogs, - Input<
int?> ? clientKeepAlive, - Input<
LoadBalancerConnectionLogs?> ? connectionLogs, - Input<
String?> ? customerOwnedIpv4Pool, - Input<
TargetGroup?> ? defaultTargetGroup, - Input<
int?> ? defaultTargetGroupPort, - Input<
String?> ? desyncMitigationMode, - Input<
String?> ? dnsRecordClientRoutingPolicy, - Input<
bool?> ? dropInvalidHeaderFields, - Input<
bool?> ? enableCrossZoneLoadBalancing, - Input<
bool?> ? enableDeletionProtection, - 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,Listener> ?> - Input<
LoadBalancerMinimumLoadBalancerCapacity?> ? minimumLoadBalancerCapacity, - Input<
String?> ? name, - Input<
String?> ? namePrefix, - Input<
bool?> ? preserveHostHeader, - Input<
String?> ? region, - Input<
int?> ? secondaryIpsAutoAssignedPerSubnet, - Input<
List< ? securityGroups,String> ?> - Input<
List< ? subnetIds,String> ?> - Input<
List< ? subnetMappings,LoadBalancerSubnetMapping> ?> - Input<
List< ? subnets,Subnet> ?> - Input<
Map< ? tags,String, String> ?> - Input<
String?> ? xffHeaderProcessingMode,
Creates a new NetworkLoadBalancerArgs.
accessLogs Access Logs block. See below.
clientKeepAlive Client keep alive value in seconds. The valid range is 60-604800 seconds. The default is 3600 seconds.
connectionLogs Connection Logs block. See below. Only valid for Load Balancers of type application.
customerOwnedIpv4Pool ID of the customer owned ipv4 pool to use for this load balancer.
defaultTargetGroup Options creating a default target group.
defaultTargetGroupPort Port to use to connect with the target. Valid values are ports 1-65535. Defaults to 80.
desyncMitigationMode 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.
dnsRecordClientRoutingPolicy How traffic is distributed among the load balancer Availability Zones. Possible values are anyAvailabilityZone (default), availabilityZoneAffinity, or partialAvailabilityZoneAffinity. See Availability Zone DNS affinity for additional details. Only valid for network type load balancers.
dropInvalidHeaderFields 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.
enableCrossZoneLoadBalancing If true, cross-zone load balancing of the load balancer will be enabled. For network and gateway type load balancers, this feature is disabled by default (false). For application load balancer this feature is always enabled (true) and cannot be disabled. Defaults to false.
enableDeletionProtection 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.
enablePrefixForIpv6SourceNat Whether to use an IPv6 prefix from each subnet for source NAT. ipAddressType must be dualstack. Valid values: on, off.
enableTlsVersionAndCipherSuiteHeaders Whether the two headers (x-amzn-tls-version and x-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 type application. Defaults to false
enableWafFailOpen 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.
enableXffClientPort Whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer in application load balancers. Defaults to false.
enableZonalShift Whether zonal shift is enabled. Defaults to false.
enforceSecurityGroupInboundRulesOnPrivateLinkTraffic Whether inbound security group rules are enforced for traffic originating from a PrivateLink. Only valid for Load Balancers of type network. The possible values are on and off.
healthCheckLogs Health Check Logs block. See below. Only valid for Load Balancers of type application.
idleTimeout Time in seconds that the connection is allowed to be idle. Only valid for Load Balancers of type application. Default: 60.
internal If true, the LB will be internal. Defaults to false.
ipAddressType 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), and dualstack-without-public-ipv4 (type application only).
ipamPools . The IPAM pools to use with the load balancer. Only valid for Load Balancers of type application. See ipamPools for more information.
listener A listener to create. Only one of listener and listeners can be specified.
listeners List of listeners to create. Only one of listener and listeners can be specified.
minimumLoadBalancerCapacity Minimum capacity for a load balancer. Only valid for Load Balancers of type application or network.
name 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.
namePrefix Creates a unique name beginning with the specified prefix. Conflicts with name.
preserveHostHeader 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.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
secondaryIpsAutoAssignedPerSubnet 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.
securityGroups List of security group IDs to assign to the LB. Only valid for Load Balancers of type application or network. For load balancers of type network security 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.
subnetIds List of subnet IDs to attach to the LB. For Load Balancers of type network subnets can only be added (see Availability Zones), deleting a subnet for load balancers of type network will force a recreation of the resource.
subnetMappings Subnet mapping block. See below. For Load Balancers of type network subnet mappings can only be added.
subnets A list of subnets to attach to the LB. Only one of subnets, subnetIds or subnetMappings can be specified
tags Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
xffHeaderProcessingMode Determines how the load balancer modifies the X-Forwarded-For header in the HTTP request before sending the request to the target. The possible values are append, preserve, and remove. Only valid for Load Balancers of type application. The default is append.
Implementation
const NetworkLoadBalancerArgs({
this.accessLogs,
this.clientKeepAlive,
this.connectionLogs,
this.customerOwnedIpv4Pool,
this.defaultTargetGroup,
this.defaultTargetGroupPort,
this.desyncMitigationMode,
this.dnsRecordClientRoutingPolicy,
this.dropInvalidHeaderFields,
this.enableCrossZoneLoadBalancing,
this.enableDeletionProtection,
this.enablePrefixForIpv6SourceNat,
this.enableTlsVersionAndCipherSuiteHeaders,
this.enableWafFailOpen,
this.enableXffClientPort,
this.enableZonalShift,
this.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic,
this.healthCheckLogs,
this.idleTimeout,
this.internal,
this.ipAddressType,
this.ipamPools,
this.listener,
this.listeners,
this.minimumLoadBalancerCapacity,
this.name,
this.namePrefix,
this.preserveHostHeader,
this.region,
this.secondaryIpsAutoAssignedPerSubnet,
this.securityGroups,
this.subnetIds,
this.subnetMappings,
this.subnets,
this.tags,
this.xffHeaderProcessingMode,
});