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

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

package com.pulumi.awsnative.iot.kotlin

import com.pulumi.awsnative.iot.CertificateProviderArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.CertificateProviderOperation
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

/**
 * Use the AWS::IoT::CertificateProvider resource to declare an AWS IoT Certificate Provider.
 * @property accountDefaultForOperations A list of the operations that the certificate provider will use to generate certificates. Valid value: `CreateCertificateFromCsr` .
 * @property certificateProviderName The name of the certificate provider.
 * @property lambdaFunctionArn The ARN of the Lambda function.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class CertificateProviderArgs(
    public val accountDefaultForOperations: Output>? = null,
    public val certificateProviderName: Output? = null,
    public val lambdaFunctionArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.CertificateProviderArgs =
        com.pulumi.awsnative.iot.CertificateProviderArgs.builder()
            .accountDefaultForOperations(
                accountDefaultForOperations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .certificateProviderName(certificateProviderName?.applyValue({ args0 -> args0 }))
            .lambdaFunctionArn(lambdaFunctionArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [CertificateProviderArgs].
 */
@PulumiTagMarker
public class CertificateProviderArgsBuilder internal constructor() {
    private var accountDefaultForOperations: Output>? = null

    private var certificateProviderName: Output? = null

    private var lambdaFunctionArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A list of the operations that the certificate provider will use to generate certificates. Valid value: `CreateCertificateFromCsr` .
     */
    @JvmName("bbkjlfjjxdgghjpg")
    public suspend fun accountDefaultForOperations(`value`: Output>) {
        this.accountDefaultForOperations = value
    }

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

    /**
     * @param values A list of the operations that the certificate provider will use to generate certificates. Valid value: `CreateCertificateFromCsr` .
     */
    @JvmName("ibcuomakoynemfbn")
    public suspend fun accountDefaultForOperations(values: List>) {
        this.accountDefaultForOperations = Output.all(values)
    }

    /**
     * @param value The name of the certificate provider.
     */
    @JvmName("thwcjxdgjhuwored")
    public suspend fun certificateProviderName(`value`: Output) {
        this.certificateProviderName = value
    }

    /**
     * @param value The ARN of the Lambda function.
     */
    @JvmName("xtarraselpceaaqu")
    public suspend fun lambdaFunctionArn(`value`: Output) {
        this.lambdaFunctionArn = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("jepqvujtknpgrvds")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("pwkrojtyxwefufgr")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A list of the operations that the certificate provider will use to generate certificates. Valid value: `CreateCertificateFromCsr` .
     */
    @JvmName("osukwochfltkwfyo")
    public suspend fun accountDefaultForOperations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountDefaultForOperations = mapped
    }

    /**
     * @param values A list of the operations that the certificate provider will use to generate certificates. Valid value: `CreateCertificateFromCsr` .
     */
    @JvmName("usgpxacshscykfxp")
    public suspend fun accountDefaultForOperations(vararg values: CertificateProviderOperation) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountDefaultForOperations = mapped
    }

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

    /**
     * @param value The ARN of the Lambda function.
     */
    @JvmName("ygnpekmkuliorwnc")
    public suspend fun lambdaFunctionArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lambdaFunctionArn = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("dnthsotfpcutldlr")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("qyqqvdxbunwtvhoq")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("ljfirgdmbwniicuk")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("nftgpuajjcurxvrm")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("lperqauunhinhyeu")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CertificateProviderArgs = CertificateProviderArgs(
        accountDefaultForOperations = accountDefaultForOperations,
        certificateProviderName = certificateProviderName,
        lambdaFunctionArn = lambdaFunctionArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy