GatewayConnectorProperty 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 gatewayConnectorProperty: ecs.CfnService.GatewayConnectorProperty = {
portName: 'portName',
// the properties below are optional
deregistrationDelay: {
timeoutSeconds: 123,
},
filters: {
accessTypes: ['accessTypes'],
},
healthCheck: {
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_property = ecs.CfnService.GatewayConnectorProperty(
port_name="portName",
# the properties below are optional
deregistration_delay=ecs.CfnService.GatewayConnectorDeregistrationDelayProperty(
timeout_seconds=123
),
filters=ecs.CfnService.GatewayConnectorFiltersProperty(
access_types=["accessTypes"]
),
health_check=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.*;
GatewayConnectorProperty gatewayConnectorProperty = GatewayConnectorProperty.builder()
.portName("portName")
// the properties below are optional
.deregistrationDelay(GatewayConnectorDeregistrationDelayProperty.builder()
.timeoutSeconds(123)
.build())
.filters(GatewayConnectorFiltersProperty.builder()
.accessTypes(List.of("accessTypes"))
.build())
.healthCheck(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())
.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 gatewayConnectorProperty = new GatewayConnectorProperty {
PortName = "portName",
// the properties below are optional
DeregistrationDelay = new GatewayConnectorDeregistrationDelayProperty {
TimeoutSeconds = 123
},
Filters = new GatewayConnectorFiltersProperty {
AccessTypes = new [] { "accessTypes" }
},
HealthCheck = 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"
gatewayConnectorProperty := &GatewayConnectorProperty{
PortName: jsii.String("portName"),
// the properties below are optional
DeregistrationDelay: &GatewayConnectorDeregistrationDelayProperty{
TimeoutSeconds: jsii.Number(123),
},
Filters: &GatewayConnectorFiltersProperty{
AccessTypes: []*string{
jsii.String("accessTypes"),
},
},
HealthCheck: &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
deregistrationDelayoptionalIResolvable | CfnService.deregistration_delayoptionaltyping.Union[IResolvable, GatewayConnectorDeregistrationDelayProperty]deregistrationDelayoptionalIResolvableDeregistrationDelayoptionalIResolvableDeregistrationDelayoptionalinterface{} #filtersoptionalIResolvable | CfnService.filtersoptionaltyping.Union[IResolvable, GatewayConnectorFiltersProperty]filtersoptionalIResolvableFiltersoptionalIResolvableFiltersoptionalinterface{} #healthCheckoptionalIResolvable | CfnService.health_checkoptionaltyping.Union[IResolvable, GatewayConnectorHealthCheckProperty]healthCheckoptionalIResolvableHealthCheckoptionalIResolvableHealthCheckoptionalinterface{} #