UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,010 lines 150 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j; Object.defineProperty(exports, "__esModule", { value: true }); exports.WorkspaceswebUserSettings = exports.WorkspaceswebUserSettingsToolbarConfigurationList = exports.WorkspaceswebUserSettingsToolbarConfigurationOutputReference = exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationList = exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationOutputReference = exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList = exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructOutputReference = exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList = exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructOutputReference = void 0; exports.workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToTerraform = workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToTerraform; exports.workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToHclTerraform = workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToHclTerraform; exports.workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToTerraform = workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToTerraform; exports.workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToHclTerraform = workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToHclTerraform; exports.workspaceswebUserSettingsCookieSynchronizationConfigurationToTerraform = workspaceswebUserSettingsCookieSynchronizationConfigurationToTerraform; exports.workspaceswebUserSettingsCookieSynchronizationConfigurationToHclTerraform = workspaceswebUserSettingsCookieSynchronizationConfigurationToHclTerraform; exports.workspaceswebUserSettingsToolbarConfigurationToTerraform = workspaceswebUserSettingsToolbarConfigurationToTerraform; exports.workspaceswebUserSettingsToolbarConfigurationToHclTerraform = workspaceswebUserSettingsToolbarConfigurationToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToTerraform(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 { domain: cdktf.stringToTerraform(struct.domain), name: cdktf.stringToTerraform(struct.name), path: cdktf.stringToTerraform(struct.path), }; } function workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToHclTerraform(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 = { domain: { value: cdktf.stringToHclTerraform(struct.domain), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, 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)); } class WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructOutputReference 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._domain !== undefined) { hasAnyValues = true; internalValueResult.domain = this._domain; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._domain = undefined; this._name = undefined; this._path = 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._domain = value.domain; this._name = value.name; this._path = value.path; } } get domain() { return this.getStringAttribute('domain'); } set domain(value) { this._domain = value; } // Temporarily expose input value. Use with caution. get domainInput() { return this._domain; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructOutputReference = WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructOutputReference; _a = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructOutputReference[_a] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructOutputReference", version: "21.22.1" }; class WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList 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 WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList = WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList; _b = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList[_b] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList", version: "21.22.1" }; function workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToTerraform(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 { domain: cdktf.stringToTerraform(struct.domain), name: cdktf.stringToTerraform(struct.name), path: cdktf.stringToTerraform(struct.path), }; } function workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToHclTerraform(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 = { domain: { value: cdktf.stringToHclTerraform(struct.domain), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, 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)); } class WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructOutputReference 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._domain !== undefined) { hasAnyValues = true; internalValueResult.domain = this._domain; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._path !== undefined) { hasAnyValues = true; internalValueResult.path = this._path; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._domain = undefined; this._name = undefined; this._path = 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._domain = value.domain; this._name = value.name; this._path = value.path; } } get domain() { return this.getStringAttribute('domain'); } set domain(value) { this._domain = value; } // Temporarily expose input value. Use with caution. get domainInput() { return this._domain; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get path() { return this.getStringAttribute('path'); } set path(value) { this._path = value; } resetPath() { this._path = undefined; } // Temporarily expose input value. Use with caution. get pathInput() { return this._path; } } exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructOutputReference = WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructOutputReference; _c = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructOutputReference[_c] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructOutputReference", version: "21.22.1" }; class WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList 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 WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList = WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList; _d = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList[_d] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList", version: "21.22.1" }; function workspaceswebUserSettingsCookieSynchronizationConfigurationToTerraform(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 { allowlist: cdktf.listMapper(workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToTerraform, true)(struct.allowlist), blocklist: cdktf.listMapper(workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToTerraform, true)(struct.blocklist), }; } function workspaceswebUserSettingsCookieSynchronizationConfigurationToHclTerraform(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 = { allowlist: { value: cdktf.listMapperHcl(workspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructToHclTerraform, true)(struct.allowlist), isBlock: true, type: "list", storageClassType: "WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList", }, blocklist: { value: cdktf.listMapperHcl(workspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructToHclTerraform, true)(struct.blocklist), isBlock: true, type: "list", storageClassType: "WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class WorkspaceswebUserSettingsCookieSynchronizationConfigurationOutputReference 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; // allowlist - computed: false, optional: true, required: false this._allowlist = new WorkspaceswebUserSettingsCookieSynchronizationConfigurationAllowlistStructList(this, "allowlist", false); // blocklist - computed: false, optional: true, required: false this._blocklist = new WorkspaceswebUserSettingsCookieSynchronizationConfigurationBlocklistStructList(this, "blocklist", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._allowlist?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.allowlist = this._allowlist?.internalValue; } if (this._blocklist?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.blocklist = this._blocklist?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._allowlist.internalValue = undefined; this._blocklist.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._allowlist.internalValue = value.allowlist; this._blocklist.internalValue = value.blocklist; } } get allowlist() { return this._allowlist; } putAllowlist(value) { this._allowlist.internalValue = value; } resetAllowlist() { this._allowlist.internalValue = undefined; } // Temporarily expose input value. Use with caution. get allowlistInput() { return this._allowlist.internalValue; } get blocklist() { return this._blocklist; } putBlocklist(value) { this._blocklist.internalValue = value; } resetBlocklist() { this._blocklist.internalValue = undefined; } // Temporarily expose input value. Use with caution. get blocklistInput() { return this._blocklist.internalValue; } } exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationOutputReference = WorkspaceswebUserSettingsCookieSynchronizationConfigurationOutputReference; _e = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsCookieSynchronizationConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsCookieSynchronizationConfigurationOutputReference", version: "21.22.1" }; class WorkspaceswebUserSettingsCookieSynchronizationConfigurationList 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 WorkspaceswebUserSettingsCookieSynchronizationConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebUserSettingsCookieSynchronizationConfigurationList = WorkspaceswebUserSettingsCookieSynchronizationConfigurationList; _f = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsCookieSynchronizationConfigurationList[_f] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsCookieSynchronizationConfigurationList", version: "21.22.1" }; function workspaceswebUserSettingsToolbarConfigurationToTerraform(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 { hidden_toolbar_items: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.hiddenToolbarItems), max_display_resolution: cdktf.stringToTerraform(struct.maxDisplayResolution), toolbar_type: cdktf.stringToTerraform(struct.toolbarType), visual_mode: cdktf.stringToTerraform(struct.visualMode), }; } function workspaceswebUserSettingsToolbarConfigurationToHclTerraform(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 = { hidden_toolbar_items: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.hiddenToolbarItems), isBlock: false, type: "list", storageClassType: "stringList", }, max_display_resolution: { value: cdktf.stringToHclTerraform(struct.maxDisplayResolution), isBlock: false, type: "simple", storageClassType: "string", }, toolbar_type: { value: cdktf.stringToHclTerraform(struct.toolbarType), isBlock: false, type: "simple", storageClassType: "string", }, visual_mode: { value: cdktf.stringToHclTerraform(struct.visualMode), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class WorkspaceswebUserSettingsToolbarConfigurationOutputReference 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._hiddenToolbarItems !== undefined) { hasAnyValues = true; internalValueResult.hiddenToolbarItems = this._hiddenToolbarItems; } if (this._maxDisplayResolution !== undefined) { hasAnyValues = true; internalValueResult.maxDisplayResolution = this._maxDisplayResolution; } if (this._toolbarType !== undefined) { hasAnyValues = true; internalValueResult.toolbarType = this._toolbarType; } if (this._visualMode !== undefined) { hasAnyValues = true; internalValueResult.visualMode = this._visualMode; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._hiddenToolbarItems = undefined; this._maxDisplayResolution = undefined; this._toolbarType = undefined; this._visualMode = 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._hiddenToolbarItems = value.hiddenToolbarItems; this._maxDisplayResolution = value.maxDisplayResolution; this._toolbarType = value.toolbarType; this._visualMode = value.visualMode; } } get hiddenToolbarItems() { return this.getListAttribute('hidden_toolbar_items'); } set hiddenToolbarItems(value) { this._hiddenToolbarItems = value; } resetHiddenToolbarItems() { this._hiddenToolbarItems = undefined; } // Temporarily expose input value. Use with caution. get hiddenToolbarItemsInput() { return this._hiddenToolbarItems; } get maxDisplayResolution() { return this.getStringAttribute('max_display_resolution'); } set maxDisplayResolution(value) { this._maxDisplayResolution = value; } resetMaxDisplayResolution() { this._maxDisplayResolution = undefined; } // Temporarily expose input value. Use with caution. get maxDisplayResolutionInput() { return this._maxDisplayResolution; } get toolbarType() { return this.getStringAttribute('toolbar_type'); } set toolbarType(value) { this._toolbarType = value; } resetToolbarType() { this._toolbarType = undefined; } // Temporarily expose input value. Use with caution. get toolbarTypeInput() { return this._toolbarType; } get visualMode() { return this.getStringAttribute('visual_mode'); } set visualMode(value) { this._visualMode = value; } resetVisualMode() { this._visualMode = undefined; } // Temporarily expose input value. Use with caution. get visualModeInput() { return this._visualMode; } } exports.WorkspaceswebUserSettingsToolbarConfigurationOutputReference = WorkspaceswebUserSettingsToolbarConfigurationOutputReference; _g = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsToolbarConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsToolbarConfigurationOutputReference", version: "21.22.1" }; class WorkspaceswebUserSettingsToolbarConfigurationList 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 WorkspaceswebUserSettingsToolbarConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WorkspaceswebUserSettingsToolbarConfigurationList = WorkspaceswebUserSettingsToolbarConfigurationList; _h = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettingsToolbarConfigurationList[_h] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettingsToolbarConfigurationList", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/workspacesweb_user_settings aws_workspacesweb_user_settings} */ class WorkspaceswebUserSettings extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a WorkspaceswebUserSettings 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 WorkspaceswebUserSettings to import * @param importFromId The id of the existing WorkspaceswebUserSettings that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/workspacesweb_user_settings#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the WorkspaceswebUserSettings to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_workspacesweb_user_settings", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/workspacesweb_user_settings aws_workspacesweb_user_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 WorkspaceswebUserSettingsConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_workspacesweb_user_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"); // cookie_synchronization_configuration - computed: false, optional: true, required: false this._cookieSynchronizationConfiguration = new WorkspaceswebUserSettingsCookieSynchronizationConfigurationList(this, "cookie_synchronization_configuration", false); // toolbar_configuration - computed: false, optional: true, required: false this._toolbarConfiguration = new WorkspaceswebUserSettingsToolbarConfigurationList(this, "toolbar_configuration", false); this._additionalEncryptionContext = config.additionalEncryptionContext; this._copyAllowed = config.copyAllowed; this._customerManagedKey = config.customerManagedKey; this._deepLinkAllowed = config.deepLinkAllowed; this._disconnectTimeoutInMinutes = config.disconnectTimeoutInMinutes; this._downloadAllowed = config.downloadAllowed; this._idleDisconnectTimeoutInMinutes = config.idleDisconnectTimeoutInMinutes; this._pasteAllowed = config.pasteAllowed; this._printAllowed = config.printAllowed; this._region = config.region; this._tags = config.tags; this._uploadAllowed = config.uploadAllowed; this._cookieSynchronizationConfiguration.internalValue = config.cookieSynchronizationConfiguration; this._toolbarConfiguration.internalValue = config.toolbarConfiguration; } 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 copyAllowed() { return this.getStringAttribute('copy_allowed'); } set copyAllowed(value) { this._copyAllowed = value; } // Temporarily expose input value. Use with caution. get copyAllowedInput() { return this._copyAllowed; } 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; } get deepLinkAllowed() { return this.getStringAttribute('deep_link_allowed'); } set deepLinkAllowed(value) { this._deepLinkAllowed = value; } resetDeepLinkAllowed() { this._deepLinkAllowed = undefined; } // Temporarily expose input value. Use with caution. get deepLinkAllowedInput() { return this._deepLinkAllowed; } get disconnectTimeoutInMinutes() { return this.getNumberAttribute('disconnect_timeout_in_minutes'); } set disconnectTimeoutInMinutes(value) { this._disconnectTimeoutInMinutes = value; } resetDisconnectTimeoutInMinutes() { this._disconnectTimeoutInMinutes = undefined; } // Temporarily expose input value. Use with caution. get disconnectTimeoutInMinutesInput() { return this._disconnectTimeoutInMinutes; } get downloadAllowed() { return this.getStringAttribute('download_allowed'); } set downloadAllowed(value) { this._downloadAllowed = value; } // Temporarily expose input value. Use with caution. get downloadAllowedInput() { return this._downloadAllowed; } get idleDisconnectTimeoutInMinutes() { return this.getNumberAttribute('idle_disconnect_timeout_in_minutes'); } set idleDisconnectTimeoutInMinutes(value) { this._idleDisconnectTimeoutInMinutes = value; } resetIdleDisconnectTimeoutInMinutes() { this._idleDisconnectTimeoutInMinutes = undefined; } // Temporarily expose input value. Use with caution. get idleDisconnectTimeoutInMinutesInput() { return this._idleDisconnectTimeoutInMinutes; } get pasteAllowed() { return this.getStringAttribute('paste_allowed'); } set pasteAllowed(value) { this._pasteAllowed = value; } // Temporarily expose input value. Use with caution. get pasteAllowedInput() { return this._pasteAllowed; } get printAllowed() { return this.getStringAttribute('print_allowed'); } set printAllowed(value) { this._printAllowed = value; } // Temporarily expose input value. Use with caution. get printAllowedInput() { return this._printAllowed; } 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 uploadAllowed() { return this.getStringAttribute('upload_allowed'); } set uploadAllowed(value) { this._uploadAllowed = value; } // Temporarily expose input value. Use with caution. get uploadAllowedInput() { return this._uploadAllowed; } // user_settings_arn - computed: true, optional: false, required: false get userSettingsArn() { return this.getStringAttribute('user_settings_arn'); } get cookieSynchronizationConfiguration() { return this._cookieSynchronizationConfiguration; } putCookieSynchronizationConfiguration(value) { this._cookieSynchronizationConfiguration.internalValue = value; } resetCookieSynchronizationConfiguration() { this._cookieSynchronizationConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get cookieSynchronizationConfigurationInput() { return this._cookieSynchronizationConfiguration.internalValue; } get toolbarConfiguration() { return this._toolbarConfiguration; } putToolbarConfiguration(value) { this._toolbarConfiguration.internalValue = value; } resetToolbarConfiguration() { this._toolbarConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get toolbarConfigurationInput() { return this._toolbarConfiguration.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { additional_encryption_context: cdktf.hashMapper(cdktf.stringToTerraform)(this._additionalEncryptionContext), copy_allowed: cdktf.stringToTerraform(this._copyAllowed), customer_managed_key: cdktf.stringToTerraform(this._customerManagedKey), deep_link_allowed: cdktf.stringToTerraform(this._deepLinkAllowed), disconnect_timeout_in_minutes: cdktf.numberToTerraform(this._disconnectTimeoutInMinutes), download_allowed: cdktf.stringToTerraform(this._downloadAllowed), idle_disconnect_timeout_in_minutes: cdktf.numberToTerraform(this._idleDisconnectTimeoutInMinutes), paste_allowed: cdktf.stringToTerraform(this._pasteAllowed), print_allowed: cdktf.stringToTerraform(this._printAllowed), region: cdktf.stringToTerraform(this._region), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), upload_allowed: cdktf.stringToTerraform(this._uploadAllowed), cookie_synchronization_configuration: cdktf.listMapper(workspaceswebUserSettingsCookieSynchronizationConfigurationToTerraform, true)(this._cookieSynchronizationConfiguration.internalValue), toolbar_configuration: cdktf.listMapper(workspaceswebUserSettingsToolbarConfigurationToTerraform, true)(this._toolbarConfiguration.internalValue), }; } synthesizeHclAttributes() { const attrs = { additional_encryption_context: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._additionalEncryptionContext), isBlock: false, type: "map", storageClassType: "stringMap", }, copy_allowed: { value: cdktf.stringToHclTerraform(this._copyAllowed), isBlock: false, type: "simple", storageClassType: "string", }, customer_managed_key: { value: cdktf.stringToHclTerraform(this._customerManagedKey), isBlock: false, type: "simple", storageClassType: "string", }, deep_link_allowed: { value: cdktf.stringToHclTerraform(this._deepLinkAllowed), isBlock: false, type: "simple", storageClassType: "string", }, disconnect_timeout_in_minutes: { value: cdktf.numberToHclTerraform(this._disconnectTimeoutInMinutes), isBlock: false, type: "simple", storageClassType: "number", }, download_allowed: { value: cdktf.stringToHclTerraform(this._downloadAllowed), isBlock: false, type: "simple", storageClassType: "string", }, idle_disconnect_timeout_in_minutes: { value: cdktf.numberToHclTerraform(this._idleDisconnectTimeoutInMinutes), isBlock: false, type: "simple", storageClassType: "number", }, paste_allowed: { value: cdktf.stringToHclTerraform(this._pasteAllowed), isBlock: false, type: "simple", storageClassType: "string", }, print_allowed: { value: cdktf.stringToHclTerraform(this._printAllowed), 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", }, upload_allowed: { value: cdktf.stringToHclTerraform(this._uploadAllowed), isBlock: false, type: "simple", storageClassType: "string", }, cookie_synchronization_configuration: { value: cdktf.listMapperHcl(workspaceswebUserSettingsCookieSynchronizationConfigurationToHclTerraform, true)(this._cookieSynchronizationConfiguration.internalValue), isBlock: true, type: "list", storageClassType: "WorkspaceswebUserSettingsCookieSynchronizationConfigurationList", }, toolbar_configuration: { value: cdktf.listMapperHcl(workspaceswebUserSettingsToolbarConfigurationToHclTerraform, true)(this._toolbarConfiguration.internalValue), isBlock: true, type: "list", storageClassType: "WorkspaceswebUserSettingsToolbarConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.WorkspaceswebUserSettings = WorkspaceswebUserSettings; _j = JSII_RTTI_SYMBOL_1; WorkspaceswebUserSettings[_j] = { fqn: "@cdktf/provider-aws.workspaceswebUserSettings.WorkspaceswebUserSettings", version: "21.22.1" }; // ================= // STATIC PROPERTIES // ================= WorkspaceswebUserSettings.tfResourceType = "aws_workspacesweb_user_settings"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd29ya3NwYWNlc3dlYi11c2VyLXNldHRpbmdzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUE0RkEsc0xBVUM7QUFHRCw0TEE0QkM7QUEwSUQsc0xBVUM7QUFHRCw0TEE0QkM7QUEwSUQsd0pBU0M7QUFHRCw4SkFzQkM7QUEySEQsNEhBV0M7QUFHRCxrSUFrQ0M7O0FBdG9CRCwrQkFBK0I7QUFtRi9CLFNBQWdCLHFGQUFxRixDQUFDLE1BQXVHO0lBQzNNLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxD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