# VirtualNodeConnectionPoolProperty

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` .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `grpc`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.VirtualNodeGrpcConnectionPoolProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.VirtualNodeGrpcConnectionPoolProperty.html) — An object that represents a type of connection pool.

- `http`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.VirtualNodeHttpConnectionPoolProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.VirtualNodeHttpConnectionPoolProperty.html) — An object that represents a type of connection pool.

- `http2`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.VirtualNodeHttp2ConnectionPoolProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.VirtualNodeHttp2ConnectionPoolProperty.html) — An object that represents a type of connection pool.

- `tcp`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.VirtualNodeTcpConnectionPoolProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.VirtualNodeTcpConnectionPoolProperty.html) — An object that represents a type of connection pool.
