Class CfnTargetGroup.TargetProperty
Describes a target.
Inheritance
System.Object
CfnTargetGroup.TargetProperty
Implements
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public class TargetProperty : Object, CfnTargetGroup.ITargetProperty
Syntax (vb)
Public Class TargetProperty
Inherits Object
Implements CfnTargetGroup.ITargetProperty
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.AWS.VpcLattice;
var targetProperty = new TargetProperty {
Id = "id",
// the properties below are optional
Port = 123
};
Synopsis
Constructors
TargetProperty() |
Properties
Id | The ID of the target. |
Port | The port on which the target is listening. |
Constructors
TargetProperty()
public TargetProperty()
Properties
Id
The ID of the target.
public string Id { get; set; }
Property Value
System.String
Remarks
If the target type of the target group is INSTANCE
, this is an instance ID. If the target type is IP
, this is an IP address. If the target type is LAMBDA
, this is the ARN of the Lambda function. If the target type is ALB
, this is the ARN of the Application Load Balancer.
Port
The port on which the target is 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
.