interface TargetProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.VpcLattice.Mixins.CfnTargetGroupPropsMixin.TargetProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsvpclattice/mixins#CfnTargetGroupPropsMixin_TargetProperty |
Java | software.amazon.awscdk.mixins.preview.services.vpclattice.mixins.CfnTargetGroupPropsMixin.TargetProperty |
Python | aws_cdk.mixins_preview.aws_vpclattice.mixins.CfnTargetGroupPropsMixin.TargetProperty |
TypeScript | @aws-cdk/mixins-preview » aws_vpclattice » mixins » CfnTargetGroupPropsMixin » 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 { mixins as vpclattice_mixins } from '@aws-cdk/mixins-preview/aws-vpclattice';
const targetProperty: vpclattice_mixins.CfnTargetGroupPropsMixin.TargetProperty = {
id: 'id',
port: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| id? | string | The ID of the target. |
| port? | number | The port on which the target is listening. |
id?
Type:
string
(optional)
The ID of the target.
If the target group type is INSTANCE , this is an instance ID. If the target group type is IP , this is an IP address. If the target group type is LAMBDA , this is the ARN of a Lambda function. If the target group type is ALB , this is the ARN of an 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.

.NET
Go
Java
Python
TypeScript