@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,153 lines (1,152 loc) • 351 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataplexTask = exports.DataplexTaskTriggerSpecOutputReference = exports.dataplexTaskTriggerSpecToHclTerraform = exports.dataplexTaskTriggerSpecToTerraform = exports.DataplexTaskTimeoutsOutputReference = exports.dataplexTaskTimeoutsToHclTerraform = exports.dataplexTaskTimeoutsToTerraform = exports.DataplexTaskSparkOutputReference = exports.dataplexTaskSparkToHclTerraform = exports.dataplexTaskSparkToTerraform = exports.DataplexTaskSparkInfrastructureSpecOutputReference = exports.dataplexTaskSparkInfrastructureSpecToHclTerraform = exports.dataplexTaskSparkInfrastructureSpecToTerraform = exports.DataplexTaskSparkInfrastructureSpecVpcNetworkOutputReference = exports.dataplexTaskSparkInfrastructureSpecVpcNetworkToHclTerraform = exports.dataplexTaskSparkInfrastructureSpecVpcNetworkToTerraform = exports.DataplexTaskSparkInfrastructureSpecContainerImageOutputReference = exports.dataplexTaskSparkInfrastructureSpecContainerImageToHclTerraform = exports.dataplexTaskSparkInfrastructureSpecContainerImageToTerraform = exports.DataplexTaskSparkInfrastructureSpecBatchOutputReference = exports.dataplexTaskSparkInfrastructureSpecBatchToHclTerraform = exports.dataplexTaskSparkInfrastructureSpecBatchToTerraform = exports.DataplexTaskNotebookOutputReference = exports.dataplexTaskNotebookToHclTerraform = exports.dataplexTaskNotebookToTerraform = exports.DataplexTaskNotebookInfrastructureSpecOutputReference = exports.dataplexTaskNotebookInfrastructureSpecToHclTerraform = exports.dataplexTaskNotebookInfrastructureSpecToTerraform = exports.DataplexTaskNotebookInfrastructureSpecVpcNetworkOutputReference = exports.dataplexTaskNotebookInfrastructureSpecVpcNetworkToHclTerraform = exports.dataplexTaskNotebookInfrastructureSpecVpcNetworkToTerraform = exports.DataplexTaskNotebookInfrastructureSpecContainerImageOutputReference = exports.dataplexTaskNotebookInfrastructureSpecContainerImageToHclTerraform = exports.dataplexTaskNotebookInfrastructureSpecContainerImageToTerraform = exports.DataplexTaskNotebookInfrastructureSpecBatchOutputReference = exports.dataplexTaskNotebookInfrastructureSpecBatchToHclTerraform = exports.dataplexTaskNotebookInfrastructureSpecBatchToTerraform = exports.DataplexTaskExecutionSpecOutputReference = exports.dataplexTaskExecutionSpecToHclTerraform = exports.dataplexTaskExecutionSpecToTerraform = exports.DataplexTaskExecutionStatusList = exports.DataplexTaskExecutionStatusOutputReference = exports.dataplexTaskExecutionStatusToHclTerraform = exports.dataplexTaskExecutionStatusToTerraform = exports.DataplexTaskExecutionStatusLatestJobList = exports.DataplexTaskExecutionStatusLatestJobOutputReference = exports.dataplexTaskExecutionStatusLatestJobToHclTerraform = exports.dataplexTaskExecutionStatusLatestJobToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataplexTaskExecutionStatusLatestJobToTerraform(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 {};
}
exports.dataplexTaskExecutionStatusLatestJobToTerraform = dataplexTaskExecutionStatusLatestJobToTerraform;
function dataplexTaskExecutionStatusLatestJobToHclTerraform(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;
}
exports.dataplexTaskExecutionStatusLatestJobToHclTerraform = dataplexTaskExecutionStatusLatestJobToHclTerraform;
class DataplexTaskExecutionStatusLatestJobOutputReference 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;
}
}
// end_time - computed: true, optional: false, required: false
get endTime() {
return this.getStringAttribute('end_time');
}
// message - computed: true, optional: false, required: false
get message() {
return this.getStringAttribute('message');
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// retry_count - computed: true, optional: false, required: false
get retryCount() {
return this.getNumberAttribute('retry_count');
}
// service - computed: true, optional: false, required: false
get service() {
return this.getStringAttribute('service');
}
// service_job - computed: true, optional: false, required: false
get serviceJob() {
return this.getStringAttribute('service_job');
}
// start_time - computed: true, optional: false, required: false
get startTime() {
return this.getStringAttribute('start_time');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
// uid - computed: true, optional: false, required: false
get uid() {
return this.getStringAttribute('uid');
}
}
exports.DataplexTaskExecutionStatusLatestJobOutputReference = DataplexTaskExecutionStatusLatestJobOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataplexTaskExecutionStatusLatestJobOutputReference[_a] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskExecutionStatusLatestJobOutputReference", version: "14.12.0" };
class DataplexTaskExecutionStatusLatestJobList 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 DataplexTaskExecutionStatusLatestJobOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataplexTaskExecutionStatusLatestJobList = DataplexTaskExecutionStatusLatestJobList;
_b = JSII_RTTI_SYMBOL_1;
DataplexTaskExecutionStatusLatestJobList[_b] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskExecutionStatusLatestJobList", version: "14.12.0" };
function dataplexTaskExecutionStatusToTerraform(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 {};
}
exports.dataplexTaskExecutionStatusToTerraform = dataplexTaskExecutionStatusToTerraform;
function dataplexTaskExecutionStatusToHclTerraform(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;
}
exports.dataplexTaskExecutionStatusToHclTerraform = dataplexTaskExecutionStatusToHclTerraform;
class DataplexTaskExecutionStatusOutputReference 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;
// latest_job - computed: true, optional: false, required: false
this._latestJob = new DataplexTaskExecutionStatusLatestJobList(this, "latest_job", 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 latestJob() {
return this._latestJob;
}
// update_time - computed: true, optional: false, required: false
get updateTime() {
return this.getStringAttribute('update_time');
}
}
exports.DataplexTaskExecutionStatusOutputReference = DataplexTaskExecutionStatusOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataplexTaskExecutionStatusOutputReference[_c] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskExecutionStatusOutputReference", version: "14.12.0" };
class DataplexTaskExecutionStatusList 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 DataplexTaskExecutionStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataplexTaskExecutionStatusList = DataplexTaskExecutionStatusList;
_d = JSII_RTTI_SYMBOL_1;
DataplexTaskExecutionStatusList[_d] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskExecutionStatusList", version: "14.12.0" };
function dataplexTaskExecutionSpecToTerraform(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 {
args: cdktf.hashMapper(cdktf.stringToTerraform)(struct.args),
kms_key: cdktf.stringToTerraform(struct.kmsKey),
max_job_execution_lifetime: cdktf.stringToTerraform(struct.maxJobExecutionLifetime),
project: cdktf.stringToTerraform(struct.project),
service_account: cdktf.stringToTerraform(struct.serviceAccount),
};
}
exports.dataplexTaskExecutionSpecToTerraform = dataplexTaskExecutionSpecToTerraform;
function dataplexTaskExecutionSpecToHclTerraform(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 = {
args: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.args),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
kms_key: {
value: cdktf.stringToHclTerraform(struct.kmsKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
max_job_execution_lifetime: {
value: cdktf.stringToHclTerraform(struct.maxJobExecutionLifetime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
project: {
value: cdktf.stringToHclTerraform(struct.project),
isBlock: false,
type: "simple",
storageClassType: "string",
},
service_account: {
value: cdktf.stringToHclTerraform(struct.serviceAccount),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataplexTaskExecutionSpecToHclTerraform = dataplexTaskExecutionSpecToHclTerraform;
class DataplexTaskExecutionSpecOutputReference 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._args !== undefined) {
hasAnyValues = true;
internalValueResult.args = this._args;
}
if (this._kmsKey !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKey = this._kmsKey;
}
if (this._maxJobExecutionLifetime !== undefined) {
hasAnyValues = true;
internalValueResult.maxJobExecutionLifetime = this._maxJobExecutionLifetime;
}
if (this._project !== undefined) {
hasAnyValues = true;
internalValueResult.project = this._project;
}
if (this._serviceAccount !== undefined) {
hasAnyValues = true;
internalValueResult.serviceAccount = this._serviceAccount;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._args = undefined;
this._kmsKey = undefined;
this._maxJobExecutionLifetime = undefined;
this._project = undefined;
this._serviceAccount = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._args = value.args;
this._kmsKey = value.kmsKey;
this._maxJobExecutionLifetime = value.maxJobExecutionLifetime;
this._project = value.project;
this._serviceAccount = value.serviceAccount;
}
}
get args() {
return this.getStringMapAttribute('args');
}
set args(value) {
this._args = value;
}
resetArgs() {
this._args = undefined;
}
// Temporarily expose input value. Use with caution.
get argsInput() {
return this._args;
}
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 maxJobExecutionLifetime() {
return this.getStringAttribute('max_job_execution_lifetime');
}
set maxJobExecutionLifetime(value) {
this._maxJobExecutionLifetime = value;
}
resetMaxJobExecutionLifetime() {
this._maxJobExecutionLifetime = undefined;
}
// Temporarily expose input value. Use with caution.
get maxJobExecutionLifetimeInput() {
return this._maxJobExecutionLifetime;
}
get project() {
return this.getStringAttribute('project');
}
set project(value) {
this._project = value;
}
resetProject() {
this._project = undefined;
}
// Temporarily expose input value. Use with caution.
get projectInput() {
return this._project;
}
get serviceAccount() {
return this.getStringAttribute('service_account');
}
set serviceAccount(value) {
this._serviceAccount = value;
}
// Temporarily expose input value. Use with caution.
get serviceAccountInput() {
return this._serviceAccount;
}
}
exports.DataplexTaskExecutionSpecOutputReference = DataplexTaskExecutionSpecOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataplexTaskExecutionSpecOutputReference[_e] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskExecutionSpecOutputReference", version: "14.12.0" };
function dataplexTaskNotebookInfrastructureSpecBatchToTerraform(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 {
executors_count: cdktf.numberToTerraform(struct.executorsCount),
max_executors_count: cdktf.numberToTerraform(struct.maxExecutorsCount),
};
}
exports.dataplexTaskNotebookInfrastructureSpecBatchToTerraform = dataplexTaskNotebookInfrastructureSpecBatchToTerraform;
function dataplexTaskNotebookInfrastructureSpecBatchToHclTerraform(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 = {
executors_count: {
value: cdktf.numberToHclTerraform(struct.executorsCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
max_executors_count: {
value: cdktf.numberToHclTerraform(struct.maxExecutorsCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataplexTaskNotebookInfrastructureSpecBatchToHclTerraform = dataplexTaskNotebookInfrastructureSpecBatchToHclTerraform;
class DataplexTaskNotebookInfrastructureSpecBatchOutputReference 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._executorsCount !== undefined) {
hasAnyValues = true;
internalValueResult.executorsCount = this._executorsCount;
}
if (this._maxExecutorsCount !== undefined) {
hasAnyValues = true;
internalValueResult.maxExecutorsCount = this._maxExecutorsCount;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._executorsCount = undefined;
this._maxExecutorsCount = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._executorsCount = value.executorsCount;
this._maxExecutorsCount = value.maxExecutorsCount;
}
}
get executorsCount() {
return this.getNumberAttribute('executors_count');
}
set executorsCount(value) {
this._executorsCount = value;
}
resetExecutorsCount() {
this._executorsCount = undefined;
}
// Temporarily expose input value. Use with caution.
get executorsCountInput() {
return this._executorsCount;
}
get maxExecutorsCount() {
return this.getNumberAttribute('max_executors_count');
}
set maxExecutorsCount(value) {
this._maxExecutorsCount = value;
}
resetMaxExecutorsCount() {
this._maxExecutorsCount = undefined;
}
// Temporarily expose input value. Use with caution.
get maxExecutorsCountInput() {
return this._maxExecutorsCount;
}
}
exports.DataplexTaskNotebookInfrastructureSpecBatchOutputReference = DataplexTaskNotebookInfrastructureSpecBatchOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataplexTaskNotebookInfrastructureSpecBatchOutputReference[_f] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskNotebookInfrastructureSpecBatchOutputReference", version: "14.12.0" };
function dataplexTaskNotebookInfrastructureSpecContainerImageToTerraform(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 {
image: cdktf.stringToTerraform(struct.image),
java_jars: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.javaJars),
properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties),
python_packages: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.pythonPackages),
};
}
exports.dataplexTaskNotebookInfrastructureSpecContainerImageToTerraform = dataplexTaskNotebookInfrastructureSpecContainerImageToTerraform;
function dataplexTaskNotebookInfrastructureSpecContainerImageToHclTerraform(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 = {
image: {
value: cdktf.stringToHclTerraform(struct.image),
isBlock: false,
type: "simple",
storageClassType: "string",
},
java_jars: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.javaJars),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
properties: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
python_packages: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.pythonPackages),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataplexTaskNotebookInfrastructureSpecContainerImageToHclTerraform = dataplexTaskNotebookInfrastructureSpecContainerImageToHclTerraform;
class DataplexTaskNotebookInfrastructureSpecContainerImageOutputReference 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._image !== undefined) {
hasAnyValues = true;
internalValueResult.image = this._image;
}
if (this._javaJars !== undefined) {
hasAnyValues = true;
internalValueResult.javaJars = this._javaJars;
}
if (this._properties !== undefined) {
hasAnyValues = true;
internalValueResult.properties = this._properties;
}
if (this._pythonPackages !== undefined) {
hasAnyValues = true;
internalValueResult.pythonPackages = this._pythonPackages;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._image = undefined;
this._javaJars = undefined;
this._properties = undefined;
this._pythonPackages = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._image = value.image;
this._javaJars = value.javaJars;
this._properties = value.properties;
this._pythonPackages = value.pythonPackages;
}
}
get image() {
return this.getStringAttribute('image');
}
set image(value) {
this._image = value;
}
resetImage() {
this._image = undefined;
}
// Temporarily expose input value. Use with caution.
get imageInput() {
return this._image;
}
get javaJars() {
return this.getListAttribute('java_jars');
}
set javaJars(value) {
this._javaJars = value;
}
resetJavaJars() {
this._javaJars = undefined;
}
// Temporarily expose input value. Use with caution.
get javaJarsInput() {
return this._javaJars;
}
get properties() {
return this.getStringMapAttribute('properties');
}
set properties(value) {
this._properties = value;
}
resetProperties() {
this._properties = undefined;
}
// Temporarily expose input value. Use with caution.
get propertiesInput() {
return this._properties;
}
get pythonPackages() {
return this.getListAttribute('python_packages');
}
set pythonPackages(value) {
this._pythonPackages = value;
}
resetPythonPackages() {
this._pythonPackages = undefined;
}
// Temporarily expose input value. Use with caution.
get pythonPackagesInput() {
return this._pythonPackages;
}
}
exports.DataplexTaskNotebookInfrastructureSpecContainerImageOutputReference = DataplexTaskNotebookInfrastructureSpecContainerImageOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataplexTaskNotebookInfrastructureSpecContainerImageOutputReference[_g] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskNotebookInfrastructureSpecContainerImageOutputReference", version: "14.12.0" };
function dataplexTaskNotebookInfrastructureSpecVpcNetworkToTerraform(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 {
network: cdktf.stringToTerraform(struct.network),
network_tags: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.networkTags),
sub_network: cdktf.stringToTerraform(struct.subNetwork),
};
}
exports.dataplexTaskNotebookInfrastructureSpecVpcNetworkToTerraform = dataplexTaskNotebookInfrastructureSpecVpcNetworkToTerraform;
function dataplexTaskNotebookInfrastructureSpecVpcNetworkToHclTerraform(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 = {
network: {
value: cdktf.stringToHclTerraform(struct.network),
isBlock: false,
type: "simple",
storageClassType: "string",
},
network_tags: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.networkTags),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
sub_network: {
value: cdktf.stringToHclTerraform(struct.subNetwork),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataplexTaskNotebookInfrastructureSpecVpcNetworkToHclTerraform = dataplexTaskNotebookInfrastructureSpecVpcNetworkToHclTerraform;
class DataplexTaskNotebookInfrastructureSpecVpcNetworkOutputReference 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._network !== undefined) {
hasAnyValues = true;
internalValueResult.network = this._network;
}
if (this._networkTags !== undefined) {
hasAnyValues = true;
internalValueResult.networkTags = this._networkTags;
}
if (this._subNetwork !== undefined) {
hasAnyValues = true;
internalValueResult.subNetwork = this._subNetwork;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._network = undefined;
this._networkTags = undefined;
this._subNetwork = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._network = value.network;
this._networkTags = value.networkTags;
this._subNetwork = value.subNetwork;
}
}
get network() {
return this.getStringAttribute('network');
}
set network(value) {
this._network = value;
}
resetNetwork() {
this._network = undefined;
}
// Temporarily expose input value. Use with caution.
get networkInput() {
return this._network;
}
get networkTags() {
return this.getListAttribute('network_tags');
}
set networkTags(value) {
this._networkTags = value;
}
resetNetworkTags() {
this._networkTags = undefined;
}
// Temporarily expose input value. Use with caution.
get networkTagsInput() {
return this._networkTags;
}
get subNetwork() {
return this.getStringAttribute('sub_network');
}
set subNetwork(value) {
this._subNetwork = value;
}
resetSubNetwork() {
this._subNetwork = undefined;
}
// Temporarily expose input value. Use with caution.
get subNetworkInput() {
return this._subNetwork;
}
}
exports.DataplexTaskNotebookInfrastructureSpecVpcNetworkOutputReference = DataplexTaskNotebookInfrastructureSpecVpcNetworkOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DataplexTaskNotebookInfrastructureSpecVpcNetworkOutputReference[_h] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskNotebookInfrastructureSpecVpcNetworkOutputReference", version: "14.12.0" };
function dataplexTaskNotebookInfrastructureSpecToTerraform(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 {
batch: dataplexTaskNotebookInfrastructureSpecBatchToTerraform(struct.batch),
container_image: dataplexTaskNotebookInfrastructureSpecContainerImageToTerraform(struct.containerImage),
vpc_network: dataplexTaskNotebookInfrastructureSpecVpcNetworkToTerraform(struct.vpcNetwork),
};
}
exports.dataplexTaskNotebookInfrastructureSpecToTerraform = dataplexTaskNotebookInfrastructureSpecToTerraform;
function dataplexTaskNotebookInfrastructureSpecToHclTerraform(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 = {
batch: {
value: dataplexTaskNotebookInfrastructureSpecBatchToHclTerraform(struct.batch),
isBlock: true,
type: "list",
storageClassType: "DataplexTaskNotebookInfrastructureSpecBatchList",
},
container_image: {
value: dataplexTaskNotebookInfrastructureSpecContainerImageToHclTerraform(struct.containerImage),
isBlock: true,
type: "list",
storageClassType: "DataplexTaskNotebookInfrastructureSpecContainerImageList",
},
vpc_network: {
value: dataplexTaskNotebookInfrastructureSpecVpcNetworkToHclTerraform(struct.vpcNetwork),
isBlock: true,
type: "list",
storageClassType: "DataplexTaskNotebookInfrastructureSpecVpcNetworkList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataplexTaskNotebookInfrastructureSpecToHclTerraform = dataplexTaskNotebookInfrastructureSpecToHclTerraform;
class DataplexTaskNotebookInfrastructureSpecOutputReference 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;
// batch - computed: false, optional: true, required: false
this._batch = new DataplexTaskNotebookInfrastructureSpecBatchOutputReference(this, "batch");
// container_image - computed: false, optional: true, required: false
this._containerImage = new DataplexTaskNotebookInfrastructureSpecContainerImageOutputReference(this, "container_image");
// vpc_network - computed: false, optional: true, required: false
this._vpcNetwork = new DataplexTaskNotebookInfrastructureSpecVpcNetworkOutputReference(this, "vpc_network");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._batch?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.batch = this._batch?.internalValue;
}
if (this._containerImage?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.containerImage = this._containerImage?.internalValue;
}
if (this._vpcNetwork?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.vpcNetwork = this._vpcNetwork?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._batch.internalValue = undefined;
this._containerImage.internalValue = undefined;
this._vpcNetwork.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._batch.internalValue = value.batch;
this._containerImage.internalValue = value.containerImage;
this._vpcNetwork.internalValue = value.vpcNetwork;
}
}
get batch() {
return this._batch;
}
putBatch(value) {
this._batch.internalValue = value;
}
resetBatch() {
this._batch.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get batchInput() {
return this._batch.internalValue;
}
get containerImage() {
return this._containerImage;
}
putContainerImage(value) {
this._containerImage.internalValue = value;
}
resetContainerImage() {
this._containerImage.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get containerImageInput() {
return this._containerImage.internalValue;
}
get vpcNetwork() {
return this._vpcNetwork;
}
putVpcNetwork(value) {
this._vpcNetwork.internalValue = value;
}
resetVpcNetwork() {
this._vpcNetwork.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get vpcNetworkInput() {
return this._vpcNetwork.internalValue;
}
}
exports.DataplexTaskNotebookInfrastructureSpecOutputReference = DataplexTaskNotebookInfrastructureSpecOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataplexTaskNotebookInfrastructureSpecOutputReference[_j] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskNotebookInfrastructureSpecOutputReference", version: "14.12.0" };
function dataplexTaskNotebookToTerraform(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 {
archive_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.archiveUris),
file_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.fileUris),
notebook: cdktf.stringToTerraform(struct.notebook),
infrastructure_spec: dataplexTaskNotebookInfrastructureSpecToTerraform(struct.infrastructureSpec),
};
}
exports.dataplexTaskNotebookToTerraform = dataplexTaskNotebookToTerraform;
function dataplexTaskNotebookToHclTerraform(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 = {
archive_uris: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.archiveUris),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
file_uris: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.fileUris),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
notebook: {
value: cdktf.stringToHclTerraform(struct.notebook),
isBlock: false,
type: "simple",
storageClassType: "string",
},
infrastructure_spec: {
value: dataplexTaskNotebookInfrastructureSpecToHclTerraform(struct.infrastructureSpec),
isBlock: true,
type: "list",
storageClassType: "DataplexTaskNotebookInfrastructureSpecList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataplexTaskNotebookToHclTerraform = dataplexTaskNotebookToHclTerraform;
class DataplexTaskNotebookOutputReference 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;
// infrastructure_spec - computed: false, optional: true, required: false
this._infrastructureSpec = new DataplexTaskNotebookInfrastructureSpecOutputReference(this, "infrastructure_spec");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._archiveUris !== undefined) {
hasAnyValues = true;
internalValueResult.archiveUris = this._archiveUris;
}
if (this._fileUris !== undefined) {
hasAnyValues = true;
internalValueResult.fileUris = this._fileUris;
}
if (this._notebook !== undefined) {
hasAnyValues = true;
internalValueResult.notebook = this._notebook;
}
if (this._infrastructureSpec?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.infrastructureSpec = this._infrastructureSpec?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._archiveUris = undefined;
this._fileUris = undefined;
this._notebook = undefined;
this._infrastructureSpec.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._archiveUris = value.archiveUris;
this._fileUris = value.fileUris;
this._notebook = value.notebook;
this._infrastructureSpec.internalValue = value.infrastructureSpec;
}
}
get archiveUris() {
return this.getListAttribute('archive_uris');
}
set archiveUris(value) {
this._archiveUris = value;
}
resetArchiveUris() {
this._archiveUris = undefined;
}
// Temporarily expose input value. Use with caution.
get archiveUrisInput() {
return this._archiveUris;
}
get fileUris() {
return this.getListAttribute('file_uris');
}
set fileUris(value) {
this._fileUris = value;
}
resetFileUris() {
this._fileUris = undefined;
}
// Temporarily expose input value. Use with caution.
get fileUrisInput() {
return this._fileUris;
}
get notebook() {
return this.getStringAttribute('notebook');
}
set notebook(value) {
this._notebook = value;
}
// Temporarily expose input value. Use with caution.
get notebookInput() {
return this._notebook;
}
get infrastructureSpec() {
return this._infrastructureSpec;
}
putInfrastructureSpec(value) {
this._infrastructureSpec.internalValue = value;
}
resetInfrastructureSpec() {
this._infrastructureSpec.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get infrastructureSpecInput() {
return this._infrastructureSpec.internalValue;
}
}
exports.DataplexTaskNotebookOutputReference = DataplexTaskNotebookOutputReference;
_k = JSII_RTTI_SYMBOL_1;
DataplexTaskNotebookOutputReference[_k] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskNotebookOutputReference", version: "14.12.0" };
function dataplexTaskSparkInfrastructureSpecBatchToTerraform(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 {
executors_count: cdktf.numberToTerraform(struct.executorsCount),
max_executors_count: cdktf.numberToTerraform(struct.maxExecutorsCount),
};
}
exports.dataplexTaskSparkInfrastructureSpecBatchToTerraform = dataplexTaskSparkInfrastructureSpecBatchToTerraform;
function dataplexTaskSparkInfrastructureSpecBatchToHclTerraform(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 = {
executors_count: {
value: cdktf.numberToHclTerraform(struct.executorsCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
max_executors_count: {
value: cdktf.numberToHclTerraform(struct.maxExecutorsCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataplexTaskSparkInfrastructureSpecBatchToHclTerraform = dataplexTaskSparkInfrastructureSpecBatchToHclTerraform;
class DataplexTaskSparkInfrastructureSpecBatchOutputReference 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._executorsCount !== undefined) {
hasAnyValues = true;
internalValueResult.executorsCount = this._executorsCount;
}
if (this._maxExecutorsCount !== undefined) {
hasAnyValues = true;
internalValueResult.maxExecutorsCount = this._maxExecutorsCount;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._executorsCount = undefined;
this._maxExecutorsCount = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._executorsCount = value.executorsCount;
this._maxExecutorsCount = value.maxExecutorsCount;
}
}
get executorsCount() {
return this.getNumberAttribute('executors_count');
}
set executorsCount(value) {
this._executorsCount = value;
}
resetExecutorsCount() {
this._executorsCount = undefined;
}
// Temporarily expose input value. Use with caution.
get executorsCountInput() {
return this._executorsCount;
}
get maxExecutorsCount() {
return this.getNumberAttribute('max_executors_count');
}
set maxExecutorsCount(value) {
this._maxExecutorsCount = value;
}
resetMaxExecutorsCount() {
this._maxExecutorsCount = undefined;
}
// Temporarily expose input value. Use with caution.
get maxExecutorsCountInput() {
return this._maxExecutorsCount;
}
}
exports.DataplexTaskSparkInfrastructureSpecBatchOutputReference = DataplexTaskSparkInfrastructureSpecBatchOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataplexTaskSparkInfrastructureSpecBatchOutputReference[_l] = { fqn: "@cdktf/provider-google.dataplexTask.DataplexTaskSparkInfrastructureSpecBatchOutputReference", version: "14.12.0" };
function dataplexTaskSparkInfrastructureSpecContainerImageToTerraform(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 {
image: cdktf.stringToTerraform(struct.image),