com.pulumi.awsnative.acmpca.kotlin.CertificateAuthorityArgs.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.acmpca.kotlin
import com.pulumi.awsnative.acmpca.CertificateAuthorityArgs.builder
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityCsrExtensionsArgs
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityCsrExtensionsArgsBuilder
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityRevocationConfigurationArgs
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityRevocationConfigurationArgsBuilder
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthoritySubjectArgs
import com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthoritySubjectArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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
/**
* Private certificate authority.
* ## Example Usage
* ### Example
* No Java example available.
* @property csrExtensions Structure that contains CSR pass through extension information used by the CreateCertificateAuthority action.
* @property keyAlgorithm Public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.
* @property keyStorageSecurityStandard KeyStorageSecurityStadard defines a cryptographic key management compliance standard used for handling CA keys.
* @property revocationConfiguration Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.
* @property signingAlgorithm Algorithm your CA uses to sign certificate requests.
* @property subject Structure that contains X.500 distinguished name information for your CA.
* @property tags Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
* @property type The type of the certificate authority.
* @property usageMode Usage mode of the ceritificate authority.
*/
public data class CertificateAuthorityArgs(
public val csrExtensions: Output? = null,
public val keyAlgorithm: Output? = null,
public val keyStorageSecurityStandard: Output? = null,
public val revocationConfiguration: Output? =
null,
public val signingAlgorithm: Output? = null,
public val subject: Output? = null,
public val tags: Output>? = null,
public val type: Output? = null,
public val usageMode: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.acmpca.CertificateAuthorityArgs =
com.pulumi.awsnative.acmpca.CertificateAuthorityArgs.builder()
.csrExtensions(csrExtensions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.keyAlgorithm(keyAlgorithm?.applyValue({ args0 -> args0 }))
.keyStorageSecurityStandard(keyStorageSecurityStandard?.applyValue({ args0 -> args0 }))
.revocationConfiguration(
revocationConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.signingAlgorithm(signingAlgorithm?.applyValue({ args0 -> args0 }))
.subject(subject?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.type(type?.applyValue({ args0 -> args0 }))
.usageMode(usageMode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CertificateAuthorityArgs].
*/
@PulumiTagMarker
public class CertificateAuthorityArgsBuilder internal constructor() {
private var csrExtensions: Output? = null
private var keyAlgorithm: Output? = null
private var keyStorageSecurityStandard: Output? = null
private var revocationConfiguration: Output? =
null
private var signingAlgorithm: Output? = null
private var subject: Output? = null
private var tags: Output>? = null
private var type: Output? = null
private var usageMode: Output? = null
/**
* @param value Structure that contains CSR pass through extension information used by the CreateCertificateAuthority action.
*/
@JvmName("qdugxageqxyihaxq")
public suspend fun csrExtensions(`value`: Output) {
this.csrExtensions = value
}
/**
* @param value Public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.
*/
@JvmName("ekmwrwaddpeknmka")
public suspend fun keyAlgorithm(`value`: Output) {
this.keyAlgorithm = value
}
/**
* @param value KeyStorageSecurityStadard defines a cryptographic key management compliance standard used for handling CA keys.
*/
@JvmName("wosahkjnhofleeov")
public suspend fun keyStorageSecurityStandard(`value`: Output) {
this.keyStorageSecurityStandard = value
}
/**
* @param value Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.
*/
@JvmName("iybwucigiwdvknjm")
public suspend fun revocationConfiguration(`value`: Output) {
this.revocationConfiguration = value
}
/**
* @param value Algorithm your CA uses to sign certificate requests.
*/
@JvmName("nxvlbqhivplwifni")
public suspend fun signingAlgorithm(`value`: Output) {
this.signingAlgorithm = value
}
/**
* @param value Structure that contains X.500 distinguished name information for your CA.
*/
@JvmName("iujjmpdfwrhrergt")
public suspend fun subject(`value`: Output) {
this.subject = value
}
/**
* @param value Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
*/
@JvmName("unvihakwtrbygamd")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("qdibdxlidhbpufka")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see [Controlling Access Using IAM Tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html) .
*/
@JvmName("llcymwkfobmgginh")
public suspend fun tags(values: List