UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,266 lines 185 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataFactoryDatasetParquet = exports.DataFactoryDatasetParquetTimeoutsOutputReference = exports.dataFactoryDatasetParquetTimeoutsToHclTerraform = exports.dataFactoryDatasetParquetTimeoutsToTerraform = exports.DataFactoryDatasetParquetSchemaColumnList = exports.DataFactoryDatasetParquetSchemaColumnOutputReference = exports.dataFactoryDatasetParquetSchemaColumnToHclTerraform = exports.dataFactoryDatasetParquetSchemaColumnToTerraform = exports.DataFactoryDatasetParquetHttpServerLocationOutputReference = exports.dataFactoryDatasetParquetHttpServerLocationToHclTerraform = exports.dataFactoryDatasetParquetHttpServerLocationToTerraform = exports.DataFactoryDatasetParquetAzureBlobStorageLocationOutputReference = exports.dataFactoryDatasetParquetAzureBlobStorageLocationToHclTerraform = exports.dataFactoryDatasetParquetAzureBlobStorageLocationToTerraform = exports.DataFactoryDatasetParquetAzureBlobFsLocationOutputReference = exports.dataFactoryDatasetParquetAzureBlobFsLocationToHclTerraform = exports.dataFactoryDatasetParquetAzureBlobFsLocationToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataFactoryDatasetParquetAzureBlobFsLocationToTerraform(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 { dynamic_file_system_enabled: cdktf.booleanToTerraform(struct.dynamicFileSystemEnabled), dynamic_filename_enabled: cdktf.booleanToTerraform(struct.dynamicFilenameEnabled), dynamic_path_enabled: cdktf.booleanToTerraform(struct.dynamicPathEnabled), file_system: cdktf.stringToTerraform(struct.fileSystem), filename: cdktf.stringToTerraform(struct.filename), path: cdktf.stringToTerraform(struct.path), }; } exports.dataFactoryDatasetParquetAzureBlobFsLocationToTerraform = dataFactoryDatasetParquetAzureBlobFsLocationToTerraform; function dataFactoryDatasetParquetAzureBlobFsLocationToHclTerraform(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 = { dynamic_file_system_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicFileSystemEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, dynamic_filename_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicFilenameEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, dynamic_path_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicPathEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, file_system: { value: cdktf.stringToHclTerraform(struct.fileSystem), isBlock: false, type: "simple", storageClassType: "string", }, filename: { value: cdktf.stringToHclTerraform(struct.filename), 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.dataFactoryDatasetParquetAzureBlobFsLocationToHclTerraform = dataFactoryDatasetParquetAzureBlobFsLocationToHclTerraform; class DataFactoryDatasetParquetAzureBlobFsLocationOutputReference 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._dynamicFileSystemEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicFileSystemEnabled = this._dynamicFileSystemEnabled; } if (this._dynamicFilenameEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicFilenameEnabled = this._dynamicFilenameEnabled; } if (this._dynamicPathEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicPathEnabled = this._dynamicPathEnabled; } if (this._fileSystem !== undefined) { hasAnyValues = true; internalValueResult.fileSystem = this._fileSystem; } if (this._filename !== undefined) { hasAnyValues = true; internalValueResult.filename = this._filename; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dynamicFileSystemEnabled = undefined; this._dynamicFilenameEnabled = undefined; this._dynamicPathEnabled = undefined; this._fileSystem = undefined; this._filename = undefined; this._path = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dynamicFileSystemEnabled = value.dynamicFileSystemEnabled; this._dynamicFilenameEnabled = value.dynamicFilenameEnabled; this._dynamicPathEnabled = value.dynamicPathEnabled; this._fileSystem = value.fileSystem; this._filename = value.filename; this._path = value.path; } } get dynamicFileSystemEnabled() { return this.getBooleanAttribute('dynamic_file_system_enabled'); } set dynamicFileSystemEnabled(value) { this._dynamicFileSystemEnabled = value; } resetDynamicFileSystemEnabled() { this._dynamicFileSystemEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicFileSystemEnabledInput() { return this._dynamicFileSystemEnabled; } get dynamicFilenameEnabled() { return this.getBooleanAttribute('dynamic_filename_enabled'); } set dynamicFilenameEnabled(value) { this._dynamicFilenameEnabled = value; } resetDynamicFilenameEnabled() { this._dynamicFilenameEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicFilenameEnabledInput() { return this._dynamicFilenameEnabled; } get dynamicPathEnabled() { return this.getBooleanAttribute('dynamic_path_enabled'); } set dynamicPathEnabled(value) { this._dynamicPathEnabled = value; } resetDynamicPathEnabled() { this._dynamicPathEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicPathEnabledInput() { return this._dynamicPathEnabled; } get fileSystem() { return this.getStringAttribute('file_system'); } set fileSystem(value) { this._fileSystem = value; } resetFileSystem() { this._fileSystem = undefined; } // Temporarily expose input value. Use with caution. get fileSystemInput() { return this._fileSystem; } get filename() { return this.getStringAttribute('filename'); } set filename(value) { this._filename = value; } resetFilename() { this._filename = undefined; } // Temporarily expose input value. Use with caution. get filenameInput() { return this._filename; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.DataFactoryDatasetParquetAzureBlobFsLocationOutputReference = DataFactoryDatasetParquetAzureBlobFsLocationOutputReference; _a = JSII_RTTI_SYMBOL_1; DataFactoryDatasetParquetAzureBlobFsLocationOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.dataFactoryDatasetParquet.DataFactoryDatasetParquetAzureBlobFsLocationOutputReference", version: "12.27.0" }; function dataFactoryDatasetParquetAzureBlobStorageLocationToTerraform(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 { container: cdktf.stringToTerraform(struct.container), dynamic_container_enabled: cdktf.booleanToTerraform(struct.dynamicContainerEnabled), dynamic_filename_enabled: cdktf.booleanToTerraform(struct.dynamicFilenameEnabled), dynamic_path_enabled: cdktf.booleanToTerraform(struct.dynamicPathEnabled), filename: cdktf.stringToTerraform(struct.filename), path: cdktf.stringToTerraform(struct.path), }; } exports.dataFactoryDatasetParquetAzureBlobStorageLocationToTerraform = dataFactoryDatasetParquetAzureBlobStorageLocationToTerraform; function dataFactoryDatasetParquetAzureBlobStorageLocationToHclTerraform(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 = { container: { value: cdktf.stringToHclTerraform(struct.container), isBlock: false, type: "simple", storageClassType: "string", }, dynamic_container_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicContainerEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, dynamic_filename_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicFilenameEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, dynamic_path_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicPathEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, filename: { value: cdktf.stringToHclTerraform(struct.filename), 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.dataFactoryDatasetParquetAzureBlobStorageLocationToHclTerraform = dataFactoryDatasetParquetAzureBlobStorageLocationToHclTerraform; class DataFactoryDatasetParquetAzureBlobStorageLocationOutputReference 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._container !== undefined) { hasAnyValues = true; internalValueResult.container = this._container; } if (this._dynamicContainerEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicContainerEnabled = this._dynamicContainerEnabled; } if (this._dynamicFilenameEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicFilenameEnabled = this._dynamicFilenameEnabled; } if (this._dynamicPathEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicPathEnabled = this._dynamicPathEnabled; } if (this._filename !== undefined) { hasAnyValues = true; internalValueResult.filename = this._filename; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._container = undefined; this._dynamicContainerEnabled = undefined; this._dynamicFilenameEnabled = undefined; this._dynamicPathEnabled = undefined; this._filename = undefined; this._path = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._container = value.container; this._dynamicContainerEnabled = value.dynamicContainerEnabled; this._dynamicFilenameEnabled = value.dynamicFilenameEnabled; this._dynamicPathEnabled = value.dynamicPathEnabled; this._filename = value.filename; this._path = value.path; } } get container() { return this.getStringAttribute('container'); } set container(value) { this._container = value; } // Temporarily expose input value. Use with caution. get containerInput() { return this._container; } get dynamicContainerEnabled() { return this.getBooleanAttribute('dynamic_container_enabled'); } set dynamicContainerEnabled(value) { this._dynamicContainerEnabled = value; } resetDynamicContainerEnabled() { this._dynamicContainerEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicContainerEnabledInput() { return this._dynamicContainerEnabled; } get dynamicFilenameEnabled() { return this.getBooleanAttribute('dynamic_filename_enabled'); } set dynamicFilenameEnabled(value) { this._dynamicFilenameEnabled = value; } resetDynamicFilenameEnabled() { this._dynamicFilenameEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicFilenameEnabledInput() { return this._dynamicFilenameEnabled; } get dynamicPathEnabled() { return this.getBooleanAttribute('dynamic_path_enabled'); } set dynamicPathEnabled(value) { this._dynamicPathEnabled = value; } resetDynamicPathEnabled() { this._dynamicPathEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicPathEnabledInput() { return this._dynamicPathEnabled; } get filename() { return this.getStringAttribute('filename'); } set filename(value) { this._filename = value; } resetFilename() { this._filename = undefined; } // Temporarily expose input value. Use with caution. get filenameInput() { return this._filename; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.DataFactoryDatasetParquetAzureBlobStorageLocationOutputReference = DataFactoryDatasetParquetAzureBlobStorageLocationOutputReference; _b = JSII_RTTI_SYMBOL_1; DataFactoryDatasetParquetAzureBlobStorageLocationOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.dataFactoryDatasetParquet.DataFactoryDatasetParquetAzureBlobStorageLocationOutputReference", version: "12.27.0" }; function dataFactoryDatasetParquetHttpServerLocationToTerraform(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 { dynamic_filename_enabled: cdktf.booleanToTerraform(struct.dynamicFilenameEnabled), dynamic_path_enabled: cdktf.booleanToTerraform(struct.dynamicPathEnabled), filename: cdktf.stringToTerraform(struct.filename), path: cdktf.stringToTerraform(struct.path), relative_url: cdktf.stringToTerraform(struct.relativeUrl), }; } exports.dataFactoryDatasetParquetHttpServerLocationToTerraform = dataFactoryDatasetParquetHttpServerLocationToTerraform; function dataFactoryDatasetParquetHttpServerLocationToHclTerraform(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 = { dynamic_filename_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicFilenameEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, dynamic_path_enabled: { value: cdktf.booleanToHclTerraform(struct.dynamicPathEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, filename: { value: cdktf.stringToHclTerraform(struct.filename), isBlock: false, type: "simple", storageClassType: "string", }, path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, relative_url: { value: cdktf.stringToHclTerraform(struct.relativeUrl), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataFactoryDatasetParquetHttpServerLocationToHclTerraform = dataFactoryDatasetParquetHttpServerLocationToHclTerraform; class DataFactoryDatasetParquetHttpServerLocationOutputReference 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._dynamicFilenameEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicFilenameEnabled = this._dynamicFilenameEnabled; } if (this._dynamicPathEnabled !== undefined) { hasAnyValues = true; internalValueResult.dynamicPathEnabled = this._dynamicPathEnabled; } if (this._filename !== undefined) { hasAnyValues = true; internalValueResult.filename = this._filename; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } if (this._relativeUrl !== undefined) { hasAnyValues = true; internalValueResult.relativeUrl = this._relativeUrl; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dynamicFilenameEnabled = undefined; this._dynamicPathEnabled = undefined; this._filename = undefined; this._path = undefined; this._relativeUrl = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dynamicFilenameEnabled = value.dynamicFilenameEnabled; this._dynamicPathEnabled = value.dynamicPathEnabled; this._filename = value.filename; this._path = value.path; this._relativeUrl = value.relativeUrl; } } get dynamicFilenameEnabled() { return this.getBooleanAttribute('dynamic_filename_enabled'); } set dynamicFilenameEnabled(value) { this._dynamicFilenameEnabled = value; } resetDynamicFilenameEnabled() { this._dynamicFilenameEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicFilenameEnabledInput() { return this._dynamicFilenameEnabled; } get dynamicPathEnabled() { return this.getBooleanAttribute('dynamic_path_enabled'); } set dynamicPathEnabled(value) { this._dynamicPathEnabled = value; } resetDynamicPathEnabled() { this._dynamicPathEnabled = undefined; } // Temporarily expose input value. Use with caution. get dynamicPathEnabledInput() { return this._dynamicPathEnabled; } get filename() { return this.getStringAttribute('filename'); } set filename(value) { this._filename = value; } // Temporarily expose input value. Use with caution. get filenameInput() { return this._filename; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } get relativeUrl() { return this.getStringAttribute('relative_url'); } set relativeUrl(value) { this._relativeUrl = value; } // Temporarily expose input value. Use with caution. get relativeUrlInput() { return this._relativeUrl; } } exports.DataFactoryDatasetParquetHttpServerLocationOutputReference = DataFactoryDatasetParquetHttpServerLocationOutputReference; _c = JSII_RTTI_SYMBOL_1; DataFactoryDatasetParquetHttpServerLocationOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.dataFactoryDatasetParquet.DataFactoryDatasetParquetHttpServerLocationOutputReference", version: "12.27.0" }; function dataFactoryDatasetParquetSchemaColumnToTerraform(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 { description: cdktf.stringToTerraform(struct.description), name: cdktf.stringToTerraform(struct.name), type: cdktf.stringToTerraform(struct.type), }; } exports.dataFactoryDatasetParquetSchemaColumnToTerraform = dataFactoryDatasetParquetSchemaColumnToTerraform; function dataFactoryDatasetParquetSchemaColumnToHclTerraform(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 = { description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataFactoryDatasetParquetSchemaColumnToHclTerraform = dataFactoryDatasetParquetSchemaColumnToHclTerraform; class DataFactoryDatasetParquetSchemaColumnOutputReference 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._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._description = undefined; this._name = undefined; this._type = 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._description = value.description; this._name = value.name; this._type = value.type; } } 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 name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.DataFactoryDatasetParquetSchemaColumnOutputReference = DataFactoryDatasetParquetSchemaColumnOutputReference; _d = JSII_RTTI_SYMBOL_1; DataFactoryDatasetParquetSchemaColumnOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.dataFactoryDatasetParquet.DataFactoryDatasetParquetSchemaColumnOutputReference", version: "12.27.0" }; class DataFactoryDatasetParquetSchemaColumnList 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 DataFactoryDatasetParquetSchemaColumnOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataFactoryDatasetParquetSchemaColumnList = DataFactoryDatasetParquetSchemaColumnList; _e = JSII_RTTI_SYMBOL_1; DataFactoryDatasetParquetSchemaColumnList[_e] = { fqn: "@cdktf/provider-azurerm.dataFactoryDatasetParquet.DataFactoryDatasetParquetSchemaColumnList", version: "12.27.0" }; function dataFactoryDatasetParquetTimeoutsToTerraform(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.dataFactoryDatasetParquetTimeoutsToTerraform = dataFactoryDatasetParquetTimeoutsToTerraform; function dataFactoryDatasetParquetTimeoutsToHclTerraform(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.dataFactoryDatasetParquetTimeoutsToHclTerraform = dataFactoryDatasetParquetTimeoutsToHclTerraform; class DataFactoryDatasetParquetTimeoutsOutputReference 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() { 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 read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } 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.DataFactoryDatasetParquetTimeoutsOutputReference = DataFactoryDatasetParquetTimeoutsOutputReference; _f = JSII_RTTI_SYMBOL_1; DataFactoryDatasetParquetTimeoutsOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.dataFactoryDatasetParquet.DataFactoryDatasetParquetTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/data_factory_dataset_parquet azurerm_data_factory_dataset_parquet} */ class DataFactoryDatasetParquet extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataFactoryDatasetParquet 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 DataFactoryDatasetParquet to import * @param importFromId The id of the existing DataFactoryDatasetParquet that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/data_factory_dataset_parquet#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataFactoryDatasetParquet to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_data_factory_dataset_parquet", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/data_factory_dataset_parquet azurerm_data_factory_dataset_parquet} 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 DataFactoryDatasetParquetConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_data_factory_dataset_parquet', terraformGeneratorMetadata: { providerName: 'azurerm', providerVersion: '3.116.0', providerVersionConstraint: '~> 3.10' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // azure_blob_fs_location - computed: false, optional: true, required: false this._azureBlobFsLocation = new DataFactoryDatasetParquetAzureBlobFsLocationOutputReference(this, "azure_blob_fs_location"); // azure_blob_storage_location - computed: false, optional: true, required: false this._azureBlobStorageLocation = new DataFactoryDatasetParquetAzureBlobStorageLocationOutputReference(this, "azure_blob_storage_location"); // http_server_location - computed: false, optional: true, required: false this._httpServerLocation = new DataFactoryDatasetParquetHttpServerLocationOutputReference(this, "http_server_location"); // schema_column - computed: false, optional: true, required: false this._schemaColumn = new DataFactoryDatasetParquetSchemaColumnList(this, "schema_column", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new DataFactoryDatasetParquetTimeoutsOutputReference(this, "timeouts"); this._additionalProperties = config.additionalProperties; this._annotations = config.annotations; this._compressionCodec = config.compressionCodec; this._compressionLevel = config.compressionLevel; this._dataFactoryId = config.dataFactoryId; this._description = config.description; this._folder = config.folder; this._id = config.id; this._linkedServiceName = config.linkedServiceName; this._name = config.name; this._parameters = config.parameters; this._azureBlobFsLocation.internalValue = config.azureBlobFsLocation; this._azureBlobStorageLocation.internalValue = config.azureBlobStorageLocation; this._httpServerLocation.internalValue = config.httpServerLocation; this._schemaColumn.internalValue = config.schemaColumn; this._timeouts.internalValue = config.timeouts; } get additionalProperties() { return this.getStringMapAttribute('additional_properties'); } set additionalProperties(value) { this._additionalProperties = value; } resetAdditionalProperties() { this._additionalProperties = undefined; } // Temporarily expose input value. Use with caution. get additionalPropertiesInput() { return this._additionalProperties; } get annotations() { return this.getListAttribute('annotations'); } set annotations(value) { this._annotations = value; } resetAnnotations() { this._annotations = undefined; } // Temporarily expose input value. Use with caution. get annotationsInput() { return this._annotations; } get compressionCodec() { return this.getStringAttribute('compression_codec'); } set compressionCodec(value) { this._compressionCodec = value; } resetCompressionCodec() { this._compressionCodec = undefined; } // Temporarily expose input value. Use with caution. get compressionCodecInput() { return this._compressionCodec; } get compressionLevel() { return this.getStringAttribute('compression_level'); } set compressionLevel(value) { this._compressionLevel = value; } resetCompressionLevel() { this._compressionLevel = undefined; } // Temporarily expose input value. Use with caution. get compressionLevelInput() { return this._compressionLevel; } get dataFactoryId() { return this.getStringAttribute('data_factory_id'); } set dataFactoryId(value) { this._dataFactoryId = value; } // Temporarily expose input value. Use with caution. get dataFactoryIdInput() { return this._dataFactoryId; } 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 folder() { return this.getStringAttribute('folder'); } set folder(value) { this._folder = value; } resetFolder() { this._folder = undefined; } // Temporarily expose input value. Use with caution. get folderInput() { return this._folder; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get linkedServiceName() { return this.getStringAttribute('linked_service_name'); } set linkedServiceName(value) { this._linkedServiceName = value; } // Temporarily expose input value. Use with caution. get linkedServiceNameInput() { return this._linkedServiceName; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get parameters() { return this.getStringMapAttribute('parameters'); } set parameters(value) { this._parameters = value; } resetParameters() { this._parameters = undefined; } // Temporarily expose input value. Use with caution. get parametersInput() { return this._parameters; } get azureBlobFsLocation() { return this._azureBlobFsLocation; } putAzureBlobFsLocation(value) { this._azureBlobFsLocation.internalValue = value; } resetAzureBlobFsLocation() { this._azureBlobFsLocation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get azureBlobFsLocationInput() { return this._azureBlobFsLocation.internalValue; } get azureBlobStorageLocation() { return this._azureBlobStorageLocation; } putAzureBlobStorageLocation(value) { this._azureBlobStorageLocation.internalValue = value; } resetAzureBlobStorageLocation() { this._azureBlobStorageLocation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get azureBlobStorageLocationInput() { return this._azureBlobStorageLocation.internalValue; } get httpServerLocation() { return this._httpServerLocation; } putHttpServerLocation(value) { this._httpServerLocation.internalValue = value; } resetHttpServerLocation() { this._httpServerLocation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get httpServerLocationInput() { return this._httpServerLocation.internalValue; } get schemaColumn() { return this._schemaColumn; } putSchemaColumn(value) { this._schemaColumn.internalValue = value; } resetSchemaColumn() { this._schemaColumn.internalValue = undefined; } // Temporarily expose input value. Use with caution. get schemaColumnInput() { return this._schemaColumn.internalValue; } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { additional_properties: cdktf.hashMapper(cdktf.stringToTerraform)(this._additionalProperties), annotations: cdktf.listMapper(cdktf.stringToTerraform, false)(this._annotations), compression_codec: cdktf.stringToTerraform(this._compressionCodec), compression_level: cdktf.stringToTerraform(this._compressionLevel), data_factory_id: cdktf.stringToTerraform(this._dataFactoryId), description: cdktf.stringToTerraform(this._description), folder: cdktf.stringToTerraform(this._folder), id: cdktf.stringToTerraform(this._id), linked_service_name: cdktf.stringToTerraform(this._linkedServiceName), name: cdktf.stringToTerraform(this._name), parameters: cdktf.hashMapper(cdktf.stringToTerraform)(this._parameters), azure_blob_fs_location: dataFactoryDatasetParquetAzureBlobFsLocationToTerraform(this._azureBlobFsLocation.internalValue), azure_blob_storage_location: dataFactoryDatasetParquetAzureBlobStorageLocationToTerraform(this._azureBlobStorageLocation.internalValue), http_server_location: dataFactoryDatasetParquetHttpServerLocationToTerraform(this._httpServerLocation.internalValue), schema_column: cdktf.listMapper(dataFactoryDatasetParquetSchemaColumnToTerraform, true)(this._schemaColumn.internalValue), timeouts: dataFactoryDatasetParquetTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { additional_properties: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._additionalProperties), isBlock: false, type: "map", storageClassType: "stringMap", }, annotations: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._annotations), isBlock: false, type: "list", storageClassType: "stringList", }, compression_codec: { value: cdktf.stringToHclTerraform(this._compressionCodec), isBlock: false, type: "simple", storageClassType: "string", }, compression_level: { value: cdktf.stringToHclTerraform(this._compressionLevel), isBlock: false, type: "simple", storageClassType: "string", }, data_factory_id: { value: cdktf.stringToHclTerraform(this._dataFactoryId), isBlock: false, type: "simple", storageClassType: "string", }, description: { value: cdktf.stringToHclTerraform(this._description), isBlock: false, type: "simple", storageClassType: "string", }, folder: { value: cdktf.stringToHclTerraform(this._folder), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, linked_service_name: { value: cdktf.stringToHclTerraform(this._linkedServiceName), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, parameters: { value: cdktf.hashMapperHcl(cdkt