interface VirtualGatewaySpecProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.CfnVirtualGateway.VirtualGatewaySpecProperty |
Java | software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewaySpecProperty |
Python | aws_cdk.aws_appmesh.CfnVirtualGateway.VirtualGatewaySpecProperty |
TypeScript | @aws-cdk/aws-appmesh » CfnVirtualGateway » VirtualGatewaySpecProperty |
An object that represents the specification of a service mesh resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appmesh from '@aws-cdk/aws-appmesh';
const virtualGatewaySpecProperty: appmesh.CfnVirtualGateway.VirtualGatewaySpecProperty = {
listeners: [{
portMapping: {
port: 123,
protocol: 'protocol',
},
// the properties below are optional
connectionPool: {
grpc: {
maxRequests: 123,
},
http: {
maxConnections: 123,
// the properties below are optional
maxPendingRequests: 123,
},
http2: {
maxRequests: 123,
},
},
healthCheck: {
healthyThreshold: 123,
intervalMillis: 123,
protocol: 'protocol',
timeoutMillis: 123,
unhealthyThreshold: 123,
// the properties below are optional
path: 'path',
port: 123,
},
tls: {
certificate: {
acm: {
certificateArn: 'certificateArn',
},
file: {
certificateChain: 'certificateChain',
privateKey: 'privateKey',
},
sds: {
secretName: 'secretName',
},
},
mode: 'mode',
// the properties below are optional
validation: {
trust: {
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
// the properties below are optional
subjectAlternativeNames: {
match: {
exact: ['exact'],
},
},
},
},
}],
// the properties below are optional
backendDefaults: {
clientPolicy: {
tls: {
validation: {
trust: {
acm: {
certificateAuthorityArns: ['certificateAuthorityArns'],
},
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
// the properties below are optional
subjectAlternativeNames: {
match: {
exact: ['exact'],
},
},
},
// the properties below are optional
certificate: {
file: {
certificateChain: 'certificateChain',
privateKey: 'privateKey',
},
sds: {
secretName: 'secretName',
},
},
enforce: false,
ports: [123],
},
},
},
logging: {
accessLog: {
file: {
path: 'path',
// the properties below are optional
format: {
json: [{
key: 'key',
value: 'value',
}],
text: 'text',
},
},
},
},
};
Properties
Name | Type | Description |
---|---|---|
listeners | IResolvable | IResolvable | Virtual [] | The listeners that the mesh endpoint is expected to receive inbound traffic from. |
backend | IResolvable | Virtual | A reference to an object that represents the defaults for backends. |
logging? | IResolvable | Virtual | An object that represents logging information. |
listeners
Type:
IResolvable
|
IResolvable
|
Virtual
[]
The listeners that the mesh endpoint is expected to receive inbound traffic from.
You can specify one listener.
backendDefaults?
Type:
IResolvable
|
Virtual
(optional)
A reference to an object that represents the defaults for backends.
logging?
Type:
IResolvable
|
Virtual
(optional)
An object that represents logging information.