VirtualGatewayBackendDefaultsProperty Struct
An object that represents the default properties for a backend.
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 virtualGatewayBackendDefaultsProperty: appmesh.CfnVirtualGateway.VirtualGatewayBackendDefaultsProperty = {
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],
},
},
};
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_backend_defaults_property = 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]
)
)
)
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.*;
VirtualGatewayBackendDefaultsProperty virtualGatewayBackendDefaultsProperty = 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();
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 virtualGatewayBackendDefaultsProperty = 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 }
}
}
};
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"
virtualGatewayBackendDefaultsProperty := &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),
},
},
},
}
Properties
clientPolicyoptionalIResolvable | CfnVirtualGateway.VirtualGatewayClientPolicyPropertyclient_policyoptionaltyping.Union[IResolvable, VirtualGatewayClientPolicyProperty]clientPolicyoptionalIResolvableClientPolicyoptionalIResolvableClientPolicyoptionalinterface{}#A reference to an object that represents a client policy.