2 lines
126 KiB
JavaScript
2 lines
126 KiB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSessionLogger=exports.CfnDataProtectionSettings=exports.CfnUserSettings=exports.CfnUserAccessLoggingSettings=exports.CfnTrustStore=exports.CfnPortal=exports.CfnNetworkSettings=exports.CfnIpAccessSettings=exports.CfnIdentityProvider=exports.CfnBrowserSettings=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnBrowserSettings extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnBrowserSettings",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::BrowserSettings";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBrowserSettingsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnBrowserSettings(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnBrowserSettings(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnBrowserSettings.CFN_RESOURCE_TYPE_NAME}static arnForBrowserSettings(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_IBrowserSettingsRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForBrowserSettings),error}return resource.browserSettingsRef.browserSettingsArn}_additionalEncryptionContext;_browserPolicy;cdkTagManager;_customerManagedKey;_tags;_webContentFilteringPolicy;cfnPropertyNames={additionalEncryptionContext:"AdditionalEncryptionContext",browserPolicy:"BrowserPolicy",tags:"Tags",customerManagedKey:"CustomerManagedKey",webContentFilteringPolicy:"WebContentFilteringPolicy"};constructor(scope,id,props={}){super(scope,id,{type:CfnBrowserSettings.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnBrowserSettingsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBrowserSettings),error}this._additionalEncryptionContext=props.additionalEncryptionContext,this._browserPolicy=props.browserPolicy,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::BrowserSettings",void 0,{tagPropertyName:"tags"}),this._customerManagedKey=props.customerManagedKey,this._tags=props.tags,this._webContentFilteringPolicy=props.webContentFilteringPolicy}get browserSettingsRef(){return{browserSettingsArn:this.ref}}get additionalEncryptionContext(){return this._additionalEncryptionContext}set additionalEncryptionContext(value){cdk().traceProperty(this.node,"AdditionalEncryptionContext"),this._additionalEncryptionContext=value}get browserPolicy(){return this._browserPolicy}set browserPolicy(value){cdk().traceProperty(this.node,"BrowserPolicy"),this._browserPolicy=value}get customerManagedKey(){return this._customerManagedKey}set customerManagedKey(value){cdk().traceProperty(this.node,"CustomerManagedKey"),this._customerManagedKey=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get webContentFilteringPolicy(){return this._webContentFilteringPolicy}set webContentFilteringPolicy(value){cdk().traceProperty(this.node,"WebContentFilteringPolicy"),this._webContentFilteringPolicy=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrBrowserSettingsArn(){return cdk().Token.asString(this.getAtt("BrowserSettingsArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{additionalEncryptionContext:this._additionalEncryptionContext,browserPolicy:this._browserPolicy,tags:this.cdkTagManager.renderTags(this._tags),customerManagedKey:this._customerManagedKey,webContentFilteringPolicy:this._webContentFilteringPolicy}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnBrowserSettings.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBrowserSettingsPropsToCloudFormation(props)}}exports.CfnBrowserSettings=CfnBrowserSettings;function CfnBrowserSettingsWebContentFilteringPolicyPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowedUrls",cdk().listValidator(cdk().validateString))(properties.allowedUrls)),errors.collect(cdk().propertyValidator("blockedCategories",cdk().listValidator(cdk().validateString))(properties.blockedCategories)),errors.collect(cdk().propertyValidator("blockedUrls",cdk().listValidator(cdk().validateString))(properties.blockedUrls)),errors.wrap('supplied properties not correct for "WebContentFilteringPolicyProperty"')}function convertCfnBrowserSettingsWebContentFilteringPolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserSettingsWebContentFilteringPolicyPropertyValidator(properties).assertSuccess(),{AllowedUrls:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedUrls),BlockedCategories:cdk().listMapper(cdk().stringToCloudFormation)(properties.blockedCategories),BlockedUrls:cdk().listMapper(cdk().stringToCloudFormation)(properties.blockedUrls)}):properties}function CfnBrowserSettingsWebContentFilteringPolicyPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowedUrls","AllowedUrls",properties.AllowedUrls!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedUrls):void 0),ret.addPropertyResult("blockedCategories","BlockedCategories",properties.BlockedCategories!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.BlockedCategories):void 0),ret.addPropertyResult("blockedUrls","BlockedUrls",properties.BlockedUrls!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.BlockedUrls):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBrowserSettingsPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("additionalEncryptionContext",cdk().hashValidator(cdk().validateString))(properties.additionalEncryptionContext)),errors.collect(cdk().propertyValidator("browserPolicy",cdk().validateString)(properties.browserPolicy)),errors.collect(cdk().propertyValidator("customerManagedKey",cdk().validateString)(properties.customerManagedKey)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("webContentFilteringPolicy",CfnBrowserSettingsWebContentFilteringPolicyPropertyValidator)(properties.webContentFilteringPolicy)),errors.wrap('supplied properties not correct for "CfnBrowserSettingsProps"')}function convertCfnBrowserSettingsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserSettingsPropsValidator(properties).assertSuccess(),{AdditionalEncryptionContext:cdk().hashMapper(cdk().stringToCloudFormation)(properties.additionalEncryptionContext),BrowserPolicy:cdk().stringToCloudFormation(properties.browserPolicy),CustomerManagedKey:cdk().stringToCloudFormation(properties.customerManagedKey),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),WebContentFilteringPolicy:convertCfnBrowserSettingsWebContentFilteringPolicyPropertyToCloudFormation(properties.webContentFilteringPolicy)}):properties}function CfnBrowserSettingsPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("additionalEncryptionContext","AdditionalEncryptionContext",properties.AdditionalEncryptionContext!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.AdditionalEncryptionContext):void 0),ret.addPropertyResult("browserPolicy","BrowserPolicy",properties.BrowserPolicy!=null?cfn_parse().FromCloudFormation.getString(properties.BrowserPolicy):void 0),ret.addPropertyResult("customerManagedKey","CustomerManagedKey",properties.CustomerManagedKey!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerManagedKey):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("webContentFilteringPolicy","WebContentFilteringPolicy",properties.WebContentFilteringPolicy!=null?CfnBrowserSettingsWebContentFilteringPolicyPropertyFromCloudFormation(properties.WebContentFilteringPolicy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIdentityProvider extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnIdentityProvider",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::IdentityProvider";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentityProviderPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnIdentityProvider(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnIdentityProvider(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIdentityProvider.CFN_RESOURCE_TYPE_NAME}static arnForIdentityProvider(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_IIdentityProviderRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForIdentityProvider),error}return resource.identityProviderRef.identityProviderArn}cdkTagManager;_identityProviderDetails;_identityProviderName;_identityProviderType;_portalArn;_tags;cfnPropertyNames={tags:"Tags",identityProviderDetails:"IdentityProviderDetails",identityProviderName:"IdentityProviderName",identityProviderType:"IdentityProviderType",portalArn:"PortalArn"};constructor(scope,id,props){super(scope,id,{type:CfnIdentityProvider.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnIdentityProviderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentityProvider),error}cdk().requireProperty(props,"identityProviderDetails",this),cdk().requireProperty(props,"identityProviderName",this),cdk().requireProperty(props,"identityProviderType",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::IdentityProvider",void 0,{tagPropertyName:"tags"}),this._identityProviderDetails=props.identityProviderDetails,this._identityProviderName=props.identityProviderName,this._identityProviderType=props.identityProviderType,this._portalArn=props.portalArn,this._tags=props.tags}get identityProviderRef(){return{identityProviderArn:this.ref}}get identityProviderDetails(){return this._identityProviderDetails}set identityProviderDetails(value){cdk().traceProperty(this.node,"IdentityProviderDetails"),this._identityProviderDetails=value}get identityProviderName(){return this._identityProviderName}set identityProviderName(value){cdk().traceProperty(this.node,"IdentityProviderName"),this._identityProviderName=value}get identityProviderType(){return this._identityProviderType}set identityProviderType(value){cdk().traceProperty(this.node,"IdentityProviderType"),this._identityProviderType=value}get portalArn(){return this._portalArn}set portalArn(value){cdk().traceProperty(this.node,"PortalArn"),this._portalArn=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrIdentityProviderArn(){return cdk().Token.asString(this.getAtt("IdentityProviderArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),identityProviderDetails:this._identityProviderDetails,identityProviderName:this._identityProviderName,identityProviderType:this._identityProviderType,portalArn:this._portalArn}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnIdentityProvider.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentityProviderPropsToCloudFormation(props)}}exports.CfnIdentityProvider=CfnIdentityProvider;function CfnIdentityProviderPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("identityProviderDetails",cdk().requiredValidator)(properties.identityProviderDetails)),errors.collect(cdk().propertyValidator("identityProviderDetails",cdk().hashValidator(cdk().validateString))(properties.identityProviderDetails)),errors.collect(cdk().propertyValidator("identityProviderName",cdk().requiredValidator)(properties.identityProviderName)),errors.collect(cdk().propertyValidator("identityProviderName",cdk().validateString)(properties.identityProviderName)),errors.collect(cdk().propertyValidator("identityProviderType",cdk().requiredValidator)(properties.identityProviderType)),errors.collect(cdk().propertyValidator("identityProviderType",cdk().validateString)(properties.identityProviderType)),errors.collect(cdk().propertyValidator("portalArn",cdk().validateString)(properties.portalArn)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnIdentityProviderProps"')}function convertCfnIdentityProviderPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityProviderPropsValidator(properties).assertSuccess(),{IdentityProviderDetails:cdk().hashMapper(cdk().stringToCloudFormation)(properties.identityProviderDetails),IdentityProviderName:cdk().stringToCloudFormation(properties.identityProviderName),IdentityProviderType:cdk().stringToCloudFormation(properties.identityProviderType),PortalArn:cdk().stringToCloudFormation(properties.portalArn),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnIdentityProviderPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("identityProviderDetails","IdentityProviderDetails",properties.IdentityProviderDetails!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.IdentityProviderDetails):void 0),ret.addPropertyResult("identityProviderName","IdentityProviderName",properties.IdentityProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityProviderName):void 0),ret.addPropertyResult("identityProviderType","IdentityProviderType",properties.IdentityProviderType!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityProviderType):void 0),ret.addPropertyResult("portalArn","PortalArn",properties.PortalArn!=null?cfn_parse().FromCloudFormation.getString(properties.PortalArn):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIpAccessSettings extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnIpAccessSettings",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::IpAccessSettings";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIpAccessSettingsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnIpAccessSettings(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnIpAccessSettings(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIpAccessSettings.CFN_RESOURCE_TYPE_NAME}static arnForIpAccessSettings(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_IIpAccessSettingsRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForIpAccessSettings),error}return resource.ipAccessSettingsRef.ipAccessSettingsArn}_additionalEncryptionContext;cdkTagManager;_customerManagedKey;_description;_displayName;_ipRules;_tags;cfnPropertyNames={additionalEncryptionContext:"AdditionalEncryptionContext",tags:"Tags",customerManagedKey:"CustomerManagedKey",description:"Description",displayName:"DisplayName",ipRules:"IpRules"};constructor(scope,id,props){super(scope,id,{type:CfnIpAccessSettings.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnIpAccessSettingsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIpAccessSettings),error}cdk().requireProperty(props,"ipRules",this),this._additionalEncryptionContext=props.additionalEncryptionContext,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::IpAccessSettings",void 0,{tagPropertyName:"tags"}),this._customerManagedKey=props.customerManagedKey,this._description=props.description,this._displayName=props.displayName,this._ipRules=props.ipRules,this._tags=props.tags}get ipAccessSettingsRef(){return{ipAccessSettingsArn:this.ref}}get additionalEncryptionContext(){return this._additionalEncryptionContext}set additionalEncryptionContext(value){cdk().traceProperty(this.node,"AdditionalEncryptionContext"),this._additionalEncryptionContext=value}get customerManagedKey(){return this._customerManagedKey}set customerManagedKey(value){cdk().traceProperty(this.node,"CustomerManagedKey"),this._customerManagedKey=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get displayName(){return this._displayName}set displayName(value){cdk().traceProperty(this.node,"DisplayName"),this._displayName=value}get ipRules(){return this._ipRules}set ipRules(value){cdk().traceProperty(this.node,"IpRules"),this._ipRules=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrCreationDate(){return cdk().Token.asString(this.getAtt("CreationDate",cdk().ResolutionTypeHint.STRING))}get attrIpAccessSettingsArn(){return cdk().Token.asString(this.getAtt("IpAccessSettingsArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{additionalEncryptionContext:this._additionalEncryptionContext,tags:this.cdkTagManager.renderTags(this._tags),customerManagedKey:this._customerManagedKey,description:this._description,displayName:this._displayName,ipRules:this._ipRules}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnIpAccessSettings.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIpAccessSettingsPropsToCloudFormation(props)}}exports.CfnIpAccessSettings=CfnIpAccessSettings;function CfnIpAccessSettingsIpRulePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("ipRange",cdk().requiredValidator)(properties.ipRange)),errors.collect(cdk().propertyValidator("ipRange",cdk().validateString)(properties.ipRange)),errors.wrap('supplied properties not correct for "IpRuleProperty"')}function convertCfnIpAccessSettingsIpRulePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIpAccessSettingsIpRulePropertyValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),IpRange:cdk().stringToCloudFormation(properties.ipRange)}):properties}function CfnIpAccessSettingsIpRulePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("ipRange","IpRange",properties.IpRange!=null?cfn_parse().FromCloudFormation.getString(properties.IpRange):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIpAccessSettingsPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("additionalEncryptionContext",cdk().hashValidator(cdk().validateString))(properties.additionalEncryptionContext)),errors.collect(cdk().propertyValidator("customerManagedKey",cdk().validateString)(properties.customerManagedKey)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("displayName",cdk().validateString)(properties.displayName)),errors.collect(cdk().propertyValidator("ipRules",cdk().requiredValidator)(properties.ipRules)),errors.collect(cdk().propertyValidator("ipRules",cdk().listValidator(CfnIpAccessSettingsIpRulePropertyValidator))(properties.ipRules)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnIpAccessSettingsProps"')}function convertCfnIpAccessSettingsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIpAccessSettingsPropsValidator(properties).assertSuccess(),{AdditionalEncryptionContext:cdk().hashMapper(cdk().stringToCloudFormation)(properties.additionalEncryptionContext),CustomerManagedKey:cdk().stringToCloudFormation(properties.customerManagedKey),Description:cdk().stringToCloudFormation(properties.description),DisplayName:cdk().stringToCloudFormation(properties.displayName),IpRules:cdk().listMapper(convertCfnIpAccessSettingsIpRulePropertyToCloudFormation)(properties.ipRules),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnIpAccessSettingsPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("additionalEncryptionContext","AdditionalEncryptionContext",properties.AdditionalEncryptionContext!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.AdditionalEncryptionContext):void 0),ret.addPropertyResult("customerManagedKey","CustomerManagedKey",properties.CustomerManagedKey!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerManagedKey):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("displayName","DisplayName",properties.DisplayName!=null?cfn_parse().FromCloudFormation.getString(properties.DisplayName):void 0),ret.addPropertyResult("ipRules","IpRules",properties.IpRules!=null?cfn_parse().FromCloudFormation.getArray(CfnIpAccessSettingsIpRulePropertyFromCloudFormation)(properties.IpRules):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnNetworkSettings extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnNetworkSettings",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::NetworkSettings";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnNetworkSettingsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnNetworkSettings(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnNetworkSettings(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnNetworkSettings.CFN_RESOURCE_TYPE_NAME}static arnForNetworkSettings(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_INetworkSettingsRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForNetworkSettings),error}return resource.networkSettingsRef.networkSettingsArn}cdkTagManager;_securityGroupIds;_subnetIds;_tags;_vpcId;cfnPropertyNames={tags:"Tags",securityGroupIds:"SecurityGroupIds",subnetIds:"SubnetIds",vpcId:"VpcId"};constructor(scope,id,props){super(scope,id,{type:CfnNetworkSettings.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnNetworkSettingsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnNetworkSettings),error}cdk().requireProperty(props,"securityGroupIds",this),cdk().requireProperty(props,"subnetIds",this),cdk().requireProperty(props,"vpcId",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::NetworkSettings",void 0,{tagPropertyName:"tags"}),this._securityGroupIds=props.securityGroupIds,this._subnetIds=props.subnetIds,this._tags=props.tags,this._vpcId=props.vpcId}get networkSettingsRef(){return{networkSettingsArn:this.ref}}get securityGroupIds(){return this._securityGroupIds}set securityGroupIds(value){cdk().traceProperty(this.node,"SecurityGroupIds"),this._securityGroupIds=value}get subnetIds(){return this._subnetIds}set subnetIds(value){cdk().traceProperty(this.node,"SubnetIds"),this._subnetIds=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get vpcId(){return this._vpcId}set vpcId(value){cdk().traceProperty(this.node,"VpcId"),this._vpcId=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrNetworkSettingsArn(){return cdk().Token.asString(this.getAtt("NetworkSettingsArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),securityGroupIds:this._securityGroupIds,subnetIds:this._subnetIds,vpcId:this._vpcId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnNetworkSettings.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnNetworkSettingsPropsToCloudFormation(props)}}exports.CfnNetworkSettings=CfnNetworkSettings;function CfnNetworkSettingsPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("securityGroupIds",cdk().requiredValidator)(properties.securityGroupIds)),errors.collect(cdk().propertyValidator("securityGroupIds",cdk().listValidator(cdk().validateString))(properties.securityGroupIds)),errors.collect(cdk().propertyValidator("subnetIds",cdk().requiredValidator)(properties.subnetIds)),errors.collect(cdk().propertyValidator("subnetIds",cdk().listValidator(cdk().validateString))(properties.subnetIds)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("vpcId",cdk().requiredValidator)(properties.vpcId)),errors.collect(cdk().propertyValidator("vpcId",cdk().validateString)(properties.vpcId)),errors.wrap('supplied properties not correct for "CfnNetworkSettingsProps"')}function convertCfnNetworkSettingsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnNetworkSettingsPropsValidator(properties).assertSuccess(),{SecurityGroupIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupIds),SubnetIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnetIds),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),VpcId:cdk().stringToCloudFormation(properties.vpcId)}):properties}function CfnNetworkSettingsPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("securityGroupIds","SecurityGroupIds",properties.SecurityGroupIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroupIds):void 0),ret.addPropertyResult("subnetIds","SubnetIds",properties.SubnetIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SubnetIds):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("vpcId","VpcId",properties.VpcId!=null?cfn_parse().FromCloudFormation.getString(properties.VpcId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPortal extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnPortal",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::Portal";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPortalPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnPortal(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnPortal(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPortal.CFN_RESOURCE_TYPE_NAME}static arnForPortal(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_IPortalRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForPortal),error}return resource.portalRef.portalArn}_additionalEncryptionContext;_authenticationType;_browserSettingsArn;cdkTagManager;_customerManagedKey;_dataProtectionSettingsArn;_displayName;_instanceType;_ipAccessSettingsArn;_maxConcurrentSessions;_networkSettingsArn;_portalCustomDomain;_sessionLoggerArn;_tags;_trustStoreArn;_userAccessLoggingSettingsArn;_userSettingsArn;cfnPropertyNames={additionalEncryptionContext:"AdditionalEncryptionContext",authenticationType:"AuthenticationType",browserSettingsArn:"BrowserSettingsArn",tags:"Tags",customerManagedKey:"CustomerManagedKey",dataProtectionSettingsArn:"DataProtectionSettingsArn",displayName:"DisplayName",instanceType:"InstanceType",ipAccessSettingsArn:"IpAccessSettingsArn",maxConcurrentSessions:"MaxConcurrentSessions",networkSettingsArn:"NetworkSettingsArn",portalCustomDomain:"PortalCustomDomain",sessionLoggerArn:"SessionLoggerArn",trustStoreArn:"TrustStoreArn",userAccessLoggingSettingsArn:"UserAccessLoggingSettingsArn",userSettingsArn:"UserSettingsArn"};constructor(scope,id,props={}){super(scope,id,{type:CfnPortal.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnPortalProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPortal),error}this._additionalEncryptionContext=props.additionalEncryptionContext,this._authenticationType=props.authenticationType,this._browserSettingsArn=props.browserSettingsArn,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::Portal",void 0,{tagPropertyName:"tags"}),this._customerManagedKey=props.customerManagedKey,this._dataProtectionSettingsArn=props.dataProtectionSettingsArn,this._displayName=props.displayName,this._instanceType=props.instanceType,this._ipAccessSettingsArn=props.ipAccessSettingsArn,this._maxConcurrentSessions=props.maxConcurrentSessions,this._networkSettingsArn=props.networkSettingsArn,this._portalCustomDomain=props.portalCustomDomain,this._sessionLoggerArn=props.sessionLoggerArn,this._tags=props.tags,this._trustStoreArn=props.trustStoreArn,this._userAccessLoggingSettingsArn=props.userAccessLoggingSettingsArn,this._userSettingsArn=props.userSettingsArn}get portalRef(){return{portalArn:this.ref}}get additionalEncryptionContext(){return this._additionalEncryptionContext}set additionalEncryptionContext(value){cdk().traceProperty(this.node,"AdditionalEncryptionContext"),this._additionalEncryptionContext=value}get authenticationType(){return this._authenticationType}set authenticationType(value){cdk().traceProperty(this.node,"AuthenticationType"),this._authenticationType=value}get browserSettingsArn(){return this._browserSettingsArn}set browserSettingsArn(value){cdk().traceProperty(this.node,"BrowserSettingsArn"),this._browserSettingsArn=value}get customerManagedKey(){return this._customerManagedKey}set customerManagedKey(value){cdk().traceProperty(this.node,"CustomerManagedKey"),this._customerManagedKey=value}get dataProtectionSettingsArn(){return this._dataProtectionSettingsArn}set dataProtectionSettingsArn(value){cdk().traceProperty(this.node,"DataProtectionSettingsArn"),this._dataProtectionSettingsArn=value}get displayName(){return this._displayName}set displayName(value){cdk().traceProperty(this.node,"DisplayName"),this._displayName=value}get instanceType(){return this._instanceType}set instanceType(value){cdk().traceProperty(this.node,"InstanceType"),this._instanceType=value}get ipAccessSettingsArn(){return this._ipAccessSettingsArn}set ipAccessSettingsArn(value){cdk().traceProperty(this.node,"IpAccessSettingsArn"),this._ipAccessSettingsArn=value}get maxConcurrentSessions(){return this._maxConcurrentSessions}set maxConcurrentSessions(value){cdk().traceProperty(this.node,"MaxConcurrentSessions"),this._maxConcurrentSessions=value}get networkSettingsArn(){return this._networkSettingsArn}set networkSettingsArn(value){cdk().traceProperty(this.node,"NetworkSettingsArn"),this._networkSettingsArn=value}get portalCustomDomain(){return this._portalCustomDomain}set portalCustomDomain(value){cdk().traceProperty(this.node,"PortalCustomDomain"),this._portalCustomDomain=value}get sessionLoggerArn(){return this._sessionLoggerArn}set sessionLoggerArn(value){cdk().traceProperty(this.node,"SessionLoggerArn"),this._sessionLoggerArn=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get trustStoreArn(){return this._trustStoreArn}set trustStoreArn(value){cdk().traceProperty(this.node,"TrustStoreArn"),this._trustStoreArn=value}get userAccessLoggingSettingsArn(){return this._userAccessLoggingSettingsArn}set userAccessLoggingSettingsArn(value){cdk().traceProperty(this.node,"UserAccessLoggingSettingsArn"),this._userAccessLoggingSettingsArn=value}get userSettingsArn(){return this._userSettingsArn}set userSettingsArn(value){cdk().traceProperty(this.node,"UserSettingsArn"),this._userSettingsArn=value}get attrBrowserType(){return cdk().Token.asString(this.getAtt("BrowserType",cdk().ResolutionTypeHint.STRING))}get attrCreationDate(){return cdk().Token.asString(this.getAtt("CreationDate",cdk().ResolutionTypeHint.STRING))}get attrPortalArn(){return cdk().Token.asString(this.getAtt("PortalArn",cdk().ResolutionTypeHint.STRING))}get attrPortalEndpoint(){return cdk().Token.asString(this.getAtt("PortalEndpoint",cdk().ResolutionTypeHint.STRING))}get attrPortalStatus(){return cdk().Token.asString(this.getAtt("PortalStatus",cdk().ResolutionTypeHint.STRING))}get attrRendererType(){return cdk().Token.asString(this.getAtt("RendererType",cdk().ResolutionTypeHint.STRING))}get attrServiceProviderSamlMetadata(){return cdk().Token.asString(this.getAtt("ServiceProviderSamlMetadata",cdk().ResolutionTypeHint.STRING))}get attrStatusReason(){return cdk().Token.asString(this.getAtt("StatusReason",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{additionalEncryptionContext:this._additionalEncryptionContext,authenticationType:this._authenticationType,browserSettingsArn:this._browserSettingsArn,tags:this.cdkTagManager.renderTags(this._tags),customerManagedKey:this._customerManagedKey,dataProtectionSettingsArn:this._dataProtectionSettingsArn,displayName:this._displayName,instanceType:this._instanceType,ipAccessSettingsArn:this._ipAccessSettingsArn,maxConcurrentSessions:this._maxConcurrentSessions,networkSettingsArn:this._networkSettingsArn,portalCustomDomain:this._portalCustomDomain,sessionLoggerArn:this._sessionLoggerArn,trustStoreArn:this._trustStoreArn,userAccessLoggingSettingsArn:this._userAccessLoggingSettingsArn,userSettingsArn:this._userSettingsArn}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnPortal.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPortalPropsToCloudFormation(props)}}exports.CfnPortal=CfnPortal;function CfnPortalPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("additionalEncryptionContext",cdk().hashValidator(cdk().validateString))(properties.additionalEncryptionContext)),errors.collect(cdk().propertyValidator("authenticationType",cdk().validateString)(properties.authenticationType)),errors.collect(cdk().propertyValidator("browserSettingsArn",cdk().validateString)(properties.browserSettingsArn)),errors.collect(cdk().propertyValidator("customerManagedKey",cdk().validateString)(properties.customerManagedKey)),errors.collect(cdk().propertyValidator("dataProtectionSettingsArn",cdk().validateString)(properties.dataProtectionSettingsArn)),errors.collect(cdk().propertyValidator("displayName",cdk().validateString)(properties.displayName)),errors.collect(cdk().propertyValidator("instanceType",cdk().validateString)(properties.instanceType)),errors.collect(cdk().propertyValidator("ipAccessSettingsArn",cdk().validateString)(properties.ipAccessSettingsArn)),errors.collect(cdk().propertyValidator("maxConcurrentSessions",cdk().validateNumber)(properties.maxConcurrentSessions)),errors.collect(cdk().propertyValidator("networkSettingsArn",cdk().validateString)(properties.networkSettingsArn)),errors.collect(cdk().propertyValidator("portalCustomDomain",cdk().validateString)(properties.portalCustomDomain)),errors.collect(cdk().propertyValidator("sessionLoggerArn",cdk().validateString)(properties.sessionLoggerArn)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("trustStoreArn",cdk().validateString)(properties.trustStoreArn)),errors.collect(cdk().propertyValidator("userAccessLoggingSettingsArn",cdk().validateString)(properties.userAccessLoggingSettingsArn)),errors.collect(cdk().propertyValidator("userSettingsArn",cdk().validateString)(properties.userSettingsArn)),errors.wrap('supplied properties not correct for "CfnPortalProps"')}function convertCfnPortalPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPortalPropsValidator(properties).assertSuccess(),{AdditionalEncryptionContext:cdk().hashMapper(cdk().stringToCloudFormation)(properties.additionalEncryptionContext),AuthenticationType:cdk().stringToCloudFormation(properties.authenticationType),BrowserSettingsArn:cdk().stringToCloudFormation(properties.browserSettingsArn),CustomerManagedKey:cdk().stringToCloudFormation(properties.customerManagedKey),DataProtectionSettingsArn:cdk().stringToCloudFormation(properties.dataProtectionSettingsArn),DisplayName:cdk().stringToCloudFormation(properties.displayName),InstanceType:cdk().stringToCloudFormation(properties.instanceType),IpAccessSettingsArn:cdk().stringToCloudFormation(properties.ipAccessSettingsArn),MaxConcurrentSessions:cdk().numberToCloudFormation(properties.maxConcurrentSessions),NetworkSettingsArn:cdk().stringToCloudFormation(properties.networkSettingsArn),PortalCustomDomain:cdk().stringToCloudFormation(properties.portalCustomDomain),SessionLoggerArn:cdk().stringToCloudFormation(properties.sessionLoggerArn),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TrustStoreArn:cdk().stringToCloudFormation(properties.trustStoreArn),UserAccessLoggingSettingsArn:cdk().stringToCloudFormation(properties.userAccessLoggingSettingsArn),UserSettingsArn:cdk().stringToCloudFormation(properties.userSettingsArn)}):properties}function CfnPortalPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("additionalEncryptionContext","AdditionalEncryptionContext",properties.AdditionalEncryptionContext!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.AdditionalEncryptionContext):void 0),ret.addPropertyResult("authenticationType","AuthenticationType",properties.AuthenticationType!=null?cfn_parse().FromCloudFormation.getString(properties.AuthenticationType):void 0),ret.addPropertyResult("browserSettingsArn","BrowserSettingsArn",properties.BrowserSettingsArn!=null?cfn_parse().FromCloudFormation.getString(properties.BrowserSettingsArn):void 0),ret.addPropertyResult("customerManagedKey","CustomerManagedKey",properties.CustomerManagedKey!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerManagedKey):void 0),ret.addPropertyResult("dataProtectionSettingsArn","DataProtectionSettingsArn",properties.DataProtectionSettingsArn!=null?cfn_parse().FromCloudFormation.getString(properties.DataProtectionSettingsArn):void 0),ret.addPropertyResult("displayName","DisplayName",properties.DisplayName!=null?cfn_parse().FromCloudFormation.getString(properties.DisplayName):void 0),ret.addPropertyResult("instanceType","InstanceType",properties.InstanceType!=null?cfn_parse().FromCloudFormation.getString(properties.InstanceType):void 0),ret.addPropertyResult("ipAccessSettingsArn","IpAccessSettingsArn",properties.IpAccessSettingsArn!=null?cfn_parse().FromCloudFormation.getString(properties.IpAccessSettingsArn):void 0),ret.addPropertyResult("maxConcurrentSessions","MaxConcurrentSessions",properties.MaxConcurrentSessions!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxConcurrentSessions):void 0),ret.addPropertyResult("networkSettingsArn","NetworkSettingsArn",properties.NetworkSettingsArn!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkSettingsArn):void 0),ret.addPropertyResult("portalCustomDomain","PortalCustomDomain",properties.PortalCustomDomain!=null?cfn_parse().FromCloudFormation.getString(properties.PortalCustomDomain):void 0),ret.addPropertyResult("sessionLoggerArn","SessionLoggerArn",properties.SessionLoggerArn!=null?cfn_parse().FromCloudFormation.getString(properties.SessionLoggerArn):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("trustStoreArn","TrustStoreArn",properties.TrustStoreArn!=null?cfn_parse().FromCloudFormation.getString(properties.TrustStoreArn):void 0),ret.addPropertyResult("userAccessLoggingSettingsArn","UserAccessLoggingSettingsArn",properties.UserAccessLoggingSettingsArn!=null?cfn_parse().FromCloudFormation.getString(properties.UserAccessLoggingSettingsArn):void 0),ret.addPropertyResult("userSettingsArn","UserSettingsArn",properties.UserSettingsArn!=null?cfn_parse().FromCloudFormation.getString(properties.UserSettingsArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnTrustStore extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnTrustStore",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::TrustStore";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTrustStorePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnTrustStore(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnTrustStore(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnTrustStore.CFN_RESOURCE_TYPE_NAME}static arnForTrustStore(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_ITrustStoreRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForTrustStore),error}return resource.trustStoreRef.trustStoreArn}cdkTagManager;_certificateList;_tags;cfnPropertyNames={tags:"Tags",certificateList:"CertificateList"};constructor(scope,id,props){super(scope,id,{type:CfnTrustStore.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnTrustStoreProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTrustStore),error}cdk().requireProperty(props,"certificateList",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::TrustStore",void 0,{tagPropertyName:"tags"}),this._certificateList=props.certificateList,this._tags=props.tags}get trustStoreRef(){return{trustStoreArn:this.ref}}get certificateList(){return this._certificateList}set certificateList(value){cdk().traceProperty(this.node,"CertificateList"),this._certificateList=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrTrustStoreArn(){return cdk().Token.asString(this.getAtt("TrustStoreArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),certificateList:this._certificateList}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnTrustStore.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTrustStorePropsToCloudFormation(props)}}exports.CfnTrustStore=CfnTrustStore;function CfnTrustStorePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("certificateList",cdk().requiredValidator)(properties.certificateList)),errors.collect(cdk().propertyValidator("certificateList",cdk().listValidator(cdk().validateString))(properties.certificateList)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnTrustStoreProps"')}function convertCfnTrustStorePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTrustStorePropsValidator(properties).assertSuccess(),{CertificateList:cdk().listMapper(cdk().stringToCloudFormation)(properties.certificateList),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnTrustStorePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("certificateList","CertificateList",properties.CertificateList!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CertificateList):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserAccessLoggingSettings extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnUserAccessLoggingSettings",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::UserAccessLoggingSettings";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserAccessLoggingSettingsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserAccessLoggingSettings(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserAccessLoggingSettings(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserAccessLoggingSettings.CFN_RESOURCE_TYPE_NAME}static arnForUserAccessLoggingSettings(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_IUserAccessLoggingSettingsRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForUserAccessLoggingSettings),error}return resource.userAccessLoggingSettingsRef.userAccessLoggingSettingsArn}cdkTagManager;_kinesisStreamArn;_tags;cfnPropertyNames={tags:"Tags",kinesisStreamArn:"KinesisStreamArn"};constructor(scope,id,props){super(scope,id,{type:CfnUserAccessLoggingSettings.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnUserAccessLoggingSettingsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserAccessLoggingSettings),error}cdk().requireProperty(props,"kinesisStreamArn",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::UserAccessLoggingSettings",void 0,{tagPropertyName:"tags"}),this._kinesisStreamArn=props.kinesisStreamArn,this._tags=props.tags}get userAccessLoggingSettingsRef(){return{userAccessLoggingSettingsArn:this.ref}}get kinesisStreamArn(){return this._kinesisStreamArn}set kinesisStreamArn(value){cdk().traceProperty(this.node,"KinesisStreamArn"),this._kinesisStreamArn=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrUserAccessLoggingSettingsArn(){return cdk().Token.asString(this.getAtt("UserAccessLoggingSettingsArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),kinesisStreamArn:this._kinesisStreamArn}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserAccessLoggingSettings.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserAccessLoggingSettingsPropsToCloudFormation(props)}}exports.CfnUserAccessLoggingSettings=CfnUserAccessLoggingSettings;function CfnUserAccessLoggingSettingsPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("kinesisStreamArn",cdk().requiredValidator)(properties.kinesisStreamArn)),errors.collect(cdk().propertyValidator("kinesisStreamArn",cdk().validateString)(properties.kinesisStreamArn)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnUserAccessLoggingSettingsProps"')}function convertCfnUserAccessLoggingSettingsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserAccessLoggingSettingsPropsValidator(properties).assertSuccess(),{KinesisStreamArn:cdk().stringToCloudFormation(properties.kinesisStreamArn),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnUserAccessLoggingSettingsPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("kinesisStreamArn","KinesisStreamArn",properties.KinesisStreamArn!=null?cfn_parse().FromCloudFormation.getString(properties.KinesisStreamArn):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserSettings extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnUserSettings",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::UserSettings";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserSettingsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserSettings(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserSettings(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserSettings.CFN_RESOURCE_TYPE_NAME}static arnForUserSettings(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_IUserSettingsRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForUserSettings),error}return resource.userSettingsRef.userSettingsArn}_additionalEncryptionContext;_brandingConfiguration;cdkTagManager;_cookieSynchronizationConfiguration;_copyAllowed;_customerManagedKey;_deepLinkAllowed;_disconnectTimeoutInMinutes;_downloadAllowed;_idleDisconnectTimeoutInMinutes;_pasteAllowed;_printAllowed;_tags;_toolbarConfiguration;_uploadAllowed;_webAuthnAllowed;cfnPropertyNames={additionalEncryptionContext:"AdditionalEncryptionContext",brandingConfiguration:"BrandingConfiguration",tags:"Tags",cookieSynchronizationConfiguration:"CookieSynchronizationConfiguration",copyAllowed:"CopyAllowed",customerManagedKey:"CustomerManagedKey",deepLinkAllowed:"DeepLinkAllowed",disconnectTimeoutInMinutes:"DisconnectTimeoutInMinutes",downloadAllowed:"DownloadAllowed",idleDisconnectTimeoutInMinutes:"IdleDisconnectTimeoutInMinutes",pasteAllowed:"PasteAllowed",printAllowed:"PrintAllowed",toolbarConfiguration:"ToolbarConfiguration",uploadAllowed:"UploadAllowed",webAuthnAllowed:"WebAuthnAllowed"};constructor(scope,id,props){super(scope,id,{type:CfnUserSettings.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnUserSettingsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserSettings),error}cdk().requireProperty(props,"copyAllowed",this),cdk().requireProperty(props,"downloadAllowed",this),cdk().requireProperty(props,"pasteAllowed",this),cdk().requireProperty(props,"printAllowed",this),cdk().requireProperty(props,"uploadAllowed",this),this._additionalEncryptionContext=props.additionalEncryptionContext,this._brandingConfiguration=props.brandingConfiguration,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::UserSettings",void 0,{tagPropertyName:"tags"}),this._cookieSynchronizationConfiguration=props.cookieSynchronizationConfiguration,this._copyAllowed=props.copyAllowed,this._customerManagedKey=props.customerManagedKey,this._deepLinkAllowed=props.deepLinkAllowed,this._disconnectTimeoutInMinutes=props.disconnectTimeoutInMinutes,this._downloadAllowed=props.downloadAllowed,this._idleDisconnectTimeoutInMinutes=props.idleDisconnectTimeoutInMinutes,this._pasteAllowed=props.pasteAllowed,this._printAllowed=props.printAllowed,this._tags=props.tags,this._toolbarConfiguration=props.toolbarConfiguration,this._uploadAllowed=props.uploadAllowed,this._webAuthnAllowed=props.webAuthnAllowed}get userSettingsRef(){return{userSettingsArn:this.ref}}get additionalEncryptionContext(){return this._additionalEncryptionContext}set additionalEncryptionContext(value){cdk().traceProperty(this.node,"AdditionalEncryptionContext"),this._additionalEncryptionContext=value}get brandingConfiguration(){return this._brandingConfiguration}set brandingConfiguration(value){cdk().traceProperty(this.node,"BrandingConfiguration"),this._brandingConfiguration=value}get cookieSynchronizationConfiguration(){return this._cookieSynchronizationConfiguration}set cookieSynchronizationConfiguration(value){cdk().traceProperty(this.node,"CookieSynchronizationConfiguration"),this._cookieSynchronizationConfiguration=value}get copyAllowed(){return this._copyAllowed}set copyAllowed(value){cdk().traceProperty(this.node,"CopyAllowed"),this._copyAllowed=value}get customerManagedKey(){return this._customerManagedKey}set customerManagedKey(value){cdk().traceProperty(this.node,"CustomerManagedKey"),this._customerManagedKey=value}get deepLinkAllowed(){return this._deepLinkAllowed}set deepLinkAllowed(value){cdk().traceProperty(this.node,"DeepLinkAllowed"),this._deepLinkAllowed=value}get disconnectTimeoutInMinutes(){return this._disconnectTimeoutInMinutes}set disconnectTimeoutInMinutes(value){cdk().traceProperty(this.node,"DisconnectTimeoutInMinutes"),this._disconnectTimeoutInMinutes=value}get downloadAllowed(){return this._downloadAllowed}set downloadAllowed(value){cdk().traceProperty(this.node,"DownloadAllowed"),this._downloadAllowed=value}get idleDisconnectTimeoutInMinutes(){return this._idleDisconnectTimeoutInMinutes}set idleDisconnectTimeoutInMinutes(value){cdk().traceProperty(this.node,"IdleDisconnectTimeoutInMinutes"),this._idleDisconnectTimeoutInMinutes=value}get pasteAllowed(){return this._pasteAllowed}set pasteAllowed(value){cdk().traceProperty(this.node,"PasteAllowed"),this._pasteAllowed=value}get printAllowed(){return this._printAllowed}set printAllowed(value){cdk().traceProperty(this.node,"PrintAllowed"),this._printAllowed=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get toolbarConfiguration(){return this._toolbarConfiguration}set toolbarConfiguration(value){cdk().traceProperty(this.node,"ToolbarConfiguration"),this._toolbarConfiguration=value}get uploadAllowed(){return this._uploadAllowed}set uploadAllowed(value){cdk().traceProperty(this.node,"UploadAllowed"),this._uploadAllowed=value}get webAuthnAllowed(){return this._webAuthnAllowed}set webAuthnAllowed(value){cdk().traceProperty(this.node,"WebAuthnAllowed"),this._webAuthnAllowed=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrBrandingConfigurationFaviconMetadata(){return this.getAtt("BrandingConfiguration.FaviconMetadata")}get attrBrandingConfigurationLogoMetadata(){return this.getAtt("BrandingConfiguration.LogoMetadata")}get attrBrandingConfigurationWallpaperMetadata(){return this.getAtt("BrandingConfiguration.WallpaperMetadata")}get attrUserSettingsArn(){return cdk().Token.asString(this.getAtt("UserSettingsArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{additionalEncryptionContext:this._additionalEncryptionContext,brandingConfiguration:this._brandingConfiguration,tags:this.cdkTagManager.renderTags(this._tags),cookieSynchronizationConfiguration:this._cookieSynchronizationConfiguration,copyAllowed:this._copyAllowed,customerManagedKey:this._customerManagedKey,deepLinkAllowed:this._deepLinkAllowed,disconnectTimeoutInMinutes:this._disconnectTimeoutInMinutes,downloadAllowed:this._downloadAllowed,idleDisconnectTimeoutInMinutes:this._idleDisconnectTimeoutInMinutes,pasteAllowed:this._pasteAllowed,printAllowed:this._printAllowed,toolbarConfiguration:this._toolbarConfiguration,uploadAllowed:this._uploadAllowed,webAuthnAllowed:this._webAuthnAllowed}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserSettings.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserSettingsPropsToCloudFormation(props)}}exports.CfnUserSettings=CfnUserSettings;function CfnUserSettingsCookieSpecificationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("domain",cdk().requiredValidator)(properties.domain)),errors.collect(cdk().propertyValidator("domain",cdk().validateString)(properties.domain)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("path",cdk().validateString)(properties.path)),errors.wrap('supplied properties not correct for "CookieSpecificationProperty"')}function convertCfnUserSettingsCookieSpecificationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserSettingsCookieSpecificationPropertyValidator(properties).assertSuccess(),{Domain:cdk().stringToCloudFormation(properties.domain),Name:cdk().stringToCloudFormation(properties.name),Path:cdk().stringToCloudFormation(properties.path)}):properties}function CfnUserSettingsCookieSpecificationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("domain","Domain",properties.Domain!=null?cfn_parse().FromCloudFormation.getString(properties.Domain):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("path","Path",properties.Path!=null?cfn_parse().FromCloudFormation.getString(properties.Path):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserSettingsCookieSynchronizationConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowlist",cdk().requiredValidator)(properties.allowlist)),errors.collect(cdk().propertyValidator("allowlist",cdk().listValidator(CfnUserSettingsCookieSpecificationPropertyValidator))(properties.allowlist)),errors.collect(cdk().propertyValidator("blocklist",cdk().listValidator(CfnUserSettingsCookieSpecificationPropertyValidator))(properties.blocklist)),errors.wrap('supplied properties not correct for "CookieSynchronizationConfigurationProperty"')}function convertCfnUserSettingsCookieSynchronizationConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserSettingsCookieSynchronizationConfigurationPropertyValidator(properties).assertSuccess(),{Allowlist:cdk().listMapper(convertCfnUserSettingsCookieSpecificationPropertyToCloudFormation)(properties.allowlist),Blocklist:cdk().listMapper(convertCfnUserSettingsCookieSpecificationPropertyToCloudFormation)(properties.blocklist)}):properties}function CfnUserSettingsCookieSynchronizationConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowlist","Allowlist",properties.Allowlist!=null?cfn_parse().FromCloudFormation.getArray(CfnUserSettingsCookieSpecificationPropertyFromCloudFormation)(properties.Allowlist):void 0),ret.addPropertyResult("blocklist","Blocklist",properties.Blocklist!=null?cfn_parse().FromCloudFormation.getArray(CfnUserSettingsCookieSpecificationPropertyFromCloudFormation)(properties.Blocklist):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserSettingsImageMetadataPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("fileExtension",cdk().requiredValidator)(properties.fileExtension)),errors.collect(cdk().propertyValidator("fileExtension",cdk().validateString)(properties.fileExtension)),errors.collect(cdk().propertyValidator("lastUploadTimestamp",cdk().requiredValidator)(properties.lastUploadTimestamp)),errors.collect(cdk().propertyValidator("lastUploadTimestamp",cdk().validateString)(properties.lastUploadTimestamp)),errors.collect(cdk().propertyValidator("mimeType",cdk().requiredValidator)(properties.mimeType)),errors.collect(cdk().propertyValidator("mimeType",cdk().validateString)(properties.mimeType)),errors.wrap('supplied properties not correct for "ImageMetadataProperty"')}function convertCfnUserSettingsImageMetadataPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserSettingsImageMetadataPropertyValidator(properties).assertSuccess(),{FileExtension:cdk().stringToCloudFormation(properties.fileExtension),LastUploadTimestamp:cdk().stringToCloudFormation(properties.lastUploadTimestamp),MimeType:cdk().stringToCloudFormation(properties.mimeType)}):properties}function CfnUserSettingsImageMetadataPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("fileExtension","FileExtension",properties.FileExtension!=null?cfn_parse().FromCloudFormation.getString(properties.FileExtension):void 0),ret.addPropertyResult("lastUploadTimestamp","LastUploadTimestamp",properties.LastUploadTimestamp!=null?cfn_parse().FromCloudFormation.getString(properties.LastUploadTimestamp):void 0),ret.addPropertyResult("mimeType","MimeType",properties.MimeType!=null?cfn_parse().FromCloudFormation.getString(properties.MimeType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserSettingsLocalizedBrandingStringsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("browserTabTitle",cdk().requiredValidator)(properties.browserTabTitle)),errors.collect(cdk().propertyValidator("browserTabTitle",cdk().validateString)(properties.browserTabTitle)),errors.collect(cdk().propertyValidator("contactButtonText",cdk().validateString)(properties.contactButtonText)),errors.collect(cdk().propertyValidator("contactLink",cdk().validateString)(properties.contactLink)),errors.collect(cdk().propertyValidator("loadingText",cdk().validateString)(properties.loadingText)),errors.collect(cdk().propertyValidator("loginButtonText",cdk().validateString)(properties.loginButtonText)),errors.collect(cdk().propertyValidator("loginDescription",cdk().validateString)(properties.loginDescription)),errors.collect(cdk().propertyValidator("loginTitle",cdk().validateString)(properties.loginTitle)),errors.collect(cdk().propertyValidator("welcomeText",cdk().requiredValidator)(properties.welcomeText)),errors.collect(cdk().propertyValidator("welcomeText",cdk().validateString)(properties.welcomeText)),errors.wrap('supplied properties not correct for "LocalizedBrandingStringsProperty"')}function convertCfnUserSettingsLocalizedBrandingStringsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserSettingsLocalizedBrandingStringsPropertyValidator(properties).assertSuccess(),{BrowserTabTitle:cdk().stringToCloudFormation(properties.browserTabTitle),ContactButtonText:cdk().stringToCloudFormation(properties.contactButtonText),ContactLink:cdk().stringToCloudFormation(properties.contactLink),LoadingText:cdk().stringToCloudFormation(properties.loadingText),LoginButtonText:cdk().stringToCloudFormation(properties.loginButtonText),LoginDescription:cdk().stringToCloudFormation(properties.loginDescription),LoginTitle:cdk().stringToCloudFormation(properties.loginTitle),WelcomeText:cdk().stringToCloudFormation(properties.welcomeText)}):properties}function CfnUserSettingsLocalizedBrandingStringsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("browserTabTitle","BrowserTabTitle",properties.BrowserTabTitle!=null?cfn_parse().FromCloudFormation.getString(properties.BrowserTabTitle):void 0),ret.addPropertyResult("contactButtonText","ContactButtonText",properties.ContactButtonText!=null?cfn_parse().FromCloudFormation.getString(properties.ContactButtonText):void 0),ret.addPropertyResult("contactLink","ContactLink",properties.ContactLink!=null?cfn_parse().FromCloudFormation.getString(properties.ContactLink):void 0),ret.addPropertyResult("loadingText","LoadingText",properties.LoadingText!=null?cfn_parse().FromCloudFormation.getString(properties.LoadingText):void 0),ret.addPropertyResult("loginButtonText","LoginButtonText",properties.LoginButtonText!=null?cfn_parse().FromCloudFormation.getString(properties.LoginButtonText):void 0),ret.addPropertyResult("loginDescription","LoginDescription",properties.LoginDescription!=null?cfn_parse().FromCloudFormation.getString(properties.LoginDescription):void 0),ret.addPropertyResult("loginTitle","LoginTitle",properties.LoginTitle!=null?cfn_parse().FromCloudFormation.getString(properties.LoginTitle):void 0),ret.addPropertyResult("welcomeText","WelcomeText",properties.WelcomeText!=null?cfn_parse().FromCloudFormation.getString(properties.WelcomeText):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserSettingsBrandingConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("colorTheme",cdk().validateString)(properties.colorTheme)),errors.collect(cdk().propertyValidator("favicon",cdk().validateString)(properties.favicon)),errors.collect(cdk().propertyValidator("faviconMetadata",CfnUserSettingsImageMetadataPropertyValidator)(properties.faviconMetadata)),errors.collect(cdk().propertyValidator("localizedStrings",cdk().hashValidator(CfnUserSettingsLocalizedBrandingStringsPropertyValidator))(properties.localizedStrings)),errors.collect(cdk().propertyValidator("logo",cdk().validateString)(properties.logo)),errors.collect(cdk().propertyValidator("logoMetadata",CfnUserSettingsImageMetadataPropertyValidator)(properties.logoMetadata)),errors.collect(cdk().propertyValidator("termsOfService",cdk().validateString)(properties.termsOfService)),errors.collect(cdk().propertyValidator("wallpaper",cdk().validateString)(properties.wallpaper)),errors.collect(cdk().propertyValidator("wallpaperMetadata",CfnUserSettingsImageMetadataPropertyValidator)(properties.wallpaperMetadata)),errors.wrap('supplied properties not correct for "BrandingConfigurationProperty"')}function convertCfnUserSettingsBrandingConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserSettingsBrandingConfigurationPropertyValidator(properties).assertSuccess(),{ColorTheme:cdk().stringToCloudFormation(properties.colorTheme),Favicon:cdk().stringToCloudFormation(properties.favicon),FaviconMetadata:convertCfnUserSettingsImageMetadataPropertyToCloudFormation(properties.faviconMetadata),LocalizedStrings:cdk().hashMapper(convertCfnUserSettingsLocalizedBrandingStringsPropertyToCloudFormation)(properties.localizedStrings),Logo:cdk().stringToCloudFormation(properties.logo),LogoMetadata:convertCfnUserSettingsImageMetadataPropertyToCloudFormation(properties.logoMetadata),TermsOfService:cdk().stringToCloudFormation(properties.termsOfService),Wallpaper:cdk().stringToCloudFormation(properties.wallpaper),WallpaperMetadata:convertCfnUserSettingsImageMetadataPropertyToCloudFormation(properties.wallpaperMetadata)}):properties}function CfnUserSettingsBrandingConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("colorTheme","ColorTheme",properties.ColorTheme!=null?cfn_parse().FromCloudFormation.getString(properties.ColorTheme):void 0),ret.addPropertyResult("favicon","Favicon",properties.Favicon!=null?cfn_parse().FromCloudFormation.getString(properties.Favicon):void 0),ret.addPropertyResult("faviconMetadata","FaviconMetadata",properties.FaviconMetadata!=null?CfnUserSettingsImageMetadataPropertyFromCloudFormation(properties.FaviconMetadata):void 0),ret.addPropertyResult("localizedStrings","LocalizedStrings",properties.LocalizedStrings!=null?cfn_parse().FromCloudFormation.getMap(CfnUserSettingsLocalizedBrandingStringsPropertyFromCloudFormation)(properties.LocalizedStrings):void 0),ret.addPropertyResult("logo","Logo",properties.Logo!=null?cfn_parse().FromCloudFormation.getString(properties.Logo):void 0),ret.addPropertyResult("logoMetadata","LogoMetadata",properties.LogoMetadata!=null?CfnUserSettingsImageMetadataPropertyFromCloudFormation(properties.LogoMetadata):void 0),ret.addPropertyResult("termsOfService","TermsOfService",properties.TermsOfService!=null?cfn_parse().FromCloudFormation.getString(properties.TermsOfService):void 0),ret.addPropertyResult("wallpaper","Wallpaper",properties.Wallpaper!=null?cfn_parse().FromCloudFormation.getString(properties.Wallpaper):void 0),ret.addPropertyResult("wallpaperMetadata","WallpaperMetadata",properties.WallpaperMetadata!=null?CfnUserSettingsImageMetadataPropertyFromCloudFormation(properties.WallpaperMetadata):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserSettingsToolbarConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("hiddenToolbarItems",cdk().listValidator(cdk().validateString))(properties.hiddenToolbarItems)),errors.collect(cdk().propertyValidator("maxDisplayResolution",cdk().validateString)(properties.maxDisplayResolution)),errors.collect(cdk().propertyValidator("toolbarType",cdk().validateString)(properties.toolbarType)),errors.collect(cdk().propertyValidator("visualMode",cdk().validateString)(properties.visualMode)),errors.wrap('supplied properties not correct for "ToolbarConfigurationProperty"')}function convertCfnUserSettingsToolbarConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserSettingsToolbarConfigurationPropertyValidator(properties).assertSuccess(),{HiddenToolbarItems:cdk().listMapper(cdk().stringToCloudFormation)(properties.hiddenToolbarItems),MaxDisplayResolution:cdk().stringToCloudFormation(properties.maxDisplayResolution),ToolbarType:cdk().stringToCloudFormation(properties.toolbarType),VisualMode:cdk().stringToCloudFormation(properties.visualMode)}):properties}function CfnUserSettingsToolbarConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("hiddenToolbarItems","HiddenToolbarItems",properties.HiddenToolbarItems!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.HiddenToolbarItems):void 0),ret.addPropertyResult("maxDisplayResolution","MaxDisplayResolution",properties.MaxDisplayResolution!=null?cfn_parse().FromCloudFormation.getString(properties.MaxDisplayResolution):void 0),ret.addPropertyResult("toolbarType","ToolbarType",properties.ToolbarType!=null?cfn_parse().FromCloudFormation.getString(properties.ToolbarType):void 0),ret.addPropertyResult("visualMode","VisualMode",properties.VisualMode!=null?cfn_parse().FromCloudFormation.getString(properties.VisualMode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserSettingsPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("additionalEncryptionContext",cdk().hashValidator(cdk().validateString))(properties.additionalEncryptionContext)),errors.collect(cdk().propertyValidator("brandingConfiguration",CfnUserSettingsBrandingConfigurationPropertyValidator)(properties.brandingConfiguration)),errors.collect(cdk().propertyValidator("cookieSynchronizationConfiguration",CfnUserSettingsCookieSynchronizationConfigurationPropertyValidator)(properties.cookieSynchronizationConfiguration)),errors.collect(cdk().propertyValidator("copyAllowed",cdk().requiredValidator)(properties.copyAllowed)),errors.collect(cdk().propertyValidator("copyAllowed",cdk().validateString)(properties.copyAllowed)),errors.collect(cdk().propertyValidator("customerManagedKey",cdk().validateString)(properties.customerManagedKey)),errors.collect(cdk().propertyValidator("deepLinkAllowed",cdk().validateString)(properties.deepLinkAllowed)),errors.collect(cdk().propertyValidator("disconnectTimeoutInMinutes",cdk().validateNumber)(properties.disconnectTimeoutInMinutes)),errors.collect(cdk().propertyValidator("downloadAllowed",cdk().requiredValidator)(properties.downloadAllowed)),errors.collect(cdk().propertyValidator("downloadAllowed",cdk().validateString)(properties.downloadAllowed)),errors.collect(cdk().propertyValidator("idleDisconnectTimeoutInMinutes",cdk().validateNumber)(properties.idleDisconnectTimeoutInMinutes)),errors.collect(cdk().propertyValidator("pasteAllowed",cdk().requiredValidator)(properties.pasteAllowed)),errors.collect(cdk().propertyValidator("pasteAllowed",cdk().validateString)(properties.pasteAllowed)),errors.collect(cdk().propertyValidator("printAllowed",cdk().requiredValidator)(properties.printAllowed)),errors.collect(cdk().propertyValidator("printAllowed",cdk().validateString)(properties.printAllowed)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("toolbarConfiguration",CfnUserSettingsToolbarConfigurationPropertyValidator)(properties.toolbarConfiguration)),errors.collect(cdk().propertyValidator("uploadAllowed",cdk().requiredValidator)(properties.uploadAllowed)),errors.collect(cdk().propertyValidator("uploadAllowed",cdk().validateString)(properties.uploadAllowed)),errors.collect(cdk().propertyValidator("webAuthnAllowed",cdk().validateString)(properties.webAuthnAllowed)),errors.wrap('supplied properties not correct for "CfnUserSettingsProps"')}function convertCfnUserSettingsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserSettingsPropsValidator(properties).assertSuccess(),{AdditionalEncryptionContext:cdk().hashMapper(cdk().stringToCloudFormation)(properties.additionalEncryptionContext),BrandingConfiguration:convertCfnUserSettingsBrandingConfigurationPropertyToCloudFormation(properties.brandingConfiguration),CookieSynchronizationConfiguration:convertCfnUserSettingsCookieSynchronizationConfigurationPropertyToCloudFormation(properties.cookieSynchronizationConfiguration),CopyAllowed:cdk().stringToCloudFormation(properties.copyAllowed),CustomerManagedKey:cdk().stringToCloudFormation(properties.customerManagedKey),DeepLinkAllowed:cdk().stringToCloudFormation(properties.deepLinkAllowed),DisconnectTimeoutInMinutes:cdk().numberToCloudFormation(properties.disconnectTimeoutInMinutes),DownloadAllowed:cdk().stringToCloudFormation(properties.downloadAllowed),IdleDisconnectTimeoutInMinutes:cdk().numberToCloudFormation(properties.idleDisconnectTimeoutInMinutes),PasteAllowed:cdk().stringToCloudFormation(properties.pasteAllowed),PrintAllowed:cdk().stringToCloudFormation(properties.printAllowed),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),ToolbarConfiguration:convertCfnUserSettingsToolbarConfigurationPropertyToCloudFormation(properties.toolbarConfiguration),UploadAllowed:cdk().stringToCloudFormation(properties.uploadAllowed),WebAuthnAllowed:cdk().stringToCloudFormation(properties.webAuthnAllowed)}):properties}function CfnUserSettingsPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("additionalEncryptionContext","AdditionalEncryptionContext",properties.AdditionalEncryptionContext!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.AdditionalEncryptionContext):void 0),ret.addPropertyResult("brandingConfiguration","BrandingConfiguration",properties.BrandingConfiguration!=null?CfnUserSettingsBrandingConfigurationPropertyFromCloudFormation(properties.BrandingConfiguration):void 0),ret.addPropertyResult("cookieSynchronizationConfiguration","CookieSynchronizationConfiguration",properties.CookieSynchronizationConfiguration!=null?CfnUserSettingsCookieSynchronizationConfigurationPropertyFromCloudFormation(properties.CookieSynchronizationConfiguration):void 0),ret.addPropertyResult("copyAllowed","CopyAllowed",properties.CopyAllowed!=null?cfn_parse().FromCloudFormation.getString(properties.CopyAllowed):void 0),ret.addPropertyResult("customerManagedKey","CustomerManagedKey",properties.CustomerManagedKey!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerManagedKey):void 0),ret.addPropertyResult("deepLinkAllowed","DeepLinkAllowed",properties.DeepLinkAllowed!=null?cfn_parse().FromCloudFormation.getString(properties.DeepLinkAllowed):void 0),ret.addPropertyResult("disconnectTimeoutInMinutes","DisconnectTimeoutInMinutes",properties.DisconnectTimeoutInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.DisconnectTimeoutInMinutes):void 0),ret.addPropertyResult("downloadAllowed","DownloadAllowed",properties.DownloadAllowed!=null?cfn_parse().FromCloudFormation.getString(properties.DownloadAllowed):void 0),ret.addPropertyResult("idleDisconnectTimeoutInMinutes","IdleDisconnectTimeoutInMinutes",properties.IdleDisconnectTimeoutInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.IdleDisconnectTimeoutInMinutes):void 0),ret.addPropertyResult("pasteAllowed","PasteAllowed",properties.PasteAllowed!=null?cfn_parse().FromCloudFormation.getString(properties.PasteAllowed):void 0),ret.addPropertyResult("printAllowed","PrintAllowed",properties.PrintAllowed!=null?cfn_parse().FromCloudFormation.getString(properties.PrintAllowed):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("toolbarConfiguration","ToolbarConfiguration",properties.ToolbarConfiguration!=null?CfnUserSettingsToolbarConfigurationPropertyFromCloudFormation(properties.ToolbarConfiguration):void 0),ret.addPropertyResult("uploadAllowed","UploadAllowed",properties.UploadAllowed!=null?cfn_parse().FromCloudFormation.getString(properties.UploadAllowed):void 0),ret.addPropertyResult("webAuthnAllowed","WebAuthnAllowed",properties.WebAuthnAllowed!=null?cfn_parse().FromCloudFormation.getString(properties.WebAuthnAllowed):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDataProtectionSettings extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnDataProtectionSettings",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::DataProtectionSettings";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDataProtectionSettingsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnDataProtectionSettings(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnDataProtectionSettings(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnDataProtectionSettings.CFN_RESOURCE_TYPE_NAME}static arnForDataProtectionSettings(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_IDataProtectionSettingsRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForDataProtectionSettings),error}return resource.dataProtectionSettingsRef.dataProtectionSettingsArn}_additionalEncryptionContext;cdkTagManager;_customerManagedKey;_description;_displayName;_inlineRedactionConfiguration;_tags;cfnPropertyNames={additionalEncryptionContext:"AdditionalEncryptionContext",tags:"Tags",customerManagedKey:"CustomerManagedKey",description:"Description",displayName:"DisplayName",inlineRedactionConfiguration:"InlineRedactionConfiguration"};constructor(scope,id,props={}){super(scope,id,{type:CfnDataProtectionSettings.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnDataProtectionSettingsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDataProtectionSettings),error}this._additionalEncryptionContext=props.additionalEncryptionContext,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::DataProtectionSettings",void 0,{tagPropertyName:"tags"}),this._customerManagedKey=props.customerManagedKey,this._description=props.description,this._displayName=props.displayName,this._inlineRedactionConfiguration=props.inlineRedactionConfiguration,this._tags=props.tags}get dataProtectionSettingsRef(){return{dataProtectionSettingsArn:this.ref}}get additionalEncryptionContext(){return this._additionalEncryptionContext}set additionalEncryptionContext(value){cdk().traceProperty(this.node,"AdditionalEncryptionContext"),this._additionalEncryptionContext=value}get customerManagedKey(){return this._customerManagedKey}set customerManagedKey(value){cdk().traceProperty(this.node,"CustomerManagedKey"),this._customerManagedKey=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get displayName(){return this._displayName}set displayName(value){cdk().traceProperty(this.node,"DisplayName"),this._displayName=value}get inlineRedactionConfiguration(){return this._inlineRedactionConfiguration}set inlineRedactionConfiguration(value){cdk().traceProperty(this.node,"InlineRedactionConfiguration"),this._inlineRedactionConfiguration=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrCreationDate(){return cdk().Token.asString(this.getAtt("CreationDate",cdk().ResolutionTypeHint.STRING))}get attrDataProtectionSettingsArn(){return cdk().Token.asString(this.getAtt("DataProtectionSettingsArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{additionalEncryptionContext:this._additionalEncryptionContext,tags:this.cdkTagManager.renderTags(this._tags),customerManagedKey:this._customerManagedKey,description:this._description,displayName:this._displayName,inlineRedactionConfiguration:this._inlineRedactionConfiguration}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnDataProtectionSettings.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnDataProtectionSettingsPropsToCloudFormation(props)}}exports.CfnDataProtectionSettings=CfnDataProtectionSettings;function CfnDataProtectionSettingsCustomPatternPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("keywordRegex",cdk().validateString)(properties.keywordRegex)),errors.collect(cdk().propertyValidator("patternDescription",cdk().validateString)(properties.patternDescription)),errors.collect(cdk().propertyValidator("patternName",cdk().requiredValidator)(properties.patternName)),errors.collect(cdk().propertyValidator("patternName",cdk().validateString)(properties.patternName)),errors.collect(cdk().propertyValidator("patternRegex",cdk().requiredValidator)(properties.patternRegex)),errors.collect(cdk().propertyValidator("patternRegex",cdk().validateString)(properties.patternRegex)),errors.wrap('supplied properties not correct for "CustomPatternProperty"')}function convertCfnDataProtectionSettingsCustomPatternPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDataProtectionSettingsCustomPatternPropertyValidator(properties).assertSuccess(),{KeywordRegex:cdk().stringToCloudFormation(properties.keywordRegex),PatternDescription:cdk().stringToCloudFormation(properties.patternDescription),PatternName:cdk().stringToCloudFormation(properties.patternName),PatternRegex:cdk().stringToCloudFormation(properties.patternRegex)}):properties}function CfnDataProtectionSettingsCustomPatternPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("keywordRegex","KeywordRegex",properties.KeywordRegex!=null?cfn_parse().FromCloudFormation.getString(properties.KeywordRegex):void 0),ret.addPropertyResult("patternDescription","PatternDescription",properties.PatternDescription!=null?cfn_parse().FromCloudFormation.getString(properties.PatternDescription):void 0),ret.addPropertyResult("patternName","PatternName",properties.PatternName!=null?cfn_parse().FromCloudFormation.getString(properties.PatternName):void 0),ret.addPropertyResult("patternRegex","PatternRegex",properties.PatternRegex!=null?cfn_parse().FromCloudFormation.getString(properties.PatternRegex):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDataProtectionSettingsRedactionPlaceHolderPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("redactionPlaceHolderText",cdk().validateString)(properties.redactionPlaceHolderText)),errors.collect(cdk().propertyValidator("redactionPlaceHolderType",cdk().requiredValidator)(properties.redactionPlaceHolderType)),errors.collect(cdk().propertyValidator("redactionPlaceHolderType",cdk().validateString)(properties.redactionPlaceHolderType)),errors.wrap('supplied properties not correct for "RedactionPlaceHolderProperty"')}function convertCfnDataProtectionSettingsRedactionPlaceHolderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDataProtectionSettingsRedactionPlaceHolderPropertyValidator(properties).assertSuccess(),{RedactionPlaceHolderText:cdk().stringToCloudFormation(properties.redactionPlaceHolderText),RedactionPlaceHolderType:cdk().stringToCloudFormation(properties.redactionPlaceHolderType)}):properties}function CfnDataProtectionSettingsRedactionPlaceHolderPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("redactionPlaceHolderText","RedactionPlaceHolderText",properties.RedactionPlaceHolderText!=null?cfn_parse().FromCloudFormation.getString(properties.RedactionPlaceHolderText):void 0),ret.addPropertyResult("redactionPlaceHolderType","RedactionPlaceHolderType",properties.RedactionPlaceHolderType!=null?cfn_parse().FromCloudFormation.getString(properties.RedactionPlaceHolderType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDataProtectionSettingsInlineRedactionPatternPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("builtInPatternId",cdk().validateString)(properties.builtInPatternId)),errors.collect(cdk().propertyValidator("confidenceLevel",cdk().validateNumber)(properties.confidenceLevel)),errors.collect(cdk().propertyValidator("customPattern",CfnDataProtectionSettingsCustomPatternPropertyValidator)(properties.customPattern)),errors.collect(cdk().propertyValidator("enforcedUrls",cdk().listValidator(cdk().validateString))(properties.enforcedUrls)),errors.collect(cdk().propertyValidator("exemptUrls",cdk().listValidator(cdk().validateString))(properties.exemptUrls)),errors.collect(cdk().propertyValidator("redactionPlaceHolder",cdk().requiredValidator)(properties.redactionPlaceHolder)),errors.collect(cdk().propertyValidator("redactionPlaceHolder",CfnDataProtectionSettingsRedactionPlaceHolderPropertyValidator)(properties.redactionPlaceHolder)),errors.wrap('supplied properties not correct for "InlineRedactionPatternProperty"')}function convertCfnDataProtectionSettingsInlineRedactionPatternPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDataProtectionSettingsInlineRedactionPatternPropertyValidator(properties).assertSuccess(),{BuiltInPatternId:cdk().stringToCloudFormation(properties.builtInPatternId),ConfidenceLevel:cdk().numberToCloudFormation(properties.confidenceLevel),CustomPattern:convertCfnDataProtectionSettingsCustomPatternPropertyToCloudFormation(properties.customPattern),EnforcedUrls:cdk().listMapper(cdk().stringToCloudFormation)(properties.enforcedUrls),ExemptUrls:cdk().listMapper(cdk().stringToCloudFormation)(properties.exemptUrls),RedactionPlaceHolder:convertCfnDataProtectionSettingsRedactionPlaceHolderPropertyToCloudFormation(properties.redactionPlaceHolder)}):properties}function CfnDataProtectionSettingsInlineRedactionPatternPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("builtInPatternId","BuiltInPatternId",properties.BuiltInPatternId!=null?cfn_parse().FromCloudFormation.getString(properties.BuiltInPatternId):void 0),ret.addPropertyResult("confidenceLevel","ConfidenceLevel",properties.ConfidenceLevel!=null?cfn_parse().FromCloudFormation.getNumber(properties.ConfidenceLevel):void 0),ret.addPropertyResult("customPattern","CustomPattern",properties.CustomPattern!=null?CfnDataProtectionSettingsCustomPatternPropertyFromCloudFormation(properties.CustomPattern):void 0),ret.addPropertyResult("enforcedUrls","EnforcedUrls",properties.EnforcedUrls!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EnforcedUrls):void 0),ret.addPropertyResult("exemptUrls","ExemptUrls",properties.ExemptUrls!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExemptUrls):void 0),ret.addPropertyResult("redactionPlaceHolder","RedactionPlaceHolder",properties.RedactionPlaceHolder!=null?CfnDataProtectionSettingsRedactionPlaceHolderPropertyFromCloudFormation(properties.RedactionPlaceHolder):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDataProtectionSettingsInlineRedactionConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("globalConfidenceLevel",cdk().validateNumber)(properties.globalConfidenceLevel)),errors.collect(cdk().propertyValidator("globalEnforcedUrls",cdk().listValidator(cdk().validateString))(properties.globalEnforcedUrls)),errors.collect(cdk().propertyValidator("globalExemptUrls",cdk().listValidator(cdk().validateString))(properties.globalExemptUrls)),errors.collect(cdk().propertyValidator("inlineRedactionPatterns",cdk().requiredValidator)(properties.inlineRedactionPatterns)),errors.collect(cdk().propertyValidator("inlineRedactionPatterns",cdk().listValidator(CfnDataProtectionSettingsInlineRedactionPatternPropertyValidator))(properties.inlineRedactionPatterns)),errors.wrap('supplied properties not correct for "InlineRedactionConfigurationProperty"')}function convertCfnDataProtectionSettingsInlineRedactionConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDataProtectionSettingsInlineRedactionConfigurationPropertyValidator(properties).assertSuccess(),{GlobalConfidenceLevel:cdk().numberToCloudFormation(properties.globalConfidenceLevel),GlobalEnforcedUrls:cdk().listMapper(cdk().stringToCloudFormation)(properties.globalEnforcedUrls),GlobalExemptUrls:cdk().listMapper(cdk().stringToCloudFormation)(properties.globalExemptUrls),InlineRedactionPatterns:cdk().listMapper(convertCfnDataProtectionSettingsInlineRedactionPatternPropertyToCloudFormation)(properties.inlineRedactionPatterns)}):properties}function CfnDataProtectionSettingsInlineRedactionConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("globalConfidenceLevel","GlobalConfidenceLevel",properties.GlobalConfidenceLevel!=null?cfn_parse().FromCloudFormation.getNumber(properties.GlobalConfidenceLevel):void 0),ret.addPropertyResult("globalEnforcedUrls","GlobalEnforcedUrls",properties.GlobalEnforcedUrls!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.GlobalEnforcedUrls):void 0),ret.addPropertyResult("globalExemptUrls","GlobalExemptUrls",properties.GlobalExemptUrls!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.GlobalExemptUrls):void 0),ret.addPropertyResult("inlineRedactionPatterns","InlineRedactionPatterns",properties.InlineRedactionPatterns!=null?cfn_parse().FromCloudFormation.getArray(CfnDataProtectionSettingsInlineRedactionPatternPropertyFromCloudFormation)(properties.InlineRedactionPatterns):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDataProtectionSettingsPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("additionalEncryptionContext",cdk().hashValidator(cdk().validateString))(properties.additionalEncryptionContext)),errors.collect(cdk().propertyValidator("customerManagedKey",cdk().validateString)(properties.customerManagedKey)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("displayName",cdk().validateString)(properties.displayName)),errors.collect(cdk().propertyValidator("inlineRedactionConfiguration",CfnDataProtectionSettingsInlineRedactionConfigurationPropertyValidator)(properties.inlineRedactionConfiguration)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDataProtectionSettingsProps"')}function convertCfnDataProtectionSettingsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDataProtectionSettingsPropsValidator(properties).assertSuccess(),{AdditionalEncryptionContext:cdk().hashMapper(cdk().stringToCloudFormation)(properties.additionalEncryptionContext),CustomerManagedKey:cdk().stringToCloudFormation(properties.customerManagedKey),Description:cdk().stringToCloudFormation(properties.description),DisplayName:cdk().stringToCloudFormation(properties.displayName),InlineRedactionConfiguration:convertCfnDataProtectionSettingsInlineRedactionConfigurationPropertyToCloudFormation(properties.inlineRedactionConfiguration),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnDataProtectionSettingsPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("additionalEncryptionContext","AdditionalEncryptionContext",properties.AdditionalEncryptionContext!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.AdditionalEncryptionContext):void 0),ret.addPropertyResult("customerManagedKey","CustomerManagedKey",properties.CustomerManagedKey!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerManagedKey):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("displayName","DisplayName",properties.DisplayName!=null?cfn_parse().FromCloudFormation.getString(properties.DisplayName):void 0),ret.addPropertyResult("inlineRedactionConfiguration","InlineRedactionConfiguration",properties.InlineRedactionConfiguration!=null?CfnDataProtectionSettingsInlineRedactionConfigurationPropertyFromCloudFormation(properties.InlineRedactionConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSessionLogger extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_workspacesweb.CfnSessionLogger",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::WorkSpacesWeb::SessionLogger";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSessionLoggerPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnSessionLogger(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnSessionLogger(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnSessionLogger.CFN_RESOURCE_TYPE_NAME}static arnForSessionLogger(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_workspacesweb_ISessionLoggerRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForSessionLogger),error}return resource.sessionLoggerRef.sessionLoggerArn}_additionalEncryptionContext;cdkTagManager;_customerManagedKey;_displayName;_eventFilter;_logConfiguration;_tags;cfnPropertyNames={additionalEncryptionContext:"AdditionalEncryptionContext",tags:"Tags",customerManagedKey:"CustomerManagedKey",displayName:"DisplayName",eventFilter:"EventFilter",logConfiguration:"LogConfiguration"};constructor(scope,id,props){super(scope,id,{type:CfnSessionLogger.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_workspacesweb_CfnSessionLoggerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSessionLogger),error}cdk().requireProperty(props,"eventFilter",this),cdk().requireProperty(props,"logConfiguration",this),this._additionalEncryptionContext=props.additionalEncryptionContext,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::WorkSpacesWeb::SessionLogger",void 0,{tagPropertyName:"tags"}),this._customerManagedKey=props.customerManagedKey,this._displayName=props.displayName,this._eventFilter=props.eventFilter,this._logConfiguration=props.logConfiguration,this._tags=props.tags}get sessionLoggerRef(){return{sessionLoggerArn:this.ref}}get additionalEncryptionContext(){return this._additionalEncryptionContext}set additionalEncryptionContext(value){cdk().traceProperty(this.node,"AdditionalEncryptionContext"),this._additionalEncryptionContext=value}get customerManagedKey(){return this._customerManagedKey}set customerManagedKey(value){cdk().traceProperty(this.node,"CustomerManagedKey"),this._customerManagedKey=value}get displayName(){return this._displayName}set displayName(value){cdk().traceProperty(this.node,"DisplayName"),this._displayName=value}get eventFilter(){return this._eventFilter}set eventFilter(value){cdk().traceProperty(this.node,"EventFilter"),this._eventFilter=value}get logConfiguration(){return this._logConfiguration}set logConfiguration(value){cdk().traceProperty(this.node,"LogConfiguration"),this._logConfiguration=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrAssociatedPortalArns(){return cdk().Token.asList(this.getAtt("AssociatedPortalArns",cdk().ResolutionTypeHint.STRING_LIST))}get attrCreationDate(){return cdk().Token.asString(this.getAtt("CreationDate",cdk().ResolutionTypeHint.STRING))}get attrSessionLoggerArn(){return cdk().Token.asString(this.getAtt("SessionLoggerArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{additionalEncryptionContext:this._additionalEncryptionContext,tags:this.cdkTagManager.renderTags(this._tags),customerManagedKey:this._customerManagedKey,displayName:this._displayName,eventFilter:this._eventFilter,logConfiguration:this._logConfiguration}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnSessionLogger.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnSessionLoggerPropsToCloudFormation(props)}}exports.CfnSessionLogger=CfnSessionLogger;function CfnSessionLoggerEventFilterPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("all",cdk().validateObject)(properties.all)),errors.collect(cdk().propertyValidator("include",cdk().listValidator(cdk().validateString))(properties.include)),errors.wrap('supplied properties not correct for "EventFilterProperty"')}function convertCfnSessionLoggerEventFilterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSessionLoggerEventFilterPropertyValidator(properties).assertSuccess(),{All:cdk().objectToCloudFormation(properties.all),Include:cdk().listMapper(cdk().stringToCloudFormation)(properties.include)}):properties}function CfnSessionLoggerEventFilterPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("all","All",properties.All!=null?cfn_parse().FromCloudFormation.getAny(properties.All):void 0),ret.addPropertyResult("include","Include",properties.Include!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Include):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSessionLoggerS3LogConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("bucket",cdk().requiredValidator)(properties.bucket)),errors.collect(cdk().propertyValidator("bucket",cdk().validateString)(properties.bucket)),errors.collect(cdk().propertyValidator("bucketOwner",cdk().validateString)(properties.bucketOwner)),errors.collect(cdk().propertyValidator("folderStructure",cdk().requiredValidator)(properties.folderStructure)),errors.collect(cdk().propertyValidator("folderStructure",cdk().validateString)(properties.folderStructure)),errors.collect(cdk().propertyValidator("keyPrefix",cdk().validateString)(properties.keyPrefix)),errors.collect(cdk().propertyValidator("logFileFormat",cdk().requiredValidator)(properties.logFileFormat)),errors.collect(cdk().propertyValidator("logFileFormat",cdk().validateString)(properties.logFileFormat)),errors.wrap('supplied properties not correct for "S3LogConfigurationProperty"')}function convertCfnSessionLoggerS3LogConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSessionLoggerS3LogConfigurationPropertyValidator(properties).assertSuccess(),{Bucket:cdk().stringToCloudFormation(properties.bucket),BucketOwner:cdk().stringToCloudFormation(properties.bucketOwner),FolderStructure:cdk().stringToCloudFormation(properties.folderStructure),KeyPrefix:cdk().stringToCloudFormation(properties.keyPrefix),LogFileFormat:cdk().stringToCloudFormation(properties.logFileFormat)}):properties}function CfnSessionLoggerS3LogConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("bucket","Bucket",properties.Bucket!=null?cfn_parse().FromCloudFormation.getString(properties.Bucket):void 0),ret.addPropertyResult("bucketOwner","BucketOwner",properties.BucketOwner!=null?cfn_parse().FromCloudFormation.getString(properties.BucketOwner):void 0),ret.addPropertyResult("folderStructure","FolderStructure",properties.FolderStructure!=null?cfn_parse().FromCloudFormation.getString(properties.FolderStructure):void 0),ret.addPropertyResult("keyPrefix","KeyPrefix",properties.KeyPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.KeyPrefix):void 0),ret.addPropertyResult("logFileFormat","LogFileFormat",properties.LogFileFormat!=null?cfn_parse().FromCloudFormation.getString(properties.LogFileFormat):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSessionLoggerLogConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("s3",CfnSessionLoggerS3LogConfigurationPropertyValidator)(properties.s3)),errors.wrap('supplied properties not correct for "LogConfigurationProperty"')}function convertCfnSessionLoggerLogConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSessionLoggerLogConfigurationPropertyValidator(properties).assertSuccess(),{S3:convertCfnSessionLoggerS3LogConfigurationPropertyToCloudFormation(properties.s3)}):properties}function CfnSessionLoggerLogConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("s3","S3",properties.S3!=null?CfnSessionLoggerS3LogConfigurationPropertyFromCloudFormation(properties.S3):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSessionLoggerPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("additionalEncryptionContext",cdk().hashValidator(cdk().validateString))(properties.additionalEncryptionContext)),errors.collect(cdk().propertyValidator("customerManagedKey",cdk().validateString)(properties.customerManagedKey)),errors.collect(cdk().propertyValidator("displayName",cdk().validateString)(properties.displayName)),errors.collect(cdk().propertyValidator("eventFilter",cdk().requiredValidator)(properties.eventFilter)),errors.collect(cdk().propertyValidator("eventFilter",CfnSessionLoggerEventFilterPropertyValidator)(properties.eventFilter)),errors.collect(cdk().propertyValidator("logConfiguration",cdk().requiredValidator)(properties.logConfiguration)),errors.collect(cdk().propertyValidator("logConfiguration",CfnSessionLoggerLogConfigurationPropertyValidator)(properties.logConfiguration)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnSessionLoggerProps"')}function convertCfnSessionLoggerPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSessionLoggerPropsValidator(properties).assertSuccess(),{AdditionalEncryptionContext:cdk().hashMapper(cdk().stringToCloudFormation)(properties.additionalEncryptionContext),CustomerManagedKey:cdk().stringToCloudFormation(properties.customerManagedKey),DisplayName:cdk().stringToCloudFormation(properties.displayName),EventFilter:convertCfnSessionLoggerEventFilterPropertyToCloudFormation(properties.eventFilter),LogConfiguration:convertCfnSessionLoggerLogConfigurationPropertyToCloudFormation(properties.logConfiguration),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnSessionLoggerPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("additionalEncryptionContext","AdditionalEncryptionContext",properties.AdditionalEncryptionContext!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.AdditionalEncryptionContext):void 0),ret.addPropertyResult("customerManagedKey","CustomerManagedKey",properties.CustomerManagedKey!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerManagedKey):void 0),ret.addPropertyResult("displayName","DisplayName",properties.DisplayName!=null?cfn_parse().FromCloudFormation.getString(properties.DisplayName):void 0),ret.addPropertyResult("eventFilter","EventFilter",properties.EventFilter!=null?CfnSessionLoggerEventFilterPropertyFromCloudFormation(properties.EventFilter):void 0),ret.addPropertyResult("logConfiguration","LogConfiguration",properties.LogConfiguration!=null?CfnSessionLoggerLogConfigurationPropertyFromCloudFormation(properties.LogConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|