com.pulumi.awsnative.lambda.kotlin.AliasArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lambda.kotlin
import com.pulumi.awsnative.lambda.AliasArgs.builder
import com.pulumi.awsnative.lambda.kotlin.inputs.AliasProvisionedConcurrencyConfigurationArgs
import com.pulumi.awsnative.lambda.kotlin.inputs.AliasProvisionedConcurrencyConfigurationArgsBuilder
import com.pulumi.awsnative.lambda.kotlin.inputs.AliasRoutingConfigurationArgs
import com.pulumi.awsnative.lambda.kotlin.inputs.AliasRoutingConfigurationArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::Lambda::Alias
* @property description A description of the alias.
* @property functionName The name of the Lambda function.
* @property functionVersion The function version that the alias invokes.
* @property name The name of the alias.
* @property provisionedConcurrencyConfig Specifies a provisioned concurrency configuration for a function's alias.
* @property routingConfig The routing configuration of the alias.
*/
public data class AliasArgs(
public val description: Output? = null,
public val functionName: Output? = null,
public val functionVersion: Output? = null,
public val name: Output? = null,
public val provisionedConcurrencyConfig: Output? =
null,
public val routingConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lambda.AliasArgs =
com.pulumi.awsnative.lambda.AliasArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.functionName(functionName?.applyValue({ args0 -> args0 }))
.functionVersion(functionVersion?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.provisionedConcurrencyConfig(
provisionedConcurrencyConfig?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.routingConfig(routingConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AliasArgs].
*/
@PulumiTagMarker
public class AliasArgsBuilder internal constructor() {
private var description: Output? = null
private var functionName: Output? = null
private var functionVersion: Output? = null
private var name: Output? = null
private var provisionedConcurrencyConfig: Output? =
null
private var routingConfig: Output? = null
/**
* @param value A description of the alias.
*/
@JvmName("bvudocstqdwtrrua")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the Lambda function.
*/
@JvmName("dvipdefdkwcxvpbx")
public suspend fun functionName(`value`: Output) {
this.functionName = value
}
/**
* @param value The function version that the alias invokes.
*/
@JvmName("jeubowbsltknaukd")
public suspend fun functionVersion(`value`: Output) {
this.functionVersion = value
}
/**
* @param value The name of the alias.
*/
@JvmName("epubwairadaeiyaq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies a provisioned concurrency configuration for a function's alias.
*/
@JvmName("tjmdasgqosuacjua")
public suspend fun provisionedConcurrencyConfig(`value`: Output) {
this.provisionedConcurrencyConfig = value
}
/**
* @param value The routing configuration of the alias.
*/
@JvmName("ixugwmqoowwoxcrm")
public suspend fun routingConfig(`value`: Output) {
this.routingConfig = value
}
/**
* @param value A description of the alias.
*/
@JvmName("nptlwhfasgsrqaia")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The name of the Lambda function.
*/
@JvmName("fmncarplwafiaipe")
public suspend fun functionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.functionName = mapped
}
/**
* @param value The function version that the alias invokes.
*/
@JvmName("lvwfnvtvaruxotsy")
public suspend fun functionVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.functionVersion = mapped
}
/**
* @param value The name of the alias.
*/
@JvmName("xhyptvijfaqvuygn")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Specifies a provisioned concurrency configuration for a function's alias.
*/
@JvmName("mbaxhvccejnjhnjr")
public suspend fun provisionedConcurrencyConfig(`value`: AliasProvisionedConcurrencyConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.provisionedConcurrencyConfig = mapped
}
/**
* @param argument Specifies a provisioned concurrency configuration for a function's alias.
*/
@JvmName("ynaqlbresfvuouri")
public suspend fun provisionedConcurrencyConfig(argument: suspend AliasProvisionedConcurrencyConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = AliasProvisionedConcurrencyConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.provisionedConcurrencyConfig = mapped
}
/**
* @param value The routing configuration of the alias.
*/
@JvmName("ynfvlbfbckqvhvon")
public suspend fun routingConfig(`value`: AliasRoutingConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.routingConfig = mapped
}
/**
* @param argument The routing configuration of the alias.
*/
@JvmName("clrwrrpsfeppetnr")
public suspend fun routingConfig(argument: suspend AliasRoutingConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = AliasRoutingConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.routingConfig = mapped
}
internal fun build(): AliasArgs = AliasArgs(
description = description,
functionName = functionName,
functionVersion = functionVersion,
name = name,
provisionedConcurrencyConfig = provisionedConcurrencyConfig,
routingConfig = routingConfig,
)
}