@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,080 lines (1,079 loc) • 1.14 MB
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, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PipelineRestartWindowOutputReference = exports.PipelineNotificationList = exports.PipelineNotificationOutputReference = exports.PipelineLibraryList = exports.PipelineLibraryOutputReference = exports.PipelineLibraryNotebookOutputReference = exports.PipelineLibraryMavenOutputReference = exports.PipelineLibraryGlobOutputReference = exports.PipelineLibraryFileOutputReference = exports.PipelineLatestUpdatesList = exports.PipelineLatestUpdatesOutputReference = exports.PipelineIngestionDefinitionOutputReference = exports.PipelineIngestionDefinitionTableConfigurationOutputReference = exports.PipelineIngestionDefinitionTableConfigurationQueryBasedConnectorConfigOutputReference = exports.PipelineIngestionDefinitionObjectsList = exports.PipelineIngestionDefinitionObjectsOutputReference = exports.PipelineIngestionDefinitionObjectsTableOutputReference = exports.PipelineIngestionDefinitionObjectsTableTableConfigurationOutputReference = exports.PipelineIngestionDefinitionObjectsTableTableConfigurationQueryBasedConnectorConfigOutputReference = exports.PipelineIngestionDefinitionObjectsSchemaOutputReference = exports.PipelineIngestionDefinitionObjectsSchemaTableConfigurationOutputReference = exports.PipelineIngestionDefinitionObjectsSchemaTableConfigurationQueryBasedConnectorConfigOutputReference = exports.PipelineIngestionDefinitionObjectsReportOutputReference = exports.PipelineIngestionDefinitionObjectsReportTableConfigurationOutputReference = exports.PipelineIngestionDefinitionObjectsReportTableConfigurationQueryBasedConnectorConfigOutputReference = exports.PipelineGatewayDefinitionOutputReference = exports.PipelineFiltersOutputReference = exports.PipelineEventLogOutputReference = exports.PipelineEnvironmentOutputReference = exports.PipelineDeploymentOutputReference = exports.PipelineClusterList = exports.PipelineClusterOutputReference = exports.PipelineClusterInitScriptsList = exports.PipelineClusterInitScriptsOutputReference = exports.PipelineClusterInitScriptsWorkspaceOutputReference = exports.PipelineClusterInitScriptsVolumesOutputReference = exports.PipelineClusterInitScriptsS3OutputReference = exports.PipelineClusterInitScriptsGcsOutputReference = exports.PipelineClusterInitScriptsFileOutputReference = exports.PipelineClusterInitScriptsDbfsOutputReference = exports.PipelineClusterInitScriptsAbfssOutputReference = exports.PipelineClusterGcpAttributesOutputReference = exports.PipelineClusterClusterLogConfOutputReference = exports.PipelineClusterClusterLogConfVolumesOutputReference = exports.PipelineClusterClusterLogConfS3OutputReference = exports.PipelineClusterClusterLogConfDbfsOutputReference = exports.PipelineClusterAzureAttributesOutputReference = exports.PipelineClusterAzureAttributesLogAnalyticsInfoOutputReference = exports.PipelineClusterAwsAttributesOutputReference = exports.PipelineClusterAutoscaleOutputReference = void 0;
exports.Pipeline = exports.PipelineTriggerOutputReference = exports.PipelineTriggerManualOutputReference = exports.PipelineTriggerCronOutputReference = exports.PipelineTimeoutsOutputReference = exports.PipelineRunAsOutputReference = void 0;
exports.pipelineClusterAutoscaleToTerraform = pipelineClusterAutoscaleToTerraform;
exports.pipelineClusterAutoscaleToHclTerraform = pipelineClusterAutoscaleToHclTerraform;
exports.pipelineClusterAwsAttributesToTerraform = pipelineClusterAwsAttributesToTerraform;
exports.pipelineClusterAwsAttributesToHclTerraform = pipelineClusterAwsAttributesToHclTerraform;
exports.pipelineClusterAzureAttributesLogAnalyticsInfoToTerraform = pipelineClusterAzureAttributesLogAnalyticsInfoToTerraform;
exports.pipelineClusterAzureAttributesLogAnalyticsInfoToHclTerraform = pipelineClusterAzureAttributesLogAnalyticsInfoToHclTerraform;
exports.pipelineClusterAzureAttributesToTerraform = pipelineClusterAzureAttributesToTerraform;
exports.pipelineClusterAzureAttributesToHclTerraform = pipelineClusterAzureAttributesToHclTerraform;
exports.pipelineClusterClusterLogConfDbfsToTerraform = pipelineClusterClusterLogConfDbfsToTerraform;
exports.pipelineClusterClusterLogConfDbfsToHclTerraform = pipelineClusterClusterLogConfDbfsToHclTerraform;
exports.pipelineClusterClusterLogConfS3ToTerraform = pipelineClusterClusterLogConfS3ToTerraform;
exports.pipelineClusterClusterLogConfS3ToHclTerraform = pipelineClusterClusterLogConfS3ToHclTerraform;
exports.pipelineClusterClusterLogConfVolumesToTerraform = pipelineClusterClusterLogConfVolumesToTerraform;
exports.pipelineClusterClusterLogConfVolumesToHclTerraform = pipelineClusterClusterLogConfVolumesToHclTerraform;
exports.pipelineClusterClusterLogConfToTerraform = pipelineClusterClusterLogConfToTerraform;
exports.pipelineClusterClusterLogConfToHclTerraform = pipelineClusterClusterLogConfToHclTerraform;
exports.pipelineClusterGcpAttributesToTerraform = pipelineClusterGcpAttributesToTerraform;
exports.pipelineClusterGcpAttributesToHclTerraform = pipelineClusterGcpAttributesToHclTerraform;
exports.pipelineClusterInitScriptsAbfssToTerraform = pipelineClusterInitScriptsAbfssToTerraform;
exports.pipelineClusterInitScriptsAbfssToHclTerraform = pipelineClusterInitScriptsAbfssToHclTerraform;
exports.pipelineClusterInitScriptsDbfsToTerraform = pipelineClusterInitScriptsDbfsToTerraform;
exports.pipelineClusterInitScriptsDbfsToHclTerraform = pipelineClusterInitScriptsDbfsToHclTerraform;
exports.pipelineClusterInitScriptsFileToTerraform = pipelineClusterInitScriptsFileToTerraform;
exports.pipelineClusterInitScriptsFileToHclTerraform = pipelineClusterInitScriptsFileToHclTerraform;
exports.pipelineClusterInitScriptsGcsToTerraform = pipelineClusterInitScriptsGcsToTerraform;
exports.pipelineClusterInitScriptsGcsToHclTerraform = pipelineClusterInitScriptsGcsToHclTerraform;
exports.pipelineClusterInitScriptsS3ToTerraform = pipelineClusterInitScriptsS3ToTerraform;
exports.pipelineClusterInitScriptsS3ToHclTerraform = pipelineClusterInitScriptsS3ToHclTerraform;
exports.pipelineClusterInitScriptsVolumesToTerraform = pipelineClusterInitScriptsVolumesToTerraform;
exports.pipelineClusterInitScriptsVolumesToHclTerraform = pipelineClusterInitScriptsVolumesToHclTerraform;
exports.pipelineClusterInitScriptsWorkspaceToTerraform = pipelineClusterInitScriptsWorkspaceToTerraform;
exports.pipelineClusterInitScriptsWorkspaceToHclTerraform = pipelineClusterInitScriptsWorkspaceToHclTerraform;
exports.pipelineClusterInitScriptsToTerraform = pipelineClusterInitScriptsToTerraform;
exports.pipelineClusterInitScriptsToHclTerraform = pipelineClusterInitScriptsToHclTerraform;
exports.pipelineClusterToTerraform = pipelineClusterToTerraform;
exports.pipelineClusterToHclTerraform = pipelineClusterToHclTerraform;
exports.pipelineDeploymentToTerraform = pipelineDeploymentToTerraform;
exports.pipelineDeploymentToHclTerraform = pipelineDeploymentToHclTerraform;
exports.pipelineEnvironmentToTerraform = pipelineEnvironmentToTerraform;
exports.pipelineEnvironmentToHclTerraform = pipelineEnvironmentToHclTerraform;
exports.pipelineEventLogToTerraform = pipelineEventLogToTerraform;
exports.pipelineEventLogToHclTerraform = pipelineEventLogToHclTerraform;
exports.pipelineFiltersToTerraform = pipelineFiltersToTerraform;
exports.pipelineFiltersToHclTerraform = pipelineFiltersToHclTerraform;
exports.pipelineGatewayDefinitionToTerraform = pipelineGatewayDefinitionToTerraform;
exports.pipelineGatewayDefinitionToHclTerraform = pipelineGatewayDefinitionToHclTerraform;
exports.pipelineIngestionDefinitionObjectsReportTableConfigurationQueryBasedConnectorConfigToTerraform = pipelineIngestionDefinitionObjectsReportTableConfigurationQueryBasedConnectorConfigToTerraform;
exports.pipelineIngestionDefinitionObjectsReportTableConfigurationQueryBasedConnectorConfigToHclTerraform = pipelineIngestionDefinitionObjectsReportTableConfigurationQueryBasedConnectorConfigToHclTerraform;
exports.pipelineIngestionDefinitionObjectsReportTableConfigurationToTerraform = pipelineIngestionDefinitionObjectsReportTableConfigurationToTerraform;
exports.pipelineIngestionDefinitionObjectsReportTableConfigurationToHclTerraform = pipelineIngestionDefinitionObjectsReportTableConfigurationToHclTerraform;
exports.pipelineIngestionDefinitionObjectsReportToTerraform = pipelineIngestionDefinitionObjectsReportToTerraform;
exports.pipelineIngestionDefinitionObjectsReportToHclTerraform = pipelineIngestionDefinitionObjectsReportToHclTerraform;
exports.pipelineIngestionDefinitionObjectsSchemaTableConfigurationQueryBasedConnectorConfigToTerraform = pipelineIngestionDefinitionObjectsSchemaTableConfigurationQueryBasedConnectorConfigToTerraform;
exports.pipelineIngestionDefinitionObjectsSchemaTableConfigurationQueryBasedConnectorConfigToHclTerraform = pipelineIngestionDefinitionObjectsSchemaTableConfigurationQueryBasedConnectorConfigToHclTerraform;
exports.pipelineIngestionDefinitionObjectsSchemaTableConfigurationToTerraform = pipelineIngestionDefinitionObjectsSchemaTableConfigurationToTerraform;
exports.pipelineIngestionDefinitionObjectsSchemaTableConfigurationToHclTerraform = pipelineIngestionDefinitionObjectsSchemaTableConfigurationToHclTerraform;
exports.pipelineIngestionDefinitionObjectsSchemaToTerraform = pipelineIngestionDefinitionObjectsSchemaToTerraform;
exports.pipelineIngestionDefinitionObjectsSchemaToHclTerraform = pipelineIngestionDefinitionObjectsSchemaToHclTerraform;
exports.pipelineIngestionDefinitionObjectsTableTableConfigurationQueryBasedConnectorConfigToTerraform = pipelineIngestionDefinitionObjectsTableTableConfigurationQueryBasedConnectorConfigToTerraform;
exports.pipelineIngestionDefinitionObjectsTableTableConfigurationQueryBasedConnectorConfigToHclTerraform = pipelineIngestionDefinitionObjectsTableTableConfigurationQueryBasedConnectorConfigToHclTerraform;
exports.pipelineIngestionDefinitionObjectsTableTableConfigurationToTerraform = pipelineIngestionDefinitionObjectsTableTableConfigurationToTerraform;
exports.pipelineIngestionDefinitionObjectsTableTableConfigurationToHclTerraform = pipelineIngestionDefinitionObjectsTableTableConfigurationToHclTerraform;
exports.pipelineIngestionDefinitionObjectsTableToTerraform = pipelineIngestionDefinitionObjectsTableToTerraform;
exports.pipelineIngestionDefinitionObjectsTableToHclTerraform = pipelineIngestionDefinitionObjectsTableToHclTerraform;
exports.pipelineIngestionDefinitionObjectsToTerraform = pipelineIngestionDefinitionObjectsToTerraform;
exports.pipelineIngestionDefinitionObjectsToHclTerraform = pipelineIngestionDefinitionObjectsToHclTerraform;
exports.pipelineIngestionDefinitionTableConfigurationQueryBasedConnectorConfigToTerraform = pipelineIngestionDefinitionTableConfigurationQueryBasedConnectorConfigToTerraform;
exports.pipelineIngestionDefinitionTableConfigurationQueryBasedConnectorConfigToHclTerraform = pipelineIngestionDefinitionTableConfigurationQueryBasedConnectorConfigToHclTerraform;
exports.pipelineIngestionDefinitionTableConfigurationToTerraform = pipelineIngestionDefinitionTableConfigurationToTerraform;
exports.pipelineIngestionDefinitionTableConfigurationToHclTerraform = pipelineIngestionDefinitionTableConfigurationToHclTerraform;
exports.pipelineIngestionDefinitionToTerraform = pipelineIngestionDefinitionToTerraform;
exports.pipelineIngestionDefinitionToHclTerraform = pipelineIngestionDefinitionToHclTerraform;
exports.pipelineLatestUpdatesToTerraform = pipelineLatestUpdatesToTerraform;
exports.pipelineLatestUpdatesToHclTerraform = pipelineLatestUpdatesToHclTerraform;
exports.pipelineLibraryFileToTerraform = pipelineLibraryFileToTerraform;
exports.pipelineLibraryFileToHclTerraform = pipelineLibraryFileToHclTerraform;
exports.pipelineLibraryGlobToTerraform = pipelineLibraryGlobToTerraform;
exports.pipelineLibraryGlobToHclTerraform = pipelineLibraryGlobToHclTerraform;
exports.pipelineLibraryMavenToTerraform = pipelineLibraryMavenToTerraform;
exports.pipelineLibraryMavenToHclTerraform = pipelineLibraryMavenToHclTerraform;
exports.pipelineLibraryNotebookToTerraform = pipelineLibraryNotebookToTerraform;
exports.pipelineLibraryNotebookToHclTerraform = pipelineLibraryNotebookToHclTerraform;
exports.pipelineLibraryToTerraform = pipelineLibraryToTerraform;
exports.pipelineLibraryToHclTerraform = pipelineLibraryToHclTerraform;
exports.pipelineNotificationToTerraform = pipelineNotificationToTerraform;
exports.pipelineNotificationToHclTerraform = pipelineNotificationToHclTerraform;
exports.pipelineRestartWindowToTerraform = pipelineRestartWindowToTerraform;
exports.pipelineRestartWindowToHclTerraform = pipelineRestartWindowToHclTerraform;
exports.pipelineRunAsToTerraform = pipelineRunAsToTerraform;
exports.pipelineRunAsToHclTerraform = pipelineRunAsToHclTerraform;
exports.pipelineTimeoutsToTerraform = pipelineTimeoutsToTerraform;
exports.pipelineTimeoutsToHclTerraform = pipelineTimeoutsToHclTerraform;
exports.pipelineTriggerCronToTerraform = pipelineTriggerCronToTerraform;
exports.pipelineTriggerCronToHclTerraform = pipelineTriggerCronToHclTerraform;
exports.pipelineTriggerManualToTerraform = pipelineTriggerManualToTerraform;
exports.pipelineTriggerManualToHclTerraform = pipelineTriggerManualToHclTerraform;
exports.pipelineTriggerToTerraform = pipelineTriggerToTerraform;
exports.pipelineTriggerToHclTerraform = pipelineTriggerToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function pipelineClusterAutoscaleToTerraform(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 {
max_workers: cdktf.numberToTerraform(struct.maxWorkers),
min_workers: cdktf.numberToTerraform(struct.minWorkers),
mode: cdktf.stringToTerraform(struct.mode),
};
}
function pipelineClusterAutoscaleToHclTerraform(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 = {
max_workers: {
value: cdktf.numberToHclTerraform(struct.maxWorkers),
isBlock: false,
type: "simple",
storageClassType: "number",
},
min_workers: {
value: cdktf.numberToHclTerraform(struct.minWorkers),
isBlock: false,
type: "simple",
storageClassType: "number",
},
mode: {
value: cdktf.stringToHclTerraform(struct.mode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PipelineClusterAutoscaleOutputReference 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._maxWorkers !== undefined) {
hasAnyValues = true;
internalValueResult.maxWorkers = this._maxWorkers;
}
if (this._minWorkers !== undefined) {
hasAnyValues = true;
internalValueResult.minWorkers = this._minWorkers;
}
if (this._mode !== undefined) {
hasAnyValues = true;
internalValueResult.mode = this._mode;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxWorkers = undefined;
this._minWorkers = undefined;
this._mode = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxWorkers = value.maxWorkers;
this._minWorkers = value.minWorkers;
this._mode = value.mode;
}
}
get maxWorkers() {
return this.getNumberAttribute('max_workers');
}
set maxWorkers(value) {
this._maxWorkers = value;
}
// Temporarily expose input value. Use with caution.
get maxWorkersInput() {
return this._maxWorkers;
}
get minWorkers() {
return this.getNumberAttribute('min_workers');
}
set minWorkers(value) {
this._minWorkers = value;
}
// Temporarily expose input value. Use with caution.
get minWorkersInput() {
return this._minWorkers;
}
get mode() {
return this.getStringAttribute('mode');
}
set mode(value) {
this._mode = value;
}
resetMode() {
this._mode = undefined;
}
// Temporarily expose input value. Use with caution.
get modeInput() {
return this._mode;
}
}
exports.PipelineClusterAutoscaleOutputReference = PipelineClusterAutoscaleOutputReference;
_a = JSII_RTTI_SYMBOL_1;
PipelineClusterAutoscaleOutputReference[_a] = { fqn: "@cdktf/provider-databricks.pipeline.PipelineClusterAutoscaleOutputReference", version: "15.3.1" };
function pipelineClusterAwsAttributesToTerraform(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 {
availability: cdktf.stringToTerraform(struct.availability),
ebs_volume_count: cdktf.numberToTerraform(struct.ebsVolumeCount),
ebs_volume_iops: cdktf.numberToTerraform(struct.ebsVolumeIops),
ebs_volume_size: cdktf.numberToTerraform(struct.ebsVolumeSize),
ebs_volume_throughput: cdktf.numberToTerraform(struct.ebsVolumeThroughput),
ebs_volume_type: cdktf.stringToTerraform(struct.ebsVolumeType),
first_on_demand: cdktf.numberToTerraform(struct.firstOnDemand),
instance_profile_arn: cdktf.stringToTerraform(struct.instanceProfileArn),
spot_bid_price_percent: cdktf.numberToTerraform(struct.spotBidPricePercent),
zone_id: cdktf.stringToTerraform(struct.zoneId),
};
}
function pipelineClusterAwsAttributesToHclTerraform(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 = {
availability: {
value: cdktf.stringToHclTerraform(struct.availability),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ebs_volume_count: {
value: cdktf.numberToHclTerraform(struct.ebsVolumeCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ebs_volume_iops: {
value: cdktf.numberToHclTerraform(struct.ebsVolumeIops),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ebs_volume_size: {
value: cdktf.numberToHclTerraform(struct.ebsVolumeSize),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ebs_volume_throughput: {
value: cdktf.numberToHclTerraform(struct.ebsVolumeThroughput),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ebs_volume_type: {
value: cdktf.stringToHclTerraform(struct.ebsVolumeType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
first_on_demand: {
value: cdktf.numberToHclTerraform(struct.firstOnDemand),
isBlock: false,
type: "simple",
storageClassType: "number",
},
instance_profile_arn: {
value: cdktf.stringToHclTerraform(struct.instanceProfileArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
spot_bid_price_percent: {
value: cdktf.numberToHclTerraform(struct.spotBidPricePercent),
isBlock: false,
type: "simple",
storageClassType: "number",
},
zone_id: {
value: cdktf.stringToHclTerraform(struct.zoneId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PipelineClusterAwsAttributesOutputReference 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._availability !== undefined) {
hasAnyValues = true;
internalValueResult.availability = this._availability;
}
if (this._ebsVolumeCount !== undefined) {
hasAnyValues = true;
internalValueResult.ebsVolumeCount = this._ebsVolumeCount;
}
if (this._ebsVolumeIops !== undefined) {
hasAnyValues = true;
internalValueResult.ebsVolumeIops = this._ebsVolumeIops;
}
if (this._ebsVolumeSize !== undefined) {
hasAnyValues = true;
internalValueResult.ebsVolumeSize = this._ebsVolumeSize;
}
if (this._ebsVolumeThroughput !== undefined) {
hasAnyValues = true;
internalValueResult.ebsVolumeThroughput = this._ebsVolumeThroughput;
}
if (this._ebsVolumeType !== undefined) {
hasAnyValues = true;
internalValueResult.ebsVolumeType = this._ebsVolumeType;
}
if (this._firstOnDemand !== undefined) {
hasAnyValues = true;
internalValueResult.firstOnDemand = this._firstOnDemand;
}
if (this._instanceProfileArn !== undefined) {
hasAnyValues = true;
internalValueResult.instanceProfileArn = this._instanceProfileArn;
}
if (this._spotBidPricePercent !== undefined) {
hasAnyValues = true;
internalValueResult.spotBidPricePercent = this._spotBidPricePercent;
}
if (this._zoneId !== undefined) {
hasAnyValues = true;
internalValueResult.zoneId = this._zoneId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._availability = undefined;
this._ebsVolumeCount = undefined;
this._ebsVolumeIops = undefined;
this._ebsVolumeSize = undefined;
this._ebsVolumeThroughput = undefined;
this._ebsVolumeType = undefined;
this._firstOnDemand = undefined;
this._instanceProfileArn = undefined;
this._spotBidPricePercent = undefined;
this._zoneId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._availability = value.availability;
this._ebsVolumeCount = value.ebsVolumeCount;
this._ebsVolumeIops = value.ebsVolumeIops;
this._ebsVolumeSize = value.ebsVolumeSize;
this._ebsVolumeThroughput = value.ebsVolumeThroughput;
this._ebsVolumeType = value.ebsVolumeType;
this._firstOnDemand = value.firstOnDemand;
this._instanceProfileArn = value.instanceProfileArn;
this._spotBidPricePercent = value.spotBidPricePercent;
this._zoneId = value.zoneId;
}
}
get availability() {
return this.getStringAttribute('availability');
}
set availability(value) {
this._availability = value;
}
resetAvailability() {
this._availability = undefined;
}
// Temporarily expose input value. Use with caution.
get availabilityInput() {
return this._availability;
}
get ebsVolumeCount() {
return this.getNumberAttribute('ebs_volume_count');
}
set ebsVolumeCount(value) {
this._ebsVolumeCount = value;
}
resetEbsVolumeCount() {
this._ebsVolumeCount = undefined;
}
// Temporarily expose input value. Use with caution.
get ebsVolumeCountInput() {
return this._ebsVolumeCount;
}
get ebsVolumeIops() {
return this.getNumberAttribute('ebs_volume_iops');
}
set ebsVolumeIops(value) {
this._ebsVolumeIops = value;
}
resetEbsVolumeIops() {
this._ebsVolumeIops = undefined;
}
// Temporarily expose input value. Use with caution.
get ebsVolumeIopsInput() {
return this._ebsVolumeIops;
}
get ebsVolumeSize() {
return this.getNumberAttribute('ebs_volume_size');
}
set ebsVolumeSize(value) {
this._ebsVolumeSize = value;
}
resetEbsVolumeSize() {
this._ebsVolumeSize = undefined;
}
// Temporarily expose input value. Use with caution.
get ebsVolumeSizeInput() {
return this._ebsVolumeSize;
}
get ebsVolumeThroughput() {
return this.getNumberAttribute('ebs_volume_throughput');
}
set ebsVolumeThroughput(value) {
this._ebsVolumeThroughput = value;
}
resetEbsVolumeThroughput() {
this._ebsVolumeThroughput = undefined;
}
// Temporarily expose input value. Use with caution.
get ebsVolumeThroughputInput() {
return this._ebsVolumeThroughput;
}
get ebsVolumeType() {
return this.getStringAttribute('ebs_volume_type');
}
set ebsVolumeType(value) {
this._ebsVolumeType = value;
}
resetEbsVolumeType() {
this._ebsVolumeType = undefined;
}
// Temporarily expose input value. Use with caution.
get ebsVolumeTypeInput() {
return this._ebsVolumeType;
}
get firstOnDemand() {
return this.getNumberAttribute('first_on_demand');
}
set firstOnDemand(value) {
this._firstOnDemand = value;
}
resetFirstOnDemand() {
this._firstOnDemand = undefined;
}
// Temporarily expose input value. Use with caution.
get firstOnDemandInput() {
return this._firstOnDemand;
}
get instanceProfileArn() {
return this.getStringAttribute('instance_profile_arn');
}
set instanceProfileArn(value) {
this._instanceProfileArn = value;
}
resetInstanceProfileArn() {
this._instanceProfileArn = undefined;
}
// Temporarily expose input value. Use with caution.
get instanceProfileArnInput() {
return this._instanceProfileArn;
}
get spotBidPricePercent() {
return this.getNumberAttribute('spot_bid_price_percent');
}
set spotBidPricePercent(value) {
this._spotBidPricePercent = value;
}
resetSpotBidPricePercent() {
this._spotBidPricePercent = undefined;
}
// Temporarily expose input value. Use with caution.
get spotBidPricePercentInput() {
return this._spotBidPricePercent;
}
get zoneId() {
return this.getStringAttribute('zone_id');
}
set zoneId(value) {
this._zoneId = value;
}
resetZoneId() {
this._zoneId = undefined;
}
// Temporarily expose input value. Use with caution.
get zoneIdInput() {
return this._zoneId;
}
}
exports.PipelineClusterAwsAttributesOutputReference = PipelineClusterAwsAttributesOutputReference;
_b = JSII_RTTI_SYMBOL_1;
PipelineClusterAwsAttributesOutputReference[_b] = { fqn: "@cdktf/provider-databricks.pipeline.PipelineClusterAwsAttributesOutputReference", version: "15.3.1" };
function pipelineClusterAzureAttributesLogAnalyticsInfoToTerraform(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 {
log_analytics_primary_key: cdktf.stringToTerraform(struct.logAnalyticsPrimaryKey),
log_analytics_workspace_id: cdktf.stringToTerraform(struct.logAnalyticsWorkspaceId),
};
}
function pipelineClusterAzureAttributesLogAnalyticsInfoToHclTerraform(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 = {
log_analytics_primary_key: {
value: cdktf.stringToHclTerraform(struct.logAnalyticsPrimaryKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
log_analytics_workspace_id: {
value: cdktf.stringToHclTerraform(struct.logAnalyticsWorkspaceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PipelineClusterAzureAttributesLogAnalyticsInfoOutputReference 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._logAnalyticsPrimaryKey !== undefined) {
hasAnyValues = true;
internalValueResult.logAnalyticsPrimaryKey = this._logAnalyticsPrimaryKey;
}
if (this._logAnalyticsWorkspaceId !== undefined) {
hasAnyValues = true;
internalValueResult.logAnalyticsWorkspaceId = this._logAnalyticsWorkspaceId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._logAnalyticsPrimaryKey = undefined;
this._logAnalyticsWorkspaceId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._logAnalyticsPrimaryKey = value.logAnalyticsPrimaryKey;
this._logAnalyticsWorkspaceId = value.logAnalyticsWorkspaceId;
}
}
get logAnalyticsPrimaryKey() {
return this.getStringAttribute('log_analytics_primary_key');
}
set logAnalyticsPrimaryKey(value) {
this._logAnalyticsPrimaryKey = value;
}
resetLogAnalyticsPrimaryKey() {
this._logAnalyticsPrimaryKey = undefined;
}
// Temporarily expose input value. Use with caution.
get logAnalyticsPrimaryKeyInput() {
return this._logAnalyticsPrimaryKey;
}
get logAnalyticsWorkspaceId() {
return this.getStringAttribute('log_analytics_workspace_id');
}
set logAnalyticsWorkspaceId(value) {
this._logAnalyticsWorkspaceId = value;
}
resetLogAnalyticsWorkspaceId() {
this._logAnalyticsWorkspaceId = undefined;
}
// Temporarily expose input value. Use with caution.
get logAnalyticsWorkspaceIdInput() {
return this._logAnalyticsWorkspaceId;
}
}
exports.PipelineClusterAzureAttributesLogAnalyticsInfoOutputReference = PipelineClusterAzureAttributesLogAnalyticsInfoOutputReference;
_c = JSII_RTTI_SYMBOL_1;
PipelineClusterAzureAttributesLogAnalyticsInfoOutputReference[_c] = { fqn: "@cdktf/provider-databricks.pipeline.PipelineClusterAzureAttributesLogAnalyticsInfoOutputReference", version: "15.3.1" };
function pipelineClusterAzureAttributesToTerraform(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 {
availability: cdktf.stringToTerraform(struct.availability),
first_on_demand: cdktf.numberToTerraform(struct.firstOnDemand),
spot_bid_max_price: cdktf.numberToTerraform(struct.spotBidMaxPrice),
log_analytics_info: pipelineClusterAzureAttributesLogAnalyticsInfoToTerraform(struct.logAnalyticsInfo),
};
}
function pipelineClusterAzureAttributesToHclTerraform(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 = {
availability: {
value: cdktf.stringToHclTerraform(struct.availability),
isBlock: false,
type: "simple",
storageClassType: "string",
},
first_on_demand: {
value: cdktf.numberToHclTerraform(struct.firstOnDemand),
isBlock: false,
type: "simple",
storageClassType: "number",
},
spot_bid_max_price: {
value: cdktf.numberToHclTerraform(struct.spotBidMaxPrice),
isBlock: false,
type: "simple",
storageClassType: "number",
},
log_analytics_info: {
value: pipelineClusterAzureAttributesLogAnalyticsInfoToHclTerraform(struct.logAnalyticsInfo),
isBlock: true,
type: "list",
storageClassType: "PipelineClusterAzureAttributesLogAnalyticsInfoList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PipelineClusterAzureAttributesOutputReference 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;
// log_analytics_info - computed: false, optional: true, required: false
this._logAnalyticsInfo = new PipelineClusterAzureAttributesLogAnalyticsInfoOutputReference(this, "log_analytics_info");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._availability !== undefined) {
hasAnyValues = true;
internalValueResult.availability = this._availability;
}
if (this._firstOnDemand !== undefined) {
hasAnyValues = true;
internalValueResult.firstOnDemand = this._firstOnDemand;
}
if (this._spotBidMaxPrice !== undefined) {
hasAnyValues = true;
internalValueResult.spotBidMaxPrice = this._spotBidMaxPrice;
}
if (this._logAnalyticsInfo?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.logAnalyticsInfo = this._logAnalyticsInfo?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._availability = undefined;
this._firstOnDemand = undefined;
this._spotBidMaxPrice = undefined;
this._logAnalyticsInfo.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._availability = value.availability;
this._firstOnDemand = value.firstOnDemand;
this._spotBidMaxPrice = value.spotBidMaxPrice;
this._logAnalyticsInfo.internalValue = value.logAnalyticsInfo;
}
}
get availability() {
return this.getStringAttribute('availability');
}
set availability(value) {
this._availability = value;
}
resetAvailability() {
this._availability = undefined;
}
// Temporarily expose input value. Use with caution.
get availabilityInput() {
return this._availability;
}
get firstOnDemand() {
return this.getNumberAttribute('first_on_demand');
}
set firstOnDemand(value) {
this._firstOnDemand = value;
}
resetFirstOnDemand() {
this._firstOnDemand = undefined;
}
// Temporarily expose input value. Use with caution.
get firstOnDemandInput() {
return this._firstOnDemand;
}
get spotBidMaxPrice() {
return this.getNumberAttribute('spot_bid_max_price');
}
set spotBidMaxPrice(value) {
this._spotBidMaxPrice = value;
}
resetSpotBidMaxPrice() {
this._spotBidMaxPrice = undefined;
}
// Temporarily expose input value. Use with caution.
get spotBidMaxPriceInput() {
return this._spotBidMaxPrice;
}
get logAnalyticsInfo() {
return this._logAnalyticsInfo;
}
putLogAnalyticsInfo(value) {
this._logAnalyticsInfo.internalValue = value;
}
resetLogAnalyticsInfo() {
this._logAnalyticsInfo.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get logAnalyticsInfoInput() {
return this._logAnalyticsInfo.internalValue;
}
}
exports.PipelineClusterAzureAttributesOutputReference = PipelineClusterAzureAttributesOutputReference;
_d = JSII_RTTI_SYMBOL_1;
PipelineClusterAzureAttributesOutputReference[_d] = { fqn: "@cdktf/provider-databricks.pipeline.PipelineClusterAzureAttributesOutputReference", version: "15.3.1" };
function pipelineClusterClusterLogConfDbfsToTerraform(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 {
destination: cdktf.stringToTerraform(struct.destination),
};
}
function pipelineClusterClusterLogConfDbfsToHclTerraform(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 = {
destination: {
value: cdktf.stringToHclTerraform(struct.destination),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PipelineClusterClusterLogConfDbfsOutputReference 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._destination !== undefined) {
hasAnyValues = true;
internalValueResult.destination = this._destination;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._destination = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._destination = value.destination;
}
}
get destination() {
return this.getStringAttribute('destination');
}
set destination(value) {
this._destination = value;
}
// Temporarily expose input value. Use with caution.
get destinationInput() {
return this._destination;
}
}
exports.PipelineClusterClusterLogConfDbfsOutputReference = PipelineClusterClusterLogConfDbfsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
PipelineClusterClusterLogConfDbfsOutputReference[_e] = { fqn: "@cdktf/provider-databricks.pipeline.PipelineClusterClusterLogConfDbfsOutputReference", version: "15.3.1" };
function pipelineClusterClusterLogConfS3ToTerraform(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 {
canned_acl: cdktf.stringToTerraform(struct.cannedAcl),
destination: cdktf.stringToTerraform(struct.destination),
enable_encryption: cdktf.booleanToTerraform(struct.enableEncryption),
encryption_type: cdktf.stringToTerraform(struct.encryptionType),
endpoint: cdktf.stringToTerraform(struct.endpoint),
kms_key: cdktf.stringToTerraform(struct.kmsKey),
region: cdktf.stringToTerraform(struct.region),
};
}
function pipelineClusterClusterLogConfS3ToHclTerraform(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 = {
canned_acl: {
value: cdktf.stringToHclTerraform(struct.cannedAcl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
destination: {
value: cdktf.stringToHclTerraform(struct.destination),
isBlock: false,
type: "simple",
storageClassType: "string",
},
enable_encryption: {
value: cdktf.booleanToHclTerraform(struct.enableEncryption),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
encryption_type: {
value: cdktf.stringToHclTerraform(struct.encryptionType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
endpoint: {
value: cdktf.stringToHclTerraform(struct.endpoint),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kms_key: {
value: cdktf.stringToHclTerraform(struct.kmsKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
region: {
value: cdktf.stringToHclTerraform(struct.region),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class PipelineClusterClusterLogConfS3OutputReference 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._cannedAcl !== undefined) {
hasAnyValues = true;
internalValueResult.cannedAcl = this._cannedAcl;
}
if (this._destination !== undefined) {
hasAnyValues = true;
internalValueResult.destination = this._destination;
}
if (this._enableEncryption !== undefined) {
hasAnyValues = true;
internalValueResult.enableEncryption = this._enableEncryption;
}
if (this._encryptionType !== undefined) {
hasAnyValues = true;
internalValueResult.encryptionType = this._encryptionType;
}
if (this._endpoint !== undefined) {
hasAnyValues = true;
internalValueResult.endpoint = this._endpoint;
}
if (this._kmsKey !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKey = this._kmsKey;
}
if (this._region !== undefined) {
hasAnyValues = true;
internalValueResult.region = this._region;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cannedAcl = undefined;
this._destination = undefined;
this._enableEncryption = undefined;
this._encryptionType = undefined;
this._endpoint = undefined;
this._kmsKey = undefined;
this._region = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cannedAcl = value.cannedAcl;
this._destination = value.destination;
this._enableEncryption = value.enableEncryption;
this._encryptionType = value.encryptionType;
this._endpoint = value.endpoint;
this._kmsKey = value.kmsKey;
this._region = value.region;
}
}
get cannedAcl() {
return this.getStringAttribute('canned_acl');
}
set cannedAcl(value) {
this._cannedAcl = value;
}
resetCannedAcl() {
this._cannedAcl = undefined;
}
// Temporarily expose input value. Use with caution.
get cannedAclInput() {
return this._cannedAcl;
}
get destination() {
return this.getStringAttribute('destination');
}
set destination(value) {
this._destination = value;
}
// Temporarily expose input value. Use with caution.
get destinationInput() {
return this._destination;
}
get enableEncryption() {
return this.getBooleanAttribute('enable_encryption');
}
set enableEncryption(value) {
this._enableEncryption = value;
}
resetEnableEncryption() {
this._enableEncryption = undefined;
}
// Temporarily expose input value. Use with caution.
get enableEncryptionInput() {
return this._enableEncryption;
}
get encryptionType() {
return this.getStringAttribute('encryption_type');
}
set encryptionType(value) {
this._encryptionType = value;
}
resetEncryptionType() {
this._encryptionType = undefined;
}
// Temporarily expose input value. Use with caution.
get encryptionTypeInput() {
return this._encryptionType;
}
get endpoint() {
return this.getStringAttribute('endpoint');
}
set endpoint(value) {
this._endpoint = value;
}
resetEndpoint() {
this._endpoint = undefined;
}
// Temporarily expose input value. Use with caution.
get endpointInput() {
return this._endpoint;
}
get kmsKey() {
return this.getStringAttribute('kms_key');
}
set kmsKey(value) {
this._kmsKey = value;
}
resetKmsKey() {
this._kmsKey = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyInput() {
return this._kmsKey;
}
get region() {
return this.getStringAttribute('region');
}
set region(value) {
this._region = value;
}
resetRegion() {
this._region = undefined;
}
// Temporarily expose input value. Use with caution.
get regionInput() {