UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,247 lines 184 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.MachineLearningWorkspace = exports.MachineLearningWorkspaceTimeoutsOutputReference = exports.machineLearningWorkspaceTimeoutsToHclTerraform = exports.machineLearningWorkspaceTimeoutsToTerraform = exports.MachineLearningWorkspaceServerlessComputeOutputReference = exports.machineLearningWorkspaceServerlessComputeToHclTerraform = exports.machineLearningWorkspaceServerlessComputeToTerraform = exports.MachineLearningWorkspaceManagedNetworkOutputReference = exports.machineLearningWorkspaceManagedNetworkToHclTerraform = exports.machineLearningWorkspaceManagedNetworkToTerraform = exports.MachineLearningWorkspaceIdentityOutputReference = exports.machineLearningWorkspaceIdentityToHclTerraform = exports.machineLearningWorkspaceIdentityToTerraform = exports.MachineLearningWorkspaceFeatureStoreOutputReference = exports.machineLearningWorkspaceFeatureStoreToHclTerraform = exports.machineLearningWorkspaceFeatureStoreToTerraform = exports.MachineLearningWorkspaceEncryptionOutputReference = exports.machineLearningWorkspaceEncryptionToHclTerraform = exports.machineLearningWorkspaceEncryptionToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function machineLearningWorkspaceEncryptionToTerraform(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 { key_id: cdktf.stringToTerraform(struct.keyId), key_vault_id: cdktf.stringToTerraform(struct.keyVaultId), user_assigned_identity_id: cdktf.stringToTerraform(struct.userAssignedIdentityId), }; } exports.machineLearningWorkspaceEncryptionToTerraform = machineLearningWorkspaceEncryptionToTerraform; function machineLearningWorkspaceEncryptionToHclTerraform(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 = { key_id: { value: cdktf.stringToHclTerraform(struct.keyId), isBlock: false, type: "simple", storageClassType: "string", }, key_vault_id: { value: cdktf.stringToHclTerraform(struct.keyVaultId), isBlock: false, type: "simple", storageClassType: "string", }, user_assigned_identity_id: { value: cdktf.stringToHclTerraform(struct.userAssignedIdentityId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.machineLearningWorkspaceEncryptionToHclTerraform = machineLearningWorkspaceEncryptionToHclTerraform; class MachineLearningWorkspaceEncryptionOutputReference 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._keyId !== undefined) { hasAnyValues = true; internalValueResult.keyId = this._keyId; } if (this._keyVaultId !== undefined) { hasAnyValues = true; internalValueResult.keyVaultId = this._keyVaultId; } if (this._userAssignedIdentityId !== undefined) { hasAnyValues = true; internalValueResult.userAssignedIdentityId = this._userAssignedIdentityId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._keyId = undefined; this._keyVaultId = undefined; this._userAssignedIdentityId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._keyId = value.keyId; this._keyVaultId = value.keyVaultId; this._userAssignedIdentityId = value.userAssignedIdentityId; } } get keyId() { return this.getStringAttribute('key_id'); } set keyId(value) { this._keyId = value; } // Temporarily expose input value. Use with caution. get keyIdInput() { return this._keyId; } get keyVaultId() { return this.getStringAttribute('key_vault_id'); } set keyVaultId(value) { this._keyVaultId = value; } // Temporarily expose input value. Use with caution. get keyVaultIdInput() { return this._keyVaultId; } get userAssignedIdentityId() { return this.getStringAttribute('user_assigned_identity_id'); } set userAssignedIdentityId(value) { this._userAssignedIdentityId = value; } resetUserAssignedIdentityId() { this._userAssignedIdentityId = undefined; } // Temporarily expose input value. Use with caution. get userAssignedIdentityIdInput() { return this._userAssignedIdentityId; } } exports.MachineLearningWorkspaceEncryptionOutputReference = MachineLearningWorkspaceEncryptionOutputReference; _a = JSII_RTTI_SYMBOL_1; MachineLearningWorkspaceEncryptionOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.machineLearningWorkspace.MachineLearningWorkspaceEncryptionOutputReference", version: "12.27.0" }; function machineLearningWorkspaceFeatureStoreToTerraform(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 { computer_spark_runtime_version: cdktf.stringToTerraform(struct.computerSparkRuntimeVersion), offline_connection_name: cdktf.stringToTerraform(struct.offlineConnectionName), online_connection_name: cdktf.stringToTerraform(struct.onlineConnectionName), }; } exports.machineLearningWorkspaceFeatureStoreToTerraform = machineLearningWorkspaceFeatureStoreToTerraform; function machineLearningWorkspaceFeatureStoreToHclTerraform(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 = { computer_spark_runtime_version: { value: cdktf.stringToHclTerraform(struct.computerSparkRuntimeVersion), isBlock: false, type: "simple", storageClassType: "string", }, offline_connection_name: { value: cdktf.stringToHclTerraform(struct.offlineConnectionName), isBlock: false, type: "simple", storageClassType: "string", }, online_connection_name: { value: cdktf.stringToHclTerraform(struct.onlineConnectionName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.machineLearningWorkspaceFeatureStoreToHclTerraform = machineLearningWorkspaceFeatureStoreToHclTerraform; class MachineLearningWorkspaceFeatureStoreOutputReference 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._computerSparkRuntimeVersion !== undefined) { hasAnyValues = true; internalValueResult.computerSparkRuntimeVersion = this._computerSparkRuntimeVersion; } if (this._offlineConnectionName !== undefined) { hasAnyValues = true; internalValueResult.offlineConnectionName = this._offlineConnectionName; } if (this._onlineConnectionName !== undefined) { hasAnyValues = true; internalValueResult.onlineConnectionName = this._onlineConnectionName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._computerSparkRuntimeVersion = undefined; this._offlineConnectionName = undefined; this._onlineConnectionName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._computerSparkRuntimeVersion = value.computerSparkRuntimeVersion; this._offlineConnectionName = value.offlineConnectionName; this._onlineConnectionName = value.onlineConnectionName; } } get computerSparkRuntimeVersion() { return this.getStringAttribute('computer_spark_runtime_version'); } set computerSparkRuntimeVersion(value) { this._computerSparkRuntimeVersion = value; } resetComputerSparkRuntimeVersion() { this._computerSparkRuntimeVersion = undefined; } // Temporarily expose input value. Use with caution. get computerSparkRuntimeVersionInput() { return this._computerSparkRuntimeVersion; } get offlineConnectionName() { return this.getStringAttribute('offline_connection_name'); } set offlineConnectionName(value) { this._offlineConnectionName = value; } resetOfflineConnectionName() { this._offlineConnectionName = undefined; } // Temporarily expose input value. Use with caution. get offlineConnectionNameInput() { return this._offlineConnectionName; } get onlineConnectionName() { return this.getStringAttribute('online_connection_name'); } set onlineConnectionName(value) { this._onlineConnectionName = value; } resetOnlineConnectionName() { this._onlineConnectionName = undefined; } // Temporarily expose input value. Use with caution. get onlineConnectionNameInput() { return this._onlineConnectionName; } } exports.MachineLearningWorkspaceFeatureStoreOutputReference = MachineLearningWorkspaceFeatureStoreOutputReference; _b = JSII_RTTI_SYMBOL_1; MachineLearningWorkspaceFeatureStoreOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.machineLearningWorkspace.MachineLearningWorkspaceFeatureStoreOutputReference", version: "12.27.0" }; function machineLearningWorkspaceIdentityToTerraform(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.machineLearningWorkspaceIdentityToTerraform = machineLearningWorkspaceIdentityToTerraform; function machineLearningWorkspaceIdentityToHclTerraform(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.machineLearningWorkspaceIdentityToHclTerraform = machineLearningWorkspaceIdentityToHclTerraform; class MachineLearningWorkspaceIdentityOutputReference 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.MachineLearningWorkspaceIdentityOutputReference = MachineLearningWorkspaceIdentityOutputReference; _c = JSII_RTTI_SYMBOL_1; MachineLearningWorkspaceIdentityOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.machineLearningWorkspace.MachineLearningWorkspaceIdentityOutputReference", version: "12.27.0" }; function machineLearningWorkspaceManagedNetworkToTerraform(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 { isolation_mode: cdktf.stringToTerraform(struct.isolationMode), }; } exports.machineLearningWorkspaceManagedNetworkToTerraform = machineLearningWorkspaceManagedNetworkToTerraform; function machineLearningWorkspaceManagedNetworkToHclTerraform(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 = { isolation_mode: { value: cdktf.stringToHclTerraform(struct.isolationMode), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.machineLearningWorkspaceManagedNetworkToHclTerraform = machineLearningWorkspaceManagedNetworkToHclTerraform; class MachineLearningWorkspaceManagedNetworkOutputReference 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._isolationMode !== undefined) { hasAnyValues = true; internalValueResult.isolationMode = this._isolationMode; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._isolationMode = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._isolationMode = value.isolationMode; } } get isolationMode() { return this.getStringAttribute('isolation_mode'); } set isolationMode(value) { this._isolationMode = value; } resetIsolationMode() { this._isolationMode = undefined; } // Temporarily expose input value. Use with caution. get isolationModeInput() { return this._isolationMode; } } exports.MachineLearningWorkspaceManagedNetworkOutputReference = MachineLearningWorkspaceManagedNetworkOutputReference; _d = JSII_RTTI_SYMBOL_1; MachineLearningWorkspaceManagedNetworkOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.machineLearningWorkspace.MachineLearningWorkspaceManagedNetworkOutputReference", version: "12.27.0" }; function machineLearningWorkspaceServerlessComputeToTerraform(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 { public_ip_enabled: cdktf.booleanToTerraform(struct.publicIpEnabled), subnet_id: cdktf.stringToTerraform(struct.subnetId), }; } exports.machineLearningWorkspaceServerlessComputeToTerraform = machineLearningWorkspaceServerlessComputeToTerraform; function machineLearningWorkspaceServerlessComputeToHclTerraform(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 = { public_ip_enabled: { value: cdktf.booleanToHclTerraform(struct.publicIpEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, 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.machineLearningWorkspaceServerlessComputeToHclTerraform = machineLearningWorkspaceServerlessComputeToHclTerraform; class MachineLearningWorkspaceServerlessComputeOutputReference 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._publicIpEnabled !== undefined) { hasAnyValues = true; internalValueResult.publicIpEnabled = this._publicIpEnabled; } if (this._subnetId !== undefined) { hasAnyValues = true; internalValueResult.subnetId = this._subnetId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._publicIpEnabled = undefined; this._subnetId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._publicIpEnabled = value.publicIpEnabled; this._subnetId = value.subnetId; } } get publicIpEnabled() { return this.getBooleanAttribute('public_ip_enabled'); } set publicIpEnabled(value) { this._publicIpEnabled = value; } resetPublicIpEnabled() { this._publicIpEnabled = undefined; } // Temporarily expose input value. Use with caution. get publicIpEnabledInput() { return this._publicIpEnabled; } 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.MachineLearningWorkspaceServerlessComputeOutputReference = MachineLearningWorkspaceServerlessComputeOutputReference; _e = JSII_RTTI_SYMBOL_1; MachineLearningWorkspaceServerlessComputeOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.machineLearningWorkspace.MachineLearningWorkspaceServerlessComputeOutputReference", version: "12.27.0" }; function machineLearningWorkspaceTimeoutsToTerraform(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.machineLearningWorkspaceTimeoutsToTerraform = machineLearningWorkspaceTimeoutsToTerraform; function machineLearningWorkspaceTimeoutsToHclTerraform(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.machineLearningWorkspaceTimeoutsToHclTerraform = machineLearningWorkspaceTimeoutsToHclTerraform; class MachineLearningWorkspaceTimeoutsOutputReference 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.MachineLearningWorkspaceTimeoutsOutputReference = MachineLearningWorkspaceTimeoutsOutputReference; _f = JSII_RTTI_SYMBOL_1; MachineLearningWorkspaceTimeoutsOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.machineLearningWorkspace.MachineLearningWorkspaceTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/machine_learning_workspace azurerm_machine_learning_workspace} */ class MachineLearningWorkspace extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a MachineLearningWorkspace 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 MachineLearningWorkspace to import * @param importFromId The id of the existing MachineLearningWorkspace that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/machine_learning_workspace#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MachineLearningWorkspace to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_machine_learning_workspace", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/machine_learning_workspace azurerm_machine_learning_workspace} 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 MachineLearningWorkspaceConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_machine_learning_workspace', 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 }); // encryption - computed: false, optional: true, required: false this._encryption = new MachineLearningWorkspaceEncryptionOutputReference(this, "encryption"); // feature_store - computed: false, optional: true, required: false this._featureStore = new MachineLearningWorkspaceFeatureStoreOutputReference(this, "feature_store"); // identity - computed: false, optional: false, required: true this._identity = new MachineLearningWorkspaceIdentityOutputReference(this, "identity"); // managed_network - computed: false, optional: true, required: false this._managedNetwork = new MachineLearningWorkspaceManagedNetworkOutputReference(this, "managed_network"); // serverless_compute - computed: false, optional: true, required: false this._serverlessCompute = new MachineLearningWorkspaceServerlessComputeOutputReference(this, "serverless_compute"); // timeouts - computed: false, optional: true, required: false this._timeouts = new MachineLearningWorkspaceTimeoutsOutputReference(this, "timeouts"); this._applicationInsightsId = config.applicationInsightsId; this._containerRegistryId = config.containerRegistryId; this._description = config.description; this._friendlyName = config.friendlyName; this._highBusinessImpact = config.highBusinessImpact; this._id = config.id; this._imageBuildComputeName = config.imageBuildComputeName; this._keyVaultId = config.keyVaultId; this._kind = config.kind; this._location = config.location; this._name = config.name; this._primaryUserAssignedIdentity = config.primaryUserAssignedIdentity; this._publicAccessBehindVirtualNetworkEnabled = config.publicAccessBehindVirtualNetworkEnabled; this._publicNetworkAccessEnabled = config.publicNetworkAccessEnabled; this._resourceGroupName = config.resourceGroupName; this._skuName = config.skuName; this._storageAccountId = config.storageAccountId; this._tags = config.tags; this._v1LegacyModeEnabled = config.v1LegacyModeEnabled; this._encryption.internalValue = config.encryption; this._featureStore.internalValue = config.featureStore; this._identity.internalValue = config.identity; this._managedNetwork.internalValue = config.managedNetwork; this._serverlessCompute.internalValue = config.serverlessCompute; this._timeouts.internalValue = config.timeouts; } get applicationInsightsId() { return this.getStringAttribute('application_insights_id'); } set applicationInsightsId(value) { this._applicationInsightsId = value; } // Temporarily expose input value. Use with caution. get applicationInsightsIdInput() { return this._applicationInsightsId; } get containerRegistryId() { return this.getStringAttribute('container_registry_id'); } set containerRegistryId(value) { this._containerRegistryId = value; } resetContainerRegistryId() { this._containerRegistryId = undefined; } // Temporarily expose input value. Use with caution. get containerRegistryIdInput() { return this._containerRegistryId; } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } // discovery_url - computed: true, optional: false, required: false get discoveryUrl() { return this.getStringAttribute('discovery_url'); } get friendlyName() { return this.getStringAttribute('friendly_name'); } set friendlyName(value) { this._friendlyName = value; } resetFriendlyName() { this._friendlyName = undefined; } // Temporarily expose input value. Use with caution. get friendlyNameInput() { return this._friendlyName; } get highBusinessImpact() { return this.getBooleanAttribute('high_business_impact'); } set highBusinessImpact(value) { this._highBusinessImpact = value; } resetHighBusinessImpact() { this._highBusinessImpact = undefined; } // Temporarily expose input value. Use with caution. get highBusinessImpactInput() { return this._highBusinessImpact; } 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 imageBuildComputeName() { return this.getStringAttribute('image_build_compute_name'); } set imageBuildComputeName(value) { this._imageBuildComputeName = value; } resetImageBuildComputeName() { this._imageBuildComputeName = undefined; } // Temporarily expose input value. Use with caution. get imageBuildComputeNameInput() { return this._imageBuildComputeName; } get keyVaultId() { return this.getStringAttribute('key_vault_id'); } set keyVaultId(value) { this._keyVaultId = value; } // Temporarily expose input value. Use with caution. get keyVaultIdInput() { return this._keyVaultId; } get kind() { return this.getStringAttribute('kind'); } set kind(value) { this._kind = value; } resetKind() { this._kind = undefined; } // Temporarily expose input value. Use with caution. get kindInput() { return this._kind; } 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 primaryUserAssignedIdentity() { return this.getStringAttribute('primary_user_assigned_identity'); } set primaryUserAssignedIdentity(value) { this._primaryUserAssignedIdentity = value; } resetPrimaryUserAssignedIdentity() { this._primaryUserAssignedIdentity = undefined; } // Temporarily expose input value. Use with caution. get primaryUserAssignedIdentityInput() { return this._primaryUserAssignedIdentity; } get publicAccessBehindVirtualNetworkEnabled() { return this.getBooleanAttribute('public_access_behind_virtual_network_enabled'); } set publicAccessBehindVirtualNetworkEnabled(value) { this._publicAccessBehindVirtualNetworkEnabled = value; } resetPublicAccessBehindVirtualNetworkEnabled() { this._publicAccessBehindVirtualNetworkEnabled = undefined; } // Temporarily expose input value. Use with caution. get publicAccessBehindVirtualNetworkEnabledInput() { return this._publicAccessBehindVirtualNetworkEnabled; } get publicNetworkAccessEnabled() { return this.getBooleanAttribute('public_network_access_enabled'); } set publicNetworkAccessEnabled(value) { this._publicNetworkAccessEnabled = value; } resetPublicNetworkAccessEnabled() { this._publicNetworkAccessEnabled = undefined; } // Temporarily expose input value. Use with caution. get publicNetworkAccessEnabledInput() { return this._publicNetworkAccessEnabled; } 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 skuName() { return this.getStringAttribute('sku_name'); } set skuName(value) { this._skuName = value; } resetSkuName() { this._skuName = undefined; } // Temporarily expose input value. Use with caution. get skuNameInput() { return this._skuName; } get storageAccountId() { return this.getStringAttribute('storage_account_id'); } set storageAccountId(value) { this._storageAccountId = value; } // Temporarily expose input value. Use with caution. get storageAccountIdInput() { return this._storageAccountId; } 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 v1LegacyModeEnabled() { return this.getBooleanAttribute('v1_legacy_mode_enabled'); } set v1LegacyModeEnabled(value) { this._v1LegacyModeEnabled = value; } resetV1LegacyModeEnabled() { this._v1LegacyModeEnabled = undefined; } // Temporarily expose input value. Use with caution. get v1LegacyModeEnabledInput() { return this._v1LegacyModeEnabled; } // workspace_id - computed: true, optional: false, required: false get workspaceId() { return this.getStringAttribute('workspace_id'); } 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 featureStore() { return this._featureStore; } putFeatureStore(value) { this._featureStore.internalValue = value; } resetFeatureStore() { this._featureStore.internalValue = undefined; } // Temporarily expose input value. Use with caution. get featureStoreInput() { return this._featureStore.internalValue; } get identity() { return this._identity; } putIdentity(value) { this._identity.internalValue = value; } // Temporarily expose input value. Use with caution. get identityInput() { return this._identity.internalValue; } get managedNetwork() { return this._managedNetwork; } putManagedNetwork(value) { this._managedNetwork.internalValue = value; } resetManagedNetwork() { this._managedNetwork.internalValue = undefined; } // Temporarily expose input value. Use with caution. get managedNetworkInput() { return this._managedNetwork.internalValue; } get serverlessCompute() { return this._serverlessCompute; } putServerlessCompute(value) { this._serverlessCompute.internalValue = value; } resetServerlessCompute() { this._serverlessCompute.internalValue = undefined; } // Temporarily expose input value. Use with caution. get serverlessComputeInput() { return this._serverlessCompute.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 { application_insights_id: cdktf.stringToTerraform(this._applicationInsightsId), container_registry_id: cdktf.stringToTerraform(this._containerRegistryId), description: cdktf.stringToTerraform(this._description), friendly_name: cdktf.stringToTerraform(this._friendlyName), high_business_impact: cdktf.booleanToTerraform(this._highBusinessImpact), id: cdktf.stringToTerraform(this._id), image_build_compute_name: cdktf.stringToTerraform(this._imageBuildComputeName), key_vault_id: cdktf.stringToTerraform(this._keyVaultId), kind: cdktf.stringToTerraform(this._kind), location: cdktf.stringToTerraform(this._location), name: cdktf.stringToTerraform(this._name), primary_user_assigned_identity: cdktf.stringToTerraform(this._primaryUserAssignedIdentity), public_access_behind_virtual_network_enabled: cdktf.booleanToTerraform(this._publicAccessBehindVirtualNetworkEnabled), public_network_access_enabled: cdktf.booleanToTerraform(this._publicNetworkAccessEnabled), resource_group_name: cdktf.stringToTerraform(this._resourceGroupName), sku_name: cdktf.stringToTerraform(this._skuName), storage_account_id: cdktf.stringToTerraform(this._storageAccountId), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), v1_legacy_mode_enabled: cdktf.booleanToTerraform(this._v1LegacyModeEnabled), encryption: machineLearningWorkspaceEncryptionToTerraform(this._encryption.internalValue), feature_store: machineLearningWorkspaceFeatureStoreToTerraform(this._featureStore.internalValue), identity: machineLearningWorkspaceIdentityToTerraform(this._identity.internalValue), managed_network: machineLearningWorkspaceManagedNetworkToTerraform(this._managedNetwork.internalValue), serverless_compute: machineLearningWorkspaceServerlessComputeToTerraform(this._serverlessCompute.internalValue), timeouts: machineLearningWorkspaceTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { application_insights_id: { value: cdktf.stringToHclTerraform(this._applicationInsightsId), isBlock: false, type: "simple", storageClassType: "string", }, container_registry_id: { value: cdktf.stringToHclTerraform(this._containerRegistryId), isBlock: false, type: "simple", storageClassType: "string", }, description: { value: cdktf.stringToHclTerraform(this._description), isBlock: false, type: "simple", storageClassType: "string", }, friendly_name: { value: cdktf.stringToHclTerraform(this._friendlyName), isBlock: false, type: "simple", storageClassType: "string", }, high_business_impact: { value: cdktf.booleanToHclTerraform(this._highBusinessImpact), isBlock: false, type: "simple", storageClassType: "boolean", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, image_build_compute_name: { value: cdktf.stringToHclTerraform(this._imageBuildComputeName), isBlock: false, type: "simple", storageClassType: "string", }, key_vault_id: { value: cdktf.stringToHclTerraform(this._keyVaultId), isBlock: false, type: "simple", storageClassType: "string", }, kind: { value: cdktf.stringToHclTerraform(this._kind), 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", }, primary_user_assigned_identity: { value: cdktf.stringToHclTerraform(this._primaryUserAssignedIdentity), isBlock: false, type: "simple", storageClassType: "string", }, public_access_behind_virtual_network_enabled: { value: cdktf.booleanToHclTerraform(this._publicAccessBehindVirtualNetworkEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, public_network_access_enabled: { value: cdktf.booleanToHclTerraform(this._publicNetworkAccessEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, resource_group_name: { value: cdktf.stringToHclTerraform(this._resourceGroupName), isBlock: false, type: "simple", storageClassType: "string", }, sku_name: { value: cdktf.stringToHclTerraform(this._skuName), isBlock: false, type: "simple", storageClassType: "string", }, storage_account_id: { value: cdktf.stringToHclTerraform(this._storageAccountId), isBlock: false, type: "simple", storageClassType: "string", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, v1_legacy_mode_enabled: { value: cdktf.booleanToHclTerraform(this._v1LegacyModeEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, encryption: { value: machineLearningWorkspaceEncryptionToHclTerraform(this._encryp