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

com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateValidityArgs.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.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.acmpca.kotlin.inputs

import com.pulumi.awsnative.acmpca.inputs.CertificateValidityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Length of time for which the certificate issued by your private certificate authority (CA), or by the private CA itself, is valid in days, months, or years. You can issue a certificate by calling the ``IssueCertificate`` operation.
 * @property type Specifies whether the ``Value`` parameter represents days, months, or years.
 * @property value A long integer interpreted according to the value of ``Type``, below.
 */
public data class CertificateValidityArgs(
    public val type: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.acmpca.inputs.CertificateValidityArgs =
        com.pulumi.awsnative.acmpca.inputs.CertificateValidityArgs.builder()
            .type(type.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateValidityArgs].
 */
@PulumiTagMarker
public class CertificateValidityArgsBuilder internal constructor() {
    private var type: Output? = null

    private var `value`: Output? = null

    /**
     * @param value Specifies whether the ``Value`` parameter represents days, months, or years.
     */
    @JvmName("ppjqgifbxvyeyttq")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A long integer interpreted according to the value of ``Type``, below.
     */
    @JvmName("legivjxucpfeiqtm")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Specifies whether the ``Value`` parameter represents days, months, or years.
     */
    @JvmName("wepjrissbxxljtjw")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value A long integer interpreted according to the value of ``Type``, below.
     */
    @JvmName("tmcfjhqtmudxgvbf")
    public suspend fun `value`(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): CertificateValidityArgs = CertificateValidityArgs(
        type = type ?: throw PulumiNullFieldException("type"),
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy