Skip to content
v2.278.0

ListenerTimeoutProperty Struct ​

An object that represents timeouts for different protocols.

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 listenerTimeoutProperty: appmesh.CfnVirtualNode.ListenerTimeoutProperty = {
  grpc: {
    idle: {
      unit: 'unit',
      value: 123,
    },
    perRequest: {
      unit: 'unit',
      value: 123,
    },
  },
  http: {
    idle: {
      unit: 'unit',
      value: 123,
    },
    perRequest: {
      unit: 'unit',
      value: 123,
    },
  },
  http2: {
    idle: {
      unit: 'unit',
      value: 123,
    },
    perRequest: {
      unit: 'unit',
      value: 123,
    },
  },
  tcp: {
    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

listener_timeout_property = appmesh.CfnVirtualNode.ListenerTimeoutProperty(
    grpc=appmesh.CfnVirtualNode.GrpcTimeoutProperty(
        idle=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    http=appmesh.CfnVirtualNode.HttpTimeoutProperty(
        idle=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    http2=appmesh.CfnVirtualNode.HttpTimeoutProperty(
        idle=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh.CfnVirtualNode.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    tcp=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.*;

ListenerTimeoutProperty listenerTimeoutProperty = ListenerTimeoutProperty.builder()
        .grpc(GrpcTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .perRequest(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .build())
        .http(HttpTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .perRequest(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .build())
        .http2(HttpTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .perRequest(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .build())
        .tcp(TcpTimeoutProperty.builder()
                .idle(DurationProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .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 listenerTimeoutProperty = new ListenerTimeoutProperty {
    Grpc = new GrpcTimeoutProperty {
        Idle = new DurationProperty {
            Unit = "unit",
            Value = 123
        },
        PerRequest = new DurationProperty {
            Unit = "unit",
            Value = 123
        }
    },
    Http = new HttpTimeoutProperty {
        Idle = new DurationProperty {
            Unit = "unit",
            Value = 123
        },
        PerRequest = new DurationProperty {
            Unit = "unit",
            Value = 123
        }
    },
    Http2 = new HttpTimeoutProperty {
        Idle = new DurationProperty {
            Unit = "unit",
            Value = 123
        },
        PerRequest = new DurationProperty {
            Unit = "unit",
            Value = 123
        }
    },
    Tcp = 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"

listenerTimeoutProperty := &ListenerTimeoutProperty{
	Grpc: &GrpcTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
		PerRequest: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
	Http: &HttpTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
		PerRequest: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
	Http2: &HttpTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
		PerRequest: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
	Tcp: &TcpTimeoutProperty{
		Idle: &DurationProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
}

Properties ​

grpcoptionalIResolvable | CfnVirtualNode.GrpcTimeoutPropertygrpcoptionaltyping.Union[IResolvable, GrpcTimeoutProperty]grpcoptionalIResolvableGrpcoptionalIResolvableGrpcoptionalinterface{} #
An object that represents types of timeouts.
httpoptionalIResolvable | CfnVirtualNode.HttpTimeoutPropertyhttpoptionaltyping.Union[IResolvable, HttpTimeoutProperty]httpoptionalIResolvableHttpoptionalIResolvableHttpoptionalinterface{} #
An object that represents types of timeouts.
http2optionalIResolvable | CfnVirtualNode.HttpTimeoutPropertyhttp2optionaltyping.Union[IResolvable, HttpTimeoutProperty]http2optionalIResolvableHttp2optionalIResolvableHttp2optionalinterface{} #
An object that represents types of timeouts.
tcpoptionalIResolvable | CfnVirtualNode.TcpTimeoutPropertytcpoptionaltyping.Union[IResolvable, TcpTimeoutProperty]tcpoptionalIResolvableTcpoptionalIResolvableTcpoptionalinterface{} #
An object that represents types of timeouts.