Show / Hide Table of Contents

Class TrustStore

A new Trust Store.

Inheritance
object
Resource
TrustStore
Implements
ITrustStore
IResource
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

double

Remarks

Attribute: true

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

ExampleMetadata: infused

Status

The status of the trust store.

public virtual string Status { get; }
Property Value

string

Remarks

Attribute: true

TrustStoreArn

The ARN of the trust store.

public virtual string TrustStoreArn { get; }
Property Value

string

Remarks

Attribute: true

TrustStoreName

The name of the trust store.

public virtual string TrustStoreName { get; }
Property Value

string

Remarks

Attribute: true

Methods

FromTrustStoreArn(Construct, string, string)

Import from ARN.

public static ITrustStore FromTrustStoreArn(Construct scope, string id, string trustStoreArn)
Parameters
scope Construct
id string
trustStoreArn string
Returns

ITrustStore

Remarks

ExampleMetadata: infused

Implements

ITrustStore
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX