--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_lex_bot_alias Resource - terraform-provider-awscc" subcategory: "" description: |- A Bot Alias enables you to change the version of a bot without updating applications that use the bot --- # awscc_lex_bot_alias (Resource) A Bot Alias enables you to change the version of a bot without updating applications that use the bot ## Schema ### Required - `bot_alias_name` (String) A unique identifier for a resource. - `bot_id` (String) Unique ID of resource ### Optional - `bot_alias_locale_settings` (Attributes Set) A list of bot alias locale settings to add to the bot alias. (see [below for nested schema](#nestedatt--bot_alias_locale_settings)) - `bot_alias_tags` (Attributes Set) A list of tags to add to the bot alias. (see [below for nested schema](#nestedatt--bot_alias_tags)) - `bot_version` (String) The version of a bot. - `conversation_log_settings` (Attributes) Contains information about code hooks that Amazon Lex calls during a conversation. (see [below for nested schema](#nestedatt--conversation_log_settings)) - `description` (String) A description of the bot alias. Use the description to help identify the bot alias in lists. - `sentiment_analysis_settings` (Attributes) Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances. (see [below for nested schema](#nestedatt--sentiment_analysis_settings)) ### Read-Only - `arn` (String) - `bot_alias_id` (String) Unique ID of resource - `bot_alias_status` (String) - `id` (String) Uniquely identifies the resource. ### Nested Schema for `bot_alias_locale_settings` Optional: - `bot_alias_locale_setting` (Attributes) You can use this parameter to specify a specific Lambda function to run different functions in different locales. (see [below for nested schema](#nestedatt--bot_alias_locale_settings--bot_alias_locale_setting)) - `locale_id` (String) A string used to identify the locale ### Nested Schema for `bot_alias_locale_settings.bot_alias_locale_setting` Optional: - `code_hook_specification` (Attributes) Contains information about code hooks that Amazon Lex calls during a conversation. (see [below for nested schema](#nestedatt--bot_alias_locale_settings--bot_alias_locale_setting--code_hook_specification)) - `enabled` (Boolean) Whether the Lambda code hook is enabled ### Nested Schema for `bot_alias_locale_settings.bot_alias_locale_setting.code_hook_specification` Optional: - `lambda_code_hook` (Attributes) Contains information about code hooks that Amazon Lex calls during a conversation. (see [below for nested schema](#nestedatt--bot_alias_locale_settings--bot_alias_locale_setting--code_hook_specification--lambda_code_hook)) ### Nested Schema for `bot_alias_locale_settings.bot_alias_locale_setting.code_hook_specification.lambda_code_hook` Optional: - `code_hook_interface_version` (String) The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. - `lambda_arn` (String) The Amazon Resource Name (ARN) of the Lambda function. ### Nested Schema for `bot_alias_tags` Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag ### Nested Schema for `conversation_log_settings` Optional: - `audio_log_settings` (Attributes Set) List of audio log settings (see [below for nested schema](#nestedatt--conversation_log_settings--audio_log_settings)) - `text_log_settings` (Attributes Set) List of text log settings (see [below for nested schema](#nestedatt--conversation_log_settings--text_log_settings)) ### Nested Schema for `conversation_log_settings.audio_log_settings` Optional: - `destination` (Attributes) The location of audio log files collected when conversation logging is enabled for a bot. (see [below for nested schema](#nestedatt--conversation_log_settings--audio_log_settings--destination)) - `enabled` (Boolean) ### Nested Schema for `conversation_log_settings.audio_log_settings.destination` Optional: - `s3_bucket` (Attributes) Specifies an Amazon S3 bucket for logging audio conversations (see [below for nested schema](#nestedatt--conversation_log_settings--audio_log_settings--destination--s3_bucket)) ### Nested Schema for `conversation_log_settings.audio_log_settings.destination.s3_bucket` Optional: - `kms_key_arn` (String) The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an S3 bucket. - `log_prefix` (String) The Amazon S3 key of the deployment package. - `s3_bucket_arn` (String) The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored. ### Nested Schema for `conversation_log_settings.text_log_settings` Optional: - `destination` (Attributes) Defines the Amazon CloudWatch Logs destination log group for conversation text logs. (see [below for nested schema](#nestedatt--conversation_log_settings--text_log_settings--destination)) - `enabled` (Boolean) ### Nested Schema for `conversation_log_settings.text_log_settings.destination` Optional: - `cloudwatch` (Attributes) (see [below for nested schema](#nestedatt--conversation_log_settings--text_log_settings--destination--cloudwatch)) ### Nested Schema for `conversation_log_settings.text_log_settings.destination.cloudwatch` Optional: - `cloudwatch_log_group_arn` (String) A string used to identify the groupArn for the Cloudwatch Log Group - `log_prefix` (String) A string containing the value for the Log Prefix ### Nested Schema for `sentiment_analysis_settings` Optional: - `detect_sentiment` (Boolean) Enable to call Amazon Comprehend for Sentiment natively within Lex ## Import Import is supported using the following syntax: ```shell $ terraform import awscc_lex_bot_alias.example ```