Class TrustStore
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.elasticloadbalancingv2.TrustStore
- All Implemented Interfaces:
IEnvironmentAware,IResource,ITrustStore,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:41.671Z")
@Stability(Stable)
public class TrustStore
extends Resource
implements ITrustStore
A new Trust Store.
Example:
import software.amazon.awscdk.services.certificatemanager.*;
Certificate certificate;
ApplicationLoadBalancer lb;
Bucket bucket;
TrustStore trustStore = TrustStore.Builder.create(this, "Store")
.bucket(bucket)
.key("rootCA_cert.pem")
.build();
lb.addListener("Listener", BaseApplicationListenerProps.builder()
.port(443)
.protocol(ApplicationProtocol.HTTPS)
.certificates(List.of(certificate))
// mTLS settings
.mutualAuthentication(MutualAuthentication.builder()
.advertiseTrustStoreCaNames(true)
.ignoreClientCertificateExpiry(false)
.mutualAuthenticationMode(MutualAuthenticationMode.VERIFY)
.trustStore(trustStore)
.build())
.defaultAction(ListenerAction.fixedResponse(200, FixedResponseOptions.builder().contentType("text/plain").messageBody("Success mTLS").build()))
.build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.ITrustStore
ITrustStore.Jsii$Default, ITrustStore.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTrustStore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTrustStore(software.amazon.jsii.JsiiObjectRef objRef) TrustStore(software.constructs.Construct scope, String id, TrustStoreProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ITrustStorefromTrustStoreArn(software.constructs.Construct scope, String id, String trustStoreArn) Import from ARN.The number of CA certificates in the trust store.The status of the trust store.The ARN of the trust store.The name of the trust store.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
TrustStore
protected TrustStore(software.amazon.jsii.JsiiObjectRef objRef) -
TrustStore
protected TrustStore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
TrustStore
@Stability(Stable) public TrustStore(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TrustStoreProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromTrustStoreArn
@Stability(Stable) @NotNull public static ITrustStore fromTrustStoreArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String trustStoreArn) Import from ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.trustStoreArn- This parameter is required.
-
getNumberOfCaCertificates
The number of CA certificates in the trust store. -
getStatus
The status of the trust store. -
getTrustStoreArn
The ARN of the trust store.- Specified by:
getTrustStoreArnin interfaceITrustStore
-
getTrustStoreName
The name of the trust store.- Specified by:
getTrustStoreNamein interfaceITrustStore
-