AWS SDK for Go (PILOT)
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 https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PutSlotTypeInput

import "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice"

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"` }

Checksum

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.

CreateVersion

Type: *bool

Description

Type: *string

A description of the slot type.

EnumerationValues

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

Name

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 (https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/slot-type-reference) in the Alexa Skills Kit.

Name is a required field

ValueSelectionStrategy

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.

Method

GoString

func (s PutSlotTypeInput) GoString() string

GoString returns the string representation

SetChecksum

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

SetChecksum sets the Checksum field's value.

SetCreateVersion

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

SetCreateVersion sets the CreateVersion field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetEnumerationValues

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

SetEnumerationValues sets the EnumerationValues field's value.

SetName

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

SetName sets the Name field's value.

SetValueSelectionStrategy

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

SetValueSelectionStrategy sets the ValueSelectionStrategy field's value.

String

func (s PutSlotTypeInput) String() string

String returns the string representation

Validate

func (s *PutSlotTypeInput) Validate() error

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

On this page: