Class CfnTargetGroup.TargetGroupConfigProperty
Describes the configuration of a target group.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TargetGroupConfigProperty : Object, CfnTargetGroup.ITargetGroupConfigProperty
Syntax (vb)
Public Class TargetGroupConfigProperty
Inherits Object
Implements CfnTargetGroup.ITargetGroupConfigProperty
Remarks
For more information, see Target groups in the Amazon VPC Lattice User Guide .
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.AWS.VpcLattice;
var targetGroupConfigProperty = new TargetGroupConfigProperty {
HealthCheck = new HealthCheckConfigProperty {
Enabled = false,
HealthCheckIntervalSeconds = 123,
HealthCheckTimeoutSeconds = 123,
HealthyThresholdCount = 123,
Matcher = new MatcherProperty {
HttpCode = "httpCode"
},
Path = "path",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
UnhealthyThresholdCount = 123
},
IpAddressType = "ipAddressType",
LambdaEventStructureVersion = "lambdaEventStructureVersion",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
VpcIdentifier = "vpcIdentifier"
};
Synopsis
Constructors
TargetGroupConfigProperty() |
Properties
HealthCheck | The health check configuration. |
IpAddressType | The type of IP address used for the target group. |
LambdaEventStructureVersion | The version of the event structure that your Lambda function receives. |
Port | The port on which the targets are listening. |
Protocol | The protocol to use for routing traffic to the targets. |
ProtocolVersion | The protocol version. |
VpcIdentifier | The ID of the VPC. |
Constructors
TargetGroupConfigProperty()
public TargetGroupConfigProperty()
Properties
HealthCheck
The health check configuration.
public object HealthCheck { get; set; }
Property Value
System.Object
Remarks
Not supported if the target group type is LAMBDA
or ALB
.
IpAddressType
The type of IP address used for the target group.
public string IpAddressType { get; set; }
Property Value
System.String
Remarks
Supported only if the target group type is IP
. The default is IPV4
.
Default: - "IPV4"
LambdaEventStructureVersion
The version of the event structure that your Lambda function receives.
public string LambdaEventStructureVersion { get; set; }
Property Value
System.String
Remarks
Supported only if the target group type is LAMBDA
. The default is V1
.
Port
The port on which the targets are listening.
public Nullable<double> Port { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
For HTTP, the default is 80. For HTTPS, the default is 443. Not supported if the target group type is LAMBDA
.
Protocol
The protocol to use for routing traffic to the targets.
public string Protocol { get; set; }
Property Value
System.String
Remarks
The default is the protocol of the target group. Not supported if the target group type is LAMBDA
.
ProtocolVersion
The protocol version.
public string ProtocolVersion { get; set; }
Property Value
System.String
Remarks
The default is HTTP1
. Not supported if the target group type is LAMBDA
.
Default: - "HTTP1"
VpcIdentifier
The ID of the VPC.
public string VpcIdentifier { get; set; }
Property Value
System.String
Remarks
Not supported if the target group type is LAMBDA
.