Interface IBaseTargetGroupProps
Basic properties of both Application and Network Target Groups.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IBaseTargetGroupProps
Syntax (vb)
Public Interface IBaseTargetGroupProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
Vpc vpc;
var baseTargetGroupProps = new BaseTargetGroupProps {
DeregistrationDelay = Duration.Minutes(30),
HealthCheck = new HealthCheck {
Enabled = false,
HealthyGrpcCodes = "healthyGrpcCodes",
HealthyHttpCodes = "healthyHttpCodes",
HealthyThresholdCount = 123,
Interval = Duration.Minutes(30),
Path = "path",
Port = "port",
Protocol = Protocol.HTTP,
Timeout = Duration.Minutes(30),
UnhealthyThresholdCount = 123
},
TargetGroupName = "targetGroupName",
TargetType = TargetType.INSTANCE,
Vpc = vpc
};
Synopsis
Properties
DeregistrationDelay | The amount of time for Elastic Load Balancing to wait before deregistering a target. |
HealthCheck | Health check configuration. |
TargetGroupName | The name of the target group. |
TargetType | The type of targets registered to this TargetGroup, either IP or Instance. |
Vpc | The virtual private cloud (VPC). |
Properties
DeregistrationDelay
The amount of time for Elastic Load Balancing to wait before deregistering a target.
virtual Duration DeregistrationDelay { get; }
Property Value
Remarks
The range is 0-3600 seconds.
Default: 300
HealthCheck
Health check configuration.
virtual IHealthCheck HealthCheck { get; }
Property Value
Remarks
Default: - The default value for each property in this configuration varies depending on the target.
TargetGroupName
The name of the target group.
virtual string TargetGroupName { get; }
Property Value
System.String
Remarks
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.
Default: - Automatically generated.
TargetType
The type of targets registered to this TargetGroup, either IP or Instance.
virtual Nullable<TargetType> TargetType { get; }
Property Value
System.Nullable<TargetType>
Remarks
All targets registered into the group must be of this type. If you register targets to the TargetGroup in the CDK app, the TargetType is determined automatically.
Default: - Determined automatically.
Vpc
The virtual private cloud (VPC).
virtual IVpc Vpc { get; }
Property Value
Remarks
only if TargetType
is Ip
or InstanceId
Default: - undefined