TargetGroupState class
Input properties used for looking up and filtering TargetGroup resources.
Constructors
-
TargetGroupState({Input<
String?> ? arn, Input<String?> ? arnSuffix, Input<bool?> ? connectionTermination, Input<int?> ? deregistrationDelay, Input<TargetGroupHealthCheck?> ? healthCheck, Input<String?> ? ipAddressType, Input<bool?> ? lambdaMultiValueHeadersEnabled, Input<List< ? loadBalancerArns, Input<String> ?>String?> ? loadBalancingAlgorithmType, Input<String?> ? loadBalancingAnomalyMitigation, Input<String?> ? loadBalancingCrossZoneEnabled, Input<String?> ? name, Input<String?> ? namePrefix, Input<int?> ? port, Input<String?> ? preserveClientIp, Input<String?> ? protocol, Input<String?> ? protocolVersion, Input<bool?> ? proxyProtocolV2, Input<String?> ? region, Input<int?> ? slowStart, Input<TargetGroupStickiness?> ? stickiness, Input<Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>int?> ? targetControlPort, Input<List< ? targetFailovers, Input<TargetGroupTargetFailover> ?>TargetGroupTargetGroupHealth?> ? targetGroupHealth, Input<List< ? targetHealthStates, Input<TargetGroupTargetHealthState> ?>String?> ? targetType, Input<String?> ? vpcId}) -
Creates a new TargetGroupState.
arnARN of the Target Group (matchesid).arnSuffixARN suffix for use with CloudWatch Metrics.connectionTerminationWhether to terminate connections at the end of the deregistration timeout on Network Load Balancers. See doc for more information. Default isfalse.deregistrationDelayAmount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds.healthCheckHealth Check configuration block. Detailed below.ipAddressTypeThe type of IP addresses used by the target group, only supported when target type is set toip. Possible values areipv4oripv6.lambdaMultiValueHeadersEnabledWhether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies whentargetTypeislambda. Default isfalse.loadBalancerArnsARNs of the Load Balancers associated with the Target Group.loadBalancingAlgorithmTypeDetermines how the load balancer selects targets when routing requests. Only applicable for Application Load Balancer Target Groups. The value isroundRobin,leastOutstandingRequests, orweightedRandom. The default isroundRobin.loadBalancingAnomalyMitigationDetermines whether to enable target anomaly mitigation. Target anomaly mitigation is only supported by theweightedRandomload balancing algorithm type. See doc for more information. The value is"on"or"off". The default is"off".loadBalancingCrossZoneEnabledIndicates whether cross zone load balancing is enabled. The value is"true","false"or"useLoadBalancerConfiguration". The default is"useLoadBalancerConfiguration".nameName of the target group. If omitted, this provider will assign a random, unique name. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.namePrefixCreates a unique name beginning with the specified prefix. Conflicts withname. Cannot be longer than 6 characters.portPort on which targets receive traffic, unless overridden when registering a specific target. Required whentargetTypeisinstance,iporalb. Does not apply whentargetTypeislambda.preserveClientIpWhether client IP preservation is enabled. See doc for more information.protocolProtocol to use for routing traffic to the targets.protocolVersionOnly applicable whenprotocolisHTTPorHTTPS. The protocol version. SpecifyGRPCto send requests to targets using gRPC. SpecifyHTTP2to send requests to targets using HTTP/2. The default isHTTP1, which sends requests to targets using HTTP/1.1proxyProtocolV2Whether to enable support for proxy protocol v2 on Network Load Balancers. See doc for more information. Default isfalse.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.slowStartAmount time for targets to warm up before the load balancer sends them a full share of requests. The range is 30-900 seconds or 0 to disable. The default value is 0 seconds.stickinessStickiness configuration block. Detailed below.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.tagsAllA map of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.targetControlPortPort on which the target control agent and application load balancer exchange management traffic for the target optimizer feature. Only applicable for Application Load Balancer target groups whentargetTypeisinstanceorip.targetFailoversTarget failover block. Only applicable for Gateway Load Balancer target groups. See targetFailover for more information.targetGroupHealthTarget health requirements block. See targetGroupHealth for more information.targetHealthStatesTarget health state block. Only applicable for Network Load Balancer target groups whenprotocolisTCPorTLS. See targetHealthState for more information.targetTypeType of target that you must specify when registering targets with this target group.vpcIdIdentifier of the VPC in which to create the target group. Required whentargetTypeisinstance,iporalb. Does not apply whentargetTypeislambda.const -
TargetGroupState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
arn
→ Input<
String?> ? -
ARN of the Target Group (matches
id).final -
arnSuffix
→ Input<
String?> ? -
ARN suffix for use with CloudWatch Metrics.
final
-
connectionTermination
→ Input<
bool?> ? -
Whether to terminate connections at the end of the deregistration timeout on Network Load Balancers. See doc for more information. Default is
false.final -
deregistrationDelay
→ Input<
int?> ? -
Amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
healthCheck
→ Input<
TargetGroupHealthCheck?> ? -
Health Check configuration block. Detailed below.
final
-
ipAddressType
→ Input<
String?> ? -
The type of IP addresses used by the target group, only supported when target type is set to
ip. Possible values areipv4oripv6.final -
lambdaMultiValueHeadersEnabled
→ Input<
bool?> ? -
Whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies when
targetTypeislambda. Default isfalse.final -
loadBalancerArns
→ Input<
List< ?String> ?> -
ARNs of the Load Balancers associated with the Target Group.
final
-
loadBalancingAlgorithmType
→ Input<
String?> ? -
Determines how the load balancer selects targets when routing requests. Only applicable for Application Load Balancer Target Groups. The value is
roundRobin,leastOutstandingRequests, orweightedRandom. The default isroundRobin.final -
loadBalancingAnomalyMitigation
→ Input<
String?> ? -
Determines whether to enable target anomaly mitigation. Target anomaly mitigation is only supported by the
weightedRandomload balancing algorithm type. See doc for more information. The value is"on"or"off". The default is"off".final -
loadBalancingCrossZoneEnabled
→ Input<
String?> ? -
Indicates whether cross zone load balancing is enabled. The value is
"true","false"or"useLoadBalancerConfiguration". The default is"useLoadBalancerConfiguration".final -
name
→ Input<
String?> ? -
Name of the target group. If omitted, this provider will assign a random, unique name. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
final
-
namePrefix
→ Input<
String?> ? -
Creates a unique name beginning with the specified prefix. Conflicts with
name. Cannot be longer than 6 characters.final -
port
→ Input<
int?> ? -
Port on which targets receive traffic, unless overridden when registering a specific target. Required when
targetTypeisinstance,iporalb. Does not apply whentargetTypeislambda.final -
preserveClientIp
→ Input<
String?> ? -
Whether client IP preservation is enabled. See doc for more information.
final
-
protocol
→ Input<
String?> ? -
Protocol to use for routing traffic to the targets.
Should be one of
GENEVE,HTTP,HTTPS,TCP,TCP_UDP,TLS,UDP,QUIC, orTCP_QUIC. Required whentargetTypeisinstance,ip, oralb. Does not apply whentargetTypeislambda.final -
protocolVersion
→ Input<
String?> ? -
Only applicable when
protocolisHTTPorHTTPS. The protocol version. SpecifyGRPCto send requests to targets using gRPC. SpecifyHTTP2to send requests to targets using HTTP/2. The default isHTTP1, which sends requests to targets using HTTP/1.1final -
proxyProtocolV2
→ Input<
bool?> ? -
Whether to enable support for proxy protocol v2 on Network Load Balancers. See doc for more information. Default is
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
-
slowStart
→ Input<
int?> ? -
Amount time for targets to warm up before the load balancer sends them a full share of requests. The range is 30-900 seconds or 0 to disable. The default value is 0 seconds.
final
-
stickiness
→ Input<
TargetGroupStickiness?> ? -
Stickiness configuration block. Detailed below.
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 -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
targetControlPort
→ Input<
int?> ? -
Port on which the target control agent and application load balancer exchange management traffic for the target optimizer feature. Only applicable for Application Load Balancer target groups when
targetTypeisinstanceorip.final -
targetFailovers
→ Input<
List< ?TargetGroupTargetFailover> ?> -
Target failover block. Only applicable for Gateway Load Balancer target groups. See targetFailover for more information.
final
-
targetGroupHealth
→ Input<
TargetGroupTargetGroupHealth?> ? -
Target health requirements block. See targetGroupHealth for more information.
final
-
targetHealthStates
→ Input<
List< ?TargetGroupTargetHealthState> ?> -
Target health state block. Only applicable for Network Load Balancer target groups when
protocolisTCPorTLS. See targetHealthState for more information.final -
targetType
→ Input<
String?> ? -
Type of target that you must specify when registering targets with this target group.
See doc for supported values.
The default is
instance.final -
vpcId
→ Input<
String?> ? -
Identifier of the VPC in which to create the target group. Required when
targetTypeisinstance,iporalb. Does not apply whentargetTypeislambda.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