
com.pulumi.aws.lex.kotlin.V2modelsSlot.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lex.kotlin
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotMultipleValuesSetting
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotObfuscationSetting
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotSubSlotSetting
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotTimeouts
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotValueElicitationSetting
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotMultipleValuesSetting.Companion.toKotlin as v2modelsSlotMultipleValuesSettingToKotlin
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotObfuscationSetting.Companion.toKotlin as v2modelsSlotObfuscationSettingToKotlin
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotSubSlotSetting.Companion.toKotlin as v2modelsSlotSubSlotSettingToKotlin
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotTimeouts.Companion.toKotlin as v2modelsSlotTimeoutsToKotlin
import com.pulumi.aws.lex.kotlin.outputs.V2modelsSlotValueElicitationSetting.Companion.toKotlin as v2modelsSlotValueElicitationSettingToKotlin
/**
* Builder for [V2modelsSlot].
*/
@PulumiTagMarker
public class V2modelsSlotResourceBuilder internal constructor() {
public var name: String? = null
public var args: V2modelsSlotArgs = V2modelsSlotArgs()
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 V2modelsSlotArgsBuilder.() -> Unit) {
val builder = V2modelsSlotArgsBuilder()
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(): V2modelsSlot {
val builtJavaResource = com.pulumi.aws.lex.V2modelsSlot(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return V2modelsSlot(builtJavaResource)
}
}
/**
*
* ## Import
* Using `pulumi import`, import Lex V2 Models Slot using the `id`. For example:
* ```sh
* $ pulumi import aws:lex/v2modelsSlot:V2modelsSlot example bot-1234,1,intent-5678,en-US,slot-9012
* ```
*/
public class V2modelsSlot internal constructor(
override val javaResource: com.pulumi.aws.lex.V2modelsSlot,
) : KotlinCustomResource(javaResource, V2modelsSlotMapper) {
/**
* Identifier of the bot associated with the slot.
*/
public val botId: Output
get() = javaResource.botId().applyValue({ args0 -> args0 })
/**
* Version of the bot associated with the slot.
*/
public val botVersion: Output
get() = javaResource.botVersion().applyValue({ args0 -> args0 })
/**
* Description of the slot.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Identifier of the intent that contains the slot.
*/
public val intentId: Output
get() = javaResource.intentId().applyValue({ args0 -> args0 })
/**
* Identifier of the language and locale that the slot will be used in.
*/
public val localeId: Output
get() = javaResource.localeId().applyValue({ args0 -> args0 })
/**
* Whether the slot returns multiple values in one response.
* See the `multiple_values_setting` argument reference below.
*/
public val multipleValuesSettings: Output>?
get() = javaResource.multipleValuesSettings().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
v2modelsSlotMultipleValuesSettingToKotlin(args0)
})
})
}).orElse(null)
})
/**
* Name of the slot.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Determines how slot values are used in Amazon CloudWatch logs.
* See the `obfuscation_setting` argument reference below.
*/
public val obfuscationSettings: Output>?
get() = javaResource.obfuscationSettings().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
v2modelsSlotObfuscationSettingToKotlin(args0)
})
})
}).orElse(null)
})
/**
* Unique identifier associated with the slot.
*/
public val slotId: Output
get() = javaResource.slotId().applyValue({ args0 -> args0 })
/**
* Unique identifier for the slot type associated with this slot.
*/
public val slotTypeId: Output
get() = javaResource.slotTypeId().applyValue({ args0 -> args0 })
/**
* Specifications for the constituent sub slots and the expression for the composite slot.
* See the `sub_slot_setting` argument reference below.
*/
public val subSlotSettings: Output>?
get() = javaResource.subSlotSettings().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
v2modelsSlotSubSlotSettingToKotlin(args0)
})
})
}).orElse(null)
})
public val timeouts: Output?
get() = javaResource.timeouts().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
v2modelsSlotTimeoutsToKotlin(args0)
})
}).orElse(null)
})
public val valueElicitationSetting: Output?
get() = javaResource.valueElicitationSetting().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> v2modelsSlotValueElicitationSettingToKotlin(args0) })
}).orElse(null)
})
}
public object V2modelsSlotMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.aws.lex.V2modelsSlot::class == javaResource::class
override fun map(javaResource: Resource): V2modelsSlot = V2modelsSlot(
javaResource as
com.pulumi.aws.lex.V2modelsSlot,
)
}
/**
* @see [V2modelsSlot].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [V2modelsSlot].
*/
public suspend fun v2modelsSlot(
name: String,
block: suspend V2modelsSlotResourceBuilder.() -> Unit,
): V2modelsSlot {
val builder = V2modelsSlotResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [V2modelsSlot].
* @param name The _unique_ name of the resulting resource.
*/
public fun v2modelsSlot(name: String): V2modelsSlot {
val builder = V2modelsSlotResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy