# TlsCertificateConfig

A wrapper for the tls config returned by `TlsCertificate.bind`.

Returned by: [TlsCertificate.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.TlsCertificate.html#bind)

- Source: [`aws-appmesh/lib/tls-certificate.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appmesh/lib/tls-certificate.ts#L8)

## 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 tlsCertificateConfig: appmesh.TlsCertificateConfig = {
  tlsCertificate: {
    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

tls_certificate_config = appmesh.TlsCertificateConfig(
    tls_certificate=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.*;

TlsCertificateConfig tlsCertificateConfig = TlsCertificateConfig.builder()
        .tlsCertificate(ListenerTlsCertificateProperty.builder()
                .acm(ListenerTlsAcmCertificateProperty.builder()
                        .certificateArn("certificateArn")
                        .build())
                .file(ListenerTlsFileCertificateProperty.builder()
                        .certificateChain("certificateChain")
                        .privateKey("privateKey")
                        .build())
                .sds(ListenerTlsSdsCertificateProperty.builder()
                        .secretName("secretName")
                        .build())
                .build())
        .build();
```

C# / .NET:

```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 tlsCertificateConfig = new TlsCertificateConfig {
    TlsCertificate = new ListenerTlsCertificateProperty {
        Acm = new ListenerTlsAcmCertificateProperty {
            CertificateArn = "certificateArn"
        },
        File = new ListenerTlsFileCertificateProperty {
            CertificateChain = "certificateChain",
            PrivateKey = "privateKey"
        },
        Sds = new ListenerTlsSdsCertificateProperty {
            SecretName = "secretName"
        }
    }
};
```

Golang:

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

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

## Properties

- `tlsCertificate`: [CfnVirtualNode.ListenerTlsCertificateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.ListenerTlsCertificateProperty.html) (required) — The CFN shape for a TLS certificate.
