UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,123 lines (1,122 loc) 306 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetworkConnectionMonitor = exports.NetworkConnectionMonitorTimeoutsOutputReference = exports.networkConnectionMonitorTimeoutsToHclTerraform = exports.networkConnectionMonitorTimeoutsToTerraform = exports.NetworkConnectionMonitorTestGroupList = exports.NetworkConnectionMonitorTestGroupOutputReference = exports.networkConnectionMonitorTestGroupToHclTerraform = exports.networkConnectionMonitorTestGroupToTerraform = exports.NetworkConnectionMonitorTestConfigurationList = exports.NetworkConnectionMonitorTestConfigurationOutputReference = exports.networkConnectionMonitorTestConfigurationToHclTerraform = exports.networkConnectionMonitorTestConfigurationToTerraform = exports.NetworkConnectionMonitorTestConfigurationTcpConfigurationOutputReference = exports.networkConnectionMonitorTestConfigurationTcpConfigurationToHclTerraform = exports.networkConnectionMonitorTestConfigurationTcpConfigurationToTerraform = exports.NetworkConnectionMonitorTestConfigurationSuccessThresholdOutputReference = exports.networkConnectionMonitorTestConfigurationSuccessThresholdToHclTerraform = exports.networkConnectionMonitorTestConfigurationSuccessThresholdToTerraform = exports.NetworkConnectionMonitorTestConfigurationIcmpConfigurationOutputReference = exports.networkConnectionMonitorTestConfigurationIcmpConfigurationToHclTerraform = exports.networkConnectionMonitorTestConfigurationIcmpConfigurationToTerraform = exports.NetworkConnectionMonitorTestConfigurationHttpConfigurationOutputReference = exports.networkConnectionMonitorTestConfigurationHttpConfigurationToHclTerraform = exports.networkConnectionMonitorTestConfigurationHttpConfigurationToTerraform = exports.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList = exports.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderOutputReference = exports.networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToHclTerraform = exports.networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToTerraform = exports.NetworkConnectionMonitorEndpointList = exports.NetworkConnectionMonitorEndpointOutputReference = exports.networkConnectionMonitorEndpointToHclTerraform = exports.networkConnectionMonitorEndpointToTerraform = exports.NetworkConnectionMonitorEndpointFilterOutputReference = exports.networkConnectionMonitorEndpointFilterToHclTerraform = exports.networkConnectionMonitorEndpointFilterToTerraform = exports.NetworkConnectionMonitorEndpointFilterItemList = exports.NetworkConnectionMonitorEndpointFilterItemOutputReference = exports.networkConnectionMonitorEndpointFilterItemToHclTerraform = exports.networkConnectionMonitorEndpointFilterItemToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function networkConnectionMonitorEndpointFilterItemToTerraform(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 { address: cdktf.stringToTerraform(struct.address), type: cdktf.stringToTerraform(struct.type), }; } exports.networkConnectionMonitorEndpointFilterItemToTerraform = networkConnectionMonitorEndpointFilterItemToTerraform; function networkConnectionMonitorEndpointFilterItemToHclTerraform(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 = { address: { value: cdktf.stringToHclTerraform(struct.address), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorEndpointFilterItemToHclTerraform = networkConnectionMonitorEndpointFilterItemToHclTerraform; class NetworkConnectionMonitorEndpointFilterItemOutputReference 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._address !== undefined) { hasAnyValues = true; internalValueResult.address = this._address; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._address = undefined; this._type = 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._address = value.address; this._type = value.type; } } get address() { return this.getStringAttribute('address'); } set address(value) { this._address = value; } resetAddress() { this._address = undefined; } // Temporarily expose input value. Use with caution. get addressInput() { return this._address; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.NetworkConnectionMonitorEndpointFilterItemOutputReference = NetworkConnectionMonitorEndpointFilterItemOutputReference; _a = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorEndpointFilterItemOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorEndpointFilterItemOutputReference", version: "12.27.0" }; class NetworkConnectionMonitorEndpointFilterItemList 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 NetworkConnectionMonitorEndpointFilterItemOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NetworkConnectionMonitorEndpointFilterItemList = NetworkConnectionMonitorEndpointFilterItemList; _b = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorEndpointFilterItemList[_b] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorEndpointFilterItemList", version: "12.27.0" }; function networkConnectionMonitorEndpointFilterToTerraform(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 { type: cdktf.stringToTerraform(struct.type), item: cdktf.listMapper(networkConnectionMonitorEndpointFilterItemToTerraform, true)(struct.item), }; } exports.networkConnectionMonitorEndpointFilterToTerraform = networkConnectionMonitorEndpointFilterToTerraform; function networkConnectionMonitorEndpointFilterToHclTerraform(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 = { type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, item: { value: cdktf.listMapperHcl(networkConnectionMonitorEndpointFilterItemToHclTerraform, true)(struct.item), isBlock: true, type: "set", storageClassType: "NetworkConnectionMonitorEndpointFilterItemList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorEndpointFilterToHclTerraform = networkConnectionMonitorEndpointFilterToHclTerraform; class NetworkConnectionMonitorEndpointFilterOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // item - computed: false, optional: true, required: false this._item = new NetworkConnectionMonitorEndpointFilterItemList(this, "item", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._item?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.item = this._item?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._type = undefined; this._item.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._type = value.type; this._item.internalValue = value.item; } } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get item() { return this._item; } putItem(value) { this._item.internalValue = value; } resetItem() { this._item.internalValue = undefined; } // Temporarily expose input value. Use with caution. get itemInput() { return this._item.internalValue; } } exports.NetworkConnectionMonitorEndpointFilterOutputReference = NetworkConnectionMonitorEndpointFilterOutputReference; _c = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorEndpointFilterOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorEndpointFilterOutputReference", version: "12.27.0" }; function networkConnectionMonitorEndpointToTerraform(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 { address: cdktf.stringToTerraform(struct.address), coverage_level: cdktf.stringToTerraform(struct.coverageLevel), excluded_ip_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.excludedIpAddresses), included_ip_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.includedIpAddresses), name: cdktf.stringToTerraform(struct.name), target_resource_id: cdktf.stringToTerraform(struct.targetResourceId), target_resource_type: cdktf.stringToTerraform(struct.targetResourceType), filter: networkConnectionMonitorEndpointFilterToTerraform(struct.filter), }; } exports.networkConnectionMonitorEndpointToTerraform = networkConnectionMonitorEndpointToTerraform; function networkConnectionMonitorEndpointToHclTerraform(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 = { address: { value: cdktf.stringToHclTerraform(struct.address), isBlock: false, type: "simple", storageClassType: "string", }, coverage_level: { value: cdktf.stringToHclTerraform(struct.coverageLevel), isBlock: false, type: "simple", storageClassType: "string", }, excluded_ip_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.excludedIpAddresses), isBlock: false, type: "set", storageClassType: "stringList", }, included_ip_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.includedIpAddresses), isBlock: false, type: "set", storageClassType: "stringList", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, target_resource_id: { value: cdktf.stringToHclTerraform(struct.targetResourceId), isBlock: false, type: "simple", storageClassType: "string", }, target_resource_type: { value: cdktf.stringToHclTerraform(struct.targetResourceType), isBlock: false, type: "simple", storageClassType: "string", }, filter: { value: networkConnectionMonitorEndpointFilterToHclTerraform(struct.filter), isBlock: true, type: "list", storageClassType: "NetworkConnectionMonitorEndpointFilterList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorEndpointToHclTerraform = networkConnectionMonitorEndpointToHclTerraform; class NetworkConnectionMonitorEndpointOutputReference 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; // filter - computed: false, optional: true, required: false this._filter = new NetworkConnectionMonitorEndpointFilterOutputReference(this, "filter"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._address !== undefined) { hasAnyValues = true; internalValueResult.address = this._address; } if (this._coverageLevel !== undefined) { hasAnyValues = true; internalValueResult.coverageLevel = this._coverageLevel; } if (this._excludedIpAddresses !== undefined) { hasAnyValues = true; internalValueResult.excludedIpAddresses = this._excludedIpAddresses; } if (this._includedIpAddresses !== undefined) { hasAnyValues = true; internalValueResult.includedIpAddresses = this._includedIpAddresses; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._targetResourceId !== undefined) { hasAnyValues = true; internalValueResult.targetResourceId = this._targetResourceId; } if (this._targetResourceType !== undefined) { hasAnyValues = true; internalValueResult.targetResourceType = this._targetResourceType; } if (this._filter?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.filter = this._filter?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._address = undefined; this._coverageLevel = undefined; this._excludedIpAddresses = undefined; this._includedIpAddresses = undefined; this._name = undefined; this._targetResourceId = undefined; this._targetResourceType = undefined; this._filter.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._address = value.address; this._coverageLevel = value.coverageLevel; this._excludedIpAddresses = value.excludedIpAddresses; this._includedIpAddresses = value.includedIpAddresses; this._name = value.name; this._targetResourceId = value.targetResourceId; this._targetResourceType = value.targetResourceType; this._filter.internalValue = value.filter; } } get address() { return this.getStringAttribute('address'); } set address(value) { this._address = value; } resetAddress() { this._address = undefined; } // Temporarily expose input value. Use with caution. get addressInput() { return this._address; } get coverageLevel() { return this.getStringAttribute('coverage_level'); } set coverageLevel(value) { this._coverageLevel = value; } resetCoverageLevel() { this._coverageLevel = undefined; } // Temporarily expose input value. Use with caution. get coverageLevelInput() { return this._coverageLevel; } get excludedIpAddresses() { return cdktf.Fn.tolist(this.getListAttribute('excluded_ip_addresses')); } set excludedIpAddresses(value) { this._excludedIpAddresses = value; } resetExcludedIpAddresses() { this._excludedIpAddresses = undefined; } // Temporarily expose input value. Use with caution. get excludedIpAddressesInput() { return this._excludedIpAddresses; } get includedIpAddresses() { return cdktf.Fn.tolist(this.getListAttribute('included_ip_addresses')); } set includedIpAddresses(value) { this._includedIpAddresses = value; } resetIncludedIpAddresses() { this._includedIpAddresses = undefined; } // Temporarily expose input value. Use with caution. get includedIpAddressesInput() { return this._includedIpAddresses; } 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 targetResourceId() { return this.getStringAttribute('target_resource_id'); } set targetResourceId(value) { this._targetResourceId = value; } resetTargetResourceId() { this._targetResourceId = undefined; } // Temporarily expose input value. Use with caution. get targetResourceIdInput() { return this._targetResourceId; } get targetResourceType() { return this.getStringAttribute('target_resource_type'); } set targetResourceType(value) { this._targetResourceType = value; } resetTargetResourceType() { this._targetResourceType = undefined; } // Temporarily expose input value. Use with caution. get targetResourceTypeInput() { return this._targetResourceType; } get filter() { return this._filter; } putFilter(value) { this._filter.internalValue = value; } resetFilter() { this._filter.internalValue = undefined; } // Temporarily expose input value. Use with caution. get filterInput() { return this._filter.internalValue; } } exports.NetworkConnectionMonitorEndpointOutputReference = NetworkConnectionMonitorEndpointOutputReference; _d = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorEndpointOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorEndpointOutputReference", version: "12.27.0" }; class NetworkConnectionMonitorEndpointList 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 NetworkConnectionMonitorEndpointOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NetworkConnectionMonitorEndpointList = NetworkConnectionMonitorEndpointList; _e = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorEndpointList[_e] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorEndpointList", version: "12.27.0" }; function networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { name: cdktf.stringToTerraform(struct.name), value: cdktf.stringToTerraform(struct.value), }; } exports.networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToTerraform = networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToTerraform; function networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToHclTerraform = networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToHclTerraform; class NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._value = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._name = value.name; this._value = value.value; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderOutputReference = NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderOutputReference; _f = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderOutputReference", version: "12.27.0" }; class NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList 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 NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList = NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList; _g = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList[_g] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList", version: "12.27.0" }; function networkConnectionMonitorTestConfigurationHttpConfigurationToTerraform(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 { method: cdktf.stringToTerraform(struct.method), path: cdktf.stringToTerraform(struct.path), port: cdktf.numberToTerraform(struct.port), prefer_https: cdktf.booleanToTerraform(struct.preferHttps), valid_status_code_ranges: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.validStatusCodeRanges), request_header: cdktf.listMapper(networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToTerraform, true)(struct.requestHeader), }; } exports.networkConnectionMonitorTestConfigurationHttpConfigurationToTerraform = networkConnectionMonitorTestConfigurationHttpConfigurationToTerraform; function networkConnectionMonitorTestConfigurationHttpConfigurationToHclTerraform(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 = { method: { value: cdktf.stringToHclTerraform(struct.method), isBlock: false, type: "simple", storageClassType: "string", }, path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, prefer_https: { value: cdktf.booleanToHclTerraform(struct.preferHttps), isBlock: false, type: "simple", storageClassType: "boolean", }, valid_status_code_ranges: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.validStatusCodeRanges), isBlock: false, type: "set", storageClassType: "stringList", }, request_header: { value: cdktf.listMapperHcl(networkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderToHclTerraform, true)(struct.requestHeader), isBlock: true, type: "set", storageClassType: "NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorTestConfigurationHttpConfigurationToHclTerraform = networkConnectionMonitorTestConfigurationHttpConfigurationToHclTerraform; class NetworkConnectionMonitorTestConfigurationHttpConfigurationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // request_header - computed: false, optional: true, required: false this._requestHeader = new NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderList(this, "request_header", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._method !== undefined) { hasAnyValues = true; internalValueResult.method = this._method; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._preferHttps !== undefined) { hasAnyValues = true; internalValueResult.preferHttps = this._preferHttps; } if (this._validStatusCodeRanges !== undefined) { hasAnyValues = true; internalValueResult.validStatusCodeRanges = this._validStatusCodeRanges; } if (this._requestHeader?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.requestHeader = this._requestHeader?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._method = undefined; this._path = undefined; this._port = undefined; this._preferHttps = undefined; this._validStatusCodeRanges = undefined; this._requestHeader.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._method = value.method; this._path = value.path; this._port = value.port; this._preferHttps = value.preferHttps; this._validStatusCodeRanges = value.validStatusCodeRanges; this._requestHeader.internalValue = value.requestHeader; } } get method() { return this.getStringAttribute('method'); } set method(value) { this._method = value; } resetMethod() { this._method = undefined; } // Temporarily expose input value. Use with caution. get methodInput() { return this._method; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } get preferHttps() { return this.getBooleanAttribute('prefer_https'); } set preferHttps(value) { this._preferHttps = value; } resetPreferHttps() { this._preferHttps = undefined; } // Temporarily expose input value. Use with caution. get preferHttpsInput() { return this._preferHttps; } get validStatusCodeRanges() { return cdktf.Fn.tolist(this.getListAttribute('valid_status_code_ranges')); } set validStatusCodeRanges(value) { this._validStatusCodeRanges = value; } resetValidStatusCodeRanges() { this._validStatusCodeRanges = undefined; } // Temporarily expose input value. Use with caution. get validStatusCodeRangesInput() { return this._validStatusCodeRanges; } get requestHeader() { return this._requestHeader; } putRequestHeader(value) { this._requestHeader.internalValue = value; } resetRequestHeader() { this._requestHeader.internalValue = undefined; } // Temporarily expose input value. Use with caution. get requestHeaderInput() { return this._requestHeader.internalValue; } } exports.NetworkConnectionMonitorTestConfigurationHttpConfigurationOutputReference = NetworkConnectionMonitorTestConfigurationHttpConfigurationOutputReference; _h = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorTestConfigurationHttpConfigurationOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorTestConfigurationHttpConfigurationOutputReference", version: "12.27.0" }; function networkConnectionMonitorTestConfigurationIcmpConfigurationToTerraform(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 { trace_route_enabled: cdktf.booleanToTerraform(struct.traceRouteEnabled), }; } exports.networkConnectionMonitorTestConfigurationIcmpConfigurationToTerraform = networkConnectionMonitorTestConfigurationIcmpConfigurationToTerraform; function networkConnectionMonitorTestConfigurationIcmpConfigurationToHclTerraform(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 = { trace_route_enabled: { value: cdktf.booleanToHclTerraform(struct.traceRouteEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorTestConfigurationIcmpConfigurationToHclTerraform = networkConnectionMonitorTestConfigurationIcmpConfigurationToHclTerraform; class NetworkConnectionMonitorTestConfigurationIcmpConfigurationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._traceRouteEnabled !== undefined) { hasAnyValues = true; internalValueResult.traceRouteEnabled = this._traceRouteEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._traceRouteEnabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._traceRouteEnabled = value.traceRouteEnabled; } } get traceRouteEnabled() { return this.getBooleanAttribute('trace_route_enabled'); } set traceRouteEnabled(value) { this._traceRouteEnabled = value; } resetTraceRouteEnabled() { this._traceRouteEnabled = undefined; } // Temporarily expose input value. Use with caution. get traceRouteEnabledInput() { return this._traceRouteEnabled; } } exports.NetworkConnectionMonitorTestConfigurationIcmpConfigurationOutputReference = NetworkConnectionMonitorTestConfigurationIcmpConfigurationOutputReference; _j = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorTestConfigurationIcmpConfigurationOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorTestConfigurationIcmpConfigurationOutputReference", version: "12.27.0" }; function networkConnectionMonitorTestConfigurationSuccessThresholdToTerraform(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 { checks_failed_percent: cdktf.numberToTerraform(struct.checksFailedPercent), round_trip_time_ms: cdktf.numberToTerraform(struct.roundTripTimeMs), }; } exports.networkConnectionMonitorTestConfigurationSuccessThresholdToTerraform = networkConnectionMonitorTestConfigurationSuccessThresholdToTerraform; function networkConnectionMonitorTestConfigurationSuccessThresholdToHclTerraform(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 = { checks_failed_percent: { value: cdktf.numberToHclTerraform(struct.checksFailedPercent), isBlock: false, type: "simple", storageClassType: "number", }, round_trip_time_ms: { value: cdktf.numberToHclTerraform(struct.roundTripTimeMs), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorTestConfigurationSuccessThresholdToHclTerraform = networkConnectionMonitorTestConfigurationSuccessThresholdToHclTerraform; class NetworkConnectionMonitorTestConfigurationSuccessThresholdOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._checksFailedPercent !== undefined) { hasAnyValues = true; internalValueResult.checksFailedPercent = this._checksFailedPercent; } if (this._roundTripTimeMs !== undefined) { hasAnyValues = true; internalValueResult.roundTripTimeMs = this._roundTripTimeMs; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._checksFailedPercent = undefined; this._roundTripTimeMs = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._checksFailedPercent = value.checksFailedPercent; this._roundTripTimeMs = value.roundTripTimeMs; } } get checksFailedPercent() { return this.getNumberAttribute('checks_failed_percent'); } set checksFailedPercent(value) { this._checksFailedPercent = value; } resetChecksFailedPercent() { this._checksFailedPercent = undefined; } // Temporarily expose input value. Use with caution. get checksFailedPercentInput() { return this._checksFailedPercent; } get roundTripTimeMs() { return this.getNumberAttribute('round_trip_time_ms'); } set roundTripTimeMs(value) { this._roundTripTimeMs = value; } resetRoundTripTimeMs() { this._roundTripTimeMs = undefined; } // Temporarily expose input value. Use with caution. get roundTripTimeMsInput() { return this._roundTripTimeMs; } } exports.NetworkConnectionMonitorTestConfigurationSuccessThresholdOutputReference = NetworkConnectionMonitorTestConfigurationSuccessThresholdOutputReference; _k = JSII_RTTI_SYMBOL_1; NetworkConnectionMonitorTestConfigurationSuccessThresholdOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.networkConnectionMonitor.NetworkConnectionMonitorTestConfigurationSuccessThresholdOutputReference", version: "12.27.0" }; function networkConnectionMonitorTestConfigurationTcpConfigurationToTerraform(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 { destination_port_behavior: cdktf.stringToTerraform(struct.destinationPortBehavior), port: cdktf.numberToTerraform(struct.port), trace_route_enabled: cdktf.booleanToTerraform(struct.traceRouteEnabled), }; } exports.networkConnectionMonitorTestConfigurationTcpConfigurationToTerraform = networkConnectionMonitorTestConfigurationTcpConfigurationToTerraform; function networkConnectionMonitorTestConfigurationTcpConfigurationToHclTerraform(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 = { destination_port_behavior: { value: cdktf.stringToHclTerraform(struct.destinationPortBehavior), isBlock: false, type: "simple", storageClassType: "string", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, trace_route_enabled: { value: cdktf.booleanToHclTerraform(struct.traceRouteEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.networkConnectionMonitorTestConfigurationTcpConfigurationToHclTerraform = networkConnectionMonitorTestConfigurationTcpConfigurationToHclTerraform; class NetworkConnectionMonitorTestConfigurationTcpConfigurationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._destinationPortBehavior !== undefined) { hasAnyValues = true; internalValueResult.destinationPortBehavior = this._destinationPortBehavior; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._traceRouteEnabled !== undefined) { hasAnyValues = true; internalValueResult.traceRouteEnabled = this._traceRouteEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) {