LoadBalancerState class
Input properties used for looking up and filtering LoadBalancer resources.
Constructors
-
LoadBalancerState({Input<
LoadBalancerAccessLogs?> ? accessLogs, Input<String?> ? arn, Input<String?> ? arnSuffix, Input<int?> ? clientKeepAlive, Input<LoadBalancerConnectionLogs?> ? connectionLogs, Input<String?> ? customerOwnedIpv4Pool, Input<String?> ? desyncMitigationMode, Input<String?> ? dnsName, Input<String?> ? dnsRecordClientRoutingPolicy, Input<bool?> ? dropInvalidHeaderFields, Input<bool?> ? enableCrossZoneLoadBalancing, 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<String?> ? loadBalancerType, Input<LoadBalancerMinimumLoadBalancerCapacity?> ? minimumLoadBalancerCapacity, Input<String?> ? name, Input<String?> ? namePrefix, Input<bool?> ? preserveHostHeader, Input<String?> ? region, Input<int?> ? secondaryIpsAutoAssignedPerSubnet, Input<List< ? securityGroups, Input<String> ?>List< ? subnetMappings, Input<LoadBalancerSubnetMapping> ?>List< ? subnets, Input<String> ?>Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>String?> ? vpcId, Input<String?> ? xffHeaderProcessingMode, Input<String?> ? zoneId}) -
Creates a new LoadBalancerState.
accessLogsAccess Logs block. See below.arnARN of the load balancer.arnSuffixARN suffix for use with CloudWatch Metrics.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.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.dnsNameDNS name of the load balancer.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.enableCrossZoneLoadBalancingIf true, cross-zone load balancing of the load balancer will be enabled. Fornetworkandgatewaytype load balancers, this feature is disabled by default (false). Forapplicationload balancer this feature is always enabled (true) and cannot be disabled. Defaults tofalse.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.loadBalancerTypeType of load balancer to create. Possible values areapplication,gateway, ornetwork. The default value isapplication.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.subnetMappingsSubnet mapping block. See below. For Load Balancers of typenetworksubnet mappings can only be added.subnetsList 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.tagsMap 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.tagsAllMap of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.vpcIdOptional.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.zoneIdCanonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record).const -
LoadBalancerState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
accessLogs
→ Input<
LoadBalancerAccessLogs?> ? -
Access Logs block. See below.
final
-
arn
→ Input<
String?> ? -
ARN of the load balancer.
final
-
arnSuffix
→ Input<
String?> ? -
ARN suffix for use with CloudWatch Metrics.
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
-
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 -
dnsName
→ Input<
String?> ? -
DNS name of the load balancer.
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 -
enableCrossZoneLoadBalancing
→ Input<
bool?> ? -
If true, cross-zone load balancing of the load balancer will be enabled. For
networkandgatewaytype load balancers, this feature is disabled by default (false). Forapplicationload balancer this feature is always enabled (true) and cannot be disabled. Defaults tofalse.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 -
loadBalancerType
→ Input<
String?> ? -
Type of load balancer to create. Possible values are
application,gateway, ornetwork. The default value isapplication.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 -
subnetMappings
→ Input<
List< ?LoadBalancerSubnetMapping> ?> -
Subnet mapping block. See below. For Load Balancers of type
networksubnet mappings can only be added.final -
subnets
→ 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 -
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 -
Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
vpcId
→ Input<
String?> ? -
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 -
zoneId
→ Input<
String?> ? -
Canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record).
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