CfnVirtualGatewayProps
Struct External
Properties for defining a CfnVirtualGateway.
| Source |
|---|
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 cfnVirtualGatewayProps: appmesh.CfnVirtualGatewayProps = {
meshName: 'meshName',
spec: {
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',
},
},
},
},
},
// the properties below are optional
meshOwner: 'meshOwner',
tags: [{
key: 'key',
value: 'value',
}],
virtualGatewayName: 'virtualGatewayName',
};
python
from aws_cdk import CfnTag
# 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
cfn_virtual_gateway_props = appmesh.CfnVirtualGatewayProps(
mesh_name="meshName",
spec=appmesh.CfnVirtualGateway.VirtualGatewaySpecProperty(
listeners=[appmesh.CfnVirtualGateway.VirtualGatewayListenerProperty(
port_mapping=appmesh.CfnVirtualGateway.VirtualGatewayPortMappingProperty(
port=123,
protocol="protocol"
),
# the properties below are optional
connection_pool=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
)
),
health_check=appmesh.CfnVirtualGateway.VirtualGatewayHealthCheckPolicyProperty(
healthy_threshold=123,
interval_millis=123,
protocol="protocol",
timeout_millis=123,
unhealthy_threshold=123,
# the properties below are optional
path="path",
port=123
),
tls=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsProperty(
certificate=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsCertificateProperty(
acm=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsAcmCertificateProperty(
certificate_arn="certificateArn"
),
file=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsFileCertificateProperty(
certificate_chain="certificateChain",
private_key="privateKey"
),
sds=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsSdsCertificateProperty(
secret_name="secretName"
)
),
mode="mode",
# the properties below are optional
validation=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsValidationContextProperty(
trust=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsValidationContextTrustProperty(
file=appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextFileTrustProperty(
certificate_chain="certificateChain"
),
sds=appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextSdsTrustProperty(
secret_name="secretName"
)
),
# the properties below are optional
subject_alternative_names=appmesh.CfnVirtualGateway.SubjectAlternativeNamesProperty(
match=appmesh.CfnVirtualGateway.SubjectAlternativeNameMatchersProperty(
exact=["exact"]
)
)
)
)
)],
# the properties below are optional
backend_defaults=appmesh.CfnVirtualGateway.VirtualGatewayBackendDefaultsProperty(
client_policy=appmesh.CfnVirtualGateway.VirtualGatewayClientPolicyProperty(
tls=appmesh.CfnVirtualGateway.VirtualGatewayClientPolicyTlsProperty(
validation=appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextProperty(
trust=appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextTrustProperty(
acm=appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextAcmTrustProperty(
certificate_authority_arns=["certificateAuthorityArns"]
),
file=appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextFileTrustProperty(
certificate_chain="certificateChain"
),
sds=appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextSdsTrustProperty(
secret_name="secretName"
)
),
# the properties below are optional
subject_alternative_names=appmesh.CfnVirtualGateway.SubjectAlternativeNamesProperty(
match=appmesh.CfnVirtualGateway.SubjectAlternativeNameMatchersProperty(
exact=["exact"]
)
)
),
# the properties below are optional
certificate=appmesh.CfnVirtualGateway.VirtualGatewayClientTlsCertificateProperty(
file=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsFileCertificateProperty(
certificate_chain="certificateChain",
private_key="privateKey"
),
sds=appmesh.CfnVirtualGateway.VirtualGatewayListenerTlsSdsCertificateProperty(
secret_name="secretName"
)
),
enforce=False,
ports=[123]
)
)
),
logging=appmesh.CfnVirtualGateway.VirtualGatewayLoggingProperty(
access_log=appmesh.CfnVirtualGateway.VirtualGatewayAccessLogProperty(
file=appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty(
path="path",
# the properties below are optional
format=appmesh.CfnVirtualGateway.LoggingFormatProperty(
json=[appmesh.CfnVirtualGateway.JsonFormatRefProperty(
key="key",
value="value"
)],
text="text"
)
)
)
)
),
# the properties below are optional
mesh_owner="meshOwner",
tags=[CfnTag(
key="key",
value="value"
)],
virtual_gateway_name="virtualGatewayName"
)
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.*;
CfnVirtualGatewayProps cfnVirtualGatewayProps = CfnVirtualGatewayProps.builder()
.meshName("meshName")
.spec(VirtualGatewaySpecProperty.builder()
.listeners(List.of(VirtualGatewayListenerProperty.builder()
.portMapping(VirtualGatewayPortMappingProperty.builder()
.port(123)
.protocol("protocol")
.build())
// the properties below are optional
.connectionPool(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())
.healthCheck(VirtualGatewayHealthCheckPolicyProperty.builder()
.healthyThreshold(123)
.intervalMillis(123)
.protocol("protocol")
.timeoutMillis(123)
.unhealthyThreshold(123)
// the properties below are optional
.path("path")
.port(123)
.build())
.tls(VirtualGatewayListenerTlsProperty.builder()
.certificate(VirtualGatewayListenerTlsCertificateProperty.builder()
.acm(VirtualGatewayListenerTlsAcmCertificateProperty.builder()
.certificateArn("certificateArn")
.build())
.file(VirtualGatewayListenerTlsFileCertificateProperty.builder()
.certificateChain("certificateChain")
.privateKey("privateKey")
.build())
.sds(VirtualGatewayListenerTlsSdsCertificateProperty.builder()
.secretName("secretName")
.build())
.build())
.mode("mode")
// the properties below are optional
.validation(VirtualGatewayListenerTlsValidationContextProperty.builder()
.trust(VirtualGatewayListenerTlsValidationContextTrustProperty.builder()
.file(VirtualGatewayTlsValidationContextFileTrustProperty.builder()
.certificateChain("certificateChain")
.build())
.sds(VirtualGatewayTlsValidationContextSdsTrustProperty.builder()
.secretName("secretName")
.build())
.build())
// the properties below are optional
.subjectAlternativeNames(SubjectAlternativeNamesProperty.builder()
.match(SubjectAlternativeNameMatchersProperty.builder()
.exact(List.of("exact"))
.build())
.build())
.build())
.build())
.build()))
// the properties below are optional
.backendDefaults(VirtualGatewayBackendDefaultsProperty.builder()
.clientPolicy(VirtualGatewayClientPolicyProperty.builder()
.tls(VirtualGatewayClientPolicyTlsProperty.builder()
.validation(VirtualGatewayTlsValidationContextProperty.builder()
.trust(VirtualGatewayTlsValidationContextTrustProperty.builder()
.acm(VirtualGatewayTlsValidationContextAcmTrustProperty.builder()
.certificateAuthorityArns(List.of("certificateAuthorityArns"))
.build())
.file(VirtualGatewayTlsValidationContextFileTrustProperty.builder()
.certificateChain("certificateChain")
.build())
.sds(VirtualGatewayTlsValidationContextSdsTrustProperty.builder()
.secretName("secretName")
.build())
.build())
// the properties below are optional
.subjectAlternativeNames(SubjectAlternativeNamesProperty.builder()
.match(SubjectAlternativeNameMatchersProperty.builder()
.exact(List.of("exact"))
.build())
.build())
.build())
// the properties below are optional
.certificate(VirtualGatewayClientTlsCertificateProperty.builder()
.file(VirtualGatewayListenerTlsFileCertificateProperty.builder()
.certificateChain("certificateChain")
.privateKey("privateKey")
.build())
.sds(VirtualGatewayListenerTlsSdsCertificateProperty.builder()
.secretName("secretName")
.build())
.build())
.enforce(false)
.ports(List.of(123))
.build())
.build())
.build())
.logging(VirtualGatewayLoggingProperty.builder()
.accessLog(VirtualGatewayAccessLogProperty.builder()
.file(VirtualGatewayFileAccessLogProperty.builder()
.path("path")
// the properties below are optional
.format(LoggingFormatProperty.builder()
.json(List.of(JsonFormatRefProperty.builder()
.key("key")
.value("value")
.build()))
.text("text")
.build())
.build())
.build())
.build())
.build())
// the properties below are optional
.meshOwner("meshOwner")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.virtualGatewayName("virtualGatewayName")
.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 cfnVirtualGatewayProps = new CfnVirtualGatewayProps {
MeshName = "meshName",
Spec = new VirtualGatewaySpecProperty {
Listeners = new [] { new VirtualGatewayListenerProperty {
PortMapping = new VirtualGatewayPortMappingProperty {
Port = 123,
Protocol = "protocol"
},
// the properties below are optional
ConnectionPool = new VirtualGatewayConnectionPoolProperty {
Grpc = new VirtualGatewayGrpcConnectionPoolProperty {
MaxRequests = 123
},
Http = new VirtualGatewayHttpConnectionPoolProperty {
MaxConnections = 123,
// the properties below are optional
MaxPendingRequests = 123
},
Http2 = new VirtualGatewayHttp2ConnectionPoolProperty {
MaxRequests = 123
}
},
HealthCheck = new VirtualGatewayHealthCheckPolicyProperty {
HealthyThreshold = 123,
IntervalMillis = 123,
Protocol = "protocol",
TimeoutMillis = 123,
UnhealthyThreshold = 123,
// the properties below are optional
Path = "path",
Port = 123
},
Tls = new VirtualGatewayListenerTlsProperty {
Certificate = new VirtualGatewayListenerTlsCertificateProperty {
Acm = new VirtualGatewayListenerTlsAcmCertificateProperty {
CertificateArn = "certificateArn"
},
File = new VirtualGatewayListenerTlsFileCertificateProperty {
CertificateChain = "certificateChain",
PrivateKey = "privateKey"
},
Sds = new VirtualGatewayListenerTlsSdsCertificateProperty {
SecretName = "secretName"
}
},
Mode = "mode",
// the properties below are optional
Validation = new VirtualGatewayListenerTlsValidationContextProperty {
Trust = new VirtualGatewayListenerTlsValidationContextTrustProperty {
File = new VirtualGatewayTlsValidationContextFileTrustProperty {
CertificateChain = "certificateChain"
},
Sds = new VirtualGatewayTlsValidationContextSdsTrustProperty {
SecretName = "secretName"
}
},
// the properties below are optional
SubjectAlternativeNames = new SubjectAlternativeNamesProperty {
Match = new SubjectAlternativeNameMatchersProperty {
Exact = new [] { "exact" }
}
}
}
}
} },
// the properties below are optional
BackendDefaults = new VirtualGatewayBackendDefaultsProperty {
ClientPolicy = new VirtualGatewayClientPolicyProperty {
Tls = new VirtualGatewayClientPolicyTlsProperty {
Validation = new VirtualGatewayTlsValidationContextProperty {
Trust = new VirtualGatewayTlsValidationContextTrustProperty {
Acm = new VirtualGatewayTlsValidationContextAcmTrustProperty {
CertificateAuthorityArns = new [] { "certificateAuthorityArns" }
},
File = new VirtualGatewayTlsValidationContextFileTrustProperty {
CertificateChain = "certificateChain"
},
Sds = new VirtualGatewayTlsValidationContextSdsTrustProperty {
SecretName = "secretName"
}
},
// the properties below are optional
SubjectAlternativeNames = new SubjectAlternativeNamesProperty {
Match = new SubjectAlternativeNameMatchersProperty {
Exact = new [] { "exact" }
}
}
},
// the properties below are optional
Certificate = new VirtualGatewayClientTlsCertificateProperty {
File = new VirtualGatewayListenerTlsFileCertificateProperty {
CertificateChain = "certificateChain",
PrivateKey = "privateKey"
},
Sds = new VirtualGatewayListenerTlsSdsCertificateProperty {
SecretName = "secretName"
}
},
Enforce = false,
Ports = new [] { 123 }
}
}
},
Logging = new VirtualGatewayLoggingProperty {
AccessLog = new VirtualGatewayAccessLogProperty {
File = new VirtualGatewayFileAccessLogProperty {
Path = "path",
// the properties below are optional
Format = new LoggingFormatProperty {
Json = new [] { new JsonFormatRefProperty {
Key = "key",
Value = "value"
} },
Text = "text"
}
}
}
}
},
// the properties below are optional
MeshOwner = "meshOwner",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VirtualGatewayName = "virtualGatewayName"
};
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"
cfnVirtualGatewayProps := &CfnVirtualGatewayProps{
MeshName: jsii.String("meshName"),
Spec: &VirtualGatewaySpecProperty{
Listeners: []interface{}{
&VirtualGatewayListenerProperty{
PortMapping: &VirtualGatewayPortMappingProperty{
Port: jsii.Number(123),
Protocol: jsii.String("protocol"),
},
// the properties below are optional
ConnectionPool: &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),
},
},
HealthCheck: &VirtualGatewayHealthCheckPolicyProperty{
HealthyThreshold: jsii.Number(123),
IntervalMillis: jsii.Number(123),
Protocol: jsii.String("protocol"),
TimeoutMillis: jsii.Number(123),
UnhealthyThreshold: jsii.Number(123),
// the properties below are optional
Path: jsii.String("path"),
Port: jsii.Number(123),
},
Tls: &VirtualGatewayListenerTlsProperty{
Certificate: &VirtualGatewayListenerTlsCertificateProperty{
Acm: &VirtualGatewayListenerTlsAcmCertificateProperty{
CertificateArn: jsii.String("certificateArn"),
},
File: &VirtualGatewayListenerTlsFileCertificateProperty{
CertificateChain: jsii.String("certificateChain"),
PrivateKey: jsii.String("privateKey"),
},
Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{
SecretName: jsii.String("secretName"),
},
},
Mode: jsii.String("mode"),
// the properties below are optional
Validation: &VirtualGatewayListenerTlsValidationContextProperty{
Trust: &VirtualGatewayListenerTlsValidationContextTrustProperty{
File: &VirtualGatewayTlsValidationContextFileTrustProperty{
CertificateChain: jsii.String("certificateChain"),
},
Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{
SecretName: jsii.String("secretName"),
},
},
// the properties below are optional
SubjectAlternativeNames: &SubjectAlternativeNamesProperty{
Match: &SubjectAlternativeNameMatchersProperty{
Exact: []*string{
jsii.String("exact"),
},
},
},
},
},
},
},
// the properties below are optional
BackendDefaults: &VirtualGatewayBackendDefaultsProperty{
ClientPolicy: &VirtualGatewayClientPolicyProperty{
Tls: &VirtualGatewayClientPolicyTlsProperty{
Validation: &VirtualGatewayTlsValidationContextProperty{
Trust: &VirtualGatewayTlsValidationContextTrustProperty{
Acm: &VirtualGatewayTlsValidationContextAcmTrustProperty{
CertificateAuthorityArns: []*string{
jsii.String("certificateAuthorityArns"),
},
},
File: &VirtualGatewayTlsValidationContextFileTrustProperty{
CertificateChain: jsii.String("certificateChain"),
},
Sds: &VirtualGatewayTlsValidationContextSdsTrustProperty{
SecretName: jsii.String("secretName"),
},
},
// the properties below are optional
SubjectAlternativeNames: &SubjectAlternativeNamesProperty{
Match: &SubjectAlternativeNameMatchersProperty{
Exact: []*string{
jsii.String("exact"),
},
},
},
},
// the properties below are optional
Certificate: &VirtualGatewayClientTlsCertificateProperty{
File: &VirtualGatewayListenerTlsFileCertificateProperty{
CertificateChain: jsii.String("certificateChain"),
PrivateKey: jsii.String("privateKey"),
},
Sds: &VirtualGatewayListenerTlsSdsCertificateProperty{
SecretName: jsii.String("secretName"),
},
},
Enforce: jsii.Boolean(false),
Ports: []interface{}{
jsii.Number(123),
},
},
},
},
Logging: &VirtualGatewayLoggingProperty{
AccessLog: &VirtualGatewayAccessLogProperty{
File: &VirtualGatewayFileAccessLogProperty{
Path: jsii.String("path"),
// the properties below are optional
Format: &LoggingFormatProperty{
Json: []interface{}{
&JsonFormatRefProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Text: jsii.String("text"),
},
},
},
},
},
// the properties below are optional
MeshOwner: jsii.String("meshOwner"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VirtualGatewayName: jsii.String("virtualGatewayName"),
}
Properties
The name of the service mesh that the virtual gateway resides in.
meshOwneroptionalstringmesh_owneroptionalstrmeshOwneroptionalStringMeshOwneroptionalstringMeshOwneroptional*string #The AWS IAM account ID of the service mesh owner.
notes
If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes .
specIResolvable | CfnVirtualGateway.spectyping.Union[IResolvable, VirtualGatewaySpecProperty]specIResolvableSpecIResolvableSpecinterface{} required #The specifications of the virtual gateway.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #Optional metadata that you can apply to the virtual gateway to assist with categorization and organization.
Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
virtualGatewayNameoptionalstringvirtual_gateway_nameoptionalstrvirtualGatewayNameoptionalStringVirtualGatewayNameoptionalstringVirtualGatewayNameoptional*string #The name of the virtual gateway.