UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,147 lines 249 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.NginxDeployment = exports.NginxDeploymentTimeoutsOutputReference = exports.nginxDeploymentTimeoutsToHclTerraform = exports.nginxDeploymentTimeoutsToTerraform = exports.NginxDeploymentNetworkInterfaceList = exports.NginxDeploymentNetworkInterfaceOutputReference = exports.nginxDeploymentNetworkInterfaceToHclTerraform = exports.nginxDeploymentNetworkInterfaceToTerraform = exports.NginxDeploymentLoggingStorageAccountList = exports.NginxDeploymentLoggingStorageAccountOutputReference = exports.nginxDeploymentLoggingStorageAccountToHclTerraform = exports.nginxDeploymentLoggingStorageAccountToTerraform = exports.NginxDeploymentIdentityOutputReference = exports.nginxDeploymentIdentityToHclTerraform = exports.nginxDeploymentIdentityToTerraform = exports.NginxDeploymentFrontendPublicOutputReference = exports.nginxDeploymentFrontendPublicToHclTerraform = exports.nginxDeploymentFrontendPublicToTerraform = exports.NginxDeploymentFrontendPrivateList = exports.NginxDeploymentFrontendPrivateOutputReference = exports.nginxDeploymentFrontendPrivateToHclTerraform = exports.nginxDeploymentFrontendPrivateToTerraform = exports.NginxDeploymentConfigurationOutputReference = exports.nginxDeploymentConfigurationToHclTerraform = exports.nginxDeploymentConfigurationToTerraform = exports.NginxDeploymentConfigurationProtectedFileList = exports.NginxDeploymentConfigurationProtectedFileOutputReference = exports.nginxDeploymentConfigurationProtectedFileToHclTerraform = exports.nginxDeploymentConfigurationProtectedFileToTerraform = exports.NginxDeploymentConfigurationConfigFileList = exports.NginxDeploymentConfigurationConfigFileOutputReference = exports.nginxDeploymentConfigurationConfigFileToHclTerraform = exports.nginxDeploymentConfigurationConfigFileToTerraform = exports.NginxDeploymentAutoScaleProfileList = exports.NginxDeploymentAutoScaleProfileOutputReference = exports.nginxDeploymentAutoScaleProfileToHclTerraform = exports.nginxDeploymentAutoScaleProfileToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function nginxDeploymentAutoScaleProfileToTerraform(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_capacity: cdktf.numberToTerraform(struct.maxCapacity), min_capacity: cdktf.numberToTerraform(struct.minCapacity), name: cdktf.stringToTerraform(struct.name), }; } exports.nginxDeploymentAutoScaleProfileToTerraform = nginxDeploymentAutoScaleProfileToTerraform; function nginxDeploymentAutoScaleProfileToHclTerraform(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_capacity: { value: cdktf.numberToHclTerraform(struct.maxCapacity), isBlock: false, type: "simple", storageClassType: "number", }, min_capacity: { value: cdktf.numberToHclTerraform(struct.minCapacity), isBlock: false, type: "simple", storageClassType: "number", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentAutoScaleProfileToHclTerraform = nginxDeploymentAutoScaleProfileToHclTerraform; class NginxDeploymentAutoScaleProfileOutputReference 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._maxCapacity !== undefined) { hasAnyValues = true; internalValueResult.maxCapacity = this._maxCapacity; } if (this._minCapacity !== undefined) { hasAnyValues = true; internalValueResult.minCapacity = this._minCapacity; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._maxCapacity = undefined; this._minCapacity = undefined; this._name = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._maxCapacity = value.maxCapacity; this._minCapacity = value.minCapacity; this._name = value.name; } } get maxCapacity() { return this.getNumberAttribute('max_capacity'); } set maxCapacity(value) { this._maxCapacity = value; } // Temporarily expose input value. Use with caution. get maxCapacityInput() { return this._maxCapacity; } get minCapacity() { return this.getNumberAttribute('min_capacity'); } set minCapacity(value) { this._minCapacity = value; } // Temporarily expose input value. Use with caution. get minCapacityInput() { return this._minCapacity; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.NginxDeploymentAutoScaleProfileOutputReference = NginxDeploymentAutoScaleProfileOutputReference; _a = JSII_RTTI_SYMBOL_1; NginxDeploymentAutoScaleProfileOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentAutoScaleProfileOutputReference", version: "12.27.0" }; class NginxDeploymentAutoScaleProfileList 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 NginxDeploymentAutoScaleProfileOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NginxDeploymentAutoScaleProfileList = NginxDeploymentAutoScaleProfileList; _b = JSII_RTTI_SYMBOL_1; NginxDeploymentAutoScaleProfileList[_b] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentAutoScaleProfileList", version: "12.27.0" }; function nginxDeploymentConfigurationConfigFileToTerraform(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 { content: cdktf.stringToTerraform(struct.content), virtual_path: cdktf.stringToTerraform(struct.virtualPath), }; } exports.nginxDeploymentConfigurationConfigFileToTerraform = nginxDeploymentConfigurationConfigFileToTerraform; function nginxDeploymentConfigurationConfigFileToHclTerraform(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 = { content: { value: cdktf.stringToHclTerraform(struct.content), isBlock: false, type: "simple", storageClassType: "string", }, virtual_path: { value: cdktf.stringToHclTerraform(struct.virtualPath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentConfigurationConfigFileToHclTerraform = nginxDeploymentConfigurationConfigFileToHclTerraform; class NginxDeploymentConfigurationConfigFileOutputReference 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._content !== undefined) { hasAnyValues = true; internalValueResult.content = this._content; } if (this._virtualPath !== undefined) { hasAnyValues = true; internalValueResult.virtualPath = this._virtualPath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._content = undefined; this._virtualPath = 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._content = value.content; this._virtualPath = value.virtualPath; } } get content() { return this.getStringAttribute('content'); } set content(value) { this._content = value; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content; } get virtualPath() { return this.getStringAttribute('virtual_path'); } set virtualPath(value) { this._virtualPath = value; } // Temporarily expose input value. Use with caution. get virtualPathInput() { return this._virtualPath; } } exports.NginxDeploymentConfigurationConfigFileOutputReference = NginxDeploymentConfigurationConfigFileOutputReference; _c = JSII_RTTI_SYMBOL_1; NginxDeploymentConfigurationConfigFileOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentConfigurationConfigFileOutputReference", version: "12.27.0" }; class NginxDeploymentConfigurationConfigFileList 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 NginxDeploymentConfigurationConfigFileOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NginxDeploymentConfigurationConfigFileList = NginxDeploymentConfigurationConfigFileList; _d = JSII_RTTI_SYMBOL_1; NginxDeploymentConfigurationConfigFileList[_d] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentConfigurationConfigFileList", version: "12.27.0" }; function nginxDeploymentConfigurationProtectedFileToTerraform(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 { content: cdktf.stringToTerraform(struct.content), virtual_path: cdktf.stringToTerraform(struct.virtualPath), }; } exports.nginxDeploymentConfigurationProtectedFileToTerraform = nginxDeploymentConfigurationProtectedFileToTerraform; function nginxDeploymentConfigurationProtectedFileToHclTerraform(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 = { content: { value: cdktf.stringToHclTerraform(struct.content), isBlock: false, type: "simple", storageClassType: "string", }, virtual_path: { value: cdktf.stringToHclTerraform(struct.virtualPath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentConfigurationProtectedFileToHclTerraform = nginxDeploymentConfigurationProtectedFileToHclTerraform; class NginxDeploymentConfigurationProtectedFileOutputReference 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._content !== undefined) { hasAnyValues = true; internalValueResult.content = this._content; } if (this._virtualPath !== undefined) { hasAnyValues = true; internalValueResult.virtualPath = this._virtualPath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._content = undefined; this._virtualPath = 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._content = value.content; this._virtualPath = value.virtualPath; } } get content() { return this.getStringAttribute('content'); } set content(value) { this._content = value; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content; } get virtualPath() { return this.getStringAttribute('virtual_path'); } set virtualPath(value) { this._virtualPath = value; } // Temporarily expose input value. Use with caution. get virtualPathInput() { return this._virtualPath; } } exports.NginxDeploymentConfigurationProtectedFileOutputReference = NginxDeploymentConfigurationProtectedFileOutputReference; _e = JSII_RTTI_SYMBOL_1; NginxDeploymentConfigurationProtectedFileOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentConfigurationProtectedFileOutputReference", version: "12.27.0" }; class NginxDeploymentConfigurationProtectedFileList 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 NginxDeploymentConfigurationProtectedFileOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NginxDeploymentConfigurationProtectedFileList = NginxDeploymentConfigurationProtectedFileList; _f = JSII_RTTI_SYMBOL_1; NginxDeploymentConfigurationProtectedFileList[_f] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentConfigurationProtectedFileList", version: "12.27.0" }; function nginxDeploymentConfigurationToTerraform(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 { package_data: cdktf.stringToTerraform(struct.packageData), root_file: cdktf.stringToTerraform(struct.rootFile), config_file: cdktf.listMapper(nginxDeploymentConfigurationConfigFileToTerraform, true)(struct.configFile), protected_file: cdktf.listMapper(nginxDeploymentConfigurationProtectedFileToTerraform, true)(struct.protectedFile), }; } exports.nginxDeploymentConfigurationToTerraform = nginxDeploymentConfigurationToTerraform; function nginxDeploymentConfigurationToHclTerraform(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 = { package_data: { value: cdktf.stringToHclTerraform(struct.packageData), isBlock: false, type: "simple", storageClassType: "string", }, root_file: { value: cdktf.stringToHclTerraform(struct.rootFile), isBlock: false, type: "simple", storageClassType: "string", }, config_file: { value: cdktf.listMapperHcl(nginxDeploymentConfigurationConfigFileToHclTerraform, true)(struct.configFile), isBlock: true, type: "set", storageClassType: "NginxDeploymentConfigurationConfigFileList", }, protected_file: { value: cdktf.listMapperHcl(nginxDeploymentConfigurationProtectedFileToHclTerraform, true)(struct.protectedFile), isBlock: true, type: "set", storageClassType: "NginxDeploymentConfigurationProtectedFileList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentConfigurationToHclTerraform = nginxDeploymentConfigurationToHclTerraform; class NginxDeploymentConfigurationOutputReference 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; // config_file - computed: false, optional: true, required: false this._configFile = new NginxDeploymentConfigurationConfigFileList(this, "config_file", true); // protected_file - computed: false, optional: true, required: false this._protectedFile = new NginxDeploymentConfigurationProtectedFileList(this, "protected_file", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._packageData !== undefined) { hasAnyValues = true; internalValueResult.packageData = this._packageData; } if (this._rootFile !== undefined) { hasAnyValues = true; internalValueResult.rootFile = this._rootFile; } if (this._configFile?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.configFile = this._configFile?.internalValue; } if (this._protectedFile?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.protectedFile = this._protectedFile?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._packageData = undefined; this._rootFile = undefined; this._configFile.internalValue = undefined; this._protectedFile.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._packageData = value.packageData; this._rootFile = value.rootFile; this._configFile.internalValue = value.configFile; this._protectedFile.internalValue = value.protectedFile; } } get packageData() { return this.getStringAttribute('package_data'); } set packageData(value) { this._packageData = value; } resetPackageData() { this._packageData = undefined; } // Temporarily expose input value. Use with caution. get packageDataInput() { return this._packageData; } get rootFile() { return this.getStringAttribute('root_file'); } set rootFile(value) { this._rootFile = value; } // Temporarily expose input value. Use with caution. get rootFileInput() { return this._rootFile; } get configFile() { return this._configFile; } putConfigFile(value) { this._configFile.internalValue = value; } resetConfigFile() { this._configFile.internalValue = undefined; } // Temporarily expose input value. Use with caution. get configFileInput() { return this._configFile.internalValue; } get protectedFile() { return this._protectedFile; } putProtectedFile(value) { this._protectedFile.internalValue = value; } resetProtectedFile() { this._protectedFile.internalValue = undefined; } // Temporarily expose input value. Use with caution. get protectedFileInput() { return this._protectedFile.internalValue; } } exports.NginxDeploymentConfigurationOutputReference = NginxDeploymentConfigurationOutputReference; _g = JSII_RTTI_SYMBOL_1; NginxDeploymentConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentConfigurationOutputReference", version: "12.27.0" }; function nginxDeploymentFrontendPrivateToTerraform(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 { allocation_method: cdktf.stringToTerraform(struct.allocationMethod), ip_address: cdktf.stringToTerraform(struct.ipAddress), subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.nginxDeploymentFrontendPrivateToTerraform = nginxDeploymentFrontendPrivateToTerraform; function nginxDeploymentFrontendPrivateToHclTerraform(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 = { allocation_method: { value: cdktf.stringToHclTerraform(struct.allocationMethod), isBlock: false, type: "simple", storageClassType: "string", }, ip_address: { value: cdktf.stringToHclTerraform(struct.ipAddress), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentFrontendPrivateToHclTerraform = nginxDeploymentFrontendPrivateToHclTerraform; class NginxDeploymentFrontendPrivateOutputReference 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._allocationMethod !== undefined) { hasAnyValues = true; internalValueResult.allocationMethod = this._allocationMethod; } if (this._ipAddress !== undefined) { hasAnyValues = true; internalValueResult.ipAddress = this._ipAddress; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._allocationMethod = undefined; this._ipAddress = undefined; this._subnetId = 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._allocationMethod = value.allocationMethod; this._ipAddress = value.ipAddress; this._subnetId = value.subnetId; } } get allocationMethod() { return this.getStringAttribute('allocation_method'); } set allocationMethod(value) { this._allocationMethod = value; } // Temporarily expose input value. Use with caution. get allocationMethodInput() { return this._allocationMethod; } get ipAddress() { return this.getStringAttribute('ip_address'); } set ipAddress(value) { this._ipAddress = value; } // Temporarily expose input value. Use with caution. get ipAddressInput() { return this._ipAddress; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.NginxDeploymentFrontendPrivateOutputReference = NginxDeploymentFrontendPrivateOutputReference; _h = JSII_RTTI_SYMBOL_1; NginxDeploymentFrontendPrivateOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentFrontendPrivateOutputReference", version: "12.27.0" }; class NginxDeploymentFrontendPrivateList 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 NginxDeploymentFrontendPrivateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NginxDeploymentFrontendPrivateList = NginxDeploymentFrontendPrivateList; _j = JSII_RTTI_SYMBOL_1; NginxDeploymentFrontendPrivateList[_j] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentFrontendPrivateList", version: "12.27.0" }; function nginxDeploymentFrontendPublicToTerraform(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 { ip_address: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ipAddress), }; } exports.nginxDeploymentFrontendPublicToTerraform = nginxDeploymentFrontendPublicToTerraform; function nginxDeploymentFrontendPublicToHclTerraform(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 = { ip_address: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ipAddress), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentFrontendPublicToHclTerraform = nginxDeploymentFrontendPublicToHclTerraform; class NginxDeploymentFrontendPublicOutputReference 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._ipAddress !== undefined) { hasAnyValues = true; internalValueResult.ipAddress = this._ipAddress; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._ipAddress = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._ipAddress = value.ipAddress; } } get ipAddress() { return this.getListAttribute('ip_address'); } set ipAddress(value) { this._ipAddress = value; } resetIpAddress() { this._ipAddress = undefined; } // Temporarily expose input value. Use with caution. get ipAddressInput() { return this._ipAddress; } } exports.NginxDeploymentFrontendPublicOutputReference = NginxDeploymentFrontendPublicOutputReference; _k = JSII_RTTI_SYMBOL_1; NginxDeploymentFrontendPublicOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentFrontendPublicOutputReference", version: "12.27.0" }; function nginxDeploymentIdentityToTerraform(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 { identity_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.identityIds), type: cdktf.stringToTerraform(struct.type), }; } exports.nginxDeploymentIdentityToTerraform = nginxDeploymentIdentityToTerraform; function nginxDeploymentIdentityToHclTerraform(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 = { identity_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.identityIds), isBlock: false, type: "set", storageClassType: "stringList", }, 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.nginxDeploymentIdentityToHclTerraform = nginxDeploymentIdentityToHclTerraform; class NginxDeploymentIdentityOutputReference 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._identityIds !== undefined) { hasAnyValues = true; internalValueResult.identityIds = this._identityIds; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._identityIds = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._identityIds = value.identityIds; this._type = value.type; } } get identityIds() { return cdktf.Fn.tolist(this.getListAttribute('identity_ids')); } set identityIds(value) { this._identityIds = value; } resetIdentityIds() { this._identityIds = undefined; } // Temporarily expose input value. Use with caution. get identityIdsInput() { return this._identityIds; } // principal_id - computed: true, optional: false, required: false get principalId() { return this.getStringAttribute('principal_id'); } // tenant_id - computed: true, optional: false, required: false get tenantId() { return this.getStringAttribute('tenant_id'); } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.NginxDeploymentIdentityOutputReference = NginxDeploymentIdentityOutputReference; _l = JSII_RTTI_SYMBOL_1; NginxDeploymentIdentityOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentIdentityOutputReference", version: "12.27.0" }; function nginxDeploymentLoggingStorageAccountToTerraform(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_name: cdktf.stringToTerraform(struct.containerName), name: cdktf.stringToTerraform(struct.name), }; } exports.nginxDeploymentLoggingStorageAccountToTerraform = nginxDeploymentLoggingStorageAccountToTerraform; function nginxDeploymentLoggingStorageAccountToHclTerraform(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_name: { value: cdktf.stringToHclTerraform(struct.containerName), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentLoggingStorageAccountToHclTerraform = nginxDeploymentLoggingStorageAccountToHclTerraform; class NginxDeploymentLoggingStorageAccountOutputReference 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._containerName !== undefined) { hasAnyValues = true; internalValueResult.containerName = this._containerName; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._containerName = undefined; this._name = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._containerName = value.containerName; this._name = value.name; } } get containerName() { return this.getStringAttribute('container_name'); } set containerName(value) { this._containerName = value; } resetContainerName() { this._containerName = undefined; } // Temporarily expose input value. Use with caution. get containerNameInput() { return this._containerName; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.NginxDeploymentLoggingStorageAccountOutputReference = NginxDeploymentLoggingStorageAccountOutputReference; _m = JSII_RTTI_SYMBOL_1; NginxDeploymentLoggingStorageAccountOutputReference[_m] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentLoggingStorageAccountOutputReference", version: "12.27.0" }; class NginxDeploymentLoggingStorageAccountList 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 NginxDeploymentLoggingStorageAccountOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NginxDeploymentLoggingStorageAccountList = NginxDeploymentLoggingStorageAccountList; _o = JSII_RTTI_SYMBOL_1; NginxDeploymentLoggingStorageAccountList[_o] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentLoggingStorageAccountList", version: "12.27.0" }; function nginxDeploymentNetworkInterfaceToTerraform(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 { subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.nginxDeploymentNetworkInterfaceToTerraform = nginxDeploymentNetworkInterfaceToTerraform; function nginxDeploymentNetworkInterfaceToHclTerraform(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 = { subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.nginxDeploymentNetworkInterfaceToHclTerraform = nginxDeploymentNetworkInterfaceToHclTerraform; class NginxDeploymentNetworkInterfaceOutputReference 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._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._subnetId = 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._subnetId = value.subnetId; } } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.NginxDeploymentNetworkInterfaceOutputReference = NginxDeploymentNetworkInterfaceOutputReference; _p = JSII_RTTI_SYMBOL_1; NginxDeploymentNetworkInterfaceOutputReference[_p] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeploymentNetworkInterfaceOutputReference", version: "12.27.0" }; class NginxDeploymentNetworkInterfaceList 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 NginxDeploymentNetworkInterfaceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NginxDeploymentNetworkInterfaceList = NginxDeploymentNetworkInterfaceList; _q = JSII_RTTI_SYMBOL_1; NginxDeploymentNetworkInterfaceList[_q] = { fqn: "@cdktf/provider-azurerm.nginxDeployment.NginxDeployme