SlotType

class SlotType : KotlinCustomResource

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const flowerTypes = new aws.lex.SlotType("flower_types", {
createVersion: true,
description: "Types of flowers to order",
enumerationValues: [
{
synonyms: [
"Lirium",
"Martagon",
],
value: "lilies",
},
{
synonyms: [
"Eduardoregelia",
"Podonix",
],
value: "tulips",
},
],
name: "FlowerTypes",
valueSelectionStrategy: "ORIGINAL_VALUE",
});
import pulumi
import pulumi_aws as aws
flower_types = aws.lex.SlotType("flower_types",
create_version=True,
description="Types of flowers to order",
enumeration_values=[
{
"synonyms": [
"Lirium",
"Martagon",
],
"value": "lilies",
},
{
"synonyms": [
"Eduardoregelia",
"Podonix",
],
"value": "tulips",
},
],
name="FlowerTypes",
value_selection_strategy="ORIGINAL_VALUE")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var flowerTypes = new Aws.Lex.SlotType("flower_types", new()
{
CreateVersion = true,
Description = "Types of flowers to order",
EnumerationValues = new[]
{
new Aws.Lex.Inputs.SlotTypeEnumerationValueArgs
{
Synonyms = new[]
{
"Lirium",
"Martagon",
},
Value = "lilies",
},
new Aws.Lex.Inputs.SlotTypeEnumerationValueArgs
{
Synonyms = new[]
{
"Eduardoregelia",
"Podonix",
},
Value = "tulips",
},
},
Name = "FlowerTypes",
ValueSelectionStrategy = "ORIGINAL_VALUE",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lex.NewSlotType(ctx, "flower_types", &lex.SlotTypeArgs{
CreateVersion: pulumi.Bool(true),
Description: pulumi.String("Types of flowers to order"),
EnumerationValues: lex.SlotTypeEnumerationValueArray{
&lex.SlotTypeEnumerationValueArgs{
Synonyms: pulumi.StringArray{
pulumi.String("Lirium"),
pulumi.String("Martagon"),
},
Value: pulumi.String("lilies"),
},
&lex.SlotTypeEnumerationValueArgs{
Synonyms: pulumi.StringArray{
pulumi.String("Eduardoregelia"),
pulumi.String("Podonix"),
},
Value: pulumi.String("tulips"),
},
},
Name: pulumi.String("FlowerTypes"),
ValueSelectionStrategy: pulumi.String("ORIGINAL_VALUE"),
})
if err != nil {
return err
}
return nil
})
}
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());
}
}
resources:
flowerTypes:
type: aws:lex:SlotType
name: flower_types
properties:
createVersion: true
description: Types of flowers to order
enumerationValues:
- synonyms:
- Lirium
- Martagon
value: lilies
- synonyms:
- Eduardoregelia
- Podonix
value: tulips
name: FlowerTypes
valueSelectionStrategy: ORIGINAL_VALUE

Import

Using pulumi import, import slot types using their name. For example:

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

Properties

Link copied to clipboard
val checksum: Output<String>

Checksum identifying the version of the slot type that was created. The checksum is not included as an argument because the resource will add it automatically when updating the slot type.

Link copied to clipboard
val createdDate: Output<String>

The date when the slot type version was created.

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

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>?

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 id: Output<String>
Link copied to clipboard
val lastUpdatedDate: Output<String>

The date when the $LATEST version of this slot type was updated.

Link copied to clipboard
val name: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
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.

Link copied to clipboard
val version: Output<String>

The version of the slot type.