@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,157 lines • 164 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApplicationInsightsStandardWebTest = exports.ApplicationInsightsStandardWebTestValidationRulesOutputReference = exports.applicationInsightsStandardWebTestValidationRulesToHclTerraform = exports.applicationInsightsStandardWebTestValidationRulesToTerraform = exports.ApplicationInsightsStandardWebTestValidationRulesContentOutputReference = exports.applicationInsightsStandardWebTestValidationRulesContentToHclTerraform = exports.applicationInsightsStandardWebTestValidationRulesContentToTerraform = exports.ApplicationInsightsStandardWebTestTimeoutsOutputReference = exports.applicationInsightsStandardWebTestTimeoutsToHclTerraform = exports.applicationInsightsStandardWebTestTimeoutsToTerraform = exports.ApplicationInsightsStandardWebTestRequestOutputReference = exports.applicationInsightsStandardWebTestRequestToHclTerraform = exports.applicationInsightsStandardWebTestRequestToTerraform = exports.ApplicationInsightsStandardWebTestRequestHeaderList = exports.ApplicationInsightsStandardWebTestRequestHeaderOutputReference = exports.applicationInsightsStandardWebTestRequestHeaderToHclTerraform = exports.applicationInsightsStandardWebTestRequestHeaderToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function applicationInsightsStandardWebTestRequestHeaderToTerraform(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.applicationInsightsStandardWebTestRequestHeaderToTerraform = applicationInsightsStandardWebTestRequestHeaderToTerraform;
function applicationInsightsStandardWebTestRequestHeaderToHclTerraform(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.applicationInsightsStandardWebTestRequestHeaderToHclTerraform = applicationInsightsStandardWebTestRequestHeaderToHclTerraform;
class ApplicationInsightsStandardWebTestRequestHeaderOutputReference 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.ApplicationInsightsStandardWebTestRequestHeaderOutputReference = ApplicationInsightsStandardWebTestRequestHeaderOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ApplicationInsightsStandardWebTestRequestHeaderOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.applicationInsightsStandardWebTest.ApplicationInsightsStandardWebTestRequestHeaderOutputReference", version: "12.27.0" };
class ApplicationInsightsStandardWebTestRequestHeaderList 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 ApplicationInsightsStandardWebTestRequestHeaderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApplicationInsightsStandardWebTestRequestHeaderList = ApplicationInsightsStandardWebTestRequestHeaderList;
_b = JSII_RTTI_SYMBOL_1;
ApplicationInsightsStandardWebTestRequestHeaderList[_b] = { fqn: "@cdktf/provider-azurerm.applicationInsightsStandardWebTest.ApplicationInsightsStandardWebTestRequestHeaderList", version: "12.27.0" };
function applicationInsightsStandardWebTestRequestToTerraform(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 {
body: cdktf.stringToTerraform(struct.body),
follow_redirects_enabled: cdktf.booleanToTerraform(struct.followRedirectsEnabled),
http_verb: cdktf.stringToTerraform(struct.httpVerb),
parse_dependent_requests_enabled: cdktf.booleanToTerraform(struct.parseDependentRequestsEnabled),
url: cdktf.stringToTerraform(struct.url),
header: cdktf.listMapper(applicationInsightsStandardWebTestRequestHeaderToTerraform, true)(struct.header),
};
}
exports.applicationInsightsStandardWebTestRequestToTerraform = applicationInsightsStandardWebTestRequestToTerraform;
function applicationInsightsStandardWebTestRequestToHclTerraform(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 = {
body: {
value: cdktf.stringToHclTerraform(struct.body),
isBlock: false,
type: "simple",
storageClassType: "string",
},
follow_redirects_enabled: {
value: cdktf.booleanToHclTerraform(struct.followRedirectsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
http_verb: {
value: cdktf.stringToHclTerraform(struct.httpVerb),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parse_dependent_requests_enabled: {
value: cdktf.booleanToHclTerraform(struct.parseDependentRequestsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
url: {
value: cdktf.stringToHclTerraform(struct.url),
isBlock: false,
type: "simple",
storageClassType: "string",
},
header: {
value: cdktf.listMapperHcl(applicationInsightsStandardWebTestRequestHeaderToHclTerraform, true)(struct.header),
isBlock: true,
type: "list",
storageClassType: "ApplicationInsightsStandardWebTestRequestHeaderList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.applicationInsightsStandardWebTestRequestToHclTerraform = applicationInsightsStandardWebTestRequestToHclTerraform;
class ApplicationInsightsStandardWebTestRequestOutputReference 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;
// header - computed: false, optional: true, required: false
this._header = new ApplicationInsightsStandardWebTestRequestHeaderList(this, "header", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._body !== undefined) {
hasAnyValues = true;
internalValueResult.body = this._body;
}
if (this._followRedirectsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.followRedirectsEnabled = this._followRedirectsEnabled;
}
if (this._httpVerb !== undefined) {
hasAnyValues = true;
internalValueResult.httpVerb = this._httpVerb;
}
if (this._parseDependentRequestsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.parseDependentRequestsEnabled = this._parseDependentRequestsEnabled;
}
if (this._url !== undefined) {
hasAnyValues = true;
internalValueResult.url = this._url;
}
if (this._header?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.header = this._header?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._body = undefined;
this._followRedirectsEnabled = undefined;
this._httpVerb = undefined;
this._parseDependentRequestsEnabled = undefined;
this._url = undefined;
this._header.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._body = value.body;
this._followRedirectsEnabled = value.followRedirectsEnabled;
this._httpVerb = value.httpVerb;
this._parseDependentRequestsEnabled = value.parseDependentRequestsEnabled;
this._url = value.url;
this._header.internalValue = value.header;
}
}
get body() {
return this.getStringAttribute('body');
}
set body(value) {
this._body = value;
}
resetBody() {
this._body = undefined;
}
// Temporarily expose input value. Use with caution.
get bodyInput() {
return this._body;
}
get followRedirectsEnabled() {
return this.getBooleanAttribute('follow_redirects_enabled');
}
set followRedirectsEnabled(value) {
this._followRedirectsEnabled = value;
}
resetFollowRedirectsEnabled() {
this._followRedirectsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get followRedirectsEnabledInput() {
return this._followRedirectsEnabled;
}
get httpVerb() {
return this.getStringAttribute('http_verb');
}
set httpVerb(value) {
this._httpVerb = value;
}
resetHttpVerb() {
this._httpVerb = undefined;
}
// Temporarily expose input value. Use with caution.
get httpVerbInput() {
return this._httpVerb;
}
get parseDependentRequestsEnabled() {
return this.getBooleanAttribute('parse_dependent_requests_enabled');
}
set parseDependentRequestsEnabled(value) {
this._parseDependentRequestsEnabled = value;
}
resetParseDependentRequestsEnabled() {
this._parseDependentRequestsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get parseDependentRequestsEnabledInput() {
return this._parseDependentRequestsEnabled;
}
get url() {
return this.getStringAttribute('url');
}
set url(value) {
this._url = value;
}
// Temporarily expose input value. Use with caution.
get urlInput() {
return this._url;
}
get header() {
return this._header;
}
putHeader(value) {
this._header.internalValue = value;
}
resetHeader() {
this._header.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get headerInput() {
return this._header.internalValue;
}
}
exports.ApplicationInsightsStandardWebTestRequestOutputReference = ApplicationInsightsStandardWebTestRequestOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ApplicationInsightsStandardWebTestRequestOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.applicationInsightsStandardWebTest.ApplicationInsightsStandardWebTestRequestOutputReference", version: "12.27.0" };
function applicationInsightsStandardWebTestTimeoutsToTerraform(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 {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
read: cdktf.stringToTerraform(struct.read),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.applicationInsightsStandardWebTestTimeoutsToTerraform = applicationInsightsStandardWebTestTimeoutsToTerraform;
function applicationInsightsStandardWebTestTimeoutsToHclTerraform(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 = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
read: {
value: cdktf.stringToHclTerraform(struct.read),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.applicationInsightsStandardWebTestTimeoutsToHclTerraform = applicationInsightsStandardWebTestTimeoutsToHclTerraform;
class ApplicationInsightsStandardWebTestTimeoutsOutputReference 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._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._read !== undefined) {
hasAnyValues = true;
internalValueResult.read = this._read;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._read = undefined;
this._update = 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._create = value.create;
this._delete = value.delete;
this._read = value.read;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
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;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.ApplicationInsightsStandardWebTestTimeoutsOutputReference = ApplicationInsightsStandardWebTestTimeoutsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ApplicationInsightsStandardWebTestTimeoutsOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.applicationInsightsStandardWebTest.ApplicationInsightsStandardWebTestTimeoutsOutputReference", version: "12.27.0" };
function applicationInsightsStandardWebTestValidationRulesContentToTerraform(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 {
content_match: cdktf.stringToTerraform(struct.contentMatch),
ignore_case: cdktf.booleanToTerraform(struct.ignoreCase),
pass_if_text_found: cdktf.booleanToTerraform(struct.passIfTextFound),
};
}
exports.applicationInsightsStandardWebTestValidationRulesContentToTerraform = applicationInsightsStandardWebTestValidationRulesContentToTerraform;
function applicationInsightsStandardWebTestValidationRulesContentToHclTerraform(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 = {
content_match: {
value: cdktf.stringToHclTerraform(struct.contentMatch),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ignore_case: {
value: cdktf.booleanToHclTerraform(struct.ignoreCase),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
pass_if_text_found: {
value: cdktf.booleanToHclTerraform(struct.passIfTextFound),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.applicationInsightsStandardWebTestValidationRulesContentToHclTerraform = applicationInsightsStandardWebTestValidationRulesContentToHclTerraform;
class ApplicationInsightsStandardWebTestValidationRulesContentOutputReference 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._contentMatch !== undefined) {
hasAnyValues = true;
internalValueResult.contentMatch = this._contentMatch;
}
if (this._ignoreCase !== undefined) {
hasAnyValues = true;
internalValueResult.ignoreCase = this._ignoreCase;
}
if (this._passIfTextFound !== undefined) {
hasAnyValues = true;
internalValueResult.passIfTextFound = this._passIfTextFound;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._contentMatch = undefined;
this._ignoreCase = undefined;
this._passIfTextFound = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._contentMatch = value.contentMatch;
this._ignoreCase = value.ignoreCase;
this._passIfTextFound = value.passIfTextFound;
}
}
get contentMatch() {
return this.getStringAttribute('content_match');
}
set contentMatch(value) {
this._contentMatch = value;
}
// Temporarily expose input value. Use with caution.
get contentMatchInput() {
return this._contentMatch;
}
get ignoreCase() {
return this.getBooleanAttribute('ignore_case');
}
set ignoreCase(value) {
this._ignoreCase = value;
}
resetIgnoreCase() {
this._ignoreCase = undefined;
}
// Temporarily expose input value. Use with caution.
get ignoreCaseInput() {
return this._ignoreCase;
}
get passIfTextFound() {
return this.getBooleanAttribute('pass_if_text_found');
}
set passIfTextFound(value) {
this._passIfTextFound = value;
}
resetPassIfTextFound() {
this._passIfTextFound = undefined;
}
// Temporarily expose input value. Use with caution.
get passIfTextFoundInput() {
return this._passIfTextFound;
}
}
exports.ApplicationInsightsStandardWebTestValidationRulesContentOutputReference = ApplicationInsightsStandardWebTestValidationRulesContentOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ApplicationInsightsStandardWebTestValidationRulesContentOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.applicationInsightsStandardWebTest.ApplicationInsightsStandardWebTestValidationRulesContentOutputReference", version: "12.27.0" };
function applicationInsightsStandardWebTestValidationRulesToTerraform(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 {
expected_status_code: cdktf.numberToTerraform(struct.expectedStatusCode),
ssl_cert_remaining_lifetime: cdktf.numberToTerraform(struct.sslCertRemainingLifetime),
ssl_check_enabled: cdktf.booleanToTerraform(struct.sslCheckEnabled),
content: applicationInsightsStandardWebTestValidationRulesContentToTerraform(struct.content),
};
}
exports.applicationInsightsStandardWebTestValidationRulesToTerraform = applicationInsightsStandardWebTestValidationRulesToTerraform;
function applicationInsightsStandardWebTestValidationRulesToHclTerraform(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 = {
expected_status_code: {
value: cdktf.numberToHclTerraform(struct.expectedStatusCode),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ssl_cert_remaining_lifetime: {
value: cdktf.numberToHclTerraform(struct.sslCertRemainingLifetime),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ssl_check_enabled: {
value: cdktf.booleanToHclTerraform(struct.sslCheckEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
content: {
value: applicationInsightsStandardWebTestValidationRulesContentToHclTerraform(struct.content),
isBlock: true,
type: "list",
storageClassType: "ApplicationInsightsStandardWebTestValidationRulesContentList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.applicationInsightsStandardWebTestValidationRulesToHclTerraform = applicationInsightsStandardWebTestValidationRulesToHclTerraform;
class ApplicationInsightsStandardWebTestValidationRulesOutputReference 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;
// content - computed: false, optional: true, required: false
this._content = new ApplicationInsightsStandardWebTestValidationRulesContentOutputReference(this, "content");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._expectedStatusCode !== undefined) {
hasAnyValues = true;
internalValueResult.expectedStatusCode = this._expectedStatusCode;
}
if (this._sslCertRemainingLifetime !== undefined) {
hasAnyValues = true;
internalValueResult.sslCertRemainingLifetime = this._sslCertRemainingLifetime;
}
if (this._sslCheckEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.sslCheckEnabled = this._sslCheckEnabled;
}
if (this._content?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.content = this._content?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._expectedStatusCode = undefined;
this._sslCertRemainingLifetime = undefined;
this._sslCheckEnabled = undefined;
this._content.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._expectedStatusCode = value.expectedStatusCode;
this._sslCertRemainingLifetime = value.sslCertRemainingLifetime;
this._sslCheckEnabled = value.sslCheckEnabled;
this._content.internalValue = value.content;
}
}
get expectedStatusCode() {
return this.getNumberAttribute('expected_status_code');
}
set expectedStatusCode(value) {
this._expectedStatusCode = value;
}
resetExpectedStatusCode() {
this._expectedStatusCode = undefined;
}
// Temporarily expose input value. Use with caution.
get expectedStatusCodeInput() {
return this._expectedStatusCode;
}
get sslCertRemainingLifetime() {
return this.getNumberAttribute('ssl_cert_remaining_lifetime');
}
set sslCertRemainingLifetime(value) {
this._sslCertRemainingLifetime = value;
}
resetSslCertRemainingLifetime() {
this._sslCertRemainingLifetime = undefined;
}
// Temporarily expose input value. Use with caution.
get sslCertRemainingLifetimeInput() {
return this._sslCertRemainingLifetime;
}
get sslCheckEnabled() {
return this.getBooleanAttribute('ssl_check_enabled');
}
set sslCheckEnabled(value) {
this._sslCheckEnabled = value;
}
resetSslCheckEnabled() {
this._sslCheckEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get sslCheckEnabledInput() {
return this._sslCheckEnabled;
}
get content() {
return this._content;
}
putContent(value) {
this._content.internalValue = value;
}
resetContent() {
this._content.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get contentInput() {
return this._content.internalValue;
}
}
exports.ApplicationInsightsStandardWebTestValidationRulesOutputReference = ApplicationInsightsStandardWebTestValidationRulesOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ApplicationInsightsStandardWebTestValidationRulesOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.applicationInsightsStandardWebTest.ApplicationInsightsStandardWebTestValidationRulesOutputReference", version: "12.27.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/application_insights_standard_web_test azurerm_application_insights_standard_web_test}
*/
class ApplicationInsightsStandardWebTest extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a ApplicationInsightsStandardWebTest 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 ApplicationInsightsStandardWebTest to import
* @param importFromId The id of the existing ApplicationInsightsStandardWebTest that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/application_insights_standard_web_test#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the ApplicationInsightsStandardWebTest to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_application_insights_standard_web_test", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/application_insights_standard_web_test azurerm_application_insights_standard_web_test} Resource
*
* @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 ApplicationInsightsStandardWebTestConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'azurerm_application_insights_standard_web_test',
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
});
// request - computed: false, optional: false, required: true
this._request = new ApplicationInsightsStandardWebTestRequestOutputReference(this, "request");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new ApplicationInsightsStandardWebTestTimeoutsOutputReference(this, "timeouts");
// validation_rules - computed: false, optional: true, required: false
this._validationRules = new ApplicationInsightsStandardWebTestValidationRulesOutputReference(this, "validation_rules");
this._applicationInsightsId = config.applicationInsightsId;
this._description = config.description;
this._enabled = config.enabled;
this._frequency = config.frequency;
this._geoLocations = config.geoLocations;
this._id = config.id;
this._location = config.location;
this._name = config.name;
this._resourceGroupName = config.resourceGroupName;
this._retryEnabled = config.retryEnabled;
this._tags = config.tags;
this._timeout = config.timeout;
this._request.internalValue = config.request;
this._timeouts.internalValue = config.timeouts;
this._validationRules.internalValue = config.validationRules;
}
get applicationInsightsId() {
return this.getStringAttribute('application_insights_id');
}
set applicationInsightsId(value) {
this._applicationInsightsId = value;
}
// Temporarily expose input value. Use with caution.
get applicationInsightsIdInput() {
return this._applicationInsightsId;
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
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 frequency() {
return this.getNumberAttribute('frequency');
}
set frequency(value) {
this._frequency = value;
}
resetFrequency() {
this._frequency = undefined;
}
// Temporarily expose input value. Use with caution.
get frequencyInput() {
return this._frequency;
}
get geoLocations() {
return this.getListAttribute('geo_locations');
}
set geoLocations(value) {
this._geoLocations = value;
}
// Temporarily expose input value. Use with caution.
get geoLocationsInput() {
return this._geoLocations;
}
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 location() {
return this.getStringAttribute('location');
}
set location(value) {
this._location = value;
}
// Temporarily expose input value. Use with caution.
get locationInput() {
return this._location;
}
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 resourceGroupName() {
return this.getStringAttribute('resource_group_name');
}
set resourceGroupName(value) {
this._resourceGroupName = value;
}
// Temporarily expose input value. Use with caution.
get resourceGroupNameInput() {
return this._resourceGroupName;
}
get retryEnabled() {
return this.getBooleanAttribute('retry_enabled');
}
set retryEnabled(value) {
this._retryEnabled = value;
}
resetRetryEnabled() {
this._retryEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get retryEnabledInput() {
return this._retryEnabled;
}
// synthetic_monitor_id - computed: true, optional: false, required: false
get syntheticMonitorId() {
return this.getStringAttribute('synthetic_monitor_id');
}
get tags() {
return this.getStringMapAttribute('tags');
}
set tags(value) {
this._tags = value;
}
resetTags() {
this._tags = undefined;
}
// Temporarily expose input value. Use with caution.
get tagsInput() {
return this._tags;
}
get timeout() {
return this.getNumberAttribute('timeout');
}
set timeout(value) {
this._timeout = value;
}
resetTimeout() {
this._timeout = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutInput() {
return this._timeout;
}
get request() {
return this._request;
}
putRequest(value) {
this._request.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get requestInput() {
return this._request.internalValue;
}
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;
}
get validationRules() {
return this._validationRules;
}
putValidationRules(value) {
this._validationRules.internalValue = value;
}
resetValidationRules() {
this._validationRules.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get validationRulesInput() {
return this._validationRules.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
application_insights_id: cdktf.stringToTerraform(this._applicationInsightsId),
description: cdktf.stringToTerraform(this._description),
enabled: cdktf.booleanToTerraform(this._enabled),
frequency: cdktf.numberToTerraform(this._frequency),
geo_locations: cdktf.listMapper(cdktf.stringToTerraform, false)(this._geoLocations),
id: cdktf.stringToTerraform(this._id),
location: cdktf.stringToTerraform(this._location),
name: cdktf.stringToTerraform(this._name),
resource_group_name: cdktf.stringToTerraform(this._resourceGroupName),
retry_enabled: cdktf.booleanToTerraform(this._retryEnabled),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
timeout: cdktf.numberToTerraform(this._timeout),
request: applicationInsightsStandardWebTestRequestToTerraform(this._request.internalValue),
timeouts: applicationInsightsStandardWebTestTimeoutsToTerraform(this._timeouts.internalValue),
validation_rules: applicationInsightsStandardWebTestValidationRulesToTerraform(this._validationRules.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
application_insights_id: {
value: cdktf.stringToHclTerraform(this._applicationInsightsId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
description: {
value: cdktf.stringToHclTerraform(this._description),
isBlock: false,
type: "simple",
storageClassType: "string",
},
enabled: {
value: cdktf.booleanToHclTerraform(this._enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
frequency: {
value: cdktf.numberToHclTerraform(this._frequency),
isBlock: false,
type: "simple",
storageClassType: "number",
},
geo_locations: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._geoLocations),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
location: {
value: cdktf.stringToHclTerraform(this._location),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(this._name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resource_group_name: {
value: cdktf.stringToHclTerraform(this._resourceGroupName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
retry_enabled: {
value: cdktf.booleanToHclTerraform(this._retryEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
timeout: {
value: cdktf.numberToHclTerraform(this._timeout),
isBlock: false,
type: "simple",
storageClassType: "number",
},
request: {
value: applicationInsightsStandardWebTestRequestToHclTerraform(this._request.internalValue),
isBlock: true,
type: "list",
storageClassType: "ApplicationInsightsStandardWebTestRequestList",
},
timeouts: {
value: applicationInsightsStandardWebTestTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "ApplicationInsightsStandardWebTestTimeouts",
},
validation_rules: {
value: applicationInsightsStandardWebTestValidationRulesToHclTerraform(this._validationRules.internalValue),
isBlock: true,
type: "list",
storageClassType: "ApplicationInsightsStandardWebTestValidationRulesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.ApplicationInsightsStandardWebTest = ApplicationInsightsStandardWebTest;
_g = JSII_RTTI_SYMBOL_1;
ApplicationInsightsStandardWebTest[_g] = { fqn: "@cdktf/provider-azurerm.applicationInsightsStandardWebTest.ApplicationInsightsStandardWebTest", version: "12.27.0" };
// =================
// STATIC PROPERTIES
// =================
ApplicationInsightsStandardWebTest.tfResourceType = "azurerm_application_insights_standard_web_test";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXBwbGljYXRpb24taW5zaWdodHMtc3RhbmRhcmQtd2ViLXRlc3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFTQSwrQkFBK0I7QUFzRi9CLFNBQWdCLDBEQUEwRCxDQUFDLE1BQTRFO0lBQ3JKLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE9BQU87UUFDTCxJQUFJLEVBQUUsS0FBSyxDQUFDLGlCQUFpQixDQUFDLE1BQU8sQ0FBQyxJQUFJLENBQUM7UUFDM0MsS0FBSyxFQUFFLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxNQUFPLENBQUMsS0FBSyxDQUFDO0tBQzlDLENBQUE7QUFDSCxDQUFDO0FBVEQsZ0lBU0M7QUFHRCxTQUFnQiw2REFBNkQsQ0FBQyxNQUE0RTtJQUN4SixJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQ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