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

com.pulumi.aws.acmpca.kotlin.inputs.CertificateAuthorityRevocationConfigurationCrlConfigurationArgs.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.acmpca.kotlin.inputs

import com.pulumi.aws.acmpca.inputs.CertificateAuthorityRevocationConfigurationCrlConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property customCname Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length.
 * @property enabled Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to `false`.
 * @property expirationInDays Number of days until a certificate expires. Must be between 1 and 5000.
 * @property s3BucketName Name of the S3 bucket that contains the CRL. If you do not provide a value for the `custom_cname` argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket. Must be between 3 and 255 characters in length.
 * @property s3ObjectAcl Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. Defaults to `PUBLIC_READ`.
 */
public data class CertificateAuthorityRevocationConfigurationCrlConfigurationArgs(
    public val customCname: Output? = null,
    public val enabled: Output? = null,
    public val expirationInDays: Output? = null,
    public val s3BucketName: Output? = null,
    public val s3ObjectAcl: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.acmpca.inputs.CertificateAuthorityRevocationConfigurationCrlConfigurationArgs =
        com.pulumi.aws.acmpca.inputs.CertificateAuthorityRevocationConfigurationCrlConfigurationArgs.builder()
            .customCname(customCname?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .expirationInDays(expirationInDays?.applyValue({ args0 -> args0 }))
            .s3BucketName(s3BucketName?.applyValue({ args0 -> args0 }))
            .s3ObjectAcl(s3ObjectAcl?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateAuthorityRevocationConfigurationCrlConfigurationArgs].
 */
@PulumiTagMarker
public class CertificateAuthorityRevocationConfigurationCrlConfigurationArgsBuilder internal constructor() {
    private var customCname: Output? = null

    private var enabled: Output? = null

    private var expirationInDays: Output? = null

    private var s3BucketName: Output? = null

    private var s3ObjectAcl: Output? = null

    /**
     * @param value Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length.
     */
    @JvmName("ayjhmmsttvlgysbm")
    public suspend fun customCname(`value`: Output) {
        this.customCname = value
    }

    /**
     * @param value Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to `false`.
     */
    @JvmName("jvaylibfcvxodwfa")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Number of days until a certificate expires. Must be between 1 and 5000.
     */
    @JvmName("qepwkdqvlxtfcvjp")
    public suspend fun expirationInDays(`value`: Output) {
        this.expirationInDays = value
    }

    /**
     * @param value Name of the S3 bucket that contains the CRL. If you do not provide a value for the `custom_cname` argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket. Must be between 3 and 255 characters in length.
     */
    @JvmName("bquflgqapkbgfvda")
    public suspend fun s3BucketName(`value`: Output) {
        this.s3BucketName = value
    }

    /**
     * @param value Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. Defaults to `PUBLIC_READ`.
     */
    @JvmName("tqinfnieabiemqvp")
    public suspend fun s3ObjectAcl(`value`: Output) {
        this.s3ObjectAcl = value
    }

    /**
     * @param value Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length.
     */
    @JvmName("sreodtyxjxcmybsu")
    public suspend fun customCname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customCname = mapped
    }

    /**
     * @param value Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to `false`.
     */
    @JvmName("nexvunatkvjopbtv")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Number of days until a certificate expires. Must be between 1 and 5000.
     */
    @JvmName("uapwdyfwqqknnwiy")
    public suspend fun expirationInDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expirationInDays = mapped
    }

    /**
     * @param value Name of the S3 bucket that contains the CRL. If you do not provide a value for the `custom_cname` argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket. Must be between 3 and 255 characters in length.
     */
    @JvmName("fqfydabitnuqbkco")
    public suspend fun s3BucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3BucketName = mapped
    }

    /**
     * @param value Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. Defaults to `PUBLIC_READ`.
     */
    @JvmName("assrpwdwkkniaajs")
    public suspend fun s3ObjectAcl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3ObjectAcl = mapped
    }

    internal fun build(): CertificateAuthorityRevocationConfigurationCrlConfigurationArgs =
        CertificateAuthorityRevocationConfigurationCrlConfigurationArgs(
            customCname = customCname,
            enabled = enabled,
            expirationInDays = expirationInDays,
            s3BucketName = s3BucketName,
            s3ObjectAcl = s3ObjectAcl,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy