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.

Container for the parameters to the ModifyTargetGroup operation. Modifies the health checks used when evaluating the health state of the targets in the specified target group.

To monitor the health of the targets, use DescribeTargetHealth.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElasticLoadBalancingV2.AmazonElasticLoadBalancingV2Request
      Amazon.ElasticLoadBalancingV2.Model.ModifyTargetGroupRequest

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

Syntax

C#
public class ModifyTargetGroupRequest : AmazonElasticLoadBalancingV2Request
         IAmazonWebServiceRequest

The ModifyTargetGroupRequest type exposes the following members

Constructors

NameDescription
Public Method ModifyTargetGroupRequest()

Properties

NameTypeDescription
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. For Application Load Balancers, the range is 5 to 300 seconds. For Network Load Balancers, the supported values are 10 or 30 seconds.

Public Property HealthCheckPath System.String

Gets and sets the property HealthCheckPath.

[HTTP/HTTPS health checks] The ping path that is the destination for the health check request.

Public Property HealthCheckPort System.String

Gets and sets the property HealthCheckPort.

The port the load balancer uses when performing health checks on targets.

Public Property HealthCheckProtocol Amazon.ElasticLoadBalancingV2.ProtocolEnum

Gets and sets the property HealthCheckProtocol.

The protocol the load balancer uses when performing health checks on targets. The TCP protocol is supported only if the protocol of the target group is TCP.

Public Property HealthCheckTimeoutSeconds System.Int32

Gets and sets the property HealthCheckTimeoutSeconds.

[HTTP/HTTPS health checks] 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 Matcher Amazon.ElasticLoadBalancingV2.Model.Matcher

Gets and sets the property Matcher.

[HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful response from a target.

Public Property TargetGroupArn System.String

Gets and sets the property TargetGroupArn.

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

Public Property UnhealthyThresholdCount System.Int32

Gets and sets the property UnhealthyThresholdCount.

The number of consecutive health check failures required before considering the target unhealthy. For Network Load Balancers, this value must be the same as the healthy threshold count.

Examples

This example changes the configuration of the health checks used to evaluate the health of the targets for the specified target group.

To modify the health check configuration for a target group


var response = client.ModifyTargetGroup(new ModifyTargetGroupRequest 
{
    HealthCheckPort = "443",
    HealthCheckProtocol = "HTTPS",
    TargetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f"
});

List targetGroups = response.TargetGroups;

            

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms