@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,006 lines (1,005 loc) • 177 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnlineTable = exports.OnlineTableTimeoutsOutputReference = exports.OnlineTableSpecOutputReference = exports.OnlineTableSpecRunTriggeredOutputReference = exports.OnlineTableSpecRunContinuouslyOutputReference = exports.OnlineTableStatusList = exports.OnlineTableStatusOutputReference = exports.OnlineTableStatusTriggeredUpdateStatusList = exports.OnlineTableStatusTriggeredUpdateStatusOutputReference = exports.OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressList = exports.OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressOutputReference = exports.OnlineTableStatusProvisioningStatusList = exports.OnlineTableStatusProvisioningStatusOutputReference = exports.OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressList = exports.OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressOutputReference = exports.OnlineTableStatusFailedStatusList = exports.OnlineTableStatusFailedStatusOutputReference = exports.OnlineTableStatusContinuousUpdateStatusList = exports.OnlineTableStatusContinuousUpdateStatusOutputReference = exports.OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressList = exports.OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressOutputReference = void 0;
exports.onlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressToTerraform = onlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressToTerraform;
exports.onlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressToHclTerraform = onlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressToHclTerraform;
exports.onlineTableStatusContinuousUpdateStatusToTerraform = onlineTableStatusContinuousUpdateStatusToTerraform;
exports.onlineTableStatusContinuousUpdateStatusToHclTerraform = onlineTableStatusContinuousUpdateStatusToHclTerraform;
exports.onlineTableStatusFailedStatusToTerraform = onlineTableStatusFailedStatusToTerraform;
exports.onlineTableStatusFailedStatusToHclTerraform = onlineTableStatusFailedStatusToHclTerraform;
exports.onlineTableStatusProvisioningStatusInitialPipelineSyncProgressToTerraform = onlineTableStatusProvisioningStatusInitialPipelineSyncProgressToTerraform;
exports.onlineTableStatusProvisioningStatusInitialPipelineSyncProgressToHclTerraform = onlineTableStatusProvisioningStatusInitialPipelineSyncProgressToHclTerraform;
exports.onlineTableStatusProvisioningStatusToTerraform = onlineTableStatusProvisioningStatusToTerraform;
exports.onlineTableStatusProvisioningStatusToHclTerraform = onlineTableStatusProvisioningStatusToHclTerraform;
exports.onlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressToTerraform = onlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressToTerraform;
exports.onlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressToHclTerraform = onlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressToHclTerraform;
exports.onlineTableStatusTriggeredUpdateStatusToTerraform = onlineTableStatusTriggeredUpdateStatusToTerraform;
exports.onlineTableStatusTriggeredUpdateStatusToHclTerraform = onlineTableStatusTriggeredUpdateStatusToHclTerraform;
exports.onlineTableStatusToTerraform = onlineTableStatusToTerraform;
exports.onlineTableStatusToHclTerraform = onlineTableStatusToHclTerraform;
exports.onlineTableSpecRunContinuouslyToTerraform = onlineTableSpecRunContinuouslyToTerraform;
exports.onlineTableSpecRunContinuouslyToHclTerraform = onlineTableSpecRunContinuouslyToHclTerraform;
exports.onlineTableSpecRunTriggeredToTerraform = onlineTableSpecRunTriggeredToTerraform;
exports.onlineTableSpecRunTriggeredToHclTerraform = onlineTableSpecRunTriggeredToHclTerraform;
exports.onlineTableSpecToTerraform = onlineTableSpecToTerraform;
exports.onlineTableSpecToHclTerraform = onlineTableSpecToHclTerraform;
exports.onlineTableTimeoutsToTerraform = onlineTableTimeoutsToTerraform;
exports.onlineTableTimeoutsToHclTerraform = onlineTableTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function onlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressToTerraform(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 {};
}
function onlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// estimated_completion_time_seconds - computed: true, optional: false, required: false
get estimatedCompletionTimeSeconds() {
return this.getNumberAttribute('estimated_completion_time_seconds');
}
// latest_version_currently_processing - computed: true, optional: false, required: false
get latestVersionCurrentlyProcessing() {
return this.getNumberAttribute('latest_version_currently_processing');
}
// sync_progress_completion - computed: true, optional: false, required: false
get syncProgressCompletion() {
return this.getNumberAttribute('sync_progress_completion');
}
// synced_row_count - computed: true, optional: false, required: false
get syncedRowCount() {
return this.getNumberAttribute('synced_row_count');
}
// total_row_count - computed: true, optional: false, required: false
get totalRowCount() {
return this.getNumberAttribute('total_row_count');
}
}
exports.OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressOutputReference = OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressOutputReference;
_a = JSII_RTTI_SYMBOL_1;
OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressOutputReference[_a] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressOutputReference", version: "15.3.1" };
class OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressList = OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressList;
_b = JSII_RTTI_SYMBOL_1;
OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressList[_b] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressList", version: "15.3.1" };
function onlineTableStatusContinuousUpdateStatusToTerraform(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 {};
}
function onlineTableStatusContinuousUpdateStatusToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusContinuousUpdateStatusOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// initial_pipeline_sync_progress - computed: true, optional: false, required: false
this._initialPipelineSyncProgress = new OnlineTableStatusContinuousUpdateStatusInitialPipelineSyncProgressList(this, "initial_pipeline_sync_progress", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get initialPipelineSyncProgress() {
return this._initialPipelineSyncProgress;
}
// last_processed_commit_version - computed: true, optional: false, required: false
get lastProcessedCommitVersion() {
return this.getNumberAttribute('last_processed_commit_version');
}
// timestamp - computed: true, optional: false, required: false
get timestamp() {
return this.getStringAttribute('timestamp');
}
}
exports.OnlineTableStatusContinuousUpdateStatusOutputReference = OnlineTableStatusContinuousUpdateStatusOutputReference;
_c = JSII_RTTI_SYMBOL_1;
OnlineTableStatusContinuousUpdateStatusOutputReference[_c] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusContinuousUpdateStatusOutputReference", version: "15.3.1" };
class OnlineTableStatusContinuousUpdateStatusList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusContinuousUpdateStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusContinuousUpdateStatusList = OnlineTableStatusContinuousUpdateStatusList;
_d = JSII_RTTI_SYMBOL_1;
OnlineTableStatusContinuousUpdateStatusList[_d] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusContinuousUpdateStatusList", version: "15.3.1" };
function onlineTableStatusFailedStatusToTerraform(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 {};
}
function onlineTableStatusFailedStatusToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusFailedStatusOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// last_processed_commit_version - computed: true, optional: false, required: false
get lastProcessedCommitVersion() {
return this.getNumberAttribute('last_processed_commit_version');
}
// timestamp - computed: true, optional: false, required: false
get timestamp() {
return this.getStringAttribute('timestamp');
}
}
exports.OnlineTableStatusFailedStatusOutputReference = OnlineTableStatusFailedStatusOutputReference;
_e = JSII_RTTI_SYMBOL_1;
OnlineTableStatusFailedStatusOutputReference[_e] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusFailedStatusOutputReference", version: "15.3.1" };
class OnlineTableStatusFailedStatusList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusFailedStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusFailedStatusList = OnlineTableStatusFailedStatusList;
_f = JSII_RTTI_SYMBOL_1;
OnlineTableStatusFailedStatusList[_f] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusFailedStatusList", version: "15.3.1" };
function onlineTableStatusProvisioningStatusInitialPipelineSyncProgressToTerraform(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 {};
}
function onlineTableStatusProvisioningStatusInitialPipelineSyncProgressToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// estimated_completion_time_seconds - computed: true, optional: false, required: false
get estimatedCompletionTimeSeconds() {
return this.getNumberAttribute('estimated_completion_time_seconds');
}
// latest_version_currently_processing - computed: true, optional: false, required: false
get latestVersionCurrentlyProcessing() {
return this.getNumberAttribute('latest_version_currently_processing');
}
// sync_progress_completion - computed: true, optional: false, required: false
get syncProgressCompletion() {
return this.getNumberAttribute('sync_progress_completion');
}
// synced_row_count - computed: true, optional: false, required: false
get syncedRowCount() {
return this.getNumberAttribute('synced_row_count');
}
// total_row_count - computed: true, optional: false, required: false
get totalRowCount() {
return this.getNumberAttribute('total_row_count');
}
}
exports.OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressOutputReference = OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressOutputReference;
_g = JSII_RTTI_SYMBOL_1;
OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressOutputReference[_g] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressOutputReference", version: "15.3.1" };
class OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressList = OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressList;
_h = JSII_RTTI_SYMBOL_1;
OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressList[_h] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressList", version: "15.3.1" };
function onlineTableStatusProvisioningStatusToTerraform(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 {};
}
function onlineTableStatusProvisioningStatusToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusProvisioningStatusOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// initial_pipeline_sync_progress - computed: true, optional: false, required: false
this._initialPipelineSyncProgress = new OnlineTableStatusProvisioningStatusInitialPipelineSyncProgressList(this, "initial_pipeline_sync_progress", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get initialPipelineSyncProgress() {
return this._initialPipelineSyncProgress;
}
}
exports.OnlineTableStatusProvisioningStatusOutputReference = OnlineTableStatusProvisioningStatusOutputReference;
_j = JSII_RTTI_SYMBOL_1;
OnlineTableStatusProvisioningStatusOutputReference[_j] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusProvisioningStatusOutputReference", version: "15.3.1" };
class OnlineTableStatusProvisioningStatusList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusProvisioningStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusProvisioningStatusList = OnlineTableStatusProvisioningStatusList;
_k = JSII_RTTI_SYMBOL_1;
OnlineTableStatusProvisioningStatusList[_k] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusProvisioningStatusList", version: "15.3.1" };
function onlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressToTerraform(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 {};
}
function onlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// estimated_completion_time_seconds - computed: true, optional: false, required: false
get estimatedCompletionTimeSeconds() {
return this.getNumberAttribute('estimated_completion_time_seconds');
}
// latest_version_currently_processing - computed: true, optional: false, required: false
get latestVersionCurrentlyProcessing() {
return this.getNumberAttribute('latest_version_currently_processing');
}
// sync_progress_completion - computed: true, optional: false, required: false
get syncProgressCompletion() {
return this.getNumberAttribute('sync_progress_completion');
}
// synced_row_count - computed: true, optional: false, required: false
get syncedRowCount() {
return this.getNumberAttribute('synced_row_count');
}
// total_row_count - computed: true, optional: false, required: false
get totalRowCount() {
return this.getNumberAttribute('total_row_count');
}
}
exports.OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressOutputReference = OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressOutputReference;
_l = JSII_RTTI_SYMBOL_1;
OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressOutputReference[_l] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressOutputReference", version: "15.3.1" };
class OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressList = OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressList;
_m = JSII_RTTI_SYMBOL_1;
OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressList[_m] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressList", version: "15.3.1" };
function onlineTableStatusTriggeredUpdateStatusToTerraform(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 {};
}
function onlineTableStatusTriggeredUpdateStatusToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusTriggeredUpdateStatusOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// triggered_update_progress - computed: true, optional: false, required: false
this._triggeredUpdateProgress = new OnlineTableStatusTriggeredUpdateStatusTriggeredUpdateProgressList(this, "triggered_update_progress", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// last_processed_commit_version - computed: true, optional: false, required: false
get lastProcessedCommitVersion() {
return this.getNumberAttribute('last_processed_commit_version');
}
// timestamp - computed: true, optional: false, required: false
get timestamp() {
return this.getStringAttribute('timestamp');
}
get triggeredUpdateProgress() {
return this._triggeredUpdateProgress;
}
}
exports.OnlineTableStatusTriggeredUpdateStatusOutputReference = OnlineTableStatusTriggeredUpdateStatusOutputReference;
_o = JSII_RTTI_SYMBOL_1;
OnlineTableStatusTriggeredUpdateStatusOutputReference[_o] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusTriggeredUpdateStatusOutputReference", version: "15.3.1" };
class OnlineTableStatusTriggeredUpdateStatusList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusTriggeredUpdateStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusTriggeredUpdateStatusList = OnlineTableStatusTriggeredUpdateStatusList;
_p = JSII_RTTI_SYMBOL_1;
OnlineTableStatusTriggeredUpdateStatusList[_p] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusTriggeredUpdateStatusList", version: "15.3.1" };
function onlineTableStatusToTerraform(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 {};
}
function onlineTableStatusToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableStatusOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
// continuous_update_status - computed: true, optional: false, required: false
this._continuousUpdateStatus = new OnlineTableStatusContinuousUpdateStatusList(this, "continuous_update_status", false);
// failed_status - computed: true, optional: false, required: false
this._failedStatus = new OnlineTableStatusFailedStatusList(this, "failed_status", false);
// provisioning_status - computed: true, optional: false, required: false
this._provisioningStatus = new OnlineTableStatusProvisioningStatusList(this, "provisioning_status", false);
// triggered_update_status - computed: true, optional: false, required: false
this._triggeredUpdateStatus = new OnlineTableStatusTriggeredUpdateStatusList(this, "triggered_update_status", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get continuousUpdateStatus() {
return this._continuousUpdateStatus;
}
// detailed_state - computed: true, optional: false, required: false
get detailedState() {
return this.getStringAttribute('detailed_state');
}
get failedStatus() {
return this._failedStatus;
}
// message - computed: true, optional: false, required: false
get message() {
return this.getStringAttribute('message');
}
get provisioningStatus() {
return this._provisioningStatus;
}
get triggeredUpdateStatus() {
return this._triggeredUpdateStatus;
}
}
exports.OnlineTableStatusOutputReference = OnlineTableStatusOutputReference;
_q = JSII_RTTI_SYMBOL_1;
OnlineTableStatusOutputReference[_q] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusOutputReference", version: "15.3.1" };
class OnlineTableStatusList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new OnlineTableStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OnlineTableStatusList = OnlineTableStatusList;
_r = JSII_RTTI_SYMBOL_1;
OnlineTableStatusList[_r] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableStatusList", version: "15.3.1" };
function onlineTableSpecRunContinuouslyToTerraform(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 {};
}
function onlineTableSpecRunContinuouslyToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableSpecRunContinuouslyOutputReference 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 = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
}
exports.OnlineTableSpecRunContinuouslyOutputReference = OnlineTableSpecRunContinuouslyOutputReference;
_s = JSII_RTTI_SYMBOL_1;
OnlineTableSpecRunContinuouslyOutputReference[_s] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableSpecRunContinuouslyOutputReference", version: "15.3.1" };
function onlineTableSpecRunTriggeredToTerraform(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 {};
}
function onlineTableSpecRunTriggeredToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class OnlineTableSpecRunTriggeredOutputReference 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 = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
}
exports.OnlineTableSpecRunTriggeredOutputReference = OnlineTableSpecRunTriggeredOutputReference;
_t = JSII_RTTI_SYMBOL_1;
OnlineTableSpecRunTriggeredOutputReference[_t] = { fqn: "@cdktf/provider-databricks.onlineTable.OnlineTableSpecRunTriggeredOutputReference", version: "15.3.1" };
function onlineTableSpecToTerraform(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 {
perform_full_copy: cdktf.booleanToTerraform(struct.performFullCopy),
primary_key_columns: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.primaryKeyColumns),
source_table_full_name: cdktf.stringToTerraform(struct.sourceTableFullName),
timeseries_key: cdktf.stringToTerraform(struct.timeseriesKey),
run_continuously: onlineTableSpecRunContinuouslyToTerraform(struct.runContinuously),
run_triggered: onlineTableSpecRunTriggeredToTerraform(struct.runTriggered),
};
}
function onlineTableSpecToHclTerraform(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 = {
perform_full_copy: {
value: cdktf.booleanToHclTerraform(struct.performFullCopy),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
primary_key_columns: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.primaryKeyColumns),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
source_table_full_name: {
value: cdktf.stringToHclTerraform(struct.sourceTableFullName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
timeseries_key: {
value: cdktf.stringToHclTerraform(struct.timeseriesKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
run_continuously: {
value: onlineTableSpecRunContinuouslyToHclTerraform(struct.runContinuously),
isBlock: true,
type: "list",
storageClassType: "OnlineTableSpecRunContinuouslyList",
},
run_triggered: {
value: onlineTableSpecRunTriggeredToHclTerraform(struct.runTriggered),
isBlock: true,
type: "list",
storageClassType: "OnlineTableSpecRunTriggeredList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class OnlineTableSpecOutputReference 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;
// run_continuously - computed: false, optional: true, required: false
this._runContinuously = new OnlineTableSpecRunContinuouslyOutputReference(this, "run_continuously");
// run_triggered - computed: false, optional: true, required: false
this._runTriggered = new OnlineTableSpecRunTriggeredOutputReference(this, "run_triggered");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._performFullCopy !== undefined) {
hasAnyValues = true;
internalValueResult.performFullCopy = this._performFullCopy;
}
if (this._primaryKeyColumns !== undefined) {
hasAnyValues = true;
internalValueResult.primaryKeyColumns = this._primaryKeyColumns;
}
if (this._sourceTableFullName !== undefined) {
hasAnyValues = true;
internalValueResult.sourceTableFullName = this._sourceTableFullName;
}
if (this._timeseriesKey !== undefined) {
hasAnyValues = true;
internalValueResult.timeseriesKey = this._timeseriesKey;
}
if (this._runContinuously?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.runContinuously = this._runContinuously?.internalValue;
}
if (this._runTriggered?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.runTriggered = this._runTriggered?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._performFullCopy = undefined;
this._primaryKeyColumns = undefined;
this._sourceTableFullName = undefined;
this._timeseriesKey = undefined;
this._runContinuously.internalValue = undefined;
this._runTriggered.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._performFullCopy = value.performFullCopy;
this._primaryKeyColumns = value.primaryKeyColumns;
this._sourceTableFullName = value.sourceTableFullName;
this._timeseriesKey = value.timeseriesKey;
this._runContinuously.internalValue = value.runContinuously;
this._runTriggered.internalValue = value.runTriggered;
}
}
get performFullCopy() {
return this.getBooleanAttribute('perform_full_copy');
}
set performFullCopy(value) {
this._performFullCopy = value;
}
resetPerformFullCopy() {
this._performFullCopy = undefined;
}
// Temporarily expose input value. Use with caution.
get performFullCopyInput() {
return this._performFullCopy;
}
// pipeline_id - computed: true, optional: false, required: false
get pipelineId() {
return this.getStringAttribute('pipeline_id');
}
get primaryKeyColumns() {
return this.getListAttribute('primary_key_columns');
}
set primaryKeyColumns(value) {
this._primaryKeyColumns = value;
}
resetPrimaryKeyColumns() {
this._primaryKeyColumns = undefined;
}
// Temporarily expose input value. Use with caution.
get primaryKeyColumnsInput() {
return this._primaryKeyColumns;
}
get sourceTableFullName() {
return this.getStringAttribute('source_table_full_name');
}
set sourceTableFullName(value) {
this._sourceTableFullName = value;
}
resetSourceTableFullName() {
this._sourceTableFullName = undefined;
}
// Temporarily expose input value. Use with caution.
get sourceTableFullNameInput() {
return this._sourceTableFullName;
}
get timeseriesKey() {
return this.getStringAttribute('timeseries_key');
}
set timeseriesKey(value) {
this._timeseriesKey = value;
}
resetTimeseriesKey() {
this._timeseriesKey = undefined;
}
// Temporarily expose input value. Use with caution.
get timeseriesKeyInput() {
return this._timeseriesKey;
}
get runContinuously() {
return this._runContinuously;
}
putRunContinuously(value) {
this._runContinuously.internalValue = value;
}
resetRunContinuously() {
this._runContinuously.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get runContinuouslyInput() {
return this._runContinuously.internalValue;
}
get runTriggered() {
return this._runTriggered;
}
putRunTriggered(value) {
this._runTriggered.internalValue = value;
}
resetRunTriggered() {
this._runTriggered.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get runTriggeredInput() {