UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,195 lines 167 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppConfiguration = exports.AppConfigurationTimeoutsOutputReference = exports.appConfigurationTimeoutsToHclTerraform = exports.appConfigurationTimeoutsToTerraform = exports.AppConfigurationReplicaList = exports.AppConfigurationReplicaOutputReference = exports.appConfigurationReplicaToHclTerraform = exports.appConfigurationReplicaToTerraform = exports.AppConfigurationIdentityOutputReference = exports.appConfigurationIdentityToHclTerraform = exports.appConfigurationIdentityToTerraform = exports.AppConfigurationEncryptionOutputReference = exports.appConfigurationEncryptionToHclTerraform = exports.appConfigurationEncryptionToTerraform = exports.AppConfigurationSecondaryWriteKeyList = exports.AppConfigurationSecondaryWriteKeyOutputReference = exports.appConfigurationSecondaryWriteKeyToHclTerraform = exports.appConfigurationSecondaryWriteKeyToTerraform = exports.AppConfigurationSecondaryReadKeyList = exports.AppConfigurationSecondaryReadKeyOutputReference = exports.appConfigurationSecondaryReadKeyToHclTerraform = exports.appConfigurationSecondaryReadKeyToTerraform = exports.AppConfigurationPrimaryWriteKeyList = exports.AppConfigurationPrimaryWriteKeyOutputReference = exports.appConfigurationPrimaryWriteKeyToHclTerraform = exports.appConfigurationPrimaryWriteKeyToTerraform = exports.AppConfigurationPrimaryReadKeyList = exports.AppConfigurationPrimaryReadKeyOutputReference = exports.appConfigurationPrimaryReadKeyToHclTerraform = exports.appConfigurationPrimaryReadKeyToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function appConfigurationPrimaryReadKeyToTerraform(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.appConfigurationPrimaryReadKeyToTerraform = appConfigurationPrimaryReadKeyToTerraform; function appConfigurationPrimaryReadKeyToHclTerraform(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.appConfigurationPrimaryReadKeyToHclTerraform = appConfigurationPrimaryReadKeyToHclTerraform; class AppConfigurationPrimaryReadKeyOutputReference 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; } } // connection_string - computed: true, optional: false, required: false get connectionString() { return this.getStringAttribute('connection_string'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // secret - computed: true, optional: false, required: false get secret() { return this.getStringAttribute('secret'); } } exports.AppConfigurationPrimaryReadKeyOutputReference = AppConfigurationPrimaryReadKeyOutputReference; _a = JSII_RTTI_SYMBOL_1; AppConfigurationPrimaryReadKeyOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationPrimaryReadKeyOutputReference", version: "12.27.0" }; class AppConfigurationPrimaryReadKeyList 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 AppConfigurationPrimaryReadKeyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppConfigurationPrimaryReadKeyList = AppConfigurationPrimaryReadKeyList; _b = JSII_RTTI_SYMBOL_1; AppConfigurationPrimaryReadKeyList[_b] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationPrimaryReadKeyList", version: "12.27.0" }; function appConfigurationPrimaryWriteKeyToTerraform(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.appConfigurationPrimaryWriteKeyToTerraform = appConfigurationPrimaryWriteKeyToTerraform; function appConfigurationPrimaryWriteKeyToHclTerraform(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.appConfigurationPrimaryWriteKeyToHclTerraform = appConfigurationPrimaryWriteKeyToHclTerraform; class AppConfigurationPrimaryWriteKeyOutputReference 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; } } // connection_string - computed: true, optional: false, required: false get connectionString() { return this.getStringAttribute('connection_string'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // secret - computed: true, optional: false, required: false get secret() { return this.getStringAttribute('secret'); } } exports.AppConfigurationPrimaryWriteKeyOutputReference = AppConfigurationPrimaryWriteKeyOutputReference; _c = JSII_RTTI_SYMBOL_1; AppConfigurationPrimaryWriteKeyOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationPrimaryWriteKeyOutputReference", version: "12.27.0" }; class AppConfigurationPrimaryWriteKeyList 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 AppConfigurationPrimaryWriteKeyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppConfigurationPrimaryWriteKeyList = AppConfigurationPrimaryWriteKeyList; _d = JSII_RTTI_SYMBOL_1; AppConfigurationPrimaryWriteKeyList[_d] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationPrimaryWriteKeyList", version: "12.27.0" }; function appConfigurationSecondaryReadKeyToTerraform(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.appConfigurationSecondaryReadKeyToTerraform = appConfigurationSecondaryReadKeyToTerraform; function appConfigurationSecondaryReadKeyToHclTerraform(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.appConfigurationSecondaryReadKeyToHclTerraform = appConfigurationSecondaryReadKeyToHclTerraform; class AppConfigurationSecondaryReadKeyOutputReference 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; } } // connection_string - computed: true, optional: false, required: false get connectionString() { return this.getStringAttribute('connection_string'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // secret - computed: true, optional: false, required: false get secret() { return this.getStringAttribute('secret'); } } exports.AppConfigurationSecondaryReadKeyOutputReference = AppConfigurationSecondaryReadKeyOutputReference; _e = JSII_RTTI_SYMBOL_1; AppConfigurationSecondaryReadKeyOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationSecondaryReadKeyOutputReference", version: "12.27.0" }; class AppConfigurationSecondaryReadKeyList 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 AppConfigurationSecondaryReadKeyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppConfigurationSecondaryReadKeyList = AppConfigurationSecondaryReadKeyList; _f = JSII_RTTI_SYMBOL_1; AppConfigurationSecondaryReadKeyList[_f] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationSecondaryReadKeyList", version: "12.27.0" }; function appConfigurationSecondaryWriteKeyToTerraform(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.appConfigurationSecondaryWriteKeyToTerraform = appConfigurationSecondaryWriteKeyToTerraform; function appConfigurationSecondaryWriteKeyToHclTerraform(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.appConfigurationSecondaryWriteKeyToHclTerraform = appConfigurationSecondaryWriteKeyToHclTerraform; class AppConfigurationSecondaryWriteKeyOutputReference 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; } } // connection_string - computed: true, optional: false, required: false get connectionString() { return this.getStringAttribute('connection_string'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // secret - computed: true, optional: false, required: false get secret() { return this.getStringAttribute('secret'); } } exports.AppConfigurationSecondaryWriteKeyOutputReference = AppConfigurationSecondaryWriteKeyOutputReference; _g = JSII_RTTI_SYMBOL_1; AppConfigurationSecondaryWriteKeyOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationSecondaryWriteKeyOutputReference", version: "12.27.0" }; class AppConfigurationSecondaryWriteKeyList 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 AppConfigurationSecondaryWriteKeyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppConfigurationSecondaryWriteKeyList = AppConfigurationSecondaryWriteKeyList; _h = JSII_RTTI_SYMBOL_1; AppConfigurationSecondaryWriteKeyList[_h] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationSecondaryWriteKeyList", version: "12.27.0" }; function appConfigurationEncryptionToTerraform(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 { identity_client_id: cdktf.stringToTerraform(struct.identityClientId), key_vault_key_identifier: cdktf.stringToTerraform(struct.keyVaultKeyIdentifier), }; } exports.appConfigurationEncryptionToTerraform = appConfigurationEncryptionToTerraform; function appConfigurationEncryptionToHclTerraform(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 = { identity_client_id: { value: cdktf.stringToHclTerraform(struct.identityClientId), isBlock: false, type: "simple", storageClassType: "string", }, key_vault_key_identifier: { value: cdktf.stringToHclTerraform(struct.keyVaultKeyIdentifier), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.appConfigurationEncryptionToHclTerraform = appConfigurationEncryptionToHclTerraform; class AppConfigurationEncryptionOutputReference 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._identityClientId !== undefined) { hasAnyValues = true; internalValueResult.identityClientId = this._identityClientId; } if (this._keyVaultKeyIdentifier !== undefined) { hasAnyValues = true; internalValueResult.keyVaultKeyIdentifier = this._keyVaultKeyIdentifier; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._identityClientId = undefined; this._keyVaultKeyIdentifier = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._identityClientId = value.identityClientId; this._keyVaultKeyIdentifier = value.keyVaultKeyIdentifier; } } get identityClientId() { return this.getStringAttribute('identity_client_id'); } set identityClientId(value) { this._identityClientId = value; } resetIdentityClientId() { this._identityClientId = undefined; } // Temporarily expose input value. Use with caution. get identityClientIdInput() { return this._identityClientId; } get keyVaultKeyIdentifier() { return this.getStringAttribute('key_vault_key_identifier'); } set keyVaultKeyIdentifier(value) { this._keyVaultKeyIdentifier = value; } resetKeyVaultKeyIdentifier() { this._keyVaultKeyIdentifier = undefined; } // Temporarily expose input value. Use with caution. get keyVaultKeyIdentifierInput() { return this._keyVaultKeyIdentifier; } } exports.AppConfigurationEncryptionOutputReference = AppConfigurationEncryptionOutputReference; _j = JSII_RTTI_SYMBOL_1; AppConfigurationEncryptionOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationEncryptionOutputReference", version: "12.27.0" }; function appConfigurationIdentityToTerraform(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 { identity_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.identityIds), type: cdktf.stringToTerraform(struct.type), }; } exports.appConfigurationIdentityToTerraform = appConfigurationIdentityToTerraform; function appConfigurationIdentityToHclTerraform(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 = { identity_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.identityIds), isBlock: false, type: "set", storageClassType: "stringList", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.appConfigurationIdentityToHclTerraform = appConfigurationIdentityToHclTerraform; class AppConfigurationIdentityOutputReference 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._identityIds !== undefined) { hasAnyValues = true; internalValueResult.identityIds = this._identityIds; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._identityIds = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._identityIds = value.identityIds; this._type = value.type; } } get identityIds() { return cdktf.Fn.tolist(this.getListAttribute('identity_ids')); } set identityIds(value) { this._identityIds = value; } resetIdentityIds() { this._identityIds = undefined; } // Temporarily expose input value. Use with caution. get identityIdsInput() { return this._identityIds; } // principal_id - computed: true, optional: false, required: false get principalId() { return this.getStringAttribute('principal_id'); } // tenant_id - computed: true, optional: false, required: false get tenantId() { return this.getStringAttribute('tenant_id'); } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.AppConfigurationIdentityOutputReference = AppConfigurationIdentityOutputReference; _k = JSII_RTTI_SYMBOL_1; AppConfigurationIdentityOutputReference[_k] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationIdentityOutputReference", version: "12.27.0" }; function appConfigurationReplicaToTerraform(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 { location: cdktf.stringToTerraform(struct.location), name: cdktf.stringToTerraform(struct.name), }; } exports.appConfigurationReplicaToTerraform = appConfigurationReplicaToTerraform; function appConfigurationReplicaToHclTerraform(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 = { location: { value: cdktf.stringToHclTerraform(struct.location), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.appConfigurationReplicaToHclTerraform = appConfigurationReplicaToHclTerraform; class AppConfigurationReplicaOutputReference 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._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._location = undefined; this._name = 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._location = value.location; this._name = value.name; } } // endpoint - computed: true, optional: false, required: false get endpoint() { return this.getStringAttribute('endpoint'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('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; } } exports.AppConfigurationReplicaOutputReference = AppConfigurationReplicaOutputReference; _l = JSII_RTTI_SYMBOL_1; AppConfigurationReplicaOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationReplicaOutputReference", version: "12.27.0" }; class AppConfigurationReplicaList 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 AppConfigurationReplicaOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppConfigurationReplicaList = AppConfigurationReplicaList; _m = JSII_RTTI_SYMBOL_1; AppConfigurationReplicaList[_m] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationReplicaList", version: "12.27.0" }; function appConfigurationTimeoutsToTerraform(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.appConfigurationTimeoutsToTerraform = appConfigurationTimeoutsToTerraform; function appConfigurationTimeoutsToHclTerraform(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.appConfigurationTimeoutsToHclTerraform = appConfigurationTimeoutsToHclTerraform; class AppConfigurationTimeoutsOutputReference 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.AppConfigurationTimeoutsOutputReference = AppConfigurationTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; AppConfigurationTimeoutsOutputReference[_o] = { fqn: "@cdktf/provider-azurerm.appConfiguration.AppConfigurationTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/app_configuration azurerm_app_configuration} */ class AppConfiguration extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a AppConfiguration 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 AppConfiguration to import * @param importFromId The id of the existing AppConfiguration that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/app_configuration#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the AppConfiguration to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_app_configuration", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/app_configuration azurerm_app_configuration} 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 AppConfigurationConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_app_configuration', 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 }); // primary_read_key - computed: true, optional: false, required: false this._primaryReadKey = new AppConfigurationPrimaryReadKeyList(this, "primary_read_key", false); // primary_write_key - computed: true, optional: false, required: false this._primaryWriteKey = new AppConfigurationPrimaryWriteKeyList(this, "primary_write_key", false); // secondary_read_key - computed: true, optional: false, required: false this._secondaryReadKey = new AppConfigurationSecondaryReadKeyList(this, "secondary_read_key", false); // secondary_write_key - computed: true, optional: false, required: false this._secondaryWriteKey = new AppConfigurationSecondaryWriteKeyList(this, "secondary_write_key", false); // encryption - computed: false, optional: true, required: false this._encryption = new AppConfigurationEncryptionOutputReference(this, "encryption"); // identity - computed: false, optional: true, required: false this._identity = new AppConfigurationIdentityOutputReference(this, "identity"); // replica - computed: false, optional: true, required: false this._replica = new AppConfigurationReplicaList(this, "replica", true); // timeouts - computed: false, optional: true, required: false this._timeouts = new AppConfigurationTimeoutsOutputReference(this, "timeouts"); this._id = config.id; this._localAuthEnabled = config.localAuthEnabled; this._location = config.location; this._name = config.name; this._publicNetworkAccess = config.publicNetworkAccess; this._purgeProtectionEnabled = config.purgeProtectionEnabled; this._resourceGroupName = config.resourceGroupName; this._sku = config.sku; this._softDeleteRetentionDays = config.softDeleteRetentionDays; this._tags = config.tags; this._encryption.internalValue = config.encryption; this._identity.internalValue = config.identity; this._replica.internalValue = config.replica; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // endpoint - computed: true, optional: false, required: false get endpoint() { return this.getStringAttribute('endpoint'); } 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 localAuthEnabled() { return this.getBooleanAttribute('local_auth_enabled'); } set localAuthEnabled(value) { this._localAuthEnabled = value; } resetLocalAuthEnabled() { this._localAuthEnabled = undefined; } // Temporarily expose input value. Use with caution. get localAuthEnabledInput() { return this._localAuthEnabled; } 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 primaryReadKey() { return this._primaryReadKey; } get primaryWriteKey() { return this._primaryWriteKey; } get publicNetworkAccess() { return this.getStringAttribute('public_network_access'); } set publicNetworkAccess(value) { this._publicNetworkAccess = value; } resetPublicNetworkAccess() { this._publicNetworkAccess = undefined; } // Temporarily expose input value. Use with caution. get publicNetworkAccessInput() { return this._publicNetworkAccess; } get purgeProtectionEnabled() { return this.getBooleanAttribute('purge_protection_enabled'); } set purgeProtectionEnabled(value) { this._purgeProtectionEnabled = value; } resetPurgeProtectionEnabled() { this._purgeProtectionEnabled = undefined; } // Temporarily expose input value. Use with caution. get purgeProtectionEnabledInput() { return this._purgeProtectionEnabled; } 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 secondaryReadKey() { return this._secondaryReadKey; } get secondaryWriteKey() { return this._secondaryWriteKey; } get sku() { return this.getStringAttribute('sku'); } set sku(value) { this._sku = value; } resetSku() { this._sku = undefined; } // Temporarily expose input value. Use with caution. get skuInput() { return this._sku; } get softDeleteRetentionDays() { return this.getNumberAttribute('soft_delete_retention_days'); } set softDeleteRetentionDays(value) { this._softDeleteRetentionDays = value; } resetSoftDeleteRetentionDays() { this._softDeleteRetentionDays = undefined; } // Temporarily expose input value. Use with caution. get softDeleteRetentionDaysInput() { return this._softDeleteRetentionDays; } 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 encryption() { return this._encryption; } putEncryption(value) { this._encryption.internalValue = value; } resetEncryption() { this._encryption.internalValue = undefined; } // Temporarily expose input value. Use with caution. get encryptionInput() { return this._encryption.internalValue; } get identity() { return this._identity; } putIdentity(value) { this._identity.internalValue = value; } resetIdentity() { this._identity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get identityInput() { return this._identity.internalValue; } get replica() { return this._replica; } putReplica(value) { this._replica.internalValue = value; } resetReplica() { this._replica.internalValue = undefined; } // Temporarily expose input value. Use with caution. get replicaInput() { return this._replica.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; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { id: cdktf.stringToTerraform(this._id), local_auth_enabled: cdktf.booleanToTerraform(this._localAuthEnabled), location: cdktf.stringToTerraform(this._location), name: cdktf.stringToTerraform(this._name), public_network_access: cdktf.stringToTerraform(this._publicNetworkAccess), purge_protection_enabled: cdktf.booleanToTerraform(this._purgeProtectionEnabled), resource_group_name: cdktf.stringToTerraform(this._resourceGroupName), sku: cdktf.stringToTerraform(this._sku), soft_delete_retention_days: cdktf.numberToTerraform(this._softDeleteRetentionDays), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), encryption: appConfigurationEncryptionToTerraform(this._encryption.internalValue), identity: appConfigurationIdentityToTerraform(this._identity.internalValue), replica: cdktf.listMapper(appConfigurationReplicaToTerraform, true)(this._replica.internalValue), timeouts: appConfigurationTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, local_auth_enabled: { value: cdktf.booleanToHclTerraform(this._localAuthEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, location: { value: cdktf.stringToHclTerraform(this._location), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, public_network_access: { value: cdktf.stringToHclTerraform(this._publicNetworkAccess), isBlock: false, type: "simple", storageClassType: "string", }, purge_protection_enabled: { value: cdktf.booleanToHclTerraform(this._purgeProtectionEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, resource_group_name: { value: cdktf.stringToHclTerraform(this._resourceGroupName), isBlock: false, type: "simple", storageClassType: "string", }, sku: { value: cdktf.stringToHclTerraform(this._sku), isBlock: false, type: "simple", storageClassType: "string", }, soft_delete_retention_days: { value: cdktf.numberToHclTerraform(this._softDeleteRetentionDays), isBlock: false, type: "simple", storageClassType: "number", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", stor