@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,159 lines • 361 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Frontdoor = exports.FrontdoorTimeoutsOutputReference = exports.frontdoorTimeoutsToHclTerraform = exports.frontdoorTimeoutsToTerraform = exports.FrontdoorRoutingRuleList = exports.FrontdoorRoutingRuleOutputReference = exports.frontdoorRoutingRuleToHclTerraform = exports.frontdoorRoutingRuleToTerraform = exports.FrontdoorRoutingRuleRedirectConfigurationOutputReference = exports.frontdoorRoutingRuleRedirectConfigurationToHclTerraform = exports.frontdoorRoutingRuleRedirectConfigurationToTerraform = exports.FrontdoorRoutingRuleForwardingConfigurationOutputReference = exports.frontdoorRoutingRuleForwardingConfigurationToHclTerraform = exports.frontdoorRoutingRuleForwardingConfigurationToTerraform = exports.FrontdoorFrontendEndpointList = exports.FrontdoorFrontendEndpointOutputReference = exports.frontdoorFrontendEndpointToHclTerraform = exports.frontdoorFrontendEndpointToTerraform = exports.FrontdoorBackendPoolSettingsList = exports.FrontdoorBackendPoolSettingsOutputReference = exports.frontdoorBackendPoolSettingsToHclTerraform = exports.frontdoorBackendPoolSettingsToTerraform = exports.FrontdoorBackendPoolLoadBalancingList = exports.FrontdoorBackendPoolLoadBalancingOutputReference = exports.frontdoorBackendPoolLoadBalancingToHclTerraform = exports.frontdoorBackendPoolLoadBalancingToTerraform = exports.FrontdoorBackendPoolHealthProbeList = exports.FrontdoorBackendPoolHealthProbeOutputReference = exports.frontdoorBackendPoolHealthProbeToHclTerraform = exports.frontdoorBackendPoolHealthProbeToTerraform = exports.FrontdoorBackendPoolList = exports.FrontdoorBackendPoolOutputReference = exports.frontdoorBackendPoolToHclTerraform = exports.frontdoorBackendPoolToTerraform = exports.FrontdoorBackendPoolBackendList = exports.FrontdoorBackendPoolBackendOutputReference = exports.frontdoorBackendPoolBackendToHclTerraform = exports.frontdoorBackendPoolBackendToTerraform = exports.FrontdoorExplicitResourceOrderList = exports.FrontdoorExplicitResourceOrderOutputReference = exports.frontdoorExplicitResourceOrderToHclTerraform = exports.frontdoorExplicitResourceOrderToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function frontdoorExplicitResourceOrderToTerraform(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.frontdoorExplicitResourceOrderToTerraform = frontdoorExplicitResourceOrderToTerraform;
function frontdoorExplicitResourceOrderToHclTerraform(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.frontdoorExplicitResourceOrderToHclTerraform = frontdoorExplicitResourceOrderToHclTerraform;
class FrontdoorExplicitResourceOrderOutputReference 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;
}
}
// backend_pool_health_probe_ids - computed: true, optional: false, required: false
get backendPoolHealthProbeIds() {
return this.getListAttribute('backend_pool_health_probe_ids');
}
// backend_pool_ids - computed: true, optional: false, required: false
get backendPoolIds() {
return this.getListAttribute('backend_pool_ids');
}
// backend_pool_load_balancing_ids - computed: true, optional: false, required: false
get backendPoolLoadBalancingIds() {
return this.getListAttribute('backend_pool_load_balancing_ids');
}
// frontend_endpoint_ids - computed: true, optional: false, required: false
get frontendEndpointIds() {
return this.getListAttribute('frontend_endpoint_ids');
}
// routing_rule_ids - computed: true, optional: false, required: false
get routingRuleIds() {
return this.getListAttribute('routing_rule_ids');
}
}
exports.FrontdoorExplicitResourceOrderOutputReference = FrontdoorExplicitResourceOrderOutputReference;
_a = JSII_RTTI_SYMBOL_1;
FrontdoorExplicitResourceOrderOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorExplicitResourceOrderOutputReference", version: "12.27.0" };
class FrontdoorExplicitResourceOrderList 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 FrontdoorExplicitResourceOrderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FrontdoorExplicitResourceOrderList = FrontdoorExplicitResourceOrderList;
_b = JSII_RTTI_SYMBOL_1;
FrontdoorExplicitResourceOrderList[_b] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorExplicitResourceOrderList", version: "12.27.0" };
function frontdoorBackendPoolBackendToTerraform(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),
enabled: cdktf.booleanToTerraform(struct.enabled),
host_header: cdktf.stringToTerraform(struct.hostHeader),
http_port: cdktf.numberToTerraform(struct.httpPort),
https_port: cdktf.numberToTerraform(struct.httpsPort),
priority: cdktf.numberToTerraform(struct.priority),
weight: cdktf.numberToTerraform(struct.weight),
};
}
exports.frontdoorBackendPoolBackendToTerraform = frontdoorBackendPoolBackendToTerraform;
function frontdoorBackendPoolBackendToHclTerraform(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",
},
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
host_header: {
value: cdktf.stringToHclTerraform(struct.hostHeader),
isBlock: false,
type: "simple",
storageClassType: "string",
},
http_port: {
value: cdktf.numberToHclTerraform(struct.httpPort),
isBlock: false,
type: "simple",
storageClassType: "number",
},
https_port: {
value: cdktf.numberToHclTerraform(struct.httpsPort),
isBlock: false,
type: "simple",
storageClassType: "number",
},
priority: {
value: cdktf.numberToHclTerraform(struct.priority),
isBlock: false,
type: "simple",
storageClassType: "number",
},
weight: {
value: cdktf.numberToHclTerraform(struct.weight),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.frontdoorBackendPoolBackendToHclTerraform = frontdoorBackendPoolBackendToHclTerraform;
class FrontdoorBackendPoolBackendOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._hostHeader !== undefined) {
hasAnyValues = true;
internalValueResult.hostHeader = this._hostHeader;
}
if (this._httpPort !== undefined) {
hasAnyValues = true;
internalValueResult.httpPort = this._httpPort;
}
if (this._httpsPort !== undefined) {
hasAnyValues = true;
internalValueResult.httpsPort = this._httpsPort;
}
if (this._priority !== undefined) {
hasAnyValues = true;
internalValueResult.priority = this._priority;
}
if (this._weight !== undefined) {
hasAnyValues = true;
internalValueResult.weight = this._weight;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._address = undefined;
this._enabled = undefined;
this._hostHeader = undefined;
this._httpPort = undefined;
this._httpsPort = undefined;
this._priority = undefined;
this._weight = 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._enabled = value.enabled;
this._hostHeader = value.hostHeader;
this._httpPort = value.httpPort;
this._httpsPort = value.httpsPort;
this._priority = value.priority;
this._weight = value.weight;
}
}
get address() {
return this.getStringAttribute('address');
}
set address(value) {
this._address = value;
}
// Temporarily expose input value. Use with caution.
get addressInput() {
return this._address;
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get hostHeader() {
return this.getStringAttribute('host_header');
}
set hostHeader(value) {
this._hostHeader = value;
}
// Temporarily expose input value. Use with caution.
get hostHeaderInput() {
return this._hostHeader;
}
get httpPort() {
return this.getNumberAttribute('http_port');
}
set httpPort(value) {
this._httpPort = value;
}
// Temporarily expose input value. Use with caution.
get httpPortInput() {
return this._httpPort;
}
get httpsPort() {
return this.getNumberAttribute('https_port');
}
set httpsPort(value) {
this._httpsPort = value;
}
// Temporarily expose input value. Use with caution.
get httpsPortInput() {
return this._httpsPort;
}
get priority() {
return this.getNumberAttribute('priority');
}
set priority(value) {
this._priority = value;
}
resetPriority() {
this._priority = undefined;
}
// Temporarily expose input value. Use with caution.
get priorityInput() {
return this._priority;
}
get weight() {
return this.getNumberAttribute('weight');
}
set weight(value) {
this._weight = value;
}
resetWeight() {
this._weight = undefined;
}
// Temporarily expose input value. Use with caution.
get weightInput() {
return this._weight;
}
}
exports.FrontdoorBackendPoolBackendOutputReference = FrontdoorBackendPoolBackendOutputReference;
_c = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolBackendOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolBackendOutputReference", version: "12.27.0" };
class FrontdoorBackendPoolBackendList 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 FrontdoorBackendPoolBackendOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FrontdoorBackendPoolBackendList = FrontdoorBackendPoolBackendList;
_d = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolBackendList[_d] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolBackendList", version: "12.27.0" };
function frontdoorBackendPoolToTerraform(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 {
health_probe_name: cdktf.stringToTerraform(struct.healthProbeName),
load_balancing_name: cdktf.stringToTerraform(struct.loadBalancingName),
name: cdktf.stringToTerraform(struct.name),
backend: cdktf.listMapper(frontdoorBackendPoolBackendToTerraform, true)(struct.backend),
};
}
exports.frontdoorBackendPoolToTerraform = frontdoorBackendPoolToTerraform;
function frontdoorBackendPoolToHclTerraform(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 = {
health_probe_name: {
value: cdktf.stringToHclTerraform(struct.healthProbeName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
load_balancing_name: {
value: cdktf.stringToHclTerraform(struct.loadBalancingName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
backend: {
value: cdktf.listMapperHcl(frontdoorBackendPoolBackendToHclTerraform, true)(struct.backend),
isBlock: true,
type: "list",
storageClassType: "FrontdoorBackendPoolBackendList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.frontdoorBackendPoolToHclTerraform = frontdoorBackendPoolToHclTerraform;
class FrontdoorBackendPoolOutputReference 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;
// backend - computed: false, optional: false, required: true
this._backend = new FrontdoorBackendPoolBackendList(this, "backend", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._healthProbeName !== undefined) {
hasAnyValues = true;
internalValueResult.healthProbeName = this._healthProbeName;
}
if (this._loadBalancingName !== undefined) {
hasAnyValues = true;
internalValueResult.loadBalancingName = this._loadBalancingName;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._backend?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.backend = this._backend?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._healthProbeName = undefined;
this._loadBalancingName = undefined;
this._name = undefined;
this._backend.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._healthProbeName = value.healthProbeName;
this._loadBalancingName = value.loadBalancingName;
this._name = value.name;
this._backend.internalValue = value.backend;
}
}
get healthProbeName() {
return this.getStringAttribute('health_probe_name');
}
set healthProbeName(value) {
this._healthProbeName = value;
}
// Temporarily expose input value. Use with caution.
get healthProbeNameInput() {
return this._healthProbeName;
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
get loadBalancingName() {
return this.getStringAttribute('load_balancing_name');
}
set loadBalancingName(value) {
this._loadBalancingName = value;
}
// Temporarily expose input value. Use with caution.
get loadBalancingNameInput() {
return this._loadBalancingName;
}
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 backend() {
return this._backend;
}
putBackend(value) {
this._backend.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get backendInput() {
return this._backend.internalValue;
}
}
exports.FrontdoorBackendPoolOutputReference = FrontdoorBackendPoolOutputReference;
_e = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolOutputReference", version: "12.27.0" };
class FrontdoorBackendPoolList 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 FrontdoorBackendPoolOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FrontdoorBackendPoolList = FrontdoorBackendPoolList;
_f = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolList[_f] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolList", version: "12.27.0" };
function frontdoorBackendPoolHealthProbeToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
enabled: cdktf.booleanToTerraform(struct.enabled),
interval_in_seconds: cdktf.numberToTerraform(struct.intervalInSeconds),
name: cdktf.stringToTerraform(struct.name),
path: cdktf.stringToTerraform(struct.path),
probe_method: cdktf.stringToTerraform(struct.probeMethod),
protocol: cdktf.stringToTerraform(struct.protocol),
};
}
exports.frontdoorBackendPoolHealthProbeToTerraform = frontdoorBackendPoolHealthProbeToTerraform;
function frontdoorBackendPoolHealthProbeToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
interval_in_seconds: {
value: cdktf.numberToHclTerraform(struct.intervalInSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
path: {
value: cdktf.stringToHclTerraform(struct.path),
isBlock: false,
type: "simple",
storageClassType: "string",
},
probe_method: {
value: cdktf.stringToHclTerraform(struct.probeMethod),
isBlock: false,
type: "simple",
storageClassType: "string",
},
protocol: {
value: cdktf.stringToHclTerraform(struct.protocol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.frontdoorBackendPoolHealthProbeToHclTerraform = frontdoorBackendPoolHealthProbeToHclTerraform;
class FrontdoorBackendPoolHealthProbeOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._intervalInSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.intervalInSeconds = this._intervalInSeconds;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
if (this._probeMethod !== undefined) {
hasAnyValues = true;
internalValueResult.probeMethod = this._probeMethod;
}
if (this._protocol !== undefined) {
hasAnyValues = true;
internalValueResult.protocol = this._protocol;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._enabled = undefined;
this._intervalInSeconds = undefined;
this._name = undefined;
this._path = undefined;
this._probeMethod = undefined;
this._protocol = 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._enabled = value.enabled;
this._intervalInSeconds = value.intervalInSeconds;
this._name = value.name;
this._path = value.path;
this._probeMethod = value.probeMethod;
this._protocol = value.protocol;
}
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
get intervalInSeconds() {
return this.getNumberAttribute('interval_in_seconds');
}
set intervalInSeconds(value) {
this._intervalInSeconds = value;
}
resetIntervalInSeconds() {
this._intervalInSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get intervalInSecondsInput() {
return this._intervalInSeconds;
}
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 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 probeMethod() {
return this.getStringAttribute('probe_method');
}
set probeMethod(value) {
this._probeMethod = value;
}
resetProbeMethod() {
this._probeMethod = undefined;
}
// Temporarily expose input value. Use with caution.
get probeMethodInput() {
return this._probeMethod;
}
get protocol() {
return this.getStringAttribute('protocol');
}
set protocol(value) {
this._protocol = value;
}
resetProtocol() {
this._protocol = undefined;
}
// Temporarily expose input value. Use with caution.
get protocolInput() {
return this._protocol;
}
}
exports.FrontdoorBackendPoolHealthProbeOutputReference = FrontdoorBackendPoolHealthProbeOutputReference;
_g = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolHealthProbeOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolHealthProbeOutputReference", version: "12.27.0" };
class FrontdoorBackendPoolHealthProbeList 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 FrontdoorBackendPoolHealthProbeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FrontdoorBackendPoolHealthProbeList = FrontdoorBackendPoolHealthProbeList;
_h = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolHealthProbeList[_h] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolHealthProbeList", version: "12.27.0" };
function frontdoorBackendPoolLoadBalancingToTerraform(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 {
additional_latency_milliseconds: cdktf.numberToTerraform(struct.additionalLatencyMilliseconds),
name: cdktf.stringToTerraform(struct.name),
sample_size: cdktf.numberToTerraform(struct.sampleSize),
successful_samples_required: cdktf.numberToTerraform(struct.successfulSamplesRequired),
};
}
exports.frontdoorBackendPoolLoadBalancingToTerraform = frontdoorBackendPoolLoadBalancingToTerraform;
function frontdoorBackendPoolLoadBalancingToHclTerraform(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 = {
additional_latency_milliseconds: {
value: cdktf.numberToHclTerraform(struct.additionalLatencyMilliseconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
sample_size: {
value: cdktf.numberToHclTerraform(struct.sampleSize),
isBlock: false,
type: "simple",
storageClassType: "number",
},
successful_samples_required: {
value: cdktf.numberToHclTerraform(struct.successfulSamplesRequired),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.frontdoorBackendPoolLoadBalancingToHclTerraform = frontdoorBackendPoolLoadBalancingToHclTerraform;
class FrontdoorBackendPoolLoadBalancingOutputReference 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._additionalLatencyMilliseconds !== undefined) {
hasAnyValues = true;
internalValueResult.additionalLatencyMilliseconds = this._additionalLatencyMilliseconds;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._sampleSize !== undefined) {
hasAnyValues = true;
internalValueResult.sampleSize = this._sampleSize;
}
if (this._successfulSamplesRequired !== undefined) {
hasAnyValues = true;
internalValueResult.successfulSamplesRequired = this._successfulSamplesRequired;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._additionalLatencyMilliseconds = undefined;
this._name = undefined;
this._sampleSize = undefined;
this._successfulSamplesRequired = 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._additionalLatencyMilliseconds = value.additionalLatencyMilliseconds;
this._name = value.name;
this._sampleSize = value.sampleSize;
this._successfulSamplesRequired = value.successfulSamplesRequired;
}
}
get additionalLatencyMilliseconds() {
return this.getNumberAttribute('additional_latency_milliseconds');
}
set additionalLatencyMilliseconds(value) {
this._additionalLatencyMilliseconds = value;
}
resetAdditionalLatencyMilliseconds() {
this._additionalLatencyMilliseconds = undefined;
}
// Temporarily expose input value. Use with caution.
get additionalLatencyMillisecondsInput() {
return this._additionalLatencyMilliseconds;
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('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 sampleSize() {
return this.getNumberAttribute('sample_size');
}
set sampleSize(value) {
this._sampleSize = value;
}
resetSampleSize() {
this._sampleSize = undefined;
}
// Temporarily expose input value. Use with caution.
get sampleSizeInput() {
return this._sampleSize;
}
get successfulSamplesRequired() {
return this.getNumberAttribute('successful_samples_required');
}
set successfulSamplesRequired(value) {
this._successfulSamplesRequired = value;
}
resetSuccessfulSamplesRequired() {
this._successfulSamplesRequired = undefined;
}
// Temporarily expose input value. Use with caution.
get successfulSamplesRequiredInput() {
return this._successfulSamplesRequired;
}
}
exports.FrontdoorBackendPoolLoadBalancingOutputReference = FrontdoorBackendPoolLoadBalancingOutputReference;
_j = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolLoadBalancingOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolLoadBalancingOutputReference", version: "12.27.0" };
class FrontdoorBackendPoolLoadBalancingList 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 FrontdoorBackendPoolLoadBalancingOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FrontdoorBackendPoolLoadBalancingList = FrontdoorBackendPoolLoadBalancingList;
_k = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolLoadBalancingList[_k] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolLoadBalancingList", version: "12.27.0" };
function frontdoorBackendPoolSettingsToTerraform(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 {
backend_pools_send_receive_timeout_seconds: cdktf.numberToTerraform(struct.backendPoolsSendReceiveTimeoutSeconds),
enforce_backend_pools_certificate_name_check: cdktf.booleanToTerraform(struct.enforceBackendPoolsCertificateNameCheck),
};
}
exports.frontdoorBackendPoolSettingsToTerraform = frontdoorBackendPoolSettingsToTerraform;
function frontdoorBackendPoolSettingsToHclTerraform(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 = {
backend_pools_send_receive_timeout_seconds: {
value: cdktf.numberToHclTerraform(struct.backendPoolsSendReceiveTimeoutSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
enforce_backend_pools_certificate_name_check: {
value: cdktf.booleanToHclTerraform(struct.enforceBackendPoolsCertificateNameCheck),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.frontdoorBackendPoolSettingsToHclTerraform = frontdoorBackendPoolSettingsToHclTerraform;
class FrontdoorBackendPoolSettingsOutputReference 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._backendPoolsSendReceiveTimeoutSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.backendPoolsSendReceiveTimeoutSeconds = this._backendPoolsSendReceiveTimeoutSeconds;
}
if (this._enforceBackendPoolsCertificateNameCheck !== undefined) {
hasAnyValues = true;
internalValueResult.enforceBackendPoolsCertificateNameCheck = this._enforceBackendPoolsCertificateNameCheck;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._backendPoolsSendReceiveTimeoutSeconds = undefined;
this._enforceBackendPoolsCertificateNameCheck = 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._backendPoolsSendReceiveTimeoutSeconds = value.backendPoolsSendReceiveTimeoutSeconds;
this._enforceBackendPoolsCertificateNameCheck = value.enforceBackendPoolsCertificateNameCheck;
}
}
get backendPoolsSendReceiveTimeoutSeconds() {
return this.getNumberAttribute('backend_pools_send_receive_timeout_seconds');
}
set backendPoolsSendReceiveTimeoutSeconds(value) {
this._backendPoolsSendReceiveTimeoutSeconds = value;
}
resetBackendPoolsSendReceiveTimeoutSeconds() {
this._backendPoolsSendReceiveTimeoutSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get backendPoolsSendReceiveTimeoutSecondsInput() {
return this._backendPoolsSendReceiveTimeoutSeconds;
}
get enforceBackendPoolsCertificateNameCheck() {
return this.getBooleanAttribute('enforce_backend_pools_certificate_name_check');
}
set enforceBackendPoolsCertificateNameCheck(value) {
this._enforceBackendPoolsCertificateNameCheck = value;
}
// Temporarily expose input value. Use with caution.
get enforceBackendPoolsCertificateNameCheckInput() {
return this._enforceBackendPoolsCertificateNameCheck;
}
}
exports.FrontdoorBackendPoolSettingsOutputReference = FrontdoorBackendPoolSettingsOutputReference;
_l = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolSettingsOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolSettingsOutputReference", version: "12.27.0" };
class FrontdoorBackendPoolSettingsList 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 FrontdoorBackendPoolSettingsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.FrontdoorBackendPoolSettingsList = FrontdoorBackendPoolSettingsList;
_m = JSII_RTTI_SYMBOL_1;
FrontdoorBackendPoolSettingsList[_m] = { fqn: "@cdktf/provider-azurerm.frontdoor.FrontdoorBackendPoolSettingsList", version: "12.27.0" };
function frontdoorFrontendEndpointToTerraform(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 {
host_name: cdktf.stringToTerraform(struct.hostName),
name: cdktf.stringToTerraform(struct.name),
session_affinity_enabled: cdktf.booleanToTerraform(struct.sessionAffinityEnabled),
session_affinity_ttl_seconds: cdktf.numberToTerraform(struct.sessionAffinityTtlSeconds),
web_application_firewall_policy_link_id: cdktf.stringToTerraform(struct.webApplicationFirewallPolicyLinkId),
};
}
exports.frontdoorFrontendEndpointToTerraform = frontdoorFrontendEndpointToTerraform;
function frontdoorFrontendEndpointToHclTerraform(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 = {
host_name: {
value: cdktf.stringToHclTerraform(struct.hostName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
session_affinity_enabled: {
value: cdktf.booleanToHclTerraform(struct.sessionAffinityEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
session_affinity_ttl_seconds: {
value: cdktf.numberToHclTerraform(struct.sessionAffinityTtlSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
web_application_firewall_policy_link_id: {
value: cdktf.stringToHclTerraform(struct.webApplicationFirewallPolicyLinkId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.frontdoorFrontendEndpointToHclTerraform = frontdoorFrontendEndpointToHclTerraform;
class FrontdoorFrontendEndpointOutputReference 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, ter