@cdktf/provider-databricks
Version:
Prebuilt databricks Provider for Terraform CDK (cdktf)
1,051 lines • 259 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataDatabricksExternalLocation = exports.DataDatabricksExternalLocationExternalLocationInfoOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsOutputReference = exports.DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsOutputReference = void 0;
exports.dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToTerraform = dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsToTerraform = dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueToTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoFileEventQueueToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoFileEventQueueToHclTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoToTerraform = dataDatabricksExternalLocationExternalLocationInfoToTerraform;
exports.dataDatabricksExternalLocationExternalLocationInfoToHclTerraform = dataDatabricksExternalLocationExternalLocationInfoToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToTerraform(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 {
algorithm: cdktf.stringToTerraform(struct.algorithm),
aws_kms_key_arn: cdktf.stringToTerraform(struct.awsKmsKeyArn),
};
}
function dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform(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 = {
algorithm: {
value: cdktf.stringToHclTerraform(struct.algorithm),
isBlock: false,
type: "simple",
storageClassType: "string",
},
aws_kms_key_arn: {
value: cdktf.stringToHclTerraform(struct.awsKmsKeyArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsOutputReference 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._algorithm !== undefined) {
hasAnyValues = true;
internalValueResult.algorithm = this._algorithm;
}
if (this._awsKmsKeyArn !== undefined) {
hasAnyValues = true;
internalValueResult.awsKmsKeyArn = this._awsKmsKeyArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._algorithm = undefined;
this._awsKmsKeyArn = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._algorithm = value.algorithm;
this._awsKmsKeyArn = value.awsKmsKeyArn;
}
}
get algorithm() {
return this.getStringAttribute('algorithm');
}
set algorithm(value) {
this._algorithm = value;
}
resetAlgorithm() {
this._algorithm = undefined;
}
// Temporarily expose input value. Use with caution.
get algorithmInput() {
return this._algorithm;
}
get awsKmsKeyArn() {
return this.getStringAttribute('aws_kms_key_arn');
}
set awsKmsKeyArn(value) {
this._awsKmsKeyArn = value;
}
resetAwsKmsKeyArn() {
this._awsKmsKeyArn = undefined;
}
// Temporarily expose input value. Use with caution.
get awsKmsKeyArnInput() {
return this._awsKmsKeyArn;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsOutputReference = DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsToTerraform(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 {
sse_encryption_details: dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToTerraform(struct.sseEncryptionDetails),
};
}
function dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsToHclTerraform(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 = {
sse_encryption_details: {
value: dataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsToHclTerraform(struct.sseEncryptionDetails),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsOutputReference 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;
// sse_encryption_details - computed: false, optional: true, required: false
this._sseEncryptionDetails = new DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetailsOutputReference(this, "sse_encryption_details");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._sseEncryptionDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.sseEncryptionDetails = this._sseEncryptionDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._sseEncryptionDetails.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._sseEncryptionDetails.internalValue = value.sseEncryptionDetails;
}
}
get sseEncryptionDetails() {
return this._sseEncryptionDetails;
}
putSseEncryptionDetails(value) {
this._sseEncryptionDetails.internalValue = value;
}
resetSseEncryptionDetails() {
this._sseEncryptionDetails.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get sseEncryptionDetailsInput() {
return this._sseEncryptionDetails.internalValue;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsOutputReference = DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsOutputReference[_b] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoEncryptionDetailsOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToTerraform(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 {
managed_resource_id: cdktf.stringToTerraform(struct.managedResourceId),
queue_url: cdktf.stringToTerraform(struct.queueUrl),
resource_group: cdktf.stringToTerraform(struct.resourceGroup),
subscription_id: cdktf.stringToTerraform(struct.subscriptionId),
};
}
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToHclTerraform(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 = {
managed_resource_id: {
value: cdktf.stringToHclTerraform(struct.managedResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
queue_url: {
value: cdktf.stringToHclTerraform(struct.queueUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resource_group: {
value: cdktf.stringToHclTerraform(struct.resourceGroup),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subscription_id: {
value: cdktf.stringToHclTerraform(struct.subscriptionId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsOutputReference 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._managedResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.managedResourceId = this._managedResourceId;
}
if (this._queueUrl !== undefined) {
hasAnyValues = true;
internalValueResult.queueUrl = this._queueUrl;
}
if (this._resourceGroup !== undefined) {
hasAnyValues = true;
internalValueResult.resourceGroup = this._resourceGroup;
}
if (this._subscriptionId !== undefined) {
hasAnyValues = true;
internalValueResult.subscriptionId = this._subscriptionId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._managedResourceId = undefined;
this._queueUrl = undefined;
this._resourceGroup = undefined;
this._subscriptionId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._managedResourceId = value.managedResourceId;
this._queueUrl = value.queueUrl;
this._resourceGroup = value.resourceGroup;
this._subscriptionId = value.subscriptionId;
}
}
get managedResourceId() {
return this.getStringAttribute('managed_resource_id');
}
set managedResourceId(value) {
this._managedResourceId = value;
}
resetManagedResourceId() {
this._managedResourceId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedResourceIdInput() {
return this._managedResourceId;
}
get queueUrl() {
return this.getStringAttribute('queue_url');
}
set queueUrl(value) {
this._queueUrl = value;
}
resetQueueUrl() {
this._queueUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get queueUrlInput() {
return this._queueUrl;
}
get resourceGroup() {
return this.getStringAttribute('resource_group');
}
set resourceGroup(value) {
this._resourceGroup = value;
}
resetResourceGroup() {
this._resourceGroup = undefined;
}
// Temporarily expose input value. Use with caution.
get resourceGroupInput() {
return this._resourceGroup;
}
get subscriptionId() {
return this.getStringAttribute('subscription_id');
}
set subscriptionId(value) {
this._subscriptionId = value;
}
resetSubscriptionId() {
this._subscriptionId = undefined;
}
// Temporarily expose input value. Use with caution.
get subscriptionIdInput() {
return this._subscriptionId;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsOutputReference = DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsOutputReference[_c] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToTerraform(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 {
managed_resource_id: cdktf.stringToTerraform(struct.managedResourceId),
subscription_name: cdktf.stringToTerraform(struct.subscriptionName),
};
}
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToHclTerraform(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 = {
managed_resource_id: {
value: cdktf.stringToHclTerraform(struct.managedResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subscription_name: {
value: cdktf.stringToHclTerraform(struct.subscriptionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubOutputReference 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._managedResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.managedResourceId = this._managedResourceId;
}
if (this._subscriptionName !== undefined) {
hasAnyValues = true;
internalValueResult.subscriptionName = this._subscriptionName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._managedResourceId = undefined;
this._subscriptionName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._managedResourceId = value.managedResourceId;
this._subscriptionName = value.subscriptionName;
}
}
get managedResourceId() {
return this.getStringAttribute('managed_resource_id');
}
set managedResourceId(value) {
this._managedResourceId = value;
}
resetManagedResourceId() {
this._managedResourceId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedResourceIdInput() {
return this._managedResourceId;
}
get subscriptionName() {
return this.getStringAttribute('subscription_name');
}
set subscriptionName(value) {
this._subscriptionName = value;
}
resetSubscriptionName() {
this._subscriptionName = undefined;
}
// Temporarily expose input value. Use with caution.
get subscriptionNameInput() {
return this._subscriptionName;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubOutputReference = DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubOutputReference[_d] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToTerraform(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 {
managed_resource_id: cdktf.stringToTerraform(struct.managedResourceId),
queue_url: cdktf.stringToTerraform(struct.queueUrl),
};
}
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToHclTerraform(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 = {
managed_resource_id: {
value: cdktf.stringToHclTerraform(struct.managedResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
queue_url: {
value: cdktf.stringToHclTerraform(struct.queueUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsOutputReference 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._managedResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.managedResourceId = this._managedResourceId;
}
if (this._queueUrl !== undefined) {
hasAnyValues = true;
internalValueResult.queueUrl = this._queueUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._managedResourceId = undefined;
this._queueUrl = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._managedResourceId = value.managedResourceId;
this._queueUrl = value.queueUrl;
}
}
get managedResourceId() {
return this.getStringAttribute('managed_resource_id');
}
set managedResourceId(value) {
this._managedResourceId = value;
}
resetManagedResourceId() {
this._managedResourceId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedResourceIdInput() {
return this._managedResourceId;
}
get queueUrl() {
return this.getStringAttribute('queue_url');
}
set queueUrl(value) {
this._queueUrl = value;
}
resetQueueUrl() {
this._queueUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get queueUrlInput() {
return this._queueUrl;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsOutputReference = DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsOutputReference[_e] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToTerraform(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 {
managed_resource_id: cdktf.stringToTerraform(struct.managedResourceId),
queue_url: cdktf.stringToTerraform(struct.queueUrl),
resource_group: cdktf.stringToTerraform(struct.resourceGroup),
subscription_id: cdktf.stringToTerraform(struct.subscriptionId),
};
}
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToHclTerraform(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 = {
managed_resource_id: {
value: cdktf.stringToHclTerraform(struct.managedResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
queue_url: {
value: cdktf.stringToHclTerraform(struct.queueUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resource_group: {
value: cdktf.stringToHclTerraform(struct.resourceGroup),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subscription_id: {
value: cdktf.stringToHclTerraform(struct.subscriptionId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsOutputReference 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._managedResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.managedResourceId = this._managedResourceId;
}
if (this._queueUrl !== undefined) {
hasAnyValues = true;
internalValueResult.queueUrl = this._queueUrl;
}
if (this._resourceGroup !== undefined) {
hasAnyValues = true;
internalValueResult.resourceGroup = this._resourceGroup;
}
if (this._subscriptionId !== undefined) {
hasAnyValues = true;
internalValueResult.subscriptionId = this._subscriptionId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._managedResourceId = undefined;
this._queueUrl = undefined;
this._resourceGroup = undefined;
this._subscriptionId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._managedResourceId = value.managedResourceId;
this._queueUrl = value.queueUrl;
this._resourceGroup = value.resourceGroup;
this._subscriptionId = value.subscriptionId;
}
}
get managedResourceId() {
return this.getStringAttribute('managed_resource_id');
}
set managedResourceId(value) {
this._managedResourceId = value;
}
resetManagedResourceId() {
this._managedResourceId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedResourceIdInput() {
return this._managedResourceId;
}
get queueUrl() {
return this.getStringAttribute('queue_url');
}
set queueUrl(value) {
this._queueUrl = value;
}
resetQueueUrl() {
this._queueUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get queueUrlInput() {
return this._queueUrl;
}
get resourceGroup() {
return this.getStringAttribute('resource_group');
}
set resourceGroup(value) {
this._resourceGroup = value;
}
resetResourceGroup() {
this._resourceGroup = undefined;
}
// Temporarily expose input value. Use with caution.
get resourceGroupInput() {
return this._resourceGroup;
}
get subscriptionId() {
return this.getStringAttribute('subscription_id');
}
set subscriptionId(value) {
this._subscriptionId = value;
}
resetSubscriptionId() {
this._subscriptionId = undefined;
}
// Temporarily expose input value. Use with caution.
get subscriptionIdInput() {
return this._subscriptionId;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsOutputReference = DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToTerraform(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 {
managed_resource_id: cdktf.stringToTerraform(struct.managedResourceId),
subscription_name: cdktf.stringToTerraform(struct.subscriptionName),
};
}
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToHclTerraform(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 = {
managed_resource_id: {
value: cdktf.stringToHclTerraform(struct.managedResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subscription_name: {
value: cdktf.stringToHclTerraform(struct.subscriptionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubOutputReference 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._managedResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.managedResourceId = this._managedResourceId;
}
if (this._subscriptionName !== undefined) {
hasAnyValues = true;
internalValueResult.subscriptionName = this._subscriptionName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._managedResourceId = undefined;
this._subscriptionName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._managedResourceId = value.managedResourceId;
this._subscriptionName = value.subscriptionName;
}
}
get managedResourceId() {
return this.getStringAttribute('managed_resource_id');
}
set managedResourceId(value) {
this._managedResourceId = value;
}
resetManagedResourceId() {
this._managedResourceId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedResourceIdInput() {
return this._managedResourceId;
}
get subscriptionName() {
return this.getStringAttribute('subscription_name');
}
set subscriptionName(value) {
this._subscriptionName = value;
}
resetSubscriptionName() {
this._subscriptionName = undefined;
}
// Temporarily expose input value. Use with caution.
get subscriptionNameInput() {
return this._subscriptionName;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubOutputReference = DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubOutputReference[_g] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToTerraform(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 {
managed_resource_id: cdktf.stringToTerraform(struct.managedResourceId),
queue_url: cdktf.stringToTerraform(struct.queueUrl),
};
}
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToHclTerraform(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 = {
managed_resource_id: {
value: cdktf.stringToHclTerraform(struct.managedResourceId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
queue_url: {
value: cdktf.stringToHclTerraform(struct.queueUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsOutputReference 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._managedResourceId !== undefined) {
hasAnyValues = true;
internalValueResult.managedResourceId = this._managedResourceId;
}
if (this._queueUrl !== undefined) {
hasAnyValues = true;
internalValueResult.queueUrl = this._queueUrl;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._managedResourceId = undefined;
this._queueUrl = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._managedResourceId = value.managedResourceId;
this._queueUrl = value.queueUrl;
}
}
get managedResourceId() {
return this.getStringAttribute('managed_resource_id');
}
set managedResourceId(value) {
this._managedResourceId = value;
}
resetManagedResourceId() {
this._managedResourceId = undefined;
}
// Temporarily expose input value. Use with caution.
get managedResourceIdInput() {
return this._managedResourceId;
}
get queueUrl() {
return this.getStringAttribute('queue_url');
}
set queueUrl(value) {
this._queueUrl = value;
}
resetQueueUrl() {
this._queueUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get queueUrlInput() {
return this._queueUrl;
}
}
exports.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsOutputReference = DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsOutputReference[_h] = { fqn: "@cdktf/provider-databricks.dataDatabricksExternalLocation.DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsOutputReference", version: "15.7.0" };
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueToTerraform(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 {
managed_aqs: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToTerraform(struct.managedAqs),
managed_pubsub: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToTerraform(struct.managedPubsub),
managed_sqs: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToTerraform(struct.managedSqs),
provided_aqs: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToTerraform(struct.providedAqs),
provided_pubsub: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToTerraform(struct.providedPubsub),
provided_sqs: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToTerraform(struct.providedSqs),
};
}
function dataDatabricksExternalLocationExternalLocationInfoFileEventQueueToHclTerraform(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 = {
managed_aqs: {
value: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsToHclTerraform(struct.managedAqs),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsList",
},
managed_pubsub: {
value: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubToHclTerraform(struct.managedPubsub),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubList",
},
managed_sqs: {
value: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsToHclTerraform(struct.managedSqs),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsList",
},
provided_aqs: {
value: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsToHclTerraform(struct.providedAqs),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsList",
},
provided_pubsub: {
value: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubToHclTerraform(struct.providedPubsub),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubList",
},
provided_sqs: {
value: dataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsToHclTerraform(struct.providedSqs),
isBlock: true,
type: "list",
storageClassType: "DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataDatabricksExternalLocationExternalLocationInfoFileEventQueueOutputReference 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;
// managed_aqs - computed: false, optional: true, required: false
this._managedAqs = new DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedAqsOutputReference(this, "managed_aqs");
// managed_pubsub - computed: false, optional: true, required: false
this._managedPubsub = new DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedPubsubOutputReference(this, "managed_pubsub");
// managed_sqs - computed: false, optional: true, required: false
this._managedSqs = new DataDatabricksExternalLocationExternalLocationInfoFileEventQueueManagedSqsOutputReference(this, "managed_sqs");
// provided_aqs - computed: false, optional: true, required: false
this._providedAqs = new DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedAqsOutputReference(this, "provided_aqs");
// provided_pubsub - computed: false, optional: true, required: false
this._providedPubsub = new DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedPubsubOutputReference(this, "provided_pubsub");
// provided_sqs - computed: false, optional: true, required: false
this._providedSqs = new DataDatabricksExternalLocationExternalLocationInfoFileEventQueueProvidedSqsOutputReference(this, "provided_sqs");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._managedAqs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.managedAqs = this._managedAqs?.internalValue;
}
if (this._managedPubsub?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.managedPubsub = this._managedPubsub?.internalValue;
}
if (this._managedSqs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.managedSqs = this._managedSqs?.internalValue;
}
if (this._providedAqs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.providedAqs = this._providedAqs?.internalValue;
}
if (this._providedPubsub?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.providedPubsub = this._providedPubsub?.internalValue;
}
if (this._providedSqs?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.providedSqs = this._providedSqs?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._managedAqs.internalValue = undefined;
this._managedPubsub.internalValue = undefined;
this._managedSqs.internalValue = undefined;
this._providedAqs.internalValue = undefined;
this._providedPubsub.internalValue = undefined;
this._providedSqs.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._managedAqs.internalValue = value.managedAqs;
this._managedPubsub.internalValue = value.managedPubsub;
this._managedSqs.internalValue = value.managedSqs;
this._providedAqs.internalValue = value.providedAqs;
this._providedPubsub.internalValue = value.providedPubsub;
this._providedSqs.internalValue = value.providedSqs;
}
}
get managedAqs() {
return this._managedAqs;
}
putManagedAqs(value) {
this._managedAqs.internalValue = value;
}
resetManagedAqs() {
this._managedAqs.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get