UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,107 lines 257 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; Object.defineProperty(exports, "__esModule", { value: true }); exports.SentinelAlertRuleNrt = exports.SentinelAlertRuleNrtTimeoutsOutputReference = exports.sentinelAlertRuleNrtTimeoutsToHclTerraform = exports.sentinelAlertRuleNrtTimeoutsToTerraform = exports.SentinelAlertRuleNrtSentinelEntityMappingList = exports.SentinelAlertRuleNrtSentinelEntityMappingOutputReference = exports.sentinelAlertRuleNrtSentinelEntityMappingToHclTerraform = exports.sentinelAlertRuleNrtSentinelEntityMappingToTerraform = exports.SentinelAlertRuleNrtIncidentOutputReference = exports.sentinelAlertRuleNrtIncidentToHclTerraform = exports.sentinelAlertRuleNrtIncidentToTerraform = exports.SentinelAlertRuleNrtIncidentGroupingOutputReference = exports.sentinelAlertRuleNrtIncidentGroupingToHclTerraform = exports.sentinelAlertRuleNrtIncidentGroupingToTerraform = exports.SentinelAlertRuleNrtEventGroupingOutputReference = exports.sentinelAlertRuleNrtEventGroupingToHclTerraform = exports.sentinelAlertRuleNrtEventGroupingToTerraform = exports.SentinelAlertRuleNrtEntityMappingList = exports.SentinelAlertRuleNrtEntityMappingOutputReference = exports.sentinelAlertRuleNrtEntityMappingToHclTerraform = exports.sentinelAlertRuleNrtEntityMappingToTerraform = exports.SentinelAlertRuleNrtEntityMappingFieldMappingList = exports.SentinelAlertRuleNrtEntityMappingFieldMappingOutputReference = exports.sentinelAlertRuleNrtEntityMappingFieldMappingToHclTerraform = exports.sentinelAlertRuleNrtEntityMappingFieldMappingToTerraform = exports.SentinelAlertRuleNrtAlertDetailsOverrideList = exports.SentinelAlertRuleNrtAlertDetailsOverrideOutputReference = exports.sentinelAlertRuleNrtAlertDetailsOverrideToHclTerraform = exports.sentinelAlertRuleNrtAlertDetailsOverrideToTerraform = exports.SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList = exports.SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyOutputReference = exports.sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToHclTerraform = exports.sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { name: cdktf.stringToTerraform(struct.name), value: cdktf.stringToTerraform(struct.value), }; } exports.sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToTerraform = sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToTerraform; function sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToHclTerraform = sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToHclTerraform; class SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._value = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._name = value.name; this._value = value.value; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyOutputReference = SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyOutputReference; _a = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyOutputReference", version: "12.27.0" }; class SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList 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 SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList = SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList; _b = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList[_b] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList", version: "12.27.0" }; function sentinelAlertRuleNrtAlertDetailsOverrideToTerraform(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 { description_format: cdktf.stringToTerraform(struct.descriptionFormat), display_name_format: cdktf.stringToTerraform(struct.displayNameFormat), severity_column_name: cdktf.stringToTerraform(struct.severityColumnName), tactics_column_name: cdktf.stringToTerraform(struct.tacticsColumnName), dynamic_property: cdktf.listMapper(sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToTerraform, true)(struct.dynamicProperty), }; } exports.sentinelAlertRuleNrtAlertDetailsOverrideToTerraform = sentinelAlertRuleNrtAlertDetailsOverrideToTerraform; function sentinelAlertRuleNrtAlertDetailsOverrideToHclTerraform(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 = { description_format: { value: cdktf.stringToHclTerraform(struct.descriptionFormat), isBlock: false, type: "simple", storageClassType: "string", }, display_name_format: { value: cdktf.stringToHclTerraform(struct.displayNameFormat), isBlock: false, type: "simple", storageClassType: "string", }, severity_column_name: { value: cdktf.stringToHclTerraform(struct.severityColumnName), isBlock: false, type: "simple", storageClassType: "string", }, tactics_column_name: { value: cdktf.stringToHclTerraform(struct.tacticsColumnName), isBlock: false, type: "simple", storageClassType: "string", }, dynamic_property: { value: cdktf.listMapperHcl(sentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyToHclTerraform, true)(struct.dynamicProperty), isBlock: true, type: "list", storageClassType: "SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtAlertDetailsOverrideToHclTerraform = sentinelAlertRuleNrtAlertDetailsOverrideToHclTerraform; class SentinelAlertRuleNrtAlertDetailsOverrideOutputReference 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; // dynamic_property - computed: false, optional: true, required: false this._dynamicProperty = new SentinelAlertRuleNrtAlertDetailsOverrideDynamicPropertyList(this, "dynamic_property", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._descriptionFormat !== undefined) { hasAnyValues = true; internalValueResult.descriptionFormat = this._descriptionFormat; } if (this._displayNameFormat !== undefined) { hasAnyValues = true; internalValueResult.displayNameFormat = this._displayNameFormat; } if (this._severityColumnName !== undefined) { hasAnyValues = true; internalValueResult.severityColumnName = this._severityColumnName; } if (this._tacticsColumnName !== undefined) { hasAnyValues = true; internalValueResult.tacticsColumnName = this._tacticsColumnName; } if (this._dynamicProperty?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dynamicProperty = this._dynamicProperty?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._descriptionFormat = undefined; this._displayNameFormat = undefined; this._severityColumnName = undefined; this._tacticsColumnName = undefined; this._dynamicProperty.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._descriptionFormat = value.descriptionFormat; this._displayNameFormat = value.displayNameFormat; this._severityColumnName = value.severityColumnName; this._tacticsColumnName = value.tacticsColumnName; this._dynamicProperty.internalValue = value.dynamicProperty; } } get descriptionFormat() { return this.getStringAttribute('description_format'); } set descriptionFormat(value) { this._descriptionFormat = value; } resetDescriptionFormat() { this._descriptionFormat = undefined; } // Temporarily expose input value. Use with caution. get descriptionFormatInput() { return this._descriptionFormat; } get displayNameFormat() { return this.getStringAttribute('display_name_format'); } set displayNameFormat(value) { this._displayNameFormat = value; } resetDisplayNameFormat() { this._displayNameFormat = undefined; } // Temporarily expose input value. Use with caution. get displayNameFormatInput() { return this._displayNameFormat; } get severityColumnName() { return this.getStringAttribute('severity_column_name'); } set severityColumnName(value) { this._severityColumnName = value; } resetSeverityColumnName() { this._severityColumnName = undefined; } // Temporarily expose input value. Use with caution. get severityColumnNameInput() { return this._severityColumnName; } get tacticsColumnName() { return this.getStringAttribute('tactics_column_name'); } set tacticsColumnName(value) { this._tacticsColumnName = value; } resetTacticsColumnName() { this._tacticsColumnName = undefined; } // Temporarily expose input value. Use with caution. get tacticsColumnNameInput() { return this._tacticsColumnName; } get dynamicProperty() { return this._dynamicProperty; } putDynamicProperty(value) { this._dynamicProperty.internalValue = value; } resetDynamicProperty() { this._dynamicProperty.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dynamicPropertyInput() { return this._dynamicProperty.internalValue; } } exports.SentinelAlertRuleNrtAlertDetailsOverrideOutputReference = SentinelAlertRuleNrtAlertDetailsOverrideOutputReference; _c = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtAlertDetailsOverrideOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtAlertDetailsOverrideOutputReference", version: "12.27.0" }; class SentinelAlertRuleNrtAlertDetailsOverrideList 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 SentinelAlertRuleNrtAlertDetailsOverrideOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleNrtAlertDetailsOverrideList = SentinelAlertRuleNrtAlertDetailsOverrideList; _d = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtAlertDetailsOverrideList[_d] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtAlertDetailsOverrideList", version: "12.27.0" }; function sentinelAlertRuleNrtEntityMappingFieldMappingToTerraform(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 { column_name: cdktf.stringToTerraform(struct.columnName), identifier: cdktf.stringToTerraform(struct.identifier), }; } exports.sentinelAlertRuleNrtEntityMappingFieldMappingToTerraform = sentinelAlertRuleNrtEntityMappingFieldMappingToTerraform; function sentinelAlertRuleNrtEntityMappingFieldMappingToHclTerraform(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 = { column_name: { value: cdktf.stringToHclTerraform(struct.columnName), isBlock: false, type: "simple", storageClassType: "string", }, identifier: { value: cdktf.stringToHclTerraform(struct.identifier), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtEntityMappingFieldMappingToHclTerraform = sentinelAlertRuleNrtEntityMappingFieldMappingToHclTerraform; class SentinelAlertRuleNrtEntityMappingFieldMappingOutputReference 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._columnName !== undefined) { hasAnyValues = true; internalValueResult.columnName = this._columnName; } if (this._identifier !== undefined) { hasAnyValues = true; internalValueResult.identifier = this._identifier; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._columnName = undefined; this._identifier = 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._columnName = value.columnName; this._identifier = value.identifier; } } get columnName() { return this.getStringAttribute('column_name'); } set columnName(value) { this._columnName = value; } // Temporarily expose input value. Use with caution. get columnNameInput() { return this._columnName; } get identifier() { return this.getStringAttribute('identifier'); } set identifier(value) { this._identifier = value; } // Temporarily expose input value. Use with caution. get identifierInput() { return this._identifier; } } exports.SentinelAlertRuleNrtEntityMappingFieldMappingOutputReference = SentinelAlertRuleNrtEntityMappingFieldMappingOutputReference; _e = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtEntityMappingFieldMappingOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtEntityMappingFieldMappingOutputReference", version: "12.27.0" }; class SentinelAlertRuleNrtEntityMappingFieldMappingList 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 SentinelAlertRuleNrtEntityMappingFieldMappingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleNrtEntityMappingFieldMappingList = SentinelAlertRuleNrtEntityMappingFieldMappingList; _f = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtEntityMappingFieldMappingList[_f] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtEntityMappingFieldMappingList", version: "12.27.0" }; function sentinelAlertRuleNrtEntityMappingToTerraform(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 { entity_type: cdktf.stringToTerraform(struct.entityType), field_mapping: cdktf.listMapper(sentinelAlertRuleNrtEntityMappingFieldMappingToTerraform, true)(struct.fieldMapping), }; } exports.sentinelAlertRuleNrtEntityMappingToTerraform = sentinelAlertRuleNrtEntityMappingToTerraform; function sentinelAlertRuleNrtEntityMappingToHclTerraform(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 = { entity_type: { value: cdktf.stringToHclTerraform(struct.entityType), isBlock: false, type: "simple", storageClassType: "string", }, field_mapping: { value: cdktf.listMapperHcl(sentinelAlertRuleNrtEntityMappingFieldMappingToHclTerraform, true)(struct.fieldMapping), isBlock: true, type: "list", storageClassType: "SentinelAlertRuleNrtEntityMappingFieldMappingList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtEntityMappingToHclTerraform = sentinelAlertRuleNrtEntityMappingToHclTerraform; class SentinelAlertRuleNrtEntityMappingOutputReference 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; // field_mapping - computed: false, optional: false, required: true this._fieldMapping = new SentinelAlertRuleNrtEntityMappingFieldMappingList(this, "field_mapping", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._entityType !== undefined) { hasAnyValues = true; internalValueResult.entityType = this._entityType; } if (this._fieldMapping?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.fieldMapping = this._fieldMapping?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._entityType = undefined; this._fieldMapping.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._entityType = value.entityType; this._fieldMapping.internalValue = value.fieldMapping; } } get entityType() { return this.getStringAttribute('entity_type'); } set entityType(value) { this._entityType = value; } // Temporarily expose input value. Use with caution. get entityTypeInput() { return this._entityType; } get fieldMapping() { return this._fieldMapping; } putFieldMapping(value) { this._fieldMapping.internalValue = value; } // Temporarily expose input value. Use with caution. get fieldMappingInput() { return this._fieldMapping.internalValue; } } exports.SentinelAlertRuleNrtEntityMappingOutputReference = SentinelAlertRuleNrtEntityMappingOutputReference; _g = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtEntityMappingOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtEntityMappingOutputReference", version: "12.27.0" }; class SentinelAlertRuleNrtEntityMappingList 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 SentinelAlertRuleNrtEntityMappingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleNrtEntityMappingList = SentinelAlertRuleNrtEntityMappingList; _h = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtEntityMappingList[_h] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtEntityMappingList", version: "12.27.0" }; function sentinelAlertRuleNrtEventGroupingToTerraform(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 { aggregation_method: cdktf.stringToTerraform(struct.aggregationMethod), }; } exports.sentinelAlertRuleNrtEventGroupingToTerraform = sentinelAlertRuleNrtEventGroupingToTerraform; function sentinelAlertRuleNrtEventGroupingToHclTerraform(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 = { aggregation_method: { value: cdktf.stringToHclTerraform(struct.aggregationMethod), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtEventGroupingToHclTerraform = sentinelAlertRuleNrtEventGroupingToHclTerraform; class SentinelAlertRuleNrtEventGroupingOutputReference 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._aggregationMethod !== undefined) { hasAnyValues = true; internalValueResult.aggregationMethod = this._aggregationMethod; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._aggregationMethod = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._aggregationMethod = value.aggregationMethod; } } get aggregationMethod() { return this.getStringAttribute('aggregation_method'); } set aggregationMethod(value) { this._aggregationMethod = value; } // Temporarily expose input value. Use with caution. get aggregationMethodInput() { return this._aggregationMethod; } } exports.SentinelAlertRuleNrtEventGroupingOutputReference = SentinelAlertRuleNrtEventGroupingOutputReference; _j = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtEventGroupingOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtEventGroupingOutputReference", version: "12.27.0" }; function sentinelAlertRuleNrtIncidentGroupingToTerraform(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 { by_alert_details: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.byAlertDetails), by_custom_details: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.byCustomDetails), by_entities: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.byEntities), enabled: cdktf.booleanToTerraform(struct.enabled), entity_matching_method: cdktf.stringToTerraform(struct.entityMatchingMethod), lookback_duration: cdktf.stringToTerraform(struct.lookbackDuration), reopen_closed_incidents: cdktf.booleanToTerraform(struct.reopenClosedIncidents), }; } exports.sentinelAlertRuleNrtIncidentGroupingToTerraform = sentinelAlertRuleNrtIncidentGroupingToTerraform; function sentinelAlertRuleNrtIncidentGroupingToHclTerraform(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 = { by_alert_details: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.byAlertDetails), isBlock: false, type: "list", storageClassType: "stringList", }, by_custom_details: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.byCustomDetails), isBlock: false, type: "list", storageClassType: "stringList", }, by_entities: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.byEntities), isBlock: false, type: "list", storageClassType: "stringList", }, enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, entity_matching_method: { value: cdktf.stringToHclTerraform(struct.entityMatchingMethod), isBlock: false, type: "simple", storageClassType: "string", }, lookback_duration: { value: cdktf.stringToHclTerraform(struct.lookbackDuration), isBlock: false, type: "simple", storageClassType: "string", }, reopen_closed_incidents: { value: cdktf.booleanToHclTerraform(struct.reopenClosedIncidents), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtIncidentGroupingToHclTerraform = sentinelAlertRuleNrtIncidentGroupingToHclTerraform; class SentinelAlertRuleNrtIncidentGroupingOutputReference 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._byAlertDetails !== undefined) { hasAnyValues = true; internalValueResult.byAlertDetails = this._byAlertDetails; } if (this._byCustomDetails !== undefined) { hasAnyValues = true; internalValueResult.byCustomDetails = this._byCustomDetails; } if (this._byEntities !== undefined) { hasAnyValues = true; internalValueResult.byEntities = this._byEntities; } if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._entityMatchingMethod !== undefined) { hasAnyValues = true; internalValueResult.entityMatchingMethod = this._entityMatchingMethod; } if (this._lookbackDuration !== undefined) { hasAnyValues = true; internalValueResult.lookbackDuration = this._lookbackDuration; } if (this._reopenClosedIncidents !== undefined) { hasAnyValues = true; internalValueResult.reopenClosedIncidents = this._reopenClosedIncidents; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._byAlertDetails = undefined; this._byCustomDetails = undefined; this._byEntities = undefined; this._enabled = undefined; this._entityMatchingMethod = undefined; this._lookbackDuration = undefined; this._reopenClosedIncidents = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._byAlertDetails = value.byAlertDetails; this._byCustomDetails = value.byCustomDetails; this._byEntities = value.byEntities; this._enabled = value.enabled; this._entityMatchingMethod = value.entityMatchingMethod; this._lookbackDuration = value.lookbackDuration; this._reopenClosedIncidents = value.reopenClosedIncidents; } } get byAlertDetails() { return this.getListAttribute('by_alert_details'); } set byAlertDetails(value) { this._byAlertDetails = value; } resetByAlertDetails() { this._byAlertDetails = undefined; } // Temporarily expose input value. Use with caution. get byAlertDetailsInput() { return this._byAlertDetails; } get byCustomDetails() { return this.getListAttribute('by_custom_details'); } set byCustomDetails(value) { this._byCustomDetails = value; } resetByCustomDetails() { this._byCustomDetails = undefined; } // Temporarily expose input value. Use with caution. get byCustomDetailsInput() { return this._byCustomDetails; } get byEntities() { return this.getListAttribute('by_entities'); } set byEntities(value) { this._byEntities = value; } resetByEntities() { this._byEntities = undefined; } // Temporarily expose input value. Use with caution. get byEntitiesInput() { return this._byEntities; } 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 entityMatchingMethod() { return this.getStringAttribute('entity_matching_method'); } set entityMatchingMethod(value) { this._entityMatchingMethod = value; } resetEntityMatchingMethod() { this._entityMatchingMethod = undefined; } // Temporarily expose input value. Use with caution. get entityMatchingMethodInput() { return this._entityMatchingMethod; } get lookbackDuration() { return this.getStringAttribute('lookback_duration'); } set lookbackDuration(value) { this._lookbackDuration = value; } resetLookbackDuration() { this._lookbackDuration = undefined; } // Temporarily expose input value. Use with caution. get lookbackDurationInput() { return this._lookbackDuration; } get reopenClosedIncidents() { return this.getBooleanAttribute('reopen_closed_incidents'); } set reopenClosedIncidents(value) { this._reopenClosedIncidents = value; } resetReopenClosedIncidents() { this._reopenClosedIncidents = undefined; } // Temporarily expose input value. Use with caution. get reopenClosedIncidentsInput() { return this._reopenClosedIncidents; } } exports.SentinelAlertRuleNrtIncidentGroupingOutputReference = SentinelAlertRuleNrtIncidentGroupingOutputReference; _k = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtIncidentGroupingOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtIncidentGroupingOutputReference", version: "12.27.0" }; function sentinelAlertRuleNrtIncidentToTerraform(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_incident_enabled: cdktf.booleanToTerraform(struct.createIncidentEnabled), grouping: sentinelAlertRuleNrtIncidentGroupingToTerraform(struct.grouping), }; } exports.sentinelAlertRuleNrtIncidentToTerraform = sentinelAlertRuleNrtIncidentToTerraform; function sentinelAlertRuleNrtIncidentToHclTerraform(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_incident_enabled: { value: cdktf.booleanToHclTerraform(struct.createIncidentEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, grouping: { value: sentinelAlertRuleNrtIncidentGroupingToHclTerraform(struct.grouping), isBlock: true, type: "list", storageClassType: "SentinelAlertRuleNrtIncidentGroupingList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtIncidentToHclTerraform = sentinelAlertRuleNrtIncidentToHclTerraform; class SentinelAlertRuleNrtIncidentOutputReference 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; // grouping - computed: false, optional: false, required: true this._grouping = new SentinelAlertRuleNrtIncidentGroupingOutputReference(this, "grouping"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._createIncidentEnabled !== undefined) { hasAnyValues = true; internalValueResult.createIncidentEnabled = this._createIncidentEnabled; } if (this._grouping?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.grouping = this._grouping?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._createIncidentEnabled = undefined; this._grouping.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._createIncidentEnabled = value.createIncidentEnabled; this._grouping.internalValue = value.grouping; } } get createIncidentEnabled() { return this.getBooleanAttribute('create_incident_enabled'); } set createIncidentEnabled(value) { this._createIncidentEnabled = value; } // Temporarily expose input value. Use with caution. get createIncidentEnabledInput() { return this._createIncidentEnabled; } get grouping() { return this._grouping; } putGrouping(value) { this._grouping.internalValue = value; } // Temporarily expose input value. Use with caution. get groupingInput() { return this._grouping.internalValue; } } exports.SentinelAlertRuleNrtIncidentOutputReference = SentinelAlertRuleNrtIncidentOutputReference; _l = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtIncidentOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtIncidentOutputReference", version: "12.27.0" }; function sentinelAlertRuleNrtSentinelEntityMappingToTerraform(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 { column_name: cdktf.stringToTerraform(struct.columnName), }; } exports.sentinelAlertRuleNrtSentinelEntityMappingToTerraform = sentinelAlertRuleNrtSentinelEntityMappingToTerraform; function sentinelAlertRuleNrtSentinelEntityMappingToHclTerraform(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 = { column_name: { value: cdktf.stringToHclTerraform(struct.columnName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleNrtSentinelEntityMappingToHclTerraform = sentinelAlertRuleNrtSentinelEntityMappingToHclTerraform; class SentinelAlertRuleNrtSentinelEntityMappingOutputReference 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._columnName !== undefined) { hasAnyValues = true; internalValueResult.columnName = this._columnName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._columnName = 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._columnName = value.columnName; } } get columnName() { return this.getStringAttribute('column_name'); } set columnName(value) { this._columnName = value; } // Temporarily expose input value. Use with caution. get columnNameInput() { return this._columnName; } } exports.SentinelAlertRuleNrtSentinelEntityMappingOutputReference = SentinelAlertRuleNrtSentinelEntityMappingOutputReference; _m = JSII_RTTI_SYMBOL_1; SentinelAlertRuleNrtSentinelEntityMappingOutputReference[_m] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleNrt.SentinelAlertRuleNrtSentinelEntityMappingOutputReference", version: "12.27.0" }; class SentinelAlertRuleNrtSentinelEntityMappingList 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 = terraformAttri