CacheAttributesProperty Struct
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 | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
};
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
cacheStaleTimeoutInSecondsoptionalnumbercache_stale_timeout_in_secondsoptionalint | floatcacheStaleTimeoutInSecondsoptionalNumberCacheStaleTimeoutInSecondsoptionaldoubleCacheStaleTimeoutInSecondsoptional*float64 #How long the directory contents cached by the gateway are considered valid.