UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,198 lines (1,197 loc) 309 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComputeImage = exports.ComputeImageTimeoutsOutputReference = exports.ComputeImageSourceSnapshotEncryptionKeyOutputReference = exports.ComputeImageSourceImageEncryptionKeyOutputReference = exports.ComputeImageSourceDiskEncryptionKeyOutputReference = exports.ComputeImageShieldedInstanceInitialStateOutputReference = exports.ComputeImageShieldedInstanceInitialStatePkOutputReference = exports.ComputeImageShieldedInstanceInitialStateKeksList = exports.ComputeImageShieldedInstanceInitialStateKeksOutputReference = exports.ComputeImageShieldedInstanceInitialStateDbxsList = exports.ComputeImageShieldedInstanceInitialStateDbxsOutputReference = exports.ComputeImageShieldedInstanceInitialStateDbsList = exports.ComputeImageShieldedInstanceInitialStateDbsOutputReference = exports.ComputeImageRawDiskOutputReference = exports.ComputeImageImageEncryptionKeyOutputReference = exports.ComputeImageGuestOsFeaturesList = exports.ComputeImageGuestOsFeaturesOutputReference = void 0; exports.computeImageGuestOsFeaturesToTerraform = computeImageGuestOsFeaturesToTerraform; exports.computeImageGuestOsFeaturesToHclTerraform = computeImageGuestOsFeaturesToHclTerraform; exports.computeImageImageEncryptionKeyToTerraform = computeImageImageEncryptionKeyToTerraform; exports.computeImageImageEncryptionKeyToHclTerraform = computeImageImageEncryptionKeyToHclTerraform; exports.computeImageRawDiskToTerraform = computeImageRawDiskToTerraform; exports.computeImageRawDiskToHclTerraform = computeImageRawDiskToHclTerraform; exports.computeImageShieldedInstanceInitialStateDbsToTerraform = computeImageShieldedInstanceInitialStateDbsToTerraform; exports.computeImageShieldedInstanceInitialStateDbsToHclTerraform = computeImageShieldedInstanceInitialStateDbsToHclTerraform; exports.computeImageShieldedInstanceInitialStateDbxsToTerraform = computeImageShieldedInstanceInitialStateDbxsToTerraform; exports.computeImageShieldedInstanceInitialStateDbxsToHclTerraform = computeImageShieldedInstanceInitialStateDbxsToHclTerraform; exports.computeImageShieldedInstanceInitialStateKeksToTerraform = computeImageShieldedInstanceInitialStateKeksToTerraform; exports.computeImageShieldedInstanceInitialStateKeksToHclTerraform = computeImageShieldedInstanceInitialStateKeksToHclTerraform; exports.computeImageShieldedInstanceInitialStatePkToTerraform = computeImageShieldedInstanceInitialStatePkToTerraform; exports.computeImageShieldedInstanceInitialStatePkToHclTerraform = computeImageShieldedInstanceInitialStatePkToHclTerraform; exports.computeImageShieldedInstanceInitialStateToTerraform = computeImageShieldedInstanceInitialStateToTerraform; exports.computeImageShieldedInstanceInitialStateToHclTerraform = computeImageShieldedInstanceInitialStateToHclTerraform; exports.computeImageSourceDiskEncryptionKeyToTerraform = computeImageSourceDiskEncryptionKeyToTerraform; exports.computeImageSourceDiskEncryptionKeyToHclTerraform = computeImageSourceDiskEncryptionKeyToHclTerraform; exports.computeImageSourceImageEncryptionKeyToTerraform = computeImageSourceImageEncryptionKeyToTerraform; exports.computeImageSourceImageEncryptionKeyToHclTerraform = computeImageSourceImageEncryptionKeyToHclTerraform; exports.computeImageSourceSnapshotEncryptionKeyToTerraform = computeImageSourceSnapshotEncryptionKeyToTerraform; exports.computeImageSourceSnapshotEncryptionKeyToHclTerraform = computeImageSourceSnapshotEncryptionKeyToHclTerraform; exports.computeImageTimeoutsToTerraform = computeImageTimeoutsToTerraform; exports.computeImageTimeoutsToHclTerraform = computeImageTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function computeImageGuestOsFeaturesToTerraform(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 { type: cdktf.stringToTerraform(struct.type), }; } function computeImageGuestOsFeaturesToHclTerraform(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 = { type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageGuestOsFeaturesOutputReference 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._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._type = 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._type = value.type; } } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.ComputeImageGuestOsFeaturesOutputReference = ComputeImageGuestOsFeaturesOutputReference; _a = JSII_RTTI_SYMBOL_1; ComputeImageGuestOsFeaturesOutputReference[_a] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageGuestOsFeaturesOutputReference", version: "14.35.1" }; class ComputeImageGuestOsFeaturesList 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 ComputeImageGuestOsFeaturesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ComputeImageGuestOsFeaturesList = ComputeImageGuestOsFeaturesList; _b = JSII_RTTI_SYMBOL_1; ComputeImageGuestOsFeaturesList[_b] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageGuestOsFeaturesList", version: "14.35.1" }; function computeImageImageEncryptionKeyToTerraform(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 { kms_key_self_link: cdktf.stringToTerraform(struct.kmsKeySelfLink), kms_key_service_account: cdktf.stringToTerraform(struct.kmsKeyServiceAccount), raw_key: cdktf.stringToTerraform(struct.rawKey), rsa_encrypted_key: cdktf.stringToTerraform(struct.rsaEncryptedKey), }; } function computeImageImageEncryptionKeyToHclTerraform(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 = { kms_key_self_link: { value: cdktf.stringToHclTerraform(struct.kmsKeySelfLink), isBlock: false, type: "simple", storageClassType: "string", }, kms_key_service_account: { value: cdktf.stringToHclTerraform(struct.kmsKeyServiceAccount), isBlock: false, type: "simple", storageClassType: "string", }, raw_key: { value: cdktf.stringToHclTerraform(struct.rawKey), isBlock: false, type: "simple", storageClassType: "string", }, rsa_encrypted_key: { value: cdktf.stringToHclTerraform(struct.rsaEncryptedKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageImageEncryptionKeyOutputReference 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._kmsKeySelfLink !== undefined) { hasAnyValues = true; internalValueResult.kmsKeySelfLink = this._kmsKeySelfLink; } if (this._kmsKeyServiceAccount !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyServiceAccount = this._kmsKeyServiceAccount; } if (this._rawKey !== undefined) { hasAnyValues = true; internalValueResult.rawKey = this._rawKey; } if (this._rsaEncryptedKey !== undefined) { hasAnyValues = true; internalValueResult.rsaEncryptedKey = this._rsaEncryptedKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeySelfLink = undefined; this._kmsKeyServiceAccount = undefined; this._rawKey = undefined; this._rsaEncryptedKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeySelfLink = value.kmsKeySelfLink; this._kmsKeyServiceAccount = value.kmsKeyServiceAccount; this._rawKey = value.rawKey; this._rsaEncryptedKey = value.rsaEncryptedKey; } } get kmsKeySelfLink() { return this.getStringAttribute('kms_key_self_link'); } set kmsKeySelfLink(value) { this._kmsKeySelfLink = value; } resetKmsKeySelfLink() { this._kmsKeySelfLink = undefined; } // Temporarily expose input value. Use with caution. get kmsKeySelfLinkInput() { return this._kmsKeySelfLink; } get kmsKeyServiceAccount() { return this.getStringAttribute('kms_key_service_account'); } set kmsKeyServiceAccount(value) { this._kmsKeyServiceAccount = value; } resetKmsKeyServiceAccount() { this._kmsKeyServiceAccount = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyServiceAccountInput() { return this._kmsKeyServiceAccount; } get rawKey() { return this.getStringAttribute('raw_key'); } set rawKey(value) { this._rawKey = value; } resetRawKey() { this._rawKey = undefined; } // Temporarily expose input value. Use with caution. get rawKeyInput() { return this._rawKey; } get rsaEncryptedKey() { return this.getStringAttribute('rsa_encrypted_key'); } set rsaEncryptedKey(value) { this._rsaEncryptedKey = value; } resetRsaEncryptedKey() { this._rsaEncryptedKey = undefined; } // Temporarily expose input value. Use with caution. get rsaEncryptedKeyInput() { return this._rsaEncryptedKey; } } exports.ComputeImageImageEncryptionKeyOutputReference = ComputeImageImageEncryptionKeyOutputReference; _c = JSII_RTTI_SYMBOL_1; ComputeImageImageEncryptionKeyOutputReference[_c] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageImageEncryptionKeyOutputReference", version: "14.35.1" }; function computeImageRawDiskToTerraform(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_type: cdktf.stringToTerraform(struct.containerType), sha1: cdktf.stringToTerraform(struct.sha1), source: cdktf.stringToTerraform(struct.source), }; } function computeImageRawDiskToHclTerraform(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_type: { value: cdktf.stringToHclTerraform(struct.containerType), isBlock: false, type: "simple", storageClassType: "string", }, sha1: { value: cdktf.stringToHclTerraform(struct.sha1), isBlock: false, type: "simple", storageClassType: "string", }, source: { value: cdktf.stringToHclTerraform(struct.source), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageRawDiskOutputReference 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._containerType !== undefined) { hasAnyValues = true; internalValueResult.containerType = this._containerType; } if (this._sha1 !== undefined) { hasAnyValues = true; internalValueResult.sha1 = this._sha1; } if (this._source !== undefined) { hasAnyValues = true; internalValueResult.source = this._source; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._containerType = undefined; this._sha1 = undefined; this._source = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._containerType = value.containerType; this._sha1 = value.sha1; this._source = value.source; } } get containerType() { return this.getStringAttribute('container_type'); } set containerType(value) { this._containerType = value; } resetContainerType() { this._containerType = undefined; } // Temporarily expose input value. Use with caution. get containerTypeInput() { return this._containerType; } get sha1() { return this.getStringAttribute('sha1'); } set sha1(value) { this._sha1 = value; } resetSha1() { this._sha1 = undefined; } // Temporarily expose input value. Use with caution. get sha1Input() { return this._sha1; } get source() { return this.getStringAttribute('source'); } set source(value) { this._source = value; } // Temporarily expose input value. Use with caution. get sourceInput() { return this._source; } } exports.ComputeImageRawDiskOutputReference = ComputeImageRawDiskOutputReference; _d = JSII_RTTI_SYMBOL_1; ComputeImageRawDiskOutputReference[_d] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageRawDiskOutputReference", version: "14.35.1" }; function computeImageShieldedInstanceInitialStateDbsToTerraform(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 { content: cdktf.stringToTerraform(struct.content), file_type: cdktf.stringToTerraform(struct.fileType), }; } function computeImageShieldedInstanceInitialStateDbsToHclTerraform(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 = { content: { value: cdktf.stringToHclTerraform(struct.content), isBlock: false, type: "simple", storageClassType: "string", }, file_type: { value: cdktf.stringToHclTerraform(struct.fileType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageShieldedInstanceInitialStateDbsOutputReference 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._content !== undefined) { hasAnyValues = true; internalValueResult.content = this._content; } if (this._fileType !== undefined) { hasAnyValues = true; internalValueResult.fileType = this._fileType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._content = undefined; this._fileType = 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._content = value.content; this._fileType = value.fileType; } } get content() { return this.getStringAttribute('content'); } set content(value) { this._content = value; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content; } get fileType() { return this.getStringAttribute('file_type'); } set fileType(value) { this._fileType = value; } resetFileType() { this._fileType = undefined; } // Temporarily expose input value. Use with caution. get fileTypeInput() { return this._fileType; } } exports.ComputeImageShieldedInstanceInitialStateDbsOutputReference = ComputeImageShieldedInstanceInitialStateDbsOutputReference; _e = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStateDbsOutputReference[_e] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStateDbsOutputReference", version: "14.35.1" }; class ComputeImageShieldedInstanceInitialStateDbsList 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 ComputeImageShieldedInstanceInitialStateDbsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ComputeImageShieldedInstanceInitialStateDbsList = ComputeImageShieldedInstanceInitialStateDbsList; _f = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStateDbsList[_f] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStateDbsList", version: "14.35.1" }; function computeImageShieldedInstanceInitialStateDbxsToTerraform(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 { content: cdktf.stringToTerraform(struct.content), file_type: cdktf.stringToTerraform(struct.fileType), }; } function computeImageShieldedInstanceInitialStateDbxsToHclTerraform(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 = { content: { value: cdktf.stringToHclTerraform(struct.content), isBlock: false, type: "simple", storageClassType: "string", }, file_type: { value: cdktf.stringToHclTerraform(struct.fileType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageShieldedInstanceInitialStateDbxsOutputReference 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._content !== undefined) { hasAnyValues = true; internalValueResult.content = this._content; } if (this._fileType !== undefined) { hasAnyValues = true; internalValueResult.fileType = this._fileType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._content = undefined; this._fileType = 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._content = value.content; this._fileType = value.fileType; } } get content() { return this.getStringAttribute('content'); } set content(value) { this._content = value; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content; } get fileType() { return this.getStringAttribute('file_type'); } set fileType(value) { this._fileType = value; } resetFileType() { this._fileType = undefined; } // Temporarily expose input value. Use with caution. get fileTypeInput() { return this._fileType; } } exports.ComputeImageShieldedInstanceInitialStateDbxsOutputReference = ComputeImageShieldedInstanceInitialStateDbxsOutputReference; _g = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStateDbxsOutputReference[_g] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStateDbxsOutputReference", version: "14.35.1" }; class ComputeImageShieldedInstanceInitialStateDbxsList 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 ComputeImageShieldedInstanceInitialStateDbxsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ComputeImageShieldedInstanceInitialStateDbxsList = ComputeImageShieldedInstanceInitialStateDbxsList; _h = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStateDbxsList[_h] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStateDbxsList", version: "14.35.1" }; function computeImageShieldedInstanceInitialStateKeksToTerraform(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 { content: cdktf.stringToTerraform(struct.content), file_type: cdktf.stringToTerraform(struct.fileType), }; } function computeImageShieldedInstanceInitialStateKeksToHclTerraform(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 = { content: { value: cdktf.stringToHclTerraform(struct.content), isBlock: false, type: "simple", storageClassType: "string", }, file_type: { value: cdktf.stringToHclTerraform(struct.fileType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageShieldedInstanceInitialStateKeksOutputReference 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._content !== undefined) { hasAnyValues = true; internalValueResult.content = this._content; } if (this._fileType !== undefined) { hasAnyValues = true; internalValueResult.fileType = this._fileType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._content = undefined; this._fileType = 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._content = value.content; this._fileType = value.fileType; } } get content() { return this.getStringAttribute('content'); } set content(value) { this._content = value; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content; } get fileType() { return this.getStringAttribute('file_type'); } set fileType(value) { this._fileType = value; } resetFileType() { this._fileType = undefined; } // Temporarily expose input value. Use with caution. get fileTypeInput() { return this._fileType; } } exports.ComputeImageShieldedInstanceInitialStateKeksOutputReference = ComputeImageShieldedInstanceInitialStateKeksOutputReference; _j = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStateKeksOutputReference[_j] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStateKeksOutputReference", version: "14.35.1" }; class ComputeImageShieldedInstanceInitialStateKeksList 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 ComputeImageShieldedInstanceInitialStateKeksOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ComputeImageShieldedInstanceInitialStateKeksList = ComputeImageShieldedInstanceInitialStateKeksList; _k = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStateKeksList[_k] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStateKeksList", version: "14.35.1" }; function computeImageShieldedInstanceInitialStatePkToTerraform(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 { content: cdktf.stringToTerraform(struct.content), file_type: cdktf.stringToTerraform(struct.fileType), }; } function computeImageShieldedInstanceInitialStatePkToHclTerraform(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 = { content: { value: cdktf.stringToHclTerraform(struct.content), isBlock: false, type: "simple", storageClassType: "string", }, file_type: { value: cdktf.stringToHclTerraform(struct.fileType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageShieldedInstanceInitialStatePkOutputReference 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._content !== undefined) { hasAnyValues = true; internalValueResult.content = this._content; } if (this._fileType !== undefined) { hasAnyValues = true; internalValueResult.fileType = this._fileType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._content = undefined; this._fileType = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._content = value.content; this._fileType = value.fileType; } } get content() { return this.getStringAttribute('content'); } set content(value) { this._content = value; } // Temporarily expose input value. Use with caution. get contentInput() { return this._content; } get fileType() { return this.getStringAttribute('file_type'); } set fileType(value) { this._fileType = value; } resetFileType() { this._fileType = undefined; } // Temporarily expose input value. Use with caution. get fileTypeInput() { return this._fileType; } } exports.ComputeImageShieldedInstanceInitialStatePkOutputReference = ComputeImageShieldedInstanceInitialStatePkOutputReference; _l = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStatePkOutputReference[_l] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStatePkOutputReference", version: "14.35.1" }; function computeImageShieldedInstanceInitialStateToTerraform(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 { dbs: cdktf.listMapper(computeImageShieldedInstanceInitialStateDbsToTerraform, true)(struct.dbs), dbxs: cdktf.listMapper(computeImageShieldedInstanceInitialStateDbxsToTerraform, true)(struct.dbxs), keks: cdktf.listMapper(computeImageShieldedInstanceInitialStateKeksToTerraform, true)(struct.keks), pk: computeImageShieldedInstanceInitialStatePkToTerraform(struct.pk), }; } function computeImageShieldedInstanceInitialStateToHclTerraform(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 = { dbs: { value: cdktf.listMapperHcl(computeImageShieldedInstanceInitialStateDbsToHclTerraform, true)(struct.dbs), isBlock: true, type: "list", storageClassType: "ComputeImageShieldedInstanceInitialStateDbsList", }, dbxs: { value: cdktf.listMapperHcl(computeImageShieldedInstanceInitialStateDbxsToHclTerraform, true)(struct.dbxs), isBlock: true, type: "list", storageClassType: "ComputeImageShieldedInstanceInitialStateDbxsList", }, keks: { value: cdktf.listMapperHcl(computeImageShieldedInstanceInitialStateKeksToHclTerraform, true)(struct.keks), isBlock: true, type: "list", storageClassType: "ComputeImageShieldedInstanceInitialStateKeksList", }, pk: { value: computeImageShieldedInstanceInitialStatePkToHclTerraform(struct.pk), isBlock: true, type: "list", storageClassType: "ComputeImageShieldedInstanceInitialStatePkList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageShieldedInstanceInitialStateOutputReference 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; // dbs - computed: false, optional: true, required: false this._dbs = new ComputeImageShieldedInstanceInitialStateDbsList(this, "dbs", false); // dbxs - computed: false, optional: true, required: false this._dbxs = new ComputeImageShieldedInstanceInitialStateDbxsList(this, "dbxs", false); // keks - computed: false, optional: true, required: false this._keks = new ComputeImageShieldedInstanceInitialStateKeksList(this, "keks", false); // pk - computed: false, optional: true, required: false this._pk = new ComputeImageShieldedInstanceInitialStatePkOutputReference(this, "pk"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._dbs?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dbs = this._dbs?.internalValue; } if (this._dbxs?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dbxs = this._dbxs?.internalValue; } if (this._keks?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.keks = this._keks?.internalValue; } if (this._pk?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.pk = this._pk?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dbs.internalValue = undefined; this._dbxs.internalValue = undefined; this._keks.internalValue = undefined; this._pk.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dbs.internalValue = value.dbs; this._dbxs.internalValue = value.dbxs; this._keks.internalValue = value.keks; this._pk.internalValue = value.pk; } } get dbs() { return this._dbs; } putDbs(value) { this._dbs.internalValue = value; } resetDbs() { this._dbs.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dbsInput() { return this._dbs.internalValue; } get dbxs() { return this._dbxs; } putDbxs(value) { this._dbxs.internalValue = value; } resetDbxs() { this._dbxs.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dbxsInput() { return this._dbxs.internalValue; } get keks() { return this._keks; } putKeks(value) { this._keks.internalValue = value; } resetKeks() { this._keks.internalValue = undefined; } // Temporarily expose input value. Use with caution. get keksInput() { return this._keks.internalValue; } get pk() { return this._pk; } putPk(value) { this._pk.internalValue = value; } resetPk() { this._pk.internalValue = undefined; } // Temporarily expose input value. Use with caution. get pkInput() { return this._pk.internalValue; } } exports.ComputeImageShieldedInstanceInitialStateOutputReference = ComputeImageShieldedInstanceInitialStateOutputReference; _m = JSII_RTTI_SYMBOL_1; ComputeImageShieldedInstanceInitialStateOutputReference[_m] = { fqn: "@cdktf/provider-google.computeImage.ComputeImageShieldedInstanceInitialStateOutputReference", version: "14.35.1" }; function computeImageSourceDiskEncryptionKeyToTerraform(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 { kms_key_self_link: cdktf.stringToTerraform(struct.kmsKeySelfLink), kms_key_service_account: cdktf.stringToTerraform(struct.kmsKeyServiceAccount), raw_key: cdktf.stringToTerraform(struct.rawKey), rsa_encrypted_key: cdktf.stringToTerraform(struct.rsaEncryptedKey), }; } function computeImageSourceDiskEncryptionKeyToHclTerraform(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 = { kms_key_self_link: { value: cdktf.stringToHclTerraform(struct.kmsKeySelfLink), isBlock: false, type: "simple", storageClassType: "string", }, kms_key_service_account: { value: cdktf.stringToHclTerraform(struct.kmsKeyServiceAccount), isBlock: false, type: "simple", storageClassType: "string", }, raw_key: { value: cdktf.stringToHclTerraform(struct.rawKey), isBlock: false, type: "simple", storageClassType: "string", }, rsa_encrypted_key: { value: cdktf.stringToHclTerraform(struct.rsaEncryptedKey), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComputeImageSourceDiskEncryptionKeyOutputReference 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._kmsKeySelfLink !== undefined) { hasAnyValues = true; internalValueResult.kmsKeySelfLink = this._kmsKeySelfLink; } if (this._kmsKeyServiceAccount !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyServiceAccount = this._kmsKeyServiceAccount; } if (this._rawKey !== undefined) { hasAnyValues = true; internalValueResult.rawKey = this._rawKey; } if (this._rsaEncryptedKey !== undefined) { hasAnyValues = true; internalValueResult.rsaEncryptedKey = this._rsaEncryptedKey; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeySelfLink = undefined; this._kmsKeyServiceAccount = undefined; this._rawKey = undefined; this._rsaEncryptedKey = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeySelfLink = value.kmsKeySelfLink; this._kmsKeyServiceAccount = value.kmsKeyServiceAccount; this._rawKey = value.rawKey; this._rsaEncryptedKey = value.rsaEncryptedKey; } } get kmsKeySelfLink() { return this.getStringAttribute('kms_key_self_link'); } set kmsKeySelfLink(value) { this._kmsKeySelfLink = value; } resetKmsKeySelfLink() { this._kmsKeySelfLink = undefined; } // Temporarily expose input value. Use with caution. get kmsKeySelfLinkInput() { return this._kmsKeySelfLink; } get kmsKeyServiceAccount() { return this.getStringAttribute('kms_key_service_account'); } set kmsKeyServiceAccount(value) { this._kmsKeyServiceAccount = value; } resetKmsKeyServiceAccount() { this._kmsKeyServiceAccount = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyServiceAccountInput() { return this._kmsKeyServiceAccount; } get rawKey() { return this.getStringAttribute('raw_key'); } set rawKey(value) { this._rawKey = value; } resetRawKey() { this._rawKey = undefined; } // Temporarily expose input value. Use with caution. get rawKeyInput() { return this._rawKey; } get rsaEncryptedKey() { return this.getStringAttribute('rsa_encrypted_key'); } set rsaEncryptedKey(value) { this._rsaEncryptedKey = value; }