Resource: aws_lexv2models_bot_version

Terraform resource for managing an AWS Lex V2 Models Bot Version.

Example Usage

Basic Usage

resource "aws_lexv2models_bot_version" "test" {
  bot_id = aws_lexv2models.test.id
  locale_specification = {
    "en_US" = {
      source_bot_version = "DRAFT"
    }
  }
}

Argument Reference

This resource supports the following arguments:

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 Bot Version using the id. For example:

import {
  to = aws_lexv2models_bot_version.example
  id = "id-12345678,1"
}

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

% terraform import aws_lexv2models_bot_version.example id-12345678,1