UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

787 lines 709 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, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20; Object.defineProperty(exports, "__esModule", { value: true }); exports.dataLossPreventionInspectTemplateInspectConfigLimitsToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigLimitsToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeList = exports.DataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigLimitsMaxFindingsPerInfoTypeInfoTypeSensitivityScoreToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigInfoTypesList = exports.DataLossPreventionInspectTemplateInspectConfigInfoTypesOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigInfoTypesToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigInfoTypesToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigInfoTypesSensitivityScoreOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigInfoTypesSensitivityScoreToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigInfoTypesSensitivityScoreToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesList = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToTerraform = void 0; exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleProximityToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleProximityToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleLikelihoodAdjustmentOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleLikelihoodAdjustmentToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleLikelihoodAdjustmentToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleHotwordRegexOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleHotwordRegexToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleHotwordRegexToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleRegexOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleRegexToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleRegexToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesInfoTypesList = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesInfoTypesOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesInfoTypesToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesInfoTypesToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesInfoTypesSensitivityScoreOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesInfoTypesSensitivityScoreToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeInfoTypesInfoTypesSensitivityScoreToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordProximityOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordProximityToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordProximityToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordHotwordRegexOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordHotwordRegexToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleExcludeByHotwordHotwordRegexToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryWordListStructOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryWordListStructToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryWordListStructToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryCloudStoragePathOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryCloudStoragePathToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesExclusionRuleDictionaryCloudStoragePathToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetInfoTypesList = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetInfoTypesOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetInfoTypesToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetInfoTypesToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetInfoTypesSensitivityScoreOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetInfoTypesSensitivityScoreToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetInfoTypesSensitivityScoreToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigLimitsOutputReference = void 0; exports.DataLossPreventionInspectTemplate = exports.DataLossPreventionInspectTemplateTimeoutsOutputReference = exports.dataLossPreventionInspectTemplateTimeoutsToHclTerraform = exports.dataLossPreventionInspectTemplateTimeoutsToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetList = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesList = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleOutputReference = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleToHclTerraform = exports.dataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleToTerraform = exports.DataLossPreventionInspectTemplateInspectConfigRuleSetRulesHotwordRuleProximityOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToTerraform(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 { path: cdktf.stringToTerraform(struct.path), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToHclTerraform(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 = { path: { value: cdktf.stringToHclTerraform(struct.path), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathOutputReference 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._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._path = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._path = value.path; } } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathOutputReference; _a = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathOutputReference[_a] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToTerraform(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 { words: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.words), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToHclTerraform(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 = { words: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.words), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructOutputReference 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._words !== undefined) { hasAnyValues = true; internalValueResult.words = this._words; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._words = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._words = value.words; } } get words() { return this.getListAttribute('words'); } set words(value) { this._words = value; } // Temporarily expose input value. Use with caution. get wordsInput() { return this._words; } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructOutputReference; _b = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructOutputReference[_b] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToTerraform(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 { cloud_storage_path: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToTerraform(struct.cloudStoragePath), word_list: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToTerraform(struct.wordList), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToHclTerraform(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 = { cloud_storage_path: { value: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathToHclTerraform(struct.cloudStoragePath), isBlock: true, type: "list", storageClassType: "DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathList", }, word_list: { value: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructToHclTerraform(struct.wordList), isBlock: true, type: "list", storageClassType: "DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryOutputReference 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; // cloud_storage_path - computed: false, optional: true, required: false this._cloudStoragePath = new DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryCloudStoragePathOutputReference(this, "cloud_storage_path"); // word_list - computed: false, optional: true, required: false this._wordList = new DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryWordListStructOutputReference(this, "word_list"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._cloudStoragePath?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.cloudStoragePath = this._cloudStoragePath?.internalValue; } if (this._wordList?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.wordList = this._wordList?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._cloudStoragePath.internalValue = undefined; this._wordList.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._cloudStoragePath.internalValue = value.cloudStoragePath; this._wordList.internalValue = value.wordList; } } get cloudStoragePath() { return this._cloudStoragePath; } putCloudStoragePath(value) { this._cloudStoragePath.internalValue = value; } resetCloudStoragePath() { this._cloudStoragePath.internalValue = undefined; } // Temporarily expose input value. Use with caution. get cloudStoragePathInput() { return this._cloudStoragePath.internalValue; } get wordList() { return this._wordList; } putWordList(value) { this._wordList.internalValue = value; } resetWordList() { this._wordList.internalValue = undefined; } // Temporarily expose input value. Use with caution. get wordListInput() { return this._wordList.internalValue; } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryOutputReference; _c = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryOutputReference[_c] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToTerraform(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 { score: cdktf.stringToTerraform(struct.score), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToHclTerraform(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 = { score: { value: cdktf.stringToHclTerraform(struct.score), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreOutputReference 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._score !== undefined) { hasAnyValues = true; internalValueResult.score = this._score; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._score = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._score = value.score; } } get score() { return this.getStringAttribute('score'); } set score(value) { this._score = value; } // Temporarily expose input value. Use with caution. get scoreInput() { return this._score; } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreOutputReference; _d = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreOutputReference[_d] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToTerraform(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), version: cdktf.stringToTerraform(struct.version), sensitivity_score: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToTerraform(struct.sensitivityScore), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToHclTerraform(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", }, version: { value: cdktf.stringToHclTerraform(struct.version), isBlock: false, type: "simple", storageClassType: "string", }, sensitivity_score: { value: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreToHclTerraform(struct.sensitivityScore), isBlock: true, type: "list", storageClassType: "DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeOutputReference 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; // sensitivity_score - computed: false, optional: true, required: false this._sensitivityScore = new DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeSensitivityScoreOutputReference(this, "sensitivity_score"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._version !== undefined) { hasAnyValues = true; internalValueResult.version = this._version; } if (this._sensitivityScore?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sensitivityScore = this._sensitivityScore?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; this._version = undefined; this._sensitivityScore.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._name = value.name; this._version = value.version; this._sensitivityScore.internalValue = value.sensitivityScore; } } 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 version() { return this.getStringAttribute('version'); } set version(value) { this._version = value; } resetVersion() { this._version = undefined; } // Temporarily expose input value. Use with caution. get versionInput() { return this._version; } get sensitivityScore() { return this._sensitivityScore; } putSensitivityScore(value) { this._sensitivityScore.internalValue = value; } resetSensitivityScore() { this._sensitivityScore.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sensitivityScoreInput() { return this._sensitivityScore.internalValue; } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeOutputReference; _e = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeOutputReference[_e] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToTerraform(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 { group_indexes: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.groupIndexes), pattern: cdktf.stringToTerraform(struct.pattern), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToHclTerraform(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 = { group_indexes: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.groupIndexes), isBlock: false, type: "list", storageClassType: "numberList", }, pattern: { value: cdktf.stringToHclTerraform(struct.pattern), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexOutputReference 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._groupIndexes !== undefined) { hasAnyValues = true; internalValueResult.groupIndexes = this._groupIndexes; } if (this._pattern !== undefined) { hasAnyValues = true; internalValueResult.pattern = this._pattern; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._groupIndexes = undefined; this._pattern = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._groupIndexes = value.groupIndexes; this._pattern = value.pattern; } } get groupIndexes() { return this.getNumberListAttribute('group_indexes'); } set groupIndexes(value) { this._groupIndexes = value; } resetGroupIndexes() { this._groupIndexes = undefined; } // Temporarily expose input value. Use with caution. get groupIndexesInput() { return this._groupIndexes; } get pattern() { return this.getStringAttribute('pattern'); } set pattern(value) { this._pattern = value; } // Temporarily expose input value. Use with caution. get patternInput() { return this._pattern; } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexOutputReference; _f = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexOutputReference[_f] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToTerraform(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 { score: cdktf.stringToTerraform(struct.score), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToHclTerraform(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 = { score: { value: cdktf.stringToHclTerraform(struct.score), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreOutputReference 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._score !== undefined) { hasAnyValues = true; internalValueResult.score = this._score; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._score = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._score = value.score; } } get score() { return this.getStringAttribute('score'); } set score(value) { this._score = value; } // Temporarily expose input value. Use with caution. get scoreInput() { return this._score; } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreOutputReference; _g = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreOutputReference[_g] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToTerraform(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.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToHclTerraform(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.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; 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.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeOutputReference; _h = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeOutputReference[_h] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToHclTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToHclTerraform; class DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } } exports.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeOutputReference = DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeOutputReference; _j = JSII_RTTI_SYMBOL_1; DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeOutputReference[_j] = { fqn: "@cdktf/provider-google.dataLossPreventionInspectTemplate.DataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeOutputReference", version: "14.12.0" }; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesToTerraform(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 { exclusion_type: cdktf.stringToTerraform(struct.exclusionType), likelihood: cdktf.stringToTerraform(struct.likelihood), dictionary: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesDictionaryToTerraform(struct.dictionary), info_type: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesInfoTypeToTerraform(struct.infoType), regex: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesRegexToTerraform(struct.regex), sensitivity_score: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSensitivityScoreToTerraform(struct.sensitivityScore), stored_type: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesStoredTypeToTerraform(struct.storedType), surrogate_type: dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesSurrogateTypeToTerraform(struct.surrogateType), }; } exports.dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesToTerraform = dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesToTerraform; function dataLossPreventionInspectTemplateInspectConfigCustomInfoTypesToHclTerraform(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 = { exclusion_type: { value: cdktf.stringToHclTerraform(struct.exclusionType), isBlock: false, type: "simple", storageClassType: "string", }, likelihood: { value: cdktf.stringToHclTerr