UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,109 lines 618 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiManagementSecurityOutputReference = exports.apiManagementSecurityToHclTerraform = exports.apiManagementSecurityToTerraform = exports.ApiManagementProtocolsOutputReference = exports.apiManagementProtocolsToHclTerraform = exports.apiManagementProtocolsToTerraform = exports.ApiManagementIdentityOutputReference = exports.apiManagementIdentityToHclTerraform = exports.apiManagementIdentityToTerraform = exports.ApiManagementHostnameConfigurationOutputReference = exports.apiManagementHostnameConfigurationToHclTerraform = exports.apiManagementHostnameConfigurationToTerraform = exports.ApiManagementHostnameConfigurationScmList = exports.ApiManagementHostnameConfigurationScmOutputReference = exports.apiManagementHostnameConfigurationScmToHclTerraform = exports.apiManagementHostnameConfigurationScmToTerraform = exports.ApiManagementHostnameConfigurationProxyList = exports.ApiManagementHostnameConfigurationProxyOutputReference = exports.apiManagementHostnameConfigurationProxyToHclTerraform = exports.apiManagementHostnameConfigurationProxyToTerraform = exports.ApiManagementHostnameConfigurationPortalList = exports.ApiManagementHostnameConfigurationPortalOutputReference = exports.apiManagementHostnameConfigurationPortalToHclTerraform = exports.apiManagementHostnameConfigurationPortalToTerraform = exports.ApiManagementHostnameConfigurationManagementList = exports.ApiManagementHostnameConfigurationManagementOutputReference = exports.apiManagementHostnameConfigurationManagementToHclTerraform = exports.apiManagementHostnameConfigurationManagementToTerraform = exports.ApiManagementHostnameConfigurationDeveloperPortalList = exports.ApiManagementHostnameConfigurationDeveloperPortalOutputReference = exports.apiManagementHostnameConfigurationDeveloperPortalToHclTerraform = exports.apiManagementHostnameConfigurationDeveloperPortalToTerraform = exports.ApiManagementDelegationOutputReference = exports.apiManagementDelegationToHclTerraform = exports.apiManagementDelegationToTerraform = exports.ApiManagementCertificateList = exports.ApiManagementCertificateOutputReference = exports.apiManagementCertificateToHclTerraform = exports.apiManagementCertificateToTerraform = exports.ApiManagementAdditionalLocationList = exports.ApiManagementAdditionalLocationOutputReference = exports.apiManagementAdditionalLocationToHclTerraform = exports.apiManagementAdditionalLocationToTerraform = exports.ApiManagementAdditionalLocationVirtualNetworkConfigurationOutputReference = exports.apiManagementAdditionalLocationVirtualNetworkConfigurationToHclTerraform = exports.apiManagementAdditionalLocationVirtualNetworkConfigurationToTerraform = exports.ApiManagementPolicyList = exports.ApiManagementPolicyOutputReference = exports.apiManagementPolicyToHclTerraform = exports.apiManagementPolicyToTerraform = void 0; exports.ApiManagement = exports.ApiManagementVirtualNetworkConfigurationOutputReference = exports.apiManagementVirtualNetworkConfigurationToHclTerraform = exports.apiManagementVirtualNetworkConfigurationToTerraform = exports.ApiManagementTimeoutsOutputReference = exports.apiManagementTimeoutsToHclTerraform = exports.apiManagementTimeoutsToTerraform = exports.ApiManagementTenantAccessOutputReference = exports.apiManagementTenantAccessToHclTerraform = exports.apiManagementTenantAccessToTerraform = exports.ApiManagementSignUpOutputReference = exports.apiManagementSignUpToHclTerraform = exports.apiManagementSignUpToTerraform = exports.ApiManagementSignUpTermsOfServiceOutputReference = exports.apiManagementSignUpTermsOfServiceToHclTerraform = exports.apiManagementSignUpTermsOfServiceToTerraform = exports.ApiManagementSignInOutputReference = exports.apiManagementSignInToHclTerraform = exports.apiManagementSignInToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function apiManagementPolicyToTerraform(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 { xml_content: struct.xmlContent === undefined ? null : cdktf.stringToTerraform(struct.xmlContent), xml_link: struct.xmlLink === undefined ? null : cdktf.stringToTerraform(struct.xmlLink), }; } exports.apiManagementPolicyToTerraform = apiManagementPolicyToTerraform; function apiManagementPolicyToHclTerraform(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 = { xml_content: { value: struct.xmlContent === undefined ? null : cdktf.stringToHclTerraform(struct.xmlContent), isBlock: false, type: "simple", storageClassType: "string", }, xml_link: { value: struct.xmlLink === undefined ? null : cdktf.stringToHclTerraform(struct.xmlLink), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.apiManagementPolicyToHclTerraform = apiManagementPolicyToHclTerraform; class ApiManagementPolicyOutputReference 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._xmlContent !== undefined) { hasAnyValues = true; internalValueResult.xmlContent = this._xmlContent; } if (this._xmlLink !== undefined) { hasAnyValues = true; internalValueResult.xmlLink = this._xmlLink; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._xmlContent = undefined; this._xmlLink = 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._xmlContent = value.xmlContent; this._xmlLink = value.xmlLink; } } get xmlContent() { return this.getStringAttribute('xml_content'); } set xmlContent(value) { this._xmlContent = value; } resetXmlContent() { this._xmlContent = undefined; } // Temporarily expose input value. Use with caution. get xmlContentInput() { return this._xmlContent; } get xmlLink() { return this.getStringAttribute('xml_link'); } set xmlLink(value) { this._xmlLink = value; } resetXmlLink() { this._xmlLink = undefined; } // Temporarily expose input value. Use with caution. get xmlLinkInput() { return this._xmlLink; } } exports.ApiManagementPolicyOutputReference = ApiManagementPolicyOutputReference; _a = JSII_RTTI_SYMBOL_1; ApiManagementPolicyOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementPolicyOutputReference", version: "12.27.0" }; class ApiManagementPolicyList 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 ApiManagementPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ApiManagementPolicyList = ApiManagementPolicyList; _b = JSII_RTTI_SYMBOL_1; ApiManagementPolicyList[_b] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementPolicyList", version: "12.27.0" }; function apiManagementAdditionalLocationVirtualNetworkConfigurationToTerraform(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 { subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.apiManagementAdditionalLocationVirtualNetworkConfigurationToTerraform = apiManagementAdditionalLocationVirtualNetworkConfigurationToTerraform; function apiManagementAdditionalLocationVirtualNetworkConfigurationToHclTerraform(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 = { subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.apiManagementAdditionalLocationVirtualNetworkConfigurationToHclTerraform = apiManagementAdditionalLocationVirtualNetworkConfigurationToHclTerraform; class ApiManagementAdditionalLocationVirtualNetworkConfigurationOutputReference 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._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._subnetId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._subnetId = value.subnetId; } } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.ApiManagementAdditionalLocationVirtualNetworkConfigurationOutputReference = ApiManagementAdditionalLocationVirtualNetworkConfigurationOutputReference; _c = JSII_RTTI_SYMBOL_1; ApiManagementAdditionalLocationVirtualNetworkConfigurationOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementAdditionalLocationVirtualNetworkConfigurationOutputReference", version: "12.27.0" }; function apiManagementAdditionalLocationToTerraform(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 { capacity: cdktf.numberToTerraform(struct.capacity), gateway_disabled: cdktf.booleanToTerraform(struct.gatewayDisabled), location: cdktf.stringToTerraform(struct.location), public_ip_address_id: cdktf.stringToTerraform(struct.publicIpAddressId), zones: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.zones), virtual_network_configuration: apiManagementAdditionalLocationVirtualNetworkConfigurationToTerraform(struct.virtualNetworkConfiguration), }; } exports.apiManagementAdditionalLocationToTerraform = apiManagementAdditionalLocationToTerraform; function apiManagementAdditionalLocationToHclTerraform(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 = { capacity: { value: cdktf.numberToHclTerraform(struct.capacity), isBlock: false, type: "simple", storageClassType: "number", }, gateway_disabled: { value: cdktf.booleanToHclTerraform(struct.gatewayDisabled), isBlock: false, type: "simple", storageClassType: "boolean", }, location: { value: cdktf.stringToHclTerraform(struct.location), isBlock: false, type: "simple", storageClassType: "string", }, public_ip_address_id: { value: cdktf.stringToHclTerraform(struct.publicIpAddressId), isBlock: false, type: "simple", storageClassType: "string", }, zones: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.zones), isBlock: false, type: "set", storageClassType: "stringList", }, virtual_network_configuration: { value: apiManagementAdditionalLocationVirtualNetworkConfigurationToHclTerraform(struct.virtualNetworkConfiguration), isBlock: true, type: "list", storageClassType: "ApiManagementAdditionalLocationVirtualNetworkConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.apiManagementAdditionalLocationToHclTerraform = apiManagementAdditionalLocationToHclTerraform; class ApiManagementAdditionalLocationOutputReference 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; // virtual_network_configuration - computed: false, optional: true, required: false this._virtualNetworkConfiguration = new ApiManagementAdditionalLocationVirtualNetworkConfigurationOutputReference(this, "virtual_network_configuration"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._capacity !== undefined) { hasAnyValues = true; internalValueResult.capacity = this._capacity; } if (this._gatewayDisabled !== undefined) { hasAnyValues = true; internalValueResult.gatewayDisabled = this._gatewayDisabled; } if (this._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._publicIpAddressId !== undefined) { hasAnyValues = true; internalValueResult.publicIpAddressId = this._publicIpAddressId; } if (this._zones !== undefined) { hasAnyValues = true; internalValueResult.zones = this._zones; } if (this._virtualNetworkConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.virtualNetworkConfiguration = this._virtualNetworkConfiguration?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._capacity = undefined; this._gatewayDisabled = undefined; this._location = undefined; this._publicIpAddressId = undefined; this._zones = undefined; this._virtualNetworkConfiguration.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._capacity = value.capacity; this._gatewayDisabled = value.gatewayDisabled; this._location = value.location; this._publicIpAddressId = value.publicIpAddressId; this._zones = value.zones; this._virtualNetworkConfiguration.internalValue = value.virtualNetworkConfiguration; } } get capacity() { return this.getNumberAttribute('capacity'); } set capacity(value) { this._capacity = value; } resetCapacity() { this._capacity = undefined; } // Temporarily expose input value. Use with caution. get capacityInput() { return this._capacity; } get gatewayDisabled() { return this.getBooleanAttribute('gateway_disabled'); } set gatewayDisabled(value) { this._gatewayDisabled = value; } resetGatewayDisabled() { this._gatewayDisabled = undefined; } // Temporarily expose input value. Use with caution. get gatewayDisabledInput() { return this._gatewayDisabled; } // gateway_regional_url - computed: true, optional: false, required: false get gatewayRegionalUrl() { return this.getStringAttribute('gateway_regional_url'); } get location() { return this.getStringAttribute('location'); } set location(value) { this._location = value; } // Temporarily expose input value. Use with caution. get locationInput() { return this._location; } // private_ip_addresses - computed: true, optional: false, required: false get privateIpAddresses() { return this.getListAttribute('private_ip_addresses'); } get publicIpAddressId() { return this.getStringAttribute('public_ip_address_id'); } set publicIpAddressId(value) { this._publicIpAddressId = value; } resetPublicIpAddressId() { this._publicIpAddressId = undefined; } // Temporarily expose input value. Use with caution. get publicIpAddressIdInput() { return this._publicIpAddressId; } // public_ip_addresses - computed: true, optional: false, required: false get publicIpAddresses() { return this.getListAttribute('public_ip_addresses'); } get zones() { return cdktf.Fn.tolist(this.getListAttribute('zones')); } set zones(value) { this._zones = value; } resetZones() { this._zones = undefined; } // Temporarily expose input value. Use with caution. get zonesInput() { return this._zones; } get virtualNetworkConfiguration() { return this._virtualNetworkConfiguration; } putVirtualNetworkConfiguration(value) { this._virtualNetworkConfiguration.internalValue = value; } resetVirtualNetworkConfiguration() { this._virtualNetworkConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get virtualNetworkConfigurationInput() { return this._virtualNetworkConfiguration.internalValue; } } exports.ApiManagementAdditionalLocationOutputReference = ApiManagementAdditionalLocationOutputReference; _d = JSII_RTTI_SYMBOL_1; ApiManagementAdditionalLocationOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementAdditionalLocationOutputReference", version: "12.27.0" }; class ApiManagementAdditionalLocationList 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 ApiManagementAdditionalLocationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ApiManagementAdditionalLocationList = ApiManagementAdditionalLocationList; _e = JSII_RTTI_SYMBOL_1; ApiManagementAdditionalLocationList[_e] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementAdditionalLocationList", version: "12.27.0" }; function apiManagementCertificateToTerraform(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 { certificate_password: cdktf.stringToTerraform(struct.certificatePassword), encoded_certificate: cdktf.stringToTerraform(struct.encodedCertificate), store_name: cdktf.stringToTerraform(struct.storeName), }; } exports.apiManagementCertificateToTerraform = apiManagementCertificateToTerraform; function apiManagementCertificateToHclTerraform(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 = { certificate_password: { value: cdktf.stringToHclTerraform(struct.certificatePassword), isBlock: false, type: "simple", storageClassType: "string", }, encoded_certificate: { value: cdktf.stringToHclTerraform(struct.encodedCertificate), isBlock: false, type: "simple", storageClassType: "string", }, store_name: { value: cdktf.stringToHclTerraform(struct.storeName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.apiManagementCertificateToHclTerraform = apiManagementCertificateToHclTerraform; class ApiManagementCertificateOutputReference 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._certificatePassword !== undefined) { hasAnyValues = true; internalValueResult.certificatePassword = this._certificatePassword; } if (this._encodedCertificate !== undefined) { hasAnyValues = true; internalValueResult.encodedCertificate = this._encodedCertificate; } if (this._storeName !== undefined) { hasAnyValues = true; internalValueResult.storeName = this._storeName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._certificatePassword = undefined; this._encodedCertificate = undefined; this._storeName = 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._certificatePassword = value.certificatePassword; this._encodedCertificate = value.encodedCertificate; this._storeName = value.storeName; } } get certificatePassword() { return this.getStringAttribute('certificate_password'); } set certificatePassword(value) { this._certificatePassword = value; } resetCertificatePassword() { this._certificatePassword = undefined; } // Temporarily expose input value. Use with caution. get certificatePasswordInput() { return this._certificatePassword; } get encodedCertificate() { return this.getStringAttribute('encoded_certificate'); } set encodedCertificate(value) { this._encodedCertificate = value; } // Temporarily expose input value. Use with caution. get encodedCertificateInput() { return this._encodedCertificate; } // expiry - computed: true, optional: false, required: false get expiry() { return this.getStringAttribute('expiry'); } get storeName() { return this.getStringAttribute('store_name'); } set storeName(value) { this._storeName = value; } // Temporarily expose input value. Use with caution. get storeNameInput() { return this._storeName; } // subject - computed: true, optional: false, required: false get subject() { return this.getStringAttribute('subject'); } // thumbprint - computed: true, optional: false, required: false get thumbprint() { return this.getStringAttribute('thumbprint'); } } exports.ApiManagementCertificateOutputReference = ApiManagementCertificateOutputReference; _f = JSII_RTTI_SYMBOL_1; ApiManagementCertificateOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementCertificateOutputReference", version: "12.27.0" }; class ApiManagementCertificateList 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 ApiManagementCertificateOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ApiManagementCertificateList = ApiManagementCertificateList; _g = JSII_RTTI_SYMBOL_1; ApiManagementCertificateList[_g] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementCertificateList", version: "12.27.0" }; function apiManagementDelegationToTerraform(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 { subscriptions_enabled: cdktf.booleanToTerraform(struct.subscriptionsEnabled), url: cdktf.stringToTerraform(struct.url), user_registration_enabled: cdktf.booleanToTerraform(struct.userRegistrationEnabled), validation_key: cdktf.stringToTerraform(struct.validationKey), }; } exports.apiManagementDelegationToTerraform = apiManagementDelegationToTerraform; function apiManagementDelegationToHclTerraform(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 = { subscriptions_enabled: { value: cdktf.booleanToHclTerraform(struct.subscriptionsEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, url: { value: cdktf.stringToHclTerraform(struct.url), isBlock: false, type: "simple", storageClassType: "string", }, user_registration_enabled: { value: cdktf.booleanToHclTerraform(struct.userRegistrationEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, validation_key: { value: cdktf.stringToHclTerraform(struct.validationKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.apiManagementDelegationToHclTerraform = apiManagementDelegationToHclTerraform; class ApiManagementDelegationOutputReference 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._subscriptionsEnabled !== undefined) { hasAnyValues = true; internalValueResult.subscriptionsEnabled = this._subscriptionsEnabled; } if (this._url !== undefined) { hasAnyValues = true; internalValueResult.url = this._url; } if (this._userRegistrationEnabled !== undefined) { hasAnyValues = true; internalValueResult.userRegistrationEnabled = this._userRegistrationEnabled; } if (this._validationKey !== undefined) { hasAnyValues = true; internalValueResult.validationKey = this._validationKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._subscriptionsEnabled = undefined; this._url = undefined; this._userRegistrationEnabled = undefined; this._validationKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._subscriptionsEnabled = value.subscriptionsEnabled; this._url = value.url; this._userRegistrationEnabled = value.userRegistrationEnabled; this._validationKey = value.validationKey; } } get subscriptionsEnabled() { return this.getBooleanAttribute('subscriptions_enabled'); } set subscriptionsEnabled(value) { this._subscriptionsEnabled = value; } resetSubscriptionsEnabled() { this._subscriptionsEnabled = undefined; } // Temporarily expose input value. Use with caution. get subscriptionsEnabledInput() { return this._subscriptionsEnabled; } get url() { return this.getStringAttribute('url'); } set url(value) { this._url = value; } resetUrl() { this._url = undefined; } // Temporarily expose input value. Use with caution. get urlInput() { return this._url; } get userRegistrationEnabled() { return this.getBooleanAttribute('user_registration_enabled'); } set userRegistrationEnabled(value) { this._userRegistrationEnabled = value; } resetUserRegistrationEnabled() { this._userRegistrationEnabled = undefined; } // Temporarily expose input value. Use with caution. get userRegistrationEnabledInput() { return this._userRegistrationEnabled; } get validationKey() { return this.getStringAttribute('validation_key'); } set validationKey(value) { this._validationKey = value; } resetValidationKey() { this._validationKey = undefined; } // Temporarily expose input value. Use with caution. get validationKeyInput() { return this._validationKey; } } exports.ApiManagementDelegationOutputReference = ApiManagementDelegationOutputReference; _h = JSII_RTTI_SYMBOL_1; ApiManagementDelegationOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementDelegationOutputReference", version: "12.27.0" }; function apiManagementHostnameConfigurationDeveloperPortalToTerraform(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 { certificate: cdktf.stringToTerraform(struct.certificate), certificate_password: cdktf.stringToTerraform(struct.certificatePassword), host_name: cdktf.stringToTerraform(struct.hostName), key_vault_id: cdktf.stringToTerraform(struct.keyVaultId), negotiate_client_certificate: cdktf.booleanToTerraform(struct.negotiateClientCertificate), ssl_keyvault_identity_client_id: cdktf.stringToTerraform(struct.sslKeyvaultIdentityClientId), }; } exports.apiManagementHostnameConfigurationDeveloperPortalToTerraform = apiManagementHostnameConfigurationDeveloperPortalToTerraform; function apiManagementHostnameConfigurationDeveloperPortalToHclTerraform(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 = { certificate: { value: cdktf.stringToHclTerraform(struct.certificate), isBlock: false, type: "simple", storageClassType: "string", }, certificate_password: { value: cdktf.stringToHclTerraform(struct.certificatePassword), isBlock: false, type: "simple", storageClassType: "string", }, host_name: { value: cdktf.stringToHclTerraform(struct.hostName), isBlock: false, type: "simple", storageClassType: "string", }, key_vault_id: { value: cdktf.stringToHclTerraform(struct.keyVaultId), isBlock: false, type: "simple", storageClassType: "string", }, negotiate_client_certificate: { value: cdktf.booleanToHclTerraform(struct.negotiateClientCertificate), isBlock: false, type: "simple", storageClassType: "boolean", }, ssl_keyvault_identity_client_id: { value: cdktf.stringToHclTerraform(struct.sslKeyvaultIdentityClientId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.apiManagementHostnameConfigurationDeveloperPortalToHclTerraform = apiManagementHostnameConfigurationDeveloperPortalToHclTerraform; class ApiManagementHostnameConfigurationDeveloperPortalOutputReference 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._certificate !== undefined) { hasAnyValues = true; internalValueResult.certificate = this._certificate; } if (this._certificatePassword !== undefined) { hasAnyValues = true; internalValueResult.certificatePassword = this._certificatePassword; } if (this._hostName !== undefined) { hasAnyValues = true; internalValueResult.hostName = this._hostName; } if (this._keyVaultId !== undefined) { hasAnyValues = true; internalValueResult.keyVaultId = this._keyVaultId; } if (this._negotiateClientCertificate !== undefined) { hasAnyValues = true; internalValueResult.negotiateClientCertificate = this._negotiateClientCertificate; } if (this._sslKeyvaultIdentityClientId !== undefined) { hasAnyValues = true; internalValueResult.sslKeyvaultIdentityClientId = this._sslKeyvaultIdentityClientId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._certificate = undefined; this._certificatePassword = undefined; this._hostName = undefined; this._keyVaultId = undefined; this._negotiateClientCertificate = undefined; this._sslKeyvaultIdentityClientId = 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._certificate = value.certificate; this._certificatePassword = value.certificatePassword; this._hostName = value.hostName; this._keyVaultId = value.keyVaultId; this._negotiateClientCertificate = value.negotiateClientCertificate; this._sslKeyvaultIdentityClientId = value.sslKeyvaultIdentityClientId; } } get certificate() { return this.getStringAttribute('certificate'); } set certificate(value) { this._certificate = value; } resetCertificate() { this._certificate = undefined; } // Temporarily expose input value. Use with caution. get certificateInput() { return this._certificate; } get certificatePassword() { return this.getStringAttribute('certificate_password'); } set certificatePassword(value) { this._certificatePassword = value; } resetCertificatePassword() { this._certificatePassword = undefined; } // Temporarily expose input value. Use with caution. get certificatePasswordInput() { return this._certificatePassword; } // certificate_source - computed: true, optional: false, required: false get certificateSource() { return this.getStringAttribute('certificate_source'); } // certificate_status - computed: true, optional: false, required: false get certificateStatus() { return this.getStringAttribute('certificate_status'); } // expiry - computed: true, optional: false, required: false get expiry() { return this.getStringAttribute('expiry'); } get hostName() { return this.getStringAttribute('host_name'); } set hostName(value) { this._hostName = value; } // Temporarily expose input value. Use with caution. get hostNameInput() { return this._hostName; } get keyVaultId() { return this.getStringAttribute('key_vault_id'); } set keyVaultId(value) { this._keyVaultId = value; } resetKeyVaultId() { this._keyVaultId = undefined; } // Temporarily expose input value. Use with caution. get keyVaultIdInput() { return this._keyVaultId; } get negotiateClientCertificate() { return this.getBooleanAttribute('negotiate_client_certificate'); } set negotiateClientCertificate(value) { this._negotiateClientCertificate = value; } resetNegotiateClientCertificate() { this._negotiateClientCertificate = undefined; } // Temporarily expose input value. Use with caution. get negotiateClientCertificateInput() { return this._negotiateClientCertificate; } get sslKeyvaultIdentityClientId() { return this.getStringAttribute('ssl_keyvault_identity_client_id'); } set sslKeyvaultIdentityClientId(value) { this._sslKeyvaultIdentityClientId = value; } resetSslKeyvaultIdentityClientId() { this._sslKeyvaultIdentityClientId = undefined; } // Temporarily expose input value. Use with caution. get sslKeyvaultIdentityClientIdInput() { return this._sslKeyvaultIdentityClientId; } // subject - computed: true, optional: false, required: false get subject() { return this.getStringAttribute('subject'); } // thumbprint - computed: true, optional: false, required: false get thumbprint() { return this.getStringAttribute('thumbprint'); } } exports.ApiManagementHostnameConfigurationDeveloperPortalOutputReference = ApiManagementHostnameConfigurationDeveloperPortalOutputReference; _j = JSII_RTTI_SYMBOL_1; ApiManagementHostnameConfigurationDeveloperPortalOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementHostnameConfigurationDeveloperPortalOutputReference", version: "12.27.0" }; class ApiManagementHostnameConfigurationDeveloperPortalList 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 ApiManagementHostnameConfigurationDeveloperPortalOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ApiManagementHostnameConfigurationDeveloperPortalList = ApiManagementHostnameConfigurationDeveloperPortalList; _k = JSII_RTTI_SYMBOL_1; ApiManagementHostnameConfigurationDeveloperPortalList[_k] = { fqn: "@cdktf/provider-azurerm.apiManagement.ApiManagementHostnameConfigurationDeveloperPortalList", version: "12.27.0" }; function apiManagementHostnameConfigurationManagementToTerraform(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 { certificate: cdktf.stringToTerraform(struct.certificate), certificate_password: cdktf.stringToTerraform(struct.certificatePassword), host_name: cdktf.stringToTerraform(struct.hostName), key_vault_id: cdktf.stringToTerraform(struct.keyVaultId), negotiate_client_certificate: cdktf.booleanToTerraform(struct.negotiateClientCertificate), ssl_keyvault_identity_client_id: cdktf.stringToTerraform(struct.sslKeyvaultIdentityClientId), }; } exports.apiManagementHostnameConfigurationManagementToTerraform = apiManagementHostnameConfigurationManagementToTerraform; function apiManagementHostnameConfigurationManagementToHclTerraform(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 = { certificate: { value: cdktf.stringToHclTerraform(struct.certificate), isBlock: false, type: "simple", storageClassType: "string", }, certificate_password: { value: cdktf.stringToHclTerraform(struct.certificatePassword), isBlock: false, type: "simple", storageClassType: "string", }, host_name: { value: cdktf.stringToHclTerraform(struct.hostName), isBlock: false, type: "simple", storageClassType: "string", }, key_vault_id: { value: cdktf.stringToHclTerraform(struct.keyVaultId), isBlock: false, type: "simple", storageClassType: "string", }, negotiate_client_certificate: { value: cdktf.booleanToHclTerraform(struct.negotiateClientCertificate), isBlock: false, type: "simple", storageClassType: "boolean", }, ssl_keyvault_identity_client_id: { value: cdktf.stringToHclTerraform(struct.sslKeyvaultIdentityClientId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.apiManagementHostnameConfigurationManagementToHclTerraform = apiManagementHostnameConfigurationManagementToHclTerraform; class ApiManagementHostnameCo