UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,027 lines 517 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6; Object.defineProperty(exports, "__esModule", { value: true }); exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesSecretToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesVolumesHostPathOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesHostPathToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesHostPathToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesVolumesEmptyDirOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesEmptyDirToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesEmptyDirToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesMetadataOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesMetadataToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesMetadataToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersList = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersVolumeMountsList = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersVolumeMountsOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersVolumeMountsToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersVolumeMountsToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersSecurityContextOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersSecurityContextToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersSecurityContextToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersResourcesOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersResourcesToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersResourcesToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvList = exports.BatchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretList = exports.BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersList = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList = exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToTerraform = void 0; exports.BatchJobDefinition = exports.BatchJobDefinitionTimeoutOutputReference = exports.batchJobDefinitionTimeoutToHclTerraform = exports.batchJobDefinitionTimeoutToTerraform = exports.BatchJobDefinitionRetryStrategyOutputReference = exports.batchJobDefinitionRetryStrategyToHclTerraform = exports.batchJobDefinitionRetryStrategyToTerraform = exports.BatchJobDefinitionRetryStrategyEvaluateOnExitList = exports.BatchJobDefinitionRetryStrategyEvaluateOnExitOutputReference = exports.batchJobDefinitionRetryStrategyEvaluateOnExitToHclTerraform = exports.batchJobDefinitionRetryStrategyEvaluateOnExitToTerraform = exports.BatchJobDefinitionEksPropertiesOutputReference = exports.batchJobDefinitionEksPropertiesToHclTerraform = exports.batchJobDefinitionEksPropertiesToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesVolumesList = exports.BatchJobDefinitionEksPropertiesPodPropertiesVolumesOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesToHclTerraform = exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesToTerraform = exports.BatchJobDefinitionEksPropertiesPodPropertiesVolumesSecretOutputReference = exports.batchJobDefinitionEksPropertiesPodPropertiesVolumesSecretToHclTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToTerraform(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.stringToTerraform(struct.value), }; } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToTerraform; function batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToHclTerraform(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.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)); } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToHclTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToHclTerraform; class BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvOutputReference 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; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } 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.BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvOutputReference = BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvOutputReference; _a = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvOutputReference[_a] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvOutputReference", version: "19.50.0" }; class BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList 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 BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList = BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList; _b = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList[_b] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList", version: "19.50.0" }; function batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToTerraform(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 { limits: cdktf.hashMapper(cdktf.stringToTerraform)(struct.limits), requests: cdktf.hashMapper(cdktf.stringToTerraform)(struct.requests), }; } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToTerraform; function batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToHclTerraform(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 = { limits: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.limits), isBlock: false, type: "map", storageClassType: "stringMap", }, requests: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.requests), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToHclTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToHclTerraform; class BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesOutputReference 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._limits !== undefined) { hasAnyValues = true; internalValueResult.limits = this._limits; } if (this._requests !== undefined) { hasAnyValues = true; internalValueResult.requests = this._requests; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._limits = undefined; this._requests = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._limits = value.limits; this._requests = value.requests; } } get limits() { return this.getStringMapAttribute('limits'); } set limits(value) { this._limits = value; } resetLimits() { this._limits = undefined; } // Temporarily expose input value. Use with caution. get limitsInput() { return this._limits; } get requests() { return this.getStringMapAttribute('requests'); } set requests(value) { this._requests = value; } resetRequests() { this._requests = undefined; } // Temporarily expose input value. Use with caution. get requestsInput() { return this._requests; } } exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesOutputReference = BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesOutputReference; _c = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesOutputReference[_c] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesOutputReference", version: "19.50.0" }; function batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToTerraform(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 { privileged: cdktf.booleanToTerraform(struct.privileged), read_only_root_file_system: cdktf.booleanToTerraform(struct.readOnlyRootFileSystem), run_as_group: cdktf.numberToTerraform(struct.runAsGroup), run_as_non_root: cdktf.booleanToTerraform(struct.runAsNonRoot), run_as_user: cdktf.numberToTerraform(struct.runAsUser), }; } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToTerraform; function batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToHclTerraform(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 = { privileged: { value: cdktf.booleanToHclTerraform(struct.privileged), isBlock: false, type: "simple", storageClassType: "boolean", }, read_only_root_file_system: { value: cdktf.booleanToHclTerraform(struct.readOnlyRootFileSystem), isBlock: false, type: "simple", storageClassType: "boolean", }, run_as_group: { value: cdktf.numberToHclTerraform(struct.runAsGroup), isBlock: false, type: "simple", storageClassType: "number", }, run_as_non_root: { value: cdktf.booleanToHclTerraform(struct.runAsNonRoot), isBlock: false, type: "simple", storageClassType: "boolean", }, run_as_user: { value: cdktf.numberToHclTerraform(struct.runAsUser), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToHclTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToHclTerraform; class BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextOutputReference 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._privileged !== undefined) { hasAnyValues = true; internalValueResult.privileged = this._privileged; } if (this._readOnlyRootFileSystem !== undefined) { hasAnyValues = true; internalValueResult.readOnlyRootFileSystem = this._readOnlyRootFileSystem; } if (this._runAsGroup !== undefined) { hasAnyValues = true; internalValueResult.runAsGroup = this._runAsGroup; } if (this._runAsNonRoot !== undefined) { hasAnyValues = true; internalValueResult.runAsNonRoot = this._runAsNonRoot; } if (this._runAsUser !== undefined) { hasAnyValues = true; internalValueResult.runAsUser = this._runAsUser; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._privileged = undefined; this._readOnlyRootFileSystem = undefined; this._runAsGroup = undefined; this._runAsNonRoot = undefined; this._runAsUser = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._privileged = value.privileged; this._readOnlyRootFileSystem = value.readOnlyRootFileSystem; this._runAsGroup = value.runAsGroup; this._runAsNonRoot = value.runAsNonRoot; this._runAsUser = value.runAsUser; } } get privileged() { return this.getBooleanAttribute('privileged'); } set privileged(value) { this._privileged = value; } resetPrivileged() { this._privileged = undefined; } // Temporarily expose input value. Use with caution. get privilegedInput() { return this._privileged; } get readOnlyRootFileSystem() { return this.getBooleanAttribute('read_only_root_file_system'); } set readOnlyRootFileSystem(value) { this._readOnlyRootFileSystem = value; } resetReadOnlyRootFileSystem() { this._readOnlyRootFileSystem = undefined; } // Temporarily expose input value. Use with caution. get readOnlyRootFileSystemInput() { return this._readOnlyRootFileSystem; } get runAsGroup() { return this.getNumberAttribute('run_as_group'); } set runAsGroup(value) { this._runAsGroup = value; } resetRunAsGroup() { this._runAsGroup = undefined; } // Temporarily expose input value. Use with caution. get runAsGroupInput() { return this._runAsGroup; } get runAsNonRoot() { return this.getBooleanAttribute('run_as_non_root'); } set runAsNonRoot(value) { this._runAsNonRoot = value; } resetRunAsNonRoot() { this._runAsNonRoot = undefined; } // Temporarily expose input value. Use with caution. get runAsNonRootInput() { return this._runAsNonRoot; } get runAsUser() { return this.getNumberAttribute('run_as_user'); } set runAsUser(value) { this._runAsUser = value; } resetRunAsUser() { this._runAsUser = undefined; } // Temporarily expose input value. Use with caution. get runAsUserInput() { return this._runAsUser; } } exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextOutputReference = BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextOutputReference; _d = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextOutputReference[_d] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextOutputReference", version: "19.50.0" }; function batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToTerraform(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 { mount_path: cdktf.stringToTerraform(struct.mountPath), name: cdktf.stringToTerraform(struct.name), read_only: cdktf.booleanToTerraform(struct.readOnly), }; } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToTerraform; function batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToHclTerraform(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 = { mount_path: { value: cdktf.stringToHclTerraform(struct.mountPath), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, read_only: { value: cdktf.booleanToHclTerraform(struct.readOnly), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToHclTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToHclTerraform; class BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsOutputReference 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._mountPath !== undefined) { hasAnyValues = true; internalValueResult.mountPath = this._mountPath; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._readOnly !== undefined) { hasAnyValues = true; internalValueResult.readOnly = this._readOnly; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._mountPath = undefined; this._name = undefined; this._readOnly = 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._mountPath = value.mountPath; this._name = value.name; this._readOnly = value.readOnly; } } get mountPath() { return this.getStringAttribute('mount_path'); } set mountPath(value) { this._mountPath = value; } // Temporarily expose input value. Use with caution. get mountPathInput() { return this._mountPath; } 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 readOnly() { return this.getBooleanAttribute('read_only'); } set readOnly(value) { this._readOnly = value; } resetReadOnly() { this._readOnly = undefined; } // Temporarily expose input value. Use with caution. get readOnlyInput() { return this._readOnly; } } exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsOutputReference = BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsOutputReference; _e = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsOutputReference[_e] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsOutputReference", version: "19.50.0" }; class BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList 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 BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList = BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList; _f = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList[_f] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList", version: "19.50.0" }; function batchJobDefinitionEksPropertiesPodPropertiesContainersToTerraform(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), command: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.command), image: cdktf.stringToTerraform(struct.image), image_pull_policy: cdktf.stringToTerraform(struct.imagePullPolicy), name: cdktf.stringToTerraform(struct.name), env: cdktf.listMapper(batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToTerraform, true)(struct.env), resources: batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToTerraform(struct.resources), security_context: batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToTerraform(struct.securityContext), volume_mounts: cdktf.listMapper(batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToTerraform, true)(struct.volumeMounts), }; } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersToTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersToTerraform; function batchJobDefinitionEksPropertiesPodPropertiesContainersToHclTerraform(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", }, command: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.command), isBlock: false, type: "list", storageClassType: "stringList", }, image: { value: cdktf.stringToHclTerraform(struct.image), isBlock: false, type: "simple", storageClassType: "string", }, image_pull_policy: { value: cdktf.stringToHclTerraform(struct.imagePullPolicy), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, env: { value: cdktf.listMapperHcl(batchJobDefinitionEksPropertiesPodPropertiesContainersEnvToHclTerraform, true)(struct.env), isBlock: true, type: "set", storageClassType: "BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList", }, resources: { value: batchJobDefinitionEksPropertiesPodPropertiesContainersResourcesToHclTerraform(struct.resources), isBlock: true, type: "list", storageClassType: "BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesList", }, security_context: { value: batchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextToHclTerraform(struct.securityContext), isBlock: true, type: "list", storageClassType: "BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextList", }, volume_mounts: { value: cdktf.listMapperHcl(batchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsToHclTerraform, true)(struct.volumeMounts), isBlock: true, type: "list", storageClassType: "BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.batchJobDefinitionEksPropertiesPodPropertiesContainersToHclTerraform = batchJobDefinitionEksPropertiesPodPropertiesContainersToHclTerraform; class BatchJobDefinitionEksPropertiesPodPropertiesContainersOutputReference 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; // env - computed: false, optional: true, required: false this._env = new BatchJobDefinitionEksPropertiesPodPropertiesContainersEnvList(this, "env", true); // resources - computed: false, optional: true, required: false this._resources = new BatchJobDefinitionEksPropertiesPodPropertiesContainersResourcesOutputReference(this, "resources"); // security_context - computed: false, optional: true, required: false this._securityContext = new BatchJobDefinitionEksPropertiesPodPropertiesContainersSecurityContextOutputReference(this, "security_context"); // volume_mounts - computed: false, optional: true, required: false this._volumeMounts = new BatchJobDefinitionEksPropertiesPodPropertiesContainersVolumeMountsList(this, "volume_mounts", 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._command !== undefined) { hasAnyValues = true; internalValueResult.command = this._command; } if (this._image !== undefined) { hasAnyValues = true; internalValueResult.image = this._image; } if (this._imagePullPolicy !== undefined) { hasAnyValues = true; internalValueResult.imagePullPolicy = this._imagePullPolicy; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._env?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.env = this._env?.internalValue; } if (this._resources?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.resources = this._resources?.internalValue; } if (this._securityContext?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.securityContext = this._securityContext?.internalValue; } if (this._volumeMounts?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.volumeMounts = this._volumeMounts?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._args = undefined; this._command = undefined; this._image = undefined; this._imagePullPolicy = undefined; this._name = undefined; this._env.internalValue = undefined; this._resources.internalValue = undefined; this._securityContext.internalValue = undefined; this._volumeMounts.internalValue = 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._command = value.command; this._image = value.image; this._imagePullPolicy = value.imagePullPolicy; this._name = value.name; this._env.internalValue = value.env; this._resources.internalValue = value.resources; this._securityContext.internalValue = value.securityContext; this._volumeMounts.internalValue = value.volumeMounts; } } 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 command() { return this.getListAttribute('command'); } set command(value) { this._command = value; } resetCommand() { this._command = undefined; } // Temporarily expose input value. Use with caution. get commandInput() { return this._command; } get image() { return this.getStringAttribute('image'); } set image(value) { this._image = value; } // Temporarily expose input value. Use with caution. get imageInput() { return this._image; } get imagePullPolicy() { return this.getStringAttribute('image_pull_policy'); } set imagePullPolicy(value) { this._imagePullPolicy = value; } resetImagePullPolicy() { this._imagePullPolicy = undefined; } // Temporarily expose input value. Use with caution. get imagePullPolicyInput() { return this._imagePullPolicy; } 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 env() { return this._env; } putEnv(value) { this._env.internalValue = value; } resetEnv() { this._env.internalValue = undefined; } // Temporarily expose input value. Use with caution. get envInput() { return this._env.internalValue; } get resources() { return this._resources; } putResources(value) { this._resources.internalValue = value; } resetResources() { this._resources.internalValue = undefined; } // Temporarily expose input value. Use with caution. get resourcesInput() { return this._resources.internalValue; } get securityContext() { return this._securityContext; } putSecurityContext(value) { this._securityContext.internalValue = value; } resetSecurityContext() { this._securityContext.internalValue = undefined; } // Temporarily expose input value. Use with caution. get securityContextInput() { return this._securityContext.internalValue; } get volumeMounts() { return this._volumeMounts; } putVolumeMounts(value) { this._volumeMounts.internalValue = value; } resetVolumeMounts() { this._volumeMounts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get volumeMountsInput() { return this._volumeMounts.internalValue; } } exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersOutputReference = BatchJobDefinitionEksPropertiesPodPropertiesContainersOutputReference; _g = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersOutputReference[_g] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersOutputReference", version: "19.50.0" }; class BatchJobDefinitionEksPropertiesPodPropertiesContainersList 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 BatchJobDefinitionEksPropertiesPodPropertiesContainersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BatchJobDefinitionEksPropertiesPodPropertiesContainersList = BatchJobDefinitionEksPropertiesPodPropertiesContainersList; _h = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesContainersList[_h] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesContainersList", version: "19.50.0" }; function batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToTerraform(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), }; } exports.batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToTerraform = batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToTerraform; function batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToHclTerraform(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", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToHclTerraform = batchJobDefinitionEksPropertiesPodPropertiesImagePullSecretToHclTerraform; class BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretOutputReference 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; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = 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; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretOutputReference = BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretOutputReference; _j = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretOutputReference[_j] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretOutputReference", version: "19.50.0" }; class BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretList 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 BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretList = BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretList; _k = JSII_RTTI_SYMBOL_1; BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretList[_k] = { fqn: "@cdktf/provider-aws.batchJobDefinition.BatchJobDefinitionEksPropertiesPodPropertiesImagePullSecretList", version: "19.50.0" }; function batchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvToTerraform(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.stringToTerraform(struct.value), }; } exports.batchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvToTerraform = batchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvToTerraform; function batchJobDefinitionEksPropertiesPodPropertiesInitContainersEnvToHclTerraform(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: "str