UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,046 lines (1,045 loc) 728 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.containerAppJobTemplateContainerLivenessProbeToHclTerraform = exports.containerAppJobTemplateContainerLivenessProbeToTerraform = exports.ContainerAppJobTemplateContainerLivenessProbeHeaderList = exports.ContainerAppJobTemplateContainerLivenessProbeHeaderOutputReference = exports.containerAppJobTemplateContainerLivenessProbeHeaderToHclTerraform = exports.containerAppJobTemplateContainerLivenessProbeHeaderToTerraform = exports.ContainerAppJobTemplateContainerEnvList = exports.ContainerAppJobTemplateContainerEnvOutputReference = exports.containerAppJobTemplateContainerEnvToHclTerraform = exports.containerAppJobTemplateContainerEnvToTerraform = exports.ContainerAppJobSecretsList = exports.ContainerAppJobSecretsOutputReference = exports.containerAppJobSecretsToHclTerraform = exports.containerAppJobSecretsToTerraform = exports.ContainerAppJobSecretList = exports.ContainerAppJobSecretOutputReference = exports.containerAppJobSecretToHclTerraform = exports.containerAppJobSecretToTerraform = exports.ContainerAppJobScheduleTriggerConfigOutputReference = exports.containerAppJobScheduleTriggerConfigToHclTerraform = exports.containerAppJobScheduleTriggerConfigToTerraform = exports.ContainerAppJobRegistryList = exports.ContainerAppJobRegistryOutputReference = exports.containerAppJobRegistryToHclTerraform = exports.containerAppJobRegistryToTerraform = exports.ContainerAppJobRegistriesList = exports.ContainerAppJobRegistriesOutputReference = exports.containerAppJobRegistriesToHclTerraform = exports.containerAppJobRegistriesToTerraform = exports.ContainerAppJobManualTriggerConfigOutputReference = exports.containerAppJobManualTriggerConfigToHclTerraform = exports.containerAppJobManualTriggerConfigToTerraform = exports.ContainerAppJobIdentityOutputReference = exports.containerAppJobIdentityToHclTerraform = exports.containerAppJobIdentityToTerraform = exports.ContainerAppJobEventTriggerConfigOutputReference = exports.containerAppJobEventTriggerConfigToHclTerraform = exports.containerAppJobEventTriggerConfigToTerraform = exports.ContainerAppJobEventTriggerConfigScaleList = exports.ContainerAppJobEventTriggerConfigScaleOutputReference = exports.containerAppJobEventTriggerConfigScaleToHclTerraform = exports.containerAppJobEventTriggerConfigScaleToTerraform = exports.ContainerAppJobEventTriggerConfigScaleRulesList = exports.ContainerAppJobEventTriggerConfigScaleRulesOutputReference = exports.containerAppJobEventTriggerConfigScaleRulesToHclTerraform = exports.containerAppJobEventTriggerConfigScaleRulesToTerraform = exports.ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList = exports.ContainerAppJobEventTriggerConfigScaleRulesAuthenticationOutputReference = exports.containerAppJobEventTriggerConfigScaleRulesAuthenticationToHclTerraform = exports.containerAppJobEventTriggerConfigScaleRulesAuthenticationToTerraform = void 0; exports.ContainerAppJob = exports.ContainerAppJobTimeoutsOutputReference = exports.containerAppJobTimeoutsToHclTerraform = exports.containerAppJobTimeoutsToTerraform = exports.ContainerAppJobTemplateOutputReference = exports.containerAppJobTemplateToHclTerraform = exports.containerAppJobTemplateToTerraform = exports.ContainerAppJobTemplateVolumeList = exports.ContainerAppJobTemplateVolumeOutputReference = exports.containerAppJobTemplateVolumeToHclTerraform = exports.containerAppJobTemplateVolumeToTerraform = exports.ContainerAppJobTemplateInitContainerList = exports.ContainerAppJobTemplateInitContainerOutputReference = exports.containerAppJobTemplateInitContainerToHclTerraform = exports.containerAppJobTemplateInitContainerToTerraform = exports.ContainerAppJobTemplateInitContainerVolumeMountsList = exports.ContainerAppJobTemplateInitContainerVolumeMountsOutputReference = exports.containerAppJobTemplateInitContainerVolumeMountsToHclTerraform = exports.containerAppJobTemplateInitContainerVolumeMountsToTerraform = exports.ContainerAppJobTemplateInitContainerEnvList = exports.ContainerAppJobTemplateInitContainerEnvOutputReference = exports.containerAppJobTemplateInitContainerEnvToHclTerraform = exports.containerAppJobTemplateInitContainerEnvToTerraform = exports.ContainerAppJobTemplateContainerList = exports.ContainerAppJobTemplateContainerOutputReference = exports.containerAppJobTemplateContainerToHclTerraform = exports.containerAppJobTemplateContainerToTerraform = exports.ContainerAppJobTemplateContainerVolumeMountsList = exports.ContainerAppJobTemplateContainerVolumeMountsOutputReference = exports.containerAppJobTemplateContainerVolumeMountsToHclTerraform = exports.containerAppJobTemplateContainerVolumeMountsToTerraform = exports.ContainerAppJobTemplateContainerStartupProbeList = exports.ContainerAppJobTemplateContainerStartupProbeOutputReference = exports.containerAppJobTemplateContainerStartupProbeToHclTerraform = exports.containerAppJobTemplateContainerStartupProbeToTerraform = exports.ContainerAppJobTemplateContainerStartupProbeHeaderList = exports.ContainerAppJobTemplateContainerStartupProbeHeaderOutputReference = exports.containerAppJobTemplateContainerStartupProbeHeaderToHclTerraform = exports.containerAppJobTemplateContainerStartupProbeHeaderToTerraform = exports.ContainerAppJobTemplateContainerReadinessProbeList = exports.ContainerAppJobTemplateContainerReadinessProbeOutputReference = exports.containerAppJobTemplateContainerReadinessProbeToHclTerraform = exports.containerAppJobTemplateContainerReadinessProbeToTerraform = exports.ContainerAppJobTemplateContainerReadinessProbeHeaderList = exports.ContainerAppJobTemplateContainerReadinessProbeHeaderOutputReference = exports.containerAppJobTemplateContainerReadinessProbeHeaderToHclTerraform = exports.containerAppJobTemplateContainerReadinessProbeHeaderToTerraform = exports.ContainerAppJobTemplateContainerLivenessProbeList = exports.ContainerAppJobTemplateContainerLivenessProbeOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function containerAppJobEventTriggerConfigScaleRulesAuthenticationToTerraform(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 { secret_name: cdktf.stringToTerraform(struct.secretName), trigger_parameter: cdktf.stringToTerraform(struct.triggerParameter), }; } exports.containerAppJobEventTriggerConfigScaleRulesAuthenticationToTerraform = containerAppJobEventTriggerConfigScaleRulesAuthenticationToTerraform; function containerAppJobEventTriggerConfigScaleRulesAuthenticationToHclTerraform(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 = { secret_name: { value: cdktf.stringToHclTerraform(struct.secretName), isBlock: false, type: "simple", storageClassType: "string", }, trigger_parameter: { value: cdktf.stringToHclTerraform(struct.triggerParameter), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppJobEventTriggerConfigScaleRulesAuthenticationToHclTerraform = containerAppJobEventTriggerConfigScaleRulesAuthenticationToHclTerraform; class ContainerAppJobEventTriggerConfigScaleRulesAuthenticationOutputReference 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._secretName !== undefined) { hasAnyValues = true; internalValueResult.secretName = this._secretName; } if (this._triggerParameter !== undefined) { hasAnyValues = true; internalValueResult.triggerParameter = this._triggerParameter; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._secretName = undefined; this._triggerParameter = 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._secretName = value.secretName; this._triggerParameter = value.triggerParameter; } } get secretName() { return this.getStringAttribute('secret_name'); } set secretName(value) { this._secretName = value; } // Temporarily expose input value. Use with caution. get secretNameInput() { return this._secretName; } get triggerParameter() { return this.getStringAttribute('trigger_parameter'); } set triggerParameter(value) { this._triggerParameter = value; } // Temporarily expose input value. Use with caution. get triggerParameterInput() { return this._triggerParameter; } } exports.ContainerAppJobEventTriggerConfigScaleRulesAuthenticationOutputReference = ContainerAppJobEventTriggerConfigScaleRulesAuthenticationOutputReference; _a = JSII_RTTI_SYMBOL_1; ContainerAppJobEventTriggerConfigScaleRulesAuthenticationOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobEventTriggerConfigScaleRulesAuthenticationOutputReference", version: "12.27.0" }; class ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList 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 ContainerAppJobEventTriggerConfigScaleRulesAuthenticationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList = ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList; _b = JSII_RTTI_SYMBOL_1; ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList[_b] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList", version: "12.27.0" }; function containerAppJobEventTriggerConfigScaleRulesToTerraform(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 { custom_rule_type: cdktf.stringToTerraform(struct.customRuleType), metadata: cdktf.hashMapper(cdktf.stringToTerraform)(struct.metadata), name: cdktf.stringToTerraform(struct.name), authentication: cdktf.listMapper(containerAppJobEventTriggerConfigScaleRulesAuthenticationToTerraform, true)(struct.authentication), }; } exports.containerAppJobEventTriggerConfigScaleRulesToTerraform = containerAppJobEventTriggerConfigScaleRulesToTerraform; function containerAppJobEventTriggerConfigScaleRulesToHclTerraform(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 = { custom_rule_type: { value: cdktf.stringToHclTerraform(struct.customRuleType), isBlock: false, type: "simple", storageClassType: "string", }, metadata: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.metadata), isBlock: false, type: "map", storageClassType: "stringMap", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, authentication: { value: cdktf.listMapperHcl(containerAppJobEventTriggerConfigScaleRulesAuthenticationToHclTerraform, true)(struct.authentication), isBlock: true, type: "list", storageClassType: "ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppJobEventTriggerConfigScaleRulesToHclTerraform = containerAppJobEventTriggerConfigScaleRulesToHclTerraform; class ContainerAppJobEventTriggerConfigScaleRulesOutputReference 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; // authentication - computed: false, optional: true, required: false this._authentication = new ContainerAppJobEventTriggerConfigScaleRulesAuthenticationList(this, "authentication", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._customRuleType !== undefined) { hasAnyValues = true; internalValueResult.customRuleType = this._customRuleType; } if (this._metadata !== undefined) { hasAnyValues = true; internalValueResult.metadata = this._metadata; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._authentication?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.authentication = this._authentication?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._customRuleType = undefined; this._metadata = undefined; this._name = undefined; this._authentication.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._customRuleType = value.customRuleType; this._metadata = value.metadata; this._name = value.name; this._authentication.internalValue = value.authentication; } } get customRuleType() { return this.getStringAttribute('custom_rule_type'); } set customRuleType(value) { this._customRuleType = value; } // Temporarily expose input value. Use with caution. get customRuleTypeInput() { return this._customRuleType; } get metadata() { return this.getStringMapAttribute('metadata'); } set metadata(value) { this._metadata = value; } // Temporarily expose input value. Use with caution. get metadataInput() { return this._metadata; } 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 authentication() { return this._authentication; } putAuthentication(value) { this._authentication.internalValue = value; } resetAuthentication() { this._authentication.internalValue = undefined; } // Temporarily expose input value. Use with caution. get authenticationInput() { return this._authentication.internalValue; } } exports.ContainerAppJobEventTriggerConfigScaleRulesOutputReference = ContainerAppJobEventTriggerConfigScaleRulesOutputReference; _c = JSII_RTTI_SYMBOL_1; ContainerAppJobEventTriggerConfigScaleRulesOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobEventTriggerConfigScaleRulesOutputReference", version: "12.27.0" }; class ContainerAppJobEventTriggerConfigScaleRulesList 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 ContainerAppJobEventTriggerConfigScaleRulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAppJobEventTriggerConfigScaleRulesList = ContainerAppJobEventTriggerConfigScaleRulesList; _d = JSII_RTTI_SYMBOL_1; ContainerAppJobEventTriggerConfigScaleRulesList[_d] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobEventTriggerConfigScaleRulesList", version: "12.27.0" }; function containerAppJobEventTriggerConfigScaleToTerraform(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_executions: cdktf.numberToTerraform(struct.maxExecutions), min_executions: cdktf.numberToTerraform(struct.minExecutions), polling_interval_in_seconds: cdktf.numberToTerraform(struct.pollingIntervalInSeconds), rules: cdktf.listMapper(containerAppJobEventTriggerConfigScaleRulesToTerraform, true)(struct.rules), }; } exports.containerAppJobEventTriggerConfigScaleToTerraform = containerAppJobEventTriggerConfigScaleToTerraform; function containerAppJobEventTriggerConfigScaleToHclTerraform(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_executions: { value: cdktf.numberToHclTerraform(struct.maxExecutions), isBlock: false, type: "simple", storageClassType: "number", }, min_executions: { value: cdktf.numberToHclTerraform(struct.minExecutions), isBlock: false, type: "simple", storageClassType: "number", }, polling_interval_in_seconds: { value: cdktf.numberToHclTerraform(struct.pollingIntervalInSeconds), isBlock: false, type: "simple", storageClassType: "number", }, rules: { value: cdktf.listMapperHcl(containerAppJobEventTriggerConfigScaleRulesToHclTerraform, true)(struct.rules), isBlock: true, type: "list", storageClassType: "ContainerAppJobEventTriggerConfigScaleRulesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppJobEventTriggerConfigScaleToHclTerraform = containerAppJobEventTriggerConfigScaleToHclTerraform; class ContainerAppJobEventTriggerConfigScaleOutputReference 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; // rules - computed: false, optional: true, required: false this._rules = new ContainerAppJobEventTriggerConfigScaleRulesList(this, "rules", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._maxExecutions !== undefined) { hasAnyValues = true; internalValueResult.maxExecutions = this._maxExecutions; } if (this._minExecutions !== undefined) { hasAnyValues = true; internalValueResult.minExecutions = this._minExecutions; } if (this._pollingIntervalInSeconds !== undefined) { hasAnyValues = true; internalValueResult.pollingIntervalInSeconds = this._pollingIntervalInSeconds; } if (this._rules?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.rules = this._rules?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._maxExecutions = undefined; this._minExecutions = undefined; this._pollingIntervalInSeconds = undefined; this._rules.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._maxExecutions = value.maxExecutions; this._minExecutions = value.minExecutions; this._pollingIntervalInSeconds = value.pollingIntervalInSeconds; this._rules.internalValue = value.rules; } } get maxExecutions() { return this.getNumberAttribute('max_executions'); } set maxExecutions(value) { this._maxExecutions = value; } resetMaxExecutions() { this._maxExecutions = undefined; } // Temporarily expose input value. Use with caution. get maxExecutionsInput() { return this._maxExecutions; } get minExecutions() { return this.getNumberAttribute('min_executions'); } set minExecutions(value) { this._minExecutions = value; } resetMinExecutions() { this._minExecutions = undefined; } // Temporarily expose input value. Use with caution. get minExecutionsInput() { return this._minExecutions; } get pollingIntervalInSeconds() { return this.getNumberAttribute('polling_interval_in_seconds'); } set pollingIntervalInSeconds(value) { this._pollingIntervalInSeconds = value; } resetPollingIntervalInSeconds() { this._pollingIntervalInSeconds = undefined; } // Temporarily expose input value. Use with caution. get pollingIntervalInSecondsInput() { return this._pollingIntervalInSeconds; } get rules() { return this._rules; } putRules(value) { this._rules.internalValue = value; } resetRules() { this._rules.internalValue = undefined; } // Temporarily expose input value. Use with caution. get rulesInput() { return this._rules.internalValue; } } exports.ContainerAppJobEventTriggerConfigScaleOutputReference = ContainerAppJobEventTriggerConfigScaleOutputReference; _e = JSII_RTTI_SYMBOL_1; ContainerAppJobEventTriggerConfigScaleOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobEventTriggerConfigScaleOutputReference", version: "12.27.0" }; class ContainerAppJobEventTriggerConfigScaleList 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 ContainerAppJobEventTriggerConfigScaleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAppJobEventTriggerConfigScaleList = ContainerAppJobEventTriggerConfigScaleList; _f = JSII_RTTI_SYMBOL_1; ContainerAppJobEventTriggerConfigScaleList[_f] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobEventTriggerConfigScaleList", version: "12.27.0" }; function containerAppJobEventTriggerConfigToTerraform(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 { parallelism: cdktf.numberToTerraform(struct.parallelism), replica_completion_count: cdktf.numberToTerraform(struct.replicaCompletionCount), scale: cdktf.listMapper(containerAppJobEventTriggerConfigScaleToTerraform, true)(struct.scale), }; } exports.containerAppJobEventTriggerConfigToTerraform = containerAppJobEventTriggerConfigToTerraform; function containerAppJobEventTriggerConfigToHclTerraform(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 = { parallelism: { value: cdktf.numberToHclTerraform(struct.parallelism), isBlock: false, type: "simple", storageClassType: "number", }, replica_completion_count: { value: cdktf.numberToHclTerraform(struct.replicaCompletionCount), isBlock: false, type: "simple", storageClassType: "number", }, scale: { value: cdktf.listMapperHcl(containerAppJobEventTriggerConfigScaleToHclTerraform, true)(struct.scale), isBlock: true, type: "list", storageClassType: "ContainerAppJobEventTriggerConfigScaleList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppJobEventTriggerConfigToHclTerraform = containerAppJobEventTriggerConfigToHclTerraform; class ContainerAppJobEventTriggerConfigOutputReference 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; // scale - computed: false, optional: true, required: false this._scale = new ContainerAppJobEventTriggerConfigScaleList(this, "scale", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._parallelism !== undefined) { hasAnyValues = true; internalValueResult.parallelism = this._parallelism; } if (this._replicaCompletionCount !== undefined) { hasAnyValues = true; internalValueResult.replicaCompletionCount = this._replicaCompletionCount; } if (this._scale?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.scale = this._scale?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._parallelism = undefined; this._replicaCompletionCount = undefined; this._scale.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._parallelism = value.parallelism; this._replicaCompletionCount = value.replicaCompletionCount; this._scale.internalValue = value.scale; } } get parallelism() { return this.getNumberAttribute('parallelism'); } set parallelism(value) { this._parallelism = value; } resetParallelism() { this._parallelism = undefined; } // Temporarily expose input value. Use with caution. get parallelismInput() { return this._parallelism; } get replicaCompletionCount() { return this.getNumberAttribute('replica_completion_count'); } set replicaCompletionCount(value) { this._replicaCompletionCount = value; } resetReplicaCompletionCount() { this._replicaCompletionCount = undefined; } // Temporarily expose input value. Use with caution. get replicaCompletionCountInput() { return this._replicaCompletionCount; } get scale() { return this._scale; } putScale(value) { this._scale.internalValue = value; } resetScale() { this._scale.internalValue = undefined; } // Temporarily expose input value. Use with caution. get scaleInput() { return this._scale.internalValue; } } exports.ContainerAppJobEventTriggerConfigOutputReference = ContainerAppJobEventTriggerConfigOutputReference; _g = JSII_RTTI_SYMBOL_1; ContainerAppJobEventTriggerConfigOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobEventTriggerConfigOutputReference", version: "12.27.0" }; function containerAppJobIdentityToTerraform(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.containerAppJobIdentityToTerraform = containerAppJobIdentityToTerraform; function containerAppJobIdentityToHclTerraform(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.containerAppJobIdentityToHclTerraform = containerAppJobIdentityToHclTerraform; class ContainerAppJobIdentityOutputReference 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.ContainerAppJobIdentityOutputReference = ContainerAppJobIdentityOutputReference; _h = JSII_RTTI_SYMBOL_1; ContainerAppJobIdentityOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobIdentityOutputReference", version: "12.27.0" }; function containerAppJobManualTriggerConfigToTerraform(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 { parallelism: cdktf.numberToTerraform(struct.parallelism), replica_completion_count: cdktf.numberToTerraform(struct.replicaCompletionCount), }; } exports.containerAppJobManualTriggerConfigToTerraform = containerAppJobManualTriggerConfigToTerraform; function containerAppJobManualTriggerConfigToHclTerraform(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 = { parallelism: { value: cdktf.numberToHclTerraform(struct.parallelism), isBlock: false, type: "simple", storageClassType: "number", }, replica_completion_count: { value: cdktf.numberToHclTerraform(struct.replicaCompletionCount), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerAppJobManualTriggerConfigToHclTerraform = containerAppJobManualTriggerConfigToHclTerraform; class ContainerAppJobManualTriggerConfigOutputReference 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._parallelism !== undefined) { hasAnyValues = true; internalValueResult.parallelism = this._parallelism; } if (this._replicaCompletionCount !== undefined) { hasAnyValues = true; internalValueResult.replicaCompletionCount = this._replicaCompletionCount; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._parallelism = undefined; this._replicaCompletionCount = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._parallelism = value.parallelism; this._replicaCompletionCount = value.replicaCompletionCount; } } get parallelism() { return this.getNumberAttribute('parallelism'); } set parallelism(value) { this._parallelism = value; } resetParallelism() { this._parallelism = undefined; } // Temporarily expose input value. Use with caution. get parallelismInput() { return this._parallelism; } get replicaCompletionCount() { return this.getNumberAttribute('replica_completion_count'); } set replicaCompletionCount(value) { this._replicaCompletionCount = value; } resetReplicaCompletionCount() { this._replicaCompletionCount = undefined; } // Temporarily expose input value. Use with caution. get replicaCompletionCountInput() { return this._replicaCompletionCount; } } exports.ContainerAppJobManualTriggerConfigOutputReference = ContainerAppJobManualTriggerConfigOutputReference; _j = JSII_RTTI_SYMBOL_1; ContainerAppJobManualTriggerConfigOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobManualTriggerConfigOutputReference", version: "12.27.0" }; function containerAppJobRegistriesToTerraform(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.containerAppJobRegistriesToTerraform = containerAppJobRegistriesToTerraform; function containerAppJobRegistriesToHclTerraform(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.containerAppJobRegistriesToHclTerraform = containerAppJobRegistriesToHclTerraform; class ContainerAppJobRegistriesOutputReference 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.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._identity = value.identity; this._passwordSecretName = value.passwordSecretName; this._server = value.server; this._username = value.username; } } get identity() { return this.getStringAttribute('identity'); } set identity(value) { this._identity = value; } resetIdentity() { this._identity = undefined; } // Temporarily expose input value. Use with caution. get identityInput() { return this._identity; } get passwordSecretName() { return this.getStringAttribute('password_secret_name'); } set passwordSecretName(value) { this._passwordSecretName = value; } resetPasswordSecretName() { this._passwordSecretName = undefined; } // Temporarily expose input value. Use with caution. get passwordSecretNameInput() { return this._passwordSecretName; } get server() { return this.getStringAttribute('server'); } set server(value) { this._server = value; } // Temporarily expose input value. Use with caution. get serverInput() { return this._server; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } resetUsername() { this._username = undefined; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.ContainerAppJobRegistriesOutputReference = ContainerAppJobRegistriesOutputReference; _k = JSII_RTTI_SYMBOL_1; ContainerAppJobRegistriesOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobRegistriesOutputReference", version: "12.27.0" }; class ContainerAppJobRegistriesList 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 ContainerAppJobRegistriesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerAppJobRegistriesList = ContainerAppJobRegistriesList; _l = JSII_RTTI_SYMBOL_1; ContainerAppJobRegistriesList[_l] = { fqn: "@cdktf/provider-azurerm.containerAppJob.ContainerAppJobRegistriesList", version: "12.27.0" }; function containerAppJobRegistryToTerraform(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.containerAppJobRegistryToTerraform = containerAppJobRegistryToTerraform; function containerAppJobRegistryToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {