UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,138 lines 292 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; Object.defineProperty(exports, "__esModule", { value: true }); exports.CdnFrontdoorFirewallPolicy = exports.CdnFrontdoorFirewallPolicyTimeoutsOutputReference = exports.cdnFrontdoorFirewallPolicyTimeoutsToHclTerraform = exports.cdnFrontdoorFirewallPolicyTimeoutsToTerraform = exports.CdnFrontdoorFirewallPolicyManagedRuleList = exports.CdnFrontdoorFirewallPolicyManagedRuleOutputReference = exports.cdnFrontdoorFirewallPolicyManagedRuleToHclTerraform = exports.cdnFrontdoorFirewallPolicyManagedRuleToTerraform = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideList = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideOutputReference = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideToHclTerraform = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideToTerraform = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleList = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleOutputReference = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToHclTerraform = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToTerraform = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionOutputReference = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToHclTerraform = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToTerraform = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionList = exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionOutputReference = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToHclTerraform = exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToTerraform = exports.CdnFrontdoorFirewallPolicyManagedRuleExclusionList = exports.CdnFrontdoorFirewallPolicyManagedRuleExclusionOutputReference = exports.cdnFrontdoorFirewallPolicyManagedRuleExclusionToHclTerraform = exports.cdnFrontdoorFirewallPolicyManagedRuleExclusionToTerraform = exports.CdnFrontdoorFirewallPolicyCustomRuleList = exports.CdnFrontdoorFirewallPolicyCustomRuleOutputReference = exports.cdnFrontdoorFirewallPolicyCustomRuleToHclTerraform = exports.cdnFrontdoorFirewallPolicyCustomRuleToTerraform = exports.CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList = exports.CdnFrontdoorFirewallPolicyCustomRuleMatchConditionOutputReference = exports.cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToHclTerraform = exports.cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToTerraform(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 { match_values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.matchValues), match_variable: cdktf.stringToTerraform(struct.matchVariable), negation_condition: cdktf.booleanToTerraform(struct.negationCondition), operator: cdktf.stringToTerraform(struct.operator), selector: cdktf.stringToTerraform(struct.selector), transforms: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.transforms), }; } exports.cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToTerraform = cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToTerraform; function cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToHclTerraform(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 = { match_values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.matchValues), isBlock: false, type: "list", storageClassType: "stringList", }, match_variable: { value: cdktf.stringToHclTerraform(struct.matchVariable), isBlock: false, type: "simple", storageClassType: "string", }, negation_condition: { value: cdktf.booleanToHclTerraform(struct.negationCondition), isBlock: false, type: "simple", storageClassType: "boolean", }, operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, selector: { value: cdktf.stringToHclTerraform(struct.selector), isBlock: false, type: "simple", storageClassType: "string", }, transforms: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.transforms), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToHclTerraform = cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToHclTerraform; class CdnFrontdoorFirewallPolicyCustomRuleMatchConditionOutputReference 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._matchValues !== undefined) { hasAnyValues = true; internalValueResult.matchValues = this._matchValues; } if (this._matchVariable !== undefined) { hasAnyValues = true; internalValueResult.matchVariable = this._matchVariable; } if (this._negationCondition !== undefined) { hasAnyValues = true; internalValueResult.negationCondition = this._negationCondition; } if (this._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._selector !== undefined) { hasAnyValues = true; internalValueResult.selector = this._selector; } if (this._transforms !== undefined) { hasAnyValues = true; internalValueResult.transforms = this._transforms; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._matchValues = undefined; this._matchVariable = undefined; this._negationCondition = undefined; this._operator = undefined; this._selector = undefined; this._transforms = 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._matchValues = value.matchValues; this._matchVariable = value.matchVariable; this._negationCondition = value.negationCondition; this._operator = value.operator; this._selector = value.selector; this._transforms = value.transforms; } } get matchValues() { return this.getListAttribute('match_values'); } set matchValues(value) { this._matchValues = value; } // Temporarily expose input value. Use with caution. get matchValuesInput() { return this._matchValues; } get matchVariable() { return this.getStringAttribute('match_variable'); } set matchVariable(value) { this._matchVariable = value; } // Temporarily expose input value. Use with caution. get matchVariableInput() { return this._matchVariable; } get negationCondition() { return this.getBooleanAttribute('negation_condition'); } set negationCondition(value) { this._negationCondition = value; } resetNegationCondition() { this._negationCondition = undefined; } // Temporarily expose input value. Use with caution. get negationConditionInput() { return this._negationCondition; } get operator() { return this.getStringAttribute('operator'); } set operator(value) { this._operator = value; } // Temporarily expose input value. Use with caution. get operatorInput() { return this._operator; } get selector() { return this.getStringAttribute('selector'); } set selector(value) { this._selector = value; } resetSelector() { this._selector = undefined; } // Temporarily expose input value. Use with caution. get selectorInput() { return this._selector; } get transforms() { return this.getListAttribute('transforms'); } set transforms(value) { this._transforms = value; } resetTransforms() { this._transforms = undefined; } // Temporarily expose input value. Use with caution. get transformsInput() { return this._transforms; } } exports.CdnFrontdoorFirewallPolicyCustomRuleMatchConditionOutputReference = CdnFrontdoorFirewallPolicyCustomRuleMatchConditionOutputReference; _a = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyCustomRuleMatchConditionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyCustomRuleMatchConditionOutputReference", version: "12.27.0" }; class CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList 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 CdnFrontdoorFirewallPolicyCustomRuleMatchConditionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList = CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList; _b = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList[_b] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList", version: "12.27.0" }; function cdnFrontdoorFirewallPolicyCustomRuleToTerraform(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), enabled: cdktf.booleanToTerraform(struct.enabled), name: cdktf.stringToTerraform(struct.name), priority: cdktf.numberToTerraform(struct.priority), rate_limit_duration_in_minutes: cdktf.numberToTerraform(struct.rateLimitDurationInMinutes), rate_limit_threshold: cdktf.numberToTerraform(struct.rateLimitThreshold), type: cdktf.stringToTerraform(struct.type), match_condition: cdktf.listMapper(cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToTerraform, true)(struct.matchCondition), }; } exports.cdnFrontdoorFirewallPolicyCustomRuleToTerraform = cdnFrontdoorFirewallPolicyCustomRuleToTerraform; function cdnFrontdoorFirewallPolicyCustomRuleToHclTerraform(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", }, enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, priority: { value: cdktf.numberToHclTerraform(struct.priority), isBlock: false, type: "simple", storageClassType: "number", }, rate_limit_duration_in_minutes: { value: cdktf.numberToHclTerraform(struct.rateLimitDurationInMinutes), isBlock: false, type: "simple", storageClassType: "number", }, rate_limit_threshold: { value: cdktf.numberToHclTerraform(struct.rateLimitThreshold), isBlock: false, type: "simple", storageClassType: "number", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, match_condition: { value: cdktf.listMapperHcl(cdnFrontdoorFirewallPolicyCustomRuleMatchConditionToHclTerraform, true)(struct.matchCondition), isBlock: true, type: "list", storageClassType: "CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cdnFrontdoorFirewallPolicyCustomRuleToHclTerraform = cdnFrontdoorFirewallPolicyCustomRuleToHclTerraform; class CdnFrontdoorFirewallPolicyCustomRuleOutputReference 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; // match_condition - computed: false, optional: true, required: false this._matchCondition = new CdnFrontdoorFirewallPolicyCustomRuleMatchConditionList(this, "match_condition", 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._priority !== undefined) { hasAnyValues = true; internalValueResult.priority = this._priority; } if (this._rateLimitDurationInMinutes !== undefined) { hasAnyValues = true; internalValueResult.rateLimitDurationInMinutes = this._rateLimitDurationInMinutes; } if (this._rateLimitThreshold !== undefined) { hasAnyValues = true; internalValueResult.rateLimitThreshold = this._rateLimitThreshold; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._matchCondition?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.matchCondition = this._matchCondition?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._action = undefined; this._enabled = undefined; this._name = undefined; this._priority = undefined; this._rateLimitDurationInMinutes = undefined; this._rateLimitThreshold = undefined; this._type = undefined; this._matchCondition.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._action = value.action; this._enabled = value.enabled; this._name = value.name; this._priority = value.priority; this._rateLimitDurationInMinutes = value.rateLimitDurationInMinutes; this._rateLimitThreshold = value.rateLimitThreshold; this._type = value.type; this._matchCondition.internalValue = value.matchCondition; } } 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 enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } 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 priority() { return this.getNumberAttribute('priority'); } set priority(value) { this._priority = value; } resetPriority() { this._priority = undefined; } // Temporarily expose input value. Use with caution. get priorityInput() { return this._priority; } get rateLimitDurationInMinutes() { return this.getNumberAttribute('rate_limit_duration_in_minutes'); } set rateLimitDurationInMinutes(value) { this._rateLimitDurationInMinutes = value; } resetRateLimitDurationInMinutes() { this._rateLimitDurationInMinutes = undefined; } // Temporarily expose input value. Use with caution. get rateLimitDurationInMinutesInput() { return this._rateLimitDurationInMinutes; } get rateLimitThreshold() { return this.getNumberAttribute('rate_limit_threshold'); } set rateLimitThreshold(value) { this._rateLimitThreshold = value; } resetRateLimitThreshold() { this._rateLimitThreshold = undefined; } // Temporarily expose input value. Use with caution. get rateLimitThresholdInput() { return this._rateLimitThreshold; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get matchCondition() { return this._matchCondition; } putMatchCondition(value) { this._matchCondition.internalValue = value; } resetMatchCondition() { this._matchCondition.internalValue = undefined; } // Temporarily expose input value. Use with caution. get matchConditionInput() { return this._matchCondition.internalValue; } } exports.CdnFrontdoorFirewallPolicyCustomRuleOutputReference = CdnFrontdoorFirewallPolicyCustomRuleOutputReference; _c = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyCustomRuleOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyCustomRuleOutputReference", version: "12.27.0" }; class CdnFrontdoorFirewallPolicyCustomRuleList 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 CdnFrontdoorFirewallPolicyCustomRuleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CdnFrontdoorFirewallPolicyCustomRuleList = CdnFrontdoorFirewallPolicyCustomRuleList; _d = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyCustomRuleList[_d] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyCustomRuleList", version: "12.27.0" }; function cdnFrontdoorFirewallPolicyManagedRuleExclusionToTerraform(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 { match_variable: cdktf.stringToTerraform(struct.matchVariable), operator: cdktf.stringToTerraform(struct.operator), selector: cdktf.stringToTerraform(struct.selector), }; } exports.cdnFrontdoorFirewallPolicyManagedRuleExclusionToTerraform = cdnFrontdoorFirewallPolicyManagedRuleExclusionToTerraform; function cdnFrontdoorFirewallPolicyManagedRuleExclusionToHclTerraform(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 = { match_variable: { value: cdktf.stringToHclTerraform(struct.matchVariable), isBlock: false, type: "simple", storageClassType: "string", }, operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, selector: { value: cdktf.stringToHclTerraform(struct.selector), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cdnFrontdoorFirewallPolicyManagedRuleExclusionToHclTerraform = cdnFrontdoorFirewallPolicyManagedRuleExclusionToHclTerraform; class CdnFrontdoorFirewallPolicyManagedRuleExclusionOutputReference 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._matchVariable !== undefined) { hasAnyValues = true; internalValueResult.matchVariable = this._matchVariable; } if (this._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._selector !== undefined) { hasAnyValues = true; internalValueResult.selector = this._selector; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._matchVariable = undefined; this._operator = undefined; this._selector = 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._matchVariable = value.matchVariable; this._operator = value.operator; this._selector = value.selector; } } get matchVariable() { return this.getStringAttribute('match_variable'); } set matchVariable(value) { this._matchVariable = value; } // Temporarily expose input value. Use with caution. get matchVariableInput() { return this._matchVariable; } get operator() { return this.getStringAttribute('operator'); } set operator(value) { this._operator = value; } // Temporarily expose input value. Use with caution. get operatorInput() { return this._operator; } get selector() { return this.getStringAttribute('selector'); } set selector(value) { this._selector = value; } // Temporarily expose input value. Use with caution. get selectorInput() { return this._selector; } } exports.CdnFrontdoorFirewallPolicyManagedRuleExclusionOutputReference = CdnFrontdoorFirewallPolicyManagedRuleExclusionOutputReference; _e = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyManagedRuleExclusionOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyManagedRuleExclusionOutputReference", version: "12.27.0" }; class CdnFrontdoorFirewallPolicyManagedRuleExclusionList 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 CdnFrontdoorFirewallPolicyManagedRuleExclusionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CdnFrontdoorFirewallPolicyManagedRuleExclusionList = CdnFrontdoorFirewallPolicyManagedRuleExclusionList; _f = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyManagedRuleExclusionList[_f] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyManagedRuleExclusionList", version: "12.27.0" }; function cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToTerraform(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 { match_variable: cdktf.stringToTerraform(struct.matchVariable), operator: cdktf.stringToTerraform(struct.operator), selector: cdktf.stringToTerraform(struct.selector), }; } exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToTerraform = cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToTerraform; function cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToHclTerraform(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 = { match_variable: { value: cdktf.stringToHclTerraform(struct.matchVariable), isBlock: false, type: "simple", storageClassType: "string", }, operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, selector: { value: cdktf.stringToHclTerraform(struct.selector), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToHclTerraform = cdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionToHclTerraform; class CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionOutputReference 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._matchVariable !== undefined) { hasAnyValues = true; internalValueResult.matchVariable = this._matchVariable; } if (this._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._selector !== undefined) { hasAnyValues = true; internalValueResult.selector = this._selector; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._matchVariable = undefined; this._operator = undefined; this._selector = 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._matchVariable = value.matchVariable; this._operator = value.operator; this._selector = value.selector; } } get matchVariable() { return this.getStringAttribute('match_variable'); } set matchVariable(value) { this._matchVariable = value; } // Temporarily expose input value. Use with caution. get matchVariableInput() { return this._matchVariable; } get operator() { return this.getStringAttribute('operator'); } set operator(value) { this._operator = value; } // Temporarily expose input value. Use with caution. get operatorInput() { return this._operator; } get selector() { return this.getStringAttribute('selector'); } set selector(value) { this._selector = value; } // Temporarily expose input value. Use with caution. get selectorInput() { return this._selector; } } exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionOutputReference = CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionOutputReference; _g = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionOutputReference", version: "12.27.0" }; class CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionList 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 CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionList = CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionList; _h = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionList[_h] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyManagedRuleOverrideExclusionList", version: "12.27.0" }; function cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToTerraform(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 { match_variable: cdktf.stringToTerraform(struct.matchVariable), operator: cdktf.stringToTerraform(struct.operator), selector: cdktf.stringToTerraform(struct.selector), }; } exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToTerraform = cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToTerraform; function cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToHclTerraform(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 = { match_variable: { value: cdktf.stringToHclTerraform(struct.matchVariable), isBlock: false, type: "simple", storageClassType: "string", }, operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, selector: { value: cdktf.stringToHclTerraform(struct.selector), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToHclTerraform = cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToHclTerraform; class CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionOutputReference 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._matchVariable !== undefined) { hasAnyValues = true; internalValueResult.matchVariable = this._matchVariable; } if (this._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._selector !== undefined) { hasAnyValues = true; internalValueResult.selector = this._selector; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._matchVariable = undefined; this._operator = undefined; this._selector = 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._matchVariable = value.matchVariable; this._operator = value.operator; this._selector = value.selector; } } get matchVariable() { return this.getStringAttribute('match_variable'); } set matchVariable(value) { this._matchVariable = value; } // Temporarily expose input value. Use with caution. get matchVariableInput() { return this._matchVariable; } get operator() { return this.getStringAttribute('operator'); } set operator(value) { this._operator = value; } // Temporarily expose input value. Use with caution. get operatorInput() { return this._operator; } get selector() { return this.getStringAttribute('selector'); } set selector(value) { this._selector = value; } // Temporarily expose input value. Use with caution. get selectorInput() { return this._selector; } } exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionOutputReference = CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionOutputReference; _j = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionOutputReference", version: "12.27.0" }; class CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList 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 CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList = CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList; _k = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList[_k] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList", version: "12.27.0" }; function cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToTerraform(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), enabled: cdktf.booleanToTerraform(struct.enabled), rule_id: cdktf.stringToTerraform(struct.ruleId), exclusion: cdktf.listMapper(cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToTerraform, true)(struct.exclusion), }; } exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToTerraform = cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToTerraform; function cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToHclTerraform(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", }, enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, rule_id: { value: cdktf.stringToHclTerraform(struct.ruleId), isBlock: false, type: "simple", storageClassType: "string", }, exclusion: { value: cdktf.listMapperHcl(cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionToHclTerraform, true)(struct.exclusion), isBlock: true, type: "list", storageClassType: "CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToHclTerraform = cdnFrontdoorFirewallPolicyManagedRuleOverrideRuleToHclTerraform; class CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleOutputReference 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; // exclusion - computed: false, optional: true, required: false this._exclusion = new CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleExclusionList(this, "exclusion", 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._ruleId !== undefined) { hasAnyValues = true; internalValueResult.ruleId = this._ruleId; } if (this._exclusion?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.exclusion = this._exclusion?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._action = undefined; this._enabled = undefined; this._ruleId = undefined; this._exclusion.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._action = value.action; this._enabled = value.enabled; this._ruleId = value.ruleId; this._exclusion.internalValue = value.exclusion; } } 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 enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } get ruleId() { return this.getStringAttribute('rule_id'); } set ruleId(value) { this._ruleId = value; } // Temporarily expose input value. Use with caution. get ruleIdInput() { return this._ruleId; } get exclusion() { return this._exclusion; } putExclusion(value) { this._exclusion.internalValue = value; } resetExclusion() { this._exclusion.internalValue = undefined; } // Temporarily expose input value. Use with caution. get exclusionInput() { return this._exclusion.internalValue; } } exports.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleOutputReference = CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleOutputReference; _l = JSII_RTTI_SYMBOL_1; CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.cdnFrontdoorFirewallPolicy.CdnFrontdoorFirewallPolicyManagedRuleOverrideRuleOutputReference", version: "12.27.0" }; class CdnFrontdoorFirewallPolicyManagedRuleOve