aws logo
AWS Classic v5.32.0, Mar 17 23

aws.lex.SlotType

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var flowerTypes = new Aws.Lex.SlotType("flowerTypes", 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/v5/go/aws/lex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lex.NewSlotType(ctx, "flowerTypes", &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());

    }
}
import pulumi
import pulumi_aws as aws

flower_types = aws.lex.SlotType("flowerTypes",
    create_version=True,
    description="Types of flowers to order",
    enumeration_values=[
        aws.lex.SlotTypeEnumerationValueArgs(
            synonyms=[
                "Lirium",
                "Martagon",
            ],
            value="lilies",
        ),
        aws.lex.SlotTypeEnumerationValueArgs(
            synonyms=[
                "Eduardoregelia",
                "Podonix",
            ],
            value="tulips",
        ),
    ],
    name="FlowerTypes",
    value_selection_strategy="ORIGINAL_VALUE")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const flowerTypes = new aws.lex.SlotType("flowerTypes", {
    createVersion: true,
    description: "Types of flowers to order",
    enumerationValues: [
        {
            synonyms: [
                "Lirium",
                "Martagon",
            ],
            value: "lilies",
        },
        {
            synonyms: [
                "Eduardoregelia",
                "Podonix",
            ],
            value: "tulips",
        },
    ],
    name: "FlowerTypes",
    valueSelectionStrategy: "ORIGINAL_VALUE",
});
resources:
  flowerTypes:
    type: aws:lex:SlotType
    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

Create SlotType Resource

new SlotType(name: string, args: SlotTypeArgs, opts?: CustomResourceOptions);
@overload
def SlotType(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             create_version: Optional[bool] = None,
             description: Optional[str] = None,
             enumeration_values: Optional[Sequence[SlotTypeEnumerationValueArgs]] = None,
             name: Optional[str] = None,
             value_selection_strategy: Optional[str] = None)
@overload
def SlotType(resource_name: str,
             args: SlotTypeArgs,
             opts: Optional[ResourceOptions] = None)
func NewSlotType(ctx *Context, name string, args SlotTypeArgs, opts ...ResourceOption) (*SlotType, error)
public SlotType(string name, SlotTypeArgs args, CustomResourceOptions? opts = null)
public SlotType(String name, SlotTypeArgs args)
public SlotType(String name, SlotTypeArgs args, CustomResourceOptions options)
type: aws:lex:SlotType
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args SlotTypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args SlotTypeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SlotTypeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SlotTypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args SlotTypeArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

SlotType Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The SlotType resource accepts the following input properties:

EnumerationValues List<SlotTypeEnumerationValueArgs>

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.

CreateVersion bool

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

Description string

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

Name string

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

ValueSelectionStrategy string

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.

EnumerationValues []SlotTypeEnumerationValueArgs

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.

CreateVersion bool

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

Description string

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

Name string

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

ValueSelectionStrategy string

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.

enumerationValues List<SlotTypeEnumerationValueArgs>

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.

createVersion Boolean

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

description String

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

name String

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

valueSelectionStrategy String

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.

enumerationValues SlotTypeEnumerationValueArgs[]

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.

createVersion boolean

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

description string

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

name string

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

valueSelectionStrategy string

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.

enumeration_values Sequence[SlotTypeEnumerationValueArgs]

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.

create_version bool

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

description str

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

name str

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

value_selection_strategy str

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.

enumerationValues List<Property Map>

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.

createVersion Boolean

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

description String

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

name String

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

valueSelectionStrategy String

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.

Outputs

All input properties are implicitly available as output properties. Additionally, the SlotType resource produces the following output properties:

Checksum 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.

CreatedDate string

The date when the slot type version was created.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

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

Version string

The version of the slot type.

Checksum 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.

CreatedDate string

The date when the slot type version was created.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

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

Version string

The version of the slot type.

checksum 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.

createdDate String

