@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,120 lines • 245 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MonitorActionRuleSuppression = exports.MonitorActionRuleSuppressionTimeoutsOutputReference = exports.monitorActionRuleSuppressionTimeoutsToHclTerraform = exports.monitorActionRuleSuppressionTimeoutsToTerraform = exports.MonitorActionRuleSuppressionSuppressionOutputReference = exports.monitorActionRuleSuppressionSuppressionToHclTerraform = exports.monitorActionRuleSuppressionSuppressionToTerraform = exports.MonitorActionRuleSuppressionSuppressionScheduleOutputReference = exports.monitorActionRuleSuppressionSuppressionScheduleToHclTerraform = exports.monitorActionRuleSuppressionSuppressionScheduleToTerraform = exports.MonitorActionRuleSuppressionScopeOutputReference = exports.monitorActionRuleSuppressionScopeToHclTerraform = exports.monitorActionRuleSuppressionScopeToTerraform = exports.MonitorActionRuleSuppressionConditionOutputReference = exports.monitorActionRuleSuppressionConditionToHclTerraform = exports.monitorActionRuleSuppressionConditionToTerraform = exports.MonitorActionRuleSuppressionConditionTargetResourceTypeOutputReference = exports.monitorActionRuleSuppressionConditionTargetResourceTypeToHclTerraform = exports.monitorActionRuleSuppressionConditionTargetResourceTypeToTerraform = exports.MonitorActionRuleSuppressionConditionSeverityOutputReference = exports.monitorActionRuleSuppressionConditionSeverityToHclTerraform = exports.monitorActionRuleSuppressionConditionSeverityToTerraform = exports.MonitorActionRuleSuppressionConditionMonitorServiceOutputReference = exports.monitorActionRuleSuppressionConditionMonitorServiceToHclTerraform = exports.monitorActionRuleSuppressionConditionMonitorServiceToTerraform = exports.MonitorActionRuleSuppressionConditionMonitorOutputReference = exports.monitorActionRuleSuppressionConditionMonitorToHclTerraform = exports.monitorActionRuleSuppressionConditionMonitorToTerraform = exports.MonitorActionRuleSuppressionConditionDescriptionOutputReference = exports.monitorActionRuleSuppressionConditionDescriptionToHclTerraform = exports.monitorActionRuleSuppressionConditionDescriptionToTerraform = exports.MonitorActionRuleSuppressionConditionAlertRuleIdOutputReference = exports.monitorActionRuleSuppressionConditionAlertRuleIdToHclTerraform = exports.monitorActionRuleSuppressionConditionAlertRuleIdToTerraform = exports.MonitorActionRuleSuppressionConditionAlertContextOutputReference = exports.monitorActionRuleSuppressionConditionAlertContextToHclTerraform = exports.monitorActionRuleSuppressionConditionAlertContextToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function monitorActionRuleSuppressionConditionAlertContextToTerraform(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.monitorActionRuleSuppressionConditionAlertContextToTerraform = monitorActionRuleSuppressionConditionAlertContextToTerraform;
function monitorActionRuleSuppressionConditionAlertContextToHclTerraform(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.monitorActionRuleSuppressionConditionAlertContextToHclTerraform = monitorActionRuleSuppressionConditionAlertContextToHclTerraform;
class MonitorActionRuleSuppressionConditionAlertContextOutputReference 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.MonitorActionRuleSuppressionConditionAlertContextOutputReference = MonitorActionRuleSuppressionConditionAlertContextOutputReference;
_a = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionAlertContextOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionAlertContextOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionConditionAlertRuleIdToTerraform(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.monitorActionRuleSuppressionConditionAlertRuleIdToTerraform = monitorActionRuleSuppressionConditionAlertRuleIdToTerraform;
function monitorActionRuleSuppressionConditionAlertRuleIdToHclTerraform(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.monitorActionRuleSuppressionConditionAlertRuleIdToHclTerraform = monitorActionRuleSuppressionConditionAlertRuleIdToHclTerraform;
class MonitorActionRuleSuppressionConditionAlertRuleIdOutputReference 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.MonitorActionRuleSuppressionConditionAlertRuleIdOutputReference = MonitorActionRuleSuppressionConditionAlertRuleIdOutputReference;
_b = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionAlertRuleIdOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionAlertRuleIdOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionConditionDescriptionToTerraform(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.monitorActionRuleSuppressionConditionDescriptionToTerraform = monitorActionRuleSuppressionConditionDescriptionToTerraform;
function monitorActionRuleSuppressionConditionDescriptionToHclTerraform(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.monitorActionRuleSuppressionConditionDescriptionToHclTerraform = monitorActionRuleSuppressionConditionDescriptionToHclTerraform;
class MonitorActionRuleSuppressionConditionDescriptionOutputReference 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.MonitorActionRuleSuppressionConditionDescriptionOutputReference = MonitorActionRuleSuppressionConditionDescriptionOutputReference;
_c = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionDescriptionOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionDescriptionOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionConditionMonitorToTerraform(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.monitorActionRuleSuppressionConditionMonitorToTerraform = monitorActionRuleSuppressionConditionMonitorToTerraform;
function monitorActionRuleSuppressionConditionMonitorToHclTerraform(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.monitorActionRuleSuppressionConditionMonitorToHclTerraform = monitorActionRuleSuppressionConditionMonitorToHclTerraform;
class MonitorActionRuleSuppressionConditionMonitorOutputReference 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.MonitorActionRuleSuppressionConditionMonitorOutputReference = MonitorActionRuleSuppressionConditionMonitorOutputReference;
_d = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionMonitorOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionMonitorOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionConditionMonitorServiceToTerraform(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.monitorActionRuleSuppressionConditionMonitorServiceToTerraform = monitorActionRuleSuppressionConditionMonitorServiceToTerraform;
function monitorActionRuleSuppressionConditionMonitorServiceToHclTerraform(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.monitorActionRuleSuppressionConditionMonitorServiceToHclTerraform = monitorActionRuleSuppressionConditionMonitorServiceToHclTerraform;
class MonitorActionRuleSuppressionConditionMonitorServiceOutputReference 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.MonitorActionRuleSuppressionConditionMonitorServiceOutputReference = MonitorActionRuleSuppressionConditionMonitorServiceOutputReference;
_e = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionMonitorServiceOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionMonitorServiceOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionConditionSeverityToTerraform(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.monitorActionRuleSuppressionConditionSeverityToTerraform = monitorActionRuleSuppressionConditionSeverityToTerraform;
function monitorActionRuleSuppressionConditionSeverityToHclTerraform(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.monitorActionRuleSuppressionConditionSeverityToHclTerraform = monitorActionRuleSuppressionConditionSeverityToHclTerraform;
class MonitorActionRuleSuppressionConditionSeverityOutputReference 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.MonitorActionRuleSuppressionConditionSeverityOutputReference = MonitorActionRuleSuppressionConditionSeverityOutputReference;
_f = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionSeverityOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionSeverityOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionConditionTargetResourceTypeToTerraform(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.monitorActionRuleSuppressionConditionTargetResourceTypeToTerraform = monitorActionRuleSuppressionConditionTargetResourceTypeToTerraform;
function monitorActionRuleSuppressionConditionTargetResourceTypeToHclTerraform(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.monitorActionRuleSuppressionConditionTargetResourceTypeToHclTerraform = monitorActionRuleSuppressionConditionTargetResourceTypeToHclTerraform;
class MonitorActionRuleSuppressionConditionTargetResourceTypeOutputReference 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.MonitorActionRuleSuppressionConditionTargetResourceTypeOutputReference = MonitorActionRuleSuppressionConditionTargetResourceTypeOutputReference;
_g = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionTargetResourceTypeOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionTargetResourceTypeOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionConditionToTerraform(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: monitorActionRuleSuppressionConditionAlertContextToTerraform(struct.alertContext),
alert_rule_id: monitorActionRuleSuppressionConditionAlertRuleIdToTerraform(struct.alertRuleId),
description: monitorActionRuleSuppressionConditionDescriptionToTerraform(struct.description),
monitor: monitorActionRuleSuppressionConditionMonitorToTerraform(struct.monitor),
monitor_service: monitorActionRuleSuppressionConditionMonitorServiceToTerraform(struct.monitorService),
severity: monitorActionRuleSuppressionConditionSeverityToTerraform(struct.severity),
target_resource_type: monitorActionRuleSuppressionConditionTargetResourceTypeToTerraform(struct.targetResourceType),
};
}
exports.monitorActionRuleSuppressionConditionToTerraform = monitorActionRuleSuppressionConditionToTerraform;
function monitorActionRuleSuppressionConditionToHclTerraform(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: monitorActionRuleSuppressionConditionAlertContextToHclTerraform(struct.alertContext),
isBlock: true,
type: "list",
storageClassType: "MonitorActionRuleSuppressionConditionAlertContextList",
},
alert_rule_id: {
value: monitorActionRuleSuppressionConditionAlertRuleIdToHclTerraform(struct.alertRuleId),
isBlock: true,
type: "list",
storageClassType: "MonitorActionRuleSuppressionConditionAlertRuleIdList",
},
description: {
value: monitorActionRuleSuppressionConditionDescriptionToHclTerraform(struct.description),
isBlock: true,
type: "list",
storageClassType: "MonitorActionRuleSuppressionConditionDescriptionList",
},
monitor: {
value: monitorActionRuleSuppressionConditionMonitorToHclTerraform(struct.monitor),
isBlock: true,
type: "list",
storageClassType: "MonitorActionRuleSuppressionConditionMonitorList",
},
monitor_service: {
value: monitorActionRuleSuppressionConditionMonitorServiceToHclTerraform(struct.monitorService),
isBlock: true,
type: "list",
storageClassType: "MonitorActionRuleSuppressionConditionMonitorServiceList",
},
severity: {
value: monitorActionRuleSuppressionConditionSeverityToHclTerraform(struct.severity),
isBlock: true,
type: "list",
storageClassType: "MonitorActionRuleSuppressionConditionSeverityList",
},
target_resource_type: {
value: monitorActionRuleSuppressionConditionTargetResourceTypeToHclTerraform(struct.targetResourceType),
isBlock: true,
type: "list",
storageClassType: "MonitorActionRuleSuppressionConditionTargetResourceTypeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionRuleSuppressionConditionToHclTerraform = monitorActionRuleSuppressionConditionToHclTerraform;
class MonitorActionRuleSuppressionConditionOutputReference 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 MonitorActionRuleSuppressionConditionAlertContextOutputReference(this, "alert_context");
// alert_rule_id - computed: false, optional: true, required: false
this._alertRuleId = new MonitorActionRuleSuppressionConditionAlertRuleIdOutputReference(this, "alert_rule_id");
// description - computed: false, optional: true, required: false
this._description = new MonitorActionRuleSuppressionConditionDescriptionOutputReference(this, "description");
// monitor - computed: false, optional: true, required: false
this._monitor = new MonitorActionRuleSuppressionConditionMonitorOutputReference(this, "monitor");
// monitor_service - computed: false, optional: true, required: false
this._monitorService = new MonitorActionRuleSuppressionConditionMonitorServiceOutputReference(this, "monitor_service");
// severity - computed: false, optional: true, required: false
this._severity = new MonitorActionRuleSuppressionConditionSeverityOutputReference(this, "severity");
// target_resource_type - computed: false, optional: true, required: false
this._targetResourceType = new MonitorActionRuleSuppressionConditionTargetResourceTypeOutputReference(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.MonitorActionRuleSuppressionConditionOutputReference = MonitorActionRuleSuppressionConditionOutputReference;
_h = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionConditionOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionConditionOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionScopeToTerraform(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.monitorActionRuleSuppressionScopeToTerraform = monitorActionRuleSuppressionScopeToTerraform;
function monitorActionRuleSuppressionScopeToHclTerraform(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.monitorActionRuleSuppressionScopeToHclTerraform = monitorActionRuleSuppressionScopeToHclTerraform;
class MonitorActionRuleSuppressionScopeOutputReference 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.MonitorActionRuleSuppressionScopeOutputReference = MonitorActionRuleSuppressionScopeOutputReference;
_j = JSII_RTTI_SYMBOL_1;
MonitorActionRuleSuppressionScopeOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.monitorActionRuleSuppression.MonitorActionRuleSuppressionScopeOutputReference", version: "12.27.0" };
function monitorActionRuleSuppressionSuppressionScheduleToTerraform(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 {
end_date_utc: cdktf.stringToTerraform(struct.endDateUtc),
recurrence_monthly: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.recurrenceMonthly),
recurrence_weekly: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.recurrenceWeekly),
start_date_utc: cdktf.stringToTerraform(struct.startDateUtc),
};
}
exports.monitorActionRuleSuppressionSuppressionScheduleToTerraform = monitorActionRuleSuppressionSuppressionScheduleToTerraform;
function monitorActionRuleSuppressionSuppressionScheduleToHclTerraform(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 = {
end_date_utc: {
value: cdktf.stringToHclTerraform(struct.endDateUtc),
isBlock: false,
type: "simple",
storageClassType: "string",
},
recurrence_monthly: {
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.recurrenceMonthly),
isBlock: false,
type: "set",
storageClassType: "numberList",
},
recurrence_weekly: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.recurrenceWeekly),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
start_date_utc: {
value: cdktf.stringToHclTerraform(struct.startDateUtc),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionRuleSuppressionSuppressionScheduleToHclTerraform = monitorActionRuleSuppressionSuppressionScheduleToHclTerraform;
class MonitorActionRuleSuppressionSuppressionScheduleOutputReference 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._endDateUtc !== undefined) {
hasAnyValues = true;
internalValueResult.endDateUtc = this._endDateUtc;
}
if (this._recurrenceMonthly !== undefined) {
hasAnyValues = true;
internalValueResult.recurrenceMonthly = this._recurrenceMonthly;
}
if (this._recurrenceWeekly !== undefined) {
hasAnyValues = true;
internalValueResult.recurrenceWeekly = this._recurrenceWeekly;
}
if (this._startDateUtc !== undefined) {
hasAnyValues = true;
internalValueResult.startDateUtc = this._startDateUtc;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._endDateUtc = undefined;
this._recurrenceMonthly = undefined;
this._recurrenceWeekly = undefined;
this._startDateUtc = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._endDateUtc = value.endDateUtc;
this._recurrenceMonthly = value.recurrenceMonthly;
this._recurrenceWeekly = value.recurrenceWeekly;
this._startDateUtc = value.startDateUtc;
}
}
get endDateUtc() {
return this.getStringAttribute('en