TargetGroupArgs constructor
- Input<
bool?> ? connectionTermination, - Input<
int?> ? deregistrationDelay, - Input<
TargetGroupHealthCheck?> ? healthCheck, - Input<
String?> ? ipAddressType, - Input<
bool?> ? lambdaMultiValueHeadersEnabled, - Input<
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,String, String> ?> - Input<
int?> ? targetControlPort, - Input<
List< ? targetFailovers,TargetGroupTargetFailover> ?> - Input<
TargetGroupTargetGroupHealth?> ? targetGroupHealth, - Input<
List< ? targetHealthStates,TargetGroupTargetHealthState> ?> - Input<
String?> ? targetType, - Input<
String?> ? vpcId,
Creates a new TargetGroupArgs.
connectionTermination Whether to terminate connections at the end of the deregistration timeout on Network Load Balancers. See doc for more information. Default is false.
deregistrationDelay 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.
healthCheck Health Check configuration block. Detailed below.
ipAddressType The type of IP addresses used by the target group, only supported when target type is set to ip. Possible values are ipv4 or ipv6.
lambdaMultiValueHeadersEnabled Whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies when targetType is lambda. Default is false.
loadBalancingAlgorithmType Determines how the load balancer selects targets when routing requests. Only applicable for Application Load Balancer Target Groups. The value is roundRobin, leastOutstandingRequests, or weightedRandom. The default is roundRobin.
loadBalancingAnomalyMitigation Determines whether to enable target anomaly mitigation. Target anomaly mitigation is only supported by the weightedRandom load balancing algorithm type. See doc for more information. The value is "on" or "off". The default is "off".
loadBalancingCrossZoneEnabled Indicates whether cross zone load balancing is enabled. The value is "true", "false" or "useLoadBalancerConfiguration". The default is "useLoadBalancerConfiguration".
name 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.
namePrefix Creates a unique name beginning with the specified prefix. Conflicts with name. Cannot be longer than 6 characters.
port Port on which targets receive traffic, unless overridden when registering a specific target. Required when targetType is instance, ip or alb. Does not apply when targetType is lambda.
preserveClientIp Whether client IP preservation is enabled. See doc for more information.
protocol Protocol to use for routing traffic to the targets.
protocolVersion Only applicable when protocol is HTTP or HTTPS. The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1
proxyProtocolV2 Whether to enable support for proxy protocol v2 on Network Load Balancers. See doc for more information. Default is false.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
slowStart 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.
stickiness Stickiness configuration block. Detailed below.
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.
targetControlPort 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 targetType is instance or ip.
targetFailovers Target failover block. Only applicable for Gateway Load Balancer target groups. See targetFailover for more information.
targetGroupHealth Target health requirements block. See targetGroupHealth for more information.
targetHealthStates Target health state block. Only applicable for Network Load Balancer target groups when protocol is TCP or TLS. See targetHealthState for more information.
targetType Type of target that you must specify when registering targets with this target group.
vpcId Identifier of the VPC in which to create the target group. Required when targetType is instance, ip or alb. Does not apply when targetType is lambda.
Implementation
const TargetGroupArgs({
this.connectionTermination,
this.deregistrationDelay,
this.healthCheck,
this.ipAddressType,
this.lambdaMultiValueHeadersEnabled,
this.loadBalancingAlgorithmType,
this.loadBalancingAnomalyMitigation,
this.loadBalancingCrossZoneEnabled,
this.name,
this.namePrefix,
this.port,
this.preserveClientIp,
this.protocol,
this.protocolVersion,
this.proxyProtocolV2,
this.region,
this.slowStart,
this.stickiness,
this.tags,
this.targetControlPort,
this.targetFailovers,
this.targetGroupHealth,
this.targetHealthStates,
this.targetType,
this.vpcId,
});