Skip to content
v2.278.0

ListenerTlsValidationContextProperty Struct ​

An object that represents a listener's Transport Layer Security (TLS) validation context.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const listenerTlsValidationContextProperty: appmesh.CfnVirtualNode.ListenerTlsValidationContextProperty = {
  trust: {
    file: {
      certificateChain: 'certificateChain',
    },
    sds: {
      secretName: 'secretName',
    },
  },

  // the properties below are optional
  subjectAlternativeNames: {
    match: {
      exact: ['exact'],
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

listener_tls_validation_context_property = appmesh.CfnVirtualNode.ListenerTlsValidationContextProperty(
    trust=appmesh.CfnVirtualNode.ListenerTlsValidationContextTrustProperty(
        file=appmesh.CfnVirtualNode.TlsValidationContextFileTrustProperty(
            certificate_chain="certificateChain"
        ),
        sds=appmesh.CfnVirtualNode.TlsValidationContextSdsTrustProperty(
            secret_name="secretName"
        )
    ),

    # the properties below are optional
    subject_alternative_names=appmesh.CfnVirtualNode.SubjectAlternativeNamesProperty(
        match=appmesh.CfnVirtualNode.SubjectAlternativeNameMatchersProperty(
            exact=["exact"]
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

ListenerTlsValidationContextProperty listenerTlsValidationContextProperty = ListenerTlsValidationContextProperty.builder()
        .trust(ListenerTlsValidationContextTrustProperty.builder()
                .file(TlsValidationContextFileTrustProperty.builder()
                        .certificateChain("certificateChain")
                        .build())
                .sds(TlsValidationContextSdsTrustProperty.builder()
                        .secretName("secretName")
                        .build())
                .build())

        // the properties below are optional
        .subjectAlternativeNames(SubjectAlternativeNamesProperty.builder()
                .match(SubjectAlternativeNameMatchersProperty.builder()
                        .exact(List.of("exact"))
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var listenerTlsValidationContextProperty = new ListenerTlsValidationContextProperty {
    Trust = new ListenerTlsValidationContextTrustProperty {
        File = new TlsValidationContextFileTrustProperty {
            CertificateChain = "certificateChain"
        },
        Sds = new TlsValidationContextSdsTrustProperty {
            SecretName = "secretName"
        }
    },

    // the properties below are optional
    SubjectAlternativeNames = new SubjectAlternativeNamesProperty {
        Match = new SubjectAlternativeNameMatchersProperty {
            Exact = new [] { "exact" }
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

listenerTlsValidationContextProperty := &ListenerTlsValidationContextProperty{
	Trust: &ListenerTlsValidationContextTrustProperty{
		File: &TlsValidationContextFileTrustProperty{
			CertificateChain: jsii.String("certificateChain"),
		},
		Sds: &TlsValidationContextSdsTrustProperty{
			SecretName: jsii.String("secretName"),
		},
	},

	// the properties below are optional
	SubjectAlternativeNames: &SubjectAlternativeNamesProperty{
		Match: &SubjectAlternativeNameMatchersProperty{
			Exact: []*string{
				jsii.String("exact"),
			},
		},
	},
}

Properties ​

subjectAlternativeNamesoptionalIResolvable | CfnVirtualNode.SubjectAlternativeNamesPropertysubject_alternative_namesoptionaltyping.Union[IResolvable, SubjectAlternativeNamesProperty]subjectAlternativeNamesoptionalIResolvableSubjectAlternativeNamesoptionalIResolvableSubjectAlternativeNamesoptionalinterface{} #
A reference to an object that represents the SANs for a listener's Transport Layer Security (TLS) validation context.
A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.