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

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

package com.pulumi.awsnative.globalaccelerator.kotlin

import com.pulumi.awsnative.globalaccelerator.AcceleratorArgs.builder
import com.pulumi.awsnative.globalaccelerator.kotlin.enums.AcceleratorIpAddressType
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::GlobalAccelerator::Accelerator
 * @property enabled Indicates whether an accelerator is enabled. The value is true or false.
 * @property ipAddressType IP Address type.
 * @property ipAddresses The IP addresses from BYOIP Prefix pool.
 * @property name Name of accelerator.
 * @property tags Create tags for an accelerator.
 * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
 */
public data class AcceleratorArgs(
    public val enabled: Output? = null,
    public val ipAddressType: Output? = null,
    public val ipAddresses: Output>? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.globalaccelerator.AcceleratorArgs =
        com.pulumi.awsnative.globalaccelerator.AcceleratorArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .ipAddressType(ipAddressType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ipAddresses(ipAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var ipAddressType: Output? = null

    private var ipAddresses: Output>? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Indicates whether an accelerator is enabled. The value is true or false.
     */
    @JvmName("qonlrangupilxlve")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value IP Address type.
     */
    @JvmName("lqpxlfnvjurbrryj")
    public suspend fun ipAddressType(`value`: Output) {
        this.ipAddressType = value
    }

    /**
     * @param value The IP addresses from BYOIP Prefix pool.
     */
    @JvmName("koeuqgmvscpdxipg")
    public suspend fun ipAddresses(`value`: Output>) {
        this.ipAddresses = value
    }

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

    /**
     * @param values The IP addresses from BYOIP Prefix pool.
     */
    @JvmName("dfqkucciqbuilifs")
    public suspend fun ipAddresses(values: List>) {
        this.ipAddresses = Output.all(values)
    }

    /**
     * @param value Name of accelerator.
     */
    @JvmName("qhkupvnuakkojafa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Create tags for an accelerator.
     * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("rfhygpbeiuvmrvof")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Create tags for an accelerator.
     * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("unrxkdnxmgeguaqe")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Indicates whether an accelerator is enabled. The value is true or false.
     */
    @JvmName("cunxbkvqgvrknaak")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value IP Address type.
     */
    @JvmName("chjghcjydgtpouea")
    public suspend fun ipAddressType(`value`: AcceleratorIpAddressType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddressType = mapped
    }

    /**
     * @param value The IP addresses from BYOIP Prefix pool.
     */
    @JvmName("yfrfdymxekygrphi")
    public suspend fun ipAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddresses = mapped
    }

    /**
     * @param values The IP addresses from BYOIP Prefix pool.
     */
    @JvmName("lhctxaocexiooawg")
    public suspend fun ipAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipAddresses = mapped
    }

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

    /**
     * @param value Create tags for an accelerator.
     * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("hwbutlrncsxudikw")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Create tags for an accelerator.
     * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("ixfhtjqpscvrqtjc")
    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 Create tags for an accelerator.
     * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("pawrylpnrurruwmb")
    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 Create tags for an accelerator.
     * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("bhqblmbsrbrqtbxx")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Create tags for an accelerator.
     * For more information, see [Tagging](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("qmmfyrekeweitspq")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AcceleratorArgs = AcceleratorArgs(
        enabled = enabled,
        ipAddressType = ipAddressType,
        ipAddresses = ipAddresses,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy