rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,152 lines • 185 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenerativeAiAgentKnowledgeBase = exports.GenerativeAiAgentKnowledgeBaseTimeoutsOutputReference = exports.generativeAiAgentKnowledgeBaseTimeoutsToHclTerraform = exports.generativeAiAgentKnowledgeBaseTimeoutsToTerraform = exports.GenerativeAiAgentKnowledgeBaseIndexConfigOutputReference = exports.generativeAiAgentKnowledgeBaseIndexConfigToHclTerraform = exports.generativeAiAgentKnowledgeBaseIndexConfigToTerraform = exports.GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailOutputReference = exports.generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToHclTerraform = exports.generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToTerraform = exports.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList = exports.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesOutputReference = exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesToHclTerraform = exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesToTerraform = exports.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaOutputReference = exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToHclTerraform = exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToTerraform = exports.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList = exports.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsOutputReference = exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToHclTerraform = exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToTerraform = exports.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionOutputReference = exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToHclTerraform = exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
connection_id: cdktf.stringToTerraform(struct.connectionId),
connection_type: cdktf.stringToTerraform(struct.connectionType),
};
}
exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToTerraform = generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToTerraform;
function generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
connection_id: {
value: cdktf.stringToHclTerraform(struct.connectionId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
connection_type: {
value: cdktf.stringToHclTerraform(struct.connectionType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToHclTerraform = generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToHclTerraform;
class GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._connectionId !== undefined) {
hasAnyValues = true;
internalValueResult.connectionId = this._connectionId;
}
if (this._connectionType !== undefined) {
hasAnyValues = true;
internalValueResult.connectionType = this._connectionType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._connectionId = undefined;
this._connectionType = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._connectionId = value.connectionId;
this._connectionType = value.connectionType;
}
}
get connectionId() {
return this.getStringAttribute('connection_id');
}
set connectionId(value) {
this._connectionId = value;
}
// Temporarily expose input value. Use with caution.
get connectionIdInput() {
return this._connectionId;
}
get connectionType() {
return this.getStringAttribute('connection_type');
}
set connectionType(value) {
this._connectionType = value;
}
// Temporarily expose input value. Use with caution.
get connectionTypeInput() {
return this._connectionType;
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionOutputReference = GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionOutputReference;
_a = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionOutputReference", version: "1.0.0" };
function generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
name: cdktf.stringToTerraform(struct.name),
};
}
exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToTerraform = generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToTerraform;
function generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToHclTerraform = generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToHclTerraform;
class GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsOutputReference = GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsOutputReference[_b] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsOutputReference", version: "1.0.0" };
class GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList = GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList;
_c = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList[_c] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList", version: "1.0.0" };
function generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
body_key: cdktf.stringToTerraform(struct.bodyKey),
embedding_body_key: cdktf.stringToTerraform(struct.embeddingBodyKey),
title_key: cdktf.stringToTerraform(struct.titleKey),
url_key: cdktf.stringToTerraform(struct.urlKey),
};
}
exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToTerraform = generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToTerraform;
function generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
body_key: {
value: cdktf.stringToHclTerraform(struct.bodyKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
embedding_body_key: {
value: cdktf.stringToHclTerraform(struct.embeddingBodyKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
title_key: {
value: cdktf.stringToHclTerraform(struct.titleKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
url_key: {
value: cdktf.stringToHclTerraform(struct.urlKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToHclTerraform = generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToHclTerraform;
class GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._bodyKey !== undefined) {
hasAnyValues = true;
internalValueResult.bodyKey = this._bodyKey;
}
if (this._embeddingBodyKey !== undefined) {
hasAnyValues = true;
internalValueResult.embeddingBodyKey = this._embeddingBodyKey;
}
if (this._titleKey !== undefined) {
hasAnyValues = true;
internalValueResult.titleKey = this._titleKey;
}
if (this._urlKey !== undefined) {
hasAnyValues = true;
internalValueResult.urlKey = this._urlKey;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bodyKey = undefined;
this._embeddingBodyKey = undefined;
this._titleKey = undefined;
this._urlKey = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bodyKey = value.bodyKey;
this._embeddingBodyKey = value.embeddingBodyKey;
this._titleKey = value.titleKey;
this._urlKey = value.urlKey;
}
}
get bodyKey() {
return this.getStringAttribute('body_key');
}
set bodyKey(value) {
this._bodyKey = value;
}
resetBodyKey() {
this._bodyKey = undefined;
}
// Temporarily expose input value. Use with caution.
get bodyKeyInput() {
return this._bodyKey;
}
get embeddingBodyKey() {
return this.getStringAttribute('embedding_body_key');
}
set embeddingBodyKey(value) {
this._embeddingBodyKey = value;
}
resetEmbeddingBodyKey() {
this._embeddingBodyKey = undefined;
}
// Temporarily expose input value. Use with caution.
get embeddingBodyKeyInput() {
return this._embeddingBodyKey;
}
get titleKey() {
return this.getStringAttribute('title_key');
}
set titleKey(value) {
this._titleKey = value;
}
resetTitleKey() {
this._titleKey = undefined;
}
// Temporarily expose input value. Use with caution.
get titleKeyInput() {
return this._titleKey;
}
get urlKey() {
return this.getStringAttribute('url_key');
}
set urlKey(value) {
this._urlKey = value;
}
resetUrlKey() {
this._urlKey = undefined;
}
// Temporarily expose input value. Use with caution.
get urlKeyInput() {
return this._urlKey;
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaOutputReference = GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaOutputReference;
_d = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaOutputReference", version: "1.0.0" };
function generativeAiAgentKnowledgeBaseIndexConfigIndexesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
name: cdktf.stringToTerraform(struct.name),
schema: generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToTerraform(struct.schema),
};
}
exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesToTerraform = generativeAiAgentKnowledgeBaseIndexConfigIndexesToTerraform;
function generativeAiAgentKnowledgeBaseIndexConfigIndexesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schema: {
value: generativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaToHclTerraform(struct.schema),
isBlock: true,
type: "list",
storageClassType: "GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.generativeAiAgentKnowledgeBaseIndexConfigIndexesToHclTerraform = generativeAiAgentKnowledgeBaseIndexConfigIndexesToHclTerraform;
class GenerativeAiAgentKnowledgeBaseIndexConfigIndexesOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// schema - computed: false, optional: true, required: false
this._schema = new GenerativeAiAgentKnowledgeBaseIndexConfigIndexesSchemaOutputReference(this, "schema");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._schema?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.schema = this._schema?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._schema.internalValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
this._schema.internalValue = value.schema;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get schema() {
return this._schema;
}
putSchema(value) {
this._schema.internalValue = value;
}
resetSchema() {
this._schema.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get schemaInput() {
return this._schema.internalValue;
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesOutputReference = GenerativeAiAgentKnowledgeBaseIndexConfigIndexesOutputReference;
_e = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigIndexesOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesOutputReference", version: "1.0.0" };
class GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new GenerativeAiAgentKnowledgeBaseIndexConfigIndexesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList = GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList;
_f = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList[_f] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList", version: "1.0.0" };
function generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
client_id: cdktf.stringToTerraform(struct.clientId),
idcs_url: cdktf.stringToTerraform(struct.idcsUrl),
scope_url: cdktf.stringToTerraform(struct.scopeUrl),
type: cdktf.stringToTerraform(struct.type),
vault_secret_id: cdktf.stringToTerraform(struct.vaultSecretId),
};
}
exports.generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToTerraform = generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToTerraform;
function generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
idcs_url: {
value: cdktf.stringToHclTerraform(struct.idcsUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
scope_url: {
value: cdktf.stringToHclTerraform(struct.scopeUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
vault_secret_id: {
value: cdktf.stringToHclTerraform(struct.vaultSecretId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToHclTerraform = generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToHclTerraform;
class GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._idcsUrl !== undefined) {
hasAnyValues = true;
internalValueResult.idcsUrl = this._idcsUrl;
}
if (this._scopeUrl !== undefined) {
hasAnyValues = true;
internalValueResult.scopeUrl = this._scopeUrl;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._vaultSecretId !== undefined) {
hasAnyValues = true;
internalValueResult.vaultSecretId = this._vaultSecretId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientId = undefined;
this._idcsUrl = undefined;
this._scopeUrl = undefined;
this._type = undefined;
this._vaultSecretId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientId = value.clientId;
this._idcsUrl = value.idcsUrl;
this._scopeUrl = value.scopeUrl;
this._type = value.type;
this._vaultSecretId = value.vaultSecretId;
}
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
resetClientId() {
this._clientId = undefined;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get idcsUrl() {
return this.getStringAttribute('idcs_url');
}
set idcsUrl(value) {
this._idcsUrl = value;
}
resetIdcsUrl() {
this._idcsUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get idcsUrlInput() {
return this._idcsUrl;
}
get scopeUrl() {
return this.getStringAttribute('scope_url');
}
set scopeUrl(value) {
this._scopeUrl = value;
}
resetScopeUrl() {
this._scopeUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get scopeUrlInput() {
return this._scopeUrl;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
get vaultSecretId() {
return this.getStringAttribute('vault_secret_id');
}
set vaultSecretId(value) {
this._vaultSecretId = value;
}
// Temporarily expose input value. Use with caution.
get vaultSecretIdInput() {
return this._vaultSecretId;
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailOutputReference = GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailOutputReference;
_g = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailOutputReference", version: "1.0.0" };
function generativeAiAgentKnowledgeBaseIndexConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
cluster_id: cdktf.stringToTerraform(struct.clusterId),
index_config_type: cdktf.stringToTerraform(struct.indexConfigType),
should_enable_hybrid_search: cdktf.booleanToTerraform(struct.shouldEnableHybridSearch),
database_connection: generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToTerraform(struct.databaseConnection),
database_functions: cdktf.listMapper(generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToTerraform, true)(struct.databaseFunctions),
indexes: cdktf.listMapper(generativeAiAgentKnowledgeBaseIndexConfigIndexesToTerraform, true)(struct.indexes),
secret_detail: generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToTerraform(struct.secretDetail),
};
}
exports.generativeAiAgentKnowledgeBaseIndexConfigToTerraform = generativeAiAgentKnowledgeBaseIndexConfigToTerraform;
function generativeAiAgentKnowledgeBaseIndexConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
cluster_id: {
value: cdktf.stringToHclTerraform(struct.clusterId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
index_config_type: {
value: cdktf.stringToHclTerraform(struct.indexConfigType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
should_enable_hybrid_search: {
value: cdktf.booleanToHclTerraform(struct.shouldEnableHybridSearch),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
database_connection: {
value: generativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionToHclTerraform(struct.databaseConnection),
isBlock: true,
type: "list",
storageClassType: "GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionList",
},
database_functions: {
value: cdktf.listMapperHcl(generativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsToHclTerraform, true)(struct.databaseFunctions),
isBlock: true,
type: "list",
storageClassType: "GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList",
},
indexes: {
value: cdktf.listMapperHcl(generativeAiAgentKnowledgeBaseIndexConfigIndexesToHclTerraform, true)(struct.indexes),
isBlock: true,
type: "list",
storageClassType: "GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList",
},
secret_detail: {
value: generativeAiAgentKnowledgeBaseIndexConfigSecretDetailToHclTerraform(struct.secretDetail),
isBlock: true,
type: "list",
storageClassType: "GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.generativeAiAgentKnowledgeBaseIndexConfigToHclTerraform = generativeAiAgentKnowledgeBaseIndexConfigToHclTerraform;
class GenerativeAiAgentKnowledgeBaseIndexConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
// database_connection - computed: false, optional: true, required: false
this._databaseConnection = new GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseConnectionOutputReference(this, "database_connection");
// database_functions - computed: false, optional: true, required: false
this._databaseFunctions = new GenerativeAiAgentKnowledgeBaseIndexConfigDatabaseFunctionsList(this, "database_functions", false);
// indexes - computed: false, optional: true, required: false
this._indexes = new GenerativeAiAgentKnowledgeBaseIndexConfigIndexesList(this, "indexes", false);
// secret_detail - computed: false, optional: true, required: false
this._secretDetail = new GenerativeAiAgentKnowledgeBaseIndexConfigSecretDetailOutputReference(this, "secret_detail");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._clusterId !== undefined) {
hasAnyValues = true;
internalValueResult.clusterId = this._clusterId;
}
if (this._indexConfigType !== undefined) {
hasAnyValues = true;
internalValueResult.indexConfigType = this._indexConfigType;
}
if (this._shouldEnableHybridSearch !== undefined) {
hasAnyValues = true;
internalValueResult.shouldEnableHybridSearch = this._shouldEnableHybridSearch;
}
if (this._databaseConnection?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.databaseConnection = this._databaseConnection?.internalValue;
}
if (this._databaseFunctions?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.databaseFunctions = this._databaseFunctions?.internalValue;
}
if (this._indexes?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.indexes = this._indexes?.internalValue;
}
if (this._secretDetail?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.secretDetail = this._secretDetail?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clusterId = undefined;
this._indexConfigType = undefined;
this._shouldEnableHybridSearch = undefined;
this._databaseConnection.internalValue = undefined;
this._databaseFunctions.internalValue = undefined;
this._indexes.internalValue = undefined;
this._secretDetail.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clusterId = value.clusterId;
this._indexConfigType = value.indexConfigType;
this._shouldEnableHybridSearch = value.shouldEnableHybridSearch;
this._databaseConnection.internalValue = value.databaseConnection;
this._databaseFunctions.internalValue = value.databaseFunctions;
this._indexes.internalValue = value.indexes;
this._secretDetail.internalValue = value.secretDetail;
}
}
get clusterId() {
return this.getStringAttribute('cluster_id');
}
set clusterId(value) {
this._clusterId = value;
}
resetClusterId() {
this._clusterId = undefined;
}
// Temporarily expose input value. Use with caution.
get clusterIdInput() {
return this._clusterId;
}
get indexConfigType() {
return this.getStringAttribute('index_config_type');
}
set indexConfigType(value) {
this._indexConfigType = value;
}
// Temporarily expose input value. Use with caution.
get indexConfigTypeInput() {
return this._indexConfigType;
}
get shouldEnableHybridSearch() {
return this.getBooleanAttribute('should_enable_hybrid_search');
}
set shouldEnableHybridSearch(value) {
this._shouldEnableHybridSearch = value;
}
resetShouldEnableHybridSearch() {
this._shouldEnableHybridSearch = undefined;
}
// Temporarily expose input value. Use with caution.
get shouldEnableHybridSearchInput() {
return this._shouldEnableHybridSearch;
}
get databaseConnection() {
return this._databaseConnection;
}
putDatabaseConnection(value) {
this._databaseConnection.internalValue = value;
}
resetDatabaseConnection() {
this._databaseConnection.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get databaseConnectionInput() {
return this._databaseConnection.internalValue;
}
get databaseFunctions() {
return this._databaseFunctions;
}
putDatabaseFunctions(value) {
this._databaseFunctions.internalValue = value;
}
resetDatabaseFunctions() {
this._databaseFunctions.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get databaseFunctionsInput() {
return this._databaseFunctions.internalValue;
}
get indexes() {
return this._indexes;
}
putIndexes(value) {
this._indexes.internalValue = value;
}
resetIndexes() {
this._indexes.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get indexesInput() {
return this._indexes.internalValue;
}
get secretDetail() {
return this._secretDetail;
}
putSecretDetail(value) {
this._secretDetail.internalValue = value;
}
resetSecretDetail() {
this._secretDetail.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get secretDetailInput() {
return this._secretDetail.internalValue;
}
}
exports.GenerativeAiAgentKnowledgeBaseIndexConfigOutputReference = GenerativeAiAgentKnowledgeBaseIndexConfigOutputReference;
_h = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseIndexConfigOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseIndexConfigOutputReference", version: "1.0.0" };
function generativeAiAgentKnowledgeBaseTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.generativeAiAgentKnowledgeBaseTimeoutsToTerraform = generativeAiAgentKnowledgeBaseTimeoutsToTerraform;
function generativeAiAgentKnowledgeBaseTimeoutsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.generativeAiAgentKnowledgeBaseTimeoutsToHclTerraform = generativeAiAgentKnowledgeBaseTimeoutsToHclTerraform;
class GenerativeAiAgentKnowledgeBaseTimeoutsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.GenerativeAiAgentKnowledgeBaseTimeoutsOutputReference = GenerativeAiAgentKnowledgeBaseTimeoutsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
GenerativeAiAgentKnowledgeBaseTimeoutsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.generativeAiAgentKnowledgeBase.GenerativeAiAgentKnowledgeBaseTimeoutsOutputReference", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/generative_ai_agent_knowledge_base oci_generative_ai_agent_knowledge_base}
*/
class GenerativeAiAgentKnowledgeBase extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a GenerativeAiAgentKnowledgeBase resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the GenerativeAiAgentKnowledgeBase to import
* @param importFromId The id of the existing GenerativeAiAgentKnowledgeBase that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/generative_ai_agent_knowledge_base#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the GenerativeAiAgentKnowledgeBase to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_generative_ai_agent_knowledge_base", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/generative_ai_agent_knowledge_base oci_generative_ai_agent_knowledge_base} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options GenerativeAiAgentKnowledgeBaseConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_generative_ai_agent_knowledge_base',
terraformGeneratorMetadata: {
providerName: 'oci',
providerVersion: '6.18.0',
providerVersionConstraint: '~> 6.18.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// system_tags - computed: true, optional: false, required: false
this._systemTags = new cdktf.StringMap(this, "system_tags");
// index_config - computed: false, optional: false, required: true
this._indexConfig = new GenerativeAiAgentKnowledgeBaseIndexConfigOutputReference(this, "index_config");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new GenerativeAiAgentKnowledgeBaseTimeoutsOutputReference(this, "timeouts");
this._compartmentId = config.compartmentId;
this._definedTags = config.definedTags;
this._description = config.description;
this._displayName = config.displayName;
this._freeformTags = config.freeformTags;
this._id = config.id;
this._indexConfig.internalValue = config.indexConfig;
this._timeouts.internalValue = config.timeouts;
}
get compartmentId() {
return this.getStringAttribute('compartment_id');
}
set compartmentId(value) {
this._compartmentId = value;
}
// Temporarily expose input value. Use with caution.
get compartmentIdInput() {
return this._compartmentId;
}
get definedTags() {
return this.getStringMapAttribute('defined_tags');
}
set definedTags(value) {
this._definedTags = value;
}
resetDefinedTags() {
this._definedTags = undefined;
}
// Temporarily expose input value. Use with caution.
get definedTagsInput() {
return this._definedTags;
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
get displayName() {
return this.getStringAttribute('display_name');
}
set displayName(value) {
this._displayName = value;
}
resetDisplayName() {
this._displayName =