Resource: aws_lexv2models_bot

Terraform resource for managing an AWS Lex V2 Models Bot.

Example Usage

Basic Usage

resource "aws_lexv2models_bot" "example" {
  name = "example"
  data_privacy {
    child_directed = "boolean"
  }
  idle_session_ttl_in_seconds = 10
  role_arn                    = "bot_example_arn"

  tags = {
    foo = "bar"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

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

Data Privacy

Bot Members

Timeouts

Configuration options:

Import

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

import {
  to = aws_lexv2models_bot.example
  id = "bot-id-12345678"
}

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

% terraform import aws_lexv2models_bot.example bot-id-12345678