Class: Aws::LexModelBuildingService::Types::PutSlotTypeRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-lexmodelbuildingservice/types.rb

Overview

Note:

When making an API call, you may pass PutSlotTypeRequest data as a hash:

{
  name: "SlotTypeName", # required
  description: "Description",
  enumeration_values: [
    {
      value: "Value", # required
    },
  ],
  checksum: "String",
}

Instance Attribute Summary collapse

Instance Attribute Details

#checksumString

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.

Returns:

  • (String)


3034
3035
3036
3037
3038
3039
3040
# File 'lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3034

class PutSlotTypeRequest < Struct.new(
  :name,
  :description,
  :enumeration_values,
  :checksum)
  include Aws::Structure
end

#descriptionString

A description of the slot type.

Returns:

  • (String)


3034
3035
3036
3037
3038
3039
3040
# File 'lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3034

class PutSlotTypeRequest < Struct.new(
  :name,
  :description,
  :enumeration_values,
  :checksum)
  include Aws::Structure
end

#enumeration_valuesArray<Types::EnumerationValue>

A list of ‘EnumerationValue` objects that defines the values that the slot type can take.

Returns:



3034
3035
3036
3037
3038
3039
3040
# File 'lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3034

class PutSlotTypeRequest < Struct.new(
  :name,
  :description,
  :enumeration_values,
  :checksum)
  include Aws::Structure
end

#nameString

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

[1]: developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/slot-type-reference

Returns:

  • (String)


3034
3035
3036
3037
3038
3039
3040
# File 'lib/aws-sdk-lexmodelbuildingservice/types.rb', line 3034

class PutSlotTypeRequest < Struct.new(
  :name,
  :description,
  :enumeration_values,
  :checksum)
  include Aws::Structure
end