Interface CfnTargetGroup.ITargetProperty
Describes a target.
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public interface ITargetProperty
Syntax (vb)
Public Interface 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
Properties
Id | The ID of the target. |
Port | The port on which the target is listening. |
Properties
Id
The ID of the target.
string Id { get; }
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.
virtual Nullable<double> Port { get; }
Property Value
System.Nullable<System.Double>
Remarks
For HTTP, the default is 80
. For HTTPS, the default is 443
.