# ListenerTlsCertificateProperty

Struct · External

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `acm`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.ListenerTlsAcmCertificateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.ListenerTlsAcmCertificateProperty.html) — A reference to an object that represents an Certificate Manager certificate.

- `file`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.ListenerTlsFileCertificateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.ListenerTlsFileCertificateProperty.html) — A reference to an object that represents a local file certificate.

- `sds`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.ListenerTlsSdsCertificateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.ListenerTlsSdsCertificateProperty.html) — A reference to an object that represents a listener's Secret Discovery Service certificate.
