@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,148 lines • 395 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MonitorActionGroupWebhookReceiverList = exports.MonitorActionGroupWebhookReceiverOutputReference = exports.monitorActionGroupWebhookReceiverToHclTerraform = exports.monitorActionGroupWebhookReceiverToTerraform = exports.MonitorActionGroupWebhookReceiverAadAuthOutputReference = exports.monitorActionGroupWebhookReceiverAadAuthToHclTerraform = exports.monitorActionGroupWebhookReceiverAadAuthToTerraform = exports.MonitorActionGroupVoiceReceiverList = exports.MonitorActionGroupVoiceReceiverOutputReference = exports.monitorActionGroupVoiceReceiverToHclTerraform = exports.monitorActionGroupVoiceReceiverToTerraform = exports.MonitorActionGroupTimeoutsOutputReference = exports.monitorActionGroupTimeoutsToHclTerraform = exports.monitorActionGroupTimeoutsToTerraform = exports.MonitorActionGroupSmsReceiverList = exports.MonitorActionGroupSmsReceiverOutputReference = exports.monitorActionGroupSmsReceiverToHclTerraform = exports.monitorActionGroupSmsReceiverToTerraform = exports.MonitorActionGroupLogicAppReceiverList = exports.MonitorActionGroupLogicAppReceiverOutputReference = exports.monitorActionGroupLogicAppReceiverToHclTerraform = exports.monitorActionGroupLogicAppReceiverToTerraform = exports.MonitorActionGroupItsmReceiverList = exports.MonitorActionGroupItsmReceiverOutputReference = exports.monitorActionGroupItsmReceiverToHclTerraform = exports.monitorActionGroupItsmReceiverToTerraform = exports.MonitorActionGroupEventHubReceiverList = exports.MonitorActionGroupEventHubReceiverOutputReference = exports.monitorActionGroupEventHubReceiverToHclTerraform = exports.monitorActionGroupEventHubReceiverToTerraform = exports.MonitorActionGroupEmailReceiverList = exports.MonitorActionGroupEmailReceiverOutputReference = exports.monitorActionGroupEmailReceiverToHclTerraform = exports.monitorActionGroupEmailReceiverToTerraform = exports.MonitorActionGroupAzureFunctionReceiverList = exports.MonitorActionGroupAzureFunctionReceiverOutputReference = exports.monitorActionGroupAzureFunctionReceiverToHclTerraform = exports.monitorActionGroupAzureFunctionReceiverToTerraform = exports.MonitorActionGroupAzureAppPushReceiverList = exports.MonitorActionGroupAzureAppPushReceiverOutputReference = exports.monitorActionGroupAzureAppPushReceiverToHclTerraform = exports.monitorActionGroupAzureAppPushReceiverToTerraform = exports.MonitorActionGroupAutomationRunbookReceiverList = exports.MonitorActionGroupAutomationRunbookReceiverOutputReference = exports.monitorActionGroupAutomationRunbookReceiverToHclTerraform = exports.monitorActionGroupAutomationRunbookReceiverToTerraform = exports.MonitorActionGroupArmRoleReceiverList = exports.MonitorActionGroupArmRoleReceiverOutputReference = exports.monitorActionGroupArmRoleReceiverToHclTerraform = exports.monitorActionGroupArmRoleReceiverToTerraform = void 0;
exports.MonitorActionGroup = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function monitorActionGroupArmRoleReceiverToTerraform(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),
role_id: cdktf.stringToTerraform(struct.roleId),
use_common_alert_schema: cdktf.booleanToTerraform(struct.useCommonAlertSchema),
};
}
exports.monitorActionGroupArmRoleReceiverToTerraform = monitorActionGroupArmRoleReceiverToTerraform;
function monitorActionGroupArmRoleReceiverToHclTerraform(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",
},
role_id: {
value: cdktf.stringToHclTerraform(struct.roleId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_common_alert_schema: {
value: cdktf.booleanToHclTerraform(struct.useCommonAlertSchema),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionGroupArmRoleReceiverToHclTerraform = monitorActionGroupArmRoleReceiverToHclTerraform;
class MonitorActionGroupArmRoleReceiverOutputReference 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._roleId !== undefined) {
hasAnyValues = true;
internalValueResult.roleId = this._roleId;
}
if (this._useCommonAlertSchema !== undefined) {
hasAnyValues = true;
internalValueResult.useCommonAlertSchema = this._useCommonAlertSchema;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._roleId = undefined;
this._useCommonAlertSchema = 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._roleId = value.roleId;
this._useCommonAlertSchema = value.useCommonAlertSchema;
}
}
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 roleId() {
return this.getStringAttribute('role_id');
}
set roleId(value) {
this._roleId = value;
}
// Temporarily expose input value. Use with caution.
get roleIdInput() {
return this._roleId;
}
get useCommonAlertSchema() {
return this.getBooleanAttribute('use_common_alert_schema');
}
set useCommonAlertSchema(value) {
this._useCommonAlertSchema = value;
}
resetUseCommonAlertSchema() {
this._useCommonAlertSchema = undefined;
}
// Temporarily expose input value. Use with caution.
get useCommonAlertSchemaInput() {
return this._useCommonAlertSchema;
}
}
exports.MonitorActionGroupArmRoleReceiverOutputReference = MonitorActionGroupArmRoleReceiverOutputReference;
_a = JSII_RTTI_SYMBOL_1;
MonitorActionGroupArmRoleReceiverOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupArmRoleReceiverOutputReference", version: "12.27.0" };
class MonitorActionGroupArmRoleReceiverList 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 MonitorActionGroupArmRoleReceiverOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MonitorActionGroupArmRoleReceiverList = MonitorActionGroupArmRoleReceiverList;
_b = JSII_RTTI_SYMBOL_1;
MonitorActionGroupArmRoleReceiverList[_b] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupArmRoleReceiverList", version: "12.27.0" };
function monitorActionGroupAutomationRunbookReceiverToTerraform(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 {
automation_account_id: cdktf.stringToTerraform(struct.automationAccountId),
is_global_runbook: cdktf.booleanToTerraform(struct.isGlobalRunbook),
name: cdktf.stringToTerraform(struct.name),
runbook_name: cdktf.stringToTerraform(struct.runbookName),
service_uri: cdktf.stringToTerraform(struct.serviceUri),
use_common_alert_schema: cdktf.booleanToTerraform(struct.useCommonAlertSchema),
webhook_resource_id: cdktf.stringToTerraform(struct.webhookResourceId),
};
}
exports.monitorActionGroupAutomationRunbookReceiverToTerraform = monitorActionGroupAutomationRunbookReceiverToTerraform;
function monitorActionGroupAutomationRunbookReceiverToHclTerraform(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 = {
automation_account_id: {
value: cdktf.stringToHclTerraform(struct.automationAccountId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
is_global_runbook: {
value: cdktf.booleanToHclTerraform(struct.isGlobalRunbook),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
runbook_name: {
value: cdktf.stringToHclTerraform(struct.runbookName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
service_uri: {
value: cdktf.stringToHclTerraform(struct.serviceUri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_common_alert_schema: {
value: cdktf.booleanToHclTerraform(struct.useCommonAlertSchema),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
webhook_resource_id: {
value: cdktf.stringToHclTerraform(struct.webhookResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionGroupAutomationRunbookReceiverToHclTerraform = monitorActionGroupAutomationRunbookReceiverToHclTerraform;
class MonitorActionGroupAutomationRunbookReceiverOutputReference 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._automationAccountId !== undefined) {
hasAnyValues = true;
internalValueResult.automationAccountId = this._automationAccountId;
}
if (this._isGlobalRunbook !== undefined) {
hasAnyValues = true;
internalValueResult.isGlobalRunbook = this._isGlobalRunbook;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._runbookName !== undefined) {
hasAnyValues = true;
internalValueResult.runbookName = this._runbookName;
}
if (this._serviceUri !== undefined) {
hasAnyValues = true;
internalValueResult.serviceUri = this._serviceUri;
}
if (this._useCommonAlertSchema !== undefined) {
hasAnyValues = true;
internalValueResult.useCommonAlertSchema = this._useCommonAlertSchema;
}
if (this._webhookResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.webhookResourceId = this._webhookResourceId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._automationAccountId = undefined;
this._isGlobalRunbook = undefined;
this._name = undefined;
this._runbookName = undefined;
this._serviceUri = undefined;
this._useCommonAlertSchema = undefined;
this._webhookResourceId = 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._automationAccountId = value.automationAccountId;
this._isGlobalRunbook = value.isGlobalRunbook;
this._name = value.name;
this._runbookName = value.runbookName;
this._serviceUri = value.serviceUri;
this._useCommonAlertSchema = value.useCommonAlertSchema;
this._webhookResourceId = value.webhookResourceId;
}
}
get automationAccountId() {
return this.getStringAttribute('automation_account_id');
}
set automationAccountId(value) {
this._automationAccountId = value;
}
// Temporarily expose input value. Use with caution.
get automationAccountIdInput() {
return this._automationAccountId;
}
get isGlobalRunbook() {
return this.getBooleanAttribute('is_global_runbook');
}
set isGlobalRunbook(value) {
this._isGlobalRunbook = value;
}
// Temporarily expose input value. Use with caution.
get isGlobalRunbookInput() {
return this._isGlobalRunbook;
}
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 runbookName() {
return this.getStringAttribute('runbook_name');
}
set runbookName(value) {
this._runbookName = value;
}
// Temporarily expose input value. Use with caution.
get runbookNameInput() {
return this._runbookName;
}
get serviceUri() {
return this.getStringAttribute('service_uri');
}
set serviceUri(value) {
this._serviceUri = value;
}
// Temporarily expose input value. Use with caution.
get serviceUriInput() {
return this._serviceUri;
}
get useCommonAlertSchema() {
return this.getBooleanAttribute('use_common_alert_schema');
}
set useCommonAlertSchema(value) {
this._useCommonAlertSchema = value;
}
resetUseCommonAlertSchema() {
this._useCommonAlertSchema = undefined;
}
// Temporarily expose input value. Use with caution.
get useCommonAlertSchemaInput() {
return this._useCommonAlertSchema;
}
get webhookResourceId() {
return this.getStringAttribute('webhook_resource_id');
}
set webhookResourceId(value) {
this._webhookResourceId = value;
}
// Temporarily expose input value. Use with caution.
get webhookResourceIdInput() {
return this._webhookResourceId;
}
}
exports.MonitorActionGroupAutomationRunbookReceiverOutputReference = MonitorActionGroupAutomationRunbookReceiverOutputReference;
_c = JSII_RTTI_SYMBOL_1;
MonitorActionGroupAutomationRunbookReceiverOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupAutomationRunbookReceiverOutputReference", version: "12.27.0" };
class MonitorActionGroupAutomationRunbookReceiverList 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 MonitorActionGroupAutomationRunbookReceiverOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MonitorActionGroupAutomationRunbookReceiverList = MonitorActionGroupAutomationRunbookReceiverList;
_d = JSII_RTTI_SYMBOL_1;
MonitorActionGroupAutomationRunbookReceiverList[_d] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupAutomationRunbookReceiverList", version: "12.27.0" };
function monitorActionGroupAzureAppPushReceiverToTerraform(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 {
email_address: cdktf.stringToTerraform(struct.emailAddress),
name: cdktf.stringToTerraform(struct.name),
};
}
exports.monitorActionGroupAzureAppPushReceiverToTerraform = monitorActionGroupAzureAppPushReceiverToTerraform;
function monitorActionGroupAzureAppPushReceiverToHclTerraform(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 = {
email_address: {
value: cdktf.stringToHclTerraform(struct.emailAddress),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionGroupAzureAppPushReceiverToHclTerraform = monitorActionGroupAzureAppPushReceiverToHclTerraform;
class MonitorActionGroupAzureAppPushReceiverOutputReference 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._emailAddress !== undefined) {
hasAnyValues = true;
internalValueResult.emailAddress = this._emailAddress;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._emailAddress = undefined;
this._name = 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._emailAddress = value.emailAddress;
this._name = value.name;
}
}
get emailAddress() {
return this.getStringAttribute('email_address');
}
set emailAddress(value) {
this._emailAddress = value;
}
// Temporarily expose input value. Use with caution.
get emailAddressInput() {
return this._emailAddress;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
}
exports.MonitorActionGroupAzureAppPushReceiverOutputReference = MonitorActionGroupAzureAppPushReceiverOutputReference;
_e = JSII_RTTI_SYMBOL_1;
MonitorActionGroupAzureAppPushReceiverOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupAzureAppPushReceiverOutputReference", version: "12.27.0" };
class MonitorActionGroupAzureAppPushReceiverList 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 MonitorActionGroupAzureAppPushReceiverOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MonitorActionGroupAzureAppPushReceiverList = MonitorActionGroupAzureAppPushReceiverList;
_f = JSII_RTTI_SYMBOL_1;
MonitorActionGroupAzureAppPushReceiverList[_f] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupAzureAppPushReceiverList", version: "12.27.0" };
function monitorActionGroupAzureFunctionReceiverToTerraform(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 {
function_app_resource_id: cdktf.stringToTerraform(struct.functionAppResourceId),
function_name: cdktf.stringToTerraform(struct.functionName),
http_trigger_url: cdktf.stringToTerraform(struct.httpTriggerUrl),
name: cdktf.stringToTerraform(struct.name),
use_common_alert_schema: cdktf.booleanToTerraform(struct.useCommonAlertSchema),
};
}
exports.monitorActionGroupAzureFunctionReceiverToTerraform = monitorActionGroupAzureFunctionReceiverToTerraform;
function monitorActionGroupAzureFunctionReceiverToHclTerraform(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 = {
function_app_resource_id: {
value: cdktf.stringToHclTerraform(struct.functionAppResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
function_name: {
value: cdktf.stringToHclTerraform(struct.functionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
http_trigger_url: {
value: cdktf.stringToHclTerraform(struct.httpTriggerUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_common_alert_schema: {
value: cdktf.booleanToHclTerraform(struct.useCommonAlertSchema),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionGroupAzureFunctionReceiverToHclTerraform = monitorActionGroupAzureFunctionReceiverToHclTerraform;
class MonitorActionGroupAzureFunctionReceiverOutputReference 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._functionAppResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.functionAppResourceId = this._functionAppResourceId;
}
if (this._functionName !== undefined) {
hasAnyValues = true;
internalValueResult.functionName = this._functionName;
}
if (this._httpTriggerUrl !== undefined) {
hasAnyValues = true;
internalValueResult.httpTriggerUrl = this._httpTriggerUrl;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._useCommonAlertSchema !== undefined) {
hasAnyValues = true;
internalValueResult.useCommonAlertSchema = this._useCommonAlertSchema;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._functionAppResourceId = undefined;
this._functionName = undefined;
this._httpTriggerUrl = undefined;
this._name = undefined;
this._useCommonAlertSchema = 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._functionAppResourceId = value.functionAppResourceId;
this._functionName = value.functionName;
this._httpTriggerUrl = value.httpTriggerUrl;
this._name = value.name;
this._useCommonAlertSchema = value.useCommonAlertSchema;
}
}
get functionAppResourceId() {
return this.getStringAttribute('function_app_resource_id');
}
set functionAppResourceId(value) {
this._functionAppResourceId = value;
}
// Temporarily expose input value. Use with caution.
get functionAppResourceIdInput() {
return this._functionAppResourceId;
}
get functionName() {
return this.getStringAttribute('function_name');
}
set functionName(value) {
this._functionName = value;
}
// Temporarily expose input value. Use with caution.
get functionNameInput() {
return this._functionName;
}
get httpTriggerUrl() {
return this.getStringAttribute('http_trigger_url');
}
set httpTriggerUrl(value) {
this._httpTriggerUrl = value;
}
// Temporarily expose input value. Use with caution.
get httpTriggerUrlInput() {
return this._httpTriggerUrl;
}
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 useCommonAlertSchema() {
return this.getBooleanAttribute('use_common_alert_schema');
}
set useCommonAlertSchema(value) {
this._useCommonAlertSchema = value;
}
resetUseCommonAlertSchema() {
this._useCommonAlertSchema = undefined;
}
// Temporarily expose input value. Use with caution.
get useCommonAlertSchemaInput() {
return this._useCommonAlertSchema;
}
}
exports.MonitorActionGroupAzureFunctionReceiverOutputReference = MonitorActionGroupAzureFunctionReceiverOutputReference;
_g = JSII_RTTI_SYMBOL_1;
MonitorActionGroupAzureFunctionReceiverOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupAzureFunctionReceiverOutputReference", version: "12.27.0" };
class MonitorActionGroupAzureFunctionReceiverList 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 MonitorActionGroupAzureFunctionReceiverOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MonitorActionGroupAzureFunctionReceiverList = MonitorActionGroupAzureFunctionReceiverList;
_h = JSII_RTTI_SYMBOL_1;
MonitorActionGroupAzureFunctionReceiverList[_h] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupAzureFunctionReceiverList", version: "12.27.0" };
function monitorActionGroupEmailReceiverToTerraform(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 {
email_address: cdktf.stringToTerraform(struct.emailAddress),
name: cdktf.stringToTerraform(struct.name),
use_common_alert_schema: cdktf.booleanToTerraform(struct.useCommonAlertSchema),
};
}
exports.monitorActionGroupEmailReceiverToTerraform = monitorActionGroupEmailReceiverToTerraform;
function monitorActionGroupEmailReceiverToHclTerraform(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 = {
email_address: {
value: cdktf.stringToHclTerraform(struct.emailAddress),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_common_alert_schema: {
value: cdktf.booleanToHclTerraform(struct.useCommonAlertSchema),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionGroupEmailReceiverToHclTerraform = monitorActionGroupEmailReceiverToHclTerraform;
class MonitorActionGroupEmailReceiverOutputReference 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._emailAddress !== undefined) {
hasAnyValues = true;
internalValueResult.emailAddress = this._emailAddress;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._useCommonAlertSchema !== undefined) {
hasAnyValues = true;
internalValueResult.useCommonAlertSchema = this._useCommonAlertSchema;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._emailAddress = undefined;
this._name = undefined;
this._useCommonAlertSchema = 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._emailAddress = value.emailAddress;
this._name = value.name;
this._useCommonAlertSchema = value.useCommonAlertSchema;
}
}
get emailAddress() {
return this.getStringAttribute('email_address');
}
set emailAddress(value) {
this._emailAddress = value;
}
// Temporarily expose input value. Use with caution.
get emailAddressInput() {
return this._emailAddress;
}
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 useCommonAlertSchema() {
return this.getBooleanAttribute('use_common_alert_schema');
}
set useCommonAlertSchema(value) {
this._useCommonAlertSchema = value;
}
resetUseCommonAlertSchema() {
this._useCommonAlertSchema = undefined;
}
// Temporarily expose input value. Use with caution.
get useCommonAlertSchemaInput() {
return this._useCommonAlertSchema;
}
}
exports.MonitorActionGroupEmailReceiverOutputReference = MonitorActionGroupEmailReceiverOutputReference;
_j = JSII_RTTI_SYMBOL_1;
MonitorActionGroupEmailReceiverOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupEmailReceiverOutputReference", version: "12.27.0" };
class MonitorActionGroupEmailReceiverList 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 MonitorActionGroupEmailReceiverOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.MonitorActionGroupEmailReceiverList = MonitorActionGroupEmailReceiverList;
_k = JSII_RTTI_SYMBOL_1;
MonitorActionGroupEmailReceiverList[_k] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupEmailReceiverList", version: "12.27.0" };
function monitorActionGroupEventHubReceiverToTerraform(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 {
event_hub_id: cdktf.stringToTerraform(struct.eventHubId),
event_hub_name: cdktf.stringToTerraform(struct.eventHubName),
event_hub_namespace: cdktf.stringToTerraform(struct.eventHubNamespace),
name: cdktf.stringToTerraform(struct.name),
subscription_id: cdktf.stringToTerraform(struct.subscriptionId),
tenant_id: cdktf.stringToTerraform(struct.tenantId),
use_common_alert_schema: cdktf.booleanToTerraform(struct.useCommonAlertSchema),
};
}
exports.monitorActionGroupEventHubReceiverToTerraform = monitorActionGroupEventHubReceiverToTerraform;
function monitorActionGroupEventHubReceiverToHclTerraform(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 = {
event_hub_id: {
value: cdktf.stringToHclTerraform(struct.eventHubId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
event_hub_name: {
value: cdktf.stringToHclTerraform(struct.eventHubName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
event_hub_namespace: {
value: cdktf.stringToHclTerraform(struct.eventHubNamespace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subscription_id: {
value: cdktf.stringToHclTerraform(struct.subscriptionId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tenant_id: {
value: cdktf.stringToHclTerraform(struct.tenantId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_common_alert_schema: {
value: cdktf.booleanToHclTerraform(struct.useCommonAlertSchema),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.monitorActionGroupEventHubReceiverToHclTerraform = monitorActionGroupEventHubReceiverToHclTerraform;
class MonitorActionGroupEventHubReceiverOutputReference 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._eventHubId !== undefined) {
hasAnyValues = true;
internalValueResult.eventHubId = this._eventHubId;
}
if (this._eventHubName !== undefined) {
hasAnyValues = true;
internalValueResult.eventHubName = this._eventHubName;
}
if (this._eventHubNamespace !== undefined) {
hasAnyValues = true;
internalValueResult.eventHubNamespace = this._eventHubNamespace;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._subscriptionId !== undefined) {
hasAnyValues = true;
internalValueResult.subscriptionId = this._subscriptionId;
}
if (this._tenantId !== undefined) {
hasAnyValues = true;
internalValueResult.tenantId = this._tenantId;
}
if (this._useCommonAlertSchema !== undefined) {
hasAnyValues = true;
internalValueResult.useCommonAlertSchema = this._useCommonAlertSchema;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._eventHubId = undefined;
this._eventHubName = undefined;
this._eventHubNamespace = undefined;
this._name = undefined;
this._subscriptionId = undefined;
this._tenantId = undefined;
this._useCommonAlertSchema = 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._eventHubId = value.eventHubId;
this._eventHubName = value.eventHubName;
this._eventHubNamespace = value.eventHubNamespace;
this._name = value.name;
this._subscriptionId = value.subscriptionId;
this._tenantId = value.tenantId;
this._useCommonAlertSchema = value.useCommonAlertSchema;
}
}
get eventHubId() {
return this.getStringAttribute('event_hub_id');
}
set eventHubId(value) {
this._eventHubId = value;
}
resetEventHubId() {
this._eventHubId = undefined;
}
// Temporarily expose input value. Use with caution.
get eventHubIdInput() {
return this._eventHubId;
}
get eventHubName() {
return this.getStringAttribute('event_hub_name');
}
set eventHubName(value) {
this._eventHubName = value;
}
resetEventHubName() {
this._eventHubName = undefined;
}
// Temporarily expose input value. Use with caution.
get eventHubNameInput() {
return this._eventHubName;
}
get eventHubNamespace() {
return this.getStringAttribute('event_hub_namespace');
}
set eventHubNamespace(value) {
this._eventHubNamespace = value;
}
resetEventHubNamespace() {
this._eventHubNamespace = undefined;
}
// Temporarily expose input value. Use with caution.
get eventHubNamespaceInput() {
return this._eventHubNamespace;
}
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 subscriptionId() {
return this.getStringAttribute('subscription_id');
}
set subscriptionId(value) {
this._subscriptionId = value;
}
resetSubscriptionId() {
this._subscriptionId = undefined;
}
// Temporarily expose input value. Use with caution.
get subscriptionIdInput() {
return this._subscriptionId;
}
get tenantId() {
return this.getStringAttribute('tenant_id');
}
set tenantId(value) {
this._tenantId = value;
}
resetTenantId() {
this._tenantId = undefined;
}
// Temporarily expose input value. Use with caution.
get tenantIdInput() {
return this._tenantId;
}
get useCommonAlertSchema() {
return this.getBooleanAttribute('use_common_alert_schema');
}
set useCommonAlertSchema(value) {
this._useCommonAlertSchema = value;
}
resetUseCommonAlertSchema() {
this._useCommonAlertSchema = undefined;
}
// Temporarily expose input value. Use with caution.
get useCommonAlertSchemaInput() {
return this._useCommonAlertSchema;
}
}
exports.MonitorActionGroupEventHubReceiverOutputReference = MonitorActionGroupEventHubReceiverOutputReference;
_l = JSII_RTTI_SYMBOL_1;
MonitorActionGroupEventHubReceiverOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.monitorActionGroup.MonitorActionGroupEventHubReceiverOutputReference", version: "12.27.0" };
class MonitorActionGroupEventHubReceiverList 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 it