VirtualGatewayConnectionPoolProperty Struct
An object that represents the type of virtual gateway 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 | |
|---|---|
| Type last changed |
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 virtualGatewayConnectionPoolProperty: appmesh.CfnVirtualGateway.VirtualGatewayConnectionPoolProperty = {
grpc: {
maxRequests: 123,
},
http: {
maxConnections: 123,
// the properties below are optional
maxPendingRequests: 123,
},
http2: {
maxRequests: 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_gateway_connection_pool_property = appmesh.CfnVirtualGateway.VirtualGatewayConnectionPoolProperty(
grpc=appmesh.CfnVirtualGateway.VirtualGatewayGrpcConnectionPoolProperty(
max_requests=123
),
http=appmesh.CfnVirtualGateway.VirtualGatewayHttpConnectionPoolProperty(
max_connections=123,
# the properties below are optional
max_pending_requests=123
),
http2=appmesh.CfnVirtualGateway.VirtualGatewayHttp2ConnectionPoolProperty(
max_requests=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.*;
VirtualGatewayConnectionPoolProperty virtualGatewayConnectionPoolProperty = VirtualGatewayConnectionPoolProperty.builder()
.grpc(VirtualGatewayGrpcConnectionPoolProperty.builder()
.maxRequests(123)
.build())
.http(VirtualGatewayHttpConnectionPoolProperty.builder()
.maxConnections(123)
// the properties below are optional
.maxPendingRequests(123)
.build())
.http2(VirtualGatewayHttp2ConnectionPoolProperty.builder()
.maxRequests(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 virtualGatewayConnectionPoolProperty = new VirtualGatewayConnectionPoolProperty {
Grpc = new VirtualGatewayGrpcConnectionPoolProperty {
MaxRequests = 123
},
Http = new VirtualGatewayHttpConnectionPoolProperty {
MaxConnections = 123,
// the properties below are optional
MaxPendingRequests = 123
},
Http2 = new VirtualGatewayHttp2ConnectionPoolProperty {
MaxRequests = 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"
virtualGatewayConnectionPoolProperty := &VirtualGatewayConnectionPoolProperty{
Grpc: &VirtualGatewayGrpcConnectionPoolProperty{
MaxRequests: jsii.Number(123),
},
Http: &VirtualGatewayHttpConnectionPoolProperty{
MaxConnections: jsii.Number(123),
// the properties below are optional
MaxPendingRequests: jsii.Number(123),
},
Http2: &VirtualGatewayHttp2ConnectionPoolProperty{
MaxRequests: jsii.Number(123),
},
}
Properties
grpcoptionalIResolvable | CfnVirtualGateway.grpcoptionaltyping.Union[IResolvable, VirtualGatewayGrpcConnectionPoolProperty]grpcoptionalIResolvableGrpcoptionalIResolvableGrpcoptionalinterface{} #An object that represents a type of connection pool.
httpoptionalIResolvable | CfnVirtualGateway.httpoptionaltyping.Union[IResolvable, VirtualGatewayHttpConnectionPoolProperty]httpoptionalIResolvableHttpoptionalIResolvableHttpoptionalinterface{} #An object that represents a type of connection pool.
http2optionalIResolvable | CfnVirtualGateway.http2optionaltyping.Union[IResolvable, VirtualGatewayHttp2ConnectionPoolProperty]http2optionalIResolvableHttp2optionalIResolvableHttp2optionalinterface{} #An object that represents a type of connection pool.