interface HttpHealthCheckOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.Alpha.HttpHealthCheckOptions |
![]() | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#HttpHealthCheckOptions |
![]() | software.amazon.awscdk.services.apprunner.alpha.HttpHealthCheckOptions |
![]() | aws_cdk.aws_apprunner_alpha.HttpHealthCheckOptions |
![]() | @aws-cdk/aws-apprunner-alpha ยป HttpHealthCheckOptions |
Properties used to define HTTP Based healthchecks.
Example
new apprunner.Service(this, 'Service', {
source: apprunner.Source.fromEcrPublic({
imageConfiguration: { port: 8000 },
imageIdentifier: 'public.ecr.aws/aws-containers/hello-app-runner:latest',
}),
healthCheck: apprunner.HealthCheck.http({
healthyThreshold: 5,
interval: Duration.seconds(10),
path: '/',
timeout: Duration.seconds(10),
unhealthyThreshold: 10,
}),
});
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. |
path? | string | The URL that health check requests are sent to. |
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.
path?
Type:
string
(optional, default: /)
The URL that health check requests are sent to.
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.