com.pulumi.cloudflare.kotlin.AccessKeysConfigurationArgs.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.AccessKeysConfigurationArgs.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 AccessKeysConfigurationArgs(
public val accountId: Output? = null,
public val keyRotationIntervalDays: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.AccessKeysConfigurationArgs =
com.pulumi.cloudflare.AccessKeysConfigurationArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.keyRotationIntervalDays(keyRotationIntervalDays?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccessKeysConfigurationArgs].
*/
@PulumiTagMarker
public class AccessKeysConfigurationArgsBuilder internal constructor() {
private var accountId: Output? = null
private var keyRotationIntervalDays: Output? = null
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("ojoriuawmbrvykco")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value Number of days to trigger a rotation of the keys.
*/
@JvmName("thbjhhcqedmjuobj")
public suspend fun keyRotationIntervalDays(`value`: Output) {
this.keyRotationIntervalDays = value
}
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("kvekeuwrylxqocmh")
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("nxalgpriryqkptep")
public suspend fun keyRotationIntervalDays(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyRotationIntervalDays = mapped
}
internal fun build(): AccessKeysConfigurationArgs = AccessKeysConfigurationArgs(
accountId = accountId,
keyRotationIntervalDays = keyRotationIntervalDays,
)
}