Interface BaseTargetGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ApplicationTargetGroupProps,NetworkTargetGroupProps
- All Known Implementing Classes:
ApplicationTargetGroupProps.Jsii$Proxy,BaseTargetGroupProps.Jsii$Proxy,NetworkTargetGroupProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
Vpc vpc;
BaseTargetGroupProps baseTargetGroupProps = BaseTargetGroupProps.builder()
.crossZoneEnabled(false)
.deregistrationDelay(Duration.minutes(30))
.healthCheck(HealthCheck.builder()
.enabled(false)
.healthyGrpcCodes("healthyGrpcCodes")
.healthyHttpCodes("healthyHttpCodes")
.healthyThresholdCount(123)
.interval(Duration.minutes(30))
.path("path")
.port("port")
.protocol(Protocol.HTTP)
.timeout(Duration.minutes(30))
.unhealthyThresholdCount(123)
.build())
.ipAddressType(TargetGroupIpAddressType.IPV4)
.targetGroupHealth(TargetGroupHealth.builder()
.dnsMinimumHealthyTargetCount(123)
.dnsMinimumHealthyTargetPercentage(123)
.routingMinimumHealthyTargetCount(123)
.routingMinimumHealthyTargetPercentage(123)
.build())
.targetGroupName("targetGroupName")
.targetType(TargetType.INSTANCE)
.vpc(vpc)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBaseTargetGroupPropsstatic final classAn implementation forBaseTargetGroupProps -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseTargetGroupProps.Builderbuilder()default BooleanIndicates whether cross zone load balancing is enabled.default DurationThe amount of time for Elastic Load Balancing to wait before deregistering a target.default HealthCheckHealth check configuration.default TargetGroupIpAddressTypeThe type of IP addresses of the targets registered with the target group.default TargetGroupHealthConfiguring target group health.default StringThe name of the target group.default TargetTypeThe type of targets registered to this TargetGroup, either IP or Instance.default IVpcgetVpc()The virtual private cloud (VPC).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCrossZoneEnabled
Indicates whether cross zone load balancing is enabled.Default: - use load balancer configuration
- See Also:
-
getDeregistrationDelay
The amount of time for Elastic Load Balancing to wait before deregistering a target.The range is 0-3600 seconds.
Default: 300
-
getHealthCheck
Health check configuration.Default: - The default value for each property in this configuration varies depending on the target.
- See Also:
-
getIpAddressType
The type of IP addresses of the targets registered with the target group.Default: undefined - ELB defaults to IPv4
-
getTargetGroupHealth
Configuring target group health.Default: - use default configuration
- See Also:
-
getTargetGroupName
The name of the target group.This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
Default: - Automatically generated.
-
getTargetType
The type of targets registered to this TargetGroup, either IP or Instance.All targets registered into the group must be of this type. If you register targets to the TargetGroup in the CDK app, the TargetType is determined automatically.
Default: - Determined automatically.
-
getVpc
The virtual private cloud (VPC).only if
TargetTypeisIporInstanceIdDefault: - undefined
-
builder
- Returns:
- a
BaseTargetGroupProps.BuilderofBaseTargetGroupProps
-