@cdktf/provider-helm
Version:
Prebuilt helm Provider for Terraform CDK (cdktf)
1,394 lines (1,393 loc) • 245 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataHelmTemplate = exports.DataHelmTemplateTimeoutsOutputReference = exports.DataHelmTemplateSetWoList = exports.DataHelmTemplateSetWoOutputReference = exports.DataHelmTemplateSetSensitiveList = exports.DataHelmTemplateSetSensitiveOutputReference = exports.DataHelmTemplateSetListStructList = exports.DataHelmTemplateSetListStructOutputReference = exports.DataHelmTemplateSetList = exports.DataHelmTemplateSetOutputReference = exports.DataHelmTemplatePostrenderOutputReference = void 0;
exports.dataHelmTemplatePostrenderToTerraform = dataHelmTemplatePostrenderToTerraform;
exports.dataHelmTemplatePostrenderToHclTerraform = dataHelmTemplatePostrenderToHclTerraform;
exports.dataHelmTemplateSetToTerraform = dataHelmTemplateSetToTerraform;
exports.dataHelmTemplateSetToHclTerraform = dataHelmTemplateSetToHclTerraform;
exports.dataHelmTemplateSetListStructToTerraform = dataHelmTemplateSetListStructToTerraform;
exports.dataHelmTemplateSetListStructToHclTerraform = dataHelmTemplateSetListStructToHclTerraform;
exports.dataHelmTemplateSetSensitiveToTerraform = dataHelmTemplateSetSensitiveToTerraform;
exports.dataHelmTemplateSetSensitiveToHclTerraform = dataHelmTemplateSetSensitiveToHclTerraform;
exports.dataHelmTemplateSetWoToTerraform = dataHelmTemplateSetWoToTerraform;
exports.dataHelmTemplateSetWoToHclTerraform = dataHelmTemplateSetWoToHclTerraform;
exports.dataHelmTemplateTimeoutsToTerraform = dataHelmTemplateTimeoutsToTerraform;
exports.dataHelmTemplateTimeoutsToHclTerraform = dataHelmTemplateTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataHelmTemplatePostrenderToTerraform(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.listMapper(cdktf.stringToTerraform, false)(struct.args),
binary_path: cdktf.stringToTerraform(struct.binaryPath),
};
}
function dataHelmTemplatePostrenderToHclTerraform(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.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.args),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
binary_path: {
value: cdktf.stringToHclTerraform(struct.binaryPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataHelmTemplatePostrenderOutputReference 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);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._args !== undefined) {
hasAnyValues = true;
internalValueResult.args = this._args;
}
if (this._binaryPath !== undefined) {
hasAnyValues = true;
internalValueResult.binaryPath = this._binaryPath;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._args = undefined;
this._binaryPath = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._args = value.args;
this._binaryPath = value.binaryPath;
}
}
get args() {
return this.getListAttribute('args');
}
set args(value) {
this._args = value;
}
resetArgs() {
this._args = undefined;
}
// Temporarily expose input value. Use with caution.
get argsInput() {
return this._args;
}
get binaryPath() {
return this.getStringAttribute('binary_path');
}
set binaryPath(value) {
this._binaryPath = value;
}
// Temporarily expose input value. Use with caution.
get binaryPathInput() {
return this._binaryPath;
}
}
exports.DataHelmTemplatePostrenderOutputReference = DataHelmTemplatePostrenderOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataHelmTemplatePostrenderOutputReference[_a] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplatePostrenderOutputReference", version: "12.1.2" };
function dataHelmTemplateSetToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.stringToTerraform(struct.value),
};
}
function dataHelmTemplateSetToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataHelmTemplateSetOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._type = undefined;
this._value = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
this._type = value.type;
this._value = value.value;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
resetValue() {
this._value = undefined;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.DataHelmTemplateSetOutputReference = DataHelmTemplateSetOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetOutputReference[_b] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetOutputReference", version: "12.1.2" };
class DataHelmTemplateSetList 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 DataHelmTemplateSetOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataHelmTemplateSetList = DataHelmTemplateSetList;
_c = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetList[_c] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetList", version: "12.1.2" };
function dataHelmTemplateSetListStructToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
value: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.value),
};
}
function dataHelmTemplateSetListStructToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.value),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataHelmTemplateSetListStructOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._value = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
this._value = value.value;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get value() {
return this.getListAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.DataHelmTemplateSetListStructOutputReference = DataHelmTemplateSetListStructOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetListStructOutputReference[_d] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetListStructOutputReference", version: "12.1.2" };
class DataHelmTemplateSetListStructList 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 DataHelmTemplateSetListStructOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataHelmTemplateSetListStructList = DataHelmTemplateSetListStructList;
_e = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetListStructList[_e] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetListStructList", version: "12.1.2" };
function dataHelmTemplateSetSensitiveToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.stringToTerraform(struct.value),
};
}
function dataHelmTemplateSetSensitiveToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataHelmTemplateSetSensitiveOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._type = undefined;
this._value = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
this._type = value.type;
this._value = value.value;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.DataHelmTemplateSetSensitiveOutputReference = DataHelmTemplateSetSensitiveOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetSensitiveOutputReference[_f] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetSensitiveOutputReference", version: "12.1.2" };
class DataHelmTemplateSetSensitiveList 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 DataHelmTemplateSetSensitiveOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataHelmTemplateSetSensitiveList = DataHelmTemplateSetSensitiveList;
_g = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetSensitiveList[_g] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetSensitiveList", version: "12.1.2" };
function dataHelmTemplateSetWoToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.stringToTerraform(struct.value),
};
}
function dataHelmTemplateSetWoToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataHelmTemplateSetWoOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._type = undefined;
this._value = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._name = value.name;
this._type = value.type;
this._value = value.value;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.DataHelmTemplateSetWoOutputReference = DataHelmTemplateSetWoOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetWoOutputReference[_h] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetWoOutputReference", version: "12.1.2" };
class DataHelmTemplateSetWoList 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 DataHelmTemplateSetWoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataHelmTemplateSetWoList = DataHelmTemplateSetWoList;
_j = JSII_RTTI_SYMBOL_1;
DataHelmTemplateSetWoList[_j] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateSetWoList", version: "12.1.2" };
function dataHelmTemplateTimeoutsToTerraform(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 {
read: cdktf.stringToTerraform(struct.read),
};
}
function dataHelmTemplateTimeoutsToHclTerraform(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 = {
read: {
value: cdktf.stringToHclTerraform(struct.read),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class DataHelmTemplateTimeoutsOutputReference 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);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._read !== undefined) {
hasAnyValues = true;
internalValueResult.read = this._read;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._read = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._read = value.read;
}
}
get read() {
return this.getStringAttribute('read');
}
set read(value) {
this._read = value;
}
resetRead() {
this._read = undefined;
}
// Temporarily expose input value. Use with caution.
get readInput() {
return this._read;
}
}
exports.DataHelmTemplateTimeoutsOutputReference = DataHelmTemplateTimeoutsOutputReference;
_k = JSII_RTTI_SYMBOL_1;
DataHelmTemplateTimeoutsOutputReference[_k] = { fqn: "@cdktf/provider-helm.dataHelmTemplate.DataHelmTemplateTimeoutsOutputReference", version: "12.1.2" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/helm/3.1.1/docs/data-sources/template helm_template}
*/
class DataHelmTemplate extends cdktf.TerraformDataSource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataHelmTemplate resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the DataHelmTemplate to import
* @param importFromId The id of the existing DataHelmTemplate that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/helm/3.1.1/docs/data-sources/template#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataHelmTemplate to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "helm_template", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/helm/3.1.1/docs/data-sources/template helm_template} Data Source
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options DataHelmTemplateConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'helm_template',
terraformGeneratorMetadata: {
providerName: 'helm',
providerVersion: '3.1.1',
providerVersionConstraint: '~> 3.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// postrender - computed: false, optional: true, required: false
this._postrender = new DataHelmTemplatePostrenderOutputReference(this, "postrender");
// set - computed: false, optional: true, required: false
this._set = new DataHelmTemplateSetList(this, "set", true);
// set_list - computed: false, optional: true, required: false
this._setList = new DataHelmTemplateSetListStructList(this, "set_list", false);
// set_sensitive - computed: false, optional: true, required: false
this._setSensitive = new DataHelmTemplateSetSensitiveList(this, "set_sensitive", true);
// set_wo - computed: false, optional: true, required: false
this._setWo = new DataHelmTemplateSetWoList(this, "set_wo", false);
// timeouts - computed: false, optional: true, required: false
this._timeouts = new DataHelmTemplateTimeoutsOutputReference(this, "timeouts");
this._apiVersions = config.apiVersions;
this._atomic = config.atomic;
this._chart = config.chart;
this._crds = config.crds;
this._createNamespace = config.createNamespace;
this._dependencyUpdate = config.dependencyUpdate;
this._description = config.description;
this._devel = config.devel;
this._disableOpenapiValidation = config.disableOpenapiValidation;
this._disableWebhooks = config.disableWebhooks;
this._includeCrds = config.includeCrds;
this._isUpgrade = config.isUpgrade;
this._keyring = config.keyring;
this._kubeVersion = config.kubeVersion;
this._manifest = config.manifest;
this._manifests = config.manifests;
this._name = config.name;
this._namespace = config.namespace;
this._notes = config.notes;
this._passCredentials = config.passCredentials;
this._postrender.internalValue = config.postrender;
this._renderSubchartNotes = config.renderSubchartNotes;
this._replace = config.replace;
this._repository = config.repository;
this._repositoryCaFile = config.repositoryCaFile;
this._repositoryCertFile = config.repositoryCertFile;
this._repositoryKeyFile = config.repositoryKeyFile;
this._repositoryPassword = config.repositoryPassword;
this._repositoryUsername = config.repositoryUsername;
this._resetValues = config.resetValues;
this._reuseValues = config.reuseValues;
this._set.internalValue = config.set;
this._setList.internalValue = config.setList;
this._setSensitive.internalValue = config.setSensitive;
this._setWo.internalValue = config.setWo;
this._showOnly = config.showOnly;
this._skipCrds = config.skipCrds;
this._skipTests = config.skipTests;
this._timeout = config.timeout;
this._timeouts.internalValue = config.timeouts;
this._validate = config.validate;
this._values = config.values;
this._verify = config.verify;
this._version = config.version;
this._wait = config.wait;
}
get apiVersions() {
return this.getListAttribute('api_versions');
}
set apiVersions(value) {
this._apiVersions = value;
}
resetApiVersions() {
this._apiVersions = undefined;
}
// Temporarily expose input value. Use with caution.
get apiVersionsInput() {
return this._apiVersions;
}
get atomic() {
return this.getBooleanAttribute('atomic');
}
set atomic(value) {
this._atomic = value;
}
resetAtomic() {
this._atomic = undefined;
}
// Temporarily expose input value. Use with caution.
get atomicInput() {
return this._atomic;
}
get chart() {
return this.getStringAttribute('chart');
}
set chart(value) {
this._chart = value;
}
// Temporarily expose input value. Use with caution.
get chartInput() {
return this._chart;
}
get crds() {
return this.getListAttribute('crds');
}
set crds(value) {
this._crds = value;
}
resetCrds() {
this._crds = undefined;
}
// Temporarily expose input value. Use with caution.
get crdsInput() {
return this._crds;
}
get createNamespace() {
return this.getBooleanAttribute('create_namespace');
}
set createNamespace(value) {
this._createNamespace = value;
}
resetCreateNamespace() {
this._createNamespace = undefined;
}
// Temporarily expose input value. Use with caution.
get createNamespaceInput() {
return this._createNamespace;
}
get dependencyUpdate() {
return this.getBooleanAttribute('dependency_update');
}
set dependencyUpdate(value) {
this._dependencyUpdate = value;
}
resetDependencyUpdate() {
this._dependencyUpdate = undefined;
}
// Temporarily expose input value. Use with caution.
get dependencyUpdateInput() {
return this._dependencyUpdate;
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
get devel() {
return this.getBooleanAttribute('devel');
}
set devel(value) {
this._devel = value;
}
resetDevel() {
this._devel = undefined;
}
// Temporarily expose input value. Use with caution.
get develInput() {
return this._devel;
}
get disableOpenapiValidation() {
return this.getBooleanAttribute('disable_openapi_validation');
}
set disableOpenapiValidation(value) {
this._disableOpenapiValidation = value;
}
resetDisableOpenapiValidation() {
this._disableOpenapiValidation = undefined;
}
// Temporarily expose input value. Use with caution.
get disableOpenapiValidationInput() {
return this._disableOpenapiValidation;
}
get disableWebhooks() {
return this.getBooleanAttribute('disable_webhooks');
}
set disableWebhooks(value) {
this._disableWebhooks = value;
}
resetDisableWebhooks() {
this._disableWebhooks = undefined;
}
// Temporarily expose input value. Use with caution.
get disableWebhooksInput() {
return this._disableWebhooks;
}
// id - computed: true, optional: false, required: false
get id() {
return this.getStringAttribute('id');
}
get includeCrds() {
return this.getBooleanAttribute('include_crds');
}
set includeCrds(value) {
this._includeCrds = value;
}
resetIncludeCrds() {
this._includeCrds = undefined;
}
// Temporarily expose input value. Use with caution.
get includeCrdsInput() {
return this._includeCrds;
}
get isUpgrade() {
return this.getBooleanAttribute('is_upgrade');
}
set isUpgrade(value) {
this._isUpgrade = value;
}
resetIsUpgrade() {
this._isUpgrade = undefined;
}
// Temporarily expose input value. Use with caution.
get isUpgradeInput() {
return this._isUpgrade;
}
get keyring() {
return this.getStringAttribute('keyring');
}
set keyring(value) {
this._keyring = value;
}
resetKeyring() {
this._keyring = undefined;
}
// Temporarily expose input value. Use with caution.
get keyringInput() {
return this._keyring;
}
get kubeVersion() {
return this.getStringAttribute('kube_version');
}
set kubeVersion(value) {
this._kubeVersion = value;
}
resetKubeVersion() {
this._kubeVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get kubeVersionInput() {
return this._kubeVersion;
}
get manifest() {
return this.getStringAttribute('manifest');
}
set manifest(value) {
this._manifest = value;
}
resetManifest() {
this._manifest = undefined;
}
// Temporarily expose input value. Use with caution.
get manifestInput() {
return this._manifest;
}
get manifests() {
return this.getStringMapAttribute('manifests');
}
set manifests(value) {
this._manifests = value;
}
resetManifests() {
this._manifests = undefined;
}
// Temporarily expose input value. Use with caution.
get manifestsInput() {
return this._manifests;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get namespace() {
return this.getStringAttribute('namespace');
}
set namespace(value) {
this._namespace = value;
}
resetNamespace() {
this._namespace = undefined;
}
// Temporarily expose input value. Use with caution.
get namespaceInput() {
return this._namespace;
}
get notes() {
return this.getStringAttribute('notes');
}
set notes(value) {
this._notes = value;
}
resetNotes() {
this._notes = undefined;
}
// Temporarily expose input value. Use with caution.
get notesInput() {
return this._notes;
}
get passCredentials() {
return this.getBooleanAttribute('pass_credentials');
}
set passCredentials(value) {
this._passCredentials = value;
}
resetPassCredentials() {
this._passCredentials = undefined;
}
// Temporarily expose input value. Use with caution.
get passCredentialsInput() {
return this._passCredentials;
}
get postrender() {
return this._postrender;
}
putPostrender(value) {
this._postrender.internalValue = value;
}
resetPostrender() {
this._postrender.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get postrenderInput() {
return this._postrender.internalValue;
}
get renderSubchartNotes() {
return this.getBooleanAttribute('render_subchart_notes');
}
set renderSubchartNotes(value) {
this._renderSubchartNotes = value;
}
resetRenderSubchartNotes() {
this._renderSubchartNotes = undefined;
}
// Temporarily expose input value. Use with caution.
get renderSubchartNotesInput() {
return this._renderSubchartNotes;
}
get replace() {
return this.getBooleanAttribute('replace');
}
set replace(value) {
this._replace = value;
}
resetReplace() {
this._replace = undefined;
}
// Temporarily expose input value. Use with caution.
get replaceInput() {
return this._replace;
}
get repository() {
return this.getStringAttribute('repository');
}
set repository(value) {
this._repository = value;
}
resetRepository() {
this._repository = undefined;
}
// Temporarily expose input value. Use with caution.
get repositoryInput() {
return this._repository;
}
get repositoryCaFile() {
return this.getStringAttribute('repository_ca_file');
}
set repositoryCaFile(value) {
this._repositoryCaFile = value;
}
resetRepositoryCaFile() {
this._repositoryCaFile = undefined;
}
// Temporarily expose input value. Use with caution.
get repositoryCaFileInput() {
return this._repositoryCaFile;
}
get repositoryCertFile() {
return this.getStringAttribute('repository_cert_file');
}
set repositoryCertFile(value) {
this._repositoryCertFile = value;
}
resetRepositoryCertFile() {
this._repositoryCertFile = undefined;
}
// Temporarily expose input value. Use with caution.
get repositoryCertFileInput() {
return this._repositoryCertFile;
}
get repositoryKeyFile() {
return this.getStringAttribute('repository_key_file');
}
set repositoryKeyFile(value) {
this._repositoryKeyFile = value;
}
resetRepositoryKeyFile() {
this._repositoryKeyFile = undefined;
}
// Temporarily expose input value. Use with caution.
get repositoryKeyFileInput() {
return this._repositoryKeyFile;
}
get repositoryPassword() {
return this.getStringAttribute('repository_password');
}
set repositoryPassword(value) {
this._repositoryPassword = value;
}
resetRepositoryPassword() {
this._repositoryPassword = undefined;
}
// Temporarily expose input value. Use with caution.
get repositoryPasswordInput() {
return this._repositoryPassword;
}
get repositoryUsername() {
return this.getStringAttribute('repository_username');
}
set repositoryUsername(value) {
this._repositoryUsername = value;
}
resetRepositoryUsername() {
this._repositoryUsername = undefined;
}
// Temporarily expose input value. Use with caution.
get repositoryUsernameInput() {
return this._repositoryUsername;
}
get resetValues() {
return this.getBooleanAttribute('reset_values');
}
set resetValues(value) {
this._resetValues = value;
}
resetResetValues() {
this._resetValues = undefined;
}
// Temporarily expose input value. Use with caution.
get resetValuesInput() {
return this._resetValues;
}
get reuseValues() {
return this.getBooleanAttribute('reuse_values');
}
set reuseValues(value) {
this._reuseValues = value;
}
resetReuseValues() {
this._reuseValues = undefined;
}
// Temporarily expose input value. Use with caution.
get reuseValuesInput() {
return this._reuseValues;
}
get set() {
return this._set;
}
putSet(value) {
this._set.internalValue = value;
}
resetSet() {
this._set.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get setInput() {
return this._set.internalValue;
}
get setList() {
return this._setList;
}
putSetList(value) {
this._setList.internalValue = value;
}
resetSetList() {
this._setList.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get setListInput() {
return this._setList.internalValue;
}
get setSensitive() {
return this._setSensitive;
}
putSetSensitive(value) {
this._setSensitive.internalValue = value;
}
resetSetSensitive() {
this._setSensitive.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get setSensitiveInput() {
return this._setSensitive.internalValue;
}
get setWo() {
return this._setWo;
}
putSetWo(value) {
this._setWo.internalValue = value;
}
resetSetWo() {
this._setWo.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get setWoInput() {
return this._setWo.internalValue;
}
get showOnly() {
return this.getListAttribute('show_only');
}
set showOnly(value) {
this._showOnly = value;
}
resetShowOnly() {
this._showOnly = undefined;
}
// Temporarily expose input value. Use with caution.
get showOnlyInput() {
return this._showOnly;
}
get skipCrds() {
return this.getBooleanAttribute('skip_crds');
}
set skipCrds(value) {
this._skipCrds = value;
}
resetSkipCrds() {
this._skipCrds = undefined;
}
// Temporarily expose input value. Use with caution.
get skipCrdsInput() {
return this._skipCrds;
}
get skipTests() {
return this.getBooleanAttribute('skip_tests');
}
set skipTests(value) {
this._skipTests = value;
}
resetSkipTests() {
this._skipTests = undefined;
}
// Temporarily expose input value. Use with caution.
get skipTestsInput() {
return this._skipTests;
}
get timeout() {