
com.pulumi.awsnative.glue.kotlin.SchemaVersionArgs.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.glue.kotlin
import com.pulumi.awsnative.glue.SchemaVersionArgs.builder
import com.pulumi.awsnative.glue.kotlin.inputs.SchemaVersionSchemaArgs
import com.pulumi.awsnative.glue.kotlin.inputs.SchemaVersionSchemaArgsBuilder
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
/**
* This resource represents an individual schema version of a schema defined in Glue Schema Registry.
* @property schema The schema that includes the schema version.
* @property schemaDefinition Complete definition of the schema in plain-text.
*/
public data class SchemaVersionArgs(
public val schema: Output? = null,
public val schemaDefinition: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.glue.SchemaVersionArgs =
com.pulumi.awsnative.glue.SchemaVersionArgs.builder()
.schema(schema?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.schemaDefinition(schemaDefinition?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SchemaVersionArgs].
*/
@PulumiTagMarker
public class SchemaVersionArgsBuilder internal constructor() {
private var schema: Output? = null
private var schemaDefinition: Output? = null
/**
* @param value The schema that includes the schema version.
*/
@JvmName("kulnlnnnvgwnegpm")
public suspend fun schema(`value`: Output) {
this.schema = value
}
/**
* @param value Complete definition of the schema in plain-text.
*/
@JvmName("walxdfctwdkqpvpx")
public suspend fun schemaDefinition(`value`: Output) {
this.schemaDefinition = value
}
/**
* @param value The schema that includes the schema version.
*/
@JvmName("utjjhvwccpbwqgql")
public suspend fun schema(`value`: SchemaVersionSchemaArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schema = mapped
}
/**
* @param argument The schema that includes the schema version.
*/
@JvmName("xukiyvniovdrdiha")
public suspend fun schema(argument: suspend SchemaVersionSchemaArgsBuilder.() -> Unit) {
val toBeMapped = SchemaVersionSchemaArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.schema = mapped
}
/**
* @param value Complete definition of the schema in plain-text.
*/
@JvmName("bfqkotbvlnmeyicu")
public suspend fun schemaDefinition(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schemaDefinition = mapped
}
internal fun build(): SchemaVersionArgs = SchemaVersionArgs(
schema = schema,
schemaDefinition = schemaDefinition,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy