@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
940 lines • 136 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataAzurermConsumptionBudgetResourceGroup = exports.DataAzurermConsumptionBudgetResourceGroupTimeoutsOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupTimeoutsToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupTimeoutsToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupTimePeriodList = exports.DataAzurermConsumptionBudgetResourceGroupTimePeriodOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupTimePeriodToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupTimePeriodToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupNotificationList = exports.DataAzurermConsumptionBudgetResourceGroupNotificationOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupNotificationToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupNotificationToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupFilterList = exports.DataAzurermConsumptionBudgetResourceGroupFilterOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupFilterToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupFilterToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupFilterTagList = exports.DataAzurermConsumptionBudgetResourceGroupFilterTagOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupFilterTagToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupFilterTagToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupFilterNotList = exports.DataAzurermConsumptionBudgetResourceGroupFilterNotOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupFilterNotToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupFilterNotToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupFilterNotTagList = exports.DataAzurermConsumptionBudgetResourceGroupFilterNotTagOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupFilterNotTagToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupFilterNotTagToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionList = exports.DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToTerraform = exports.DataAzurermConsumptionBudgetResourceGroupFilterDimensionList = exports.DataAzurermConsumptionBudgetResourceGroupFilterDimensionOutputReference = exports.dataAzurermConsumptionBudgetResourceGroupFilterDimensionToHclTerraform = exports.dataAzurermConsumptionBudgetResourceGroupFilterDimensionToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataAzurermConsumptionBudgetResourceGroupFilterDimensionToTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterDimensionToTerraform = dataAzurermConsumptionBudgetResourceGroupFilterDimensionToTerraform;
function dataAzurermConsumptionBudgetResourceGroupFilterDimensionToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterDimensionToHclTerraform = dataAzurermConsumptionBudgetResourceGroupFilterDimensionToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupFilterDimensionOutputReference 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;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// operator - computed: true, optional: false, required: false
get operator() {
return this.getStringAttribute('operator');
}
// values - computed: true, optional: false, required: false
get values() {
return this.getListAttribute('values');
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterDimensionOutputReference = DataAzurermConsumptionBudgetResourceGroupFilterDimensionOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterDimensionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterDimensionOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupFilterDimensionList 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 DataAzurermConsumptionBudgetResourceGroupFilterDimensionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterDimensionList = DataAzurermConsumptionBudgetResourceGroupFilterDimensionList;
_b = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterDimensionList[_b] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterDimensionList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToTerraform = dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToTerraform;
function dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToHclTerraform = dataAzurermConsumptionBudgetResourceGroupFilterNotDimensionToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionOutputReference 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;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// operator - computed: true, optional: false, required: false
get operator() {
return this.getStringAttribute('operator');
}
// values - computed: true, optional: false, required: false
get values() {
return this.getListAttribute('values');
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionOutputReference = DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionList 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 DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionList = DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionList;
_d = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionList[_d] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupFilterNotTagToTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterNotTagToTerraform = dataAzurermConsumptionBudgetResourceGroupFilterNotTagToTerraform;
function dataAzurermConsumptionBudgetResourceGroupFilterNotTagToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterNotTagToHclTerraform = dataAzurermConsumptionBudgetResourceGroupFilterNotTagToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupFilterNotTagOutputReference 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;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// operator - computed: true, optional: false, required: false
get operator() {
return this.getStringAttribute('operator');
}
// values - computed: true, optional: false, required: false
get values() {
return this.getListAttribute('values');
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterNotTagOutputReference = DataAzurermConsumptionBudgetResourceGroupFilterNotTagOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterNotTagOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterNotTagOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupFilterNotTagList 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 DataAzurermConsumptionBudgetResourceGroupFilterNotTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterNotTagList = DataAzurermConsumptionBudgetResourceGroupFilterNotTagList;
_f = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterNotTagList[_f] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterNotTagList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupFilterNotToTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterNotToTerraform = dataAzurermConsumptionBudgetResourceGroupFilterNotToTerraform;
function dataAzurermConsumptionBudgetResourceGroupFilterNotToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterNotToHclTerraform = dataAzurermConsumptionBudgetResourceGroupFilterNotToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupFilterNotOutputReference 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;
// dimension - computed: true, optional: false, required: false
this._dimension = new DataAzurermConsumptionBudgetResourceGroupFilterNotDimensionList(this, "dimension", false);
// tag - computed: true, optional: false, required: false
this._tag = new DataAzurermConsumptionBudgetResourceGroupFilterNotTagList(this, "tag", 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;
}
}
get dimension() {
return this._dimension;
}
get tag() {
return this._tag;
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterNotOutputReference = DataAzurermConsumptionBudgetResourceGroupFilterNotOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterNotOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterNotOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupFilterNotList 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 DataAzurermConsumptionBudgetResourceGroupFilterNotOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterNotList = DataAzurermConsumptionBudgetResourceGroupFilterNotList;
_h = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterNotList[_h] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterNotList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupFilterTagToTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterTagToTerraform = dataAzurermConsumptionBudgetResourceGroupFilterTagToTerraform;
function dataAzurermConsumptionBudgetResourceGroupFilterTagToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterTagToHclTerraform = dataAzurermConsumptionBudgetResourceGroupFilterTagToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupFilterTagOutputReference 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;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// operator - computed: true, optional: false, required: false
get operator() {
return this.getStringAttribute('operator');
}
// values - computed: true, optional: false, required: false
get values() {
return this.getListAttribute('values');
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterTagOutputReference = DataAzurermConsumptionBudgetResourceGroupFilterTagOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterTagOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterTagOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupFilterTagList 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 DataAzurermConsumptionBudgetResourceGroupFilterTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterTagList = DataAzurermConsumptionBudgetResourceGroupFilterTagList;
_k = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterTagList[_k] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterTagList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupFilterToTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterToTerraform = dataAzurermConsumptionBudgetResourceGroupFilterToTerraform;
function dataAzurermConsumptionBudgetResourceGroupFilterToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupFilterToHclTerraform = dataAzurermConsumptionBudgetResourceGroupFilterToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupFilterOutputReference 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;
// dimension - computed: true, optional: false, required: false
this._dimension = new DataAzurermConsumptionBudgetResourceGroupFilterDimensionList(this, "dimension", false);
// not - computed: true, optional: false, required: false
this._not = new DataAzurermConsumptionBudgetResourceGroupFilterNotList(this, "not", false);
// tag - computed: true, optional: false, required: false
this._tag = new DataAzurermConsumptionBudgetResourceGroupFilterTagList(this, "tag", 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;
}
}
get dimension() {
return this._dimension;
}
get not() {
return this._not;
}
get tag() {
return this._tag;
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterOutputReference = DataAzurermConsumptionBudgetResourceGroupFilterOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupFilterList 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 DataAzurermConsumptionBudgetResourceGroupFilterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupFilterList = DataAzurermConsumptionBudgetResourceGroupFilterList;
_m = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupFilterList[_m] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupFilterList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupNotificationToTerraform(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.dataAzurermConsumptionBudgetResourceGroupNotificationToTerraform = dataAzurermConsumptionBudgetResourceGroupNotificationToTerraform;
function dataAzurermConsumptionBudgetResourceGroupNotificationToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupNotificationToHclTerraform = dataAzurermConsumptionBudgetResourceGroupNotificationToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupNotificationOutputReference 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;
}
}
// contact_emails - computed: true, optional: false, required: false
get contactEmails() {
return this.getListAttribute('contact_emails');
}
// contact_groups - computed: true, optional: false, required: false
get contactGroups() {
return this.getListAttribute('contact_groups');
}
// contact_roles - computed: true, optional: false, required: false
get contactRoles() {
return this.getListAttribute('contact_roles');
}
// enabled - computed: true, optional: false, required: false
get enabled() {
return this.getBooleanAttribute('enabled');
}
// operator - computed: true, optional: false, required: false
get operator() {
return this.getStringAttribute('operator');
}
// threshold - computed: true, optional: false, required: false
get threshold() {
return this.getNumberAttribute('threshold');
}
// threshold_type - computed: true, optional: false, required: false
get thresholdType() {
return this.getStringAttribute('threshold_type');
}
}
exports.DataAzurermConsumptionBudgetResourceGroupNotificationOutputReference = DataAzurermConsumptionBudgetResourceGroupNotificationOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupNotificationOutputReference[_o] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupNotificationOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupNotificationList 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 DataAzurermConsumptionBudgetResourceGroupNotificationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupNotificationList = DataAzurermConsumptionBudgetResourceGroupNotificationList;
_p = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupNotificationList[_p] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupNotificationList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupTimePeriodToTerraform(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.dataAzurermConsumptionBudgetResourceGroupTimePeriodToTerraform = dataAzurermConsumptionBudgetResourceGroupTimePeriodToTerraform;
function dataAzurermConsumptionBudgetResourceGroupTimePeriodToHclTerraform(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.dataAzurermConsumptionBudgetResourceGroupTimePeriodToHclTerraform = dataAzurermConsumptionBudgetResourceGroupTimePeriodToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupTimePeriodOutputReference 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;
}
}
// end_date - computed: true, optional: false, required: false
get endDate() {
return this.getStringAttribute('end_date');
}
// start_date - computed: true, optional: false, required: false
get startDate() {
return this.getStringAttribute('start_date');
}
}
exports.DataAzurermConsumptionBudgetResourceGroupTimePeriodOutputReference = DataAzurermConsumptionBudgetResourceGroupTimePeriodOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupTimePeriodOutputReference[_q] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupTimePeriodOutputReference", version: "12.27.0" };
class DataAzurermConsumptionBudgetResourceGroupTimePeriodList 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 DataAzurermConsumptionBudgetResourceGroupTimePeriodOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataAzurermConsumptionBudgetResourceGroupTimePeriodList = DataAzurermConsumptionBudgetResourceGroupTimePeriodList;
_r = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupTimePeriodList[_r] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupTimePeriodList", version: "12.27.0" };
function dataAzurermConsumptionBudgetResourceGroupTimeoutsToTerraform(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 {
read: cdktf.stringToTerraform(struct.read),
};
}
exports.dataAzurermConsumptionBudgetResourceGroupTimeoutsToTerraform = dataAzurermConsumptionBudgetResourceGroupTimeoutsToTerraform;
function dataAzurermConsumptionBudgetResourceGroupTimeoutsToHclTerraform(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 = {
read: {
value: cdktf.stringToHclTerraform(struct.read),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataAzurermConsumptionBudgetResourceGroupTimeoutsToHclTerraform = dataAzurermConsumptionBudgetResourceGroupTimeoutsToHclTerraform;
class DataAzurermConsumptionBudgetResourceGroupTimeoutsOutputReference 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._read !== undefined) {
hasAnyValues = true;
internalValueResult.read = this._read;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._read = 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._read = value.read;
}
}
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;
}
}
exports.DataAzurermConsumptionBudgetResourceGroupTimeoutsOutputReference = DataAzurermConsumptionBudgetResourceGroupTimeoutsOutputReference;
_s = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroupTimeoutsOutputReference[_s] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroupTimeoutsOutputReference", version: "12.27.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/data-sources/consumption_budget_resource_group azurerm_consumption_budget_resource_group}
*/
class DataAzurermConsumptionBudgetResourceGroup extends cdktf.TerraformDataSource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataAzurermConsumptionBudgetResourceGroup 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 DataAzurermConsumptionBudgetResourceGroup to import
* @param importFromId The id of the existing DataAzurermConsumptionBudgetResourceGroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/data-sources/consumption_budget_resource_group#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataAzurermConsumptionBudgetResourceGroup to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_consumption_budget_resource_group", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/data-sources/consumption_budget_resource_group azurerm_consumption_budget_resource_group} Data Source
*
* @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 DataAzurermConsumptionBudgetResourceGroupConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'azurerm_consumption_budget_resource_group',
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
});
// filter - computed: true, optional: false, required: false
this._filter = new DataAzurermConsumptionBudgetResourceGroupFilterList(this, "filter", false);
// notification - computed: true, optional: false, required: false
this._notification = new DataAzurermConsumptionBudgetResourceGroupNotificationList(this, "notification", false);
// time_period - computed: true, optional: false, required: false
this._timePeriod = new DataAzurermConsumptionBudgetResourceGroupTimePeriodList(this, "time_period", false);
// timeouts - computed: false, optional: true, required: false
this._timeouts = new DataAzurermConsumptionBudgetResourceGroupTimeoutsOutputReference(this, "timeouts");
this._id = config.id;
this._name = config.name;
this._resourceGroupId = config.resourceGroupId;
this._timeouts.internalValue = config.timeouts;
}
// ==========
// ATTRIBUTES
// ==========
// amount - computed: true, optional: false, required: false
get amount() {
return this.getNumberAttribute('amount');
}
get filter() {
return this._filter;
}
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;
}
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 notification() {
return this._notification;
}
get resourceGroupId() {
return this.getStringAttribute('resource_group_id');
}
set resourceGroupId(value) {
this._resourceGroupId = value;
}
// Temporarily expose input value. Use with caution.
get resourceGroupIdInput() {
return this._resourceGroupId;
}
// time_grain - computed: true, optional: false, required: false
get timeGrain() {
return this.getStringAttribute('time_grain');
}
get timePeriod() {
return this._timePeriod;
}
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 {
id: cdktf.stringToTerraform(this._id),
name: cdktf.stringToTerraform(this._name),
resource_group_id: cdktf.stringToTerraform(this._resourceGroupId),
timeouts: dataAzurermConsumptionBudgetResourceGroupTimeoutsToTerraform(this._timeouts.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(this._name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resource_group_id: {
value: cdktf.stringToHclTerraform(this._resourceGroupId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
timeouts: {
value: dataAzurermConsumptionBudgetResourceGroupTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "DataAzurermConsumptionBudgetResourceGroupTimeouts",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.DataAzurermConsumptionBudgetResourceGroup = DataAzurermConsumptionBudgetResourceGroup;
_t = JSII_RTTI_SYMBOL_1;
DataAzurermConsumptionBudgetResourceGroup[_t] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetResourceGroup.DataAzurermConsumptionBudgetResourceGroup", version: "12.27.0" };
// =================
// STATIC PROPERTIES
// =================
DataAzurermConsumptionBudgetResourceGroup.tfResourceType = "azurerm_consumption_budget_resource_group";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS1henVyZXJtLWNvbnN1bXB0aW9uLWJ1ZGdldC1yZXNvdXJjZS1ncm91cC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQVNBLCtCQUErQjtBQThCL0IsU0FBZ0IsbUVBQW1FLENBQUMsTUFBaUU7SUFDbkosSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsT0FBTyxFQUNOLENBQUE7QUFDSCxDQUFDO0FBUEQsa0pBT0M7QUFHRCxTQUFnQixzRUFBc0UsQ0FBQyxNQUFpRTtJQUN0SixJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1B