aws-cdk-lib.aws_vpclattice.CfnTargetGroup.TargetProperty

interface TargetProperty

LanguageType name
.NETAmazon.CDK.AWS.VpcLattice.CfnTargetGroup.TargetProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsvpclattice#CfnTargetGroup_TargetProperty
Javasoftware.amazon.awscdk.services.vpclattice.CfnTargetGroup.TargetProperty
Pythonaws_cdk.aws_vpclattice.CfnTargetGroup.TargetProperty
TypeScript aws-cdk-lib » aws_vpclattice » CfnTargetGroup » TargetProperty

Describes a target.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const targetProperty: vpclattice.CfnTargetGroup.TargetProperty = {
  id: 'id',

  // the properties below are optional
  port: 123,
};

Properties

NameTypeDescription
idstringThe ID of the target.
port?numberThe port on which the target is listening.

id

Type: string

The ID of the target.

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?

Type: number (optional)

The port on which the target is listening.

For HTTP, the default is 80 . For HTTPS, the default is 443 .