Interface TargetGroupAttributes

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
TargetGroupImportProps
All Known Implementing Classes:
TargetGroupAttributes.Jsii$Proxy, TargetGroupImportProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:44.396Z") @Stability(Stable) public interface TargetGroupAttributes extends software.amazon.jsii.JsiiSerializable
Properties to reference an existing target group.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.elasticloadbalancingv2.*;
 TargetGroupAttributes targetGroupAttributes = TargetGroupAttributes.builder()
         .targetGroupArn("targetGroupArn")
         // the properties below are optional
         .defaultPort("defaultPort")
         .loadBalancerArns("loadBalancerArns")
         .build();
 
  • Method Details

    • getTargetGroupArn

      @Stability(Stable) @NotNull String getTargetGroupArn()
      ARN of the target group.
    • getDefaultPort

      @Stability(Deprecated) @Deprecated @Nullable default String getDefaultPort()
      Deprecated.
      • This property is unused and the wrong type. No need to use it.
      (deprecated) Port target group is listening on.

    • getLoadBalancerArns

      @Stability(Stable) @Nullable default String getLoadBalancerArns()
      A Token representing the list of ARNs for the load balancer routing to this target group.
    • builder

      @Stability(Stable) static TargetGroupAttributes.Builder builder()
      Returns:
      a TargetGroupAttributes.Builder of TargetGroupAttributes