All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gitlab.kotlin.inputs.GroupServiceAccountAccessTokenRotationConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

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.gitlab.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gitlab.inputs.GroupServiceAccountAccessTokenRotationConfigurationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property rotateBeforeDays The duration (in days) before the expiration when the token should be rotated. As an example, if set to 7 days, the token will rotate 7 days before the expiration date, but only when `pulumi up` is run in that timeframe.
 */
public data class GroupServiceAccountAccessTokenRotationConfigurationArgs(
    public val rotateBeforeDays: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.inputs.GroupServiceAccountAccessTokenRotationConfigurationArgs =
        com.pulumi.gitlab.inputs.GroupServiceAccountAccessTokenRotationConfigurationArgs.builder()
            .rotateBeforeDays(rotateBeforeDays.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupServiceAccountAccessTokenRotationConfigurationArgs].
 */
@PulumiTagMarker
public class GroupServiceAccountAccessTokenRotationConfigurationArgsBuilder internal constructor() {
    private var rotateBeforeDays: Output? = null

    /**
     * @param value The duration (in days) before the expiration when the token should be rotated. As an example, if set to 7 days, the token will rotate 7 days before the expiration date, but only when `pulumi up` is run in that timeframe.
     */
    @JvmName("mefxxgagnkdaffkk")
    public suspend fun rotateBeforeDays(`value`: Output) {
        this.rotateBeforeDays = value
    }

    /**
     * @param value The duration (in days) before the expiration when the token should be rotated. As an example, if set to 7 days, the token will rotate 7 days before the expiration date, but only when `pulumi up` is run in that timeframe.
     */
    @JvmName("kgmmudgfcpyashco")
    public suspend fun rotateBeforeDays(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rotateBeforeDays = mapped
    }

    internal fun build(): GroupServiceAccountAccessTokenRotationConfigurationArgs =
        GroupServiceAccountAccessTokenRotationConfigurationArgs(
            rotateBeforeDays = rotateBeforeDays ?: throw PulumiNullFieldException("rotateBeforeDays"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy