UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,155 lines 208 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; Object.defineProperty(exports, "__esModule", { value: true }); exports.MonitorActionRuleActionGroup = exports.MonitorActionRuleActionGroupTimeoutsOutputReference = exports.monitorActionRuleActionGroupTimeoutsToHclTerraform = exports.monitorActionRuleActionGroupTimeoutsToTerraform = exports.MonitorActionRuleActionGroupScopeOutputReference = exports.monitorActionRuleActionGroupScopeToHclTerraform = exports.monitorActionRuleActionGroupScopeToTerraform = exports.MonitorActionRuleActionGroupConditionOutputReference = exports.monitorActionRuleActionGroupConditionToHclTerraform = exports.monitorActionRuleActionGroupConditionToTerraform = exports.MonitorActionRuleActionGroupConditionTargetResourceTypeOutputReference = exports.monitorActionRuleActionGroupConditionTargetResourceTypeToHclTerraform = exports.monitorActionRuleActionGroupConditionTargetResourceTypeToTerraform = exports.MonitorActionRuleActionGroupConditionSeverityOutputReference = exports.monitorActionRuleActionGroupConditionSeverityToHclTerraform = exports.monitorActionRuleActionGroupConditionSeverityToTerraform = exports.MonitorActionRuleActionGroupConditionMonitorServiceOutputReference = exports.monitorActionRuleActionGroupConditionMonitorServiceToHclTerraform = exports.monitorActionRuleActionGroupConditionMonitorServiceToTerraform = exports.MonitorActionRuleActionGroupConditionMonitorOutputReference = exports.monitorActionRuleActionGroupConditionMonitorToHclTerraform = exports.monitorActionRuleActionGroupConditionMonitorToTerraform = exports.MonitorActionRuleActionGroupConditionDescriptionOutputReference = exports.monitorActionRuleActionGroupConditionDescriptionToHclTerraform = exports.monitorActionRuleActionGroupConditionDescriptionToTerraform = exports.MonitorActionRuleActionGroupConditionAlertRuleIdOutputReference = exports.monitorActionRuleActionGroupConditionAlertRuleIdToHclTerraform = exports.monitorActionRuleActionGroupConditionAlertRuleIdToTerraform = exports.MonitorActionRuleActionGroupConditionAlertContextOutputReference = exports.monitorActionRuleActionGroupConditionAlertContextToHclTerraform = exports.monitorActionRuleActionGroupConditionAlertContextToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function monitorActionRuleActionGroupConditionAlertContextToTerraform(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 { operator: cdktf.stringToTerraform(struct.operator), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.monitorActionRuleActionGroupConditionAlertContextToTerraform = monitorActionRuleActionGroupConditionAlertContextToTerraform; function monitorActionRuleActionGroupConditionAlertContextToHclTerraform(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 = { operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionAlertContextToHclTerraform = monitorActionRuleActionGroupConditionAlertContextToHclTerraform; class MonitorActionRuleActionGroupConditionAlertContextOutputReference 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._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._operator = undefined; this._values = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._operator = value.operator; this._values = value.values; } } 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 values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.MonitorActionRuleActionGroupConditionAlertContextOutputReference = MonitorActionRuleActionGroupConditionAlertContextOutputReference; _a = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionAlertContextOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionAlertContextOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupConditionAlertRuleIdToTerraform(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 { operator: cdktf.stringToTerraform(struct.operator), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.monitorActionRuleActionGroupConditionAlertRuleIdToTerraform = monitorActionRuleActionGroupConditionAlertRuleIdToTerraform; function monitorActionRuleActionGroupConditionAlertRuleIdToHclTerraform(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 = { operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionAlertRuleIdToHclTerraform = monitorActionRuleActionGroupConditionAlertRuleIdToHclTerraform; class MonitorActionRuleActionGroupConditionAlertRuleIdOutputReference 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._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._operator = undefined; this._values = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._operator = value.operator; this._values = value.values; } } 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 values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.MonitorActionRuleActionGroupConditionAlertRuleIdOutputReference = MonitorActionRuleActionGroupConditionAlertRuleIdOutputReference; _b = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionAlertRuleIdOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionAlertRuleIdOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupConditionDescriptionToTerraform(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 { operator: cdktf.stringToTerraform(struct.operator), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.monitorActionRuleActionGroupConditionDescriptionToTerraform = monitorActionRuleActionGroupConditionDescriptionToTerraform; function monitorActionRuleActionGroupConditionDescriptionToHclTerraform(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 = { operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionDescriptionToHclTerraform = monitorActionRuleActionGroupConditionDescriptionToHclTerraform; class MonitorActionRuleActionGroupConditionDescriptionOutputReference 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._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._operator = undefined; this._values = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._operator = value.operator; this._values = value.values; } } 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 values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.MonitorActionRuleActionGroupConditionDescriptionOutputReference = MonitorActionRuleActionGroupConditionDescriptionOutputReference; _c = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionDescriptionOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionDescriptionOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupConditionMonitorToTerraform(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 { operator: cdktf.stringToTerraform(struct.operator), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.monitorActionRuleActionGroupConditionMonitorToTerraform = monitorActionRuleActionGroupConditionMonitorToTerraform; function monitorActionRuleActionGroupConditionMonitorToHclTerraform(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 = { operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionMonitorToHclTerraform = monitorActionRuleActionGroupConditionMonitorToHclTerraform; class MonitorActionRuleActionGroupConditionMonitorOutputReference 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._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._operator = undefined; this._values = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._operator = value.operator; this._values = value.values; } } 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 values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.MonitorActionRuleActionGroupConditionMonitorOutputReference = MonitorActionRuleActionGroupConditionMonitorOutputReference; _d = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionMonitorOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionMonitorOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupConditionMonitorServiceToTerraform(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 { operator: cdktf.stringToTerraform(struct.operator), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.monitorActionRuleActionGroupConditionMonitorServiceToTerraform = monitorActionRuleActionGroupConditionMonitorServiceToTerraform; function monitorActionRuleActionGroupConditionMonitorServiceToHclTerraform(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 = { operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionMonitorServiceToHclTerraform = monitorActionRuleActionGroupConditionMonitorServiceToHclTerraform; class MonitorActionRuleActionGroupConditionMonitorServiceOutputReference 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._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._operator = undefined; this._values = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._operator = value.operator; this._values = value.values; } } 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 values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.MonitorActionRuleActionGroupConditionMonitorServiceOutputReference = MonitorActionRuleActionGroupConditionMonitorServiceOutputReference; _e = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionMonitorServiceOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionMonitorServiceOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupConditionSeverityToTerraform(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 { operator: cdktf.stringToTerraform(struct.operator), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.monitorActionRuleActionGroupConditionSeverityToTerraform = monitorActionRuleActionGroupConditionSeverityToTerraform; function monitorActionRuleActionGroupConditionSeverityToHclTerraform(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 = { operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionSeverityToHclTerraform = monitorActionRuleActionGroupConditionSeverityToHclTerraform; class MonitorActionRuleActionGroupConditionSeverityOutputReference 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._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._operator = undefined; this._values = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._operator = value.operator; this._values = value.values; } } 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 values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.MonitorActionRuleActionGroupConditionSeverityOutputReference = MonitorActionRuleActionGroupConditionSeverityOutputReference; _f = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionSeverityOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionSeverityOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupConditionTargetResourceTypeToTerraform(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 { operator: cdktf.stringToTerraform(struct.operator), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.monitorActionRuleActionGroupConditionTargetResourceTypeToTerraform = monitorActionRuleActionGroupConditionTargetResourceTypeToTerraform; function monitorActionRuleActionGroupConditionTargetResourceTypeToHclTerraform(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 = { operator: { value: cdktf.stringToHclTerraform(struct.operator), isBlock: false, type: "simple", storageClassType: "string", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionTargetResourceTypeToHclTerraform = monitorActionRuleActionGroupConditionTargetResourceTypeToHclTerraform; class MonitorActionRuleActionGroupConditionTargetResourceTypeOutputReference 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._operator !== undefined) { hasAnyValues = true; internalValueResult.operator = this._operator; } if (this._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._operator = undefined; this._values = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._operator = value.operator; this._values = value.values; } } 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 values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.MonitorActionRuleActionGroupConditionTargetResourceTypeOutputReference = MonitorActionRuleActionGroupConditionTargetResourceTypeOutputReference; _g = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionTargetResourceTypeOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionTargetResourceTypeOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupConditionToTerraform(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 { alert_context: monitorActionRuleActionGroupConditionAlertContextToTerraform(struct.alertContext), alert_rule_id: monitorActionRuleActionGroupConditionAlertRuleIdToTerraform(struct.alertRuleId), description: monitorActionRuleActionGroupConditionDescriptionToTerraform(struct.description), monitor: monitorActionRuleActionGroupConditionMonitorToTerraform(struct.monitor), monitor_service: monitorActionRuleActionGroupConditionMonitorServiceToTerraform(struct.monitorService), severity: monitorActionRuleActionGroupConditionSeverityToTerraform(struct.severity), target_resource_type: monitorActionRuleActionGroupConditionTargetResourceTypeToTerraform(struct.targetResourceType), }; } exports.monitorActionRuleActionGroupConditionToTerraform = monitorActionRuleActionGroupConditionToTerraform; function monitorActionRuleActionGroupConditionToHclTerraform(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 = { alert_context: { value: monitorActionRuleActionGroupConditionAlertContextToHclTerraform(struct.alertContext), isBlock: true, type: "list", storageClassType: "MonitorActionRuleActionGroupConditionAlertContextList", }, alert_rule_id: { value: monitorActionRuleActionGroupConditionAlertRuleIdToHclTerraform(struct.alertRuleId), isBlock: true, type: "list", storageClassType: "MonitorActionRuleActionGroupConditionAlertRuleIdList", }, description: { value: monitorActionRuleActionGroupConditionDescriptionToHclTerraform(struct.description), isBlock: true, type: "list", storageClassType: "MonitorActionRuleActionGroupConditionDescriptionList", }, monitor: { value: monitorActionRuleActionGroupConditionMonitorToHclTerraform(struct.monitor), isBlock: true, type: "list", storageClassType: "MonitorActionRuleActionGroupConditionMonitorList", }, monitor_service: { value: monitorActionRuleActionGroupConditionMonitorServiceToHclTerraform(struct.monitorService), isBlock: true, type: "list", storageClassType: "MonitorActionRuleActionGroupConditionMonitorServiceList", }, severity: { value: monitorActionRuleActionGroupConditionSeverityToHclTerraform(struct.severity), isBlock: true, type: "list", storageClassType: "MonitorActionRuleActionGroupConditionSeverityList", }, target_resource_type: { value: monitorActionRuleActionGroupConditionTargetResourceTypeToHclTerraform(struct.targetResourceType), isBlock: true, type: "list", storageClassType: "MonitorActionRuleActionGroupConditionTargetResourceTypeList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.monitorActionRuleActionGroupConditionToHclTerraform = monitorActionRuleActionGroupConditionToHclTerraform; class MonitorActionRuleActionGroupConditionOutputReference 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; // alert_context - computed: false, optional: true, required: false this._alertContext = new MonitorActionRuleActionGroupConditionAlertContextOutputReference(this, "alert_context"); // alert_rule_id - computed: false, optional: true, required: false this._alertRuleId = new MonitorActionRuleActionGroupConditionAlertRuleIdOutputReference(this, "alert_rule_id"); // description - computed: false, optional: true, required: false this._description = new MonitorActionRuleActionGroupConditionDescriptionOutputReference(this, "description"); // monitor - computed: false, optional: true, required: false this._monitor = new MonitorActionRuleActionGroupConditionMonitorOutputReference(this, "monitor"); // monitor_service - computed: false, optional: true, required: false this._monitorService = new MonitorActionRuleActionGroupConditionMonitorServiceOutputReference(this, "monitor_service"); // severity - computed: false, optional: true, required: false this._severity = new MonitorActionRuleActionGroupConditionSeverityOutputReference(this, "severity"); // target_resource_type - computed: false, optional: true, required: false this._targetResourceType = new MonitorActionRuleActionGroupConditionTargetResourceTypeOutputReference(this, "target_resource_type"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._alertContext?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.alertContext = this._alertContext?.internalValue; } if (this._alertRuleId?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.alertRuleId = this._alertRuleId?.internalValue; } if (this._description?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.description = this._description?.internalValue; } if (this._monitor?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.monitor = this._monitor?.internalValue; } if (this._monitorService?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.monitorService = this._monitorService?.internalValue; } if (this._severity?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.severity = this._severity?.internalValue; } if (this._targetResourceType?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.targetResourceType = this._targetResourceType?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._alertContext.internalValue = undefined; this._alertRuleId.internalValue = undefined; this._description.internalValue = undefined; this._monitor.internalValue = undefined; this._monitorService.internalValue = undefined; this._severity.internalValue = undefined; this._targetResourceType.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._alertContext.internalValue = value.alertContext; this._alertRuleId.internalValue = value.alertRuleId; this._description.internalValue = value.description; this._monitor.internalValue = value.monitor; this._monitorService.internalValue = value.monitorService; this._severity.internalValue = value.severity; this._targetResourceType.internalValue = value.targetResourceType; } } get alertContext() { return this._alertContext; } putAlertContext(value) { this._alertContext.internalValue = value; } resetAlertContext() { this._alertContext.internalValue = undefined; } // Temporarily expose input value. Use with caution. get alertContextInput() { return this._alertContext.internalValue; } get alertRuleId() { return this._alertRuleId; } putAlertRuleId(value) { this._alertRuleId.internalValue = value; } resetAlertRuleId() { this._alertRuleId.internalValue = undefined; } // Temporarily expose input value. Use with caution. get alertRuleIdInput() { return this._alertRuleId.internalValue; } get description() { return this._description; } putDescription(value) { this._description.internalValue = value; } resetDescription() { this._description.internalValue = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description.internalValue; } get monitor() { return this._monitor; } putMonitor(value) { this._monitor.internalValue = value; } resetMonitor() { this._monitor.internalValue = undefined; } // Temporarily expose input value. Use with caution. get monitorInput() { return this._monitor.internalValue; } get monitorService() { return this._monitorService; } putMonitorService(value) { this._monitorService.internalValue = value; } resetMonitorService() { this._monitorService.internalValue = undefined; } // Temporarily expose input value. Use with caution. get monitorServiceInput() { return this._monitorService.internalValue; } get severity() { return this._severity; } putSeverity(value) { this._severity.internalValue = value; } resetSeverity() { this._severity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get severityInput() { return this._severity.internalValue; } get targetResourceType() { return this._targetResourceType; } putTargetResourceType(value) { this._targetResourceType.internalValue = value; } resetTargetResourceType() { this._targetResourceType.internalValue = undefined; } // Temporarily expose input value. Use with caution. get targetResourceTypeInput() { return this._targetResourceType.internalValue; } } exports.MonitorActionRuleActionGroupConditionOutputReference = MonitorActionRuleActionGroupConditionOutputReference; _h = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupConditionOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupConditionOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupScopeToTerraform(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 { resource_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.resourceIds), type: cdktf.stringToTerraform(struct.type), }; } exports.monitorActionRuleActionGroupScopeToTerraform = monitorActionRuleActionGroupScopeToTerraform; function monitorActionRuleActionGroupScopeToHclTerraform(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 = { resource_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.resourceIds), 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.monitorActionRuleActionGroupScopeToHclTerraform = monitorActionRuleActionGroupScopeToHclTerraform; class MonitorActionRuleActionGroupScopeOutputReference 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._resourceIds !== undefined) { hasAnyValues = true; internalValueResult.resourceIds = this._resourceIds; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._resourceIds = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._resourceIds = value.resourceIds; this._type = value.type; } } get resourceIds() { return cdktf.Fn.tolist(this.getListAttribute('resource_ids')); } set resourceIds(value) { this._resourceIds = value; } // Temporarily expose input value. Use with caution. get resourceIdsInput() { return this._resourceIds; } 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.MonitorActionRuleActionGroupScopeOutputReference = MonitorActionRuleActionGroupScopeOutputReference; _j = JSII_RTTI_SYMBOL_1; MonitorActionRuleActionGroupScopeOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleActionGroup.MonitorActionRuleActionGroupScopeOutputReference", version: "12.27.0" }; function monitorActionRuleActionGroupTimeoutsToTerraform(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.monitorActionRuleActionGroupTimeoutsToTerraform = monitorActionRuleActionGroupTimeoutsToTerraform; function monitorActionRuleActionGroupTimeoutsToHclTerraform(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.monitorActionRuleActionGroupTimeoutsToHclTerraform = monitorActionRuleActionGroupTimeoutsToHclTerraform; class MonitorActionRuleActionGroupTimeoutsOutputReference 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