@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,116 lines • 348 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModelServingProvisionedThroughput = exports.ModelServingProvisionedThroughputTimeoutsOutputReference = exports.ModelServingProvisionedThroughputTagsList = exports.ModelServingProvisionedThroughputTagsOutputReference = exports.ModelServingProvisionedThroughputEmailNotificationsOutputReference = exports.ModelServingProvisionedThroughputConfigAOutputReference = exports.ModelServingProvisionedThroughputConfigTrafficConfigOutputReference = exports.ModelServingProvisionedThroughputConfigTrafficConfigRoutesList = exports.ModelServingProvisionedThroughputConfigTrafficConfigRoutesOutputReference = exports.ModelServingProvisionedThroughputConfigServedEntitiesList = exports.ModelServingProvisionedThroughputConfigServedEntitiesOutputReference = exports.ModelServingProvisionedThroughputAiGatewayOutputReference = exports.ModelServingProvisionedThroughputAiGatewayUsageTrackingConfigOutputReference = exports.ModelServingProvisionedThroughputAiGatewayRateLimitsList = exports.ModelServingProvisionedThroughputAiGatewayRateLimitsOutputReference = exports.ModelServingProvisionedThroughputAiGatewayInferenceTableConfigOutputReference = exports.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputReference = exports.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputOutputReference = exports.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiOutputReference = exports.ModelServingProvisionedThroughputAiGatewayGuardrailsInputOutputReference = exports.ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiOutputReference = exports.ModelServingProvisionedThroughputAiGatewayFallbackConfigOutputReference = void 0;
exports.modelServingProvisionedThroughputAiGatewayFallbackConfigToTerraform = modelServingProvisionedThroughputAiGatewayFallbackConfigToTerraform;
exports.modelServingProvisionedThroughputAiGatewayFallbackConfigToHclTerraform = modelServingProvisionedThroughputAiGatewayFallbackConfigToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToHclTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsInputToTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsInputToTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsInputToHclTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsInputToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToHclTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsOutputToTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsOutputToTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsOutputToHclTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsOutputToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsToTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsToTerraform;
exports.modelServingProvisionedThroughputAiGatewayGuardrailsToHclTerraform = modelServingProvisionedThroughputAiGatewayGuardrailsToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayInferenceTableConfigToTerraform = modelServingProvisionedThroughputAiGatewayInferenceTableConfigToTerraform;
exports.modelServingProvisionedThroughputAiGatewayInferenceTableConfigToHclTerraform = modelServingProvisionedThroughputAiGatewayInferenceTableConfigToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayRateLimitsToTerraform = modelServingProvisionedThroughputAiGatewayRateLimitsToTerraform;
exports.modelServingProvisionedThroughputAiGatewayRateLimitsToHclTerraform = modelServingProvisionedThroughputAiGatewayRateLimitsToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayUsageTrackingConfigToTerraform = modelServingProvisionedThroughputAiGatewayUsageTrackingConfigToTerraform;
exports.modelServingProvisionedThroughputAiGatewayUsageTrackingConfigToHclTerraform = modelServingProvisionedThroughputAiGatewayUsageTrackingConfigToHclTerraform;
exports.modelServingProvisionedThroughputAiGatewayToTerraform = modelServingProvisionedThroughputAiGatewayToTerraform;
exports.modelServingProvisionedThroughputAiGatewayToHclTerraform = modelServingProvisionedThroughputAiGatewayToHclTerraform;
exports.modelServingProvisionedThroughputConfigServedEntitiesToTerraform = modelServingProvisionedThroughputConfigServedEntitiesToTerraform;
exports.modelServingProvisionedThroughputConfigServedEntitiesToHclTerraform = modelServingProvisionedThroughputConfigServedEntitiesToHclTerraform;
exports.modelServingProvisionedThroughputConfigTrafficConfigRoutesToTerraform = modelServingProvisionedThroughputConfigTrafficConfigRoutesToTerraform;
exports.modelServingProvisionedThroughputConfigTrafficConfigRoutesToHclTerraform = modelServingProvisionedThroughputConfigTrafficConfigRoutesToHclTerraform;
exports.modelServingProvisionedThroughputConfigTrafficConfigToTerraform = modelServingProvisionedThroughputConfigTrafficConfigToTerraform;
exports.modelServingProvisionedThroughputConfigTrafficConfigToHclTerraform = modelServingProvisionedThroughputConfigTrafficConfigToHclTerraform;
exports.modelServingProvisionedThroughputConfigAToTerraform = modelServingProvisionedThroughputConfigAToTerraform;
exports.modelServingProvisionedThroughputConfigAToHclTerraform = modelServingProvisionedThroughputConfigAToHclTerraform;
exports.modelServingProvisionedThroughputEmailNotificationsToTerraform = modelServingProvisionedThroughputEmailNotificationsToTerraform;
exports.modelServingProvisionedThroughputEmailNotificationsToHclTerraform = modelServingProvisionedThroughputEmailNotificationsToHclTerraform;
exports.modelServingProvisionedThroughputTagsToTerraform = modelServingProvisionedThroughputTagsToTerraform;
exports.modelServingProvisionedThroughputTagsToHclTerraform = modelServingProvisionedThroughputTagsToHclTerraform;
exports.modelServingProvisionedThroughputTimeoutsToTerraform = modelServingProvisionedThroughputTimeoutsToTerraform;
exports.modelServingProvisionedThroughputTimeoutsToHclTerraform = modelServingProvisionedThroughputTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function modelServingProvisionedThroughputAiGatewayFallbackConfigToTerraform(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 {
enabled: cdktf.booleanToTerraform(struct.enabled),
};
}
function modelServingProvisionedThroughputAiGatewayFallbackConfigToHclTerraform(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 = {
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayFallbackConfigOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
}
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
}
exports.ModelServingProvisionedThroughputAiGatewayFallbackConfigOutputReference = ModelServingProvisionedThroughputAiGatewayFallbackConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayFallbackConfigOutputReference[_a] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayFallbackConfigOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToTerraform(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 {
behavior: cdktf.stringToTerraform(struct.behavior),
};
}
function modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToHclTerraform(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 = {
behavior: {
value: cdktf.stringToHclTerraform(struct.behavior),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiOutputReference 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._behavior !== undefined) {
hasAnyValues = true;
internalValueResult.behavior = this._behavior;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._behavior = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._behavior = value.behavior;
}
}
get behavior() {
return this.getStringAttribute('behavior');
}
set behavior(value) {
this._behavior = value;
}
resetBehavior() {
this._behavior = undefined;
}
// Temporarily expose input value. Use with caution.
get behaviorInput() {
return this._behavior;
}
}
exports.ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiOutputReference = ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiOutputReference;
_b = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiOutputReference[_b] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayGuardrailsInputToTerraform(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 {
invalid_keywords: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.invalidKeywords),
safety: cdktf.booleanToTerraform(struct.safety),
valid_topics: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.validTopics),
pii: modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToTerraform(struct.pii),
};
}
function modelServingProvisionedThroughputAiGatewayGuardrailsInputToHclTerraform(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 = {
invalid_keywords: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.invalidKeywords),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
safety: {
value: cdktf.booleanToHclTerraform(struct.safety),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
valid_topics: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.validTopics),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
pii: {
value: modelServingProvisionedThroughputAiGatewayGuardrailsInputPiiToHclTerraform(struct.pii),
isBlock: true,
type: "list",
storageClassType: "ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayGuardrailsInputOutputReference 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;
// pii - computed: false, optional: true, required: false
this._pii = new ModelServingProvisionedThroughputAiGatewayGuardrailsInputPiiOutputReference(this, "pii");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._invalidKeywords !== undefined) {
hasAnyValues = true;
internalValueResult.invalidKeywords = this._invalidKeywords;
}
if (this._safety !== undefined) {
hasAnyValues = true;
internalValueResult.safety = this._safety;
}
if (this._validTopics !== undefined) {
hasAnyValues = true;
internalValueResult.validTopics = this._validTopics;
}
if (this._pii?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.pii = this._pii?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._invalidKeywords = undefined;
this._safety = undefined;
this._validTopics = undefined;
this._pii.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._invalidKeywords = value.invalidKeywords;
this._safety = value.safety;
this._validTopics = value.validTopics;
this._pii.internalValue = value.pii;
}
}
get invalidKeywords() {
return this.getListAttribute('invalid_keywords');
}
set invalidKeywords(value) {
this._invalidKeywords = value;
}
resetInvalidKeywords() {
this._invalidKeywords = undefined;
}
// Temporarily expose input value. Use with caution.
get invalidKeywordsInput() {
return this._invalidKeywords;
}
get safety() {
return this.getBooleanAttribute('safety');
}
set safety(value) {
this._safety = value;
}
resetSafety() {
this._safety = undefined;
}
// Temporarily expose input value. Use with caution.
get safetyInput() {
return this._safety;
}
get validTopics() {
return this.getListAttribute('valid_topics');
}
set validTopics(value) {
this._validTopics = value;
}
resetValidTopics() {
this._validTopics = undefined;
}
// Temporarily expose input value. Use with caution.
get validTopicsInput() {
return this._validTopics;
}
get pii() {
return this._pii;
}
putPii(value) {
this._pii.internalValue = value;
}
resetPii() {
this._pii.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get piiInput() {
return this._pii.internalValue;
}
}
exports.ModelServingProvisionedThroughputAiGatewayGuardrailsInputOutputReference = ModelServingProvisionedThroughputAiGatewayGuardrailsInputOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayGuardrailsInputOutputReference[_c] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayGuardrailsInputOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToTerraform(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 {
behavior: cdktf.stringToTerraform(struct.behavior),
};
}
function modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToHclTerraform(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 = {
behavior: {
value: cdktf.stringToHclTerraform(struct.behavior),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiOutputReference 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._behavior !== undefined) {
hasAnyValues = true;
internalValueResult.behavior = this._behavior;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._behavior = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._behavior = value.behavior;
}
}
get behavior() {
return this.getStringAttribute('behavior');
}
set behavior(value) {
this._behavior = value;
}
resetBehavior() {
this._behavior = undefined;
}
// Temporarily expose input value. Use with caution.
get behaviorInput() {
return this._behavior;
}
}
exports.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiOutputReference = ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiOutputReference[_d] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayGuardrailsOutputToTerraform(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 {
invalid_keywords: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.invalidKeywords),
safety: cdktf.booleanToTerraform(struct.safety),
valid_topics: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.validTopics),
pii: modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToTerraform(struct.pii),
};
}
function modelServingProvisionedThroughputAiGatewayGuardrailsOutputToHclTerraform(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 = {
invalid_keywords: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.invalidKeywords),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
safety: {
value: cdktf.booleanToHclTerraform(struct.safety),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
valid_topics: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.validTopics),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
pii: {
value: modelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiToHclTerraform(struct.pii),
isBlock: true,
type: "list",
storageClassType: "ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayGuardrailsOutputOutputReference 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;
// pii - computed: false, optional: true, required: false
this._pii = new ModelServingProvisionedThroughputAiGatewayGuardrailsOutputPiiOutputReference(this, "pii");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._invalidKeywords !== undefined) {
hasAnyValues = true;
internalValueResult.invalidKeywords = this._invalidKeywords;
}
if (this._safety !== undefined) {
hasAnyValues = true;
internalValueResult.safety = this._safety;
}
if (this._validTopics !== undefined) {
hasAnyValues = true;
internalValueResult.validTopics = this._validTopics;
}
if (this._pii?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.pii = this._pii?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._invalidKeywords = undefined;
this._safety = undefined;
this._validTopics = undefined;
this._pii.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._invalidKeywords = value.invalidKeywords;
this._safety = value.safety;
this._validTopics = value.validTopics;
this._pii.internalValue = value.pii;
}
}
get invalidKeywords() {
return this.getListAttribute('invalid_keywords');
}
set invalidKeywords(value) {
this._invalidKeywords = value;
}
resetInvalidKeywords() {
this._invalidKeywords = undefined;
}
// Temporarily expose input value. Use with caution.
get invalidKeywordsInput() {
return this._invalidKeywords;
}
get safety() {
return this.getBooleanAttribute('safety');
}
set safety(value) {
this._safety = value;
}
resetSafety() {
this._safety = undefined;
}
// Temporarily expose input value. Use with caution.
get safetyInput() {
return this._safety;
}
get validTopics() {
return this.getListAttribute('valid_topics');
}
set validTopics(value) {
this._validTopics = value;
}
resetValidTopics() {
this._validTopics = undefined;
}
// Temporarily expose input value. Use with caution.
get validTopicsInput() {
return this._validTopics;
}
get pii() {
return this._pii;
}
putPii(value) {
this._pii.internalValue = value;
}
resetPii() {
this._pii.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get piiInput() {
return this._pii.internalValue;
}
}
exports.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputOutputReference = ModelServingProvisionedThroughputAiGatewayGuardrailsOutputOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayGuardrailsOutputOutputReference[_e] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayGuardrailsToTerraform(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 {
input: modelServingProvisionedThroughputAiGatewayGuardrailsInputToTerraform(struct.input),
output: modelServingProvisionedThroughputAiGatewayGuardrailsOutputToTerraform(struct.output),
};
}
function modelServingProvisionedThroughputAiGatewayGuardrailsToHclTerraform(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 = {
input: {
value: modelServingProvisionedThroughputAiGatewayGuardrailsInputToHclTerraform(struct.input),
isBlock: true,
type: "list",
storageClassType: "ModelServingProvisionedThroughputAiGatewayGuardrailsInputList",
},
output: {
value: modelServingProvisionedThroughputAiGatewayGuardrailsOutputToHclTerraform(struct.output),
isBlock: true,
type: "list",
storageClassType: "ModelServingProvisionedThroughputAiGatewayGuardrailsOutputList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayGuardrailsOutputReference 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;
// input - computed: false, optional: true, required: false
this._input = new ModelServingProvisionedThroughputAiGatewayGuardrailsInputOutputReference(this, "input");
// output - computed: false, optional: true, required: false
this._output = new ModelServingProvisionedThroughputAiGatewayGuardrailsOutputOutputReference(this, "output");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._input?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.input = this._input?.internalValue;
}
if (this._output?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.output = this._output?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._input.internalValue = undefined;
this._output.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._input.internalValue = value.input;
this._output.internalValue = value.output;
}
}
get input() {
return this._input;
}
putInput(value) {
this._input.internalValue = value;
}
resetInput() {
this._input.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get inputInput() {
return this._input.internalValue;
}
get output() {
return this._output;
}
putOutput(value) {
this._output.internalValue = value;
}
resetOutput() {
this._output.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get outputInput() {
return this._output.internalValue;
}
}
exports.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputReference = ModelServingProvisionedThroughputAiGatewayGuardrailsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayGuardrailsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayGuardrailsOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayInferenceTableConfigToTerraform(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 {
catalog_name: cdktf.stringToTerraform(struct.catalogName),
enabled: cdktf.booleanToTerraform(struct.enabled),
schema_name: cdktf.stringToTerraform(struct.schemaName),
table_name_prefix: cdktf.stringToTerraform(struct.tableNamePrefix),
};
}
function modelServingProvisionedThroughputAiGatewayInferenceTableConfigToHclTerraform(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 = {
catalog_name: {
value: cdktf.stringToHclTerraform(struct.catalogName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
schema_name: {
value: cdktf.stringToHclTerraform(struct.schemaName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
table_name_prefix: {
value: cdktf.stringToHclTerraform(struct.tableNamePrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayInferenceTableConfigOutputReference 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._catalogName !== undefined) {
hasAnyValues = true;
internalValueResult.catalogName = this._catalogName;
}
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._schemaName !== undefined) {
hasAnyValues = true;
internalValueResult.schemaName = this._schemaName;
}
if (this._tableNamePrefix !== undefined) {
hasAnyValues = true;
internalValueResult.tableNamePrefix = this._tableNamePrefix;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._catalogName = undefined;
this._enabled = undefined;
this._schemaName = undefined;
this._tableNamePrefix = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._catalogName = value.catalogName;
this._enabled = value.enabled;
this._schemaName = value.schemaName;
this._tableNamePrefix = value.tableNamePrefix;
}
}
get catalogName() {
return this.getStringAttribute('catalog_name');
}
set catalogName(value) {
this._catalogName = value;
}
resetCatalogName() {
this._catalogName = undefined;
}
// Temporarily expose input value. Use with caution.
get catalogNameInput() {
return this._catalogName;
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get schemaName() {
return this.getStringAttribute('schema_name');
}
set schemaName(value) {
this._schemaName = value;
}
resetSchemaName() {
this._schemaName = undefined;
}
// Temporarily expose input value. Use with caution.
get schemaNameInput() {
return this._schemaName;
}
get tableNamePrefix() {
return this.getStringAttribute('table_name_prefix');
}
set tableNamePrefix(value) {
this._tableNamePrefix = value;
}
resetTableNamePrefix() {
this._tableNamePrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get tableNamePrefixInput() {
return this._tableNamePrefix;
}
}
exports.ModelServingProvisionedThroughputAiGatewayInferenceTableConfigOutputReference = ModelServingProvisionedThroughputAiGatewayInferenceTableConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayInferenceTableConfigOutputReference[_g] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayInferenceTableConfigOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayRateLimitsToTerraform(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 {
calls: cdktf.numberToTerraform(struct.calls),
key: cdktf.stringToTerraform(struct.key),
principal: cdktf.stringToTerraform(struct.principal),
renewal_period: cdktf.stringToTerraform(struct.renewalPeriod),
tokens: cdktf.numberToTerraform(struct.tokens),
};
}
function modelServingProvisionedThroughputAiGatewayRateLimitsToHclTerraform(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 = {
calls: {
value: cdktf.numberToHclTerraform(struct.calls),
isBlock: false,
type: "simple",
storageClassType: "number",
},
key: {
value: cdktf.stringToHclTerraform(struct.key),
isBlock: false,
type: "simple",
storageClassType: "string",
},
principal: {
value: cdktf.stringToHclTerraform(struct.principal),
isBlock: false,
type: "simple",
storageClassType: "string",
},
renewal_period: {
value: cdktf.stringToHclTerraform(struct.renewalPeriod),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tokens: {
value: cdktf.numberToHclTerraform(struct.tokens),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayRateLimitsOutputReference 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._calls !== undefined) {
hasAnyValues = true;
internalValueResult.calls = this._calls;
}
if (this._key !== undefined) {
hasAnyValues = true;
internalValueResult.key = this._key;
}
if (this._principal !== undefined) {
hasAnyValues = true;
internalValueResult.principal = this._principal;
}
if (this._renewalPeriod !== undefined) {
hasAnyValues = true;
internalValueResult.renewalPeriod = this._renewalPeriod;
}
if (this._tokens !== undefined) {
hasAnyValues = true;
internalValueResult.tokens = this._tokens;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._calls = undefined;
this._key = undefined;
this._principal = undefined;
this._renewalPeriod = undefined;
this._tokens = 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._calls = value.calls;
this._key = value.key;
this._principal = value.principal;
this._renewalPeriod = value.renewalPeriod;
this._tokens = value.tokens;
}
}
get calls() {
return this.getNumberAttribute('calls');
}
set calls(value) {
this._calls = value;
}
resetCalls() {
this._calls = undefined;
}
// Temporarily expose input value. Use with caution.
get callsInput() {
return this._calls;
}
get key() {
return this.getStringAttribute('key');
}
set key(value) {
this._key = value;
}
resetKey() {
this._key = undefined;
}
// Temporarily expose input value. Use with caution.
get keyInput() {
return this._key;
}
get principal() {
return this.getStringAttribute('principal');
}
set principal(value) {
this._principal = value;
}
resetPrincipal() {
this._principal = undefined;
}
// Temporarily expose input value. Use with caution.
get principalInput() {
return this._principal;
}
get renewalPeriod() {
return this.getStringAttribute('renewal_period');
}
set renewalPeriod(value) {
this._renewalPeriod = value;
}
// Temporarily expose input value. Use with caution.
get renewalPeriodInput() {
return this._renewalPeriod;
}
get tokens() {
return this.getNumberAttribute('tokens');
}
set tokens(value) {
this._tokens = value;
}
resetTokens() {
this._tokens = undefined;
}
// Temporarily expose input value. Use with caution.
get tokensInput() {
return this._tokens;
}
}
exports.ModelServingProvisionedThroughputAiGatewayRateLimitsOutputReference = ModelServingProvisionedThroughputAiGatewayRateLimitsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayRateLimitsOutputReference[_h] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayRateLimitsOutputReference", version: "15.7.0" };
class ModelServingProvisionedThroughputAiGatewayRateLimitsList 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 ModelServingProvisionedThroughputAiGatewayRateLimitsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ModelServingProvisionedThroughputAiGatewayRateLimitsList = ModelServingProvisionedThroughputAiGatewayRateLimitsList;
_j = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayRateLimitsList[_j] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayRateLimitsList", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayUsageTrackingConfigToTerraform(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 {
enabled: cdktf.booleanToTerraform(struct.enabled),
};
}
function modelServingProvisionedThroughputAiGatewayUsageTrackingConfigToHclTerraform(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 = {
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ModelServingProvisionedThroughputAiGatewayUsageTrackingConfigOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
}
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
}
exports.ModelServingProvisionedThroughputAiGatewayUsageTrackingConfigOutputReference = ModelServingProvisionedThroughputAiGatewayUsageTrackingConfigOutputReference;
_k = JSII_RTTI_SYMBOL_1;
ModelServingProvisionedThroughputAiGatewayUsageTrackingConfigOutputReference[_k] = { fqn: "@cdktf/provider-databricks.modelServingProvisionedThroughput.ModelServingProvisionedThroughputAiGatewayUsageTrackingConfigOutputReference", version: "15.7.0" };
function modelServingProvisionedThroughputAiGatewayToTerraform(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 {
fallback_config: modelServingProvisionedThroughputAiGatewayFallbackConfigToTerraform(struct.fallbackConfig),
guardrails: modelServingProvisionedThroughputAiGatewayGuardrailsToTerraform(struct.guardrails),
infere