interface TcpHealthCheckOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.Alpha.TcpHealthCheckOptions |
![]() | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#TcpHealthCheckOptions |
![]() | software.amazon.awscdk.services.apprunner.alpha.TcpHealthCheckOptions |
![]() | aws_cdk.aws_apprunner_alpha.TcpHealthCheckOptions |
![]() | @aws-cdk/aws-apprunner-alpha ยป TcpHealthCheckOptions |
Properties used to define TCP Based healthchecks.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apprunner_alpha from '@aws-cdk/aws-apprunner-alpha';
import * as cdk from 'aws-cdk-lib';
const tcpHealthCheckOptions: apprunner_alpha.TcpHealthCheckOptions = {
healthyThreshold: 123,
interval: cdk.Duration.minutes(30),
timeout: cdk.Duration.minutes(30),
unhealthyThreshold: 123,
};
Properties
Name | Type | Description |
---|---|---|
healthy | number | The number of consecutive checks that must succeed before App Runner decides that the service is healthy. |
interval? | Duration | The time interval, in seconds, between health checks. |
timeout? | Duration | The time, in seconds, to wait for a health check response before deciding it failed. |
unhealthy | number | The number of consecutive checks that must fail before App Runner decides that the service is unhealthy. |
healthyThreshold?
Type:
number
(optional, default: 1)
The number of consecutive checks that must succeed before App Runner decides that the service is healthy.
interval?
Type:
Duration
(optional, default: Duration.seconds(5))
The time interval, in seconds, between health checks.
timeout?
Type:
Duration
(optional, default: Duration.seconds(2))
The time, in seconds, to wait for a health check response before deciding it failed.
unhealthyThreshold?
Type:
number
(optional, default: 5)
The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.