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

com.pulumi.awsnative.ses.kotlin.VdmAttributes.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ses.kotlin

import com.pulumi.awsnative.ses.kotlin.outputs.VdmAttributesDashboardAttributes
import com.pulumi.awsnative.ses.kotlin.outputs.VdmAttributesGuardianAttributes
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.ses.kotlin.outputs.VdmAttributesDashboardAttributes.Companion.toKotlin as vdmAttributesDashboardAttributesToKotlin
import com.pulumi.awsnative.ses.kotlin.outputs.VdmAttributesGuardianAttributes.Companion.toKotlin as vdmAttributesGuardianAttributesToKotlin

/**
 * Builder for [VdmAttributes].
 */
@PulumiTagMarker
public class VdmAttributesResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: VdmAttributesArgs = VdmAttributesArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend VdmAttributesArgsBuilder.() -> Unit) {
        val builder = VdmAttributesArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): VdmAttributes {
        val builtJavaResource = com.pulumi.awsnative.ses.VdmAttributes(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return VdmAttributes(builtJavaResource)
    }
}

/**
 * Resource Type definition for AWS::SES::VdmAttributes
 */
public class VdmAttributes internal constructor(
    override val javaResource: com.pulumi.awsnative.ses.VdmAttributes,
) : KotlinCustomResource(javaResource, VdmAttributesMapper) {
    /**
     * Specifies additional settings for your VDM configuration as applicable to the Dashboard.
     */
    public val dashboardAttributes: Output?
        get() = javaResource.dashboardAttributes().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> vdmAttributesDashboardAttributesToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Specifies additional settings for your VDM configuration as applicable to the Guardian.
     */
    public val guardianAttributes: Output?
        get() = javaResource.guardianAttributes().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> vdmAttributesGuardianAttributesToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Unique identifier for this resource
     */
    public val vdmAttributesResourceId: Output
        get() = javaResource.vdmAttributesResourceId().applyValue({ args0 -> args0 })
}

public object VdmAttributesMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.ses.VdmAttributes::class == javaResource::class

    override fun map(javaResource: Resource): VdmAttributes = VdmAttributes(
        javaResource as
            com.pulumi.awsnative.ses.VdmAttributes,
    )
}

/**
 * @see [VdmAttributes].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [VdmAttributes].
 */
public suspend fun vdmAttributes(
    name: String,
    block: suspend VdmAttributesResourceBuilder.() -> Unit,
): VdmAttributes {
    val builder = VdmAttributesResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [VdmAttributes].
 * @param name The _unique_ name of the resulting resource.
 */
public fun vdmAttributes(name: String): VdmAttributes {
    val builder = VdmAttributesResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy