Interface CfnTargetGroup.TargetGroupConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTargetGroup.TargetGroupConfigProperty.Jsii$Proxy
Enclosing class:
CfnTargetGroup

@Stability(Stable) public static interface CfnTargetGroup.TargetGroupConfigProperty extends software.amazon.jsii.JsiiSerializable
Describes the configuration of a target group.

Lambda functions don't support target group configuration.

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.vpclattice.*;
 TargetGroupConfigProperty targetGroupConfigProperty = TargetGroupConfigProperty.builder()
         .port(123)
         .protocol("protocol")
         .vpcIdentifier("vpcIdentifier")
         // the properties below are optional
         .healthCheck(HealthCheckConfigProperty.builder()
                 .enabled(false)
                 .healthCheckIntervalSeconds(123)
                 .healthCheckTimeoutSeconds(123)
                 .healthyThresholdCount(123)
                 .matcher(MatcherProperty.builder()
                         .httpCode("httpCode")
                         .build())
                 .path("path")
                 .port(123)
                 .protocol("protocol")
                 .protocolVersion("protocolVersion")
                 .unhealthyThresholdCount(123)
                 .build())
         .ipAddressType("ipAddressType")
         .protocolVersion("protocolVersion")
         .build();
 
  • Method Details

    • getPort

      @Stability(Stable) @NotNull Number getPort()
      The port on which the targets are listening.

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

    • getProtocol

      @Stability(Stable) @NotNull String getProtocol()
      The protocol to use for routing traffic to the targets.

      Default is the protocol of a target group.

    • getVpcIdentifier

      @Stability(Stable) @NotNull String getVpcIdentifier()
      The ID of the VPC.
    • getHealthCheck

      @Stability(Stable) @Nullable default Object getHealthCheck()
      The health check configuration.
    • getIpAddressType

      @Stability(Stable) @Nullable default String getIpAddressType()
      The type of IP address used for the target group.

      The possible values are ipv4 and ipv6 . This is an optional parameter. If not specified, the IP address type defaults to ipv4 .

    • getProtocolVersion

      @Stability(Stable) @Nullable default String getProtocolVersion()
      The protocol version.

      Default value is HTTP1 .

    • builder

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