UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,111 lines (1,110 loc) 169 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.SentinelAlertRuleAnomalyDuplicate = exports.SentinelAlertRuleAnomalyDuplicateTimeoutsOutputReference = exports.sentinelAlertRuleAnomalyDuplicateTimeoutsToHclTerraform = exports.sentinelAlertRuleAnomalyDuplicateTimeoutsToTerraform = exports.SentinelAlertRuleAnomalyDuplicateThresholdObservationList = exports.SentinelAlertRuleAnomalyDuplicateThresholdObservationOutputReference = exports.sentinelAlertRuleAnomalyDuplicateThresholdObservationToHclTerraform = exports.sentinelAlertRuleAnomalyDuplicateThresholdObservationToTerraform = exports.SentinelAlertRuleAnomalyDuplicateSingleSelectObservationList = exports.SentinelAlertRuleAnomalyDuplicateSingleSelectObservationOutputReference = exports.sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToHclTerraform = exports.sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToTerraform = exports.SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationList = exports.SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationOutputReference = exports.sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToHclTerraform = exports.sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToTerraform = exports.SentinelAlertRuleAnomalyDuplicateMultiSelectObservationList = exports.SentinelAlertRuleAnomalyDuplicateMultiSelectObservationOutputReference = exports.sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToHclTerraform = exports.sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToTerraform = exports.SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorList = exports.SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorOutputReference = exports.sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToHclTerraform = exports.sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToTerraform(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 {}; } exports.sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToTerraform = sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToTerraform; function sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToHclTerraform(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 = {}; return attrs; } exports.sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToHclTerraform = sentinelAlertRuleAnomalyDuplicateRequiredDataConnectorToHclTerraform; class SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorOutputReference 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() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // connector_id - computed: true, optional: false, required: false get connectorId() { return this.getStringAttribute('connector_id'); } // data_types - computed: true, optional: false, required: false get dataTypes() { return this.getListAttribute('data_types'); } } exports.SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorOutputReference = SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorOutputReference; _a = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorOutputReference", version: "12.27.0" }; class SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorList 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 SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorList = SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorList; _b = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorList[_b] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorList", version: "12.27.0" }; function sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToTerraform(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), values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values), }; } exports.sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToTerraform = sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToTerraform; function sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToHclTerraform(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", }, values: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToHclTerraform = sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToHclTerraform; class SentinelAlertRuleAnomalyDuplicateMultiSelectObservationOutputReference 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._values !== undefined) { hasAnyValues = true; internalValueResult.values = this._values; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._values = 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._values = value.values; } } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } // supported_values - computed: true, optional: false, required: false get supportedValues() { return this.getListAttribute('supported_values'); } get values() { return this.getListAttribute('values'); } set values(value) { this._values = value; } // Temporarily expose input value. Use with caution. get valuesInput() { return this._values; } } exports.SentinelAlertRuleAnomalyDuplicateMultiSelectObservationOutputReference = SentinelAlertRuleAnomalyDuplicateMultiSelectObservationOutputReference; _c = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateMultiSelectObservationOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateMultiSelectObservationOutputReference", version: "12.27.0" }; class SentinelAlertRuleAnomalyDuplicateMultiSelectObservationList 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 SentinelAlertRuleAnomalyDuplicateMultiSelectObservationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleAnomalyDuplicateMultiSelectObservationList = SentinelAlertRuleAnomalyDuplicateMultiSelectObservationList; _d = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateMultiSelectObservationList[_d] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateMultiSelectObservationList", version: "12.27.0" }; function sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToTerraform(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 { exclude: cdktf.stringToTerraform(struct.exclude), name: cdktf.stringToTerraform(struct.name), prioritize: cdktf.stringToTerraform(struct.prioritize), }; } exports.sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToTerraform = sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToTerraform; function sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToHclTerraform(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 = { exclude: { value: cdktf.stringToHclTerraform(struct.exclude), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, prioritize: { value: cdktf.stringToHclTerraform(struct.prioritize), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToHclTerraform = sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToHclTerraform; class SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationOutputReference 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._exclude !== undefined) { hasAnyValues = true; internalValueResult.exclude = this._exclude; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._prioritize !== undefined) { hasAnyValues = true; internalValueResult.prioritize = this._prioritize; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._exclude = undefined; this._name = undefined; this._prioritize = 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._exclude = value.exclude; this._name = value.name; this._prioritize = value.prioritize; } } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } get exclude() { return this.getStringAttribute('exclude'); } set exclude(value) { this._exclude = value; } resetExclude() { this._exclude = undefined; } // Temporarily expose input value. Use with caution. get excludeInput() { return this._exclude; } 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 prioritize() { return this.getStringAttribute('prioritize'); } set prioritize(value) { this._prioritize = value; } resetPrioritize() { this._prioritize = undefined; } // Temporarily expose input value. Use with caution. get prioritizeInput() { return this._prioritize; } } exports.SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationOutputReference = SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationOutputReference; _e = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationOutputReference", version: "12.27.0" }; class SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationList 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 SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationList = SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationList; _f = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationList[_f] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationList", version: "12.27.0" }; function sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToTerraform(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.sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToTerraform = sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToTerraform; function sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToHclTerraform(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.sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToHclTerraform = sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToHclTerraform; class SentinelAlertRuleAnomalyDuplicateSingleSelectObservationOutputReference 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; } } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } // supported_values - computed: true, optional: false, required: false get supportedValues() { return this.getListAttribute('supported_values'); } 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.SentinelAlertRuleAnomalyDuplicateSingleSelectObservationOutputReference = SentinelAlertRuleAnomalyDuplicateSingleSelectObservationOutputReference; _g = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateSingleSelectObservationOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateSingleSelectObservationOutputReference", version: "12.27.0" }; class SentinelAlertRuleAnomalyDuplicateSingleSelectObservationList 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 SentinelAlertRuleAnomalyDuplicateSingleSelectObservationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleAnomalyDuplicateSingleSelectObservationList = SentinelAlertRuleAnomalyDuplicateSingleSelectObservationList; _h = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateSingleSelectObservationList[_h] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateSingleSelectObservationList", version: "12.27.0" }; function sentinelAlertRuleAnomalyDuplicateThresholdObservationToTerraform(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.sentinelAlertRuleAnomalyDuplicateThresholdObservationToTerraform = sentinelAlertRuleAnomalyDuplicateThresholdObservationToTerraform; function sentinelAlertRuleAnomalyDuplicateThresholdObservationToHclTerraform(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.sentinelAlertRuleAnomalyDuplicateThresholdObservationToHclTerraform = sentinelAlertRuleAnomalyDuplicateThresholdObservationToHclTerraform; class SentinelAlertRuleAnomalyDuplicateThresholdObservationOutputReference 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; } } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } // max - computed: true, optional: false, required: false get max() { return this.getStringAttribute('max'); } // min - computed: true, optional: false, required: false get min() { return this.getStringAttribute('min'); } 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.SentinelAlertRuleAnomalyDuplicateThresholdObservationOutputReference = SentinelAlertRuleAnomalyDuplicateThresholdObservationOutputReference; _j = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateThresholdObservationOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateThresholdObservationOutputReference", version: "12.27.0" }; class SentinelAlertRuleAnomalyDuplicateThresholdObservationList 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 SentinelAlertRuleAnomalyDuplicateThresholdObservationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SentinelAlertRuleAnomalyDuplicateThresholdObservationList = SentinelAlertRuleAnomalyDuplicateThresholdObservationList; _k = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateThresholdObservationList[_k] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateThresholdObservationList", version: "12.27.0" }; function sentinelAlertRuleAnomalyDuplicateTimeoutsToTerraform(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.sentinelAlertRuleAnomalyDuplicateTimeoutsToTerraform = sentinelAlertRuleAnomalyDuplicateTimeoutsToTerraform; function sentinelAlertRuleAnomalyDuplicateTimeoutsToHclTerraform(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.sentinelAlertRuleAnomalyDuplicateTimeoutsToHclTerraform = sentinelAlertRuleAnomalyDuplicateTimeoutsToHclTerraform; class SentinelAlertRuleAnomalyDuplicateTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._read = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._read = value.read; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.SentinelAlertRuleAnomalyDuplicateTimeoutsOutputReference = SentinelAlertRuleAnomalyDuplicateTimeoutsOutputReference; _l = JSII_RTTI_SYMBOL_1; SentinelAlertRuleAnomalyDuplicateTimeoutsOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleAnomalyDuplicate.SentinelAlertRuleAnomalyDuplicateTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sentinel_alert_rule_anomaly_duplicate azurerm_sentinel_alert_rule_anomaly_duplicate} */ class SentinelAlertRuleAnomalyDuplicate extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a SentinelAlertRuleAnomalyDuplicate resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the SentinelAlertRuleAnomalyDuplicate to import * @param importFromId The id of the existing SentinelAlertRuleAnomalyDuplicate that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sentinel_alert_rule_anomaly_duplicate#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the SentinelAlertRuleAnomalyDuplicate to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_sentinel_alert_rule_anomaly_duplicate", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sentinel_alert_rule_anomaly_duplicate azurerm_sentinel_alert_rule_anomaly_duplicate} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options SentinelAlertRuleAnomalyDuplicateConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_sentinel_alert_rule_anomaly_duplicate', terraformGeneratorMetadata: { providerName: 'azurerm', providerVersion: '3.116.0', providerVersionConstraint: '~> 3.10' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // required_data_connector - computed: true, optional: false, required: false this._requiredDataConnector = new SentinelAlertRuleAnomalyDuplicateRequiredDataConnectorList(this, "required_data_connector", false); // multi_select_observation - computed: false, optional: true, required: false this._multiSelectObservation = new SentinelAlertRuleAnomalyDuplicateMultiSelectObservationList(this, "multi_select_observation", false); // prioritized_exclude_observation - computed: false, optional: true, required: false this._prioritizedExcludeObservation = new SentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationList(this, "prioritized_exclude_observation", false); // single_select_observation - computed: false, optional: true, required: false this._singleSelectObservation = new SentinelAlertRuleAnomalyDuplicateSingleSelectObservationList(this, "single_select_observation", false); // threshold_observation - computed: false, optional: true, required: false this._thresholdObservation = new SentinelAlertRuleAnomalyDuplicateThresholdObservationList(this, "threshold_observation", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new SentinelAlertRuleAnomalyDuplicateTimeoutsOutputReference(this, "timeouts"); this._builtInRuleId = config.builtInRuleId; this._displayName = config.displayName; this._enabled = config.enabled; this._id = config.id; this._logAnalyticsWorkspaceId = config.logAnalyticsWorkspaceId; this._mode = config.mode; this._multiSelectObservation.internalValue = config.multiSelectObservation; this._prioritizedExcludeObservation.internalValue = config.prioritizedExcludeObservation; this._singleSelectObservation.internalValue = config.singleSelectObservation; this._thresholdObservation.internalValue = config.thresholdObservation; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // anomaly_settings_version - computed: true, optional: false, required: false get anomalySettingsVersion() { return this.getNumberAttribute('anomaly_settings_version'); } // anomaly_version - computed: true, optional: false, required: false get anomalyVersion() { return this.getStringAttribute('anomaly_version'); } get builtInRuleId() { return this.getStringAttribute('built_in_rule_id'); } set builtInRuleId(value) { this._builtInRuleId = value; } // Temporarily expose input value. Use with caution. get builtInRuleIdInput() { return this._builtInRuleId; } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } // frequency - computed: true, optional: false, required: false get frequency() { return this.getStringAttribute('frequency'); } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } // is_default_settings - computed: true, optional: false, required: false get isDefaultSettings() { return this.getBooleanAttribute('is_default_settings'); } get logAnalyticsWorkspaceId() { return this.getStringAttribute('log_analytics_workspace_id'); } set logAnalyticsWorkspaceId(value) { this._logAnalyticsWorkspaceId = value; } // Temporarily expose input value. Use with caution. get logAnalyticsWorkspaceIdInput() { return this._logAnalyticsWorkspaceId; } get mode() { return this.getStringAttribute('mode'); } set mode(value) { this._mode = value; } // Temporarily expose input value. Use with caution. get modeInput() { return this._mode; } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } get requiredDataConnector() { return this._requiredDataConnector; } // settings_definition_id - computed: true, optional: false, required: false get settingsDefinitionId() { return this.getStringAttribute('settings_definition_id'); } // tactics - computed: true, optional: false, required: false get tactics() { return this.getListAttribute('tactics'); } // techniques - computed: true, optional: false, required: false get techniques() { return this.getListAttribute('techniques'); } get multiSelectObservation() { return this._multiSelectObservation; } putMultiSelectObservation(value) { this._multiSelectObservation.internalValue = value; } resetMultiSelectObservation() { this._multiSelectObservation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get multiSelectObservationInput() { return this._multiSelectObservation.internalValue; } get prioritizedExcludeObservation() { return this._prioritizedExcludeObservation; } putPrioritizedExcludeObservation(value) { this._prioritizedExcludeObservation.internalValue = value; } resetPrioritizedExcludeObservation() { this._prioritizedExcludeObservation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get prioritizedExcludeObservationInput() { return this._prioritizedExcludeObservation.internalValue; } get singleSelectObservation() { return this._singleSelectObservation; } putSingleSelectObservation(value) { this._singleSelectObservation.internalValue = value; } resetSingleSelectObservation() { this._singleSelectObservation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get singleSelectObservationInput() { return this._singleSelectObservation.internalValue; } get thresholdObservation() { return this._thresholdObservation; } putThresholdObservation(value) { this._thresholdObservation.internalValue = value; } resetThresholdObservation() { this._thresholdObservation.internalValue = undefined; } // Temporarily expose input value. Use with caution. get thresholdObservationInput() { return this._thresholdObservation.internalValue; } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { built_in_rule_id: cdktf.stringToTerraform(this._builtInRuleId), display_name: cdktf.stringToTerraform(this._displayName), enabled: cdktf.booleanToTerraform(this._enabled), id: cdktf.stringToTerraform(this._id), log_analytics_workspace_id: cdktf.stringToTerraform(this._logAnalyticsWorkspaceId), mode: cdktf.stringToTerraform(this._mode), multi_select_observation: cdktf.listMapper(sentinelAlertRuleAnomalyDuplicateMultiSelectObservationToTerraform, true)(this._multiSelectObservation.internalValue), prioritized_exclude_observation: cdktf.listMapper(sentinelAlertRuleAnomalyDuplicatePrioritizedExcludeObservationToTerraform, true)(this._prioritizedExcludeObservation.internalValue), single_select_observation: cdktf.listMapper(sentinelAlertRuleAnomalyDuplicateSingleSelectObservationToTerraform, true)(this._singleSelectObservation.internalValue), threshold_observation: cdktf.listMapper(sentinelAlertRuleAnomalyDuplicateThresholdObservationToTerraform, true)(this._thresholdObservation.internalValue), timeouts: sentinelAlertRuleAnomalyDuplicateTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { built_in_rule_id: { value: cdktf.stringToHclTerraform(this._builtInRuleId), isBlock: false, type: "simple", storageClassType: "string", }, display_name: { value: cdktf.stringToHclTerraform(this._displayName), isBlock: false, type: "simple", storageClassType: "string", }, enabled: { value: cdktf.booleanToHclTerraform(this._enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, log_analytics_workspace_id: { value: cdktf.stringToHclTerraform(this._logAnalyticsWorkspaceId), isBlock: false, type: "simple",