class CfnVirtualGatewayPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppMesh.Mixins.CfnVirtualGatewayPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappmesh/mixins#CfnVirtualGatewayPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.appmesh.mixins.CfnVirtualGatewayPropsMixin |
Python | aws_cdk.mixins_preview.aws_appmesh.mixins.CfnVirtualGatewayPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_appmesh » mixins » CfnVirtualGatewayPropsMixin |
Implements
IMixin
Extends
Mixin
Creates a virtual gateway.
A virtual gateway allows resources outside your mesh to communicate to resources that are inside your mesh. The virtual gateway represents an Envoy proxy running in an Amazon ECS task, in a Kubernetes service, or on an Amazon EC2 instance. Unlike a virtual node, which represents an Envoy running with an application, a virtual gateway represents Envoy deployed by itself.
For more information about virtual gateways, see Virtual gateways .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as appmesh_mixins } from '@aws-cdk/mixins-preview/aws-appmesh';
const cfnVirtualGatewayPropsMixin = new appmesh_mixins.CfnVirtualGatewayPropsMixin({
meshName: 'meshName',
meshOwner: 'meshOwner',
spec: {
backendDefaults: {
clientPolicy: {
tls: {
certificate: {
file: {
certificateChain: 'certificateChain',
privateKey: 'privateKey',
},
sds: {
secretName: 'secretName',
},
},
enforce: false,
ports: [123],
validation: {
subjectAlternativeNames: {
match: {
exact: ['exact'],
},
},
trust: {
acm: {
certificateAuthorityArns: ['certificateAuthorityArns'],
},
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
},
},
},
},
listeners: [{
connectionPool: {
grpc: {
maxRequests: 123,
},
http: {
maxConnections: 123,
maxPendingRequests: 123,
},
http2: {
maxRequests: 123,
},
},
healthCheck: {
healthyThreshold: 123,
intervalMillis: 123,
path: 'path',
port: 123,
protocol: 'protocol',
timeoutMillis: 123,
unhealthyThreshold: 123,
},
portMapping: {
port: 123,
protocol: 'protocol',
},
tls: {
certificate: {
acm: {
certificateArn: 'certificateArn',
},
file: {
certificateChain: 'certificateChain',
privateKey: 'privateKey',
},
sds: {
secretName: 'secretName',
},
},
mode: 'mode',
validation: {
subjectAlternativeNames: {
match: {
exact: ['exact'],
},
},
trust: {
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
},
},
}],
logging: {
accessLog: {
file: {
format: {
json: [{
key: 'key',
value: 'value',
}],
text: 'text',
},
path: 'path',
},
},
},
},
tags: [{
key: 'key',
value: 'value',
}],
virtualGatewayName: 'virtualGatewayName',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnVirtualGatewayPropsMixin(props: CfnVirtualGatewayMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Virtual Gateway Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::AppMesh::VirtualGateway.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript