Update outputs of AI Applications module (#3841)
* Update outputs of AI Applications module * Update docs * Update readmes
This commit is contained in:
@@ -336,10 +336,12 @@ module "ai-applications" {
|
|||||||
|
|
||||||
| name | description | sensitive |
|
| name | description | sensitive |
|
||||||
|---|---|:---:|
|
|---|---|:---:|
|
||||||
| [chat_engine_ids](outputs.tf#L17) | The ids of the chat engines created. | |
|
| [chat_agent](outputs.tf#L17) | The (Dialogflow CX) chat agent object. | |
|
||||||
| [chat_engines](outputs.tf#L25) | The chat engines created. | |
|
| [chat_agent_id](outputs.tf#L22) | The id of the (Dialogflow CX) chat agent. | |
|
||||||
| [data_store_ids](outputs.tf#L30) | The ids of the data stores created. | |
|
| [chat_engine](outputs.tf#L27) | The chat engine object. | |
|
||||||
| [data_stores](outputs.tf#L38) | The data stores resources created. | |
|
| [chat_engine_id](outputs.tf#L32) | The id of the chat engine. | |
|
||||||
| [search_engine_ids](outputs.tf#L43) | The ids of the search engines created. | |
|
| [data_store_ids](outputs.tf#L37) | The ids of the data stores created. | |
|
||||||
| [search_engines](outputs.tf#L51) | The search engines created. | |
|
| [data_stores](outputs.tf#L45) | The data stores resources created. | |
|
||||||
|
| [search_engine](outputs.tf#L50) | The search engines object. | |
|
||||||
|
| [search_engine_id](outputs.tf#L55) | The id of the search engine. | |
|
||||||
<!-- END TFDOC -->
|
<!-- END TFDOC -->
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright 2024 Google LLC
|
* Copyright 2026 Google LLC
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,17 +14,24 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
output "chat_engine_ids" {
|
output "chat_agent" {
|
||||||
description = "The ids of the chat engines created."
|
description = "The (Dialogflow CX) chat agent object."
|
||||||
value = {
|
value = try(google_dialogflow_cx_agent.default[0], null)
|
||||||
for k, v in google_discovery_engine_chat_engine.default
|
|
||||||
: k => v.id
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
output "chat_engines" {
|
output "chat_agent_id" {
|
||||||
description = "The chat engines created."
|
description = "The id of the (Dialogflow CX) chat agent."
|
||||||
value = google_discovery_engine_chat_engine.default
|
value = try(google_dialogflow_cx_agent.default[0].id, null)
|
||||||
|
}
|
||||||
|
|
||||||
|
output "chat_engine" {
|
||||||
|
description = "The chat engine object."
|
||||||
|
value = try(google_discovery_engine_chat_engine.default[0], null)
|
||||||
|
}
|
||||||
|
|
||||||
|
output "chat_engine_id" {
|
||||||
|
description = "The id of the chat engine."
|
||||||
|
value = try(google_discovery_engine_chat_engine.default[0].id, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
output "data_store_ids" {
|
output "data_store_ids" {
|
||||||
@@ -40,15 +47,12 @@ output "data_stores" {
|
|||||||
value = google_discovery_engine_data_store.default
|
value = google_discovery_engine_data_store.default
|
||||||
}
|
}
|
||||||
|
|
||||||
output "search_engine_ids" {
|
output "search_engine" {
|
||||||
description = "The ids of the search engines created."
|
description = "The search engines object."
|
||||||
value = {
|
value = try(google_discovery_engine_search_engine.default[0], null)
|
||||||
for k, v in google_discovery_engine_search_engine.default
|
|
||||||
: k => v.id
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
output "search_engines" {
|
output "search_engine_id" {
|
||||||
description = "The search engines created."
|
description = "The id of the search engine."
|
||||||
value = google_discovery_engine_search_engine.default
|
value = try(google_discovery_engine_search_engine.default[0].id, null)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user