Skip to content
v2.278.0

ListenerTlsCertificateProperty Struct ​

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

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 listenerTlsCertificateProperty: appmesh.CfnVirtualNode.ListenerTlsCertificateProperty = {
  acm: {
    certificateArn: 'certificateArn',
  },
  file: {
    certificateChain: 'certificateChain',
    privateKey: 'privateKey',
  },
  sds: {
    secretName: 'secretName',
  },
};
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_certificate_property = appmesh.CfnVirtualNode.ListenerTlsCertificateProperty(
    acm=appmesh.CfnVirtualNode.ListenerTlsAcmCertificateProperty(
        certificate_arn="certificateArn"
    ),
    file=appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty(
        certificate_chain="certificateChain",
        private_key="privateKey"
    ),
    sds=appmesh.CfnVirtualNode.ListenerTlsSdsCertificateProperty(
        secret_name="secretName"
    )
)
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.*;

ListenerTlsCertificateProperty listenerTlsCertificateProperty = ListenerTlsCertificateProperty.builder()
        .acm(ListenerTlsAcmCertificateProperty.builder()
                .certificateArn("certificateArn")
                .build())
        .file(ListenerTlsFileCertificateProperty.builder()
                .certificateChain("certificateChain")
                .privateKey("privateKey")
                .build())
        .sds(ListenerTlsSdsCertificateProperty.builder()
                .secretName("secretName")
                .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 listenerTlsCertificateProperty = new ListenerTlsCertificateProperty {
    Acm = new ListenerTlsAcmCertificateProperty {
        CertificateArn = "certificateArn"
    },
    File = new ListenerTlsFileCertificateProperty {
        CertificateChain = "certificateChain",
        PrivateKey = "privateKey"
    },
    Sds = new ListenerTlsSdsCertificateProperty {
        SecretName = "secretName"
    }
};
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"

listenerTlsCertificateProperty := &ListenerTlsCertificateProperty{
	Acm: &ListenerTlsAcmCertificateProperty{
		CertificateArn: jsii.String("certificateArn"),
	},
	File: &ListenerTlsFileCertificateProperty{
		CertificateChain: jsii.String("certificateChain"),
		PrivateKey: jsii.String("privateKey"),
	},
	Sds: &ListenerTlsSdsCertificateProperty{
		SecretName: jsii.String("secretName"),
	},
}

Properties ​

acmoptionalIResolvable | CfnVirtualNode.ListenerTlsAcmCertificatePropertyacmoptionaltyping.Union[IResolvable, ListenerTlsAcmCertificateProperty]acmoptionalIResolvableAcmoptionalIResolvableAcmoptionalinterface{} #
A reference to an object that represents an Certificate Manager certificate.
fileoptionalIResolvable | CfnVirtualNode.ListenerTlsFileCertificatePropertyfileoptionaltyping.Union[IResolvable, ListenerTlsFileCertificateProperty]fileoptionalIResolvableFileoptionalIResolvableFileoptionalinterface{} #
A reference to an object that represents a local file certificate.
sdsoptionalIResolvable | CfnVirtualNode.ListenerTlsSdsCertificatePropertysdsoptionaltyping.Union[IResolvable, ListenerTlsSdsCertificateProperty]sdsoptionalIResolvableSdsoptionalIResolvableSdsoptionalinterface{} #
A reference to an object that represents a listener's Secret Discovery Service certificate.