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:
IResource
,ITrustStore
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:24:58.400Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.ITrustStore
ITrustStore.Jsii$Default, ITrustStore.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TrustStore
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
TrustStore
(software.amazon.jsii.JsiiObjectRef objRef) TrustStore
(software.constructs.Construct scope, String id, TrustStoreProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ITrustStore
fromTrustStoreArn
(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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
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, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
getTrustStoreArn
in interfaceITrustStore
-
getTrustStoreName
The name of the trust store.- Specified by:
getTrustStoreName
in interfaceITrustStore
-