UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,124 lines 259 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.ContainerRegistry = exports.ContainerRegistryTimeoutsOutputReference = exports.containerRegistryTimeoutsToHclTerraform = exports.containerRegistryTimeoutsToTerraform = exports.ContainerRegistryIdentityOutputReference = exports.containerRegistryIdentityToHclTerraform = exports.containerRegistryIdentityToTerraform = exports.ContainerRegistryGeoreplicationsList = exports.ContainerRegistryGeoreplicationsOutputReference = exports.containerRegistryGeoreplicationsToHclTerraform = exports.containerRegistryGeoreplicationsToTerraform = exports.ContainerRegistryTrustPolicyList = exports.ContainerRegistryTrustPolicyOutputReference = exports.containerRegistryTrustPolicyToHclTerraform = exports.containerRegistryTrustPolicyToTerraform = exports.ContainerRegistryRetentionPolicyList = exports.ContainerRegistryRetentionPolicyOutputReference = exports.containerRegistryRetentionPolicyToHclTerraform = exports.containerRegistryRetentionPolicyToTerraform = exports.ContainerRegistryNetworkRuleSetList = exports.ContainerRegistryNetworkRuleSetOutputReference = exports.containerRegistryNetworkRuleSetToHclTerraform = exports.containerRegistryNetworkRuleSetToTerraform = exports.ContainerRegistryNetworkRuleSetVirtualNetworkList = exports.ContainerRegistryNetworkRuleSetVirtualNetworkOutputReference = exports.containerRegistryNetworkRuleSetVirtualNetworkToHclTerraform = exports.containerRegistryNetworkRuleSetVirtualNetworkToTerraform = exports.ContainerRegistryNetworkRuleSetIpRuleList = exports.ContainerRegistryNetworkRuleSetIpRuleOutputReference = exports.containerRegistryNetworkRuleSetIpRuleToHclTerraform = exports.containerRegistryNetworkRuleSetIpRuleToTerraform = exports.ContainerRegistryEncryptionList = exports.ContainerRegistryEncryptionOutputReference = exports.containerRegistryEncryptionToHclTerraform = exports.containerRegistryEncryptionToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function containerRegistryEncryptionToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { enabled: struct.enabled === undefined ? null : cdktf.booleanToTerraform(struct.enabled), identity_client_id: struct.identityClientId === undefined ? null : cdktf.stringToTerraform(struct.identityClientId), key_vault_key_id: struct.keyVaultKeyId === undefined ? null : cdktf.stringToTerraform(struct.keyVaultKeyId), }; } exports.containerRegistryEncryptionToTerraform = containerRegistryEncryptionToTerraform; function containerRegistryEncryptionToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { enabled: { value: struct.enabled === undefined ? null : cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, identity_client_id: { value: struct.identityClientId === undefined ? null : cdktf.stringToHclTerraform(struct.identityClientId), isBlock: false, type: "simple", storageClassType: "string", }, key_vault_key_id: { value: struct.keyVaultKeyId === undefined ? null : cdktf.stringToHclTerraform(struct.keyVaultKeyId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerRegistryEncryptionToHclTerraform = containerRegistryEncryptionToHclTerraform; class ContainerRegistryEncryptionOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._identityClientId !== undefined) { hasAnyValues = true; internalValueResult.identityClientId = this._identityClientId; } if (this._keyVaultKeyId !== undefined) { hasAnyValues = true; internalValueResult.keyVaultKeyId = this._keyVaultKeyId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._enabled = undefined; this._identityClientId = undefined; this._keyVaultKeyId = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._enabled = value.enabled; this._identityClientId = value.identityClientId; this._keyVaultKeyId = value.keyVaultKeyId; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } get 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 keyVaultKeyId() { return this.getStringAttribute('key_vault_key_id'); } set keyVaultKeyId(value) { this._keyVaultKeyId = value; } resetKeyVaultKeyId() { this._keyVaultKeyId = undefined; } // Temporarily expose input value. Use with caution. get keyVaultKeyIdInput() { return this._keyVaultKeyId; } } exports.ContainerRegistryEncryptionOutputReference = ContainerRegistryEncryptionOutputReference; _a = JSII_RTTI_SYMBOL_1; ContainerRegistryEncryptionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryEncryptionOutputReference", version: "12.27.0" }; class ContainerRegistryEncryptionList 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 ContainerRegistryEncryptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerRegistryEncryptionList = ContainerRegistryEncryptionList; _b = JSII_RTTI_SYMBOL_1; ContainerRegistryEncryptionList[_b] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryEncryptionList", version: "12.27.0" }; function containerRegistryNetworkRuleSetIpRuleToTerraform(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 { action: struct.action === undefined ? null : cdktf.stringToTerraform(struct.action), ip_range: struct.ipRange === undefined ? null : cdktf.stringToTerraform(struct.ipRange), }; } exports.containerRegistryNetworkRuleSetIpRuleToTerraform = containerRegistryNetworkRuleSetIpRuleToTerraform; function containerRegistryNetworkRuleSetIpRuleToHclTerraform(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 = { action: { value: struct.action === undefined ? null : cdktf.stringToHclTerraform(struct.action), isBlock: false, type: "simple", storageClassType: "string", }, ip_range: { value: struct.ipRange === undefined ? null : cdktf.stringToHclTerraform(struct.ipRange), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerRegistryNetworkRuleSetIpRuleToHclTerraform = containerRegistryNetworkRuleSetIpRuleToHclTerraform; class ContainerRegistryNetworkRuleSetIpRuleOutputReference 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._action !== undefined) { hasAnyValues = true; internalValueResult.action = this._action; } if (this._ipRange !== undefined) { hasAnyValues = true; internalValueResult.ipRange = this._ipRange; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._action = undefined; this._ipRange = 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._action = value.action; this._ipRange = value.ipRange; } } get action() { return this.getStringAttribute('action'); } set action(value) { this._action = value; } resetAction() { this._action = undefined; } // Temporarily expose input value. Use with caution. get actionInput() { return this._action; } get ipRange() { return this.getStringAttribute('ip_range'); } set ipRange(value) { this._ipRange = value; } resetIpRange() { this._ipRange = undefined; } // Temporarily expose input value. Use with caution. get ipRangeInput() { return this._ipRange; } } exports.ContainerRegistryNetworkRuleSetIpRuleOutputReference = ContainerRegistryNetworkRuleSetIpRuleOutputReference; _c = JSII_RTTI_SYMBOL_1; ContainerRegistryNetworkRuleSetIpRuleOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryNetworkRuleSetIpRuleOutputReference", version: "12.27.0" }; class ContainerRegistryNetworkRuleSetIpRuleList 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 ContainerRegistryNetworkRuleSetIpRuleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerRegistryNetworkRuleSetIpRuleList = ContainerRegistryNetworkRuleSetIpRuleList; _d = JSII_RTTI_SYMBOL_1; ContainerRegistryNetworkRuleSetIpRuleList[_d] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryNetworkRuleSetIpRuleList", version: "12.27.0" }; function containerRegistryNetworkRuleSetVirtualNetworkToTerraform(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 { action: struct.action === undefined ? null : cdktf.stringToTerraform(struct.action), subnet_id: struct.subnetId === undefined ? null : cdktf.stringToTerraform(struct.subnetId), }; } exports.containerRegistryNetworkRuleSetVirtualNetworkToTerraform = containerRegistryNetworkRuleSetVirtualNetworkToTerraform; function containerRegistryNetworkRuleSetVirtualNetworkToHclTerraform(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 = { action: { value: struct.action === undefined ? null : cdktf.stringToHclTerraform(struct.action), isBlock: false, type: "simple", storageClassType: "string", }, subnet_id: { value: struct.subnetId === undefined ? null : 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.containerRegistryNetworkRuleSetVirtualNetworkToHclTerraform = containerRegistryNetworkRuleSetVirtualNetworkToHclTerraform; class ContainerRegistryNetworkRuleSetVirtualNetworkOutputReference 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._action !== undefined) { hasAnyValues = true; internalValueResult.action = this._action; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._action = undefined; this._subnetId = 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._action = value.action; this._subnetId = value.subnetId; } } get action() { return this.getStringAttribute('action'); } set action(value) { this._action = value; } resetAction() { this._action = undefined; } // Temporarily expose input value. Use with caution. get actionInput() { return this._action; } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } resetSubnetId() { this._subnetId = undefined; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.ContainerRegistryNetworkRuleSetVirtualNetworkOutputReference = ContainerRegistryNetworkRuleSetVirtualNetworkOutputReference; _e = JSII_RTTI_SYMBOL_1; ContainerRegistryNetworkRuleSetVirtualNetworkOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryNetworkRuleSetVirtualNetworkOutputReference", version: "12.27.0" }; class ContainerRegistryNetworkRuleSetVirtualNetworkList 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 ContainerRegistryNetworkRuleSetVirtualNetworkOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerRegistryNetworkRuleSetVirtualNetworkList = ContainerRegistryNetworkRuleSetVirtualNetworkList; _f = JSII_RTTI_SYMBOL_1; ContainerRegistryNetworkRuleSetVirtualNetworkList[_f] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryNetworkRuleSetVirtualNetworkList", version: "12.27.0" }; function containerRegistryNetworkRuleSetToTerraform(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 { default_action: struct.defaultAction === undefined ? null : cdktf.stringToTerraform(struct.defaultAction), ip_rule: struct.ipRule === undefined ? null : cdktf.listMapper(containerRegistryNetworkRuleSetIpRuleToTerraform, false)(struct.ipRule), virtual_network: struct.virtualNetwork === undefined ? null : cdktf.listMapper(containerRegistryNetworkRuleSetVirtualNetworkToTerraform, false)(struct.virtualNetwork), }; } exports.containerRegistryNetworkRuleSetToTerraform = containerRegistryNetworkRuleSetToTerraform; function containerRegistryNetworkRuleSetToHclTerraform(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 = { default_action: { value: struct.defaultAction === undefined ? null : cdktf.stringToHclTerraform(struct.defaultAction), isBlock: false, type: "simple", storageClassType: "string", }, ip_rule: { value: struct.ipRule === undefined ? null : cdktf.listMapperHcl(containerRegistryNetworkRuleSetIpRuleToHclTerraform, false)(struct.ipRule), isBlock: true, type: "set", storageClassType: "ContainerRegistryNetworkRuleSetIpRuleList", }, virtual_network: { value: struct.virtualNetwork === undefined ? null : cdktf.listMapperHcl(containerRegistryNetworkRuleSetVirtualNetworkToHclTerraform, false)(struct.virtualNetwork), isBlock: true, type: "set", storageClassType: "ContainerRegistryNetworkRuleSetVirtualNetworkList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerRegistryNetworkRuleSetToHclTerraform = containerRegistryNetworkRuleSetToHclTerraform; class ContainerRegistryNetworkRuleSetOutputReference 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; // ip_rule - computed: true, optional: true, required: false this._ipRule = new ContainerRegistryNetworkRuleSetIpRuleList(this, "ip_rule", true); // virtual_network - computed: true, optional: true, required: false this._virtualNetwork = new ContainerRegistryNetworkRuleSetVirtualNetworkList(this, "virtual_network", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._defaultAction !== undefined) { hasAnyValues = true; internalValueResult.defaultAction = this._defaultAction; } if (this._ipRule?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ipRule = this._ipRule?.internalValue; } if (this._virtualNetwork?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.virtualNetwork = this._virtualNetwork?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._defaultAction = undefined; this._ipRule.internalValue = undefined; this._virtualNetwork.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._defaultAction = value.defaultAction; this._ipRule.internalValue = value.ipRule; this._virtualNetwork.internalValue = value.virtualNetwork; } } get defaultAction() { return this.getStringAttribute('default_action'); } set defaultAction(value) { this._defaultAction = value; } resetDefaultAction() { this._defaultAction = undefined; } // Temporarily expose input value. Use with caution. get defaultActionInput() { return this._defaultAction; } get ipRule() { return this._ipRule; } putIpRule(value) { this._ipRule.internalValue = value; } resetIpRule() { this._ipRule.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ipRuleInput() { return this._ipRule.internalValue; } get virtualNetwork() { return this._virtualNetwork; } putVirtualNetwork(value) { this._virtualNetwork.internalValue = value; } resetVirtualNetwork() { this._virtualNetwork.internalValue = undefined; } // Temporarily expose input value. Use with caution. get virtualNetworkInput() { return this._virtualNetwork.internalValue; } } exports.ContainerRegistryNetworkRuleSetOutputReference = ContainerRegistryNetworkRuleSetOutputReference; _g = JSII_RTTI_SYMBOL_1; ContainerRegistryNetworkRuleSetOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryNetworkRuleSetOutputReference", version: "12.27.0" }; class ContainerRegistryNetworkRuleSetList 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 ContainerRegistryNetworkRuleSetOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerRegistryNetworkRuleSetList = ContainerRegistryNetworkRuleSetList; _h = JSII_RTTI_SYMBOL_1; ContainerRegistryNetworkRuleSetList[_h] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryNetworkRuleSetList", version: "12.27.0" }; function containerRegistryRetentionPolicyToTerraform(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 { days: struct.days === undefined ? null : cdktf.numberToTerraform(struct.days), enabled: struct.enabled === undefined ? null : cdktf.booleanToTerraform(struct.enabled), }; } exports.containerRegistryRetentionPolicyToTerraform = containerRegistryRetentionPolicyToTerraform; function containerRegistryRetentionPolicyToHclTerraform(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 = { days: { value: struct.days === undefined ? null : cdktf.numberToHclTerraform(struct.days), isBlock: false, type: "simple", storageClassType: "number", }, enabled: { value: struct.enabled === undefined ? null : cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerRegistryRetentionPolicyToHclTerraform = containerRegistryRetentionPolicyToHclTerraform; class ContainerRegistryRetentionPolicyOutputReference 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._days !== undefined) { hasAnyValues = true; internalValueResult.days = this._days; } if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._days = undefined; this._enabled = 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._days = value.days; this._enabled = value.enabled; } } get days() { return this.getNumberAttribute('days'); } set days(value) { this._days = value; } resetDays() { this._days = undefined; } // Temporarily expose input value. Use with caution. get daysInput() { return this._days; } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } } exports.ContainerRegistryRetentionPolicyOutputReference = ContainerRegistryRetentionPolicyOutputReference; _j = JSII_RTTI_SYMBOL_1; ContainerRegistryRetentionPolicyOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryRetentionPolicyOutputReference", version: "12.27.0" }; class ContainerRegistryRetentionPolicyList 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 ContainerRegistryRetentionPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerRegistryRetentionPolicyList = ContainerRegistryRetentionPolicyList; _k = JSII_RTTI_SYMBOL_1; ContainerRegistryRetentionPolicyList[_k] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryRetentionPolicyList", version: "12.27.0" }; function containerRegistryTrustPolicyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { enabled: struct.enabled === undefined ? null : cdktf.booleanToTerraform(struct.enabled), }; } exports.containerRegistryTrustPolicyToTerraform = containerRegistryTrustPolicyToTerraform; function containerRegistryTrustPolicyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { enabled: { value: struct.enabled === undefined ? null : cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerRegistryTrustPolicyToHclTerraform = containerRegistryTrustPolicyToHclTerraform; class ContainerRegistryTrustPolicyOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._enabled = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._enabled = value.enabled; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } } exports.ContainerRegistryTrustPolicyOutputReference = ContainerRegistryTrustPolicyOutputReference; _l = JSII_RTTI_SYMBOL_1; ContainerRegistryTrustPolicyOutputReference[_l] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryTrustPolicyOutputReference", version: "12.27.0" }; class ContainerRegistryTrustPolicyList 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 ContainerRegistryTrustPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerRegistryTrustPolicyList = ContainerRegistryTrustPolicyList; _m = JSII_RTTI_SYMBOL_1; ContainerRegistryTrustPolicyList[_m] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryTrustPolicyList", version: "12.27.0" }; function containerRegistryGeoreplicationsToTerraform(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), regional_endpoint_enabled: cdktf.booleanToTerraform(struct.regionalEndpointEnabled), tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.tags), zone_redundancy_enabled: cdktf.booleanToTerraform(struct.zoneRedundancyEnabled), }; } exports.containerRegistryGeoreplicationsToTerraform = containerRegistryGeoreplicationsToTerraform; function containerRegistryGeoreplicationsToHclTerraform(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", }, regional_endpoint_enabled: { value: cdktf.booleanToHclTerraform(struct.regionalEndpointEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.tags), isBlock: false, type: "map", storageClassType: "stringMap", }, zone_redundancy_enabled: { value: cdktf.booleanToHclTerraform(struct.zoneRedundancyEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.containerRegistryGeoreplicationsToHclTerraform = containerRegistryGeoreplicationsToHclTerraform; class ContainerRegistryGeoreplicationsOutputReference 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._regionalEndpointEnabled !== undefined) { hasAnyValues = true; internalValueResult.regionalEndpointEnabled = this._regionalEndpointEnabled; } if (this._tags !== undefined) { hasAnyValues = true; internalValueResult.tags = this._tags; } if (this._zoneRedundancyEnabled !== undefined) { hasAnyValues = true; internalValueResult.zoneRedundancyEnabled = this._zoneRedundancyEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._location = undefined; this._regionalEndpointEnabled = undefined; this._tags = undefined; this._zoneRedundancyEnabled = 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._regionalEndpointEnabled = value.regionalEndpointEnabled; this._tags = value.tags; this._zoneRedundancyEnabled = value.zoneRedundancyEnabled; } } 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 regionalEndpointEnabled() { return this.getBooleanAttribute('regional_endpoint_enabled'); } set regionalEndpointEnabled(value) { this._regionalEndpointEnabled = value; } resetRegionalEndpointEnabled() { this._regionalEndpointEnabled = undefined; } // Temporarily expose input value. Use with caution. get regionalEndpointEnabledInput() { return this._regionalEndpointEnabled; } 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 zoneRedundancyEnabled() { return this.getBooleanAttribute('zone_redundancy_enabled'); } set zoneRedundancyEnabled(value) { this._zoneRedundancyEnabled = value; } resetZoneRedundancyEnabled() { this._zoneRedundancyEnabled = undefined; } // Temporarily expose input value. Use with caution. get zoneRedundancyEnabledInput() { return this._zoneRedundancyEnabled; } } exports.ContainerRegistryGeoreplicationsOutputReference = ContainerRegistryGeoreplicationsOutputReference; _o = JSII_RTTI_SYMBOL_1; ContainerRegistryGeoreplicationsOutputReference[_o] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryGeoreplicationsOutputReference", version: "12.27.0" }; class ContainerRegistryGeoreplicationsList 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 ContainerRegistryGeoreplicationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ContainerRegistryGeoreplicationsList = ContainerRegistryGeoreplicationsList; _p = JSII_RTTI_SYMBOL_1; ContainerRegistryGeoreplicationsList[_p] = { fqn: "@cdktf/provider-azurerm.containerRegistry.ContainerRegistryGeoreplicationsList", version: "12.27.0" }; function containerRegistryIdentityToTerraform(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.containerRegistryIdentityToTerraform = containerRegistryIdentityToTerraform; function containerRegistryIdentityToHclTerraform(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.containerRegistryIdentityToHclTerraform = containerRegistryIdentityToHclTerraform; class ContainerRegistryIdentityOutputReference 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 t