UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,154 lines 165 kB
"use strict"; var _a, _b, _c, _d, _e, _f; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActiveDirectoryDomainService = exports.ActiveDirectoryDomainServiceTimeoutsOutputReference = exports.activeDirectoryDomainServiceTimeoutsToHclTerraform = exports.activeDirectoryDomainServiceTimeoutsToTerraform = exports.ActiveDirectoryDomainServiceSecurityOutputReference = exports.activeDirectoryDomainServiceSecurityToHclTerraform = exports.activeDirectoryDomainServiceSecurityToTerraform = exports.ActiveDirectoryDomainServiceSecureLdapOutputReference = exports.activeDirectoryDomainServiceSecureLdapToHclTerraform = exports.activeDirectoryDomainServiceSecureLdapToTerraform = exports.ActiveDirectoryDomainServiceNotificationsOutputReference = exports.activeDirectoryDomainServiceNotificationsToHclTerraform = exports.activeDirectoryDomainServiceNotificationsToTerraform = exports.ActiveDirectoryDomainServiceInitialReplicaSetOutputReference = exports.activeDirectoryDomainServiceInitialReplicaSetToHclTerraform = exports.activeDirectoryDomainServiceInitialReplicaSetToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function activeDirectoryDomainServiceInitialReplicaSetToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.activeDirectoryDomainServiceInitialReplicaSetToTerraform = activeDirectoryDomainServiceInitialReplicaSetToTerraform; function activeDirectoryDomainServiceInitialReplicaSetToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { subnet_id: { value: cdktf.stringToHclTerraform(struct.subnetId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.activeDirectoryDomainServiceInitialReplicaSetToHclTerraform = activeDirectoryDomainServiceInitialReplicaSetToHclTerraform; class ActiveDirectoryDomainServiceInitialReplicaSetOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._subnetId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._subnetId = value.subnetId; } } // domain_controller_ip_addresses - computed: true, optional: false, required: false get domainControllerIpAddresses() { return this.getListAttribute('domain_controller_ip_addresses'); } // external_access_ip_address - computed: true, optional: false, required: false get externalAccessIpAddress() { return this.getStringAttribute('external_access_ip_address'); } // id - computed: true, optional: false, required: false get id() { return this.getStringAttribute('id'); } // location - computed: true, optional: false, required: false get location() { return this.getStringAttribute('location'); } // service_status - computed: true, optional: false, required: false get serviceStatus() { return this.getStringAttribute('service_status'); } get subnetId() { return this.getStringAttribute('subnet_id'); } set subnetId(value) { this._subnetId = value; } // Temporarily expose input value. Use with caution. get subnetIdInput() { return this._subnetId; } } exports.ActiveDirectoryDomainServiceInitialReplicaSetOutputReference = ActiveDirectoryDomainServiceInitialReplicaSetOutputReference; _a = JSII_RTTI_SYMBOL_1; ActiveDirectoryDomainServiceInitialReplicaSetOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.activeDirectoryDomainService.ActiveDirectoryDomainServiceInitialReplicaSetOutputReference", version: "12.27.0" }; function activeDirectoryDomainServiceNotificationsToTerraform(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 { additional_recipients: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.additionalRecipients), notify_dc_admins: cdktf.booleanToTerraform(struct.notifyDcAdmins), notify_global_admins: cdktf.booleanToTerraform(struct.notifyGlobalAdmins), }; } exports.activeDirectoryDomainServiceNotificationsToTerraform = activeDirectoryDomainServiceNotificationsToTerraform; function activeDirectoryDomainServiceNotificationsToHclTerraform(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 = { additional_recipients: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.additionalRecipients), isBlock: false, type: "set", storageClassType: "stringList", }, notify_dc_admins: { value: cdktf.booleanToHclTerraform(struct.notifyDcAdmins), isBlock: false, type: "simple", storageClassType: "boolean", }, notify_global_admins: { value: cdktf.booleanToHclTerraform(struct.notifyGlobalAdmins), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.activeDirectoryDomainServiceNotificationsToHclTerraform = activeDirectoryDomainServiceNotificationsToHclTerraform; class ActiveDirectoryDomainServiceNotificationsOutputReference 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._additionalRecipients !== undefined) { hasAnyValues = true; internalValueResult.additionalRecipients = this._additionalRecipients; } if (this._notifyDcAdmins !== undefined) { hasAnyValues = true; internalValueResult.notifyDcAdmins = this._notifyDcAdmins; } if (this._notifyGlobalAdmins !== undefined) { hasAnyValues = true; internalValueResult.notifyGlobalAdmins = this._notifyGlobalAdmins; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._additionalRecipients = undefined; this._notifyDcAdmins = undefined; this._notifyGlobalAdmins = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._additionalRecipients = value.additionalRecipients; this._notifyDcAdmins = value.notifyDcAdmins; this._notifyGlobalAdmins = value.notifyGlobalAdmins; } } get additionalRecipients() { return cdktf.Fn.tolist(this.getListAttribute('additional_recipients')); } set additionalRecipients(value) { this._additionalRecipients = value; } resetAdditionalRecipients() { this._additionalRecipients = undefined; } // Temporarily expose input value. Use with caution. get additionalRecipientsInput() { return this._additionalRecipients; } get notifyDcAdmins() { return this.getBooleanAttribute('notify_dc_admins'); } set notifyDcAdmins(value) { this._notifyDcAdmins = value; } resetNotifyDcAdmins() { this._notifyDcAdmins = undefined; } // Temporarily expose input value. Use with caution. get notifyDcAdminsInput() { return this._notifyDcAdmins; } get notifyGlobalAdmins() { return this.getBooleanAttribute('notify_global_admins'); } set notifyGlobalAdmins(value) { this._notifyGlobalAdmins = value; } resetNotifyGlobalAdmins() { this._notifyGlobalAdmins = undefined; } // Temporarily expose input value. Use with caution. get notifyGlobalAdminsInput() { return this._notifyGlobalAdmins; } } exports.ActiveDirectoryDomainServiceNotificationsOutputReference = ActiveDirectoryDomainServiceNotificationsOutputReference; _b = JSII_RTTI_SYMBOL_1; ActiveDirectoryDomainServiceNotificationsOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.activeDirectoryDomainService.ActiveDirectoryDomainServiceNotificationsOutputReference", version: "12.27.0" }; function activeDirectoryDomainServiceSecureLdapToTerraform(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: cdktf.booleanToTerraform(struct.enabled), external_access_enabled: cdktf.booleanToTerraform(struct.externalAccessEnabled), pfx_certificate: cdktf.stringToTerraform(struct.pfxCertificate), pfx_certificate_password: cdktf.stringToTerraform(struct.pfxCertificatePassword), }; } exports.activeDirectoryDomainServiceSecureLdapToTerraform = activeDirectoryDomainServiceSecureLdapToTerraform; function activeDirectoryDomainServiceSecureLdapToHclTerraform(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: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, external_access_enabled: { value: cdktf.booleanToHclTerraform(struct.externalAccessEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, pfx_certificate: { value: cdktf.stringToHclTerraform(struct.pfxCertificate), isBlock: false, type: "simple", storageClassType: "string", }, pfx_certificate_password: { value: cdktf.stringToHclTerraform(struct.pfxCertificatePassword), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.activeDirectoryDomainServiceSecureLdapToHclTerraform = activeDirectoryDomainServiceSecureLdapToHclTerraform; class ActiveDirectoryDomainServiceSecureLdapOutputReference 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._externalAccessEnabled !== undefined) { hasAnyValues = true; internalValueResult.externalAccessEnabled = this._externalAccessEnabled; } if (this._pfxCertificate !== undefined) { hasAnyValues = true; internalValueResult.pfxCertificate = this._pfxCertificate; } if (this._pfxCertificatePassword !== undefined) { hasAnyValues = true; internalValueResult.pfxCertificatePassword = this._pfxCertificatePassword; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; this._externalAccessEnabled = undefined; this._pfxCertificate = undefined; this._pfxCertificatePassword = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; this._externalAccessEnabled = value.externalAccessEnabled; this._pfxCertificate = value.pfxCertificate; this._pfxCertificatePassword = value.pfxCertificatePassword; } } // certificate_expiry - computed: true, optional: false, required: false get certificateExpiry() { return this.getStringAttribute('certificate_expiry'); } // certificate_thumbprint - computed: true, optional: false, required: false get certificateThumbprint() { return this.getStringAttribute('certificate_thumbprint'); } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } get externalAccessEnabled() { return this.getBooleanAttribute('external_access_enabled'); } set externalAccessEnabled(value) { this._externalAccessEnabled = value; } resetExternalAccessEnabled() { this._externalAccessEnabled = undefined; } // Temporarily expose input value. Use with caution. get externalAccessEnabledInput() { return this._externalAccessEnabled; } get pfxCertificate() { return this.getStringAttribute('pfx_certificate'); } set pfxCertificate(value) { this._pfxCertificate = value; } // Temporarily expose input value. Use with caution. get pfxCertificateInput() { return this._pfxCertificate; } get pfxCertificatePassword() { return this.getStringAttribute('pfx_certificate_password'); } set pfxCertificatePassword(value) { this._pfxCertificatePassword = value; } // Temporarily expose input value. Use with caution. get pfxCertificatePasswordInput() { return this._pfxCertificatePassword; } // public_certificate - computed: true, optional: false, required: false get publicCertificate() { return this.getStringAttribute('public_certificate'); } } exports.ActiveDirectoryDomainServiceSecureLdapOutputReference = ActiveDirectoryDomainServiceSecureLdapOutputReference; _c = JSII_RTTI_SYMBOL_1; ActiveDirectoryDomainServiceSecureLdapOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.activeDirectoryDomainService.ActiveDirectoryDomainServiceSecureLdapOutputReference", version: "12.27.0" }; function activeDirectoryDomainServiceSecurityToTerraform(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 { kerberos_armoring_enabled: cdktf.booleanToTerraform(struct.kerberosArmoringEnabled), kerberos_rc4_encryption_enabled: cdktf.booleanToTerraform(struct.kerberosRc4EncryptionEnabled), ntlm_v1_enabled: cdktf.booleanToTerraform(struct.ntlmV1Enabled), sync_kerberos_passwords: cdktf.booleanToTerraform(struct.syncKerberosPasswords), sync_ntlm_passwords: cdktf.booleanToTerraform(struct.syncNtlmPasswords), sync_on_prem_passwords: cdktf.booleanToTerraform(struct.syncOnPremPasswords), tls_v1_enabled: cdktf.booleanToTerraform(struct.tlsV1Enabled), }; } exports.activeDirectoryDomainServiceSecurityToTerraform = activeDirectoryDomainServiceSecurityToTerraform; function activeDirectoryDomainServiceSecurityToHclTerraform(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 = { kerberos_armoring_enabled: { value: cdktf.booleanToHclTerraform(struct.kerberosArmoringEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, kerberos_rc4_encryption_enabled: { value: cdktf.booleanToHclTerraform(struct.kerberosRc4EncryptionEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, ntlm_v1_enabled: { value: cdktf.booleanToHclTerraform(struct.ntlmV1Enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, sync_kerberos_passwords: { value: cdktf.booleanToHclTerraform(struct.syncKerberosPasswords), isBlock: false, type: "simple", storageClassType: "boolean", }, sync_ntlm_passwords: { value: cdktf.booleanToHclTerraform(struct.syncNtlmPasswords), isBlock: false, type: "simple", storageClassType: "boolean", }, sync_on_prem_passwords: { value: cdktf.booleanToHclTerraform(struct.syncOnPremPasswords), isBlock: false, type: "simple", storageClassType: "boolean", }, tls_v1_enabled: { value: cdktf.booleanToHclTerraform(struct.tlsV1Enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.activeDirectoryDomainServiceSecurityToHclTerraform = activeDirectoryDomainServiceSecurityToHclTerraform; class ActiveDirectoryDomainServiceSecurityOutputReference 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._kerberosArmoringEnabled !== undefined) { hasAnyValues = true; internalValueResult.kerberosArmoringEnabled = this._kerberosArmoringEnabled; } if (this._kerberosRc4EncryptionEnabled !== undefined) { hasAnyValues = true; internalValueResult.kerberosRc4EncryptionEnabled = this._kerberosRc4EncryptionEnabled; } if (this._ntlmV1Enabled !== undefined) { hasAnyValues = true; internalValueResult.ntlmV1Enabled = this._ntlmV1Enabled; } if (this._syncKerberosPasswords !== undefined) { hasAnyValues = true; internalValueResult.syncKerberosPasswords = this._syncKerberosPasswords; } if (this._syncNtlmPasswords !== undefined) { hasAnyValues = true; internalValueResult.syncNtlmPasswords = this._syncNtlmPasswords; } if (this._syncOnPremPasswords !== undefined) { hasAnyValues = true; internalValueResult.syncOnPremPasswords = this._syncOnPremPasswords; } if (this._tlsV1Enabled !== undefined) { hasAnyValues = true; internalValueResult.tlsV1Enabled = this._tlsV1Enabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kerberosArmoringEnabled = undefined; this._kerberosRc4EncryptionEnabled = undefined; this._ntlmV1Enabled = undefined; this._syncKerberosPasswords = undefined; this._syncNtlmPasswords = undefined; this._syncOnPremPasswords = undefined; this._tlsV1Enabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kerberosArmoringEnabled = value.kerberosArmoringEnabled; this._kerberosRc4EncryptionEnabled = value.kerberosRc4EncryptionEnabled; this._ntlmV1Enabled = value.ntlmV1Enabled; this._syncKerberosPasswords = value.syncKerberosPasswords; this._syncNtlmPasswords = value.syncNtlmPasswords; this._syncOnPremPasswords = value.syncOnPremPasswords; this._tlsV1Enabled = value.tlsV1Enabled; } } get kerberosArmoringEnabled() { return this.getBooleanAttribute('kerberos_armoring_enabled'); } set kerberosArmoringEnabled(value) { this._kerberosArmoringEnabled = value; } resetKerberosArmoringEnabled() { this._kerberosArmoringEnabled = undefined; } // Temporarily expose input value. Use with caution. get kerberosArmoringEnabledInput() { return this._kerberosArmoringEnabled; } get kerberosRc4EncryptionEnabled() { return this.getBooleanAttribute('kerberos_rc4_encryption_enabled'); } set kerberosRc4EncryptionEnabled(value) { this._kerberosRc4EncryptionEnabled = value; } resetKerberosRc4EncryptionEnabled() { this._kerberosRc4EncryptionEnabled = undefined; } // Temporarily expose input value. Use with caution. get kerberosRc4EncryptionEnabledInput() { return this._kerberosRc4EncryptionEnabled; } get ntlmV1Enabled() { return this.getBooleanAttribute('ntlm_v1_enabled'); } set ntlmV1Enabled(value) { this._ntlmV1Enabled = value; } resetNtlmV1Enabled() { this._ntlmV1Enabled = undefined; } // Temporarily expose input value. Use with caution. get ntlmV1EnabledInput() { return this._ntlmV1Enabled; } get syncKerberosPasswords() { return this.getBooleanAttribute('sync_kerberos_passwords'); } set syncKerberosPasswords(value) { this._syncKerberosPasswords = value; } resetSyncKerberosPasswords() { this._syncKerberosPasswords = undefined; } // Temporarily expose input value. Use with caution. get syncKerberosPasswordsInput() { return this._syncKerberosPasswords; } get syncNtlmPasswords() { return this.getBooleanAttribute('sync_ntlm_passwords'); } set syncNtlmPasswords(value) { this._syncNtlmPasswords = value; } resetSyncNtlmPasswords() { this._syncNtlmPasswords = undefined; } // Temporarily expose input value. Use with caution. get syncNtlmPasswordsInput() { return this._syncNtlmPasswords; } get syncOnPremPasswords() { return this.getBooleanAttribute('sync_on_prem_passwords'); } set syncOnPremPasswords(value) { this._syncOnPremPasswords = value; } resetSyncOnPremPasswords() { this._syncOnPremPasswords = undefined; } // Temporarily expose input value. Use with caution. get syncOnPremPasswordsInput() { return this._syncOnPremPasswords; } get tlsV1Enabled() { return this.getBooleanAttribute('tls_v1_enabled'); } set tlsV1Enabled(value) { this._tlsV1Enabled = value; } resetTlsV1Enabled() { this._tlsV1Enabled = undefined; } // Temporarily expose input value. Use with caution. get tlsV1EnabledInput() { return this._tlsV1Enabled; } } exports.ActiveDirectoryDomainServiceSecurityOutputReference = ActiveDirectoryDomainServiceSecurityOutputReference; _d = JSII_RTTI_SYMBOL_1; ActiveDirectoryDomainServiceSecurityOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.activeDirectoryDomainService.ActiveDirectoryDomainServiceSecurityOutputReference", version: "12.27.0" }; function activeDirectoryDomainServiceTimeoutsToTerraform(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.activeDirectoryDomainServiceTimeoutsToTerraform = activeDirectoryDomainServiceTimeoutsToTerraform; function activeDirectoryDomainServiceTimeoutsToHclTerraform(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.activeDirectoryDomainServiceTimeoutsToHclTerraform = activeDirectoryDomainServiceTimeoutsToHclTerraform; class ActiveDirectoryDomainServiceTimeoutsOutputReference 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.ActiveDirectoryDomainServiceTimeoutsOutputReference = ActiveDirectoryDomainServiceTimeoutsOutputReference; _e = JSII_RTTI_SYMBOL_1; ActiveDirectoryDomainServiceTimeoutsOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.activeDirectoryDomainService.ActiveDirectoryDomainServiceTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/active_directory_domain_service azurerm_active_directory_domain_service} */ class ActiveDirectoryDomainService extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a ActiveDirectoryDomainService 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 ActiveDirectoryDomainService to import * @param importFromId The id of the existing ActiveDirectoryDomainService that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/active_directory_domain_service#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ActiveDirectoryDomainService to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_active_directory_domain_service", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/active_directory_domain_service azurerm_active_directory_domain_service} 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 ActiveDirectoryDomainServiceConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_active_directory_domain_service', 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 }); // initial_replica_set - computed: false, optional: false, required: true this._initialReplicaSet = new ActiveDirectoryDomainServiceInitialReplicaSetOutputReference(this, "initial_replica_set"); // notifications - computed: false, optional: true, required: false this._notifications = new ActiveDirectoryDomainServiceNotificationsOutputReference(this, "notifications"); // secure_ldap - computed: false, optional: true, required: false this._secureLdap = new ActiveDirectoryDomainServiceSecureLdapOutputReference(this, "secure_ldap"); // security - computed: false, optional: true, required: false this._security = new ActiveDirectoryDomainServiceSecurityOutputReference(this, "security"); // timeouts - computed: false, optional: true, required: false this._timeouts = new ActiveDirectoryDomainServiceTimeoutsOutputReference(this, "timeouts"); this._domainConfigurationType = config.domainConfigurationType; this._domainName = config.domainName; this._filteredSyncEnabled = config.filteredSyncEnabled; this._id = config.id; this._location = config.location; this._name = config.name; this._resourceGroupName = config.resourceGroupName; this._sku = config.sku; this._tags = config.tags; this._initialReplicaSet.internalValue = config.initialReplicaSet; this._notifications.internalValue = config.notifications; this._secureLdap.internalValue = config.secureLdap; this._security.internalValue = config.security; this._timeouts.internalValue = config.timeouts; } // ========== // ATTRIBUTES // ========== // deployment_id - computed: true, optional: false, required: false get deploymentId() { return this.getStringAttribute('deployment_id'); } get domainConfigurationType() { return this.getStringAttribute('domain_configuration_type'); } set domainConfigurationType(value) { this._domainConfigurationType = value; } resetDomainConfigurationType() { this._domainConfigurationType = undefined; } // Temporarily expose input value. Use with caution. get domainConfigurationTypeInput() { return this._domainConfigurationType; } get domainName() { return this.getStringAttribute('domain_name'); } set domainName(value) { this._domainName = value; } // Temporarily expose input value. Use with caution. get domainNameInput() { return this._domainName; } get filteredSyncEnabled() { return this.getBooleanAttribute('filtered_sync_enabled'); } set filteredSyncEnabled(value) { this._filteredSyncEnabled = value; } resetFilteredSyncEnabled() { this._filteredSyncEnabled = undefined; } // Temporarily expose input value. Use with caution. get filteredSyncEnabledInput() { return this._filteredSyncEnabled; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get location() { return this.getStringAttribute('location'); } set location(value) { this._location = value; } // Temporarily expose input value. Use with caution. get locationInput() { return this._location; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get resourceGroupName() { return this.getStringAttribute('resource_group_name'); } set resourceGroupName(value) { this._resourceGroupName = value; } // Temporarily expose input value. Use with caution. get resourceGroupNameInput() { return this._resourceGroupName; } // resource_id - computed: true, optional: false, required: false get resourceId() { return this.getStringAttribute('resource_id'); } get sku() { return this.getStringAttribute('sku'); } set sku(value) { this._sku = value; } // Temporarily expose input value. Use with caution. get skuInput() { return this._sku; } // sync_owner - computed: true, optional: false, required: false get syncOwner() { return this.getStringAttribute('sync_owner'); } 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; } // tenant_id - computed: true, optional: false, required: false get tenantId() { return this.getStringAttribute('tenant_id'); } // version - computed: true, optional: false, required: false get version() { return this.getNumberAttribute('version'); } get initialReplicaSet() { return this._initialReplicaSet; } putInitialReplicaSet(value) { this._initialReplicaSet.internalValue = value; } // Temporarily expose input value. Use with caution. get initialReplicaSetInput() { return this._initialReplicaSet.internalValue; } get notifications() { return this._notifications; } putNotifications(value) { this._notifications.internalValue = value; } resetNotifications() { this._notifications.internalValue = undefined; } // Temporarily expose input value. Use with caution. get notificationsInput() { return this._notifications.internalValue; } get secureLdap() { return this._secureLdap; } putSecureLdap(value) { this._secureLdap.internalValue = value; } resetSecureLdap() { this._secureLdap.internalValue = undefined; } // Temporarily expose input value. Use with caution. get secureLdapInput() { return this._secureLdap.internalValue; } get security() { return this._security; } putSecurity(value) { this._security.internalValue = value; } resetSecurity() { this._security.internalValue = undefined; } // Temporarily expose input value. Use with caution. get securityInput() { return this._security.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 { domain_configuration_type: cdktf.stringToTerraform(this._domainConfigurationType), domain_name: cdktf.stringToTerraform(this._domainName), filtered_sync_enabled: cdktf.booleanToTerraform(this._filteredSyncEnabled), id: cdktf.stringToTerraform(this._id), location: cdktf.stringToTerraform(this._location), name: cdktf.stringToTerraform(this._name), resource_group_name: cdktf.stringToTerraform(this._resourceGroupName), sku: cdktf.stringToTerraform(this._sku), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), initial_replica_set: activeDirectoryDomainServiceInitialReplicaSetToTerraform(this._initialReplicaSet.internalValue), notifications: activeDirectoryDomainServiceNotificationsToTerraform(this._notifications.internalValue), secure_ldap: activeDirectoryDomainServiceSecureLdapToTerraform(this._secureLdap.internalValue), security: activeDirectoryDomainServiceSecurityToTerraform(this._security.internalValue), timeouts: activeDirectoryDomainServiceTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { domain_configuration_type: { value: cdktf.stringToHclTerraform(this._domainConfigurationType), isBlock: false, type: "simple", storageClassType: "string", }, domain_name: { value: cdktf.stringToHclTerraform(this._domainName), isBlock: false, type: "simple", storageClassType: "string", }, filtered_sync_enabled: { value: cdktf.booleanToHclTerraform(this._filteredSyncEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, location: { value: cdktf.stringToHclTerraform(this._location), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, resource_group_name: { value: cdktf.stringToHclTerraform(this._resourceGroupName), isBlock: false, type: "simple", storageClassType: "string", }, sku: { value: cdktf.stringToHclTerraform(this._sku), isBlock: false, type: "simple", storageClassType: "string", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, initial_replica_set: { value: activeDirectoryDomainServiceInitialReplicaSetToHclTerraform(this._initialReplicaSet.internalValue), isBlock: true, type: "list", storageClassType: "ActiveDirectoryDomainServiceInitialReplicaSetList", }, notifications: { value: activeDirectoryDomainServiceNotificationsToHclTerraform(this._notifications.internalValue), isBlock: true, type: "list", storageClassType: "ActiveDirectoryDomainServiceNotificationsList", }, secure_ldap: { value: activeDirectoryDomainServiceSecureLdapToHclTerraform(this._secureLdap.internalValue), isBlock: true, type: "list", storageClassType: "ActiveDirectoryDomainServiceSecureLdapList", }, security: { value: activeDirectoryDomainServiceSecurityToHclTerraform(this._security.internalValue), isBlock: true, type: "list", storageClassType: "ActiveDirectoryDomainServiceSecurityList", }, timeouts: { value: activeDirectoryDomainServiceTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "ActiveDirectoryDomainServiceTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.ActiveDirectoryDomainService = ActiveDirectoryDomainService; _f = JSII_RTTI_SYMBOL_1; ActiveDirectoryDomainService[_f] = { fqn: "@cdktf/provider-azurerm.activeDirectoryDomainService.ActiveDirectoryDomainService", version: "12.27.0" }; // ================= // STATIC PROPERTIES // ================= ActiveDirectoryDomainService.tfResourceType = "azurerm_active_directory_domain_service"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWN0aXZlLWRpcmVjdG9yeS1kb21haW4tc2VydmljZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQVNBLCtCQUErQjtBQWtGL0IsU0FBZ0Isd0RBQXdELENBQUMsTUFBcUg7SUFDNUwsSUFBSSxDQUF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