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

com.pulumi.awsnative.rolesanywhere.kotlin.CrlArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.rolesanywhere.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.rolesanywhere.CrlArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::RolesAnywhere::CRL Resource Type
 * @property crlData The x509 v3 specified certificate revocation list (CRL).
 * @property enabled Specifies whether the certificate revocation list (CRL) is enabled.
 * @property name The name of the certificate revocation list (CRL).
 * @property tags A list of tags to attach to the certificate revocation list (CRL).
 * @property trustAnchorArn The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.
 */
public data class CrlArgs(
    public val crlData: Output? = null,
    public val enabled: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val trustAnchorArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rolesanywhere.CrlArgs =
        com.pulumi.awsnative.rolesanywhere.CrlArgs.builder()
            .crlData(crlData?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .trustAnchorArn(trustAnchorArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CrlArgs].
 */
@PulumiTagMarker
public class CrlArgsBuilder internal constructor() {
    private var crlData: Output? = null

    private var enabled: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var trustAnchorArn: Output? = null

    /**
     * @param value The x509 v3 specified certificate revocation list (CRL).
     */
    @JvmName("bgqkweenkyufnqxi")
    public suspend fun crlData(`value`: Output) {
        this.crlData = value
    }

    /**
     * @param value Specifies whether the certificate revocation list (CRL) is enabled.
     */
    @JvmName("upruovevfsdrkqrv")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The name of the certificate revocation list (CRL).
     */
    @JvmName("fdsjtcguofippexr")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of tags to attach to the certificate revocation list (CRL).
     */
    @JvmName("gewtmftpfmysjgpl")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("vvhlovqgcuytsltn")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values A list of tags to attach to the certificate revocation list (CRL).
     */
    @JvmName("deftmryjruycyfpm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.
     */
    @JvmName("dxsrkcbkotlogbgj")
    public suspend fun trustAnchorArn(`value`: Output) {
        this.trustAnchorArn = value
    }

    /**
     * @param value The x509 v3 specified certificate revocation list (CRL).
     */
    @JvmName("dpquhfagbbnpkaiq")
    public suspend fun crlData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.crlData = mapped
    }

    /**
     * @param value Specifies whether the certificate revocation list (CRL) is enabled.
     */
    @JvmName("gigfpnkesgdpsgvs")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The name of the certificate revocation list (CRL).
     */
    @JvmName("qtxgaamoksmpvvoj")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of tags to attach to the certificate revocation list (CRL).
     */
    @JvmName("vsfeecfpxllwhenc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of tags to attach to the certificate revocation list (CRL).
     */
    @JvmName("afksrmothpkwolkl")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of tags to attach to the certificate revocation list (CRL).
     */
    @JvmName("hgcdyjdtjivhoeti")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of tags to attach to the certificate revocation list (CRL).
     */
    @JvmName("gnaifavnjmgeixde")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of tags to attach to the certificate revocation list (CRL).
     */
    @JvmName("tnqqsrqhxgexvhkf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.
     */
    @JvmName("vhwprgldenoxuqko")
    public suspend fun trustAnchorArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustAnchorArn = mapped
    }

    internal fun build(): CrlArgs = CrlArgs(
        crlData = crlData,
        enabled = enabled,
        name = name,
        tags = tags,
        trustAnchorArn = trustAnchorArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy