# InferenceComponentDataCacheConfigProperty

Settings that affect how the inference component caches data.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 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_sagemaker as sagemaker } from 'aws-cdk-lib';
const inferenceComponentDataCacheConfigProperty: sagemaker.CfnInferenceComponent.InferenceComponentDataCacheConfigProperty = {
  enableCaching: false,
};
```

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_sagemaker as sagemaker

inference_component_data_cache_config_property = sagemaker.CfnInferenceComponent.InferenceComponentDataCacheConfigProperty(
    enable_caching=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.sagemaker.*;

InferenceComponentDataCacheConfigProperty inferenceComponentDataCacheConfigProperty = InferenceComponentDataCacheConfigProperty.builder()
        .enableCaching(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.Sagemaker;

var inferenceComponentDataCacheConfigProperty = new InferenceComponentDataCacheConfigProperty {
    EnableCaching = 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"

inferenceComponentDataCacheConfigProperty := &InferenceComponentDataCacheConfigProperty{
	EnableCaching: jsii.Boolean(false),
}
```

## Properties

- `enableCaching`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Whether the endpoint caches the model artifacts and container image on each instance it provisions for the inference component.
