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.
For more information, see Target groups in the Amazon VPC Lattice User Guide .
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()
.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")
.lambdaEventStructureVersion("lambdaEventStructureVersion")
.port(123)
.protocol("protocol")
.protocolVersion("protocolVersion")
.vpcIdentifier("vpcIdentifier")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTargetGroup.TargetGroupConfigPropertystatic final classAn implementation forCfnTargetGroup.TargetGroupConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe health check configuration.default StringThe type of IP address used for the target group.default StringThe version of the event structure that your Lambda function receives.default NumbergetPort()The port on which the targets are listening.default StringThe protocol to use for routing traffic to the targets.default StringThe protocol version.default StringThe ID of the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHealthCheck
The health check configuration.Not supported if the target group type is
LAMBDAorALB.- See Also:
-
getIpAddressType
The type of IP address used for the target group.Supported only if the target group type is
IP. The default isIPV4.Default: - "IPV4"
- See Also:
-
getLambdaEventStructureVersion
The version of the event structure that your Lambda function receives.Supported only if the target group type is
LAMBDA. The default isV1.- See Also:
-
getPort
The port on which the targets are listening.For HTTP, the default is 80. For HTTPS, the default is 443. Not supported if the target group type is
LAMBDA.- See Also:
-
getProtocol
The protocol to use for routing traffic to the targets.The default is the protocol of the target group. Not supported if the target group type is
LAMBDA.- See Also:
-
getProtocolVersion
The protocol version.The default is
HTTP1. Not supported if the target group type isLAMBDA.Default: - "HTTP1"
- See Also:
-
getVpcIdentifier
The ID of the VPC.Not supported if the target group type is
LAMBDA.- See Also:
-
builder
-