Resource: aws_lexv2models_slot

Terraform resource for managing an AWS Lex V2 Models Slot.

Example Usage

Basic Usage

resource "aws_lexv2models_slot" "example" {
  bot_id      = aws_lexv2models_bot.example.id
  bot_version = aws_lexv2models_bot_version.example.bot_version
  intent_id   = aws_lexv2models_intent.example.id
  locale_id   = aws_lexv2models_bot_locale.example.locale_id
  name        = "example"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

multiple_values_setting Argument Reference

obfuscation_setting Argument Reference

Attribute Reference

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

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Lex V2 Models Slot using the id. For example:

import {
  to = aws_lexv2models_slot.example
  id = "bot-1234,1,intent-5678,en-US,slot-9012"
}

Using terraform import, import Lex V2 Models Slot using the id. For example:

% terraform import aws_lexv2models_slot.example bot-1234,1,intent-5678,en-US,slot-9012