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

com.pulumi.awsnative.route53resolver.kotlin.OutpostResolverArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.route53resolver.kotlin

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

/**
 * Resource schema for AWS::Route53Resolver::OutpostResolver.
 * @property instanceCount The number of OutpostResolvers.
 * @property name The OutpostResolver name.
 * @property outpostArn The Outpost ARN.
 * @property preferredInstanceType The OutpostResolver instance type.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class OutpostResolverArgs(
    public val instanceCount: Output? = null,
    public val name: Output? = null,
    public val outpostArn: Output? = null,
    public val preferredInstanceType: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53resolver.OutpostResolverArgs =
        com.pulumi.awsnative.route53resolver.OutpostResolverArgs.builder()
            .instanceCount(instanceCount?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .outpostArn(outpostArn?.applyValue({ args0 -> args0 }))
            .preferredInstanceType(preferredInstanceType?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [OutpostResolverArgs].
 */
@PulumiTagMarker
public class OutpostResolverArgsBuilder internal constructor() {
    private var instanceCount: Output? = null

    private var name: Output? = null

    private var outpostArn: Output? = null

    private var preferredInstanceType: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The number of OutpostResolvers.
     */
    @JvmName("dkbegcxytndyudxi")
    public suspend fun instanceCount(`value`: Output) {
        this.instanceCount = value
    }

    /**
     * @param value The OutpostResolver name.
     */
    @JvmName("wctcnyqmrvihnbqv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The Outpost ARN.
     */
    @JvmName("aqmmkinudtjpeqqk")
    public suspend fun outpostArn(`value`: Output) {
        this.outpostArn = value
    }

    /**
     * @param value The OutpostResolver instance type.
     */
    @JvmName("wqjnrsvadtuvspmk")
    public suspend fun preferredInstanceType(`value`: Output) {
        this.preferredInstanceType = value
    }

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

    @JvmName("wqdojegwnnhjalnp")
    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("ehofoaroyxakoxpl")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The number of OutpostResolvers.
     */
    @JvmName("cdspmkqulcubwwua")
    public suspend fun instanceCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceCount = mapped
    }

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

    /**
     * @param value The Outpost ARN.
     */
    @JvmName("fjdywrwwkyorbinf")
    public suspend fun outpostArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outpostArn = mapped
    }

    /**
     * @param value The OutpostResolver instance type.
     */
    @JvmName("yvrbfychkxtnhfem")
    public suspend fun preferredInstanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredInstanceType = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("gewsabpcfeclotou")
    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("wiogqwwsgkhaihsb")
    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("ytpcnjpwjciyxanq")
    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("imyreulygnjnlbdx")
    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("baaxlddaolutdkxo")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): OutpostResolverArgs = OutpostResolverArgs(
        instanceCount = instanceCount,
        name = name,
        outpostArn = outpostArn,
        preferredInstanceType = preferredInstanceType,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy