How to use the @aws-cdk/aws-elasticloadbalancingv2.TargetType function in @aws-cdk/aws-elasticloadbalancingv2

To help you get started, we’ve selected a few @aws-cdk/aws-elasticloadbalancingv2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / @aws-cdk / aws-elasticloadbalancingv2-targets / lib / instance-target.ts View on Github external
private attach(_targetGroup: elbv2.ITargetGroup): elbv2.LoadBalancerTargetProps {
    return {
      targetType: elbv2.TargetType.INSTANCE,
      targetJson: { id: this.instanceId, port: this.port }
    };
  }
}
github aws / aws-cdk / packages / @aws-cdk / aws-elasticloadbalancingv2-targets / lib / lambda-target.ts View on Github external
private attach(_targetGroup: elbv2.ITargetGroup): elbv2.LoadBalancerTargetProps {
    return {
      targetType: elbv2.TargetType.LAMBDA,
      targetJson: { id: this.fn.functionArn }
    };
  }
}
github aws / aws-cdk / packages / @aws-cdk / aws-elasticloadbalancingv2-targets / lib / ip-target.ts View on Github external
private attach(_targetGroup: elbv2.ITargetGroup): elbv2.LoadBalancerTargetProps {
    return {
      targetType: elbv2.TargetType.IP,
      targetJson: { id: this.ipAddress, port: this.port, availabilityZone: this.availabilityZone }
    };
  }
}
github aws / aws-cdk / packages / @aws-cdk / aws-autoscaling / lib / auto-scaling-group.ts View on Github external
public attachToNetworkTargetGroup(targetGroup: elbv2.INetworkTargetGroup): elbv2.LoadBalancerTargetProps {
    this.targetGroupArns.push(targetGroup.targetGroupArn);
    return { targetType: elbv2.TargetType.INSTANCE };
  }