@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,075 lines (1,074 loc) • 326 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SentinelAlertRuleScheduled = exports.SentinelAlertRuleScheduledTimeoutsOutputReference = exports.sentinelAlertRuleScheduledTimeoutsToHclTerraform = exports.sentinelAlertRuleScheduledTimeoutsToTerraform = exports.SentinelAlertRuleScheduledSentinelEntityMappingList = exports.SentinelAlertRuleScheduledSentinelEntityMappingOutputReference = exports.sentinelAlertRuleScheduledSentinelEntityMappingToHclTerraform = exports.sentinelAlertRuleScheduledSentinelEntityMappingToTerraform = exports.SentinelAlertRuleScheduledIncidentConfigurationOutputReference = exports.sentinelAlertRuleScheduledIncidentConfigurationToHclTerraform = exports.sentinelAlertRuleScheduledIncidentConfigurationToTerraform = exports.SentinelAlertRuleScheduledIncidentConfigurationGroupingOutputReference = exports.sentinelAlertRuleScheduledIncidentConfigurationGroupingToHclTerraform = exports.sentinelAlertRuleScheduledIncidentConfigurationGroupingToTerraform = exports.SentinelAlertRuleScheduledIncidentOutputReference = exports.sentinelAlertRuleScheduledIncidentToHclTerraform = exports.sentinelAlertRuleScheduledIncidentToTerraform = exports.SentinelAlertRuleScheduledIncidentGroupingOutputReference = exports.sentinelAlertRuleScheduledIncidentGroupingToHclTerraform = exports.sentinelAlertRuleScheduledIncidentGroupingToTerraform = exports.SentinelAlertRuleScheduledEventGroupingOutputReference = exports.sentinelAlertRuleScheduledEventGroupingToHclTerraform = exports.sentinelAlertRuleScheduledEventGroupingToTerraform = exports.SentinelAlertRuleScheduledEntityMappingList = exports.SentinelAlertRuleScheduledEntityMappingOutputReference = exports.sentinelAlertRuleScheduledEntityMappingToHclTerraform = exports.sentinelAlertRuleScheduledEntityMappingToTerraform = exports.SentinelAlertRuleScheduledEntityMappingFieldMappingList = exports.SentinelAlertRuleScheduledEntityMappingFieldMappingOutputReference = exports.sentinelAlertRuleScheduledEntityMappingFieldMappingToHclTerraform = exports.sentinelAlertRuleScheduledEntityMappingFieldMappingToTerraform = exports.SentinelAlertRuleScheduledAlertDetailsOverrideList = exports.SentinelAlertRuleScheduledAlertDetailsOverrideOutputReference = exports.sentinelAlertRuleScheduledAlertDetailsOverrideToHclTerraform = exports.sentinelAlertRuleScheduledAlertDetailsOverrideToTerraform = exports.SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList = exports.SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyOutputReference = exports.sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToHclTerraform = exports.sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToTerraform(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.sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToTerraform = sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToTerraform;
function sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToHclTerraform(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.sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToHclTerraform = sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToHclTerraform;
class SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyOutputReference 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.SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyOutputReference = SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyOutputReference;
_a = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyOutputReference", version: "12.27.0" };
class SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList 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 SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList = SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList;
_b = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList[_b] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList", version: "12.27.0" };
function sentinelAlertRuleScheduledAlertDetailsOverrideToTerraform(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(sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToTerraform, true)(struct.dynamicProperty),
};
}
exports.sentinelAlertRuleScheduledAlertDetailsOverrideToTerraform = sentinelAlertRuleScheduledAlertDetailsOverrideToTerraform;
function sentinelAlertRuleScheduledAlertDetailsOverrideToHclTerraform(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(sentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyToHclTerraform, true)(struct.dynamicProperty),
isBlock: true,
type: "list",
storageClassType: "SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.sentinelAlertRuleScheduledAlertDetailsOverrideToHclTerraform = sentinelAlertRuleScheduledAlertDetailsOverrideToHclTerraform;
class SentinelAlertRuleScheduledAlertDetailsOverrideOutputReference 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 SentinelAlertRuleScheduledAlertDetailsOverrideDynamicPropertyList(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.SentinelAlertRuleScheduledAlertDetailsOverrideOutputReference = SentinelAlertRuleScheduledAlertDetailsOverrideOutputReference;
_c = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledAlertDetailsOverrideOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledAlertDetailsOverrideOutputReference", version: "12.27.0" };
class SentinelAlertRuleScheduledAlertDetailsOverrideList 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 SentinelAlertRuleScheduledAlertDetailsOverrideOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SentinelAlertRuleScheduledAlertDetailsOverrideList = SentinelAlertRuleScheduledAlertDetailsOverrideList;
_d = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledAlertDetailsOverrideList[_d] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledAlertDetailsOverrideList", version: "12.27.0" };
function sentinelAlertRuleScheduledEntityMappingFieldMappingToTerraform(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.sentinelAlertRuleScheduledEntityMappingFieldMappingToTerraform = sentinelAlertRuleScheduledEntityMappingFieldMappingToTerraform;
function sentinelAlertRuleScheduledEntityMappingFieldMappingToHclTerraform(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.sentinelAlertRuleScheduledEntityMappingFieldMappingToHclTerraform = sentinelAlertRuleScheduledEntityMappingFieldMappingToHclTerraform;
class SentinelAlertRuleScheduledEntityMappingFieldMappingOutputReference 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.SentinelAlertRuleScheduledEntityMappingFieldMappingOutputReference = SentinelAlertRuleScheduledEntityMappingFieldMappingOutputReference;
_e = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledEntityMappingFieldMappingOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledEntityMappingFieldMappingOutputReference", version: "12.27.0" };
class SentinelAlertRuleScheduledEntityMappingFieldMappingList 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 SentinelAlertRuleScheduledEntityMappingFieldMappingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SentinelAlertRuleScheduledEntityMappingFieldMappingList = SentinelAlertRuleScheduledEntityMappingFieldMappingList;
_f = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledEntityMappingFieldMappingList[_f] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledEntityMappingFieldMappingList", version: "12.27.0" };
function sentinelAlertRuleScheduledEntityMappingToTerraform(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(sentinelAlertRuleScheduledEntityMappingFieldMappingToTerraform, true)(struct.fieldMapping),
};
}
exports.sentinelAlertRuleScheduledEntityMappingToTerraform = sentinelAlertRuleScheduledEntityMappingToTerraform;
function sentinelAlertRuleScheduledEntityMappingToHclTerraform(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(sentinelAlertRuleScheduledEntityMappingFieldMappingToHclTerraform, true)(struct.fieldMapping),
isBlock: true,
type: "list",
storageClassType: "SentinelAlertRuleScheduledEntityMappingFieldMappingList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.sentinelAlertRuleScheduledEntityMappingToHclTerraform = sentinelAlertRuleScheduledEntityMappingToHclTerraform;
class SentinelAlertRuleScheduledEntityMappingOutputReference 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 SentinelAlertRuleScheduledEntityMappingFieldMappingList(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.SentinelAlertRuleScheduledEntityMappingOutputReference = SentinelAlertRuleScheduledEntityMappingOutputReference;
_g = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledEntityMappingOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledEntityMappingOutputReference", version: "12.27.0" };
class SentinelAlertRuleScheduledEntityMappingList 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 SentinelAlertRuleScheduledEntityMappingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SentinelAlertRuleScheduledEntityMappingList = SentinelAlertRuleScheduledEntityMappingList;
_h = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledEntityMappingList[_h] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledEntityMappingList", version: "12.27.0" };
function sentinelAlertRuleScheduledEventGroupingToTerraform(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.sentinelAlertRuleScheduledEventGroupingToTerraform = sentinelAlertRuleScheduledEventGroupingToTerraform;
function sentinelAlertRuleScheduledEventGroupingToHclTerraform(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.sentinelAlertRuleScheduledEventGroupingToHclTerraform = sentinelAlertRuleScheduledEventGroupingToHclTerraform;
class SentinelAlertRuleScheduledEventGroupingOutputReference 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.SentinelAlertRuleScheduledEventGroupingOutputReference = SentinelAlertRuleScheduledEventGroupingOutputReference;
_j = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledEventGroupingOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledEventGroupingOutputReference", version: "12.27.0" };
function sentinelAlertRuleScheduledIncidentGroupingToTerraform(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.sentinelAlertRuleScheduledIncidentGroupingToTerraform = sentinelAlertRuleScheduledIncidentGroupingToTerraform;
function sentinelAlertRuleScheduledIncidentGroupingToHclTerraform(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.sentinelAlertRuleScheduledIncidentGroupingToHclTerraform = sentinelAlertRuleScheduledIncidentGroupingToHclTerraform;
class SentinelAlertRuleScheduledIncidentGroupingOutputReference 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.SentinelAlertRuleScheduledIncidentGroupingOutputReference = SentinelAlertRuleScheduledIncidentGroupingOutputReference;
_k = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledIncidentGroupingOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledIncidentGroupingOutputReference", version: "12.27.0" };
function sentinelAlertRuleScheduledIncidentToTerraform(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: sentinelAlertRuleScheduledIncidentGroupingToTerraform(struct.grouping),
};
}
exports.sentinelAlertRuleScheduledIncidentToTerraform = sentinelAlertRuleScheduledIncidentToTerraform;
function sentinelAlertRuleScheduledIncidentToHclTerraform(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: sentinelAlertRuleScheduledIncidentGroupingToHclTerraform(struct.grouping),
isBlock: true,
type: "list",
storageClassType: "SentinelAlertRuleScheduledIncidentGroupingList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.sentinelAlertRuleScheduledIncidentToHclTerraform = sentinelAlertRuleScheduledIncidentToHclTerraform;
class SentinelAlertRuleScheduledIncidentOutputReference 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 SentinelAlertRuleScheduledIncidentGroupingOutputReference(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.SentinelAlertRuleScheduledIncidentOutputReference = SentinelAlertRuleScheduledIncidentOutputReference;
_l = JSII_RTTI_SYMBOL_1;
SentinelAlertRuleScheduledIncidentOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.sentinelAlertRuleScheduled.SentinelAlertRuleScheduledIncidentOutputReference", version: "12.27.0" };
function sentinelAlertRuleScheduledIncidentConfigurationGroupingToTerraform(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 {
enabled: cdktf.booleanToTerraform(struct.enabled),
entity_matching_method: cdktf.stringToTerraform(struct.entityMatchingMethod),
group_by_alert_details: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.groupByAlertDetails),
group_by_custom_details: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.groupByCustomDetails),
group_by_entities: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.groupByEntities),
lookback_duration: cdktf.stringToTerraform(struct.lookbackDuration),
reopen_closed_incidents: cdktf.booleanToTerraform(struct.reopenClosedIncidents),
};
}
exports.sentinelAlertRuleScheduledIncidentConfigurationGroupingToTerraform = sentinelAlertRuleScheduledIncidentConfigurationGroupingToTerraform;
function sentinelAlertRuleScheduledIncidentConfigurationGroupingToHclTerraform(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 = {
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",
},
group_by_alert_details: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.groupByAlertDetails),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
group_by_custom_details: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.groupByCustomDetails),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
group_by_entities: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.groupByEntities),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
lookback_duration: {
value: cdktf.stringToHclTerraform(struct.lookbackDuration),
isBlock: false,
type: "simple",
storageClassType: "string",