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

com.pulumi.awsnative.transfer.kotlin.CertificateArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.transfer.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.transfer.CertificateArgs.builder
import com.pulumi.awsnative.transfer.kotlin.enums.CertificateUsage
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Transfer::Certificate
 * @property activeDate Specifies the active date for the certificate.
 * @property certificate Specifies the certificate body to be imported.
 * @property certificateChain Specifies the certificate chain to be imported.
 * @property description A textual description for the certificate.
 * @property inactiveDate Specifies the inactive date for the certificate.
 * @property privateKey Specifies the private key for the certificate.
 * @property tags Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
 * @property usage Specifies the usage type for the certificate.
 */
public data class CertificateArgs(
    public val activeDate: Output? = null,
    public val certificate: Output? = null,
    public val certificateChain: Output? = null,
    public val description: Output? = null,
    public val inactiveDate: Output? = null,
    public val privateKey: Output? = null,
    public val tags: Output>? = null,
    public val usage: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.transfer.CertificateArgs =
        com.pulumi.awsnative.transfer.CertificateArgs.builder()
            .activeDate(activeDate?.applyValue({ args0 -> args0 }))
            .certificate(certificate?.applyValue({ args0 -> args0 }))
            .certificateChain(certificateChain?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .inactiveDate(inactiveDate?.applyValue({ args0 -> args0 }))
            .privateKey(privateKey?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .usage(usage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [CertificateArgs].
 */
@PulumiTagMarker
public class CertificateArgsBuilder internal constructor() {
    private var activeDate: Output? = null

    private var certificate: Output? = null

    private var certificateChain: Output? = null

    private var description: Output? = null

    private var inactiveDate: Output? = null

    private var privateKey: Output? = null

    private var tags: Output>? = null

    private var usage: Output? = null

    /**
     * @param value Specifies the active date for the certificate.
     */
    @JvmName("xtxnjufkipyrcrkb")
    public suspend fun activeDate(`value`: Output) {
        this.activeDate = value
    }

    /**
     * @param value Specifies the certificate body to be imported.
     */
    @JvmName("maednqmfneybiufr")
    public suspend fun certificate(`value`: Output) {
        this.certificate = value
    }

    /**
     * @param value Specifies the certificate chain to be imported.
     */
    @JvmName("jtlsahrfhyuyoywr")
    public suspend fun certificateChain(`value`: Output) {
        this.certificateChain = value
    }

    /**
     * @param value A textual description for the certificate.
     */
    @JvmName("eyxwmiuepxmbswho")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies the inactive date for the certificate.
     */
    @JvmName("vjxsovjpebjkhwcq")
    public suspend fun inactiveDate(`value`: Output) {
        this.inactiveDate = value
    }

    /**
     * @param value Specifies the private key for the certificate.
     */
    @JvmName("smmwvwlplimbnvsi")
    public suspend fun privateKey(`value`: Output) {
        this.privateKey = value
    }

    /**
     * @param value Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
     */
    @JvmName("mokouhdhgdenkoae")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("dyohnkoiqlgfhlos")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
     */
    @JvmName("ymhydgleghjmljeq")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Specifies the usage type for the certificate.
     */
    @JvmName("blkkbbrlaxmpglrg")
    public suspend fun usage(`value`: Output) {
        this.usage = value
    }

    /**
     * @param value Specifies the active date for the certificate.
     */
    @JvmName("eabvhujrxkksoktw")
    public suspend fun activeDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activeDate = mapped
    }

    /**
     * @param value Specifies the certificate body to be imported.
     */
    @JvmName("qskqsucyhuoeoqcc")
    public suspend fun certificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificate = mapped
    }

    /**
     * @param value Specifies the certificate chain to be imported.
     */
    @JvmName("ocpintbljduappdb")
    public suspend fun certificateChain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateChain = mapped
    }

    /**
     * @param value A textual description for the certificate.
     */
    @JvmName("oyhdbphglvvqpcwl")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Specifies the inactive date for the certificate.
     */
    @JvmName("muxhapsjepyfuflp")
    public suspend fun inactiveDate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inactiveDate = mapped
    }

    /**
     * @param value Specifies the private key for the certificate.
     */
    @JvmName("xoehvrasqhgeekht")
    public suspend fun privateKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateKey = mapped
    }

    /**
     * @param value Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
     */
    @JvmName("faeyrjwsdchxnaqc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
     */
    @JvmName("cqbtojnbgiowhvex")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
     */
    @JvmName("bkybnjchtjreiavr")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
     */
    @JvmName("lwhvtxtffspoounr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Key-value pairs that can be used to group and search for certificates. Tags are metadata attached to certificates for any purpose.
     */
    @JvmName("vscmeeheolfdrhiy")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies the usage type for the certificate.
     */
    @JvmName("jugvwtvjddaadxid")
    public suspend fun usage(`value`: CertificateUsage?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usage = mapped
    }

    internal fun build(): CertificateArgs = CertificateArgs(
        activeDate = activeDate,
        certificate = certificate,
        certificateChain = certificateChain,
        description = description,
        inactiveDate = inactiveDate,
        privateKey = privateKey,
        tags = tags,
        usage = usage,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy