SlotTypeArgs

data class SlotTypeArgs(val createVersion: Output<Boolean>? = null, val description: Output<String>? = null, val enumerationValues: Output<List<SlotTypeEnumerationValueArgs>>? = null, val name: Output<String>? = null, val valueSelectionStrategy: Output<String>? = null) : ConvertibleToJava<SlotTypeArgs>

Provides an Amazon Lex Slot Type resource. For more information see Amazon Lex: How It Works

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lex.SlotType;
import com.pulumi.aws.lex.SlotTypeArgs;
import com.pulumi.aws.lex.inputs.SlotTypeEnumerationValueArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var flowerTypes = new SlotType("flowerTypes", SlotTypeArgs.builder()
.createVersion(true)
.description("Types of flowers to order")
.enumerationValues(
SlotTypeEnumerationValueArgs.builder()
.synonyms(
"Lirium",
"Martagon")
.value("lilies")
.build(),
SlotTypeEnumerationValueArgs.builder()
.synonyms(
"Eduardoregelia",
"Podonix")
.value("tulips")
.build())
.name("FlowerTypes")
.valueSelectionStrategy("ORIGINAL_VALUE")
.build());
}
}

Import

Slot types can be imported using their name.

$ pulumi import aws:lex/slotType:SlotType flower_types FlowerTypes

Constructors

Link copied to clipboard
constructor(createVersion: Output<Boolean>? = null, description: Output<String>? = null, enumerationValues: Output<List<SlotTypeEnumerationValueArgs>>? = null, name: Output<String>? = null, valueSelectionStrategy: Output<String>? = null)

Properties

Link copied to clipboard
val createVersion: Output<Boolean>? = null

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

Link copied to clipboard
val description: Output<String>? = null

A description of the slot type. Must be less than or equal to 200 characters in length.

Link copied to clipboard

A list of EnumerationValue objects that defines the values that the slot type can take. Each value can have a list of synonyms, which are additional values that help train the machine learning model about the values that it resolves for a slot. Attributes are documented under enumeration_value.

Link copied to clipboard
val name: Output<String>? = null

The name of the slot type. The name is not case sensitive. Must be less than or equal to 100 characters in length.

Link copied to clipboard
val valueSelectionStrategy: Output<String>? = null

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. ORIGINAL_VALUE returns the value entered by the user if the user value is similar to the slot value. TOP_RESOLUTION returns the first value in the resolution list if there is a resolution list for the slot, otherwise null is returned. Defaults to ORIGINAL_VALUE.

Functions

Link copied to clipboard
open override fun toJava(): SlotTypeArgs