com.pulumi.awsnative.globalaccelerator.kotlin.AcceleratorArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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