components/terraform/comprehend/variables.tf
2 KB - View raw file
variable "enabled" {
type = bool
default = true
description = "Whether to create Comprehend resources"
}
variable "region" {
type = string
description = "AWS region"
}
variable "namespace" {
type = string
default = "ai"
description = "Namespace for resource naming"
}
variable "lab" {
type = string
description = "Lab identifier"
}
variable "stage" {
type = string
default = "test"
description = "Stage"
}
variable "name" {
type = string
default = "comprehend"
description = "Resource name suffix"
}
# S3 settings
variable "s3_bucket_arn" {
type = string
default = null
description = "S3 bucket ARN for Comprehend to access data"
}
# Language settings
variable "language_code" {
type = string
default = "en"
description = "Language code for classifiers and recognizers"
}
# Document Classifier settings
variable "create_document_classifier" {
type = bool
default = false
description = "Create a custom document classifier (requires training data)"
}
variable "classifier_mode" {
type = string
default = "MULTI_CLASS"
description = "Classifier mode (MULTI_CLASS or MULTI_LABEL)"
}
variable "classifier_training_data_s3_uri" {
type = string
default = null
description = "S3 URI for classifier training data"
}
variable "classifier_output_s3_uri" {
type = string
default = null
description = "S3 URI for classifier output"
}
variable "classifier_augmented_manifests" {
type = list(object({
attribute_names = list(string)
s3_uri = string
}))
default = null
description = "Augmented manifests for classifier training"
}
# Entity Recognizer settings
variable "create_entity_recognizer" {
type = bool
default = false
description = "Create a custom entity recognizer (requires training data)"
}
variable "entity_types" {
type = list(string)
default = ["CUSTOM_ENTITY"]
description = "List of custom entity types to recognize"
}
variable "entity_recognizer_documents_s3_uri" {
type = string
default = null
description = "S3 URI for entity recognizer training documents"
}
variable "entity_recognizer_entity_list_s3_uri" {
type = string
default = null
description = "S3 URI for entity list"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags"
}