UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,076 lines 237 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.CosmosdbSqlContainer = exports.CosmosdbSqlContainerUniqueKeyList = exports.CosmosdbSqlContainerUniqueKeyOutputReference = exports.cosmosdbSqlContainerUniqueKeyToHclTerraform = exports.cosmosdbSqlContainerUniqueKeyToTerraform = exports.CosmosdbSqlContainerTimeoutsOutputReference = exports.cosmosdbSqlContainerTimeoutsToHclTerraform = exports.cosmosdbSqlContainerTimeoutsToTerraform = exports.CosmosdbSqlContainerIndexingPolicyOutputReference = exports.cosmosdbSqlContainerIndexingPolicyToHclTerraform = exports.cosmosdbSqlContainerIndexingPolicyToTerraform = exports.CosmosdbSqlContainerIndexingPolicySpatialIndexList = exports.CosmosdbSqlContainerIndexingPolicySpatialIndexOutputReference = exports.cosmosdbSqlContainerIndexingPolicySpatialIndexToHclTerraform = exports.cosmosdbSqlContainerIndexingPolicySpatialIndexToTerraform = exports.CosmosdbSqlContainerIndexingPolicyIncludedPathList = exports.CosmosdbSqlContainerIndexingPolicyIncludedPathOutputReference = exports.cosmosdbSqlContainerIndexingPolicyIncludedPathToHclTerraform = exports.cosmosdbSqlContainerIndexingPolicyIncludedPathToTerraform = exports.CosmosdbSqlContainerIndexingPolicyExcludedPathList = exports.CosmosdbSqlContainerIndexingPolicyExcludedPathOutputReference = exports.cosmosdbSqlContainerIndexingPolicyExcludedPathToHclTerraform = exports.cosmosdbSqlContainerIndexingPolicyExcludedPathToTerraform = exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexList = exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexOutputReference = exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexToHclTerraform = exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexToTerraform = exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList = exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexOutputReference = exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToHclTerraform = exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToTerraform = exports.CosmosdbSqlContainerConflictResolutionPolicyOutputReference = exports.cosmosdbSqlContainerConflictResolutionPolicyToHclTerraform = exports.cosmosdbSqlContainerConflictResolutionPolicyToTerraform = exports.CosmosdbSqlContainerAutoscaleSettingsOutputReference = exports.cosmosdbSqlContainerAutoscaleSettingsToHclTerraform = exports.cosmosdbSqlContainerAutoscaleSettingsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function cosmosdbSqlContainerAutoscaleSettingsToTerraform(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 { max_throughput: cdktf.numberToTerraform(struct.maxThroughput), }; } exports.cosmosdbSqlContainerAutoscaleSettingsToTerraform = cosmosdbSqlContainerAutoscaleSettingsToTerraform; function cosmosdbSqlContainerAutoscaleSettingsToHclTerraform(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 = { max_throughput: { value: cdktf.numberToHclTerraform(struct.maxThroughput), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerAutoscaleSettingsToHclTerraform = cosmosdbSqlContainerAutoscaleSettingsToHclTerraform; class CosmosdbSqlContainerAutoscaleSettingsOutputReference 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._maxThroughput !== undefined) { hasAnyValues = true; internalValueResult.maxThroughput = this._maxThroughput; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._maxThroughput = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maxThroughput = value.maxThroughput; } } get maxThroughput() { return this.getNumberAttribute('max_throughput'); } set maxThroughput(value) { this._maxThroughput = value; } resetMaxThroughput() { this._maxThroughput = undefined; } // Temporarily expose input value. Use with caution. get maxThroughputInput() { return this._maxThroughput; } } exports.CosmosdbSqlContainerAutoscaleSettingsOutputReference = CosmosdbSqlContainerAutoscaleSettingsOutputReference; _a = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerAutoscaleSettingsOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerAutoscaleSettingsOutputReference", version: "12.27.0" }; function cosmosdbSqlContainerConflictResolutionPolicyToTerraform(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 { conflict_resolution_path: cdktf.stringToTerraform(struct.conflictResolutionPath), conflict_resolution_procedure: cdktf.stringToTerraform(struct.conflictResolutionProcedure), mode: cdktf.stringToTerraform(struct.mode), }; } exports.cosmosdbSqlContainerConflictResolutionPolicyToTerraform = cosmosdbSqlContainerConflictResolutionPolicyToTerraform; function cosmosdbSqlContainerConflictResolutionPolicyToHclTerraform(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 = { conflict_resolution_path: { value: cdktf.stringToHclTerraform(struct.conflictResolutionPath), isBlock: false, type: "simple", storageClassType: "string", }, conflict_resolution_procedure: { value: cdktf.stringToHclTerraform(struct.conflictResolutionProcedure), isBlock: false, type: "simple", storageClassType: "string", }, mode: { value: cdktf.stringToHclTerraform(struct.mode), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerConflictResolutionPolicyToHclTerraform = cosmosdbSqlContainerConflictResolutionPolicyToHclTerraform; class CosmosdbSqlContainerConflictResolutionPolicyOutputReference 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._conflictResolutionPath !== undefined) { hasAnyValues = true; internalValueResult.conflictResolutionPath = this._conflictResolutionPath; } if (this._conflictResolutionProcedure !== undefined) { hasAnyValues = true; internalValueResult.conflictResolutionProcedure = this._conflictResolutionProcedure; } if (this._mode !== undefined) { hasAnyValues = true; internalValueResult.mode = this._mode; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._conflictResolutionPath = undefined; this._conflictResolutionProcedure = undefined; this._mode = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._conflictResolutionPath = value.conflictResolutionPath; this._conflictResolutionProcedure = value.conflictResolutionProcedure; this._mode = value.mode; } } get conflictResolutionPath() { return this.getStringAttribute('conflict_resolution_path'); } set conflictResolutionPath(value) { this._conflictResolutionPath = value; } resetConflictResolutionPath() { this._conflictResolutionPath = undefined; } // Temporarily expose input value. Use with caution. get conflictResolutionPathInput() { return this._conflictResolutionPath; } get conflictResolutionProcedure() { return this.getStringAttribute('conflict_resolution_procedure'); } set conflictResolutionProcedure(value) { this._conflictResolutionProcedure = value; } resetConflictResolutionProcedure() { this._conflictResolutionProcedure = undefined; } // Temporarily expose input value. Use with caution. get conflictResolutionProcedureInput() { return this._conflictResolutionProcedure; } get mode() { return this.getStringAttribute('mode'); } set mode(value) { this._mode = value; } // Temporarily expose input value. Use with caution. get modeInput() { return this._mode; } } exports.CosmosdbSqlContainerConflictResolutionPolicyOutputReference = CosmosdbSqlContainerConflictResolutionPolicyOutputReference; _b = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerConflictResolutionPolicyOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerConflictResolutionPolicyOutputReference", version: "12.27.0" }; function cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToTerraform(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 { order: cdktf.stringToTerraform(struct.order), path: cdktf.stringToTerraform(struct.path), }; } exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToTerraform = cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToTerraform; function cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToHclTerraform(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 = { order: { value: cdktf.stringToHclTerraform(struct.order), isBlock: false, type: "simple", storageClassType: "string", }, path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToHclTerraform = cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToHclTerraform; class CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexOutputReference 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._order !== undefined) { hasAnyValues = true; internalValueResult.order = this._order; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._order = undefined; this._path = 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._order = value.order; this._path = value.path; } } get order() { return this.getStringAttribute('order'); } set order(value) { this._order = value; } // Temporarily expose input value. Use with caution. get orderInput() { return this._order; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexOutputReference = CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexOutputReference; _c = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexOutputReference", version: "12.27.0" }; class CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList 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 CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList = CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList; _d = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList[_d] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList", version: "12.27.0" }; function cosmosdbSqlContainerIndexingPolicyCompositeIndexToTerraform(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 { index: cdktf.listMapper(cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToTerraform, true)(struct.index), }; } exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexToTerraform = cosmosdbSqlContainerIndexingPolicyCompositeIndexToTerraform; function cosmosdbSqlContainerIndexingPolicyCompositeIndexToHclTerraform(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 = { index: { value: cdktf.listMapperHcl(cosmosdbSqlContainerIndexingPolicyCompositeIndexIndexToHclTerraform, true)(struct.index), isBlock: true, type: "list", storageClassType: "CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerIndexingPolicyCompositeIndexToHclTerraform = cosmosdbSqlContainerIndexingPolicyCompositeIndexToHclTerraform; class CosmosdbSqlContainerIndexingPolicyCompositeIndexOutputReference 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; // index - computed: false, optional: false, required: true this._index = new CosmosdbSqlContainerIndexingPolicyCompositeIndexIndexList(this, "index", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._index?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.index = this._index?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._index.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._index.internalValue = value.index; } } get index() { return this._index; } putIndex(value) { this._index.internalValue = value; } // Temporarily expose input value. Use with caution. get indexInput() { return this._index.internalValue; } } exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexOutputReference = CosmosdbSqlContainerIndexingPolicyCompositeIndexOutputReference; _e = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyCompositeIndexOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyCompositeIndexOutputReference", version: "12.27.0" }; class CosmosdbSqlContainerIndexingPolicyCompositeIndexList 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 CosmosdbSqlContainerIndexingPolicyCompositeIndexOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CosmosdbSqlContainerIndexingPolicyCompositeIndexList = CosmosdbSqlContainerIndexingPolicyCompositeIndexList; _f = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyCompositeIndexList[_f] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyCompositeIndexList", version: "12.27.0" }; function cosmosdbSqlContainerIndexingPolicyExcludedPathToTerraform(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 { path: cdktf.stringToTerraform(struct.path), }; } exports.cosmosdbSqlContainerIndexingPolicyExcludedPathToTerraform = cosmosdbSqlContainerIndexingPolicyExcludedPathToTerraform; function cosmosdbSqlContainerIndexingPolicyExcludedPathToHclTerraform(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 = { path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerIndexingPolicyExcludedPathToHclTerraform = cosmosdbSqlContainerIndexingPolicyExcludedPathToHclTerraform; class CosmosdbSqlContainerIndexingPolicyExcludedPathOutputReference 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._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._path = 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._path = value.path; } } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.CosmosdbSqlContainerIndexingPolicyExcludedPathOutputReference = CosmosdbSqlContainerIndexingPolicyExcludedPathOutputReference; _g = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyExcludedPathOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyExcludedPathOutputReference", version: "12.27.0" }; class CosmosdbSqlContainerIndexingPolicyExcludedPathList 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 CosmosdbSqlContainerIndexingPolicyExcludedPathOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CosmosdbSqlContainerIndexingPolicyExcludedPathList = CosmosdbSqlContainerIndexingPolicyExcludedPathList; _h = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyExcludedPathList[_h] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyExcludedPathList", version: "12.27.0" }; function cosmosdbSqlContainerIndexingPolicyIncludedPathToTerraform(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 { path: cdktf.stringToTerraform(struct.path), }; } exports.cosmosdbSqlContainerIndexingPolicyIncludedPathToTerraform = cosmosdbSqlContainerIndexingPolicyIncludedPathToTerraform; function cosmosdbSqlContainerIndexingPolicyIncludedPathToHclTerraform(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 = { path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerIndexingPolicyIncludedPathToHclTerraform = cosmosdbSqlContainerIndexingPolicyIncludedPathToHclTerraform; class CosmosdbSqlContainerIndexingPolicyIncludedPathOutputReference 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._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._path = 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._path = value.path; } } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.CosmosdbSqlContainerIndexingPolicyIncludedPathOutputReference = CosmosdbSqlContainerIndexingPolicyIncludedPathOutputReference; _j = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyIncludedPathOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyIncludedPathOutputReference", version: "12.27.0" }; class CosmosdbSqlContainerIndexingPolicyIncludedPathList 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 CosmosdbSqlContainerIndexingPolicyIncludedPathOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CosmosdbSqlContainerIndexingPolicyIncludedPathList = CosmosdbSqlContainerIndexingPolicyIncludedPathList; _k = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyIncludedPathList[_k] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyIncludedPathList", version: "12.27.0" }; function cosmosdbSqlContainerIndexingPolicySpatialIndexToTerraform(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 { path: cdktf.stringToTerraform(struct.path), }; } exports.cosmosdbSqlContainerIndexingPolicySpatialIndexToTerraform = cosmosdbSqlContainerIndexingPolicySpatialIndexToTerraform; function cosmosdbSqlContainerIndexingPolicySpatialIndexToHclTerraform(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 = { path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerIndexingPolicySpatialIndexToHclTerraform = cosmosdbSqlContainerIndexingPolicySpatialIndexToHclTerraform; class CosmosdbSqlContainerIndexingPolicySpatialIndexOutputReference 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._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._path = 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._path = value.path; } } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } // types - computed: true, optional: false, required: false get types() { return cdktf.Fn.tolist(this.getListAttribute('types')); } } exports.CosmosdbSqlContainerIndexingPolicySpatialIndexOutputReference = CosmosdbSqlContainerIndexingPolicySpatialIndexOutputReference; _l = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicySpatialIndexOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicySpatialIndexOutputReference", version: "12.27.0" }; class CosmosdbSqlContainerIndexingPolicySpatialIndexList 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 CosmosdbSqlContainerIndexingPolicySpatialIndexOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CosmosdbSqlContainerIndexingPolicySpatialIndexList = CosmosdbSqlContainerIndexingPolicySpatialIndexList; _m = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicySpatialIndexList[_m] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicySpatialIndexList", version: "12.27.0" }; function cosmosdbSqlContainerIndexingPolicyToTerraform(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 { indexing_mode: cdktf.stringToTerraform(struct.indexingMode), composite_index: cdktf.listMapper(cosmosdbSqlContainerIndexingPolicyCompositeIndexToTerraform, true)(struct.compositeIndex), excluded_path: cdktf.listMapper(cosmosdbSqlContainerIndexingPolicyExcludedPathToTerraform, true)(struct.excludedPath), included_path: cdktf.listMapper(cosmosdbSqlContainerIndexingPolicyIncludedPathToTerraform, true)(struct.includedPath), spatial_index: cdktf.listMapper(cosmosdbSqlContainerIndexingPolicySpatialIndexToTerraform, true)(struct.spatialIndex), }; } exports.cosmosdbSqlContainerIndexingPolicyToTerraform = cosmosdbSqlContainerIndexingPolicyToTerraform; function cosmosdbSqlContainerIndexingPolicyToHclTerraform(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 = { indexing_mode: { value: cdktf.stringToHclTerraform(struct.indexingMode), isBlock: false, type: "simple", storageClassType: "string", }, composite_index: { value: cdktf.listMapperHcl(cosmosdbSqlContainerIndexingPolicyCompositeIndexToHclTerraform, true)(struct.compositeIndex), isBlock: true, type: "list", storageClassType: "CosmosdbSqlContainerIndexingPolicyCompositeIndexList", }, excluded_path: { value: cdktf.listMapperHcl(cosmosdbSqlContainerIndexingPolicyExcludedPathToHclTerraform, true)(struct.excludedPath), isBlock: true, type: "list", storageClassType: "CosmosdbSqlContainerIndexingPolicyExcludedPathList", }, included_path: { value: cdktf.listMapperHcl(cosmosdbSqlContainerIndexingPolicyIncludedPathToHclTerraform, true)(struct.includedPath), isBlock: true, type: "list", storageClassType: "CosmosdbSqlContainerIndexingPolicyIncludedPathList", }, spatial_index: { value: cdktf.listMapperHcl(cosmosdbSqlContainerIndexingPolicySpatialIndexToHclTerraform, true)(struct.spatialIndex), isBlock: true, type: "list", storageClassType: "CosmosdbSqlContainerIndexingPolicySpatialIndexList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cosmosdbSqlContainerIndexingPolicyToHclTerraform = cosmosdbSqlContainerIndexingPolicyToHclTerraform; class CosmosdbSqlContainerIndexingPolicyOutputReference 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; // composite_index - computed: false, optional: true, required: false this._compositeIndex = new CosmosdbSqlContainerIndexingPolicyCompositeIndexList(this, "composite_index", false); // excluded_path - computed: false, optional: true, required: false this._excludedPath = new CosmosdbSqlContainerIndexingPolicyExcludedPathList(this, "excluded_path", false); // included_path - computed: false, optional: true, required: false this._includedPath = new CosmosdbSqlContainerIndexingPolicyIncludedPathList(this, "included_path", false); // spatial_index - computed: false, optional: true, required: false this._spatialIndex = new CosmosdbSqlContainerIndexingPolicySpatialIndexList(this, "spatial_index", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._indexingMode !== undefined) { hasAnyValues = true; internalValueResult.indexingMode = this._indexingMode; } if (this._compositeIndex?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.compositeIndex = this._compositeIndex?.internalValue; } if (this._excludedPath?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.excludedPath = this._excludedPath?.internalValue; } if (this._includedPath?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.includedPath = this._includedPath?.internalValue; } if (this._spatialIndex?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.spatialIndex = this._spatialIndex?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._indexingMode = undefined; this._compositeIndex.internalValue = undefined; this._excludedPath.internalValue = undefined; this._includedPath.internalValue = undefined; this._spatialIndex.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._indexingMode = value.indexingMode; this._compositeIndex.internalValue = value.compositeIndex; this._excludedPath.internalValue = value.excludedPath; this._includedPath.internalValue = value.includedPath; this._spatialIndex.internalValue = value.spatialIndex; } } get indexingMode() { return this.getStringAttribute('indexing_mode'); } set indexingMode(value) { this._indexingMode = value; } resetIndexingMode() { this._indexingMode = undefined; } // Temporarily expose input value. Use with caution. get indexingModeInput() { return this._indexingMode; } get compositeIndex() { return this._compositeIndex; } putCompositeIndex(value) { this._compositeIndex.internalValue = value; } resetCompositeIndex() { this._compositeIndex.internalValue = undefined; } // Temporarily expose input value. Use with caution. get compositeIndexInput() { return this._compositeIndex.internalValue; } get excludedPath() { return this._excludedPath; } putExcludedPath(value) { this._excludedPath.internalValue = value; } resetExcludedPath() { this._excludedPath.internalValue = undefined; } // Temporarily expose input value. Use with caution. get excludedPathInput() { return this._excludedPath.internalValue; } get includedPath() { return this._includedPath; } putIncludedPath(value) { this._includedPath.internalValue = value; } resetIncludedPath() { this._includedPath.internalValue = undefined; } // Temporarily expose input value. Use with caution. get includedPathInput() { return this._includedPath.internalValue; } get spatialIndex() { return this._spatialIndex; } putSpatialIndex(value) { this._spatialIndex.internalValue = value; } resetSpatialIndex() { this._spatialIndex.internalValue = undefined; } // Temporarily expose input value. Use with caution. get spatialIndexInput() { return this._spatialIndex.internalValue; } } exports.CosmosdbSqlContainerIndexingPolicyOutputReference = CosmosdbSqlContainerIndexingPolicyOutputReference; _o = JSII_RTTI_SYMBOL_1; CosmosdbSqlContainerIndexingPolicyOutputReference[_o] = { fqn: "@cdktf/provider-azurerm.cosmosdbSqlContainer.CosmosdbSqlContainerIndexingPolicyOutputReference", version: "12.27.0" }; function cosmosdbSqlContainerTimeoutsToTerraform(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), read: cdktf.stringToTerraform(struct.read), update: cdktf.stringToTerraform(struct.update), }; } exports.cosmosdbSqlContainerTimeoutsToTerraform = cosmosdbSqlContainerTimeoutsToTerraform; function cosmosdbSqlContainerTimeoutsToHclTerraform(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", }, read: { value: cdktf.stringToHclTerraform(struct.read), 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.cosmosdbSqlContainerTimeoutsToHclTerraform = cosmosdbSqlContainerTimeoutsToHclTerraform; class CosmosdbSqlContainerTimeoutsOutputReference 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._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } 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._read = 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._read = value.read; 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() { r