Interface CfnService.TimeoutConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnService.TimeoutConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnService
@Stability(Stable)
public static interface CfnService.TimeoutConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ecs.*;
TimeoutConfigurationProperty timeoutConfigurationProperty = TimeoutConfigurationProperty.builder()
.idleTimeoutSeconds(123)
.perRequestTimeoutSeconds(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnService.TimeoutConfigurationPropertystatic final classAn implementation forCfnService.TimeoutConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIdleTimeoutSeconds
The amount of time in seconds a connection will stay active while idle.A value of
0can be set to disableidleTimeout.The
idleTimeoutdefault forHTTP/HTTP2/GRPCis 5 minutes.The
idleTimeoutdefault forTCPis 1 hour.- See Also:
-
getPerRequestTimeoutSeconds
The amount of time waiting for the upstream to respond with a complete response per request.A value of
0can be set to disableperRequestTimeout.perRequestTimeoutcan only be set if Service ConnectappProtocolisn'tTCP. OnlyidleTimeoutis allowed forTCPappProtocol.- See Also:
-
builder
-