Skip to content
v2.278.0

TcpTimeoutProperty Struct ​

An object that represents types of timeouts.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const tcpTimeoutProperty: appmesh.CfnVirtualNode.TcpTimeoutProperty = {
  idle: {
    unit: 'unit',
    value: 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_appmesh as appmesh

tcp_timeout_property = appmesh.CfnVirtualNode.TcpTimeoutProperty(
    idle=appmesh.CfnVirtualNode.DurationProperty(
        unit="unit",
        value=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.appmesh.*;

TcpTimeoutProperty tcpTimeoutProperty = TcpTimeoutProperty.builder()
        .idle(DurationProperty.builder()
                .unit("unit")
                .value(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.AppMesh;

var tcpTimeoutProperty = new TcpTimeoutProperty {
    Idle = new DurationProperty {
        Unit = "unit",
        Value = 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"

tcpTimeoutProperty := &TcpTimeoutProperty{
	Idle: &DurationProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
}

Properties ​

idleoptionalIResolvable | CfnVirtualNode.DurationPropertyidleoptionaltyping.Union[IResolvable, DurationProperty]idleoptionalIResolvableIdleoptionalIResolvableIdleoptionalinterface{} #
An object that represents an idle timeout.

An idle timeout bounds the amount of time that a connection may be idle. The default value is none.