com.pulumi.cloudflare.kotlin.ZeroTrustKeyAccessKeyConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin
import com.pulumi.cloudflare.ZeroTrustKeyAccessKeyConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Access Keys Configuration defines the rotation policy for the keys
* that access will use to sign data.
* @property accountId The account identifier to target for the resource.
* @property keyRotationIntervalDays Number of days to trigger a rotation of the keys.
*/
public data class ZeroTrustKeyAccessKeyConfigurationArgs(
public val accountId: Output? = null,
public val keyRotationIntervalDays: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.ZeroTrustKeyAccessKeyConfigurationArgs =
com.pulumi.cloudflare.ZeroTrustKeyAccessKeyConfigurationArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.keyRotationIntervalDays(keyRotationIntervalDays?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ZeroTrustKeyAccessKeyConfigurationArgs].
*/
@PulumiTagMarker
public class ZeroTrustKeyAccessKeyConfigurationArgsBuilder internal constructor() {
private var accountId: Output? = null
private var keyRotationIntervalDays: Output? = null
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("qhggpuxrbpbndcjp")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value Number of days to trigger a rotation of the keys.
*/
@JvmName("sqrwlaeaapovvfty")
public suspend fun keyRotationIntervalDays(`value`: Output) {
this.keyRotationIntervalDays = value
}
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("ccfchbnnhwasdspx")
public suspend fun accountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountId = mapped
}
/**
* @param value Number of days to trigger a rotation of the keys.
*/
@JvmName("tytoosuvgautpxyt")
public suspend fun keyRotationIntervalDays(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyRotationIntervalDays = mapped
}
internal fun build(): ZeroTrustKeyAccessKeyConfigurationArgs =
ZeroTrustKeyAccessKeyConfigurationArgs(
accountId = accountId,
keyRotationIntervalDays = keyRotationIntervalDays,
)
}