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

com.pulumi.awsnative.rolesanywhere.kotlin.TrustAnchorArgs.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.rolesanywhere.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.rolesanywhere.TrustAnchorArgs.builder
import com.pulumi.awsnative.rolesanywhere.kotlin.inputs.TrustAnchorNotificationSettingArgs
import com.pulumi.awsnative.rolesanywhere.kotlin.inputs.TrustAnchorNotificationSettingArgsBuilder
import com.pulumi.awsnative.rolesanywhere.kotlin.inputs.TrustAnchorSourceArgs
import com.pulumi.awsnative.rolesanywhere.kotlin.inputs.TrustAnchorSourceArgsBuilder
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::TrustAnchor Resource Type.
 * @property enabled Indicates whether the trust anchor is enabled.
 * @property name The name of the trust anchor.
 * @property notificationSettings A list of notification settings to be associated to the trust anchor.
 * @property source The trust anchor type and its related certificate data.
 * @property tags The tags to attach to the trust anchor.
 */
public data class TrustAnchorArgs(
    public val enabled: Output? = null,
    public val name: Output? = null,
    public val notificationSettings: Output>? = null,
    public val source: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rolesanywhere.TrustAnchorArgs =
        com.pulumi.awsnative.rolesanywhere.TrustAnchorArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .notificationSettings(
                notificationSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .source(source?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TrustAnchorArgs].
 */
@PulumiTagMarker
public class TrustAnchorArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var name: Output? = null

    private var notificationSettings: Output>? = null

    private var source: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Indicates whether the trust anchor is enabled.
     */
    @JvmName("uyddsonmfmjbvnjv")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The name of the trust anchor.
     */
    @JvmName("qxgxncyaqfietisg")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of notification settings to be associated to the trust anchor.
     */
    @JvmName("takylesuonkidhsw")
    public suspend fun notificationSettings(`value`: Output>) {
        this.notificationSettings = value
    }

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

    /**
     * @param values A list of notification settings to be associated to the trust anchor.
     */
    @JvmName("qjebuxlkyylckexc")
    public suspend fun notificationSettings(values: List>) {
        this.notificationSettings = Output.all(values)
    }

    /**
     * @param value The trust anchor type and its related certificate data.
     */
    @JvmName("wlvgdkmfuupyrwpp")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value The tags to attach to the trust anchor.
     */
    @JvmName("ppidohyqvsioltym")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to attach to the trust anchor.
     */
    @JvmName("qamhmcmvqkjwmvyc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Indicates whether the trust anchor is enabled.
     */
    @JvmName("imbtieqwrdhcpwcf")
    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 trust anchor.
     */
    @JvmName("mwirwhfpylrdpaim")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of notification settings to be associated to the trust anchor.
     */
    @JvmName("xcptbukysilxjukm")
    public suspend fun notificationSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationSettings = mapped
    }

    /**
     * @param argument A list of notification settings to be associated to the trust anchor.
     */
    @JvmName("rktogtlwxaabggjc")
    public suspend fun notificationSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TrustAnchorNotificationSettingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.notificationSettings = mapped
    }

    /**
     * @param argument A list of notification settings to be associated to the trust anchor.
     */
    @JvmName("laaqrorxmxbtsrlu")
    public suspend fun notificationSettings(vararg argument: suspend TrustAnchorNotificationSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TrustAnchorNotificationSettingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.notificationSettings = mapped
    }

    /**
     * @param argument A list of notification settings to be associated to the trust anchor.
     */
    @JvmName("yjydebrqulyywxtv")
    public suspend fun notificationSettings(argument: suspend TrustAnchorNotificationSettingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TrustAnchorNotificationSettingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.notificationSettings = mapped
    }

    /**
     * @param values A list of notification settings to be associated to the trust anchor.
     */
    @JvmName("tgohnjubigijlsvt")
    public suspend fun notificationSettings(vararg values: TrustAnchorNotificationSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notificationSettings = mapped
    }

    /**
     * @param value The trust anchor type and its related certificate data.
     */
    @JvmName("gimmnokdpsxkdghw")
    public suspend fun source(`value`: TrustAnchorSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param argument The trust anchor type and its related certificate data.
     */
    @JvmName("bebwmhvhucwctvjl")
    public suspend fun source(argument: suspend TrustAnchorSourceArgsBuilder.() -> Unit) {
        val toBeMapped = TrustAnchorSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.source = mapped
    }

    /**
     * @param value The tags to attach to the trust anchor.
     */
    @JvmName("mldueljmphufxuyp")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to attach to the trust anchor.
     */
    @JvmName("vrauqsjenpvsppxj")
    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 The tags to attach to the trust anchor.
     */
    @JvmName("auphiifyjehwjkaj")
    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 The tags to attach to the trust anchor.
     */
    @JvmName("sntpdmijdksdsjnp")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to attach to the trust anchor.
     */
    @JvmName("dnrbcibvvmkkivoc")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): TrustAnchorArgs = TrustAnchorArgs(
        enabled = enabled,
        name = name,
        notificationSettings = notificationSettings,
        source = source,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy