com.pulumi.awsnative.lightsail.kotlin.CertificateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lightsail.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.lightsail.CertificateArgs.builder
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::Lightsail::Certificate.
* @property certificateName The name for the certificate.
* @property domainName The domain name (e.g., example.com ) for the certificate.
* @property subjectAlternativeNames An array of strings that specify the alternate domains (e.g., example2.com) and subdomains (e.g., blog.example.com) for the certificate.
* @property tags An array of key-value pairs to apply to this resource.
*/
public data class CertificateArgs(
public val certificateName: Output? = null,
public val domainName: Output? = null,
public val subjectAlternativeNames: Output>? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lightsail.CertificateArgs =
com.pulumi.awsnative.lightsail.CertificateArgs.builder()
.certificateName(certificateName?.applyValue({ args0 -> args0 }))
.domainName(domainName?.applyValue({ args0 -> args0 }))
.subjectAlternativeNames(
subjectAlternativeNames?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [CertificateArgs].
*/
@PulumiTagMarker
public class CertificateArgsBuilder internal constructor() {
private var certificateName: Output? = null
private var domainName: Output? = null
private var subjectAlternativeNames: Output>? = null
private var tags: Output>? = null
/**
* @param value The name for the certificate.
*/
@JvmName("daurteipfjsuqokg")
public suspend fun certificateName(`value`: Output) {
this.certificateName = value
}
/**
* @param value The domain name (e.g., example.com ) for the certificate.
*/
@JvmName("nfxltiiycwspnxie")
public suspend fun domainName(`value`: Output) {
this.domainName = value
}
/**
* @param value An array of strings that specify the alternate domains (e.g., example2.com) and subdomains (e.g., blog.example.com) for the certificate.
*/
@JvmName("sfsnaqecwxsxipuk")
public suspend fun subjectAlternativeNames(`value`: Output>) {
this.subjectAlternativeNames = value
}
@JvmName("xblfbehkapihmyih")
public suspend fun subjectAlternativeNames(vararg values: Output) {
this.subjectAlternativeNames = Output.all(values.asList())
}
/**
* @param values An array of strings that specify the alternate domains (e.g., example2.com) and subdomains (e.g., blog.example.com) for the certificate.
*/
@JvmName("uaermqvhdhtpiqnd")
public suspend fun subjectAlternativeNames(values: List