BackendDefaults¶
-
class
aws_cdk.aws_appmesh.
BackendDefaults
(*, tls_client_policy=None)¶ Bases:
object
Represents the properties needed to define backend defaults.
- Parameters
tls_client_policy (
Optional
[TlsClientPolicy
]) – TLS properties for Client policy for backend defaults. Default: - none- ExampleMetadata
infused
Example:
# mesh: appmesh.Mesh # service: cloudmap.Service node = appmesh.VirtualNode(self, "node", mesh=mesh, service_discovery=appmesh.ServiceDiscovery.cloud_map(service), listeners=[appmesh.VirtualNodeListener.http( port=8080, health_check=appmesh.HealthCheck.http( healthy_threshold=3, interval=cdk.Duration.seconds(5), path="/ping", timeout=cdk.Duration.seconds(2), unhealthy_threshold=2 ), timeout=appmesh.HttpTimeout( idle=cdk.Duration.seconds(5) ) )], backend_defaults=appmesh.BackendDefaults( tls_client_policy=appmesh.TlsClientPolicy( validation=appmesh.TlsValidation( trust=appmesh.TlsValidationTrust.file("/keys/local_cert_chain.pem") ) ) ), access_log=appmesh.AccessLog.from_file_path("/dev/stdout") ) cdk.Tags.of(node).add("Environment", "Dev")
Attributes
-
tls_client_policy
¶ TLS properties for Client policy for backend defaults.
- Default
none
- Return type
Optional
[TlsClientPolicy
]