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