From 54d7c5d6c4c3d885048dd136a0e71c78d5c3cede Mon Sep 17 00:00:00 2001 From: Alexa Perlov Date: Thu, 21 Nov 2024 17:06:50 -0500 Subject: [PATCH] fix: removing function schema --- README.md | 5 ----- main.tf | 11 ----------- variables.tf | 32 -------------------------------- 3 files changed, 48 deletions(-) diff --git a/README.md b/README.md index e16b5d0..a53cc31 100644 --- a/README.md +++ b/README.md @@ -193,11 +193,6 @@ No modules. | [exclusion\_filters](#input\_exclusion\_filters) | A set of regular expression filter patterns for a type of object. | `list(string)` | `[]` | no | | [existing\_kb](#input\_existing\_kb) | The ID of the existing knowledge base. | `string` | `null` | no | | [filters\_config](#input\_filters\_config) | List of content filter configs in content policy. | `list(map(string))` | `null` | no | -| [function\_description](#input\_function\_description) | Description of function. | `string` | `null` | no | -| [function\_name](#input\_function\_name) | Name for a resource. | `string` | `null` | no | -| [function\_parameters\_description](#input\_function\_parameters\_description) | Description of function parameter. | `string` | `null` | no | -| [function\_parameters\_required](#input\_function\_parameters\_required) | If a parameter is required for a function call. | `bool` | `false` | no | -| [function\_parameters\_type](#input\_function\_parameters\_type) | Parameter type. | `string` | `null` | no | | [guardrail\_description](#input\_guardrail\_description) | Description of the guardrail. | `string` | `null` | no | | [guardrail\_kms\_key\_arn](#input\_guardrail\_kms\_key\_arn) | KMS encryption key to use for the guardrail. | `string` | `null` | no | | [guardrail\_name](#input\_guardrail\_name) | The name of the guardrail. | `string` | `"TerraformBedrockGuardrail"` | no | diff --git a/main.tf b/main.tf index 1cc0d7a..8432135 100644 --- a/main.tf +++ b/main.tf @@ -35,17 +35,6 @@ locals { custom_control = var.custom_control lambda = var.lambda_action_group_executor } - function_schema = { - functions = [{ - name = var.function_name - description = var.function_description - parameters = { - description = var.function_parameters_description - required = var.function_parameters_required - type = var.function_parameters_type - } - }] - } } action_group_result = [for count in local.counter_action_group : local.action_group_value] diff --git a/variables.tf b/variables.tf index 6ab53be..f776c06 100644 --- a/variables.tf +++ b/variables.tf @@ -613,35 +613,3 @@ variable "api_schema_s3_object_key" { type = string default = null } - -# – Function Schema – - -variable "function_name" { - description = "Name for a resource." - type = string - default = null -} - -variable "function_description" { - description = "Description of function." - type = string - default = null -} - -variable "function_parameters_description" { - description = "Description of function parameter." - type = string - default = null -} - -variable "function_parameters_required" { - description = "If a parameter is required for a function call." - type = bool - default = false -} - -variable "function_parameters_type" { - description = "Parameter type." - type = string - default = null -}