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

com.pulumi.aws.transfer.kotlin.CertificateArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.transfer.kotlin

import com.pulumi.aws.transfer.CertificateArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides a AWS Transfer AS2 Certificate resource.
 * ## Example Usage
 * ## Import
 * Using `pulumi import`, import Transfer AS2 Certificate using the `certificate_id`. For example:
 * ```sh
 * $ pulumi import aws:transfer/certificate:Certificate example c-4221a88afd5f4362a
 * ```
 * @property certificate The valid certificate file required for the transfer.
 * @property certificateChain The optional list of certificate that make up the chain for the certificate that is being imported.
 * @property description A short description that helps identify the certificate.
 * @property privateKey The private key associated with the certificate being imported.
 * @property tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 * @property usage Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
 */
public data class CertificateArgs(
    public val certificate: Output? = null,
    public val certificateChain: Output? = null,
    public val description: Output? = null,
    public val privateKey: Output? = null,
    public val tags: Output>? = null,
    public val usage: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.transfer.CertificateArgs =
        com.pulumi.aws.transfer.CertificateArgs.builder()
            .certificate(certificate?.applyValue({ args0 -> args0 }))
            .certificateChain(certificateChain?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .privateKey(privateKey?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .usage(usage?.applyValue({ args0 -> args0 })).build()
}

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

    private var certificateChain: Output? = null

    private var description: Output? = null

    private var privateKey: Output? = null

    private var tags: Output>? = null

    private var usage: Output? = null

    /**
     * @param value The valid certificate file required for the transfer.
     */
    @JvmName("eeylvwgumrwgcwuj")
    public suspend fun certificate(`value`: Output) {
        this.certificate = value
    }

    /**
     * @param value The optional list of certificate that make up the chain for the certificate that is being imported.
     */
    @JvmName("gbmsqaqimopcvowe")
    public suspend fun certificateChain(`value`: Output) {
        this.certificateChain = value
    }

    /**
     * @param value A short description that helps identify the certificate.
     */
    @JvmName("jxspoqrntnisdqhk")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The private key associated with the certificate being imported.
     */
    @JvmName("jmuppcmiqetqvcnm")
    public suspend fun privateKey(`value`: Output) {
        this.privateKey = value
    }

    /**
     * @param value A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("lxfhytqbggqnnnft")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
     */
    @JvmName("mrhuvclwfgilmavg")
    public suspend fun usage(`value`: Output) {
        this.usage = value
    }

    /**
     * @param value The valid certificate file required for the transfer.
     */
    @JvmName("jekvebjlxnvqxfmb")
    public suspend fun certificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificate = mapped
    }

    /**
     * @param value The optional list of certificate that make up the chain for the certificate that is being imported.
     */
    @JvmName("ulvqwypijxllcjfa")
    public suspend fun certificateChain(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateChain = mapped
    }

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

    /**
     * @param value The private key associated with the certificate being imported.
     */
    @JvmName("jlpmykxuvlwvhthj")
    public suspend fun privateKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateKey = mapped
    }

    /**
     * @param value A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("nvjxactosxmewyhi")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("cpesiorxqswwysmo")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.
     */
    @JvmName("dprjkussaqoutqjs")
    public suspend fun usage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usage = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy