UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

976 lines 155 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j; Object.defineProperty(exports, "__esModule", { value: true }); exports.WorkspaceswebDataProtectionSettings = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationOutputReference = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternOutputReference = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderOutputReference = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList = exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternOutputReference = void 0; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToTerraform; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToHclTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToHclTerraform; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToTerraform; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToHclTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToHclTerraform; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToTerraform; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToHclTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToHclTerraform; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationToTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationToTerraform; exports.workspaceswebDataProtectionSettingsInlineRedactionConfigurationToHclTerraform = workspaceswebDataProtectionSettingsInlineRedactionConfigurationToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToTerraform(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 { keyword_regex: cdktf.stringToTerraform(struct.keywordRegex), pattern_description: cdktf.stringToTerraform(struct.patternDescription), pattern_name: cdktf.stringToTerraform(struct.patternName), pattern_regex: cdktf.stringToTerraform(struct.patternRegex), }; } function workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToHclTerraform(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 = { keyword_regex: { value: cdktf.stringToHclTerraform(struct.keywordRegex), isBlock: false, type: "simple", storageClassType: "string", }, pattern_description: { value: cdktf.stringToHclTerraform(struct.patternDescription), isBlock: false, type: "simple", storageClassType: "string", }, pattern_name: { value: cdktf.stringToHclTerraform(struct.patternName), isBlock: false, type: "simple", storageClassType: "string", }, pattern_regex: { value: cdktf.stringToHclTerraform(struct.patternRegex), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternOutputReference 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._keywordRegex !== undefined) { hasAnyValues = true; internalValueResult.keywordRegex = this._keywordRegex; } if (this._patternDescription !== undefined) { hasAnyValues = true; internalValueResult.patternDescription = this._patternDescription; } if (this._patternName !== undefined) { hasAnyValues = true; internalValueResult.patternName = this._patternName; } if (this._patternRegex !== undefined) { hasAnyValues = true; internalValueResult.patternRegex = this._patternRegex; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._keywordRegex = undefined; this._patternDescription = undefined; this._patternName = undefined; this._patternRegex = 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._keywordRegex = value.keywordRegex; this._patternDescription = value.patternDescription; this._patternName = value.patternName; this._patternRegex = value.patternRegex; } } get keywordRegex() { return this.getStringAttribute('keyword_regex'); } set keywordRegex(value) { this._keywordRegex = value; } resetKeywordRegex() { this._keywordRegex = undefined; } // Temporarily expose input value. Use with caution. get keywordRegexInput() { return this._keywordRegex; } get patternDescription() { return this.getStringAttribute('pattern_description'); } set patternDescription(value) { this._patternDescription = value; } resetPatternDescription() { this._patternDescription = undefined; } // Temporarily expose input value. Use with caution. get patternDescriptionInput() { return this._patternDescription; } get patternName() { return this.getStringAttribute('pattern_name'); } set patternName(value) { this._patternName = value; } // Temporarily expose input value. Use with caution. get patternNameInput() { return this._patternName; } get patternRegex() { return this.getStringAttribute('pattern_regex'); } set patternRegex(value) { this._patternRegex = value; } // Temporarily expose input value. Use with caution. get patternRegexInput() { return this._patternRegex; } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternOutputReference = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternOutputReference; _a = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternOutputReference[_a] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternOutputReference", version: "21.22.1" }; class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList 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 WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList; _b = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList[_b] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList", version: "21.22.1" }; function workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToTerraform(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 { redaction_place_holder_text: cdktf.stringToTerraform(struct.redactionPlaceHolderText), redaction_place_holder_type: cdktf.stringToTerraform(struct.redactionPlaceHolderType), }; } function workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToHclTerraform(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 = { redaction_place_holder_text: { value: cdktf.stringToHclTerraform(struct.redactionPlaceHolderText), isBlock: false, type: "simple", storageClassType: "string", }, redaction_place_holder_type: { value: cdktf.stringToHclTerraform(struct.redactionPlaceHolderType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderOutputReference 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._redactionPlaceHolderText !== undefined) { hasAnyValues = true; internalValueResult.redactionPlaceHolderText = this._redactionPlaceHolderText; } if (this._redactionPlaceHolderType !== undefined) { hasAnyValues = true; internalValueResult.redactionPlaceHolderType = this._redactionPlaceHolderType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._redactionPlaceHolderText = undefined; this._redactionPlaceHolderType = 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._redactionPlaceHolderText = value.redactionPlaceHolderText; this._redactionPlaceHolderType = value.redactionPlaceHolderType; } } get redactionPlaceHolderText() { return this.getStringAttribute('redaction_place_holder_text'); } set redactionPlaceHolderText(value) { this._redactionPlaceHolderText = value; } resetRedactionPlaceHolderText() { this._redactionPlaceHolderText = undefined; } // Temporarily expose input value. Use with caution. get redactionPlaceHolderTextInput() { return this._redactionPlaceHolderText; } get redactionPlaceHolderType() { return this.getStringAttribute('redaction_place_holder_type'); } set redactionPlaceHolderType(value) { this._redactionPlaceHolderType = value; } // Temporarily expose input value. Use with caution. get redactionPlaceHolderTypeInput() { return this._redactionPlaceHolderType; } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderOutputReference = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderOutputReference; _c = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderOutputReference[_c] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderOutputReference", version: "21.22.1" }; class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList 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 WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList; _d = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList[_d] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList", version: "21.22.1" }; function workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToTerraform(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 { built_in_pattern_id: cdktf.stringToTerraform(struct.builtInPatternId), confidence_level: cdktf.numberToTerraform(struct.confidenceLevel), enforced_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.enforcedUrls), exempt_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.exemptUrls), custom_pattern: cdktf.listMapper(workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToTerraform, true)(struct.customPattern), redaction_place_holder: cdktf.listMapper(workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToTerraform, true)(struct.redactionPlaceHolder), }; } function workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToHclTerraform(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 = { built_in_pattern_id: { value: cdktf.stringToHclTerraform(struct.builtInPatternId), isBlock: false, type: "simple", storageClassType: "string", }, confidence_level: { value: cdktf.numberToHclTerraform(struct.confidenceLevel), isBlock: false, type: "simple", storageClassType: "number", }, enforced_urls: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.enforcedUrls), isBlock: false, type: "list", storageClassType: "stringList", }, exempt_urls: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.exemptUrls), isBlock: false, type: "list", storageClassType: "stringList", }, custom_pattern: { value: cdktf.listMapperHcl(workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternToHclTerraform, true)(struct.customPattern), isBlock: true, type: "list", storageClassType: "WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList", }, redaction_place_holder: { value: cdktf.listMapperHcl(workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderToHclTerraform, true)(struct.redactionPlaceHolder), isBlock: true, type: "list", storageClassType: "WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternOutputReference 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; // custom_pattern - computed: false, optional: true, required: false this._customPattern = new WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternCustomPatternList(this, "custom_pattern", false); // redaction_place_holder - computed: false, optional: true, required: false this._redactionPlaceHolder = new WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternRedactionPlaceHolderList(this, "redaction_place_holder", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._builtInPatternId !== undefined) { hasAnyValues = true; internalValueResult.builtInPatternId = this._builtInPatternId; } if (this._confidenceLevel !== undefined) { hasAnyValues = true; internalValueResult.confidenceLevel = this._confidenceLevel; } if (this._enforcedUrls !== undefined) { hasAnyValues = true; internalValueResult.enforcedUrls = this._enforcedUrls; } if (this._exemptUrls !== undefined) { hasAnyValues = true; internalValueResult.exemptUrls = this._exemptUrls; } if (this._customPattern?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.customPattern = this._customPattern?.internalValue; } if (this._redactionPlaceHolder?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.redactionPlaceHolder = this._redactionPlaceHolder?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._builtInPatternId = undefined; this._confidenceLevel = undefined; this._enforcedUrls = undefined; this._exemptUrls = undefined; this._customPattern.internalValue = undefined; this._redactionPlaceHolder.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._builtInPatternId = value.builtInPatternId; this._confidenceLevel = value.confidenceLevel; this._enforcedUrls = value.enforcedUrls; this._exemptUrls = value.exemptUrls; this._customPattern.internalValue = value.customPattern; this._redactionPlaceHolder.internalValue = value.redactionPlaceHolder; } } get builtInPatternId() { return this.getStringAttribute('built_in_pattern_id'); } set builtInPatternId(value) { this._builtInPatternId = value; } resetBuiltInPatternId() { this._builtInPatternId = undefined; } // Temporarily expose input value. Use with caution. get builtInPatternIdInput() { return this._builtInPatternId; } get confidenceLevel() { return this.getNumberAttribute('confidence_level'); } set confidenceLevel(value) { this._confidenceLevel = value; } resetConfidenceLevel() { this._confidenceLevel = undefined; } // Temporarily expose input value. Use with caution. get confidenceLevelInput() { return this._confidenceLevel; } get enforcedUrls() { return this.getListAttribute('enforced_urls'); } set enforcedUrls(value) { this._enforcedUrls = value; } resetEnforcedUrls() { this._enforcedUrls = undefined; } // Temporarily expose input value. Use with caution. get enforcedUrlsInput() { return this._enforcedUrls; } get exemptUrls() { return this.getListAttribute('exempt_urls'); } set exemptUrls(value) { this._exemptUrls = value; } resetExemptUrls() { this._exemptUrls = undefined; } // Temporarily expose input value. Use with caution. get exemptUrlsInput() { return this._exemptUrls; } get customPattern() { return this._customPattern; } putCustomPattern(value) { this._customPattern.internalValue = value; } resetCustomPattern() { this._customPattern.internalValue = undefined; } // Temporarily expose input value. Use with caution. get customPatternInput() { return this._customPattern.internalValue; } get redactionPlaceHolder() { return this._redactionPlaceHolder; } putRedactionPlaceHolder(value) { this._redactionPlaceHolder.internalValue = value; } resetRedactionPlaceHolder() { this._redactionPlaceHolder.internalValue = undefined; } // Temporarily expose input value. Use with caution. get redactionPlaceHolderInput() { return this._redactionPlaceHolder.internalValue; } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternOutputReference = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternOutputReference; _e = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternOutputReference[_e] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternOutputReference", version: "21.22.1" }; class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList 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 WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList; _f = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList[_f] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList", version: "21.22.1" }; function workspaceswebDataProtectionSettingsInlineRedactionConfigurationToTerraform(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 { global_confidence_level: cdktf.numberToTerraform(struct.globalConfidenceLevel), global_enforced_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.globalEnforcedUrls), global_exempt_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.globalExemptUrls), inline_redaction_pattern: cdktf.listMapper(workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToTerraform, true)(struct.inlineRedactionPattern), }; } function workspaceswebDataProtectionSettingsInlineRedactionConfigurationToHclTerraform(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 = { global_confidence_level: { value: cdktf.numberToHclTerraform(struct.globalConfidenceLevel), isBlock: false, type: "simple", storageClassType: "number", }, global_enforced_urls: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.globalEnforcedUrls), isBlock: false, type: "list", storageClassType: "stringList", }, global_exempt_urls: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.globalExemptUrls), isBlock: false, type: "list", storageClassType: "stringList", }, inline_redaction_pattern: { value: cdktf.listMapperHcl(workspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternToHclTerraform, true)(struct.inlineRedactionPattern), isBlock: true, type: "list", storageClassType: "WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationOutputReference 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; // inline_redaction_pattern - computed: false, optional: true, required: false this._inlineRedactionPattern = new WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationInlineRedactionPatternList(this, "inline_redaction_pattern", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._globalConfidenceLevel !== undefined) { hasAnyValues = true; internalValueResult.globalConfidenceLevel = this._globalConfidenceLevel; } if (this._globalEnforcedUrls !== undefined) { hasAnyValues = true; internalValueResult.globalEnforcedUrls = this._globalEnforcedUrls; } if (this._globalExemptUrls !== undefined) { hasAnyValues = true; internalValueResult.globalExemptUrls = this._globalExemptUrls; } if (this._inlineRedactionPattern?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.inlineRedactionPattern = this._inlineRedactionPattern?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._globalConfidenceLevel = undefined; this._globalEnforcedUrls = undefined; this._globalExemptUrls = undefined; this._inlineRedactionPattern.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._globalConfidenceLevel = value.globalConfidenceLevel; this._globalEnforcedUrls = value.globalEnforcedUrls; this._globalExemptUrls = value.globalExemptUrls; this._inlineRedactionPattern.internalValue = value.inlineRedactionPattern; } } get globalConfidenceLevel() { return this.getNumberAttribute('global_confidence_level'); } set globalConfidenceLevel(value) { this._globalConfidenceLevel = value; } resetGlobalConfidenceLevel() { this._globalConfidenceLevel = undefined; } // Temporarily expose input value. Use with caution. get globalConfidenceLevelInput() { return this._globalConfidenceLevel; } get globalEnforcedUrls() { return this.getListAttribute('global_enforced_urls'); } set globalEnforcedUrls(value) { this._globalEnforcedUrls = value; } resetGlobalEnforcedUrls() { this._globalEnforcedUrls = undefined; } // Temporarily expose input value. Use with caution. get globalEnforcedUrlsInput() { return this._globalEnforcedUrls; } get globalExemptUrls() { return this.getListAttribute('global_exempt_urls'); } set globalExemptUrls(value) { this._globalExemptUrls = value; } resetGlobalExemptUrls() { this._globalExemptUrls = undefined; } // Temporarily expose input value. Use with caution. get globalExemptUrlsInput() { return this._globalExemptUrls; } get inlineRedactionPattern() { return this._inlineRedactionPattern; } putInlineRedactionPattern(value) { this._inlineRedactionPattern.internalValue = value; } resetInlineRedactionPattern() { this._inlineRedactionPattern.internalValue = undefined; } // Temporarily expose input value. Use with caution. get inlineRedactionPatternInput() { return this._inlineRedactionPattern.internalValue; } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationOutputReference = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationOutputReference; _g = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationOutputReference", version: "21.22.1" }; class WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList 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 WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList = WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList; _h = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList[_h] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/workspacesweb_data_protection_settings aws_workspacesweb_data_protection_settings} */ class WorkspaceswebDataProtectionSettings extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a WorkspaceswebDataProtectionSettings resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the WorkspaceswebDataProtectionSettings to import * @param importFromId The id of the existing WorkspaceswebDataProtectionSettings that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/workspacesweb_data_protection_settings#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the WorkspaceswebDataProtectionSettings to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_workspacesweb_data_protection_settings", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/workspacesweb_data_protection_settings aws_workspacesweb_data_protection_settings} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options WorkspaceswebDataProtectionSettingsConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_workspacesweb_data_protection_settings', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // tags_all - computed: true, optional: false, required: false this._tagsAll = new cdktf.StringMap(this, "tags_all"); // inline_redaction_configuration - computed: false, optional: true, required: false this._inlineRedactionConfiguration = new WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList(this, "inline_redaction_configuration", false); this._additionalEncryptionContext = config.additionalEncryptionContext; this._customerManagedKey = config.customerManagedKey; this._description = config.description; this._displayName = config.displayName; this._region = config.region; this._tags = config.tags; this._inlineRedactionConfiguration.internalValue = config.inlineRedactionConfiguration; } get additionalEncryptionContext() { return this.getStringMapAttribute('additional_encryption_context'); } set additionalEncryptionContext(value) { this._additionalEncryptionContext = value; } resetAdditionalEncryptionContext() { this._additionalEncryptionContext = undefined; } // Temporarily expose input value. Use with caution. get additionalEncryptionContextInput() { return this._additionalEncryptionContext; } // associated_portal_arns - computed: true, optional: false, required: false get associatedPortalArns() { return this.getListAttribute('associated_portal_arns'); } get customerManagedKey() { return this.getStringAttribute('customer_managed_key'); } set customerManagedKey(value) { this._customerManagedKey = value; } resetCustomerManagedKey() { this._customerManagedKey = undefined; } // Temporarily expose input value. Use with caution. get customerManagedKeyInput() { return this._customerManagedKey; } // data_protection_settings_arn - computed: true, optional: false, required: false get dataProtectionSettingsArn() { return this.getStringAttribute('data_protection_settings_arn'); } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get tagsAll() { return this._tagsAll; } get inlineRedactionConfiguration() { return this._inlineRedactionConfiguration; } putInlineRedactionConfiguration(value) { this._inlineRedactionConfiguration.internalValue = value; } resetInlineRedactionConfiguration() { this._inlineRedactionConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get inlineRedactionConfigurationInput() { return this._inlineRedactionConfiguration.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { additional_encryption_context: cdktf.hashMapper(cdktf.stringToTerraform)(this._additionalEncryptionContext), customer_managed_key: cdktf.stringToTerraform(this._customerManagedKey), description: cdktf.stringToTerraform(this._description), display_name: cdktf.stringToTerraform(this._displayName), region: cdktf.stringToTerraform(this._region), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), inline_redaction_configuration: cdktf.listMapper(workspaceswebDataProtectionSettingsInlineRedactionConfigurationToTerraform, true)(this._inlineRedactionConfiguration.internalValue), }; } synthesizeHclAttributes() { const attrs = { additional_encryption_context: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._additionalEncryptionContext), isBlock: false, type: "map", storageClassType: "stringMap", }, customer_managed_key: { value: cdktf.stringToHclTerraform(this._customerManagedKey), isBlock: false, type: "simple", storageClassType: "string", }, description: { value: cdktf.stringToHclTerraform(this._description), isBlock: false, type: "simple", storageClassType: "string", }, display_name: { value: cdktf.stringToHclTerraform(this._displayName), isBlock: false, type: "simple", storageClassType: "string", }, region: { value: cdktf.stringToHclTerraform(this._region), isBlock: false, type: "simple", storageClassType: "string", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, inline_redaction_configuration: { value: cdktf.listMapperHcl(workspaceswebDataProtectionSettingsInlineRedactionConfigurationToHclTerraform, true)(this._inlineRedactionConfiguration.internalValue), isBlock: true, type: "list", storageClassType: "WorkspaceswebDataProtectionSettingsInlineRedactionConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.WorkspaceswebDataProtectionSettings = WorkspaceswebDataProtectionSettings; _j = JSII_RTTI_SYMBOL_1; WorkspaceswebDataProtectionSettings[_j] = { fqn: "@cdktf/provider-aws.workspaceswebDataProtectionSettings.WorkspaceswebDataProtectionSettings", version: "21.22.1" }; // ================= // STATIC PROPERTIES // ================= WorkspaceswebDataProtectionSettings.tfResourceType = "aws_workspacesweb_data_protection_settings"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd29ya3NwYWNlc3dlYi1kYXRhLXByb3RlY3Rpb24tc2V0dGluZ3MvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQWtFQSxzT0FXQztBQUdELDRPQWtDQztBQXlKRCxvUEFTQztBQUdELDBQQXNCQztBQW9JRCw0TUFhQztBQUdELGtOQThDQztBQXFORCxnS0FXQztBQUdELHNLQWtDQzs7QUEzdUJELCtCQUErQjtBQXlEL0IsU0FBZ0IsNkdBQTZHLENBQUMsTUFBK0g7SUFDM1AsSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsT0FBTztRQUNMLGFBQWEsRUFBRSxLQUFLLENBQUMsaUJBQWlCLENBQUMsTUFBTyxDQUFDLFlBQVksQ0FBQztRQUM1RCxtQkFBbUIsRUFBRSxLQUFLLENBQUMsaUJBQWlCLENBQUMsTUFBTyxDQUFDLGtCQUFrQixDQUFDO1FBQ3hFLFlBQVksRUFBRSxLQUFLLENBQUMsaUJBQWlCLENBQUMsTUFBTyxDQUFDLFdBQVcsQ0FBQztRQUMxRCxhQUFhLEVBQUUsS0FBSyxDQUFDLGlCQUFpQixDQUFDLE1BQU8sQ0FBQyxZQUFZLENBQUM7S0FDN0QsQ0FBQTtBQUNILENBQUM7QUFHRCxTQUFnQixnSEFBZ0gsQ0FBQyxNQUErSDtJQUM5UCxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxNQUFNLEtBQUssR0FBRztRQUNaLGFBQWEsRUFBRTtZQUNiLEtBQUssRUFBRSxLQUFLLENBQUMsb0JBQW9CLENBQUMsTUFBTyxDQUFDLFlBQVksQ0FBQztZQUN2RCxPQUFPLEVBQUUsS0FBSztZQUNkLElBQUksRUFBRSxRQUFRO1lBQ2QsZ0JBQWdCLEVBQUUsUUFBUTtTQUMzQjtRQUNELG1CQUFtQixFQUFFO1lBQ25CLEtBQUssRUFBRSxLQUFLLENBQUMsb0JBQW9CLENBQUMsTUFBTyxDQUFDLGtCQUFrQixDQUFDO1lBQzdELE9BQU8sRUFBRSxLQUFLO1lBQ2QsSUFBSSxFQUFFLFFBQVE7WUFDZCxnQkFBZ0IsRUFBRSxRQUFRO1NBQzNCO1FBQ0QsWUFBWSxFQUFFO1lBQ1osS0FBSyxFQUFFLEtBQUssQ0FBQyxvQkFBb0IsQ0FBQyxNQUFPLENBQUMsV0FBVyxDQUFDO1lBQ3RELE9BQU8sRUFBRSxLQUFLO1lBQ2QsS