UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,085 lines (1,084 loc) 205 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.LogicAppWorkflow = exports.LogicAppWorkflowTimeoutsOutputReference = exports.logicAppWorkflowTimeoutsToHclTerraform = exports.logicAppWorkflowTimeoutsToTerraform = exports.LogicAppWorkflowIdentityOutputReference = exports.logicAppWorkflowIdentityToHclTerraform = exports.logicAppWorkflowIdentityToTerraform = exports.LogicAppWorkflowAccessControlOutputReference = exports.logicAppWorkflowAccessControlToHclTerraform = exports.logicAppWorkflowAccessControlToTerraform = exports.LogicAppWorkflowAccessControlWorkflowManagementOutputReference = exports.logicAppWorkflowAccessControlWorkflowManagementToHclTerraform = exports.logicAppWorkflowAccessControlWorkflowManagementToTerraform = exports.LogicAppWorkflowAccessControlTriggerOutputReference = exports.logicAppWorkflowAccessControlTriggerToHclTerraform = exports.logicAppWorkflowAccessControlTriggerToTerraform = exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList = exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyOutputReference = exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToHclTerraform = exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToTerraform = exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList = exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimOutputReference = exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToHclTerraform = exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToTerraform = exports.LogicAppWorkflowAccessControlContentOutputReference = exports.logicAppWorkflowAccessControlContentToHclTerraform = exports.logicAppWorkflowAccessControlContentToTerraform = exports.LogicAppWorkflowAccessControlActionOutputReference = exports.logicAppWorkflowAccessControlActionToHclTerraform = exports.logicAppWorkflowAccessControlActionToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function logicAppWorkflowAccessControlActionToTerraform(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 { allowed_caller_ip_address_range: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedCallerIpAddressRange), }; } exports.logicAppWorkflowAccessControlActionToTerraform = logicAppWorkflowAccessControlActionToTerraform; function logicAppWorkflowAccessControlActionToHclTerraform(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 = { allowed_caller_ip_address_range: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedCallerIpAddressRange), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowAccessControlActionToHclTerraform = logicAppWorkflowAccessControlActionToHclTerraform; class LogicAppWorkflowAccessControlActionOutputReference 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._allowedCallerIpAddressRange !== undefined) { hasAnyValues = true; internalValueResult.allowedCallerIpAddressRange = this._allowedCallerIpAddressRange; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowedCallerIpAddressRange = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedCallerIpAddressRange = value.allowedCallerIpAddressRange; } } get allowedCallerIpAddressRange() { return cdktf.Fn.tolist(this.getListAttribute('allowed_caller_ip_address_range')); } set allowedCallerIpAddressRange(value) { this._allowedCallerIpAddressRange = value; } // Temporarily expose input value. Use with caution. get allowedCallerIpAddressRangeInput() { return this._allowedCallerIpAddressRange; } } exports.LogicAppWorkflowAccessControlActionOutputReference = LogicAppWorkflowAccessControlActionOutputReference; _a = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlActionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlActionOutputReference", version: "12.27.0" }; function logicAppWorkflowAccessControlContentToTerraform(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 { allowed_caller_ip_address_range: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedCallerIpAddressRange), }; } exports.logicAppWorkflowAccessControlContentToTerraform = logicAppWorkflowAccessControlContentToTerraform; function logicAppWorkflowAccessControlContentToHclTerraform(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 = { allowed_caller_ip_address_range: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedCallerIpAddressRange), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowAccessControlContentToHclTerraform = logicAppWorkflowAccessControlContentToHclTerraform; class LogicAppWorkflowAccessControlContentOutputReference 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._allowedCallerIpAddressRange !== undefined) { hasAnyValues = true; internalValueResult.allowedCallerIpAddressRange = this._allowedCallerIpAddressRange; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowedCallerIpAddressRange = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedCallerIpAddressRange = value.allowedCallerIpAddressRange; } } get allowedCallerIpAddressRange() { return cdktf.Fn.tolist(this.getListAttribute('allowed_caller_ip_address_range')); } set allowedCallerIpAddressRange(value) { this._allowedCallerIpAddressRange = value; } // Temporarily expose input value. Use with caution. get allowedCallerIpAddressRangeInput() { return this._allowedCallerIpAddressRange; } } exports.LogicAppWorkflowAccessControlContentOutputReference = LogicAppWorkflowAccessControlContentOutputReference; _b = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlContentOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlContentOutputReference", version: "12.27.0" }; function logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToTerraform(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 { name: cdktf.stringToTerraform(struct.name), value: cdktf.stringToTerraform(struct.value), }; } exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToTerraform = logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToTerraform; function logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToHclTerraform = logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToHclTerraform; class LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._value = 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._name = value.name; this._value = value.value; } } 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 value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimOutputReference = LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimOutputReference; _c = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimOutputReference", version: "12.27.0" }; class LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList 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 LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList = LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList; _d = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList[_d] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList", version: "12.27.0" }; function logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToTerraform(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 { name: cdktf.stringToTerraform(struct.name), claim: cdktf.listMapper(logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToTerraform, true)(struct.claim), }; } exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToTerraform = logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToTerraform; function logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, claim: { value: cdktf.listMapperHcl(logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimToHclTerraform, true)(struct.claim), isBlock: true, type: "set", storageClassType: "LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToHclTerraform = logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToHclTerraform; class LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyOutputReference 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; // claim - computed: false, optional: false, required: true this._claim = new LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyClaimList(this, "claim", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._claim?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.claim = this._claim?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._claim.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._name = value.name; this._claim.internalValue = value.claim; } } 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 claim() { return this._claim; } putClaim(value) { this._claim.internalValue = value; } // Temporarily expose input value. Use with caution. get claimInput() { return this._claim.internalValue; } } exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyOutputReference = LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyOutputReference; _e = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyOutputReference", version: "12.27.0" }; class LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList 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 LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList = LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList; _f = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList[_f] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList", version: "12.27.0" }; function logicAppWorkflowAccessControlTriggerToTerraform(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 { allowed_caller_ip_address_range: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedCallerIpAddressRange), open_authentication_policy: cdktf.listMapper(logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToTerraform, true)(struct.openAuthenticationPolicy), }; } exports.logicAppWorkflowAccessControlTriggerToTerraform = logicAppWorkflowAccessControlTriggerToTerraform; function logicAppWorkflowAccessControlTriggerToHclTerraform(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 = { allowed_caller_ip_address_range: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedCallerIpAddressRange), isBlock: false, type: "set", storageClassType: "stringList", }, open_authentication_policy: { value: cdktf.listMapperHcl(logicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyToHclTerraform, true)(struct.openAuthenticationPolicy), isBlock: true, type: "set", storageClassType: "LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowAccessControlTriggerToHclTerraform = logicAppWorkflowAccessControlTriggerToHclTerraform; class LogicAppWorkflowAccessControlTriggerOutputReference 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; // open_authentication_policy - computed: false, optional: true, required: false this._openAuthenticationPolicy = new LogicAppWorkflowAccessControlTriggerOpenAuthenticationPolicyList(this, "open_authentication_policy", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._allowedCallerIpAddressRange !== undefined) { hasAnyValues = true; internalValueResult.allowedCallerIpAddressRange = this._allowedCallerIpAddressRange; } if (this._openAuthenticationPolicy?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.openAuthenticationPolicy = this._openAuthenticationPolicy?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowedCallerIpAddressRange = undefined; this._openAuthenticationPolicy.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedCallerIpAddressRange = value.allowedCallerIpAddressRange; this._openAuthenticationPolicy.internalValue = value.openAuthenticationPolicy; } } get allowedCallerIpAddressRange() { return cdktf.Fn.tolist(this.getListAttribute('allowed_caller_ip_address_range')); } set allowedCallerIpAddressRange(value) { this._allowedCallerIpAddressRange = value; } // Temporarily expose input value. Use with caution. get allowedCallerIpAddressRangeInput() { return this._allowedCallerIpAddressRange; } get openAuthenticationPolicy() { return this._openAuthenticationPolicy; } putOpenAuthenticationPolicy(value) { this._openAuthenticationPolicy.internalValue = value; } resetOpenAuthenticationPolicy() { this._openAuthenticationPolicy.internalValue = undefined; } // Temporarily expose input value. Use with caution. get openAuthenticationPolicyInput() { return this._openAuthenticationPolicy.internalValue; } } exports.LogicAppWorkflowAccessControlTriggerOutputReference = LogicAppWorkflowAccessControlTriggerOutputReference; _g = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlTriggerOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlTriggerOutputReference", version: "12.27.0" }; function logicAppWorkflowAccessControlWorkflowManagementToTerraform(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 { allowed_caller_ip_address_range: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedCallerIpAddressRange), }; } exports.logicAppWorkflowAccessControlWorkflowManagementToTerraform = logicAppWorkflowAccessControlWorkflowManagementToTerraform; function logicAppWorkflowAccessControlWorkflowManagementToHclTerraform(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 = { allowed_caller_ip_address_range: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedCallerIpAddressRange), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowAccessControlWorkflowManagementToHclTerraform = logicAppWorkflowAccessControlWorkflowManagementToHclTerraform; class LogicAppWorkflowAccessControlWorkflowManagementOutputReference 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._allowedCallerIpAddressRange !== undefined) { hasAnyValues = true; internalValueResult.allowedCallerIpAddressRange = this._allowedCallerIpAddressRange; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowedCallerIpAddressRange = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedCallerIpAddressRange = value.allowedCallerIpAddressRange; } } get allowedCallerIpAddressRange() { return cdktf.Fn.tolist(this.getListAttribute('allowed_caller_ip_address_range')); } set allowedCallerIpAddressRange(value) { this._allowedCallerIpAddressRange = value; } // Temporarily expose input value. Use with caution. get allowedCallerIpAddressRangeInput() { return this._allowedCallerIpAddressRange; } } exports.LogicAppWorkflowAccessControlWorkflowManagementOutputReference = LogicAppWorkflowAccessControlWorkflowManagementOutputReference; _h = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlWorkflowManagementOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlWorkflowManagementOutputReference", version: "12.27.0" }; function logicAppWorkflowAccessControlToTerraform(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: logicAppWorkflowAccessControlActionToTerraform(struct.action), content: logicAppWorkflowAccessControlContentToTerraform(struct.content), trigger: logicAppWorkflowAccessControlTriggerToTerraform(struct.trigger), workflow_management: logicAppWorkflowAccessControlWorkflowManagementToTerraform(struct.workflowManagement), }; } exports.logicAppWorkflowAccessControlToTerraform = logicAppWorkflowAccessControlToTerraform; function logicAppWorkflowAccessControlToHclTerraform(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: logicAppWorkflowAccessControlActionToHclTerraform(struct.action), isBlock: true, type: "list", storageClassType: "LogicAppWorkflowAccessControlActionList", }, content: { value: logicAppWorkflowAccessControlContentToHclTerraform(struct.content), isBlock: true, type: "list", storageClassType: "LogicAppWorkflowAccessControlContentList", }, trigger: { value: logicAppWorkflowAccessControlTriggerToHclTerraform(struct.trigger), isBlock: true, type: "list", storageClassType: "LogicAppWorkflowAccessControlTriggerList", }, workflow_management: { value: logicAppWorkflowAccessControlWorkflowManagementToHclTerraform(struct.workflowManagement), isBlock: true, type: "list", storageClassType: "LogicAppWorkflowAccessControlWorkflowManagementList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowAccessControlToHclTerraform = logicAppWorkflowAccessControlToHclTerraform; class LogicAppWorkflowAccessControlOutputReference 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; // action - computed: false, optional: true, required: false this._action = new LogicAppWorkflowAccessControlActionOutputReference(this, "action"); // content - computed: false, optional: true, required: false this._content = new LogicAppWorkflowAccessControlContentOutputReference(this, "content"); // trigger - computed: false, optional: true, required: false this._trigger = new LogicAppWorkflowAccessControlTriggerOutputReference(this, "trigger"); // workflow_management - computed: false, optional: true, required: false this._workflowManagement = new LogicAppWorkflowAccessControlWorkflowManagementOutputReference(this, "workflow_management"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._action?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.action = this._action?.internalValue; } if (this._content?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.content = this._content?.internalValue; } if (this._trigger?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.trigger = this._trigger?.internalValue; } if (this._workflowManagement?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.workflowManagement = this._workflowManagement?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._action.internalValue = undefined; this._content.internalValue = undefined; this._trigger.internalValue = undefined; this._workflowManagement.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._action.internalValue = value.action; this._content.internalValue = value.content; this._trigger.internalValue = value.trigger; this._workflowManagement.internalValue = value.workflowManagement; } } get action() { return this._action; } putAction(value) { this._action.internalValue = value; } resetAction() { this._action.internalValue = undefined; } // Temporarily expose input value. Use with caution. get actionInput() { return this._action.internalValue; } get content() { return this._content; } putContent(value) { this._content.internalValue = value; } resetContent() { this._content.internalValue = undefined; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content.internalValue; } get trigger() { return this._trigger; } putTrigger(value) { this._trigger.internalValue = value; } resetTrigger() { this._trigger.internalValue = undefined; } // Temporarily expose input value. Use with caution. get triggerInput() { return this._trigger.internalValue; } get workflowManagement() { return this._workflowManagement; } putWorkflowManagement(value) { this._workflowManagement.internalValue = value; } resetWorkflowManagement() { this._workflowManagement.internalValue = undefined; } // Temporarily expose input value. Use with caution. get workflowManagementInput() { return this._workflowManagement.internalValue; } } exports.LogicAppWorkflowAccessControlOutputReference = LogicAppWorkflowAccessControlOutputReference; _j = JSII_RTTI_SYMBOL_1; LogicAppWorkflowAccessControlOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowAccessControlOutputReference", version: "12.27.0" }; function logicAppWorkflowIdentityToTerraform(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.logicAppWorkflowIdentityToTerraform = logicAppWorkflowIdentityToTerraform; function logicAppWorkflowIdentityToHclTerraform(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.logicAppWorkflowIdentityToHclTerraform = logicAppWorkflowIdentityToHclTerraform; class LogicAppWorkflowIdentityOutputReference 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.LogicAppWorkflowIdentityOutputReference = LogicAppWorkflowIdentityOutputReference; _k = JSII_RTTI_SYMBOL_1; LogicAppWorkflowIdentityOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowIdentityOutputReference", version: "12.27.0" }; function logicAppWorkflowTimeoutsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), read: cdktf.stringToTerraform(struct.read), update: cdktf.stringToTerraform(struct.update), }; } exports.logicAppWorkflowTimeoutsToTerraform = logicAppWorkflowTimeoutsToTerraform; function logicAppWorkflowTimeoutsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, read: { value: cdktf.stringToHclTerraform(struct.read), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.logicAppWorkflowTimeoutsToHclTerraform = logicAppWorkflowTimeoutsToHclTerraform; class LogicAppWorkflowTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._read = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._read = value.read; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.LogicAppWorkflowTimeoutsOutputReference = LogicAppWorkflowTimeoutsOutputReference; _l = JSII_RTTI_SYMBOL_1; LogicAppWorkflowTimeoutsOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.logicAppWorkflow.LogicAppWorkflowTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/logic_app_workflow azurerm_logic_app_workflow} */ class LogicAppWorkflow extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a LogicAppWorkflow resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the LogicAppWorkflow to import * @param importFromId The id of the existing LogicAppWorkflow that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/logic_app_workflow#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the LogicAppWorkflow to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_logic_app_workflow", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/logic_app_workflow azurerm_logic_app_workflow} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options LogicAppWorkflowConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_logic_app_workflow', terraformGeneratorMetadata: { providerName: 'azurerm', providerVersion: '3.116.0', providerVersionConstraint: '~> 3.10' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // access_control - computed: false, optional: true, required: false this._accessControl = new LogicAppWorkflowAccessControlOutputReference(this, "access_control"); // identity - computed: false, optional: true, required: false this._identity = new LogicAppWorkflowIdentityOutputReference(this, "identity"); // timeouts - computed: false, optional: true, required: false this._timeouts = new LogicAppWorkflowTimeoutsOutputReference(this, "timeouts"); this._enabled = config.enabled; this._id = config.id; this._integrationServiceEnvironmentId = config.integrationServiceEnvironmentId; this._location = config.location; this._logicAppIntegrationAccountId = config.logicAppIntegrationAccountId; this._name = config.name; this._parameters = config.parameters; this._resourceGroupName = config.resourceGroupName; this._tags = config.tags; this._workflowParameters = config.workflowParameters; this._workflowSchema = config.workflowSchema; this._workflowVersion = config.workflowVersion; this._accessControl.internalValue = config.accessControl; this._identity.internalValue = config.identity; this._timeouts.internalValue = config.timeouts; } // ==========