UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 127 kB
"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.251.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;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.251.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;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.251.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;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.251.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;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.251.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;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.251.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