Slot Type
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());
}
}
Content copied to clipboard
Import
Using pulumi import
, import slot types using their name. For example:
$ pulumi import aws:lex/slotType:SlotType flower_types FlowerTypes
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
.