The date when the slot type version was created.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

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

version String

The version of the slot type.

checksum 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.

createdDate string

The date when the slot type version was created.

id string

The provider-assigned unique ID for this managed resource.

lastUpdatedDate string

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

version string

The version of the slot type.

checksum str

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.

created_date str

The date when the slot type version was created.

id str

The provider-assigned unique ID for this managed resource.

last_updated_date str

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

version str

The version of the slot type.

checksum 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.

createdDate String

The date when the slot type version was created.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

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

version String

The version of the slot type.

Look up Existing SlotType Resource

Get an existing SlotType resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SlotTypeState, opts?: CustomResourceOptions): SlotType
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        checksum: Optional[str] = None,
        create_version: Optional[bool] = None,
        created_date: Optional[str] = None,
        description: Optional[str] = None,
        enumeration_values: Optional[Sequence[SlotTypeEnumerationValueArgs]] = None,
        last_updated_date: Optional[str] = None,
        name: Optional[str] = None,
        value_selection_strategy: Optional[str] = None,
        version: Optional[str] = None) -> SlotType
func GetSlotType(ctx *Context, name string, id IDInput, state *SlotTypeState, opts ...ResourceOption) (*SlotType, error)
public static SlotType Get(string name, Input<string> id, SlotTypeState? state, CustomResourceOptions? opts = null)
public static SlotType get(String name, Output<String> id, SlotTypeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Checksum 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.

CreateVersion bool

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

CreatedDate string

The date when the slot type version was created.

Description string

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

EnumerationValues List<SlotTypeEnumerationValueArgs>

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.

LastUpdatedDate string

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

Name string

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

ValueSelectionStrategy string

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.

Version string

The version of the slot type.

Checksum 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.

CreateVersion bool

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

CreatedDate string

The date when the slot type version was created.

Description string

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

EnumerationValues []SlotTypeEnumerationValueArgs

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.

LastUpdatedDate string

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

Name string

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

ValueSelectionStrategy string

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.

Version string

The version of the slot type.

checksum 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.

createVersion Boolean

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

createdDate String

The date when the slot type version was created.

description String

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

enumerationValues List<SlotTypeEnumerationValueArgs>

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.

lastUpdatedDate String

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

name String

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

valueSelectionStrategy String

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.

version String

The version of the slot type.

checksum 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.

createVersion boolean

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

createdDate string

The date when the slot type version was created.

description string

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

enumerationValues SlotTypeEnumerationValueArgs[]

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.

lastUpdatedDate string

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

name string

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

valueSelectionStrategy string

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.

version string

The version of the slot type.

checksum str

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.

create_version bool

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

created_date str

The date when the slot type version was created.

description str

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

enumeration_values Sequence[SlotTypeEnumerationValueArgs]

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.

last_updated_date str

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

name str

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

value_selection_strategy str

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.

version str

The version of the slot type.

checksum 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.

createVersion Boolean

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

createdDate String

The date when the slot type version was created.

description String

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

enumerationValues List<Property Map>

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.

lastUpdatedDate String

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

name String

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

valueSelectionStrategy String

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.

version String

The version of the slot type.

Supporting Types

SlotTypeEnumerationValue

Value string

The value of the slot type. Must be less than or equal to 140 characters in length.

Synonyms List<string>

Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length.

Value string

The value of the slot type. Must be less than or equal to 140 characters in length.

Synonyms []string

Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length.

value String

The value of the slot type. Must be less than or equal to 140 characters in length.

synonyms List<String>

Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length.

value string

The value of the slot type. Must be less than or equal to 140 characters in length.

synonyms string[]

Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length.

value str

The value of the slot type. Must be less than or equal to 140 characters in length.

synonyms Sequence[str]

Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length.

value String

The value of the slot type. Must be less than or equal to 140 characters in length.

synonyms List<String>

Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length.

Import

Slot types can be imported using their name.

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

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.