Class: Aws::LexModelBuildingService::Types::PutSlotTypeRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::LexModelBuildingService::Types::PutSlotTypeRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-lexmodelbuildingservice/types.rb
Overview
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
-
#checksum ⇒ String
Identifies a specific revision of the ‘$LATEST` version.
-
#description ⇒ String
A description of the slot type.
-
#enumeration_values ⇒ Array<Types::EnumerationValue>
A list of ‘EnumerationValue` objects that defines the values that the slot type can take.
-
#name ⇒ String
The name of the slot type.
Instance Attribute Details
#checksum ⇒ 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.
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 |
#description ⇒ String
A description of the slot type.
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_values ⇒ Array<Types::EnumerationValue>
A list of ‘EnumerationValue` objects that defines the values that the slot type can take.
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 |
#name ⇒ 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*.
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 |