UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,064 lines (1,063 loc) 198 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; Object.defineProperty(exports, "__esModule", { value: true }); exports.SagemakerAppImageConfig = exports.SagemakerAppImageConfigKernelGatewayImageConfigOutputReference = exports.sagemakerAppImageConfigKernelGatewayImageConfigToHclTerraform = exports.sagemakerAppImageConfigKernelGatewayImageConfigToTerraform = exports.SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList = exports.SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecOutputReference = exports.sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToHclTerraform = exports.sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToTerraform = exports.SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigOutputReference = exports.sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToHclTerraform = exports.sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToTerraform = exports.SagemakerAppImageConfigJupyterLabImageConfigOutputReference = exports.sagemakerAppImageConfigJupyterLabImageConfigToHclTerraform = exports.sagemakerAppImageConfigJupyterLabImageConfigToTerraform = exports.SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigOutputReference = exports.sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToHclTerraform = exports.sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToTerraform = exports.SagemakerAppImageConfigJupyterLabImageConfigContainerConfigOutputReference = exports.sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToHclTerraform = exports.sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToTerraform = exports.SagemakerAppImageConfigCodeEditorAppImageConfigOutputReference = exports.sagemakerAppImageConfigCodeEditorAppImageConfigToHclTerraform = exports.sagemakerAppImageConfigCodeEditorAppImageConfigToTerraform = exports.SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigOutputReference = exports.sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToHclTerraform = exports.sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToTerraform = exports.SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigOutputReference = exports.sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToHclTerraform = exports.sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToTerraform(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 { container_arguments: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.containerArguments), container_entrypoint: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.containerEntrypoint), container_environment_variables: cdktf.hashMapper(cdktf.stringToTerraform)(struct.containerEnvironmentVariables), }; } exports.sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToTerraform = sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToTerraform; function sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToHclTerraform(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 = { container_arguments: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.containerArguments), isBlock: false, type: "list", storageClassType: "stringList", }, container_entrypoint: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.containerEntrypoint), isBlock: false, type: "list", storageClassType: "stringList", }, container_environment_variables: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.containerEnvironmentVariables), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToHclTerraform = sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToHclTerraform; class SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigOutputReference 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._containerArguments !== undefined) { hasAnyValues = true; internalValueResult.containerArguments = this._containerArguments; } if (this._containerEntrypoint !== undefined) { hasAnyValues = true; internalValueResult.containerEntrypoint = this._containerEntrypoint; } if (this._containerEnvironmentVariables !== undefined) { hasAnyValues = true; internalValueResult.containerEnvironmentVariables = this._containerEnvironmentVariables; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._containerArguments = undefined; this._containerEntrypoint = undefined; this._containerEnvironmentVariables = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._containerArguments = value.containerArguments; this._containerEntrypoint = value.containerEntrypoint; this._containerEnvironmentVariables = value.containerEnvironmentVariables; } } get containerArguments() { return this.getListAttribute('container_arguments'); } set containerArguments(value) { this._containerArguments = value; } resetContainerArguments() { this._containerArguments = undefined; } // Temporarily expose input value. Use with caution. get containerArgumentsInput() { return this._containerArguments; } get containerEntrypoint() { return this.getListAttribute('container_entrypoint'); } set containerEntrypoint(value) { this._containerEntrypoint = value; } resetContainerEntrypoint() { this._containerEntrypoint = undefined; } // Temporarily expose input value. Use with caution. get containerEntrypointInput() { return this._containerEntrypoint; } get containerEnvironmentVariables() { return this.getStringMapAttribute('container_environment_variables'); } set containerEnvironmentVariables(value) { this._containerEnvironmentVariables = value; } resetContainerEnvironmentVariables() { this._containerEnvironmentVariables = undefined; } // Temporarily expose input value. Use with caution. get containerEnvironmentVariablesInput() { return this._containerEnvironmentVariables; } } exports.SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigOutputReference = SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigOutputReference[_a] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigOutputReference", version: "19.50.0" }; function sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToTerraform(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 { default_gid: cdktf.numberToTerraform(struct.defaultGid), default_uid: cdktf.numberToTerraform(struct.defaultUid), mount_path: cdktf.stringToTerraform(struct.mountPath), }; } exports.sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToTerraform = sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToTerraform; function sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToHclTerraform(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 = { default_gid: { value: cdktf.numberToHclTerraform(struct.defaultGid), isBlock: false, type: "simple", storageClassType: "number", }, default_uid: { value: cdktf.numberToHclTerraform(struct.defaultUid), isBlock: false, type: "simple", storageClassType: "number", }, mount_path: { value: cdktf.stringToHclTerraform(struct.mountPath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToHclTerraform = sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToHclTerraform; class SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigOutputReference 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._defaultGid !== undefined) { hasAnyValues = true; internalValueResult.defaultGid = this._defaultGid; } if (this._defaultUid !== undefined) { hasAnyValues = true; internalValueResult.defaultUid = this._defaultUid; } if (this._mountPath !== undefined) { hasAnyValues = true; internalValueResult.mountPath = this._mountPath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._defaultGid = undefined; this._defaultUid = undefined; this._mountPath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._defaultGid = value.defaultGid; this._defaultUid = value.defaultUid; this._mountPath = value.mountPath; } } get defaultGid() { return this.getNumberAttribute('default_gid'); } set defaultGid(value) { this._defaultGid = value; } resetDefaultGid() { this._defaultGid = undefined; } // Temporarily expose input value. Use with caution. get defaultGidInput() { return this._defaultGid; } get defaultUid() { return this.getNumberAttribute('default_uid'); } set defaultUid(value) { this._defaultUid = value; } resetDefaultUid() { this._defaultUid = undefined; } // Temporarily expose input value. Use with caution. get defaultUidInput() { return this._defaultUid; } get mountPath() { return this.getStringAttribute('mount_path'); } set mountPath(value) { this._mountPath = value; } resetMountPath() { this._mountPath = undefined; } // Temporarily expose input value. Use with caution. get mountPathInput() { return this._mountPath; } } exports.SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigOutputReference = SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigOutputReference; _b = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigOutputReference[_b] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigOutputReference", version: "19.50.0" }; function sagemakerAppImageConfigCodeEditorAppImageConfigToTerraform(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 { container_config: sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToTerraform(struct.containerConfig), file_system_config: sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToTerraform(struct.fileSystemConfig), }; } exports.sagemakerAppImageConfigCodeEditorAppImageConfigToTerraform = sagemakerAppImageConfigCodeEditorAppImageConfigToTerraform; function sagemakerAppImageConfigCodeEditorAppImageConfigToHclTerraform(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 = { container_config: { value: sagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigToHclTerraform(struct.containerConfig), isBlock: true, type: "list", storageClassType: "SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigList", }, file_system_config: { value: sagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigToHclTerraform(struct.fileSystemConfig), isBlock: true, type: "list", storageClassType: "SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigCodeEditorAppImageConfigToHclTerraform = sagemakerAppImageConfigCodeEditorAppImageConfigToHclTerraform; class SagemakerAppImageConfigCodeEditorAppImageConfigOutputReference 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; // container_config - computed: false, optional: true, required: false this._containerConfig = new SagemakerAppImageConfigCodeEditorAppImageConfigContainerConfigOutputReference(this, "container_config"); // file_system_config - computed: false, optional: true, required: false this._fileSystemConfig = new SagemakerAppImageConfigCodeEditorAppImageConfigFileSystemConfigOutputReference(this, "file_system_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._containerConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.containerConfig = this._containerConfig?.internalValue; } if (this._fileSystemConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.fileSystemConfig = this._fileSystemConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._containerConfig.internalValue = undefined; this._fileSystemConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._containerConfig.internalValue = value.containerConfig; this._fileSystemConfig.internalValue = value.fileSystemConfig; } } get containerConfig() { return this._containerConfig; } putContainerConfig(value) { this._containerConfig.internalValue = value; } resetContainerConfig() { this._containerConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get containerConfigInput() { return this._containerConfig.internalValue; } get fileSystemConfig() { return this._fileSystemConfig; } putFileSystemConfig(value) { this._fileSystemConfig.internalValue = value; } resetFileSystemConfig() { this._fileSystemConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get fileSystemConfigInput() { return this._fileSystemConfig.internalValue; } } exports.SagemakerAppImageConfigCodeEditorAppImageConfigOutputReference = SagemakerAppImageConfigCodeEditorAppImageConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigCodeEditorAppImageConfigOutputReference[_c] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigCodeEditorAppImageConfigOutputReference", version: "19.50.0" }; function sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToTerraform(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 { container_arguments: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.containerArguments), container_entrypoint: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.containerEntrypoint), container_environment_variables: cdktf.hashMapper(cdktf.stringToTerraform)(struct.containerEnvironmentVariables), }; } exports.sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToTerraform = sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToTerraform; function sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToHclTerraform(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 = { container_arguments: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.containerArguments), isBlock: false, type: "list", storageClassType: "stringList", }, container_entrypoint: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.containerEntrypoint), isBlock: false, type: "list", storageClassType: "stringList", }, container_environment_variables: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.containerEnvironmentVariables), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToHclTerraform = sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToHclTerraform; class SagemakerAppImageConfigJupyterLabImageConfigContainerConfigOutputReference 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._containerArguments !== undefined) { hasAnyValues = true; internalValueResult.containerArguments = this._containerArguments; } if (this._containerEntrypoint !== undefined) { hasAnyValues = true; internalValueResult.containerEntrypoint = this._containerEntrypoint; } if (this._containerEnvironmentVariables !== undefined) { hasAnyValues = true; internalValueResult.containerEnvironmentVariables = this._containerEnvironmentVariables; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._containerArguments = undefined; this._containerEntrypoint = undefined; this._containerEnvironmentVariables = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._containerArguments = value.containerArguments; this._containerEntrypoint = value.containerEntrypoint; this._containerEnvironmentVariables = value.containerEnvironmentVariables; } } get containerArguments() { return this.getListAttribute('container_arguments'); } set containerArguments(value) { this._containerArguments = value; } resetContainerArguments() { this._containerArguments = undefined; } // Temporarily expose input value. Use with caution. get containerArgumentsInput() { return this._containerArguments; } get containerEntrypoint() { return this.getListAttribute('container_entrypoint'); } set containerEntrypoint(value) { this._containerEntrypoint = value; } resetContainerEntrypoint() { this._containerEntrypoint = undefined; } // Temporarily expose input value. Use with caution. get containerEntrypointInput() { return this._containerEntrypoint; } get containerEnvironmentVariables() { return this.getStringMapAttribute('container_environment_variables'); } set containerEnvironmentVariables(value) { this._containerEnvironmentVariables = value; } resetContainerEnvironmentVariables() { this._containerEnvironmentVariables = undefined; } // Temporarily expose input value. Use with caution. get containerEnvironmentVariablesInput() { return this._containerEnvironmentVariables; } } exports.SagemakerAppImageConfigJupyterLabImageConfigContainerConfigOutputReference = SagemakerAppImageConfigJupyterLabImageConfigContainerConfigOutputReference; _d = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigJupyterLabImageConfigContainerConfigOutputReference[_d] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigJupyterLabImageConfigContainerConfigOutputReference", version: "19.50.0" }; function sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToTerraform(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 { default_gid: cdktf.numberToTerraform(struct.defaultGid), default_uid: cdktf.numberToTerraform(struct.defaultUid), mount_path: cdktf.stringToTerraform(struct.mountPath), }; } exports.sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToTerraform = sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToTerraform; function sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToHclTerraform(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 = { default_gid: { value: cdktf.numberToHclTerraform(struct.defaultGid), isBlock: false, type: "simple", storageClassType: "number", }, default_uid: { value: cdktf.numberToHclTerraform(struct.defaultUid), isBlock: false, type: "simple", storageClassType: "number", }, mount_path: { value: cdktf.stringToHclTerraform(struct.mountPath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToHclTerraform = sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToHclTerraform; class SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigOutputReference 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._defaultGid !== undefined) { hasAnyValues = true; internalValueResult.defaultGid = this._defaultGid; } if (this._defaultUid !== undefined) { hasAnyValues = true; internalValueResult.defaultUid = this._defaultUid; } if (this._mountPath !== undefined) { hasAnyValues = true; internalValueResult.mountPath = this._mountPath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._defaultGid = undefined; this._defaultUid = undefined; this._mountPath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._defaultGid = value.defaultGid; this._defaultUid = value.defaultUid; this._mountPath = value.mountPath; } } get defaultGid() { return this.getNumberAttribute('default_gid'); } set defaultGid(value) { this._defaultGid = value; } resetDefaultGid() { this._defaultGid = undefined; } // Temporarily expose input value. Use with caution. get defaultGidInput() { return this._defaultGid; } get defaultUid() { return this.getNumberAttribute('default_uid'); } set defaultUid(value) { this._defaultUid = value; } resetDefaultUid() { this._defaultUid = undefined; } // Temporarily expose input value. Use with caution. get defaultUidInput() { return this._defaultUid; } get mountPath() { return this.getStringAttribute('mount_path'); } set mountPath(value) { this._mountPath = value; } resetMountPath() { this._mountPath = undefined; } // Temporarily expose input value. Use with caution. get mountPathInput() { return this._mountPath; } } exports.SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigOutputReference = SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigOutputReference[_e] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigOutputReference", version: "19.50.0" }; function sagemakerAppImageConfigJupyterLabImageConfigToTerraform(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 { container_config: sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToTerraform(struct.containerConfig), file_system_config: sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToTerraform(struct.fileSystemConfig), }; } exports.sagemakerAppImageConfigJupyterLabImageConfigToTerraform = sagemakerAppImageConfigJupyterLabImageConfigToTerraform; function sagemakerAppImageConfigJupyterLabImageConfigToHclTerraform(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 = { container_config: { value: sagemakerAppImageConfigJupyterLabImageConfigContainerConfigToHclTerraform(struct.containerConfig), isBlock: true, type: "list", storageClassType: "SagemakerAppImageConfigJupyterLabImageConfigContainerConfigList", }, file_system_config: { value: sagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigToHclTerraform(struct.fileSystemConfig), isBlock: true, type: "list", storageClassType: "SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigJupyterLabImageConfigToHclTerraform = sagemakerAppImageConfigJupyterLabImageConfigToHclTerraform; class SagemakerAppImageConfigJupyterLabImageConfigOutputReference 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; // container_config - computed: false, optional: true, required: false this._containerConfig = new SagemakerAppImageConfigJupyterLabImageConfigContainerConfigOutputReference(this, "container_config"); // file_system_config - computed: false, optional: true, required: false this._fileSystemConfig = new SagemakerAppImageConfigJupyterLabImageConfigFileSystemConfigOutputReference(this, "file_system_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._containerConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.containerConfig = this._containerConfig?.internalValue; } if (this._fileSystemConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.fileSystemConfig = this._fileSystemConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._containerConfig.internalValue = undefined; this._fileSystemConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._containerConfig.internalValue = value.containerConfig; this._fileSystemConfig.internalValue = value.fileSystemConfig; } } get containerConfig() { return this._containerConfig; } putContainerConfig(value) { this._containerConfig.internalValue = value; } resetContainerConfig() { this._containerConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get containerConfigInput() { return this._containerConfig.internalValue; } get fileSystemConfig() { return this._fileSystemConfig; } putFileSystemConfig(value) { this._fileSystemConfig.internalValue = value; } resetFileSystemConfig() { this._fileSystemConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get fileSystemConfigInput() { return this._fileSystemConfig.internalValue; } } exports.SagemakerAppImageConfigJupyterLabImageConfigOutputReference = SagemakerAppImageConfigJupyterLabImageConfigOutputReference; _f = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigJupyterLabImageConfigOutputReference[_f] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigJupyterLabImageConfigOutputReference", version: "19.50.0" }; function sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToTerraform(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 { default_gid: cdktf.numberToTerraform(struct.defaultGid), default_uid: cdktf.numberToTerraform(struct.defaultUid), mount_path: cdktf.stringToTerraform(struct.mountPath), }; } exports.sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToTerraform = sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToTerraform; function sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToHclTerraform(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 = { default_gid: { value: cdktf.numberToHclTerraform(struct.defaultGid), isBlock: false, type: "simple", storageClassType: "number", }, default_uid: { value: cdktf.numberToHclTerraform(struct.defaultUid), isBlock: false, type: "simple", storageClassType: "number", }, mount_path: { value: cdktf.stringToHclTerraform(struct.mountPath), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToHclTerraform = sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToHclTerraform; class SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigOutputReference 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._defaultGid !== undefined) { hasAnyValues = true; internalValueResult.defaultGid = this._defaultGid; } if (this._defaultUid !== undefined) { hasAnyValues = true; internalValueResult.defaultUid = this._defaultUid; } if (this._mountPath !== undefined) { hasAnyValues = true; internalValueResult.mountPath = this._mountPath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._defaultGid = undefined; this._defaultUid = undefined; this._mountPath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._defaultGid = value.defaultGid; this._defaultUid = value.defaultUid; this._mountPath = value.mountPath; } } get defaultGid() { return this.getNumberAttribute('default_gid'); } set defaultGid(value) { this._defaultGid = value; } resetDefaultGid() { this._defaultGid = undefined; } // Temporarily expose input value. Use with caution. get defaultGidInput() { return this._defaultGid; } get defaultUid() { return this.getNumberAttribute('default_uid'); } set defaultUid(value) { this._defaultUid = value; } resetDefaultUid() { this._defaultUid = undefined; } // Temporarily expose input value. Use with caution. get defaultUidInput() { return this._defaultUid; } get mountPath() { return this.getStringAttribute('mount_path'); } set mountPath(value) { this._mountPath = value; } resetMountPath() { this._mountPath = undefined; } // Temporarily expose input value. Use with caution. get mountPathInput() { return this._mountPath; } } exports.SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigOutputReference = SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigOutputReference; _g = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigOutputReference[_g] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigOutputReference", version: "19.50.0" }; function sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToTerraform(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 { display_name: cdktf.stringToTerraform(struct.displayName), name: cdktf.stringToTerraform(struct.name), }; } exports.sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToTerraform = sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToTerraform; function sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToHclTerraform(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 = { display_name: { value: cdktf.stringToHclTerraform(struct.displayName), isBlock: false, type: "simple", storageClassType: "string", }, 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.sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToHclTerraform = sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToHclTerraform; class SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecOutputReference 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._displayName !== undefined) { hasAnyValues = true; internalValueResult.displayName = this._displayName; } 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._displayName = 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._displayName = value.displayName; this._name = value.name; } } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } resetDisplayName() { this._displayName = undefined; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } 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.SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecOutputReference = SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecOutputReference; _h = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecOutputReference[_h] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecOutputReference", version: "19.50.0" }; class SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList 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 SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList = SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList; _j = JSII_RTTI_SYMBOL_1; SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList[_j] = { fqn: "@cdktf/provider-aws.sagemakerAppImageConfig.SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList", version: "19.50.0" }; function sagemakerAppImageConfigKernelGatewayImageConfigToTerraform(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 { file_system_config: sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToTerraform(struct.fileSystemConfig), kernel_spec: cdktf.listMapper(sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToTerraform, true)(struct.kernelSpec), }; } exports.sagemakerAppImageConfigKernelGatewayImageConfigToTerraform = sagemakerAppImageConfigKernelGatewayImageConfigToTerraform; function sagemakerAppImageConfigKernelGatewayImageConfigToHclTerraform(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 = { file_system_config: { value: sagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigToHclTerraform(struct.fileSystemConfig), isBlock: true, type: "list", storageClassType: "SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigList", }, kernel_spec: { value: cdktf.listMapperHcl(sagemakerAppImageConfigKernelGatewayImageConfigKernelSpecToHclTerraform, true)(struct.kernelSpec), isBlock: true, type: "list", storageClassType: "SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.sagemakerAppImageConfigKernelGatewayImageConfigToHclTerraform = sagemakerAppImageConfigKernelGatewayImageConfigToHclTerraform; class SagemakerAppImageConfigKernelGatewayImageConfigOutputReference 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; // file_system_config - computed: false, optional: true, required: false this._fileSystemConfig = new SagemakerAppImageConfigKernelGatewayImageConfigFileSystemConfigOutputReference(this, "file_system_config"); // kernel_spec - computed: false, optional: false, required: true this._kernelSpec = new SagemakerAppImageConfigKernelGatewayImageConfigKernelSpecList(this, "kernel_spec", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._fileSystemConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.fileSystemConfig = this._fileSystemConfig?.internalValue; } if (this._kernelSpec?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.kernelSpec = this._kernelSpec?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._fileSystemConfig.internalValue = undefined; this._kernelSpec.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._fileSystemConfig.internalValue = value.fileSystemConfig;