com.pulumi.awsnative.cloudfront.kotlin.outputs.GetCachePolicyResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property cachePolicyConfig The cache policy configuration.
* @property id The unique identifier for the cache policy. For example: `2766f7b2-75c5-41c6-8f06-bf4303a2f2f5` .
* @property lastModifiedTime The date and time when the cache policy was last modified.
*/
public data class GetCachePolicyResult(
public val cachePolicyConfig: CachePolicyConfig? = null,
public val id: String? = null,
public val lastModifiedTime: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudfront.outputs.GetCachePolicyResult): GetCachePolicyResult = GetCachePolicyResult(
cachePolicyConfig = javaType.cachePolicyConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudfront.kotlin.outputs.CachePolicyConfig.Companion.toKotlin(args0)
})
}).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
lastModifiedTime = javaType.lastModifiedTime().map({ args0 -> args0 }).orElse(null),
)
}
}