# CfnTrustStoreProps

Properties for defining a `CfnTrustStore`.

Used as props by: [CfnTrustStore](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnTrustStore.html)

- Source: Generated at build time
- Type last changed: v2.254.0 · 13 May 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnTrustStoreProps: cloudfront.CfnTrustStoreProps = {
  name: 'name',

  // the properties below are optional
  caCertificatesBundleSource: {
    caCertificatesBundleS3Location: {
      bucket: 'bucket',
      key: 'key',
      region: 'region',

      // the properties below are optional
      version: 'version',
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  useClientCertificateOcspEndpoint: false,
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

cfn_trust_store_props = cloudfront.CfnTrustStoreProps(
    name="name",

    # the properties below are optional
    ca_certificates_bundle_source=cloudfront.CfnTrustStore.CaCertificatesBundleSourceProperty(
        ca_certificates_bundle_s3_location=cloudfront.CfnTrustStore.CaCertificatesBundleS3LocationProperty(
            bucket="bucket",
            key="key",
            region="region",

            # the properties below are optional
            version="version"
        )
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    use_client_certificate_ocsp_endpoint=False
)
```

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.cloudfront.*;

CfnTrustStoreProps cfnTrustStoreProps = CfnTrustStoreProps.builder()
        .name("name")

        // the properties below are optional
        .caCertificatesBundleSource(CaCertificatesBundleSourceProperty.builder()
                .caCertificatesBundleS3Location(CaCertificatesBundleS3LocationProperty.builder()
                        .bucket("bucket")
                        .key("key")
                        .region("region")

                        // the properties below are optional
                        .version("version")
                        .build())
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .useClientCertificateOcspEndpoint(false)
        .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.CloudFront;

var cfnTrustStoreProps = new CfnTrustStoreProps {
    Name = "name",

    // the properties below are optional
    CaCertificatesBundleSource = new CaCertificatesBundleSourceProperty {
        CaCertificatesBundleS3Location = new CaCertificatesBundleS3LocationProperty {
            Bucket = "bucket",
            Key = "key",
            Region = "region",

            // the properties below are optional
            Version = "version"
        }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    UseClientCertificateOcspEndpoint = false
};
```

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"

cfnTrustStoreProps := &CfnTrustStoreProps{
	Name: jsii.String("name"),

	// the properties below are optional
	CaCertificatesBundleSource: &CaCertificatesBundleSourceProperty{
		CaCertificatesBundleS3Location: &CaCertificatesBundleS3LocationProperty{
			Bucket: jsii.String("bucket"),
			Key: jsii.String("key"),
			Region: jsii.String("region"),

			// the properties below are optional
			Version: jsii.String("version"),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	UseClientCertificateOcspEndpoint: jsii.Boolean(false),
}
```

## Properties

- `caCertificatesBundleSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrustStore.CaCertificatesBundleSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnTrustStore.CaCertificatesBundleSourceProperty.html) — A CA certificates bundle source.

- `name`: string (required) — The trust store's name.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A complex type that contains zero or more `Tag` elements.

- `useClientCertificateOcspEndpoint`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A boolean.

  When true, performs real-time certificate revocation checks by querying the OCSP endpoint specified within the client certificate.
