TimeoutConfigurationProperty Struct
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.
| 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 timeoutConfigurationProperty: ecs.CfnService.TimeoutConfigurationProperty = {
idleTimeoutSeconds: 123,
perRequestTimeoutSeconds: 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
timeout_configuration_property = ecs.CfnService.TimeoutConfigurationProperty(
idle_timeout_seconds=123,
per_request_timeout_seconds=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.*;
TimeoutConfigurationProperty timeoutConfigurationProperty = TimeoutConfigurationProperty.builder()
.idleTimeoutSeconds(123)
.perRequestTimeoutSeconds(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 timeoutConfigurationProperty = new TimeoutConfigurationProperty {
IdleTimeoutSeconds = 123,
PerRequestTimeoutSeconds = 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"
timeoutConfigurationProperty := &TimeoutConfigurationProperty{
IdleTimeoutSeconds: jsii.Number(123),
PerRequestTimeoutSeconds: jsii.Number(123),
}
Properties
idleTimeoutSecondsoptionalnumberidle_timeout_secondsoptionalint | floatidleTimeoutSecondsoptionalNumberIdleTimeoutSecondsoptionaldoubleIdleTimeoutSecondsoptional*float64 #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.
perRequestTimeoutSecondsoptionalnumberper_request_timeout_secondsoptionalint | floatperRequestTimeoutSecondsoptionalNumberPerRequestTimeoutSecondsoptionaldoublePerRequestTimeoutSecondsoptional*float64 #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 .