VirtualNodeConnectionPoolProperty Struct
An object that represents the type of virtual node connection pool.
Only one protocol is used at a time and should be the same protocol as the one chosen under port mapping.
If not present the default value for maxPendingRequests is 2147483647 .
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 virtualNodeConnectionPoolProperty: appmesh.CfnVirtualNode.VirtualNodeConnectionPoolProperty = {
grpc: {
maxRequests: 123,
},
http: {
maxConnections: 123,
// the properties below are optional
maxPendingRequests: 123,
},
http2: {
maxRequests: 123,
},
tcp: {
maxConnections: 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
virtual_node_connection_pool_property = appmesh.CfnVirtualNode.VirtualNodeConnectionPoolProperty(
grpc=appmesh.CfnVirtualNode.VirtualNodeGrpcConnectionPoolProperty(
max_requests=123
),
http=appmesh.CfnVirtualNode.VirtualNodeHttpConnectionPoolProperty(
max_connections=123,
# the properties below are optional
max_pending_requests=123
),
http2=appmesh.CfnVirtualNode.VirtualNodeHttp2ConnectionPoolProperty(
max_requests=123
),
tcp=appmesh.CfnVirtualNode.VirtualNodeTcpConnectionPoolProperty(
max_connections=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.*;
VirtualNodeConnectionPoolProperty virtualNodeConnectionPoolProperty = VirtualNodeConnectionPoolProperty.builder()
.grpc(VirtualNodeGrpcConnectionPoolProperty.builder()
.maxRequests(123)
.build())
.http(VirtualNodeHttpConnectionPoolProperty.builder()
.maxConnections(123)
// the properties below are optional
.maxPendingRequests(123)
.build())
.http2(VirtualNodeHttp2ConnectionPoolProperty.builder()
.maxRequests(123)
.build())
.tcp(VirtualNodeTcpConnectionPoolProperty.builder()
.maxConnections(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 virtualNodeConnectionPoolProperty = new VirtualNodeConnectionPoolProperty {
Grpc = new VirtualNodeGrpcConnectionPoolProperty {
MaxRequests = 123
},
Http = new VirtualNodeHttpConnectionPoolProperty {
MaxConnections = 123,
// the properties below are optional
MaxPendingRequests = 123
},
Http2 = new VirtualNodeHttp2ConnectionPoolProperty {
MaxRequests = 123
},
Tcp = new VirtualNodeTcpConnectionPoolProperty {
MaxConnections = 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"
virtualNodeConnectionPoolProperty := &VirtualNodeConnectionPoolProperty{
Grpc: &VirtualNodeGrpcConnectionPoolProperty{
MaxRequests: jsii.Number(123),
},
Http: &VirtualNodeHttpConnectionPoolProperty{
MaxConnections: jsii.Number(123),
// the properties below are optional
MaxPendingRequests: jsii.Number(123),
},
Http2: &VirtualNodeHttp2ConnectionPoolProperty{
MaxRequests: jsii.Number(123),
},
Tcp: &VirtualNodeTcpConnectionPoolProperty{
MaxConnections: jsii.Number(123),
},
}
Properties
grpcoptionalIResolvable | CfnVirtualNode.VirtualNodeGrpcConnectionPoolPropertygrpcoptionaltyping.Union[IResolvable, VirtualNodeGrpcConnectionPoolProperty]grpcoptionalIResolvableGrpcoptionalIResolvableGrpcoptionalinterface{}#An object that represents a type of connection pool.
httpoptionalIResolvable | CfnVirtualNode.VirtualNodeHttpConnectionPoolPropertyhttpoptionaltyping.Union[IResolvable, VirtualNodeHttpConnectionPoolProperty]httpoptionalIResolvableHttpoptionalIResolvableHttpoptionalinterface{}#An object that represents a type of connection pool.
http2optionalIResolvable | CfnVirtualNode.VirtualNodeHttp2ConnectionPoolPropertyhttp2optionaltyping.Union[IResolvable, VirtualNodeHttp2ConnectionPoolProperty]http2optionalIResolvableHttp2optionalIResolvableHttp2optionalinterface{}#An object that represents a type of connection pool.
tcpoptionalIResolvable | CfnVirtualNode.VirtualNodeTcpConnectionPoolPropertytcpoptionaltyping.Union[IResolvable, VirtualNodeTcpConnectionPoolProperty]tcpoptionalIResolvableTcpoptionalIResolvableTcpoptionalinterface{}#An object that represents a type of connection pool.