
com.pulumi.aws.storagegateway.kotlin.inputs.FileSystemAssociationCacheAttributesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.storagegateway.kotlin.inputs
import com.pulumi.aws.storagegateway.inputs.FileSystemAssociationCacheAttributesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property cacheStaleTimeoutInSeconds Refreshes a file share's cache by using Time To Live (TTL).
* TTL is the length of time since the last refresh after which access to the directory would cause the file gateway
* to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: `0` or `300` to `2592000` seconds (5 minutes to 30 days). Defaults to `0`
*/
public data class FileSystemAssociationCacheAttributesArgs(
public val cacheStaleTimeoutInSeconds: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.storagegateway.inputs.FileSystemAssociationCacheAttributesArgs =
com.pulumi.aws.storagegateway.inputs.FileSystemAssociationCacheAttributesArgs.builder()
.cacheStaleTimeoutInSeconds(cacheStaleTimeoutInSeconds?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FileSystemAssociationCacheAttributesArgs].
*/
@PulumiTagMarker
public class FileSystemAssociationCacheAttributesArgsBuilder internal constructor() {
private var cacheStaleTimeoutInSeconds: Output? = null
/**
* @param value Refreshes a file share's cache by using Time To Live (TTL).
* TTL is the length of time since the last refresh after which access to the directory would cause the file gateway
* to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: `0` or `300` to `2592000` seconds (5 minutes to 30 days). Defaults to `0`
*/
@JvmName("xdwcmytujjlthlmk")
public suspend fun cacheStaleTimeoutInSeconds(`value`: Output) {
this.cacheStaleTimeoutInSeconds = value
}
/**
* @param value Refreshes a file share's cache by using Time To Live (TTL).
* TTL is the length of time since the last refresh after which access to the directory would cause the file gateway
* to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: `0` or `300` to `2592000` seconds (5 minutes to 30 days). Defaults to `0`
*/
@JvmName("cdpewgxivnxdmypk")
public suspend fun cacheStaleTimeoutInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cacheStaleTimeoutInSeconds = mapped
}
internal fun build(): FileSystemAssociationCacheAttributesArgs =
FileSystemAssociationCacheAttributesArgs(
cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy