# CacheAttributesProperty

Refresh cache information for the file share.

Removing this property from a template leaves the share's current value: the service documents no value that resets it.

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 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_storagegateway as storagegateway } from 'aws-cdk-lib';
const cacheAttributesProperty: storagegateway.CfnNFSFileShare.CacheAttributesProperty = {
  cacheStaleTimeoutInSeconds: 123,
};
```

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_storagegateway as storagegateway

cache_attributes_property = storagegateway.CfnNFSFileShare.CacheAttributesProperty(
    cache_stale_timeout_in_seconds=123
)
```

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

CacheAttributesProperty cacheAttributesProperty = CacheAttributesProperty.builder()
        .cacheStaleTimeoutInSeconds(123)
        .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.StorageGateway;

var cacheAttributesProperty = new CacheAttributesProperty {
    CacheStaleTimeoutInSeconds = 123
};
```

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"

cacheAttributesProperty := &CacheAttributesProperty{
	CacheStaleTimeoutInSeconds: jsii.Number(123),
}
```

## Properties

- `cacheStaleTimeoutInSeconds`: number — How long the directory contents cached by the gateway are considered valid.
