AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Information about a target group.

Inheritance Hierarchy

System.Object
  Amazon.ElasticLoadBalancingV2.Model.TargetGroup

Namespace: Amazon.ElasticLoadBalancingV2.Model
Assembly: AWSSDK.ElasticLoadBalancingV2.dll
Version: 3.x.y.z

Syntax

C#
public class TargetGroup

The TargetGroup type exposes the following members

Constructors

NameDescription
Public Method TargetGroup()

Properties

NameTypeDescription
Public Property HealthCheckEnabled System.Boolean

Gets and sets the property HealthCheckEnabled.

Indicates whether health checks are enabled.

Public Property HealthCheckIntervalSeconds System.Int32

Gets and sets the property HealthCheckIntervalSeconds.

The approximate amount of time, in seconds, between health checks of an individual target.

Public Property HealthCheckPath System.String

Gets and sets the property HealthCheckPath.

The destination for health checks on the targets.

Public Property HealthCheckPort System.String

Gets and sets the property HealthCheckPort.

The port to use to connect with the target.

Public Property HealthCheckProtocol Amazon.ElasticLoadBalancingV2.ProtocolEnum

Gets and sets the property HealthCheckProtocol.

The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

Public Property HealthCheckTimeoutSeconds System.Int32

Gets and sets the property HealthCheckTimeoutSeconds.

The amount of time, in seconds, during which no response means a failed health check.

Public Property HealthyThresholdCount System.Int32

Gets and sets the property HealthyThresholdCount.

The number of consecutive health checks successes required before considering an unhealthy target healthy.

Public Property IpAddressType Amazon.ElasticLoadBalancingV2.TargetGroupIpAddressTypeEnum

Gets and sets the property IpAddressType.

The type of IP address used for this target group. The possible values are ipv4 and ipv6. This is an optional parameter. If not specified, the IP address type defaults to ipv4.

Public Property LoadBalancerArns System.Collections.Generic.List<System.String>

Gets and sets the property LoadBalancerArns.

The Amazon Resource Name (ARN) of the load balancer that routes traffic to this target group. You can use each target group with only one load balancer.

Public Property Matcher Amazon.ElasticLoadBalancingV2.Model.Matcher

Gets and sets the property Matcher.

The HTTP or gRPC codes to use when checking for a successful response from a target.

Public Property Port System.Int32

Gets and sets the property Port.

The port on which the targets are listening. This parameter is not used if the target is a Lambda function.

Public Property Protocol Amazon.ElasticLoadBalancingV2.ProtocolEnum

Gets and sets the property Protocol.

The protocol to use for routing traffic to the targets.

Public Property ProtocolVersion System.String

Gets and sets the property ProtocolVersion.

[HTTP/HTTPS protocol] The protocol version. The possible values are GRPC, HTTP1, and HTTP2.

Public Property TargetGroupArn System.String

Gets and sets the property TargetGroupArn.

The Amazon Resource Name (ARN) of the target group.

Public Property TargetGroupName System.String

Gets and sets the property TargetGroupName.

The name of the target group.

Public Property TargetType Amazon.ElasticLoadBalancingV2.TargetTypeEnum

Gets and sets the property TargetType.

The type of target that you must specify when registering targets with this target group. The possible values are instance (register targets by instance ID), ip (register targets by IP address), lambda (register a single Lambda function as a target), or alb (register a single Application Load Balancer as a target).

Public Property UnhealthyThresholdCount System.Int32

Gets and sets the property UnhealthyThresholdCount.

The number of consecutive health check failures required before considering the target unhealthy.

Public Property VpcId System.String

Gets and sets the property VpcId.

The ID of the VPC for the targets.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5