interface TimeoutConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnService.TimeoutConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnService_TimeoutConfigurationProperty |
Java | software.amazon.awscdk.services.ecs.CfnService.TimeoutConfigurationProperty |
Python | aws_cdk.aws_ecs.CfnService.TimeoutConfigurationProperty |
TypeScript | aws-cdk-lib » aws_ecs » CfnService » TimeoutConfigurationProperty |
An object that represents the timeout configurations for Service Connect.
If
idleTimeoutis set to a time that is less thanperRequestTimeout, the connection will close when theidleTimeoutis reached and not theperRequestTimeout.
Example
// 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 timeoutConfigurationProperty: ecs.CfnService.TimeoutConfigurationProperty = {
idleTimeoutSeconds: 123,
perRequestTimeoutSeconds: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| idle | number | The amount of time in seconds a connection will stay active while idle. |
| per | number | The amount of time waiting for the upstream to respond with a complete response per request. |
idleTimeoutSeconds?
Type:
number
(optional)
The amount of time in seconds a connection will stay active while idle.
A value of 0 can be set to disable idleTimeout .
The idleTimeout default for HTTP / HTTP2 / GRPC is 5 minutes.
The idleTimeout default for TCP is 1 hour.
perRequestTimeoutSeconds?
Type:
number
(optional)
The amount of time waiting for the upstream to respond with a complete response per request.
A value of 0 can be set to disable perRequestTimeout . perRequestTimeout can only be set if Service Connect appProtocol isn't TCP . Only idleTimeout is allowed for TCP appProtocol .

.NET
Go
Java
Python
TypeScript