UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,147 lines 162 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.MetastoreDataAccess = exports.MetastoreDataAccessGcpServiceAccountKeyOutputReference = exports.MetastoreDataAccessDatabricksGcpServiceAccountOutputReference = exports.MetastoreDataAccessCloudflareApiTokenOutputReference = exports.MetastoreDataAccessAzureServicePrincipalOutputReference = exports.MetastoreDataAccessAzureManagedIdentityOutputReference = exports.MetastoreDataAccessAwsIamRoleOutputReference = void 0; exports.metastoreDataAccessAwsIamRoleToTerraform = metastoreDataAccessAwsIamRoleToTerraform; exports.metastoreDataAccessAwsIamRoleToHclTerraform = metastoreDataAccessAwsIamRoleToHclTerraform; exports.metastoreDataAccessAzureManagedIdentityToTerraform = metastoreDataAccessAzureManagedIdentityToTerraform; exports.metastoreDataAccessAzureManagedIdentityToHclTerraform = metastoreDataAccessAzureManagedIdentityToHclTerraform; exports.metastoreDataAccessAzureServicePrincipalToTerraform = metastoreDataAccessAzureServicePrincipalToTerraform; exports.metastoreDataAccessAzureServicePrincipalToHclTerraform = metastoreDataAccessAzureServicePrincipalToHclTerraform; exports.metastoreDataAccessCloudflareApiTokenToTerraform = metastoreDataAccessCloudflareApiTokenToTerraform; exports.metastoreDataAccessCloudflareApiTokenToHclTerraform = metastoreDataAccessCloudflareApiTokenToHclTerraform; exports.metastoreDataAccessDatabricksGcpServiceAccountToTerraform = metastoreDataAccessDatabricksGcpServiceAccountToTerraform; exports.metastoreDataAccessDatabricksGcpServiceAccountToHclTerraform = metastoreDataAccessDatabricksGcpServiceAccountToHclTerraform; exports.metastoreDataAccessGcpServiceAccountKeyToTerraform = metastoreDataAccessGcpServiceAccountKeyToTerraform; exports.metastoreDataAccessGcpServiceAccountKeyToHclTerraform = metastoreDataAccessGcpServiceAccountKeyToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function metastoreDataAccessAwsIamRoleToTerraform(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 { external_id: cdktf.stringToTerraform(struct.externalId), role_arn: cdktf.stringToTerraform(struct.roleArn), unity_catalog_iam_arn: cdktf.stringToTerraform(struct.unityCatalogIamArn), }; } function metastoreDataAccessAwsIamRoleToHclTerraform(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 = { external_id: { value: cdktf.stringToHclTerraform(struct.externalId), isBlock: false, type: "simple", storageClassType: "string", }, role_arn: { value: cdktf.stringToHclTerraform(struct.roleArn), isBlock: false, type: "simple", storageClassType: "string", }, unity_catalog_iam_arn: { value: cdktf.stringToHclTerraform(struct.unityCatalogIamArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MetastoreDataAccessAwsIamRoleOutputReference 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._externalId !== undefined) { hasAnyValues = true; internalValueResult.externalId = this._externalId; } if (this._roleArn !== undefined) { hasAnyValues = true; internalValueResult.roleArn = this._roleArn; } if (this._unityCatalogIamArn !== undefined) { hasAnyValues = true; internalValueResult.unityCatalogIamArn = this._unityCatalogIamArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._externalId = undefined; this._roleArn = undefined; this._unityCatalogIamArn = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._externalId = value.externalId; this._roleArn = value.roleArn; this._unityCatalogIamArn = value.unityCatalogIamArn; } } get externalId() { return this.getStringAttribute('external_id'); } set externalId(value) { this._externalId = value; } resetExternalId() { this._externalId = undefined; } // Temporarily expose input value. Use with caution. get externalIdInput() { return this._externalId; } get roleArn() { return this.getStringAttribute('role_arn'); } set roleArn(value) { this._roleArn = value; } // Temporarily expose input value. Use with caution. get roleArnInput() { return this._roleArn; } get unityCatalogIamArn() { return this.getStringAttribute('unity_catalog_iam_arn'); } set unityCatalogIamArn(value) { this._unityCatalogIamArn = value; } resetUnityCatalogIamArn() { this._unityCatalogIamArn = undefined; } // Temporarily expose input value. Use with caution. get unityCatalogIamArnInput() { return this._unityCatalogIamArn; } } exports.MetastoreDataAccessAwsIamRoleOutputReference = MetastoreDataAccessAwsIamRoleOutputReference; _a = JSII_RTTI_SYMBOL_1; MetastoreDataAccessAwsIamRoleOutputReference[_a] = { fqn: "@cdktf/provider-databricks.metastoreDataAccess.MetastoreDataAccessAwsIamRoleOutputReference", version: "15.7.0" }; function metastoreDataAccessAzureManagedIdentityToTerraform(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 { access_connector_id: cdktf.stringToTerraform(struct.accessConnectorId), credential_id: cdktf.stringToTerraform(struct.credentialId), managed_identity_id: cdktf.stringToTerraform(struct.managedIdentityId), }; } function metastoreDataAccessAzureManagedIdentityToHclTerraform(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 = { access_connector_id: { value: cdktf.stringToHclTerraform(struct.accessConnectorId), isBlock: false, type: "simple", storageClassType: "string", }, credential_id: { value: cdktf.stringToHclTerraform(struct.credentialId), isBlock: false, type: "simple", storageClassType: "string", }, managed_identity_id: { value: cdktf.stringToHclTerraform(struct.managedIdentityId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MetastoreDataAccessAzureManagedIdentityOutputReference 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._accessConnectorId !== undefined) { hasAnyValues = true; internalValueResult.accessConnectorId = this._accessConnectorId; } if (this._credentialId !== undefined) { hasAnyValues = true; internalValueResult.credentialId = this._credentialId; } if (this._managedIdentityId !== undefined) { hasAnyValues = true; internalValueResult.managedIdentityId = this._managedIdentityId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._accessConnectorId = undefined; this._credentialId = undefined; this._managedIdentityId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._accessConnectorId = value.accessConnectorId; this._credentialId = value.credentialId; this._managedIdentityId = value.managedIdentityId; } } get accessConnectorId() { return this.getStringAttribute('access_connector_id'); } set accessConnectorId(value) { this._accessConnectorId = value; } // Temporarily expose input value. Use with caution. get accessConnectorIdInput() { return this._accessConnectorId; } get credentialId() { return this.getStringAttribute('credential_id'); } set credentialId(value) { this._credentialId = value; } resetCredentialId() { this._credentialId = undefined; } // Temporarily expose input value. Use with caution. get credentialIdInput() { return this._credentialId; } get managedIdentityId() { return this.getStringAttribute('managed_identity_id'); } set managedIdentityId(value) { this._managedIdentityId = value; } resetManagedIdentityId() { this._managedIdentityId = undefined; } // Temporarily expose input value. Use with caution. get managedIdentityIdInput() { return this._managedIdentityId; } } exports.MetastoreDataAccessAzureManagedIdentityOutputReference = MetastoreDataAccessAzureManagedIdentityOutputReference; _b = JSII_RTTI_SYMBOL_1; MetastoreDataAccessAzureManagedIdentityOutputReference[_b] = { fqn: "@cdktf/provider-databricks.metastoreDataAccess.MetastoreDataAccessAzureManagedIdentityOutputReference", version: "15.7.0" }; function metastoreDataAccessAzureServicePrincipalToTerraform(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 { application_id: cdktf.stringToTerraform(struct.applicationId), client_secret: cdktf.stringToTerraform(struct.clientSecret), directory_id: cdktf.stringToTerraform(struct.directoryId), }; } function metastoreDataAccessAzureServicePrincipalToHclTerraform(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 = { application_id: { value: cdktf.stringToHclTerraform(struct.applicationId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret: { value: cdktf.stringToHclTerraform(struct.clientSecret), isBlock: false, type: "simple", storageClassType: "string", }, directory_id: { value: cdktf.stringToHclTerraform(struct.directoryId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MetastoreDataAccessAzureServicePrincipalOutputReference 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._applicationId !== undefined) { hasAnyValues = true; internalValueResult.applicationId = this._applicationId; } if (this._clientSecret !== undefined) { hasAnyValues = true; internalValueResult.clientSecret = this._clientSecret; } if (this._directoryId !== undefined) { hasAnyValues = true; internalValueResult.directoryId = this._directoryId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._applicationId = undefined; this._clientSecret = undefined; this._directoryId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._applicationId = value.applicationId; this._clientSecret = value.clientSecret; this._directoryId = value.directoryId; } } get applicationId() { return this.getStringAttribute('application_id'); } set applicationId(value) { this._applicationId = value; } // Temporarily expose input value. Use with caution. get applicationIdInput() { return this._applicationId; } get clientSecret() { return this.getStringAttribute('client_secret'); } set clientSecret(value) { this._clientSecret = value; } // Temporarily expose input value. Use with caution. get clientSecretInput() { return this._clientSecret; } get directoryId() { return this.getStringAttribute('directory_id'); } set directoryId(value) { this._directoryId = value; } // Temporarily expose input value. Use with caution. get directoryIdInput() { return this._directoryId; } } exports.MetastoreDataAccessAzureServicePrincipalOutputReference = MetastoreDataAccessAzureServicePrincipalOutputReference; _c = JSII_RTTI_SYMBOL_1; MetastoreDataAccessAzureServicePrincipalOutputReference[_c] = { fqn: "@cdktf/provider-databricks.metastoreDataAccess.MetastoreDataAccessAzureServicePrincipalOutputReference", version: "15.7.0" }; function metastoreDataAccessCloudflareApiTokenToTerraform(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 { access_key_id: cdktf.stringToTerraform(struct.accessKeyId), account_id: cdktf.stringToTerraform(struct.accountId), secret_access_key: cdktf.stringToTerraform(struct.secretAccessKey), }; } function metastoreDataAccessCloudflareApiTokenToHclTerraform(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 = { access_key_id: { value: cdktf.stringToHclTerraform(struct.accessKeyId), isBlock: false, type: "simple", storageClassType: "string", }, account_id: { value: cdktf.stringToHclTerraform(struct.accountId), isBlock: false, type: "simple", storageClassType: "string", }, secret_access_key: { value: cdktf.stringToHclTerraform(struct.secretAccessKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MetastoreDataAccessCloudflareApiTokenOutputReference 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._accessKeyId !== undefined) { hasAnyValues = true; internalValueResult.accessKeyId = this._accessKeyId; } if (this._accountId !== undefined) { hasAnyValues = true; internalValueResult.accountId = this._accountId; } if (this._secretAccessKey !== undefined) { hasAnyValues = true; internalValueResult.secretAccessKey = this._secretAccessKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._accessKeyId = undefined; this._accountId = undefined; this._secretAccessKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._accessKeyId = value.accessKeyId; this._accountId = value.accountId; this._secretAccessKey = value.secretAccessKey; } } get accessKeyId() { return this.getStringAttribute('access_key_id'); } set accessKeyId(value) { this._accessKeyId = value; } // Temporarily expose input value. Use with caution. get accessKeyIdInput() { return this._accessKeyId; } get accountId() { return this.getStringAttribute('account_id'); } set accountId(value) { this._accountId = value; } // Temporarily expose input value. Use with caution. get accountIdInput() { return this._accountId; } get secretAccessKey() { return this.getStringAttribute('secret_access_key'); } set secretAccessKey(value) { this._secretAccessKey = value; } // Temporarily expose input value. Use with caution. get secretAccessKeyInput() { return this._secretAccessKey; } } exports.MetastoreDataAccessCloudflareApiTokenOutputReference = MetastoreDataAccessCloudflareApiTokenOutputReference; _d = JSII_RTTI_SYMBOL_1; MetastoreDataAccessCloudflareApiTokenOutputReference[_d] = { fqn: "@cdktf/provider-databricks.metastoreDataAccess.MetastoreDataAccessCloudflareApiTokenOutputReference", version: "15.7.0" }; function metastoreDataAccessDatabricksGcpServiceAccountToTerraform(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 { credential_id: cdktf.stringToTerraform(struct.credentialId), email: cdktf.stringToTerraform(struct.email), }; } function metastoreDataAccessDatabricksGcpServiceAccountToHclTerraform(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 = { credential_id: { value: cdktf.stringToHclTerraform(struct.credentialId), isBlock: false, type: "simple", storageClassType: "string", }, email: { value: cdktf.stringToHclTerraform(struct.email), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MetastoreDataAccessDatabricksGcpServiceAccountOutputReference 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._credentialId !== undefined) { hasAnyValues = true; internalValueResult.credentialId = this._credentialId; } if (this._email !== undefined) { hasAnyValues = true; internalValueResult.email = this._email; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._credentialId = undefined; this._email = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._credentialId = value.credentialId; this._email = value.email; } } get credentialId() { return this.getStringAttribute('credential_id'); } set credentialId(value) { this._credentialId = value; } resetCredentialId() { this._credentialId = undefined; } // Temporarily expose input value. Use with caution. get credentialIdInput() { return this._credentialId; } get email() { return this.getStringAttribute('email'); } set email(value) { this._email = value; } resetEmail() { this._email = undefined; } // Temporarily expose input value. Use with caution. get emailInput() { return this._email; } } exports.MetastoreDataAccessDatabricksGcpServiceAccountOutputReference = MetastoreDataAccessDatabricksGcpServiceAccountOutputReference; _e = JSII_RTTI_SYMBOL_1; MetastoreDataAccessDatabricksGcpServiceAccountOutputReference[_e] = { fqn: "@cdktf/provider-databricks.metastoreDataAccess.MetastoreDataAccessDatabricksGcpServiceAccountOutputReference", version: "15.7.0" }; function metastoreDataAccessGcpServiceAccountKeyToTerraform(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 { email: cdktf.stringToTerraform(struct.email), private_key: cdktf.stringToTerraform(struct.privateKey), private_key_id: cdktf.stringToTerraform(struct.privateKeyId), }; } function metastoreDataAccessGcpServiceAccountKeyToHclTerraform(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 = { email: { value: cdktf.stringToHclTerraform(struct.email), isBlock: false, type: "simple", storageClassType: "string", }, private_key: { value: cdktf.stringToHclTerraform(struct.privateKey), isBlock: false, type: "simple", storageClassType: "string", }, private_key_id: { value: cdktf.stringToHclTerraform(struct.privateKeyId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MetastoreDataAccessGcpServiceAccountKeyOutputReference 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._email !== undefined) { hasAnyValues = true; internalValueResult.email = this._email; } if (this._privateKey !== undefined) { hasAnyValues = true; internalValueResult.privateKey = this._privateKey; } if (this._privateKeyId !== undefined) { hasAnyValues = true; internalValueResult.privateKeyId = this._privateKeyId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._email = undefined; this._privateKey = undefined; this._privateKeyId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._email = value.email; this._privateKey = value.privateKey; this._privateKeyId = value.privateKeyId; } } get email() { return this.getStringAttribute('email'); } set email(value) { this._email = value; } // Temporarily expose input value. Use with caution. get emailInput() { return this._email; } get privateKey() { return this.getStringAttribute('private_key'); } set privateKey(value) { this._privateKey = value; } // Temporarily expose input value. Use with caution. get privateKeyInput() { return this._privateKey; } get privateKeyId() { return this.getStringAttribute('private_key_id'); } set privateKeyId(value) { this._privateKeyId = value; } // Temporarily expose input value. Use with caution. get privateKeyIdInput() { return this._privateKeyId; } } exports.MetastoreDataAccessGcpServiceAccountKeyOutputReference = MetastoreDataAccessGcpServiceAccountKeyOutputReference; _f = JSII_RTTI_SYMBOL_1; MetastoreDataAccessGcpServiceAccountKeyOutputReference[_f] = { fqn: "@cdktf/provider-databricks.metastoreDataAccess.MetastoreDataAccessGcpServiceAccountKeyOutputReference", version: "15.7.0" }; /** * Represents a {@link https://registry.terraform.io/providers/databricks/databricks/1.90.0/docs/resources/metastore_data_access databricks_metastore_data_access} */ class MetastoreDataAccess extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a MetastoreDataAccess 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 MetastoreDataAccess to import * @param importFromId The id of the existing MetastoreDataAccess that should be imported. Refer to the {@link https://registry.terraform.io/providers/databricks/databricks/1.90.0/docs/resources/metastore_data_access#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MetastoreDataAccess to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "databricks_metastore_data_access", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/databricks/databricks/1.90.0/docs/resources/metastore_data_access databricks_metastore_data_access} 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 MetastoreDataAccessConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'databricks_metastore_data_access', terraformGeneratorMetadata: { providerName: 'databricks', providerVersion: '1.90.0', providerVersionConstraint: '~> 1.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // aws_iam_role - computed: false, optional: true, required: false this._awsIamRole = new MetastoreDataAccessAwsIamRoleOutputReference(this, "aws_iam_role"); // azure_managed_identity - computed: false, optional: true, required: false this._azureManagedIdentity = new MetastoreDataAccessAzureManagedIdentityOutputReference(this, "azure_managed_identity"); // azure_service_principal - computed: false, optional: true, required: false this._azureServicePrincipal = new MetastoreDataAccessAzureServicePrincipalOutputReference(this, "azure_service_principal"); // cloudflare_api_token - computed: false, optional: true, required: false this._cloudflareApiToken = new MetastoreDataAccessCloudflareApiTokenOutputReference(this, "cloudflare_api_token"); // databricks_gcp_service_account - computed: false, optional: true, required: false this._databricksGcpServiceAccount = new MetastoreDataAccessDatabricksGcpServiceAccountOutputReference(this, "databricks_gcp_service_account"); // gcp_service_account_key - computed: false, optional: true, required: false this._gcpServiceAccountKey = new MetastoreDataAccessGcpServiceAccountKeyOutputReference(this, "gcp_service_account_key"); this._comment = config.comment; this._forceDestroy = config.forceDestroy; this._forceUpdate = config.forceUpdate; this._id = config.id; this._isDefault = config.isDefault; this._isolationMode = config.isolationMode; this._metastoreId = config.metastoreId; this._name = config.name; this._owner = config.owner; this._readOnly = config.readOnly; this._skipValidation = config.skipValidation; this._awsIamRole.internalValue = config.awsIamRole; this._azureManagedIdentity.internalValue = config.azureManagedIdentity; this._azureServicePrincipal.internalValue = config.azureServicePrincipal; this._cloudflareApiToken.internalValue = config.cloudflareApiToken; this._databricksGcpServiceAccount.internalValue = config.databricksGcpServiceAccount; this._gcpServiceAccountKey.internalValue = config.gcpServiceAccountKey; } get comment() { return this.getStringAttribute('comment'); } set comment(value) { this._comment = value; } resetComment() { this._comment = undefined; } // Temporarily expose input value. Use with caution. get commentInput() { return this._comment; } get forceDestroy() { return this.getBooleanAttribute('force_destroy'); } set forceDestroy(value) { this._forceDestroy = value; } resetForceDestroy() { this._forceDestroy = undefined; } // Temporarily expose input value. Use with caution. get forceDestroyInput() { return this._forceDestroy; } get forceUpdate() { return this.getBooleanAttribute('force_update'); } set forceUpdate(value) { this._forceUpdate = value; } resetForceUpdate() { this._forceUpdate = undefined; } // Temporarily expose input value. Use with caution. get forceUpdateInput() { return this._forceUpdate; } 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 isDefault() { return this.getBooleanAttribute('is_default'); } set isDefault(value) { this._isDefault = value; } resetIsDefault() { this._isDefault = undefined; } // Temporarily expose input value. Use with caution. get isDefaultInput() { return this._isDefault; } 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; } get metastoreId() { return this.getStringAttribute('metastore_id'); } set metastoreId(value) { this._metastoreId = value; } resetMetastoreId() { this._metastoreId = undefined; } // Temporarily expose input value. Use with caution. get metastoreIdInput() { return this._metastoreId; } 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 owner() { return this.getStringAttribute('owner'); } set owner(value) { this._owner = value; } resetOwner() { this._owner = undefined; } // Temporarily expose input value. Use with caution. get ownerInput() { return this._owner; } get readOnly() { return this.getBooleanAttribute('read_only'); } set readOnly(value) { this._readOnly = value; } resetReadOnly() { this._readOnly = undefined; } // Temporarily expose input value. Use with caution. get readOnlyInput() { return this._readOnly; } get skipValidation() { return this.getBooleanAttribute('skip_validation'); } set skipValidation(value) { this._skipValidation = value; } resetSkipValidation() { this._skipValidation = undefined; } // Temporarily expose input value. Use with caution. get skipValidationInput() { return this._skipValidation; } get awsIamRole() { return this._awsIamRole; } putAwsIamRole(value) { this._awsIamRole.internalValue = value; } resetAwsIamRole() { this._awsIamRole.internalValue = undefined; } // Temporarily expose input value. Use with caution. get awsIamRoleInput() { return this._awsIamRole.internalValue; } get azureManagedIdentity() { return this._azureManagedIdentity; } putAzureManagedIdentity(value) { this._azureManagedIdentity.internalValue = value; } resetAzureManagedIdentity() { this._azureManagedIdentity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get azureManagedIdentityInput() { return this._azureManagedIdentity.internalValue; } get azureServicePrincipal() { return this._azureServicePrincipal; } putAzureServicePrincipal(value) { this._azureServicePrincipal.internalValue = value; } resetAzureServicePrincipal() { this._azureServicePrincipal.internalValue = undefined; } // Temporarily expose input value. Use with caution. get azureServicePrincipalInput() { return this._azureServicePrincipal.internalValue; } get cloudflareApiToken() { return this._cloudflareApiToken; } putCloudflareApiToken(value) { this._cloudflareApiToken.internalValue = value; } resetCloudflareApiToken() { this._cloudflareApiToken.internalValue = undefined; } // Temporarily expose input value. Use with caution. get cloudflareApiTokenInput() { return this._cloudflareApiToken.internalValue; } get databricksGcpServiceAccount() { return this._databricksGcpServiceAccount; } putDatabricksGcpServiceAccount(value) { this._databricksGcpServiceAccount.internalValue = value; } resetDatabricksGcpServiceAccount() { this._databricksGcpServiceAccount.internalValue = undefined; } // Temporarily expose input value. Use with caution. get databricksGcpServiceAccountInput() { return this._databricksGcpServiceAccount.internalValue; } get gcpServiceAccountKey() { return this._gcpServiceAccountKey; } putGcpServiceAccountKey(value) { this._gcpServiceAccountKey.internalValue = value; } resetGcpServiceAccountKey() { this._gcpServiceAccountKey.internalValue = undefined; } // Temporarily expose input value. Use with caution. get gcpServiceAccountKeyInput() { return this._gcpServiceAccountKey.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { comment: cdktf.stringToTerraform(this._comment), force_destroy: cdktf.booleanToTerraform(this._forceDestroy), force_update: cdktf.booleanToTerraform(this._forceUpdate), id: cdktf.stringToTerraform(this._id), is_default: cdktf.booleanToTerraform(this._isDefault), isolation_mode: cdktf.stringToTerraform(this._isolationMode), metastore_id: cdktf.stringToTerraform(this._metastoreId), name: cdktf.stringToTerraform(this._name), owner: cdktf.stringToTerraform(this._owner), read_only: cdktf.booleanToTerraform(this._readOnly), skip_validation: cdktf.booleanToTerraform(this._skipValidation), aws_iam_role: metastoreDataAccessAwsIamRoleToTerraform(this._awsIamRole.internalValue), azure_managed_identity: metastoreDataAccessAzureManagedIdentityToTerraform(this._azureManagedIdentity.internalValue), azure_service_principal: metastoreDataAccessAzureServicePrincipalToTerraform(this._azureServicePrincipal.internalValue), cloudflare_api_token: metastoreDataAccessCloudflareApiTokenToTerraform(this._cloudflareApiToken.internalValue), databricks_gcp_service_account: metastoreDataAccessDatabricksGcpServiceAccountToTerraform(this._databricksGcpServiceAccount.internalValue), gcp_service_account_key: metastoreDataAccessGcpServiceAccountKeyToTerraform(this._gcpServiceAccountKey.internalValue), }; } synthesizeHclAttributes() { const attrs = { comment: { value: cdktf.stringToHclTerraform(this._comment), isBlock: false, type: "simple", storageClassType: "string", }, force_destroy: { value: cdktf.booleanToHclTerraform(this._forceDestroy), isBlock: false, type: "simple", storageClassType: "boolean", }, force_update: { value: cdktf.booleanToHclTerraform(this._forceUpdate), isBlock: false, type: "simple", storageClassType: "boolean", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, is_default: { value: cdktf.booleanToHclTerraform(this._isDefault), isBlock: false, type: "simple", storageClassType: "boolean", }, isolation_mode: { value: cdktf.stringToHclTerraform(this._isolationMode), isBlock: false, type: "simple", storageClassType: "string", }, metastore_id: { value: cdktf.stringToHclTerraform(this._metastoreId), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, owner: { value: cdktf.stringToHclTerraform(this._owner), isBlock: false, type: "simple", storageClassType: "string", }, read_only: { value: cdktf.booleanToHclTerraform(this._readOnly), isBlock: false, type: "simple", storageClassType: "boolean", }, skip_validation: { value: cdktf.booleanToHclTerraform(this._skipValidation), isBlock: false, type: "simple", storageClassType: "boolean", }, aws_iam_role: { value: metastoreDataAccessAwsIamRoleToHclTerraform(this._awsIamRole.internalValue), isBlock: true, type: "list", storageClassType: "MetastoreDataAccessAwsIamRoleList", }, azure_managed_identity: { value: metastoreDataAccessAzureManagedIdentityToHclTerraform(this._azureManagedIdentity.internalValue), isBlock: true, type: "list", storageClassType: "MetastoreDataAccessAzureManagedIdentityList", }, azure_service_principal: { value: metastoreDataAccessAzureServicePrincipalToHclTerraform(this._azureServicePrincipal.internalValue), isBlock: true, type: "list", storageClassType: "MetastoreDataAccessAzureServicePrincipalList", }, cloudflare_api_token: { value: metastoreDataAccessCloudflareApiTokenToHclTerraform(this._cloudflareApiToken.internalValue), isBlock: true, type: "list", storageClassType: "MetastoreDataAccessCloudflareApiTokenList", }, databricks_gcp_service_account: { value: metastoreDataAccessDatabricksGcpServiceAccountToHclTerraform(this._databricksGcpServiceAccount.internalValue), isBlock: true, type: "list", storageClassType: "MetastoreDataAccessDatabricksGcpServiceAccountList", }, gcp_service_account_key: { value: metastoreDataAccessGcpServiceAccountKeyToHclTerraform(this._gcpServiceAccountKey.internalValue), isBlock: true, type: "list", storageClassType: "MetastoreDataAccessGcpServiceAccountKeyList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.MetastoreDataAccess = MetastoreDataAccess; _g = JSII_RTTI_SYMBOL_1; MetastoreDataAccess[_g] = { fqn: "@cdktf/provider-databricks.metastoreDataAccess.MetastoreDataAccess", version: "15.7.0" }; // ================= // STATIC PROPERTIES // ================= MetastoreDataAccess.tfResourceType = "databricks_metastore_data_access"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWV0YXN0b3JlLWRhdGEtYWNjZXNzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFpSEEsNEZBVUM7QUFHRCxrR0E0QkM7QUEwR0QsZ0hBVUM7QUFHRCxzSEE0QkM7QUEwR0Qsa0hBVUM7QUFHRCx3SEE0QkM7QUFvR0QsNEdBVUM7QUFHRCxrSEE0QkM7QUFnR0QsOEhBU0M7QUFHRCxvSUFzQkM7QUF1RkQsZ0hBVUM7QUFHRCxzSEE0QkM7O0FBdDBCRCwrQkFBK0I7QUF3Ry9CLFNBQWdCLHdDQUF3QyxDQUFDLE1BQXFGO0lBQzVJLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE9BQU87UUFDTCxXQUFXLEVBQUUsS0FBSyxDQUFDLGlCQUFpQixDQUFDLE1BQU8sQ0FBQyxVQUFVLENBQUM7UUFDeEQsUUFBUSxFQUFFLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxNQ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