UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,088 lines 860 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32; Object.defineProperty(exports, "__esModule", { value: true }); exports.containerAppTemplateContainerReadinessProbeHeaderToHclTerraform = exports.containerAppTemplateContainerReadinessProbeHeaderToTerraform = exports.ContainerAppTemplateContainerLivenessProbeList = exports.ContainerAppTemplateContainerLivenessProbeOutputReference = exports.containerAppTemplateContainerLivenessProbeToHclTerraform = exports.containerAppTemplateContainerLivenessProbeToTerraform = exports.ContainerAppTemplateContainerLivenessProbeHeaderList = exports.ContainerAppTemplateContainerLivenessProbeHeaderOutputReference = exports.containerAppTemplateContainerLivenessProbeHeaderToHclTerraform = exports.containerAppTemplateContainerLivenessProbeHeaderToTerraform = exports.ContainerAppTemplateContainerEnvList = exports.ContainerAppTemplateContainerEnvOutputReference = exports.containerAppTemplateContainerEnvToHclTerraform = exports.containerAppTemplateContainerEnvToTerraform = exports.ContainerAppTemplateAzureQueueScaleRuleList = exports.ContainerAppTemplateAzureQueueScaleRuleOutputReference = exports.containerAppTemplateAzureQueueScaleRuleToHclTerraform = exports.containerAppTemplateAzureQueueScaleRuleToTerraform = exports.ContainerAppTemplateAzureQueueScaleRuleAuthenticationList = exports.ContainerAppTemplateAzureQueueScaleRuleAuthenticationOutputReference = exports.containerAppTemplateAzureQueueScaleRuleAuthenticationToHclTerraform = exports.containerAppTemplateAzureQueueScaleRuleAuthenticationToTerraform = exports.ContainerAppSecretList = exports.ContainerAppSecretOutputReference = exports.containerAppSecretToHclTerraform = exports.containerAppSecretToTerraform = exports.ContainerAppRegistryList = exports.ContainerAppRegistryOutputReference = exports.containerAppRegistryToHclTerraform = exports.containerAppRegistryToTerraform = exports.ContainerAppIngressOutputReference = exports.containerAppIngressToHclTerraform = exports.containerAppIngressToTerraform = exports.ContainerAppIngressTrafficWeightList = exports.ContainerAppIngressTrafficWeightOutputReference = exports.containerAppIngressTrafficWeightToHclTerraform = exports.containerAppIngressTrafficWeightToTerraform = exports.ContainerAppIngressIpSecurityRestrictionList = exports.ContainerAppIngressIpSecurityRestrictionOutputReference = exports.containerAppIngressIpSecurityRestrictionToHclTerraform = exports.containerAppIngressIpSecurityRestrictionToTerraform = exports.ContainerAppIngressCustomDomainOutputReference = exports.containerAppIngressCustomDomainToHclTerraform = exports.containerAppIngressCustomDomainToTerraform = exports.ContainerAppIdentityOutputReference = exports.containerAppIdentityToHclTerraform = exports.containerAppIdentityToTerraform = exports.ContainerAppDaprOutputReference = exports.containerAppDaprToHclTerraform = exports.containerAppDaprToTerraform = void 0; exports.ContainerAppTemplateInitContainerList = exports.ContainerAppTemplateInitContainerOutputReference = exports.containerAppTemplateInitContainerToHclTerraform = exports.containerAppTemplateInitContainerToTerraform = exports.ContainerAppTemplateInitContainerVolumeMountsList = exports.ContainerAppTemplateInitContainerVolumeMountsOutputReference = exports.containerAppTemplateInitContainerVolumeMountsToHclTerraform = exports.containerAppTemplateInitContainerVolumeMountsToTerraform = exports.ContainerAppTemplateInitContainerEnvList = exports.ContainerAppTemplateInitContainerEnvOutputReference = exports.containerAppTemplateInitContainerEnvToHclTerraform = exports.containerAppTemplateInitContainerEnvToTerraform = exports.ContainerAppTemplateHttpScaleRuleList = exports.ContainerAppTemplateHttpScaleRuleOutputReference = exports.containerAppTemplateHttpScaleRuleToHclTerraform = exports.containerAppTemplateHttpScaleRuleToTerraform = exports.ContainerAppTemplateHttpScaleRuleAuthenticationList = exports.ContainerAppTemplateHttpScaleRuleAuthenticationOutputReference = exports.containerAppTemplateHttpScaleRuleAuthenticationToHclTerraform = exports.containerAppTemplateHttpScaleRuleAuthenticationToTerraform = exports.ContainerAppTemplateCustomScaleRuleList = exports.ContainerAppTemplateCustomScaleRuleOutputReference = exports.containerAppTemplateCustomScaleRuleToHclTerraform = exports.containerAppTemplateCustomScaleRuleToTerraform = exports.ContainerAppTemplateCustomScaleRuleAuthenticationList = exports.ContainerAppTemplateCustomScaleRuleAuthenticationOutputReference = exports.containerAppTemplateCustomScaleRuleAuthenticationToHclTerraform = exports.containerAppTemplateCustomScaleRuleAuthenticationToTerraform = exports.ContainerAppTemplateContainerList = exports.ContainerAppTemplateContainerOutputReference = exports.containerAppTemplateContainerToHclTerraform = exports.containerAppTemplateContainerToTerraform = exports.ContainerAppTemplateContainerVolumeMountsList = exports.ContainerAppTemplateContainerVolumeMountsOutputReference = exports.containerAppTemplateContainerVolumeMountsToHclTerraform = exports.containerAppTemplateContainerVolumeMountsToTerraform = exports.ContainerAppTemplateContainerStartupProbeList = exports.ContainerAppTemplateContainerStartupProbeOutputReference = exports.containerAppTemplateContainerStartupProbeToHclTerraform = exports.containerAppTemplateContainerStartupProbeToTerraform = exports.ContainerAppTemplateContainerStartupProbeHeaderList = exports.ContainerAppTemplateContainerStartupProbeHeaderOutputReference = exports.containerAppTemplateContainerStartupProbeHeaderToHclTerraform = exports.containerAppTemplateContainerStartupProbeHeaderToTerraform = exports.ContainerAppTemplateContainerReadinessProbeList = exports.ContainerAppTemplateContainerReadinessProbeOutputReference = exports.containerAppTemplateContainerReadinessProbeToHclTerraform = exports.containerAppTemplateContainerReadinessProbeToTerraform = exports.ContainerAppTemplateContainerReadinessProbeHeaderList = exports.ContainerAppTemplateContainerReadinessProbeHeaderOutputReference = void 0; exports.ContainerApp = exports.ContainerAppTimeoutsOutputReference = exports.containerAppTimeoutsToHclTerraform = exports.containerAppTimeoutsToTerraform = exports.ContainerAppTemplateOutputReference = exports.containerAppTemplateToHclTerraform = exports.containerAppTemplateToTerraform = exports.ContainerAppTemplateVolumeList = exports.ContainerAppTemplateVolumeOutputReference = exports.containerAppTemplateVolumeToHclTerraform = exports.containerAppTemplateVolumeToTerraform = exports.ContainerAppTemplateTcpScaleRuleList = exports.ContainerAppTemplateTcpScaleRuleOutputReference = exports.containerAppTemplateTcpScaleRuleToHclTerraform = exports.containerAppTemplateTcpScaleRuleToTerraform = exports.ContainerAppTemplateTcpScaleRuleAuthenticationList = exports.ContainerAppTemplateTcpScaleRuleAuthenticationOutputReference = exports.containerAppTemplateTcpScaleRuleAuthenticationToHclTerraform = exports.containerAppTemplateTcpScaleRuleAuthenticationToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function containerAppDaprToTerraform(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 { app_id: cdktf.stringToTerraform(struct.appId), app_port: cdktf.numberToTerraform(struct.appPort), app_protocol: cdktf.stringToTerraform(struct.appProtocol), }; } exports.containerAppDaprToTerraform = containerAppDaprToTerraform; function containerAppDaprToHclTerraform(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 = { app_id: { value: cdktf.stringToHclTerraform(struct.appId), isBlock: false, type: "simple", storageClassType: "string", }, app_port: { value: cdktf.numberToHclTerraform(struct.appPort), isBlock: false, type: "simple", storageClassType: "number", }, app_protocol: { value: cdktf.stringToHclTerraform(struct.appProtocol), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppDaprToHclTerraform = containerAppDaprToHclTerraform; class ContainerAppDaprOutputReference 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._appId !== undefined) { hasAnyValues = true; internalValueResult.appId = this._appId; } if (this._appPort !== undefined) { hasAnyValues = true; internalValueResult.appPort = this._appPort; } if (this._appProtocol !== undefined) { hasAnyValues = true; internalValueResult.appProtocol = this._appProtocol; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._appId = undefined; this._appPort = undefined; this._appProtocol = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._appId = value.appId; this._appPort = value.appPort; this._appProtocol = value.appProtocol; } } get appId() { return this.getStringAttribute('app_id'); } set appId(value) { this._appId = value; } // Temporarily expose input value. Use with caution. get appIdInput() { return this._appId; } get appPort() { return this.getNumberAttribute('app_port'); } set appPort(value) { this._appPort = value; } resetAppPort() { this._appPort = undefined; } // Temporarily expose input value. Use with caution. get appPortInput() { return this._appPort; } get appProtocol() { return this.getStringAttribute('app_protocol'); } set appProtocol(value) { this._appProtocol = value; } resetAppProtocol() { this._appProtocol = undefined; } // Temporarily expose input value. Use with caution. get appProtocolInput() { return this._appProtocol; } } exports.ContainerAppDaprOutputReference = ContainerAppDaprOutputReference; _a = JSII_RTTI_SYMBOL_1; ContainerAppDaprOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppDaprOutputReference", version: "12.27.0" }; function containerAppIdentityToTerraform(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.containerAppIdentityToTerraform = containerAppIdentityToTerraform; function containerAppIdentityToHclTerraform(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.containerAppIdentityToHclTerraform = containerAppIdentityToHclTerraform; class ContainerAppIdentityOutputReference 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.ContainerAppIdentityOutputReference = ContainerAppIdentityOutputReference; _b = JSII_RTTI_SYMBOL_1; ContainerAppIdentityOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppIdentityOutputReference", version: "12.27.0" }; function containerAppIngressCustomDomainToTerraform(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 { certificate_binding_type: cdktf.stringToTerraform(struct.certificateBindingType), certificate_id: cdktf.stringToTerraform(struct.certificateId), name: cdktf.stringToTerraform(struct.name), }; } exports.containerAppIngressCustomDomainToTerraform = containerAppIngressCustomDomainToTerraform; function containerAppIngressCustomDomainToHclTerraform(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 = { certificate_binding_type: { value: cdktf.stringToHclTerraform(struct.certificateBindingType), isBlock: false, type: "simple", storageClassType: "string", }, certificate_id: { value: cdktf.stringToHclTerraform(struct.certificateId), 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.containerAppIngressCustomDomainToHclTerraform = containerAppIngressCustomDomainToHclTerraform; class ContainerAppIngressCustomDomainOutputReference 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._certificateBindingType !== undefined) { hasAnyValues = true; internalValueResult.certificateBindingType = this._certificateBindingType; } if (this._certificateId !== undefined) { hasAnyValues = true; internalValueResult.certificateId = this._certificateId; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._certificateBindingType = undefined; this._certificateId = undefined; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certificateBindingType = value.certificateBindingType; this._certificateId = value.certificateId; this._name = value.name; } } get certificateBindingType() { return this.getStringAttribute('certificate_binding_type'); } set certificateBindingType(value) { this._certificateBindingType = value; } resetCertificateBindingType() { this._certificateBindingType = undefined; } // Temporarily expose input value. Use with caution. get certificateBindingTypeInput() { return this._certificateBindingType; } get certificateId() { return this.getStringAttribute('certificate_id'); } set certificateId(value) { this._certificateId = value; } // Temporarily expose input value. Use with caution. get certificateIdInput() { return this._certificateId; } 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.ContainerAppIngressCustomDomainOutputReference = ContainerAppIngressCustomDomainOutputReference; _c = JSII_RTTI_SYMBOL_1; ContainerAppIngressCustomDomainOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppIngressCustomDomainOutputReference", version: "12.27.0" }; function containerAppIngressIpSecurityRestrictionToTerraform(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 { action: cdktf.stringToTerraform(struct.action), description: cdktf.stringToTerraform(struct.description), ip_address_range: cdktf.stringToTerraform(struct.ipAddressRange), name: cdktf.stringToTerraform(struct.name), }; } exports.containerAppIngressIpSecurityRestrictionToTerraform = containerAppIngressIpSecurityRestrictionToTerraform; function containerAppIngressIpSecurityRestrictionToHclTerraform(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 = { action: { value: cdktf.stringToHclTerraform(struct.action), isBlock: false, type: "simple", storageClassType: "string", }, description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, ip_address_range: { value: cdktf.stringToHclTerraform(struct.ipAddressRange), 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.containerAppIngressIpSecurityRestrictionToHclTerraform = containerAppIngressIpSecurityRestrictionToHclTerraform; class ContainerAppIngressIpSecurityRestrictionOutputReference 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._action !== undefined) { hasAnyValues = true; internalValueResult.action = this._action; } if (this._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._ipAddressRange !== undefined) { hasAnyValues = true; internalValueResult.ipAddressRange = this._ipAddressRange; } 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._action = undefined; this._description = undefined; this._ipAddressRange = 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._action = value.action; this._description = value.description; this._ipAddressRange = value.ipAddressRange; this._name = value.name; } } get action() { return this.getStringAttribute('action'); } set action(value) { this._action = value; } // Temporarily expose input value. Use with caution. get actionInput() { return this._action; } 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 ipAddressRange() { return this.getStringAttribute('ip_address_range'); } set ipAddressRange(value) { this._ipAddressRange = value; } // Temporarily expose input value. Use with caution. get ipAddressRangeInput() { return this._ipAddressRange; } 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.ContainerAppIngressIpSecurityRestrictionOutputReference = ContainerAppIngressIpSecurityRestrictionOutputReference; _d = JSII_RTTI_SYMBOL_1; ContainerAppIngressIpSecurityRestrictionOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppIngressIpSecurityRestrictionOutputReference", version: "12.27.0" }; class ContainerAppIngressIpSecurityRestrictionList 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 ContainerAppIngressIpSecurityRestrictionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAppIngressIpSecurityRestrictionList = ContainerAppIngressIpSecurityRestrictionList; _e = JSII_RTTI_SYMBOL_1; ContainerAppIngressIpSecurityRestrictionList[_e] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppIngressIpSecurityRestrictionList", version: "12.27.0" }; function containerAppIngressTrafficWeightToTerraform(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 { label: cdktf.stringToTerraform(struct.label), latest_revision: cdktf.booleanToTerraform(struct.latestRevision), percentage: cdktf.numberToTerraform(struct.percentage), revision_suffix: cdktf.stringToTerraform(struct.revisionSuffix), }; } exports.containerAppIngressTrafficWeightToTerraform = containerAppIngressTrafficWeightToTerraform; function containerAppIngressTrafficWeightToHclTerraform(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 = { label: { value: cdktf.stringToHclTerraform(struct.label), isBlock: false, type: "simple", storageClassType: "string", }, latest_revision: { value: cdktf.booleanToHclTerraform(struct.latestRevision), isBlock: false, type: "simple", storageClassType: "boolean", }, percentage: { value: cdktf.numberToHclTerraform(struct.percentage), isBlock: false, type: "simple", storageClassType: "number", }, revision_suffix: { value: cdktf.stringToHclTerraform(struct.revisionSuffix), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppIngressTrafficWeightToHclTerraform = containerAppIngressTrafficWeightToHclTerraform; class ContainerAppIngressTrafficWeightOutputReference 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._label !== undefined) { hasAnyValues = true; internalValueResult.label = this._label; } if (this._latestRevision !== undefined) { hasAnyValues = true; internalValueResult.latestRevision = this._latestRevision; } if (this._percentage !== undefined) { hasAnyValues = true; internalValueResult.percentage = this._percentage; } if (this._revisionSuffix !== undefined) { hasAnyValues = true; internalValueResult.revisionSuffix = this._revisionSuffix; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._label = undefined; this._latestRevision = undefined; this._percentage = undefined; this._revisionSuffix = 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._label = value.label; this._latestRevision = value.latestRevision; this._percentage = value.percentage; this._revisionSuffix = value.revisionSuffix; } } get label() { return this.getStringAttribute('label'); } set label(value) { this._label = value; } resetLabel() { this._label = undefined; } // Temporarily expose input value. Use with caution. get labelInput() { return this._label; } get latestRevision() { return this.getBooleanAttribute('latest_revision'); } set latestRevision(value) { this._latestRevision = value; } resetLatestRevision() { this._latestRevision = undefined; } // Temporarily expose input value. Use with caution. get latestRevisionInput() { return this._latestRevision; } get percentage() { return this.getNumberAttribute('percentage'); } set percentage(value) { this._percentage = value; } // Temporarily expose input value. Use with caution. get percentageInput() { return this._percentage; } get revisionSuffix() { return this.getStringAttribute('revision_suffix'); } set revisionSuffix(value) { this._revisionSuffix = value; } resetRevisionSuffix() { this._revisionSuffix = undefined; } // Temporarily expose input value. Use with caution. get revisionSuffixInput() { return this._revisionSuffix; } } exports.ContainerAppIngressTrafficWeightOutputReference = ContainerAppIngressTrafficWeightOutputReference; _f = JSII_RTTI_SYMBOL_1; ContainerAppIngressTrafficWeightOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppIngressTrafficWeightOutputReference", version: "12.27.0" }; class ContainerAppIngressTrafficWeightList 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 ContainerAppIngressTrafficWeightOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAppIngressTrafficWeightList = ContainerAppIngressTrafficWeightList; _g = JSII_RTTI_SYMBOL_1; ContainerAppIngressTrafficWeightList[_g] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppIngressTrafficWeightList", version: "12.27.0" }; function containerAppIngressToTerraform(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 { allow_insecure_connections: cdktf.booleanToTerraform(struct.allowInsecureConnections), exposed_port: cdktf.numberToTerraform(struct.exposedPort), external_enabled: cdktf.booleanToTerraform(struct.externalEnabled), target_port: cdktf.numberToTerraform(struct.targetPort), transport: cdktf.stringToTerraform(struct.transport), custom_domain: containerAppIngressCustomDomainToTerraform(struct.customDomain), ip_security_restriction: cdktf.listMapper(containerAppIngressIpSecurityRestrictionToTerraform, true)(struct.ipSecurityRestriction), traffic_weight: cdktf.listMapper(containerAppIngressTrafficWeightToTerraform, true)(struct.trafficWeight), }; } exports.containerAppIngressToTerraform = containerAppIngressToTerraform; function containerAppIngressToHclTerraform(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 = { allow_insecure_connections: { value: cdktf.booleanToHclTerraform(struct.allowInsecureConnections), isBlock: false, type: "simple", storageClassType: "boolean", }, exposed_port: { value: cdktf.numberToHclTerraform(struct.exposedPort), isBlock: false, type: "simple", storageClassType: "number", }, external_enabled: { value: cdktf.booleanToHclTerraform(struct.externalEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, target_port: { value: cdktf.numberToHclTerraform(struct.targetPort), isBlock: false, type: "simple", storageClassType: "number", }, transport: { value: cdktf.stringToHclTerraform(struct.transport), isBlock: false, type: "simple", storageClassType: "string", }, custom_domain: { value: containerAppIngressCustomDomainToHclTerraform(struct.customDomain), isBlock: true, type: "list", storageClassType: "ContainerAppIngressCustomDomainList", }, ip_security_restriction: { value: cdktf.listMapperHcl(containerAppIngressIpSecurityRestrictionToHclTerraform, true)(struct.ipSecurityRestriction), isBlock: true, type: "list", storageClassType: "ContainerAppIngressIpSecurityRestrictionList", }, traffic_weight: { value: cdktf.listMapperHcl(containerAppIngressTrafficWeightToHclTerraform, true)(struct.trafficWeight), isBlock: true, type: "list", storageClassType: "ContainerAppIngressTrafficWeightList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppIngressToHclTerraform = containerAppIngressToHclTerraform; class ContainerAppIngressOutputReference 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; // custom_domain - computed: false, optional: true, required: false this._customDomain = new ContainerAppIngressCustomDomainOutputReference(this, "custom_domain"); // ip_security_restriction - computed: false, optional: true, required: false this._ipSecurityRestriction = new ContainerAppIngressIpSecurityRestrictionList(this, "ip_security_restriction", false); // traffic_weight - computed: false, optional: false, required: true this._trafficWeight = new ContainerAppIngressTrafficWeightList(this, "traffic_weight", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._allowInsecureConnections !== undefined) { hasAnyValues = true; internalValueResult.allowInsecureConnections = this._allowInsecureConnections; } if (this._exposedPort !== undefined) { hasAnyValues = true; internalValueResult.exposedPort = this._exposedPort; } if (this._externalEnabled !== undefined) { hasAnyValues = true; internalValueResult.externalEnabled = this._externalEnabled; } if (this._targetPort !== undefined) { hasAnyValues = true; internalValueResult.targetPort = this._targetPort; } if (this._transport !== undefined) { hasAnyValues = true; internalValueResult.transport = this._transport; } if (this._customDomain?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.customDomain = this._customDomain?.internalValue; } if (this._ipSecurityRestriction?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ipSecurityRestriction = this._ipSecurityRestriction?.internalValue; } if (this._trafficWeight?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.trafficWeight = this._trafficWeight?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowInsecureConnections = undefined; this._exposedPort = undefined; this._externalEnabled = undefined; this._targetPort = undefined; this._transport = undefined; this._customDomain.internalValue = undefined; this._ipSecurityRestriction.internalValue = undefined; this._trafficWeight.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowInsecureConnections = value.allowInsecureConnections; this._exposedPort = value.exposedPort; this._externalEnabled = value.externalEnabled; this._targetPort = value.targetPort; this._transport = value.transport; this._customDomain.internalValue = value.customDomain; this._ipSecurityRestriction.internalValue = value.ipSecurityRestriction; this._trafficWeight.internalValue = value.trafficWeight; } } get allowInsecureConnections() { return this.getBooleanAttribute('allow_insecure_connections'); } set allowInsecureConnections(value) { this._allowInsecureConnections = value; } resetAllowInsecureConnections() { this._allowInsecureConnections = undefined; } // Temporarily expose input value. Use with caution. get allowInsecureConnectionsInput() { return this._allowInsecureConnections; } get exposedPort() { return this.getNumberAttribute('exposed_port'); } set exposedPort(value) { this._exposedPort = value; } resetExposedPort() { this._exposedPort = undefined; } // Temporarily expose input value. Use with caution. get exposedPortInput() { return this._exposedPort; } get externalEnabled() { return this.getBooleanAttribute('external_enabled'); } set externalEnabled(value) { this._externalEnabled = value; } resetExternalEnabled() { this._externalEnabled = undefined; } // Temporarily expose input value. Use with caution. get externalEnabledInput() { return this._externalEnabled; } // fqdn - computed: true, optional: false, required: false get fqdn() { return this.getStringAttribute('fqdn'); } get targetPort() { return this.getNumberAttribute('target_port'); } set targetPort(value) { this._targetPort = value; } // Temporarily expose input value. Use with caution. get targetPortInput() { return this._targetPort; } get transport() { return this.getStringAttribute('transport'); } set transport(value) { this._transport = value; } resetTransport() { this._transport = undefined; } // Temporarily expose input value. Use with caution. get transportInput() { return this._transport; } get customDomain() { return this._customDomain; } putCustomDomain(value) { this._customDomain.internalValue = value; } resetCustomDomain() { this._customDomain.internalValue = undefined; } // Temporarily expose input value. Use with caution. get customDomainInput() { return this._customDomain.internalValue; } get ipSecurityRestriction() { return this._ipSecurityRestriction; } putIpSecurityRestriction(value) { this._ipSecurityRestriction.internalValue = value; } resetIpSecurityRestriction() { this._ipSecurityRestriction.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ipSecurityRestrictionInput() { return this._ipSecurityRestriction.internalValue; } get trafficWeight() { return this._trafficWeight; } putTrafficWeight(value) { this._trafficWeight.internalValue = value; } // Temporarily expose input value. Use with caution. get trafficWeightInput() { return this._trafficWeight.internalValue; } } exports.ContainerAppIngressOutputReference = ContainerAppIngressOutputReference; _h = JSII_RTTI_SYMBOL_1; ContainerAppIngressOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.containerApp.ContainerAppIngressOutputReference", version: "12.27.0" }; function containerAppRegistryToTerraform(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: cdktf.stringToTerraform(struct.identity), password_secret_name: cdktf.stringToTerraform(struct.passwordSecretName), server: cdktf.stringToTerraform(struct.server), username: cdktf.stringToTerraform(struct.username), }; } exports.containerAppRegistryToTerraform = containerAppRegistryToTerraform; function containerAppRegistryToHclTerraform(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: { value: cdktf.stringToHclTerraform(struct.identity), isBlock: false, type: "simple", storageClassType: "string", }, password_secret_name: { value: cdktf.stringToHclTerraform(struct.passwordSecretName), isBlock: false, type: "simple", storageClassType: "string", }, server: { value: cdktf.stringToHclTerraform(struct.server), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppRegistryToHclTerraform = containerAppRegistryToHclTerraform; class ContainerAppRegistryOutputReference 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._identity !== undefined) { hasAnyValues = true; internalValueResult.identity = this._identity; } if (this._passwordSecretName !== undefined) { hasAnyValues = true; internalValueResult.passwordSecretName = this._passwordSecretName; } if (this._server !== undefined) { hasAnyValues = true; internalValueResult.server = this._server; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._identity = undefined; this._passwordSecretName = undefined; this._server = undefined; this._username = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isE