GatewayConnectorHealthCheckProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const gatewayConnectorHealthCheckProperty: ecs.CfnService.GatewayConnectorHealthCheckProperty = {
healthCheckIntervalSeconds: 123,
healthCheckPath: 'healthCheckPath',
healthCheckPort: 123,
healthCheckProtocol: 'healthCheckProtocol',
healthCheckTimeoutSeconds: 123,
healthyThresholdCount: 123,
matcher: {
grpcCode: 'grpcCode',
httpCode: 'httpCode',
},
unhealthyThresholdCount: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
gateway_connector_health_check_property = ecs.CfnService.GatewayConnectorHealthCheckProperty(
health_check_interval_seconds=123,
health_check_path="healthCheckPath",
health_check_port=123,
health_check_protocol="healthCheckProtocol",
health_check_timeout_seconds=123,
healthy_threshold_count=123,
matcher=ecs.CfnService.GatewayConnectorHealthCheckMatcherProperty(
grpc_code="grpcCode",
http_code="httpCode"
),
unhealthy_threshold_count=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
GatewayConnectorHealthCheckProperty gatewayConnectorHealthCheckProperty = GatewayConnectorHealthCheckProperty.builder()
.healthCheckIntervalSeconds(123)
.healthCheckPath("healthCheckPath")
.healthCheckPort(123)
.healthCheckProtocol("healthCheckProtocol")
.healthCheckTimeoutSeconds(123)
.healthyThresholdCount(123)
.matcher(GatewayConnectorHealthCheckMatcherProperty.builder()
.grpcCode("grpcCode")
.httpCode("httpCode")
.build())
.unhealthyThresholdCount(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var gatewayConnectorHealthCheckProperty = new GatewayConnectorHealthCheckProperty {
HealthCheckIntervalSeconds = 123,
HealthCheckPath = "healthCheckPath",
HealthCheckPort = 123,
HealthCheckProtocol = "healthCheckProtocol",
HealthCheckTimeoutSeconds = 123,
HealthyThresholdCount = 123,
Matcher = new GatewayConnectorHealthCheckMatcherProperty {
GrpcCode = "grpcCode",
HttpCode = "httpCode"
},
UnhealthyThresholdCount = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
gatewayConnectorHealthCheckProperty := &GatewayConnectorHealthCheckProperty{
HealthCheckIntervalSeconds: jsii.Number(123),
HealthCheckPath: jsii.String("healthCheckPath"),
HealthCheckPort: jsii.Number(123),
HealthCheckProtocol: jsii.String("healthCheckProtocol"),
HealthCheckTimeoutSeconds: jsii.Number(123),
HealthyThresholdCount: jsii.Number(123),
Matcher: &GatewayConnectorHealthCheckMatcherProperty{
GrpcCode: jsii.String("grpcCode"),
HttpCode: jsii.String("httpCode"),
},
UnhealthyThresholdCount: jsii.Number(123),
}
Properties
healthCheckIntervalSecondsoptionalnumberhealth_check_interval_secondsoptionalint | floathealthCheckIntervalSecondsoptionalNumberHealthCheckIntervalSecondsoptionaldoubleHealthCheckIntervalSecondsoptional*float64 #healthCheckPathoptionalstringhealth_check_pathoptionalstrhealthCheckPathoptionalStringHealthCheckPathoptionalstringHealthCheckPathoptional*string #healthCheckPortoptionalnumberhealth_check_portoptionalint | floathealthCheckPortoptionalNumberHealthCheckPortoptionaldoubleHealthCheckPortoptional*float64 #healthCheckProtocoloptionalstringhealth_check_protocoloptionalstrhealthCheckProtocoloptionalStringHealthCheckProtocoloptionalstringHealthCheckProtocoloptional*string #healthCheckTimeoutSecondsoptionalnumberhealth_check_timeout_secondsoptionalint | floathealthCheckTimeoutSecondsoptionalNumberHealthCheckTimeoutSecondsoptionaldoubleHealthCheckTimeoutSecondsoptional*float64 #healthyThresholdCountoptionalnumberhealthy_threshold_countoptionalint | floathealthyThresholdCountoptionalNumberHealthyThresholdCountoptionaldoubleHealthyThresholdCountoptional*float64 #matcheroptionalIResolvable | CfnService.matcheroptionaltyping.Union[IResolvable, GatewayConnectorHealthCheckMatcherProperty]matcheroptionalIResolvableMatcheroptionalIResolvableMatcheroptionalinterface{} #unhealthyThresholdCountoptionalnumberunhealthy_threshold_countoptionalint | floatunhealthyThresholdCountoptionalNumberUnhealthyThresholdCountoptionaldoubleUnhealthyThresholdCountoptional*float64 #