# ClientTlsCertificateProperty

Struct · External

An object that represents the client's 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 clientTlsCertificateProperty: appmesh.CfnVirtualNode.ClientTlsCertificateProperty = {
  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

client_tls_certificate_property = appmesh.CfnVirtualNode.ClientTlsCertificateProperty(
    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.*;

ClientTlsCertificateProperty clientTlsCertificateProperty = ClientTlsCertificateProperty.builder()
        .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 clientTlsCertificateProperty = new ClientTlsCertificateProperty {
    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"

clientTlsCertificateProperty := &ClientTlsCertificateProperty{
	File: &ListenerTlsFileCertificateProperty{
		CertificateChain: jsii.String("certificateChain"),
		PrivateKey: jsii.String("privateKey"),
	},
	Sds: &ListenerTlsSdsCertificateProperty{
		SecretName: jsii.String("secretName"),
	},
}
```

## Properties

- `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) — An object that represents a local file certificate.

  The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see [Transport Layer Security (TLS)](https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html) .

- `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 client's TLS Secret Discovery Service certificate.
