Class TrustStore
A new Trust Store.
Inherited Members
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TrustStore : Resource, ITrustStore, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class TrustStore Inherits Resource Implements ITrustStore, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CertificateManager;
Certificate certificate;
ApplicationLoadBalancer lb;
Bucket bucket;
var trustStore = new TrustStore(this, "Store", new TrustStoreProps {
Bucket = bucket,
Key = "rootCA_cert.pem"
});
lb.AddListener("Listener", new BaseApplicationListenerProps {
Port = 443,
Protocol = ApplicationProtocol.HTTPS,
Certificates = new [] { certificate },
// mTLS settings
MutualAuthentication = new MutualAuthentication {
AdvertiseTrustStoreCaNames = true,
IgnoreClientCertificateExpiry = false,
MutualAuthenticationMode = MutualAuthenticationMode.VERIFY,
TrustStore = trustStore
},
DefaultAction = ListenerAction.FixedResponse(200, new FixedResponseOptions { ContentType = "text/plain", MessageBody = "Success mTLS" })
});
Synopsis
Constructors
| TrustStore(Construct, string, ITrustStoreProps) | A new Trust Store. |
Properties
| NumberOfCaCertificates | The number of CA certificates in the trust store. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
| Status | The status of the trust store. |
| TrustStoreArn | The ARN of the trust store. |
| TrustStoreName | The name of the trust store. |
Methods
| FromTrustStoreArn(Construct, string, string) | Import from ARN. |
Constructors
TrustStore(Construct, string, ITrustStoreProps)
A new Trust Store.
public TrustStore(Construct scope, string id, ITrustStoreProps props)
Parameters
- scope Construct
- id string
- props ITrustStoreProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CertificateManager;
Certificate certificate;
ApplicationLoadBalancer lb;
Bucket bucket;
var trustStore = new TrustStore(this, "Store", new TrustStoreProps {
Bucket = bucket,
Key = "rootCA_cert.pem"
});
lb.AddListener("Listener", new BaseApplicationListenerProps {
Port = 443,
Protocol = ApplicationProtocol.HTTPS,
Certificates = new [] { certificate },
// mTLS settings
MutualAuthentication = new MutualAuthentication {
AdvertiseTrustStoreCaNames = true,
IgnoreClientCertificateExpiry = false,
MutualAuthenticationMode = MutualAuthenticationMode.VERIFY,
TrustStore = trustStore
},
DefaultAction = ListenerAction.FixedResponse(200, new FixedResponseOptions { ContentType = "text/plain", MessageBody = "Success mTLS" })
});
Properties
NumberOfCaCertificates
The number of CA certificates in the trust store.
public virtual double NumberOfCaCertificates { get; }
Property Value
Remarks
Attribute: true
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: infused
Status
The status of the trust store.
public virtual string Status { get; }
Property Value
Remarks
Attribute: true
TrustStoreArn
The ARN of the trust store.
public virtual string TrustStoreArn { get; }
Property Value
Remarks
Attribute: true
TrustStoreName
The name of the trust store.
public virtual string TrustStoreName { get; }
Property Value
Remarks
Attribute: true
Methods
FromTrustStoreArn(Construct, string, string)
Import from ARN.
public static ITrustStore FromTrustStoreArn(Construct scope, string id, string trustStoreArn)
Parameters
Returns
Remarks
ExampleMetadata: infused
Implements
Constructs.IConstruct
Constructs.IDependable