@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:30.799Z") @Stability(value=Stable) public interface BaseTargetGroupProps extends software.amazon.jsii.JsiiSerializable
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.ec2.*; import software.amazon.awscdk.services.elasticloadbalancingv2.*; import software.amazon.awscdk.core.*; Vpc vpc; BaseTargetGroupProps baseTargetGroupProps = BaseTargetGroupProps.builder() .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()) .targetGroupName("targetGroupName") .targetType(TargetType.INSTANCE) .vpc(vpc) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
BaseTargetGroupProps.Builder
A builder for
BaseTargetGroupProps |
static class |
BaseTargetGroupProps.Jsii$Proxy
An implementation for
BaseTargetGroupProps |
Modifier and Type | Method and Description |
---|---|
static BaseTargetGroupProps.Builder |
builder() |
default Duration |
getDeregistrationDelay()
The amount of time for Elastic Load Balancing to wait before deregistering a target.
|
default HealthCheck |
getHealthCheck()
Health check configuration.
|
default String |
getTargetGroupName()
The name of the target group.
|
default TargetType |
getTargetType()
The type of targets registered to this TargetGroup, either IP or Instance.
|
default IVpc |
getVpc()
The virtual private cloud (VPC).
|
@Stability(value=Stable) @Nullable default Duration getDeregistrationDelay()
The range is 0-3600 seconds.
Default: 300
@Stability(value=Stable) @Nullable default HealthCheck getHealthCheck()
Default: - The default value for each property in this configuration varies depending on the target.
@Stability(value=Stable) @Nullable default String getTargetGroupName()
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.
@Stability(value=Stable) @Nullable default TargetType getTargetType()
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.
@Stability(value=Stable) @Nullable default IVpc getVpc()
only if TargetType
is Ip
or InstanceId
Default: - undefined
@Stability(value=Stable) static BaseTargetGroupProps.Builder builder()
BaseTargetGroupProps.Builder
of BaseTargetGroupProps
Copyright © 2023. All rights reserved.