aws-cdk-lib.aws_elasticloadbalancingv2.LoadBalancerTargetProps

interface LoadBalancerTargetProps

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.LoadBalancerTargetProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#LoadBalancerTargetProps
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.LoadBalancerTargetProps
Pythonaws_cdk.aws_elasticloadbalancingv2.LoadBalancerTargetProps
TypeScript (source)aws-cdk-lib » aws_elasticloadbalancingv2 » LoadBalancerTargetProps

Obtainable from AutoScalingGroup.attachToApplicationTargetGroup(), AutoScalingGroup.attachToNetworkTargetGroup(), BaseService.attachToApplicationTargetGroup(), BaseService.attachToNetworkTargetGroup(), ExternalService.attachToApplicationTargetGroup(), AlbArnTarget.attachToNetworkTargetGroup(), InstanceIdTarget.attachToApplicationTargetGroup(), InstanceIdTarget.attachToNetworkTargetGroup(), IpTarget.attachToApplicationTargetGroup(), IpTarget.attachToNetworkTargetGroup(), LambdaTarget.attachToApplicationTargetGroup(), LambdaTarget.attachToNetworkTargetGroup()

Result of attaching a target to load balancer.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';

declare const targetJson: any;
const loadBalancerTargetProps: elbv2.LoadBalancerTargetProps = {
  targetType: elbv2.TargetType.INSTANCE,

  // the properties below are optional
  targetJson: targetJson,
};

Properties

NameTypeDescription
targetTypeTargetTypeWhat kind of target this is.
targetJson?anyJSON representing the target's direct addition to the TargetGroup list.

targetType

Type: TargetType

What kind of target this is.


targetJson?

Type: any (optional)

JSON representing the target's direct addition to the TargetGroup list.

May be omitted if the target is going to register itself later.