Class TlsValidationTrust
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appmesh.TlsValidationTrust
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
MutualTlsValidationTrust
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-06T01:36:23.427Z")
@Stability(Stable)
public abstract class TlsValidationTrust
extends software.amazon.jsii.JsiiObject
Defines the TLS Validation Context Trust.
Example:
Mesh mesh; Service service; VirtualNode node = VirtualNode.Builder.create(this, "node") .mesh(mesh) .serviceDiscovery(ServiceDiscovery.cloudMap(service)) .listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder() .port(8080) .healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder() .healthyThreshold(3) .interval(Duration.seconds(5)) .path("/ping") .timeout(Duration.seconds(2)) .unhealthyThreshold(2) .build())) .timeout(HttpTimeout.builder() .idle(Duration.seconds(5)) .build()) .build()))) .backendDefaults(BackendDefaults.builder() .tlsClientPolicy(TlsClientPolicy.builder() .validation(TlsValidation.builder() .trust(TlsValidationTrust.file("/keys/local_cert_chain.pem")) .build()) .build()) .build()) .accessLog(AccessLog.fromFilePath("/dev/stdout")) .build(); Tags.of(node).add("Environment", "Dev");
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
TlsValidationTrust
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
TlsValidationTrust
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic TlsValidationTrust
acm
(List<? extends ICertificateAuthority> certificateAuthorities) TLS Validation Context Trust for ACM Private Certificate Authority (CA).abstract TlsValidationTrustConfig
bind
(software.constructs.Construct scope) Returns Trust context based on trust type.static MutualTlsValidationTrust
Tells envoy where to fetch the validation context from.static MutualTlsValidationTrust
TLS Validation Context Trust for Envoy' service discovery service.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
TlsValidationTrust
protected TlsValidationTrust(software.amazon.jsii.JsiiObjectRef objRef) -
TlsValidationTrust
protected TlsValidationTrust(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
TlsValidationTrust
@Stability(Stable) protected TlsValidationTrust()
-
-
Method Details
-
acm
@Stability(Stable) @NotNull public static TlsValidationTrust acm(@NotNull List<? extends ICertificateAuthority> certificateAuthorities) TLS Validation Context Trust for ACM Private Certificate Authority (CA).- Parameters:
certificateAuthorities
- This parameter is required.
-
file
@Stability(Stable) @NotNull public static MutualTlsValidationTrust file(@NotNull String certificateChain) Tells envoy where to fetch the validation context from.- Parameters:
certificateChain
- This parameter is required.
-
sds
TLS Validation Context Trust for Envoy' service discovery service.- Parameters:
secretName
- This parameter is required.
-
bind
@Stability(Stable) @NotNull public abstract TlsValidationTrustConfig bind(@NotNull software.constructs.Construct scope) Returns Trust context based on trust type.- Parameters:
scope
- This parameter is required.
-