API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type PutSlotTypeInput struct { Checksum *string `locationName:"checksum" type:"string"` CreateVersion *bool `locationName:"createVersion" type:"boolean"` Description *string `locationName:"description" type:"string"` EnumerationValues []*EnumerationValue `locationName:"enumerationValues" min:"1" type:"list"` Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` ValueSelectionStrategy *string `locationName:"valueSelectionStrategy" type:"string" enum:"SlotValueSelectionStrategy"` }


Type: *string

Identifies a specific revision of the $LATEST version.

When you create a new slot type, leave the checksum field blank. If you specify a checksum you get a BadRequestException exception.

When you want to update a slot type, set the checksum field to the checksum of the most recent revision of the $LATEST version. If you don't specify the checksum field, or if the checksum does not match the $LATEST version, you get a PreconditionFailedException exception.


Type: *bool


Type: *string

A description of the slot type.


Each slot type can have a set of values. Each enumeration value represents a value the slot type can take.

For example, a pizza ordering bot could have a slot type that specifies the type of crust that the pizza should have. The slot type could include the values

  • thick

  • thin

  • stuffed


Type: *string

The name of the slot type. The name is not case sensitive.

The name can't match a built-in slot type name, or a built-in slot type name with "AMAZON." removed. For example, because there is a built-in slot type called AMAZON.DATE, you can't create a custom slot type called DATE.

For a list of built-in slot types, see Slot Type Reference ( in the Alexa Skills Kit.

Name is a required field


Type: *string

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:

  • ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value.

  • TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.

If you don't specify the valueSelectionStrategy, the default is ORIGINAL_VALUE.



func (s PutSlotTypeInput) GoString() string

GoString returns the string representation


func (s *PutSlotTypeInput) SetChecksum(v string) *PutSlotTypeInput

SetChecksum sets the Checksum field's value.


func (s *PutSlotTypeInput) SetCreateVersion(v bool) *PutSlotTypeInput

SetCreateVersion sets the CreateVersion field's value.


func (s *PutSlotTypeInput) SetDescription(v string) *PutSlotTypeInput

SetDescription sets the Description field's value.


func (s *PutSlotTypeInput) SetEnumerationValues(v []*EnumerationValue) *PutSlotTypeInput

SetEnumerationValues sets the EnumerationValues field's value.


func (s *PutSlotTypeInput) SetName(v string) *PutSlotTypeInput

SetName sets the Name field's value.


func (s *PutSlotTypeInput) SetValueSelectionStrategy(v string) *PutSlotTypeInput

SetValueSelectionStrategy sets the ValueSelectionStrategy field's value.


func (s PutSlotTypeInput) String() string

String returns the string representation


func (s *PutSlotTypeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: