com.pulumi.alicloud.fc.kotlin.V2Function.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-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.alicloud.fc.kotlin
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCode
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomContainerConfig
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomDns
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomHealthCheckConfig
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomRuntimeConfig
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionInstanceLifecycleConfig
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.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCode.Companion.toKotlin as v2FunctionCodeToKotlin
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomContainerConfig.Companion.toKotlin as v2FunctionCustomContainerConfigToKotlin
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomDns.Companion.toKotlin as v2FunctionCustomDnsToKotlin
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomHealthCheckConfig.Companion.toKotlin as v2FunctionCustomHealthCheckConfigToKotlin
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionCustomRuntimeConfig.Companion.toKotlin as v2FunctionCustomRuntimeConfigToKotlin
import com.pulumi.alicloud.fc.kotlin.outputs.V2FunctionInstanceLifecycleConfig.Companion.toKotlin as v2FunctionInstanceLifecycleConfigToKotlin
/**
* Builder for [V2Function].
*/
@PulumiTagMarker
public class V2FunctionResourceBuilder internal constructor() {
public var name: String? = null
public var args: V2FunctionArgs = V2FunctionArgs()
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 V2FunctionArgsBuilder.() -> Unit) {
val builder = V2FunctionArgsBuilder()
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(): V2Function {
val builtJavaResource = com.pulumi.alicloud.fc.V2Function(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return V2Function(builtJavaResource)
}
}
public class V2Function internal constructor(
override val javaResource: com.pulumi.alicloud.fc.V2Function,
) : KotlinCustomResource(javaResource, V2FunctionMapper) {
public val caPort: Output
get() = javaResource.caPort().applyValue({ args0 -> args0 })
public val code: Output?
get() = javaResource.code().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
v2FunctionCodeToKotlin(args0)
})
}).orElse(null)
})
public val codeChecksum: Output
get() = javaResource.codeChecksum().applyValue({ args0 -> args0 })
public val cpu: Output?
get() = javaResource.cpu().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
public val customContainerConfig: Output?
get() = javaResource.customContainerConfig().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> v2FunctionCustomContainerConfigToKotlin(args0) })
}).orElse(null)
})
public val customDns: Output?
get() = javaResource.customDns().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
v2FunctionCustomDnsToKotlin(args0)
})
}).orElse(null)
})
public val customHealthCheckConfig: Output?
get() = javaResource.customHealthCheckConfig().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> v2FunctionCustomHealthCheckConfigToKotlin(args0) })
}).orElse(null)
})
public val customRuntimeConfig: Output?
get() = javaResource.customRuntimeConfig().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> v2FunctionCustomRuntimeConfigToKotlin(args0) })
}).orElse(null)
})
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
public val diskSize: Output?
get() = javaResource.diskSize().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
public val environmentVariables: Output