Resource: aws_lex_slot_type

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

Example Usage

resource "aws_lex_slot_type" "flower_types" {
  create_version = true
  description    = "Types of flowers to order"

  enumeration_value {
    synonyms = [
      "Lirium",
      "Martagon",
    ]

    value = "lilies"
  }

  enumeration_value {
    synonyms = [
      "Eduardoregelia",
      "Podonix",
    ]

    value = "tulips"
  }

  name                     = "FlowerTypes"
  value_selection_strategy = "ORIGINAL_VALUE"
}

Argument Reference

This resource supports the following arguments:

enumeration_value

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.

Timeouts

Configuration options:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import slot types using their name. For example:

import {
  to = aws_lex_slot_type.flower_types
  id = "FlowerTypes"
}

Using terraform import, import slot types using their name. For example:

% terraform import aws_lex_slot_type.flower_types FlowerTypes