UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

940 lines 135 kB
"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.DataAzurermConsumptionBudgetSubscription = exports.DataAzurermConsumptionBudgetSubscriptionTimeoutsOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionTimeoutsToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionTimeoutsToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionTimePeriodList = exports.DataAzurermConsumptionBudgetSubscriptionTimePeriodOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionTimePeriodToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionTimePeriodToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionNotificationList = exports.DataAzurermConsumptionBudgetSubscriptionNotificationOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionNotificationToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionNotificationToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionFilterList = exports.DataAzurermConsumptionBudgetSubscriptionFilterOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionFilterToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionFilterToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionFilterTagList = exports.DataAzurermConsumptionBudgetSubscriptionFilterTagOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionFilterTagToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionFilterTagToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionFilterNotList = exports.DataAzurermConsumptionBudgetSubscriptionFilterNotOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionFilterNotToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionFilterNotToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionFilterNotTagList = exports.DataAzurermConsumptionBudgetSubscriptionFilterNotTagOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionFilterNotTagToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionFilterNotTagToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionList = exports.DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToTerraform = exports.DataAzurermConsumptionBudgetSubscriptionFilterDimensionList = exports.DataAzurermConsumptionBudgetSubscriptionFilterDimensionOutputReference = exports.dataAzurermConsumptionBudgetSubscriptionFilterDimensionToHclTerraform = exports.dataAzurermConsumptionBudgetSubscriptionFilterDimensionToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataAzurermConsumptionBudgetSubscriptionFilterDimensionToTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterDimensionToTerraform = dataAzurermConsumptionBudgetSubscriptionFilterDimensionToTerraform; function dataAzurermConsumptionBudgetSubscriptionFilterDimensionToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterDimensionToHclTerraform = dataAzurermConsumptionBudgetSubscriptionFilterDimensionToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionFilterDimensionOutputReference 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.DataAzurermConsumptionBudgetSubscriptionFilterDimensionOutputReference = DataAzurermConsumptionBudgetSubscriptionFilterDimensionOutputReference; _a = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterDimensionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterDimensionOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionFilterDimensionList 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 DataAzurermConsumptionBudgetSubscriptionFilterDimensionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionFilterDimensionList = DataAzurermConsumptionBudgetSubscriptionFilterDimensionList; _b = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterDimensionList[_b] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterDimensionList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToTerraform = dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToTerraform; function dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToHclTerraform = dataAzurermConsumptionBudgetSubscriptionFilterNotDimensionToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionOutputReference 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.DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionOutputReference = DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionOutputReference; _c = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionList 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 DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionList = DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionList; _d = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionList[_d] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionFilterNotTagToTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterNotTagToTerraform = dataAzurermConsumptionBudgetSubscriptionFilterNotTagToTerraform; function dataAzurermConsumptionBudgetSubscriptionFilterNotTagToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterNotTagToHclTerraform = dataAzurermConsumptionBudgetSubscriptionFilterNotTagToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionFilterNotTagOutputReference 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.DataAzurermConsumptionBudgetSubscriptionFilterNotTagOutputReference = DataAzurermConsumptionBudgetSubscriptionFilterNotTagOutputReference; _e = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterNotTagOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterNotTagOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionFilterNotTagList 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 DataAzurermConsumptionBudgetSubscriptionFilterNotTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionFilterNotTagList = DataAzurermConsumptionBudgetSubscriptionFilterNotTagList; _f = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterNotTagList[_f] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterNotTagList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionFilterNotToTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterNotToTerraform = dataAzurermConsumptionBudgetSubscriptionFilterNotToTerraform; function dataAzurermConsumptionBudgetSubscriptionFilterNotToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterNotToHclTerraform = dataAzurermConsumptionBudgetSubscriptionFilterNotToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionFilterNotOutputReference 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 DataAzurermConsumptionBudgetSubscriptionFilterNotDimensionList(this, "dimension", false); // tag - computed: true, optional: false, required: false this._tag = new DataAzurermConsumptionBudgetSubscriptionFilterNotTagList(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.DataAzurermConsumptionBudgetSubscriptionFilterNotOutputReference = DataAzurermConsumptionBudgetSubscriptionFilterNotOutputReference; _g = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterNotOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterNotOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionFilterNotList 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 DataAzurermConsumptionBudgetSubscriptionFilterNotOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionFilterNotList = DataAzurermConsumptionBudgetSubscriptionFilterNotList; _h = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterNotList[_h] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterNotList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionFilterTagToTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterTagToTerraform = dataAzurermConsumptionBudgetSubscriptionFilterTagToTerraform; function dataAzurermConsumptionBudgetSubscriptionFilterTagToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterTagToHclTerraform = dataAzurermConsumptionBudgetSubscriptionFilterTagToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionFilterTagOutputReference 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.DataAzurermConsumptionBudgetSubscriptionFilterTagOutputReference = DataAzurermConsumptionBudgetSubscriptionFilterTagOutputReference; _j = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterTagOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterTagOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionFilterTagList 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 DataAzurermConsumptionBudgetSubscriptionFilterTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionFilterTagList = DataAzurermConsumptionBudgetSubscriptionFilterTagList; _k = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterTagList[_k] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterTagList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionFilterToTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterToTerraform = dataAzurermConsumptionBudgetSubscriptionFilterToTerraform; function dataAzurermConsumptionBudgetSubscriptionFilterToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionFilterToHclTerraform = dataAzurermConsumptionBudgetSubscriptionFilterToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionFilterOutputReference 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 DataAzurermConsumptionBudgetSubscriptionFilterDimensionList(this, "dimension", false); // not - computed: true, optional: false, required: false this._not = new DataAzurermConsumptionBudgetSubscriptionFilterNotList(this, "not", false); // tag - computed: true, optional: false, required: false this._tag = new DataAzurermConsumptionBudgetSubscriptionFilterTagList(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.DataAzurermConsumptionBudgetSubscriptionFilterOutputReference = DataAzurermConsumptionBudgetSubscriptionFilterOutputReference; _l = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionFilterList 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 DataAzurermConsumptionBudgetSubscriptionFilterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionFilterList = DataAzurermConsumptionBudgetSubscriptionFilterList; _m = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionFilterList[_m] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionFilterList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionNotificationToTerraform(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.dataAzurermConsumptionBudgetSubscriptionNotificationToTerraform = dataAzurermConsumptionBudgetSubscriptionNotificationToTerraform; function dataAzurermConsumptionBudgetSubscriptionNotificationToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionNotificationToHclTerraform = dataAzurermConsumptionBudgetSubscriptionNotificationToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionNotificationOutputReference 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.DataAzurermConsumptionBudgetSubscriptionNotificationOutputReference = DataAzurermConsumptionBudgetSubscriptionNotificationOutputReference; _o = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionNotificationOutputReference[_o] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionNotificationOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionNotificationList 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 DataAzurermConsumptionBudgetSubscriptionNotificationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionNotificationList = DataAzurermConsumptionBudgetSubscriptionNotificationList; _p = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionNotificationList[_p] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionNotificationList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionTimePeriodToTerraform(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.dataAzurermConsumptionBudgetSubscriptionTimePeriodToTerraform = dataAzurermConsumptionBudgetSubscriptionTimePeriodToTerraform; function dataAzurermConsumptionBudgetSubscriptionTimePeriodToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionTimePeriodToHclTerraform = dataAzurermConsumptionBudgetSubscriptionTimePeriodToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionTimePeriodOutputReference 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.DataAzurermConsumptionBudgetSubscriptionTimePeriodOutputReference = DataAzurermConsumptionBudgetSubscriptionTimePeriodOutputReference; _q = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionTimePeriodOutputReference[_q] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionTimePeriodOutputReference", version: "12.27.0" }; class DataAzurermConsumptionBudgetSubscriptionTimePeriodList 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 DataAzurermConsumptionBudgetSubscriptionTimePeriodOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAzurermConsumptionBudgetSubscriptionTimePeriodList = DataAzurermConsumptionBudgetSubscriptionTimePeriodList; _r = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionTimePeriodList[_r] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionTimePeriodList", version: "12.27.0" }; function dataAzurermConsumptionBudgetSubscriptionTimeoutsToTerraform(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.dataAzurermConsumptionBudgetSubscriptionTimeoutsToTerraform = dataAzurermConsumptionBudgetSubscriptionTimeoutsToTerraform; function dataAzurermConsumptionBudgetSubscriptionTimeoutsToHclTerraform(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.dataAzurermConsumptionBudgetSubscriptionTimeoutsToHclTerraform = dataAzurermConsumptionBudgetSubscriptionTimeoutsToHclTerraform; class DataAzurermConsumptionBudgetSubscriptionTimeoutsOutputReference 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.DataAzurermConsumptionBudgetSubscriptionTimeoutsOutputReference = DataAzurermConsumptionBudgetSubscriptionTimeoutsOutputReference; _s = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscriptionTimeoutsOutputReference[_s] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscriptionTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/data-sources/consumption_budget_subscription azurerm_consumption_budget_subscription} */ class DataAzurermConsumptionBudgetSubscription extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataAzurermConsumptionBudgetSubscription 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 DataAzurermConsumptionBudgetSubscription to import * @param importFromId The id of the existing DataAzurermConsumptionBudgetSubscription that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/data-sources/consumption_budget_subscription#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataAzurermConsumptionBudgetSubscription to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_consumption_budget_subscription", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/data-sources/consumption_budget_subscription azurerm_consumption_budget_subscription} 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 DataAzurermConsumptionBudgetSubscriptionConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_consumption_budget_subscription', 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 DataAzurermConsumptionBudgetSubscriptionFilterList(this, "filter", false); // notification - computed: true, optional: false, required: false this._notification = new DataAzurermConsumptionBudgetSubscriptionNotificationList(this, "notification", false); // time_period - computed: true, optional: false, required: false this._timePeriod = new DataAzurermConsumptionBudgetSubscriptionTimePeriodList(this, "time_period", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new DataAzurermConsumptionBudgetSubscriptionTimeoutsOutputReference(this, "timeouts"); this._id = config.id; this._name = config.name; this._subscriptionId = config.subscriptionId; 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 subscriptionId() { return this.getStringAttribute('subscription_id'); } set subscriptionId(value) { this._subscriptionId = value; } // Temporarily expose input value. Use with caution. get subscriptionIdInput() { return this._subscriptionId; } // 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), subscription_id: cdktf.stringToTerraform(this._subscriptionId), timeouts: dataAzurermConsumptionBudgetSubscriptionTimeoutsToTerraform(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", }, subscription_id: { value: cdktf.stringToHclTerraform(this._subscriptionId), isBlock: false, type: "simple", storageClassType: "string", }, timeouts: { value: dataAzurermConsumptionBudgetSubscriptionTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "DataAzurermConsumptionBudgetSubscriptionTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.DataAzurermConsumptionBudgetSubscription = DataAzurermConsumptionBudgetSubscription; _t = JSII_RTTI_SYMBOL_1; DataAzurermConsumptionBudgetSubscription[_t] = { fqn: "@cdktf/provider-azurerm.dataAzurermConsumptionBudgetSubscription.DataAzurermConsumptionBudgetSubscription", version: "12.27.0" }; // ================= // STATIC PROPERTIES // ================= DataAzurermConsumptionBudgetSubscription.tfResourceType = "azurerm_consumption_budget_subscription"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS1henVyZXJtLWNvbnN1bXB0aW9uLWJ1ZGdldC1zdWJzY3JpcHRpb24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFTQSwrQkFBK0I7QUE4Qi9CLFNBQWdCLGtFQUFrRSxDQUFDLE1BQWdFO0lBQ2pKLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE9BQU8sRUFDTixDQUFBO0FBQ0gsQ0FBQztBQVBELGdKQU9DO0FBR0QsU0FBZ0IscUVBQXFFLENBQUMsTUFBZ0U7SUFDcEosSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsTUFBTSxLQUFLLEdBQUcsRUFDYixDQUFDO0lBQ0YsT0FBTyxLQUFLLENBQUM7QUFDZixDQUFDO0FBUkQsc0pBUUM7QUFFRCxNQUFhLHNFQUF1RSxTQUFRLEtBQUssQ0FBQyxhQUFhO0lBRzdHOzs7OztNQUt