UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,129 lines 339 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.SpringCloudService = exports.SpringCloudServiceTraceOutputReference = exports.springCloudServiceTraceToHclTerraform = exports.springCloudServiceTraceToTerraform = exports.SpringCloudServiceTimeoutsOutputReference = exports.springCloudServiceTimeoutsToHclTerraform = exports.springCloudServiceTimeoutsToTerraform = exports.SpringCloudServiceNetworkOutputReference = exports.springCloudServiceNetworkToHclTerraform = exports.springCloudServiceNetworkToTerraform = exports.SpringCloudServiceMarketplaceOutputReference = exports.springCloudServiceMarketplaceToHclTerraform = exports.springCloudServiceMarketplaceToTerraform = exports.SpringCloudServiceDefaultBuildServiceOutputReference = exports.springCloudServiceDefaultBuildServiceToHclTerraform = exports.springCloudServiceDefaultBuildServiceToTerraform = exports.SpringCloudServiceContainerRegistryList = exports.SpringCloudServiceContainerRegistryOutputReference = exports.springCloudServiceContainerRegistryToHclTerraform = exports.springCloudServiceContainerRegistryToTerraform = exports.SpringCloudServiceConfigServerGitSettingOutputReference = exports.springCloudServiceConfigServerGitSettingToHclTerraform = exports.springCloudServiceConfigServerGitSettingToTerraform = exports.SpringCloudServiceConfigServerGitSettingSshAuthOutputReference = exports.springCloudServiceConfigServerGitSettingSshAuthToHclTerraform = exports.springCloudServiceConfigServerGitSettingSshAuthToTerraform = exports.SpringCloudServiceConfigServerGitSettingRepositoryList = exports.SpringCloudServiceConfigServerGitSettingRepositoryOutputReference = exports.springCloudServiceConfigServerGitSettingRepositoryToHclTerraform = exports.springCloudServiceConfigServerGitSettingRepositoryToTerraform = exports.SpringCloudServiceConfigServerGitSettingRepositorySshAuthOutputReference = exports.springCloudServiceConfigServerGitSettingRepositorySshAuthToHclTerraform = exports.springCloudServiceConfigServerGitSettingRepositorySshAuthToTerraform = exports.SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthOutputReference = exports.springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToHclTerraform = exports.springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToTerraform = exports.SpringCloudServiceConfigServerGitSettingHttpBasicAuthOutputReference = exports.springCloudServiceConfigServerGitSettingHttpBasicAuthToHclTerraform = exports.springCloudServiceConfigServerGitSettingHttpBasicAuthToTerraform = exports.SpringCloudServiceRequiredNetworkTrafficRulesList = exports.SpringCloudServiceRequiredNetworkTrafficRulesOutputReference = exports.springCloudServiceRequiredNetworkTrafficRulesToHclTerraform = exports.springCloudServiceRequiredNetworkTrafficRulesToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function springCloudServiceRequiredNetworkTrafficRulesToTerraform(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.springCloudServiceRequiredNetworkTrafficRulesToTerraform = springCloudServiceRequiredNetworkTrafficRulesToTerraform; function springCloudServiceRequiredNetworkTrafficRulesToHclTerraform(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.springCloudServiceRequiredNetworkTrafficRulesToHclTerraform = springCloudServiceRequiredNetworkTrafficRulesToHclTerraform; class SpringCloudServiceRequiredNetworkTrafficRulesOutputReference 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; } } // direction - computed: true, optional: false, required: false get direction() { return this.getStringAttribute('direction'); } // fqdns - computed: true, optional: false, required: false get fqdns() { return this.getListAttribute('fqdns'); } // ip_addresses - computed: true, optional: false, required: false get ipAddresses() { return this.getListAttribute('ip_addresses'); } // port - computed: true, optional: false, required: false get port() { return this.getNumberAttribute('port'); } // protocol - computed: true, optional: false, required: false get protocol() { return this.getStringAttribute('protocol'); } } exports.SpringCloudServiceRequiredNetworkTrafficRulesOutputReference = SpringCloudServiceRequiredNetworkTrafficRulesOutputReference; _a = JSII_RTTI_SYMBOL_1; SpringCloudServiceRequiredNetworkTrafficRulesOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceRequiredNetworkTrafficRulesOutputReference", version: "12.27.0" }; class SpringCloudServiceRequiredNetworkTrafficRulesList 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 SpringCloudServiceRequiredNetworkTrafficRulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SpringCloudServiceRequiredNetworkTrafficRulesList = SpringCloudServiceRequiredNetworkTrafficRulesList; _b = JSII_RTTI_SYMBOL_1; SpringCloudServiceRequiredNetworkTrafficRulesList[_b] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceRequiredNetworkTrafficRulesList", version: "12.27.0" }; function springCloudServiceConfigServerGitSettingHttpBasicAuthToTerraform(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 { password: cdktf.stringToTerraform(struct.password), username: cdktf.stringToTerraform(struct.username), }; } exports.springCloudServiceConfigServerGitSettingHttpBasicAuthToTerraform = springCloudServiceConfigServerGitSettingHttpBasicAuthToTerraform; function springCloudServiceConfigServerGitSettingHttpBasicAuthToHclTerraform(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 = { password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.springCloudServiceConfigServerGitSettingHttpBasicAuthToHclTerraform = springCloudServiceConfigServerGitSettingHttpBasicAuthToHclTerraform; class SpringCloudServiceConfigServerGitSettingHttpBasicAuthOutputReference 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._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._password = undefined; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._password = value.password; this._username = value.username; } } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.SpringCloudServiceConfigServerGitSettingHttpBasicAuthOutputReference = SpringCloudServiceConfigServerGitSettingHttpBasicAuthOutputReference; _c = JSII_RTTI_SYMBOL_1; SpringCloudServiceConfigServerGitSettingHttpBasicAuthOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceConfigServerGitSettingHttpBasicAuthOutputReference", version: "12.27.0" }; function springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToTerraform(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 { password: cdktf.stringToTerraform(struct.password), username: cdktf.stringToTerraform(struct.username), }; } exports.springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToTerraform = springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToTerraform; function springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToHclTerraform(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 = { password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToHclTerraform = springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToHclTerraform; class SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthOutputReference 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._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._password = undefined; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._password = value.password; this._username = value.username; } } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthOutputReference = SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthOutputReference; _d = JSII_RTTI_SYMBOL_1; SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthOutputReference", version: "12.27.0" }; function springCloudServiceConfigServerGitSettingRepositorySshAuthToTerraform(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_key: cdktf.stringToTerraform(struct.hostKey), host_key_algorithm: cdktf.stringToTerraform(struct.hostKeyAlgorithm), private_key: cdktf.stringToTerraform(struct.privateKey), strict_host_key_checking_enabled: cdktf.booleanToTerraform(struct.strictHostKeyCheckingEnabled), }; } exports.springCloudServiceConfigServerGitSettingRepositorySshAuthToTerraform = springCloudServiceConfigServerGitSettingRepositorySshAuthToTerraform; function springCloudServiceConfigServerGitSettingRepositorySshAuthToHclTerraform(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_key: { value: cdktf.stringToHclTerraform(struct.hostKey), isBlock: false, type: "simple", storageClassType: "string", }, host_key_algorithm: { value: cdktf.stringToHclTerraform(struct.hostKeyAlgorithm), isBlock: false, type: "simple", storageClassType: "string", }, private_key: { value: cdktf.stringToHclTerraform(struct.privateKey), isBlock: false, type: "simple", storageClassType: "string", }, strict_host_key_checking_enabled: { value: cdktf.booleanToHclTerraform(struct.strictHostKeyCheckingEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.springCloudServiceConfigServerGitSettingRepositorySshAuthToHclTerraform = springCloudServiceConfigServerGitSettingRepositorySshAuthToHclTerraform; class SpringCloudServiceConfigServerGitSettingRepositorySshAuthOutputReference 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._hostKey !== undefined) { hasAnyValues = true; internalValueResult.hostKey = this._hostKey; } if (this._hostKeyAlgorithm !== undefined) { hasAnyValues = true; internalValueResult.hostKeyAlgorithm = this._hostKeyAlgorithm; } if (this._privateKey !== undefined) { hasAnyValues = true; internalValueResult.privateKey = this._privateKey; } if (this._strictHostKeyCheckingEnabled !== undefined) { hasAnyValues = true; internalValueResult.strictHostKeyCheckingEnabled = this._strictHostKeyCheckingEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._hostKey = undefined; this._hostKeyAlgorithm = undefined; this._privateKey = undefined; this._strictHostKeyCheckingEnabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._hostKey = value.hostKey; this._hostKeyAlgorithm = value.hostKeyAlgorithm; this._privateKey = value.privateKey; this._strictHostKeyCheckingEnabled = value.strictHostKeyCheckingEnabled; } } get hostKey() { return this.getStringAttribute('host_key'); } set hostKey(value) { this._hostKey = value; } resetHostKey() { this._hostKey = undefined; } // Temporarily expose input value. Use with caution. get hostKeyInput() { return this._hostKey; } get hostKeyAlgorithm() { return this.getStringAttribute('host_key_algorithm'); } set hostKeyAlgorithm(value) { this._hostKeyAlgorithm = value; } resetHostKeyAlgorithm() { this._hostKeyAlgorithm = undefined; } // Temporarily expose input value. Use with caution. get hostKeyAlgorithmInput() { return this._hostKeyAlgorithm; } get privateKey() { return this.getStringAttribute('private_key'); } set privateKey(value) { this._privateKey = value; } // Temporarily expose input value. Use with caution. get privateKeyInput() { return this._privateKey; } get strictHostKeyCheckingEnabled() { return this.getBooleanAttribute('strict_host_key_checking_enabled'); } set strictHostKeyCheckingEnabled(value) { this._strictHostKeyCheckingEnabled = value; } resetStrictHostKeyCheckingEnabled() { this._strictHostKeyCheckingEnabled = undefined; } // Temporarily expose input value. Use with caution. get strictHostKeyCheckingEnabledInput() { return this._strictHostKeyCheckingEnabled; } } exports.SpringCloudServiceConfigServerGitSettingRepositorySshAuthOutputReference = SpringCloudServiceConfigServerGitSettingRepositorySshAuthOutputReference; _e = JSII_RTTI_SYMBOL_1; SpringCloudServiceConfigServerGitSettingRepositorySshAuthOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceConfigServerGitSettingRepositorySshAuthOutputReference", version: "12.27.0" }; function springCloudServiceConfigServerGitSettingRepositoryToTerraform(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 { label: cdktf.stringToTerraform(struct.label), name: cdktf.stringToTerraform(struct.name), pattern: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.pattern), search_paths: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.searchPaths), uri: cdktf.stringToTerraform(struct.uri), http_basic_auth: springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToTerraform(struct.httpBasicAuth), ssh_auth: springCloudServiceConfigServerGitSettingRepositorySshAuthToTerraform(struct.sshAuth), }; } exports.springCloudServiceConfigServerGitSettingRepositoryToTerraform = springCloudServiceConfigServerGitSettingRepositoryToTerraform; function springCloudServiceConfigServerGitSettingRepositoryToHclTerraform(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 = { label: { value: cdktf.stringToHclTerraform(struct.label), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, pattern: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.pattern), isBlock: false, type: "list", storageClassType: "stringList", }, search_paths: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.searchPaths), isBlock: false, type: "list", storageClassType: "stringList", }, uri: { value: cdktf.stringToHclTerraform(struct.uri), isBlock: false, type: "simple", storageClassType: "string", }, http_basic_auth: { value: springCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthToHclTerraform(struct.httpBasicAuth), isBlock: true, type: "list", storageClassType: "SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthList", }, ssh_auth: { value: springCloudServiceConfigServerGitSettingRepositorySshAuthToHclTerraform(struct.sshAuth), isBlock: true, type: "list", storageClassType: "SpringCloudServiceConfigServerGitSettingRepositorySshAuthList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.springCloudServiceConfigServerGitSettingRepositoryToHclTerraform = springCloudServiceConfigServerGitSettingRepositoryToHclTerraform; class SpringCloudServiceConfigServerGitSettingRepositoryOutputReference 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; // http_basic_auth - computed: false, optional: true, required: false this._httpBasicAuth = new SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthOutputReference(this, "http_basic_auth"); // ssh_auth - computed: false, optional: true, required: false this._sshAuth = new SpringCloudServiceConfigServerGitSettingRepositorySshAuthOutputReference(this, "ssh_auth"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._label !== undefined) { hasAnyValues = true; internalValueResult.label = this._label; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._pattern !== undefined) { hasAnyValues = true; internalValueResult.pattern = this._pattern; } if (this._searchPaths !== undefined) { hasAnyValues = true; internalValueResult.searchPaths = this._searchPaths; } if (this._uri !== undefined) { hasAnyValues = true; internalValueResult.uri = this._uri; } if (this._httpBasicAuth?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.httpBasicAuth = this._httpBasicAuth?.internalValue; } if (this._sshAuth?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sshAuth = this._sshAuth?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._label = undefined; this._name = undefined; this._pattern = undefined; this._searchPaths = undefined; this._uri = undefined; this._httpBasicAuth.internalValue = undefined; this._sshAuth.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._label = value.label; this._name = value.name; this._pattern = value.pattern; this._searchPaths = value.searchPaths; this._uri = value.uri; this._httpBasicAuth.internalValue = value.httpBasicAuth; this._sshAuth.internalValue = value.sshAuth; } } get label() { return this.getStringAttribute('label'); } set label(value) { this._label = value; } resetLabel() { this._label = undefined; } // Temporarily expose input value. Use with caution. get labelInput() { return this._label; } 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 pattern() { return this.getListAttribute('pattern'); } set pattern(value) { this._pattern = value; } resetPattern() { this._pattern = undefined; } // Temporarily expose input value. Use with caution. get patternInput() { return this._pattern; } get searchPaths() { return this.getListAttribute('search_paths'); } set searchPaths(value) { this._searchPaths = value; } resetSearchPaths() { this._searchPaths = undefined; } // Temporarily expose input value. Use with caution. get searchPathsInput() { return this._searchPaths; } get uri() { return this.getStringAttribute('uri'); } set uri(value) { this._uri = value; } // Temporarily expose input value. Use with caution. get uriInput() { return this._uri; } get httpBasicAuth() { return this._httpBasicAuth; } putHttpBasicAuth(value) { this._httpBasicAuth.internalValue = value; } resetHttpBasicAuth() { this._httpBasicAuth.internalValue = undefined; } // Temporarily expose input value. Use with caution. get httpBasicAuthInput() { return this._httpBasicAuth.internalValue; } get sshAuth() { return this._sshAuth; } putSshAuth(value) { this._sshAuth.internalValue = value; } resetSshAuth() { this._sshAuth.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sshAuthInput() { return this._sshAuth.internalValue; } } exports.SpringCloudServiceConfigServerGitSettingRepositoryOutputReference = SpringCloudServiceConfigServerGitSettingRepositoryOutputReference; _f = JSII_RTTI_SYMBOL_1; SpringCloudServiceConfigServerGitSettingRepositoryOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceConfigServerGitSettingRepositoryOutputReference", version: "12.27.0" }; class SpringCloudServiceConfigServerGitSettingRepositoryList 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 SpringCloudServiceConfigServerGitSettingRepositoryOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SpringCloudServiceConfigServerGitSettingRepositoryList = SpringCloudServiceConfigServerGitSettingRepositoryList; _g = JSII_RTTI_SYMBOL_1; SpringCloudServiceConfigServerGitSettingRepositoryList[_g] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceConfigServerGitSettingRepositoryList", version: "12.27.0" }; function springCloudServiceConfigServerGitSettingSshAuthToTerraform(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_key: cdktf.stringToTerraform(struct.hostKey), host_key_algorithm: cdktf.stringToTerraform(struct.hostKeyAlgorithm), private_key: cdktf.stringToTerraform(struct.privateKey), strict_host_key_checking_enabled: cdktf.booleanToTerraform(struct.strictHostKeyCheckingEnabled), }; } exports.springCloudServiceConfigServerGitSettingSshAuthToTerraform = springCloudServiceConfigServerGitSettingSshAuthToTerraform; function springCloudServiceConfigServerGitSettingSshAuthToHclTerraform(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_key: { value: cdktf.stringToHclTerraform(struct.hostKey), isBlock: false, type: "simple", storageClassType: "string", }, host_key_algorithm: { value: cdktf.stringToHclTerraform(struct.hostKeyAlgorithm), isBlock: false, type: "simple", storageClassType: "string", }, private_key: { value: cdktf.stringToHclTerraform(struct.privateKey), isBlock: false, type: "simple", storageClassType: "string", }, strict_host_key_checking_enabled: { value: cdktf.booleanToHclTerraform(struct.strictHostKeyCheckingEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.springCloudServiceConfigServerGitSettingSshAuthToHclTerraform = springCloudServiceConfigServerGitSettingSshAuthToHclTerraform; class SpringCloudServiceConfigServerGitSettingSshAuthOutputReference 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._hostKey !== undefined) { hasAnyValues = true; internalValueResult.hostKey = this._hostKey; } if (this._hostKeyAlgorithm !== undefined) { hasAnyValues = true; internalValueResult.hostKeyAlgorithm = this._hostKeyAlgorithm; } if (this._privateKey !== undefined) { hasAnyValues = true; internalValueResult.privateKey = this._privateKey; } if (this._strictHostKeyCheckingEnabled !== undefined) { hasAnyValues = true; internalValueResult.strictHostKeyCheckingEnabled = this._strictHostKeyCheckingEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._hostKey = undefined; this._hostKeyAlgorithm = undefined; this._privateKey = undefined; this._strictHostKeyCheckingEnabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._hostKey = value.hostKey; this._hostKeyAlgorithm = value.hostKeyAlgorithm; this._privateKey = value.privateKey; this._strictHostKeyCheckingEnabled = value.strictHostKeyCheckingEnabled; } } get hostKey() { return this.getStringAttribute('host_key'); } set hostKey(value) { this._hostKey = value; } resetHostKey() { this._hostKey = undefined; } // Temporarily expose input value. Use with caution. get hostKeyInput() { return this._hostKey; } get hostKeyAlgorithm() { return this.getStringAttribute('host_key_algorithm'); } set hostKeyAlgorithm(value) { this._hostKeyAlgorithm = value; } resetHostKeyAlgorithm() { this._hostKeyAlgorithm = undefined; } // Temporarily expose input value. Use with caution. get hostKeyAlgorithmInput() { return this._hostKeyAlgorithm; } get privateKey() { return this.getStringAttribute('private_key'); } set privateKey(value) { this._privateKey = value; } // Temporarily expose input value. Use with caution. get privateKeyInput() { return this._privateKey; } get strictHostKeyCheckingEnabled() { return this.getBooleanAttribute('strict_host_key_checking_enabled'); } set strictHostKeyCheckingEnabled(value) { this._strictHostKeyCheckingEnabled = value; } resetStrictHostKeyCheckingEnabled() { this._strictHostKeyCheckingEnabled = undefined; } // Temporarily expose input value. Use with caution. get strictHostKeyCheckingEnabledInput() { return this._strictHostKeyCheckingEnabled; } } exports.SpringCloudServiceConfigServerGitSettingSshAuthOutputReference = SpringCloudServiceConfigServerGitSettingSshAuthOutputReference; _h = JSII_RTTI_SYMBOL_1; SpringCloudServiceConfigServerGitSettingSshAuthOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceConfigServerGitSettingSshAuthOutputReference", version: "12.27.0" }; function springCloudServiceConfigServerGitSettingToTerraform(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 { label: cdktf.stringToTerraform(struct.label), search_paths: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.searchPaths), uri: cdktf.stringToTerraform(struct.uri), http_basic_auth: springCloudServiceConfigServerGitSettingHttpBasicAuthToTerraform(struct.httpBasicAuth), repository: cdktf.listMapper(springCloudServiceConfigServerGitSettingRepositoryToTerraform, true)(struct.repository), ssh_auth: springCloudServiceConfigServerGitSettingSshAuthToTerraform(struct.sshAuth), }; } exports.springCloudServiceConfigServerGitSettingToTerraform = springCloudServiceConfigServerGitSettingToTerraform; function springCloudServiceConfigServerGitSettingToHclTerraform(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 = { label: { value: cdktf.stringToHclTerraform(struct.label), isBlock: false, type: "simple", storageClassType: "string", }, search_paths: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.searchPaths), isBlock: false, type: "list", storageClassType: "stringList", }, uri: { value: cdktf.stringToHclTerraform(struct.uri), isBlock: false, type: "simple", storageClassType: "string", }, http_basic_auth: { value: springCloudServiceConfigServerGitSettingHttpBasicAuthToHclTerraform(struct.httpBasicAuth), isBlock: true, type: "list", storageClassType: "SpringCloudServiceConfigServerGitSettingHttpBasicAuthList", }, repository: { value: cdktf.listMapperHcl(springCloudServiceConfigServerGitSettingRepositoryToHclTerraform, true)(struct.repository), isBlock: true, type: "list", storageClassType: "SpringCloudServiceConfigServerGitSettingRepositoryList", }, ssh_auth: { value: springCloudServiceConfigServerGitSettingSshAuthToHclTerraform(struct.sshAuth), isBlock: true, type: "list", storageClassType: "SpringCloudServiceConfigServerGitSettingSshAuthList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.springCloudServiceConfigServerGitSettingToHclTerraform = springCloudServiceConfigServerGitSettingToHclTerraform; class SpringCloudServiceConfigServerGitSettingOutputReference 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; // http_basic_auth - computed: false, optional: true, required: false this._httpBasicAuth = new SpringCloudServiceConfigServerGitSettingHttpBasicAuthOutputReference(this, "http_basic_auth"); // repository - computed: false, optional: true, required: false this._repository = new SpringCloudServiceConfigServerGitSettingRepositoryList(this, "repository", false); // ssh_auth - computed: false, optional: true, required: false this._sshAuth = new SpringCloudServiceConfigServerGitSettingSshAuthOutputReference(this, "ssh_auth"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._label !== undefined) { hasAnyValues = true; internalValueResult.label = this._label; } if (this._searchPaths !== undefined) { hasAnyValues = true; internalValueResult.searchPaths = this._searchPaths; } if (this._uri !== undefined) { hasAnyValues = true; internalValueResult.uri = this._uri; } if (this._httpBasicAuth?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.httpBasicAuth = this._httpBasicAuth?.internalValue; } if (this._repository?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.repository = this._repository?.internalValue; } if (this._sshAuth?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sshAuth = this._sshAuth?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._label = undefined; this._searchPaths = undefined; this._uri = undefined; this._httpBasicAuth.internalValue = undefined; this._repository.internalValue = undefined; this._sshAuth.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._label = value.label; this._searchPaths = value.searchPaths; this._uri = value.uri; this._httpBasicAuth.internalValue = value.httpBasicAuth; this._repository.internalValue = value.repository; this._sshAuth.internalValue = value.sshAuth; } } get label() { return this.getStringAttribute('label'); } set label(value) { this._label = value; } resetLabel() { this._label = undefined; } // Temporarily expose input value. Use with caution. get labelInput() { return this._label; } get searchPaths() { return this.getListAttribute('search_paths'); } set searchPaths(value) { this._searchPaths = value; } resetSearchPaths() { this._searchPaths = undefined; } // Temporarily expose input value. Use with caution. get searchPathsInput() { return this._searchPaths; } get uri() { return this.getStringAttribute('uri'); } set uri(value) { this._uri = value; } // Temporarily expose input value. Use with caution. get uriInput() { return this._uri; } get httpBasicAuth() { return this._httpBasicAuth; } putHttpBasicAuth(value) { this._httpBasicAuth.internalValue = value; } resetHttpBasicAuth() { this._httpBasicAuth.internalValue = undefined; } // Temporarily expose input value. Use with caution. get httpBasicAuthInput() { return this._httpBasicAuth.internalValue; } get repository() { return this._repository; } putRepository(value) { this._repository.internalValue = value; } resetRepository() { this._repository.internalValue = undefined; } // Temporarily expose input value. Use with caution. get repositoryInput() { return this._repository.internalValue; } get sshAuth() { return this._sshAuth; } putSshAuth(value) { this._sshAuth.internalValue = value; } resetSshAuth() { this._sshAuth.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sshAuthInput() { return this._sshAuth.internalValue; } } exports.SpringCloudServiceConfigServerGitSettingOutputReference = SpringCloudServiceConfigServerGitSettingOutputReference; _j = JSII_RTTI_SYMBOL_1; SpringCloudServiceConfigServerGitSettingOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.springCloudService.SpringCloudServiceConfigServerGitSettingOutputReference", version: "12.27.0" }; function springCloudServiceContainerRegistryToTerraform(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), password: cdktf.stringToTerraform(struct.password), server: cdktf.stringToTerraform(struct.server), username: cdktf.stringToTerraform(struct.username), }; } exports.springCloudServiceContainerRegistryToTerraform = springCloudServiceContainerRegistryToTerraform; function springCloudServiceContainerRegistryToHclTerraform(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", }, password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, server: { value: cdktf.stringToHclTerraform(struct.server), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.springCloudServiceContainerRegistryToHclTerraform = springCloudServiceContainerRegistryToHclTerraform; class SpringCloudServiceContainerRegistryOutputReference 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.resolvab