Files
2026-05-06 18:55:16 -05:00

2 lines
250 KiB
JavaScript

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTerms=exports.CfnManagedLoginBranding=exports.CfnLogDeliveryConfiguration=exports.CfnUserPoolUserToGroupAttachment=exports.CfnUserPoolUser=exports.CfnUserPoolUICustomizationAttachment=exports.CfnUserPoolRiskConfigurationAttachment=exports.CfnUserPoolResourceServer=exports.CfnUserPoolIdentityProvider=exports.CfnUserPoolGroup=exports.CfnUserPoolDomain=exports.CfnUserPoolClient=exports.CfnUserPool=exports.CfnIdentityPoolRoleAttachment=exports.CfnIdentityPoolPrincipalTag=exports.CfnIdentityPool=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 CfnIdentityPool extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnIdentityPool",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::IdentityPool";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentityPoolPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnIdentityPool(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 isCfnIdentityPool(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIdentityPool.CFN_RESOURCE_TYPE_NAME}static fromIdentityPoolId(scope,id,identityPoolId){class Import extends cdk().Resource{identityPoolRef;constructor(scope2,id2,identityPoolId2){super(scope2,id2),this.identityPoolRef={identityPoolId:identityPoolId2}}}return new Import(scope,id,identityPoolId)}static arnForIdentityPool(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cognito_IIdentityPoolRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForIdentityPool),error}return new(cfn_parse()).TemplateString("arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}").interpolate({Partition:cdk().Stack.of(resource).partition,Region:resource.env.region,Account:resource.env.account,IdentityPoolId:resource.identityPoolRef.identityPoolId})}_allowClassicFlow;_allowUnauthenticatedIdentities;cdkTagManager;_cognitoEvents;_cognitoIdentityProviders;_cognitoStreams;_developerProviderName;_identityPoolName;_identityPoolTags;_openIdConnectProviderArns;_pushSync;_samlProviderArns;_supportedLoginProviders;cfnPropertyNames={allowClassicFlow:"AllowClassicFlow",allowUnauthenticatedIdentities:"AllowUnauthenticatedIdentities",identityPoolTags:"IdentityPoolTags",cognitoEvents:"CognitoEvents",cognitoIdentityProviders:"CognitoIdentityProviders",cognitoStreams:"CognitoStreams",developerProviderName:"DeveloperProviderName",identityPoolName:"IdentityPoolName",openIdConnectProviderArns:"OpenIdConnectProviderARNs",pushSync:"PushSync",samlProviderArns:"SamlProviderARNs",supportedLoginProviders:"SupportedLoginProviders"};constructor(scope,id,props){super(scope,id,{type:CfnIdentityPool.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnIdentityPoolProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentityPool),error}cdk().requireProperty(props,"allowUnauthenticatedIdentities",this),this._allowClassicFlow=props.allowClassicFlow,this._allowUnauthenticatedIdentities=props.allowUnauthenticatedIdentities,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Cognito::IdentityPool",void 0,{tagPropertyName:"identityPoolTags"}),this._cognitoEvents=props.cognitoEvents,this._cognitoIdentityProviders=props.cognitoIdentityProviders,this._cognitoStreams=props.cognitoStreams,this._developerProviderName=props.developerProviderName,this._identityPoolName=props.identityPoolName,this._identityPoolTags=props.identityPoolTags,this._openIdConnectProviderArns=cdk().mapArrayInPlace(props.openIdConnectProviderArns,item=>cdk().getRefProperty(item?.oidcProviderRef,"oidcProviderArn")??cdk().ensureStringOrUndefined(item,"openIdConnectProviderArns","iam.IOIDCProviderRef | string")),this._pushSync=props.pushSync,this._samlProviderArns=props.samlProviderArns,this._supportedLoginProviders=props.supportedLoginProviders}get identityPoolRef(){return{identityPoolId:this.ref}}get allowClassicFlow(){return this._allowClassicFlow}set allowClassicFlow(value){cdk().traceProperty(this.node,"AllowClassicFlow"),this._allowClassicFlow=value}get allowUnauthenticatedIdentities(){return this._allowUnauthenticatedIdentities}set allowUnauthenticatedIdentities(value){cdk().traceProperty(this.node,"AllowUnauthenticatedIdentities"),this._allowUnauthenticatedIdentities=value}get cognitoEvents(){return this._cognitoEvents}set cognitoEvents(value){cdk().traceProperty(this.node,"CognitoEvents"),this._cognitoEvents=value}get cognitoIdentityProviders(){return this._cognitoIdentityProviders}set cognitoIdentityProviders(value){cdk().traceProperty(this.node,"CognitoIdentityProviders"),this._cognitoIdentityProviders=value}get cognitoStreams(){return this._cognitoStreams}set cognitoStreams(value){cdk().traceProperty(this.node,"CognitoStreams"),this._cognitoStreams=value}get developerProviderName(){return this._developerProviderName}set developerProviderName(value){cdk().traceProperty(this.node,"DeveloperProviderName"),this._developerProviderName=value}get identityPoolName(){return this._identityPoolName}set identityPoolName(value){cdk().traceProperty(this.node,"IdentityPoolName"),this._identityPoolName=value}get identityPoolTags(){return this._identityPoolTags}set identityPoolTags(value){cdk().traceProperty(this.node,"IdentityPoolTags"),this._identityPoolTags=value}get openIdConnectProviderArns(){return this._openIdConnectProviderArns}set openIdConnectProviderArns(value){cdk().traceProperty(this.node,"OpenIdConnectProviderARNs"),this._openIdConnectProviderArns=value}get pushSync(){return this._pushSync}set pushSync(value){cdk().traceProperty(this.node,"PushSync"),this._pushSync=value}get samlProviderArns(){return this._samlProviderArns}set samlProviderArns(value){cdk().traceProperty(this.node,"SamlProviderARNs"),this._samlProviderArns=value}get supportedLoginProviders(){return this._supportedLoginProviders}set supportedLoginProviders(value){cdk().traceProperty(this.node,"SupportedLoginProviders"),this._supportedLoginProviders=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get attrName(){return cdk().Token.asString(this.getAtt("Name",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{allowClassicFlow:this._allowClassicFlow,allowUnauthenticatedIdentities:this._allowUnauthenticatedIdentities,identityPoolTags:this.cdkTagManager.renderTags(this._identityPoolTags),cognitoEvents:this._cognitoEvents,cognitoIdentityProviders:this._cognitoIdentityProviders,cognitoStreams:this._cognitoStreams,developerProviderName:this._developerProviderName,identityPoolName:this._identityPoolName,openIdConnectProviderArns:this._openIdConnectProviderArns,pushSync:this._pushSync,samlProviderArns:this._samlProviderArns,supportedLoginProviders:this._supportedLoginProviders}}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",CfnIdentityPool.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentityPoolPropsToCloudFormation(props)}}exports.CfnIdentityPool=CfnIdentityPool;function CfnIdentityPoolPushSyncPropertyValidator(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("applicationArns",cdk().listValidator(cdk().validateString))(properties.applicationArns)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "PushSyncProperty"')}function convertCfnIdentityPoolPushSyncPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolPushSyncPropertyValidator(properties).assertSuccess(),{ApplicationArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.applicationArns),RoleArn:cdk().stringToCloudFormation(properties.roleArn)}):properties}function CfnIdentityPoolPushSyncPropertyFromCloudFormation(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("applicationArns","ApplicationArns",properties.ApplicationArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ApplicationArns):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolCognitoIdentityProviderPropertyValidator(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("clientId",cdk().requiredValidator)(properties.clientId)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("providerName",cdk().requiredValidator)(properties.providerName)),errors.collect(cdk().propertyValidator("providerName",cdk().validateString)(properties.providerName)),errors.collect(cdk().propertyValidator("serverSideTokenCheck",cdk().validateBoolean)(properties.serverSideTokenCheck)),errors.wrap('supplied properties not correct for "CognitoIdentityProviderProperty"')}function convertCfnIdentityPoolCognitoIdentityProviderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolCognitoIdentityProviderPropertyValidator(properties).assertSuccess(),{ClientId:cdk().stringToCloudFormation(properties.clientId),ProviderName:cdk().stringToCloudFormation(properties.providerName),ServerSideTokenCheck:cdk().booleanToCloudFormation(properties.serverSideTokenCheck)}):properties}function CfnIdentityPoolCognitoIdentityProviderPropertyFromCloudFormation(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("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("providerName","ProviderName",properties.ProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.ProviderName):void 0),ret.addPropertyResult("serverSideTokenCheck","ServerSideTokenCheck",properties.ServerSideTokenCheck!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ServerSideTokenCheck):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolCognitoStreamsPropertyValidator(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("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("streamName",cdk().validateString)(properties.streamName)),errors.collect(cdk().propertyValidator("streamingStatus",cdk().validateString)(properties.streamingStatus)),errors.wrap('supplied properties not correct for "CognitoStreamsProperty"')}function convertCfnIdentityPoolCognitoStreamsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolCognitoStreamsPropertyValidator(properties).assertSuccess(),{RoleArn:cdk().stringToCloudFormation(properties.roleArn),StreamName:cdk().stringToCloudFormation(properties.streamName),StreamingStatus:cdk().stringToCloudFormation(properties.streamingStatus)}):properties}function CfnIdentityPoolCognitoStreamsPropertyFromCloudFormation(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("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("streamingStatus","StreamingStatus",properties.StreamingStatus!=null?cfn_parse().FromCloudFormation.getString(properties.StreamingStatus):void 0),ret.addPropertyResult("streamName","StreamName",properties.StreamName!=null?cfn_parse().FromCloudFormation.getString(properties.StreamName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolPropsValidator(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("allowClassicFlow",cdk().validateBoolean)(properties.allowClassicFlow)),errors.collect(cdk().propertyValidator("allowUnauthenticatedIdentities",cdk().requiredValidator)(properties.allowUnauthenticatedIdentities)),errors.collect(cdk().propertyValidator("allowUnauthenticatedIdentities",cdk().validateBoolean)(properties.allowUnauthenticatedIdentities)),errors.collect(cdk().propertyValidator("cognitoEvents",cdk().validateObject)(properties.cognitoEvents)),errors.collect(cdk().propertyValidator("cognitoIdentityProviders",cdk().listValidator(CfnIdentityPoolCognitoIdentityProviderPropertyValidator))(properties.cognitoIdentityProviders)),errors.collect(cdk().propertyValidator("cognitoStreams",CfnIdentityPoolCognitoStreamsPropertyValidator)(properties.cognitoStreams)),errors.collect(cdk().propertyValidator("developerProviderName",cdk().validateString)(properties.developerProviderName)),errors.collect(cdk().propertyValidator("identityPoolName",cdk().validateString)(properties.identityPoolName)),errors.collect(cdk().propertyValidator("identityPoolTags",cdk().listValidator(cdk().validateCfnTag))(properties.identityPoolTags)),errors.collect(cdk().propertyValidator("openIdConnectProviderArns",cdk().listValidator(cdk().validateString))(properties.openIdConnectProviderArns)),errors.collect(cdk().propertyValidator("pushSync",CfnIdentityPoolPushSyncPropertyValidator)(properties.pushSync)),errors.collect(cdk().propertyValidator("samlProviderArns",cdk().listValidator(cdk().validateString))(properties.samlProviderArns)),errors.collect(cdk().propertyValidator("supportedLoginProviders",cdk().validateObject)(properties.supportedLoginProviders)),errors.wrap('supplied properties not correct for "CfnIdentityPoolProps"')}function convertCfnIdentityPoolPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolPropsValidator(properties).assertSuccess(),{AllowClassicFlow:cdk().booleanToCloudFormation(properties.allowClassicFlow),AllowUnauthenticatedIdentities:cdk().booleanToCloudFormation(properties.allowUnauthenticatedIdentities),CognitoEvents:cdk().objectToCloudFormation(properties.cognitoEvents),CognitoIdentityProviders:cdk().listMapper(convertCfnIdentityPoolCognitoIdentityProviderPropertyToCloudFormation)(properties.cognitoIdentityProviders),CognitoStreams:convertCfnIdentityPoolCognitoStreamsPropertyToCloudFormation(properties.cognitoStreams),DeveloperProviderName:cdk().stringToCloudFormation(properties.developerProviderName),IdentityPoolName:cdk().stringToCloudFormation(properties.identityPoolName),IdentityPoolTags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.identityPoolTags),OpenIdConnectProviderARNs:cdk().listMapper(cdk().stringToCloudFormation)(properties.openIdConnectProviderArns),PushSync:convertCfnIdentityPoolPushSyncPropertyToCloudFormation(properties.pushSync),SamlProviderARNs:cdk().listMapper(cdk().stringToCloudFormation)(properties.samlProviderArns),SupportedLoginProviders:cdk().objectToCloudFormation(properties.supportedLoginProviders)}):properties}function CfnIdentityPoolPropsFromCloudFormation(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("allowClassicFlow","AllowClassicFlow",properties.AllowClassicFlow!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowClassicFlow):void 0),ret.addPropertyResult("allowUnauthenticatedIdentities","AllowUnauthenticatedIdentities",properties.AllowUnauthenticatedIdentities!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowUnauthenticatedIdentities):void 0),ret.addPropertyResult("cognitoEvents","CognitoEvents",properties.CognitoEvents!=null?cfn_parse().FromCloudFormation.getAny(properties.CognitoEvents):void 0),ret.addPropertyResult("cognitoIdentityProviders","CognitoIdentityProviders",properties.CognitoIdentityProviders!=null?cfn_parse().FromCloudFormation.getArray(CfnIdentityPoolCognitoIdentityProviderPropertyFromCloudFormation)(properties.CognitoIdentityProviders):void 0),ret.addPropertyResult("cognitoStreams","CognitoStreams",properties.CognitoStreams!=null?CfnIdentityPoolCognitoStreamsPropertyFromCloudFormation(properties.CognitoStreams):void 0),ret.addPropertyResult("developerProviderName","DeveloperProviderName",properties.DeveloperProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.DeveloperProviderName):void 0),ret.addPropertyResult("identityPoolName","IdentityPoolName",properties.IdentityPoolName!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityPoolName):void 0),ret.addPropertyResult("identityPoolTags","IdentityPoolTags",properties.IdentityPoolTags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.IdentityPoolTags):void 0),ret.addPropertyResult("openIdConnectProviderArns","OpenIdConnectProviderARNs",properties.OpenIdConnectProviderARNs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.OpenIdConnectProviderARNs):void 0),ret.addPropertyResult("pushSync","PushSync",properties.PushSync!=null?CfnIdentityPoolPushSyncPropertyFromCloudFormation(properties.PushSync):void 0),ret.addPropertyResult("samlProviderArns","SamlProviderARNs",properties.SamlProviderARNs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SamlProviderARNs):void 0),ret.addPropertyResult("supportedLoginProviders","SupportedLoginProviders",properties.SupportedLoginProviders!=null?cfn_parse().FromCloudFormation.getAny(properties.SupportedLoginProviders):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIdentityPoolPrincipalTag extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnIdentityPoolPrincipalTag",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::IdentityPoolPrincipalTag";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentityPoolPrincipalTagPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnIdentityPoolPrincipalTag(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 isCfnIdentityPoolPrincipalTag(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIdentityPoolPrincipalTag.CFN_RESOURCE_TYPE_NAME}_identityPoolId;_identityProviderName;_principalTags;_useDefaults;cfnPropertyNames={identityPoolId:"IdentityPoolId",identityProviderName:"IdentityProviderName",principalTags:"PrincipalTags",useDefaults:"UseDefaults"};constructor(scope,id,props){super(scope,id,{type:CfnIdentityPoolPrincipalTag.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnIdentityPoolPrincipalTagProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentityPoolPrincipalTag),error}cdk().requireProperty(props,"identityPoolId",this),cdk().requireProperty(props,"identityProviderName",this),this._identityPoolId=props.identityPoolId,this._identityProviderName=props.identityProviderName,this._principalTags=props.principalTags,this._useDefaults=props.useDefaults}get identityPoolPrincipalTagRef(){return{identityPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),identityProviderName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get identityPoolId(){return this._identityPoolId}set identityPoolId(value){cdk().traceProperty(this.node,"IdentityPoolId"),this._identityPoolId=value}get identityProviderName(){return this._identityProviderName}set identityProviderName(value){cdk().traceProperty(this.node,"IdentityProviderName"),this._identityProviderName=value}get principalTags(){return this._principalTags}set principalTags(value){cdk().traceProperty(this.node,"PrincipalTags"),this._principalTags=value}get useDefaults(){return this._useDefaults}set useDefaults(value){cdk().traceProperty(this.node,"UseDefaults"),this._useDefaults=value}get cfnProperties(){return{identityPoolId:this._identityPoolId,identityProviderName:this._identityProviderName,principalTags:this._principalTags,useDefaults:this._useDefaults}}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",CfnIdentityPoolPrincipalTag.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentityPoolPrincipalTagPropsToCloudFormation(props)}}exports.CfnIdentityPoolPrincipalTag=CfnIdentityPoolPrincipalTag;function CfnIdentityPoolPrincipalTagPropsValidator(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("identityPoolId",cdk().requiredValidator)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("identityPoolId",cdk().validateString)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("identityProviderName",cdk().requiredValidator)(properties.identityProviderName)),errors.collect(cdk().propertyValidator("identityProviderName",cdk().validateString)(properties.identityProviderName)),errors.collect(cdk().propertyValidator("principalTags",cdk().validateObject)(properties.principalTags)),errors.collect(cdk().propertyValidator("useDefaults",cdk().validateBoolean)(properties.useDefaults)),errors.wrap('supplied properties not correct for "CfnIdentityPoolPrincipalTagProps"')}function convertCfnIdentityPoolPrincipalTagPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolPrincipalTagPropsValidator(properties).assertSuccess(),{IdentityPoolId:cdk().stringToCloudFormation(properties.identityPoolId),IdentityProviderName:cdk().stringToCloudFormation(properties.identityProviderName),PrincipalTags:cdk().objectToCloudFormation(properties.principalTags),UseDefaults:cdk().booleanToCloudFormation(properties.useDefaults)}):properties}function CfnIdentityPoolPrincipalTagPropsFromCloudFormation(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("identityPoolId","IdentityPoolId",properties.IdentityPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityPoolId):void 0),ret.addPropertyResult("identityProviderName","IdentityProviderName",properties.IdentityProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityProviderName):void 0),ret.addPropertyResult("principalTags","PrincipalTags",properties.PrincipalTags!=null?cfn_parse().FromCloudFormation.getAny(properties.PrincipalTags):void 0),ret.addPropertyResult("useDefaults","UseDefaults",properties.UseDefaults!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UseDefaults):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIdentityPoolRoleAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnIdentityPoolRoleAttachment",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::IdentityPoolRoleAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentityPoolRoleAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnIdentityPoolRoleAttachment(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 isCfnIdentityPoolRoleAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIdentityPoolRoleAttachment.CFN_RESOURCE_TYPE_NAME}_identityPoolId;_roleMappings;_roles;cfnPropertyNames={identityPoolId:"IdentityPoolId",roleMappings:"RoleMappings",roles:"Roles"};constructor(scope,id,props){super(scope,id,{type:CfnIdentityPoolRoleAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnIdentityPoolRoleAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentityPoolRoleAttachment),error}cdk().requireProperty(props,"identityPoolId",this),this._identityPoolId=cdk().getRefProperty(props.identityPoolId?.identityPoolRef,"identityPoolId")??cdk().ensureStringOrUndefined(props.identityPoolId,"identityPoolId","cognito.IIdentityPoolRef | string"),this._roleMappings=props.roleMappings,this._roles=props.roles}get identityPoolRoleAttachmentRef(){return{identityPoolRoleAttachmentId:this.ref}}get identityPoolId(){return this._identityPoolId}set identityPoolId(value){cdk().traceProperty(this.node,"IdentityPoolId"),this._identityPoolId=value}get roleMappings(){return this._roleMappings}set roleMappings(value){cdk().traceProperty(this.node,"RoleMappings"),this._roleMappings=value}get roles(){return this._roles}set roles(value){cdk().traceProperty(this.node,"Roles"),this._roles=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{identityPoolId:this._identityPoolId,roleMappings:this._roleMappings,roles:this._roles}}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",CfnIdentityPoolRoleAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentityPoolRoleAttachmentPropsToCloudFormation(props)}}exports.CfnIdentityPoolRoleAttachment=CfnIdentityPoolRoleAttachment;function CfnIdentityPoolRoleAttachmentMappingRulePropertyValidator(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("claim",cdk().requiredValidator)(properties.claim)),errors.collect(cdk().propertyValidator("claim",cdk().validateString)(properties.claim)),errors.collect(cdk().propertyValidator("matchType",cdk().requiredValidator)(properties.matchType)),errors.collect(cdk().propertyValidator("matchType",cdk().validateString)(properties.matchType)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "MappingRuleProperty"')}function convertCfnIdentityPoolRoleAttachmentMappingRulePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentMappingRulePropertyValidator(properties).assertSuccess(),{Claim:cdk().stringToCloudFormation(properties.claim),MatchType:cdk().stringToCloudFormation(properties.matchType),RoleARN:cdk().stringToCloudFormation(properties.roleArn),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnIdentityPoolRoleAttachmentMappingRulePropertyFromCloudFormation(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("claim","Claim",properties.Claim!=null?cfn_parse().FromCloudFormation.getString(properties.Claim):void 0),ret.addPropertyResult("matchType","MatchType",properties.MatchType!=null?cfn_parse().FromCloudFormation.getString(properties.MatchType):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.RoleARN):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyValidator(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("rules",cdk().requiredValidator)(properties.rules)),errors.collect(cdk().propertyValidator("rules",cdk().listValidator(CfnIdentityPoolRoleAttachmentMappingRulePropertyValidator))(properties.rules)),errors.wrap('supplied properties not correct for "RulesConfigurationTypeProperty"')}function convertCfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyValidator(properties).assertSuccess(),{Rules:cdk().listMapper(convertCfnIdentityPoolRoleAttachmentMappingRulePropertyToCloudFormation)(properties.rules)}):properties}function CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyFromCloudFormation(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("rules","Rules",properties.Rules!=null?cfn_parse().FromCloudFormation.getArray(CfnIdentityPoolRoleAttachmentMappingRulePropertyFromCloudFormation)(properties.Rules):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolRoleAttachmentRoleMappingPropertyValidator(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("ambiguousRoleResolution",cdk().validateString)(properties.ambiguousRoleResolution)),errors.collect(cdk().propertyValidator("identityProvider",cdk().validateString)(properties.identityProvider)),errors.collect(cdk().propertyValidator("rulesConfiguration",CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyValidator)(properties.rulesConfiguration)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "RoleMappingProperty"')}function convertCfnIdentityPoolRoleAttachmentRoleMappingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentRoleMappingPropertyValidator(properties).assertSuccess(),{AmbiguousRoleResolution:cdk().stringToCloudFormation(properties.ambiguousRoleResolution),IdentityProvider:cdk().stringToCloudFormation(properties.identityProvider),RulesConfiguration:convertCfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyToCloudFormation(properties.rulesConfiguration),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnIdentityPoolRoleAttachmentRoleMappingPropertyFromCloudFormation(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("ambiguousRoleResolution","AmbiguousRoleResolution",properties.AmbiguousRoleResolution!=null?cfn_parse().FromCloudFormation.getString(properties.AmbiguousRoleResolution):void 0),ret.addPropertyResult("identityProvider","IdentityProvider",properties.IdentityProvider!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityProvider):void 0),ret.addPropertyResult("rulesConfiguration","RulesConfiguration",properties.RulesConfiguration!=null?CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyFromCloudFormation(properties.RulesConfiguration):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolRoleAttachmentPropsValidator(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("identityPoolId",cdk().requiredValidator)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("identityPoolId",cdk().validateString)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("roleMappings",cdk().hashValidator(CfnIdentityPoolRoleAttachmentRoleMappingPropertyValidator))(properties.roleMappings)),errors.collect(cdk().propertyValidator("roles",cdk().validateObject)(properties.roles)),errors.wrap('supplied properties not correct for "CfnIdentityPoolRoleAttachmentProps"')}function convertCfnIdentityPoolRoleAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentPropsValidator(properties).assertSuccess(),{IdentityPoolId:cdk().stringToCloudFormation(properties.identityPoolId),RoleMappings:cdk().hashMapper(convertCfnIdentityPoolRoleAttachmentRoleMappingPropertyToCloudFormation)(properties.roleMappings),Roles:cdk().objectToCloudFormation(properties.roles)}):properties}function CfnIdentityPoolRoleAttachmentPropsFromCloudFormation(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("identityPoolId","IdentityPoolId",properties.IdentityPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityPoolId):void 0),ret.addPropertyResult("roleMappings","RoleMappings",properties.RoleMappings!=null?cfn_parse().FromCloudFormation.getMap(CfnIdentityPoolRoleAttachmentRoleMappingPropertyFromCloudFormation)(properties.RoleMappings):void 0),ret.addPropertyResult("roles","Roles",properties.Roles!=null?cfn_parse().FromCloudFormation.getAny(properties.Roles):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPool extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPool",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPool";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPool(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 isCfnUserPool(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPool.CFN_RESOURCE_TYPE_NAME}static fromUserPoolArn(scope,id,arn){class Import extends cdk().Resource{userPoolRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}").parse(arn2);this.userPoolRef={userPoolId:variables.UserPoolId,userPoolArn:arn2}}}return new Import(scope,id,arn)}static fromUserPoolId(scope,id,userPoolId){class Import extends cdk().Resource{userPoolRef;constructor(scope2,id2,userPoolId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,UserPoolId:userPoolId2});super(scope2,id2,{environmentFromArn:arn}),this.userPoolRef={userPoolId:userPoolId2,userPoolArn:arn}}}return new Import(scope,id,userPoolId)}static arnForUserPool(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cognito_IUserPoolRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForUserPool),error}return resource.userPoolRef.userPoolArn}_accountRecoverySetting;_adminCreateUserConfig;_aliasAttributes;_autoVerifiedAttributes;_deletionProtection;_deviceConfiguration;_emailAuthenticationMessage;_emailAuthenticationSubject;_emailConfiguration;_emailVerificationMessage;_emailVerificationSubject;_enabledMfas;_lambdaConfig;_mfaConfiguration;_policies;_schema;_smsAuthenticationMessage;_smsConfiguration;_smsVerificationMessage;tags;_userAttributeUpdateSettings;_usernameAttributes;_usernameConfiguration;_userPoolAddOns;_userPoolName;_userPoolTagsRaw;_userPoolTier;_verificationMessageTemplate;_webAuthnRelyingPartyId;_webAuthnUserVerification;cfnPropertyNames={accountRecoverySetting:"AccountRecoverySetting",adminCreateUserConfig:"AdminCreateUserConfig",aliasAttributes:"AliasAttributes",autoVerifiedAttributes:"AutoVerifiedAttributes",deletionProtection:"DeletionProtection",deviceConfiguration:"DeviceConfiguration",emailAuthenticationMessage:"EmailAuthenticationMessage",emailAuthenticationSubject:"EmailAuthenticationSubject",emailConfiguration:"EmailConfiguration",emailVerificationMessage:"EmailVerificationMessage",emailVerificationSubject:"EmailVerificationSubject",enabledMfas:"EnabledMfas",lambdaConfig:"LambdaConfig",mfaConfiguration:"MfaConfiguration",policies:"Policies",schema:"Schema",smsAuthenticationMessage:"SmsAuthenticationMessage",smsConfiguration:"SmsConfiguration",smsVerificationMessage:"SmsVerificationMessage",userPoolTags:"UserPoolTags",userAttributeUpdateSettings:"UserAttributeUpdateSettings",usernameAttributes:"UsernameAttributes",usernameConfiguration:"UsernameConfiguration",userPoolAddOns:"UserPoolAddOns",userPoolName:"UserPoolName",userPoolTier:"UserPoolTier",verificationMessageTemplate:"VerificationMessageTemplate",webAuthnRelyingPartyId:"WebAuthnRelyingPartyID",webAuthnUserVerification:"WebAuthnUserVerification"};constructor(scope,id,props={}){super(scope,id,{type:CfnUserPool.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPool),error}this._accountRecoverySetting=props.accountRecoverySetting,this._adminCreateUserConfig=props.adminCreateUserConfig,this._aliasAttributes=props.aliasAttributes,this._autoVerifiedAttributes=props.autoVerifiedAttributes,this._deletionProtection=props.deletionProtection,this._deviceConfiguration=props.deviceConfiguration,this._emailAuthenticationMessage=props.emailAuthenticationMessage,this._emailAuthenticationSubject=props.emailAuthenticationSubject,this._emailConfiguration=props.emailConfiguration,this._emailVerificationMessage=props.emailVerificationMessage,this._emailVerificationSubject=props.emailVerificationSubject,this._enabledMfas=props.enabledMfas,this._lambdaConfig=props.lambdaConfig,this._mfaConfiguration=props.mfaConfiguration,this._policies=props.policies,this._schema=props.schema,this._smsAuthenticationMessage=props.smsAuthenticationMessage,this._smsConfiguration=props.smsConfiguration,this._smsVerificationMessage=props.smsVerificationMessage,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::Cognito::UserPool",props.userPoolTags,{tagPropertyName:"userPoolTags"}),this._userAttributeUpdateSettings=props.userAttributeUpdateSettings,this._usernameAttributes=props.usernameAttributes,this._usernameConfiguration=props.usernameConfiguration,this._userPoolAddOns=props.userPoolAddOns,this._userPoolName=props.userPoolName,this._userPoolTagsRaw=props.userPoolTags,this._userPoolTier=props.userPoolTier,this._verificationMessageTemplate=props.verificationMessageTemplate,this._webAuthnRelyingPartyId=props.webAuthnRelyingPartyId,this._webAuthnUserVerification=props.webAuthnUserVerification,this.node.scope!=null&&cdk().Resource.isResource(this.node.scope)&&this.node.addValidation({validate:()=>this.cfnOptions.deletionPolicy===void 0?["'AWS::Cognito::UserPool' is a stateful resource type, and you must specify a Removal Policy for it. Call 'resource.applyRemovalPolicy()'."]:[]})}get userPoolRef(){return{userPoolId:this.ref,userPoolArn:this.attrArn}}get accountRecoverySetting(){return this._accountRecoverySetting}set accountRecoverySetting(value){cdk().traceProperty(this.node,"AccountRecoverySetting"),this._accountRecoverySetting=value}get adminCreateUserConfig(){return this._adminCreateUserConfig}set adminCreateUserConfig(value){cdk().traceProperty(this.node,"AdminCreateUserConfig"),this._adminCreateUserConfig=value}get aliasAttributes(){return this._aliasAttributes}set aliasAttributes(value){cdk().traceProperty(this.node,"AliasAttributes"),this._aliasAttributes=value}get autoVerifiedAttributes(){return this._autoVerifiedAttributes}set autoVerifiedAttributes(value){cdk().traceProperty(this.node,"AutoVerifiedAttributes"),this._autoVerifiedAttributes=value}get deletionProtection(){return this._deletionProtection}set deletionProtection(value){cdk().traceProperty(this.node,"DeletionProtection"),this._deletionProtection=value}get deviceConfiguration(){return this._deviceConfiguration}set deviceConfiguration(value){cdk().traceProperty(this.node,"DeviceConfiguration"),this._deviceConfiguration=value}get emailAuthenticationMessage(){return this._emailAuthenticationMessage}set emailAuthenticationMessage(value){cdk().traceProperty(this.node,"EmailAuthenticationMessage"),this._emailAuthenticationMessage=value}get emailAuthenticationSubject(){return this._emailAuthenticationSubject}set emailAuthenticationSubject(value){cdk().traceProperty(this.node,"EmailAuthenticationSubject"),this._emailAuthenticationSubject=value}get emailConfiguration(){return this._emailConfiguration}set emailConfiguration(value){cdk().traceProperty(this.node,"EmailConfiguration"),this._emailConfiguration=value}get emailVerificationMessage(){return this._emailVerificationMessage}set emailVerificationMessage(value){cdk().traceProperty(this.node,"EmailVerificationMessage"),this._emailVerificationMessage=value}get emailVerificationSubject(){return this._emailVerificationSubject}set emailVerificationSubject(value){cdk().traceProperty(this.node,"EmailVerificationSubject"),this._emailVerificationSubject=value}get enabledMfas(){return this._enabledMfas}set enabledMfas(value){cdk().traceProperty(this.node,"EnabledMfas"),this._enabledMfas=value}get lambdaConfig(){return this._lambdaConfig}set lambdaConfig(value){cdk().traceProperty(this.node,"LambdaConfig"),this._lambdaConfig=value}get mfaConfiguration(){return this._mfaConfiguration}set mfaConfiguration(value){cdk().traceProperty(this.node,"MfaConfiguration"),this._mfaConfiguration=value}get policies(){return this._policies}set policies(value){cdk().traceProperty(this.node,"Policies"),this._policies=value}get schema(){return this._schema}set schema(value){cdk().traceProperty(this.node,"Schema"),this._schema=value}get smsAuthenticationMessage(){return this._smsAuthenticationMessage}set smsAuthenticationMessage(value){cdk().traceProperty(this.node,"SmsAuthenticationMessage"),this._smsAuthenticationMessage=value}get smsConfiguration(){return this._smsConfiguration}set smsConfiguration(value){cdk().traceProperty(this.node,"SmsConfiguration"),this._smsConfiguration=value}get smsVerificationMessage(){return this._smsVerificationMessage}set smsVerificationMessage(value){cdk().traceProperty(this.node,"SmsVerificationMessage"),this._smsVerificationMessage=value}get userAttributeUpdateSettings(){return this._userAttributeUpdateSettings}set userAttributeUpdateSettings(value){cdk().traceProperty(this.node,"UserAttributeUpdateSettings"),this._userAttributeUpdateSettings=value}get usernameAttributes(){return this._usernameAttributes}set usernameAttributes(value){cdk().traceProperty(this.node,"UsernameAttributes"),this._usernameAttributes=value}get usernameConfiguration(){return this._usernameConfiguration}set usernameConfiguration(value){cdk().traceProperty(this.node,"UsernameConfiguration"),this._usernameConfiguration=value}get userPoolAddOns(){return this._userPoolAddOns}set userPoolAddOns(value){cdk().traceProperty(this.node,"UserPoolAddOns"),this._userPoolAddOns=value}get userPoolName(){return this._userPoolName}set userPoolName(value){cdk().traceProperty(this.node,"UserPoolName"),this._userPoolName=value}get userPoolTagsRaw(){return this._userPoolTagsRaw}set userPoolTagsRaw(value){cdk().traceProperty(this.node,"UserPoolTags"),this._userPoolTagsRaw=value}get userPoolTier(){return this._userPoolTier}set userPoolTier(value){cdk().traceProperty(this.node,"UserPoolTier"),this._userPoolTier=value}get verificationMessageTemplate(){return this._verificationMessageTemplate}set verificationMessageTemplate(value){cdk().traceProperty(this.node,"VerificationMessageTemplate"),this._verificationMessageTemplate=value}get webAuthnRelyingPartyId(){return this._webAuthnRelyingPartyId}set webAuthnRelyingPartyId(value){cdk().traceProperty(this.node,"WebAuthnRelyingPartyID"),this._webAuthnRelyingPartyId=value}get webAuthnUserVerification(){return this._webAuthnUserVerification}set webAuthnUserVerification(value){cdk().traceProperty(this.node,"WebAuthnUserVerification"),this._webAuthnUserVerification=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrProviderName(){return cdk().Token.asString(this.getAtt("ProviderName",cdk().ResolutionTypeHint.STRING))}get attrProviderUrl(){return cdk().Token.asString(this.getAtt("ProviderURL",cdk().ResolutionTypeHint.STRING))}get attrUserPoolId(){return cdk().Token.asString(this.getAtt("UserPoolId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{accountRecoverySetting:this._accountRecoverySetting,adminCreateUserConfig:this._adminCreateUserConfig,aliasAttributes:this._aliasAttributes,autoVerifiedAttributes:this._autoVerifiedAttributes,deletionProtection:this._deletionProtection,deviceConfiguration:this._deviceConfiguration,emailAuthenticationMessage:this._emailAuthenticationMessage,emailAuthenticationSubject:this._emailAuthenticationSubject,emailConfiguration:this._emailConfiguration,emailVerificationMessage:this._emailVerificationMessage,emailVerificationSubject:this._emailVerificationSubject,enabledMfas:this._enabledMfas,lambdaConfig:this._lambdaConfig,mfaConfiguration:this._mfaConfiguration,policies:this._policies,schema:this._schema,smsAuthenticationMessage:this._smsAuthenticationMessage,smsConfiguration:this._smsConfiguration,smsVerificationMessage:this._smsVerificationMessage,userPoolTags:this.tags.renderTags(),userAttributeUpdateSettings:this._userAttributeUpdateSettings,usernameAttributes:this._usernameAttributes,usernameConfiguration:this._usernameConfiguration,userPoolAddOns:this._userPoolAddOns,userPoolName:this._userPoolName,userPoolTier:this._userPoolTier,verificationMessageTemplate:this._verificationMessageTemplate,webAuthnRelyingPartyId:this._webAuthnRelyingPartyId,webAuthnUserVerification:this._webAuthnUserVerification}}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",CfnUserPool.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolPropsToCloudFormation(props)}}exports.CfnUserPool=CfnUserPool;function CfnUserPoolPasswordPolicyPropertyValidator(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("minimumLength",cdk().validateNumber)(properties.minimumLength)),errors.collect(cdk().propertyValidator("passwordHistorySize",cdk().validateNumber)(properties.passwordHistorySize)),errors.collect(cdk().propertyValidator("requireLowercase",cdk().validateBoolean)(properties.requireLowercase)),errors.collect(cdk().propertyValidator("requireNumbers",cdk().validateBoolean)(properties.requireNumbers)),errors.collect(cdk().propertyValidator("requireSymbols",cdk().validateBoolean)(properties.requireSymbols)),errors.collect(cdk().propertyValidator("requireUppercase",cdk().validateBoolean)(properties.requireUppercase)),errors.collect(cdk().propertyValidator("temporaryPasswordValidityDays",cdk().validateNumber)(properties.temporaryPasswordValidityDays)),errors.wrap('supplied properties not correct for "PasswordPolicyProperty"')}function convertCfnUserPoolPasswordPolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPasswordPolicyPropertyValidator(properties).assertSuccess(),{MinimumLength:cdk().numberToCloudFormation(properties.minimumLength),PasswordHistorySize:cdk().numberToCloudFormation(properties.passwordHistorySize),RequireLowercase:cdk().booleanToCloudFormation(properties.requireLowercase),RequireNumbers:cdk().booleanToCloudFormation(properties.requireNumbers),RequireSymbols:cdk().booleanToCloudFormation(properties.requireSymbols),RequireUppercase:cdk().booleanToCloudFormation(properties.requireUppercase),TemporaryPasswordValidityDays:cdk().numberToCloudFormation(properties.temporaryPasswordValidityDays)}):properties}function CfnUserPoolPasswordPolicyPropertyFromCloudFormation(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("minimumLength","MinimumLength",properties.MinimumLength!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinimumLength):void 0),ret.addPropertyResult("passwordHistorySize","PasswordHistorySize",properties.PasswordHistorySize!=null?cfn_parse().FromCloudFormation.getNumber(properties.PasswordHistorySize):void 0),ret.addPropertyResult("requireLowercase","RequireLowercase",properties.RequireLowercase!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireLowercase):void 0),ret.addPropertyResult("requireNumbers","RequireNumbers",properties.RequireNumbers!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireNumbers):void 0),ret.addPropertyResult("requireSymbols","RequireSymbols",properties.RequireSymbols!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireSymbols):void 0),ret.addPropertyResult("requireUppercase","RequireUppercase",properties.RequireUppercase!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireUppercase):void 0),ret.addPropertyResult("temporaryPasswordValidityDays","TemporaryPasswordValidityDays",properties.TemporaryPasswordValidityDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.TemporaryPasswordValidityDays):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolSignInPolicyPropertyValidator(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("allowedFirstAuthFactors",cdk().listValidator(cdk().validateString))(properties.allowedFirstAuthFactors)),errors.wrap('supplied properties not correct for "SignInPolicyProperty"')}function convertCfnUserPoolSignInPolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolSignInPolicyPropertyValidator(properties).assertSuccess(),{AllowedFirstAuthFactors:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedFirstAuthFactors)}):properties}function CfnUserPoolSignInPolicyPropertyFromCloudFormation(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("allowedFirstAuthFactors","AllowedFirstAuthFactors",properties.AllowedFirstAuthFactors!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedFirstAuthFactors):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolPoliciesPropertyValidator(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("passwordPolicy",CfnUserPoolPasswordPolicyPropertyValidator)(properties.passwordPolicy)),errors.collect(cdk().propertyValidator("signInPolicy",CfnUserPoolSignInPolicyPropertyValidator)(properties.signInPolicy)),errors.wrap('supplied properties not correct for "PoliciesProperty"')}function convertCfnUserPoolPoliciesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPoliciesPropertyValidator(properties).assertSuccess(),{PasswordPolicy:convertCfnUserPoolPasswordPolicyPropertyToCloudFormation(properties.passwordPolicy),SignInPolicy:convertCfnUserPoolSignInPolicyPropertyToCloudFormation(properties.signInPolicy)}):properties}function CfnUserPoolPoliciesPropertyFromCloudFormation(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("passwordPolicy","PasswordPolicy",properties.PasswordPolicy!=null?CfnUserPoolPasswordPolicyPropertyFromCloudFormation(properties.PasswordPolicy):void 0),ret.addPropertyResult("signInPolicy","SignInPolicy",properties.SignInPolicy!=null?CfnUserPoolSignInPolicyPropertyFromCloudFormation(properties.SignInPolicy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolVerificationMessageTemplatePropertyValidator(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("defaultEmailOption",cdk().validateString)(properties.defaultEmailOption)),errors.collect(cdk().propertyValidator("emailMessage",cdk().validateString)(properties.emailMessage)),errors.collect(cdk().propertyValidator("emailMessageByLink",cdk().validateString)(properties.emailMessageByLink)),errors.collect(cdk().propertyValidator("emailSubject",cdk().validateString)(properties.emailSubject)),errors.collect(cdk().propertyValidator("emailSubjectByLink",cdk().validateString)(properties.emailSubjectByLink)),errors.collect(cdk().propertyValidator("smsMessage",cdk().validateString)(properties.smsMessage)),errors.wrap('supplied properties not correct for "VerificationMessageTemplateProperty"')}function convertCfnUserPoolVerificationMessageTemplatePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolVerificationMessageTemplatePropertyValidator(properties).assertSuccess(),{DefaultEmailOption:cdk().stringToCloudFormation(properties.defaultEmailOption),EmailMessage:cdk().stringToCloudFormation(properties.emailMessage),EmailMessageByLink:cdk().stringToCloudFormation(properties.emailMessageByLink),EmailSubject:cdk().stringToCloudFormation(properties.emailSubject),EmailSubjectByLink:cdk().stringToCloudFormation(properties.emailSubjectByLink),SmsMessage:cdk().stringToCloudFormation(properties.smsMessage)}):properties}function CfnUserPoolVerificationMessageTemplatePropertyFromCloudFormation(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("defaultEmailOption","DefaultEmailOption",properties.DefaultEmailOption!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultEmailOption):void 0),ret.addPropertyResult("emailMessage","EmailMessage",properties.EmailMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailMessage):void 0),ret.addPropertyResult("emailMessageByLink","EmailMessageByLink",properties.EmailMessageByLink!=null?cfn_parse().FromCloudFormation.getString(properties.EmailMessageByLink):void 0),ret.addPropertyResult("emailSubject","EmailSubject",properties.EmailSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSubject):void 0),ret.addPropertyResult("emailSubjectByLink","EmailSubjectByLink",properties.EmailSubjectByLink!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSubjectByLink):void 0),ret.addPropertyResult("smsMessage","SmsMessage",properties.SmsMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SmsMessage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolStringAttributeConstraintsPropertyValidator(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("maxLength",cdk().validateString)(properties.maxLength)),errors.collect(cdk().propertyValidator("minLength",cdk().validateString)(properties.minLength)),errors.wrap('supplied properties not correct for "StringAttributeConstraintsProperty"')}function convertCfnUserPoolStringAttributeConstraintsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolStringAttributeConstraintsPropertyValidator(properties).assertSuccess(),{MaxLength:cdk().stringToCloudFormation(properties.maxLength),MinLength:cdk().stringToCloudFormation(properties.minLength)}):properties}function CfnUserPoolStringAttributeConstraintsPropertyFromCloudFormation(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("maxLength","MaxLength",properties.MaxLength!=null?cfn_parse().FromCloudFormation.getString(properties.MaxLength):void 0),ret.addPropertyResult("minLength","MinLength",properties.MinLength!=null?cfn_parse().FromCloudFormation.getString(properties.MinLength):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolNumberAttributeConstraintsPropertyValidator(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("maxValue",cdk().validateString)(properties.maxValue)),errors.collect(cdk().propertyValidator("minValue",cdk().validateString)(properties.minValue)),errors.wrap('supplied properties not correct for "NumberAttributeConstraintsProperty"')}function convertCfnUserPoolNumberAttributeConstraintsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolNumberAttributeConstraintsPropertyValidator(properties).assertSuccess(),{MaxValue:cdk().stringToCloudFormation(properties.maxValue),MinValue:cdk().stringToCloudFormation(properties.minValue)}):properties}function CfnUserPoolNumberAttributeConstraintsPropertyFromCloudFormation(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("maxValue","MaxValue",properties.MaxValue!=null?cfn_parse().FromCloudFormation.getString(properties.MaxValue):void 0),ret.addPropertyResult("minValue","MinValue",properties.MinValue!=null?cfn_parse().FromCloudFormation.getString(properties.MinValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolSchemaAttributePropertyValidator(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("attributeDataType",cdk().validateString)(properties.attributeDataType)),errors.collect(cdk().propertyValidator("developerOnlyAttribute",cdk().validateBoolean)(properties.developerOnlyAttribute)),errors.collect(cdk().propertyValidator("mutable",cdk().validateBoolean)(properties.mutable)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("numberAttributeConstraints",CfnUserPoolNumberAttributeConstraintsPropertyValidator)(properties.numberAttributeConstraints)),errors.collect(cdk().propertyValidator("required",cdk().validateBoolean)(properties.required)),errors.collect(cdk().propertyValidator("stringAttributeConstraints",CfnUserPoolStringAttributeConstraintsPropertyValidator)(properties.stringAttributeConstraints)),errors.wrap('supplied properties not correct for "SchemaAttributeProperty"')}function convertCfnUserPoolSchemaAttributePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolSchemaAttributePropertyValidator(properties).assertSuccess(),{AttributeDataType:cdk().stringToCloudFormation(properties.attributeDataType),DeveloperOnlyAttribute:cdk().booleanToCloudFormation(properties.developerOnlyAttribute),Mutable:cdk().booleanToCloudFormation(properties.mutable),Name:cdk().stringToCloudFormation(properties.name),NumberAttributeConstraints:convertCfnUserPoolNumberAttributeConstraintsPropertyToCloudFormation(properties.numberAttributeConstraints),Required:cdk().booleanToCloudFormation(properties.required),StringAttributeConstraints:convertCfnUserPoolStringAttributeConstraintsPropertyToCloudFormation(properties.stringAttributeConstraints)}):properties}function CfnUserPoolSchemaAttributePropertyFromCloudFormation(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("attributeDataType","AttributeDataType",properties.AttributeDataType!=null?cfn_parse().FromCloudFormation.getString(properties.AttributeDataType):void 0),ret.addPropertyResult("developerOnlyAttribute","DeveloperOnlyAttribute",properties.DeveloperOnlyAttribute!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DeveloperOnlyAttribute):void 0),ret.addPropertyResult("mutable","Mutable",properties.Mutable!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Mutable):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("numberAttributeConstraints","NumberAttributeConstraints",properties.NumberAttributeConstraints!=null?CfnUserPoolNumberAttributeConstraintsPropertyFromCloudFormation(properties.NumberAttributeConstraints):void 0),ret.addPropertyResult("required","Required",properties.Required!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Required):void 0),ret.addPropertyResult("stringAttributeConstraints","StringAttributeConstraints",properties.StringAttributeConstraints!=null?CfnUserPoolStringAttributeConstraintsPropertyFromCloudFormation(properties.StringAttributeConstraints):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolInviteMessageTemplatePropertyValidator(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("emailMessage",cdk().validateString)(properties.emailMessage)),errors.collect(cdk().propertyValidator("emailSubject",cdk().validateString)(properties.emailSubject)),errors.collect(cdk().propertyValidator("smsMessage",cdk().validateString)(properties.smsMessage)),errors.wrap('supplied properties not correct for "InviteMessageTemplateProperty"')}function convertCfnUserPoolInviteMessageTemplatePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolInviteMessageTemplatePropertyValidator(properties).assertSuccess(),{EmailMessage:cdk().stringToCloudFormation(properties.emailMessage),EmailSubject:cdk().stringToCloudFormation(properties.emailSubject),SMSMessage:cdk().stringToCloudFormation(properties.smsMessage)}):properties}function CfnUserPoolInviteMessageTemplatePropertyFromCloudFormation(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("emailMessage","EmailMessage",properties.EmailMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailMessage):void 0),ret.addPropertyResult("emailSubject","EmailSubject",properties.EmailSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSubject):void 0),ret.addPropertyResult("smsMessage","SMSMessage",properties.SMSMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SMSMessage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolAdminCreateUserConfigPropertyValidator(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("allowAdminCreateUserOnly",cdk().validateBoolean)(properties.allowAdminCreateUserOnly)),errors.collect(cdk().propertyValidator("inviteMessageTemplate",CfnUserPoolInviteMessageTemplatePropertyValidator)(properties.inviteMessageTemplate)),errors.collect(cdk().propertyValidator("unusedAccountValidityDays",cdk().validateNumber)(properties.unusedAccountValidityDays)),errors.wrap('supplied properties not correct for "AdminCreateUserConfigProperty"')}function convertCfnUserPoolAdminCreateUserConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolAdminCreateUserConfigPropertyValidator(properties).assertSuccess(),{AllowAdminCreateUserOnly:cdk().booleanToCloudFormation(properties.allowAdminCreateUserOnly),InviteMessageTemplate:convertCfnUserPoolInviteMessageTemplatePropertyToCloudFormation(properties.inviteMessageTemplate),UnusedAccountValidityDays:cdk().numberToCloudFormation(properties.unusedAccountValidityDays)}):properties}function CfnUserPoolAdminCreateUserConfigPropertyFromCloudFormation(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("allowAdminCreateUserOnly","AllowAdminCreateUserOnly",properties.AllowAdminCreateUserOnly!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowAdminCreateUserOnly):void 0),ret.addPropertyResult("inviteMessageTemplate","InviteMessageTemplate",properties.InviteMessageTemplate!=null?CfnUserPoolInviteMessageTemplatePropertyFromCloudFormation(properties.InviteMessageTemplate):void 0),ret.addPropertyResult("unusedAccountValidityDays","UnusedAccountValidityDays",properties.UnusedAccountValidityDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.UnusedAccountValidityDays):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUsernameConfigurationPropertyValidator(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("caseSensitive",cdk().validateBoolean)(properties.caseSensitive)),errors.wrap('supplied properties not correct for "UsernameConfigurationProperty"')}function convertCfnUserPoolUsernameConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUsernameConfigurationPropertyValidator(properties).assertSuccess(),{CaseSensitive:cdk().booleanToCloudFormation(properties.caseSensitive)}):properties}function CfnUserPoolUsernameConfigurationPropertyFromCloudFormation(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("caseSensitive","CaseSensitive",properties.CaseSensitive!=null?cfn_parse().FromCloudFormation.getBoolean(properties.CaseSensitive):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyValidator(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("customAuthMode",cdk().validateString)(properties.customAuthMode)),errors.wrap('supplied properties not correct for "AdvancedSecurityAdditionalFlowsProperty"')}function convertCfnUserPoolAdvancedSecurityAdditionalFlowsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyValidator(properties).assertSuccess(),{CustomAuthMode:cdk().stringToCloudFormation(properties.customAuthMode)}):properties}function CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyFromCloudFormation(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("customAuthMode","CustomAuthMode",properties.CustomAuthMode!=null?cfn_parse().FromCloudFormation.getString(properties.CustomAuthMode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUserPoolAddOnsPropertyValidator(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("advancedSecurityAdditionalFlows",CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyValidator)(properties.advancedSecurityAdditionalFlows)),errors.collect(cdk().propertyValidator("advancedSecurityMode",cdk().validateString)(properties.advancedSecurityMode)),errors.wrap('supplied properties not correct for "UserPoolAddOnsProperty"')}function convertCfnUserPoolUserPoolAddOnsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserPoolAddOnsPropertyValidator(properties).assertSuccess(),{AdvancedSecurityAdditionalFlows:convertCfnUserPoolAdvancedSecurityAdditionalFlowsPropertyToCloudFormation(properties.advancedSecurityAdditionalFlows),AdvancedSecurityMode:cdk().stringToCloudFormation(properties.advancedSecurityMode)}):properties}function CfnUserPoolUserPoolAddOnsPropertyFromCloudFormation(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("advancedSecurityAdditionalFlows","AdvancedSecurityAdditionalFlows",properties.AdvancedSecurityAdditionalFlows!=null?CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyFromCloudFormation(properties.AdvancedSecurityAdditionalFlows):void 0),ret.addPropertyResult("advancedSecurityMode","AdvancedSecurityMode",properties.AdvancedSecurityMode!=null?cfn_parse().FromCloudFormation.getString(properties.AdvancedSecurityMode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUserAttributeUpdateSettingsPropertyValidator(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("attributesRequireVerificationBeforeUpdate",cdk().requiredValidator)(properties.attributesRequireVerificationBeforeUpdate)),errors.collect(cdk().propertyValidator("attributesRequireVerificationBeforeUpdate",cdk().listValidator(cdk().validateString))(properties.attributesRequireVerificationBeforeUpdate)),errors.wrap('supplied properties not correct for "UserAttributeUpdateSettingsProperty"')}function convertCfnUserPoolUserAttributeUpdateSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserAttributeUpdateSettingsPropertyValidator(properties).assertSuccess(),{AttributesRequireVerificationBeforeUpdate:cdk().listMapper(cdk().stringToCloudFormation)(properties.attributesRequireVerificationBeforeUpdate)}):properties}function CfnUserPoolUserAttributeUpdateSettingsPropertyFromCloudFormation(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("attributesRequireVerificationBeforeUpdate","AttributesRequireVerificationBeforeUpdate",properties.AttributesRequireVerificationBeforeUpdate!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AttributesRequireVerificationBeforeUpdate):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolEmailConfigurationPropertyValidator(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("configurationSet",cdk().validateString)(properties.configurationSet)),errors.collect(cdk().propertyValidator("emailSendingAccount",cdk().validateString)(properties.emailSendingAccount)),errors.collect(cdk().propertyValidator("from",cdk().validateString)(properties.from)),errors.collect(cdk().propertyValidator("replyToEmailAddress",cdk().validateString)(properties.replyToEmailAddress)),errors.collect(cdk().propertyValidator("sourceArn",cdk().validateString)(properties.sourceArn)),errors.wrap('supplied properties not correct for "EmailConfigurationProperty"')}function convertCfnUserPoolEmailConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolEmailConfigurationPropertyValidator(properties).assertSuccess(),{ConfigurationSet:cdk().stringToCloudFormation(properties.configurationSet),EmailSendingAccount:cdk().stringToCloudFormation(properties.emailSendingAccount),From:cdk().stringToCloudFormation(properties.from),ReplyToEmailAddress:cdk().stringToCloudFormation(properties.replyToEmailAddress),SourceArn:cdk().stringToCloudFormation(properties.sourceArn)}):properties}function CfnUserPoolEmailConfigurationPropertyFromCloudFormation(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("configurationSet","ConfigurationSet",properties.ConfigurationSet!=null?cfn_parse().FromCloudFormation.getString(properties.ConfigurationSet):void 0),ret.addPropertyResult("emailSendingAccount","EmailSendingAccount",properties.EmailSendingAccount!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSendingAccount):void 0),ret.addPropertyResult("from","From",properties.From!=null?cfn_parse().FromCloudFormation.getString(properties.From):void 0),ret.addPropertyResult("replyToEmailAddress","ReplyToEmailAddress",properties.ReplyToEmailAddress!=null?cfn_parse().FromCloudFormation.getString(properties.ReplyToEmailAddress):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolSmsConfigurationPropertyValidator(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("externalId",cdk().validateString)(properties.externalId)),errors.collect(cdk().propertyValidator("snsCallerArn",cdk().validateString)(properties.snsCallerArn)),errors.collect(cdk().propertyValidator("snsRegion",cdk().validateString)(properties.snsRegion)),errors.wrap('supplied properties not correct for "SmsConfigurationProperty"')}function convertCfnUserPoolSmsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolSmsConfigurationPropertyValidator(properties).assertSuccess(),{ExternalId:cdk().stringToCloudFormation(properties.externalId),SnsCallerArn:cdk().stringToCloudFormation(properties.snsCallerArn),SnsRegion:cdk().stringToCloudFormation(properties.snsRegion)}):properties}function CfnUserPoolSmsConfigurationPropertyFromCloudFormation(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("externalId","ExternalId",properties.ExternalId!=null?cfn_parse().FromCloudFormation.getString(properties.ExternalId):void 0),ret.addPropertyResult("snsCallerArn","SnsCallerArn",properties.SnsCallerArn!=null?cfn_parse().FromCloudFormation.getString(properties.SnsCallerArn):void 0),ret.addPropertyResult("snsRegion","SnsRegion",properties.SnsRegion!=null?cfn_parse().FromCloudFormation.getString(properties.SnsRegion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolCustomSMSSenderPropertyValidator(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("lambdaArn",cdk().validateString)(properties.lambdaArn)),errors.collect(cdk().propertyValidator("lambdaVersion",cdk().validateString)(properties.lambdaVersion)),errors.wrap('supplied properties not correct for "CustomSMSSenderProperty"')}function convertCfnUserPoolCustomSMSSenderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolCustomSMSSenderPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk().stringToCloudFormation(properties.lambdaArn),LambdaVersion:cdk().stringToCloudFormation(properties.lambdaVersion)}):properties}function CfnUserPoolCustomSMSSenderPropertyFromCloudFormation(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("lambdaArn","LambdaArn",properties.LambdaArn!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaArn):void 0),ret.addPropertyResult("lambdaVersion","LambdaVersion",properties.LambdaVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolCustomEmailSenderPropertyValidator(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("lambdaArn",cdk().validateString)(properties.lambdaArn)),errors.collect(cdk().propertyValidator("lambdaVersion",cdk().validateString)(properties.lambdaVersion)),errors.wrap('supplied properties not correct for "CustomEmailSenderProperty"')}function convertCfnUserPoolCustomEmailSenderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolCustomEmailSenderPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk().stringToCloudFormation(properties.lambdaArn),LambdaVersion:cdk().stringToCloudFormation(properties.lambdaVersion)}):properties}function CfnUserPoolCustomEmailSenderPropertyFromCloudFormation(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("lambdaArn","LambdaArn",properties.LambdaArn!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaArn):void 0),ret.addPropertyResult("lambdaVersion","LambdaVersion",properties.LambdaVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolPreTokenGenerationConfigPropertyValidator(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("lambdaArn",cdk().validateString)(properties.lambdaArn)),errors.collect(cdk().propertyValidator("lambdaVersion",cdk().validateString)(properties.lambdaVersion)),errors.wrap('supplied properties not correct for "PreTokenGenerationConfigProperty"')}function convertCfnUserPoolPreTokenGenerationConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPreTokenGenerationConfigPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk().stringToCloudFormation(properties.lambdaArn),LambdaVersion:cdk().stringToCloudFormation(properties.lambdaVersion)}):properties}function CfnUserPoolPreTokenGenerationConfigPropertyFromCloudFormation(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("lambdaArn","LambdaArn",properties.LambdaArn!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaArn):void 0),ret.addPropertyResult("lambdaVersion","LambdaVersion",properties.LambdaVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolInboundFederationPropertyValidator(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("lambdaArn",cdk().validateString)(properties.lambdaArn)),errors.collect(cdk().propertyValidator("lambdaVersion",cdk().validateString)(properties.lambdaVersion)),errors.wrap('supplied properties not correct for "InboundFederationProperty"')}function convertCfnUserPoolInboundFederationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolInboundFederationPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk().stringToCloudFormation(properties.lambdaArn),LambdaVersion:cdk().stringToCloudFormation(properties.lambdaVersion)}):properties}function CfnUserPoolInboundFederationPropertyFromCloudFormation(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("lambdaArn","LambdaArn",properties.LambdaArn!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaArn):void 0),ret.addPropertyResult("lambdaVersion","LambdaVersion",properties.LambdaVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolLambdaConfigPropertyValidator(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("createAuthChallenge",cdk().validateString)(properties.createAuthChallenge)),errors.collect(cdk().propertyValidator("customEmailSender",CfnUserPoolCustomEmailSenderPropertyValidator)(properties.customEmailSender)),errors.collect(cdk().propertyValidator("customMessage",cdk().validateString)(properties.customMessage)),errors.collect(cdk().propertyValidator("customSmsSender",CfnUserPoolCustomSMSSenderPropertyValidator)(properties.customSmsSender)),errors.collect(cdk().propertyValidator("defineAuthChallenge",cdk().validateString)(properties.defineAuthChallenge)),errors.collect(cdk().propertyValidator("inboundFederation",CfnUserPoolInboundFederationPropertyValidator)(properties.inboundFederation)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("postAuthentication",cdk().validateString)(properties.postAuthentication)),errors.collect(cdk().propertyValidator("postConfirmation",cdk().validateString)(properties.postConfirmation)),errors.collect(cdk().propertyValidator("preAuthentication",cdk().validateString)(properties.preAuthentication)),errors.collect(cdk().propertyValidator("preSignUp",cdk().validateString)(properties.preSignUp)),errors.collect(cdk().propertyValidator("preTokenGeneration",cdk().validateString)(properties.preTokenGeneration)),errors.collect(cdk().propertyValidator("preTokenGenerationConfig",CfnUserPoolPreTokenGenerationConfigPropertyValidator)(properties.preTokenGenerationConfig)),errors.collect(cdk().propertyValidator("userMigration",cdk().validateString)(properties.userMigration)),errors.collect(cdk().propertyValidator("verifyAuthChallengeResponse",cdk().validateString)(properties.verifyAuthChallengeResponse)),errors.wrap('supplied properties not correct for "LambdaConfigProperty"')}function convertCfnUserPoolLambdaConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolLambdaConfigPropertyValidator(properties).assertSuccess(),{CreateAuthChallenge:cdk().stringToCloudFormation(properties.createAuthChallenge),CustomEmailSender:convertCfnUserPoolCustomEmailSenderPropertyToCloudFormation(properties.customEmailSender),CustomMessage:cdk().stringToCloudFormation(properties.customMessage),CustomSMSSender:convertCfnUserPoolCustomSMSSenderPropertyToCloudFormation(properties.customSmsSender),DefineAuthChallenge:cdk().stringToCloudFormation(properties.defineAuthChallenge),InboundFederation:convertCfnUserPoolInboundFederationPropertyToCloudFormation(properties.inboundFederation),KMSKeyID:cdk().stringToCloudFormation(properties.kmsKeyId),PostAuthentication:cdk().stringToCloudFormation(properties.postAuthentication),PostConfirmation:cdk().stringToCloudFormation(properties.postConfirmation),PreAuthentication:cdk().stringToCloudFormation(properties.preAuthentication),PreSignUp:cdk().stringToCloudFormation(properties.preSignUp),PreTokenGeneration:cdk().stringToCloudFormation(properties.preTokenGeneration),PreTokenGenerationConfig:convertCfnUserPoolPreTokenGenerationConfigPropertyToCloudFormation(properties.preTokenGenerationConfig),UserMigration:cdk().stringToCloudFormation(properties.userMigration),VerifyAuthChallengeResponse:cdk().stringToCloudFormation(properties.verifyAuthChallengeResponse)}):properties}function CfnUserPoolLambdaConfigPropertyFromCloudFormation(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("createAuthChallenge","CreateAuthChallenge",properties.CreateAuthChallenge!=null?cfn_parse().FromCloudFormation.getString(properties.CreateAuthChallenge):void 0),ret.addPropertyResult("customEmailSender","CustomEmailSender",properties.CustomEmailSender!=null?CfnUserPoolCustomEmailSenderPropertyFromCloudFormation(properties.CustomEmailSender):void 0),ret.addPropertyResult("customMessage","CustomMessage",properties.CustomMessage!=null?cfn_parse().FromCloudFormation.getString(properties.CustomMessage):void 0),ret.addPropertyResult("customSmsSender","CustomSMSSender",properties.CustomSMSSender!=null?CfnUserPoolCustomSMSSenderPropertyFromCloudFormation(properties.CustomSMSSender):void 0),ret.addPropertyResult("defineAuthChallenge","DefineAuthChallenge",properties.DefineAuthChallenge!=null?cfn_parse().FromCloudFormation.getString(properties.DefineAuthChallenge):void 0),ret.addPropertyResult("inboundFederation","InboundFederation",properties.InboundFederation!=null?CfnUserPoolInboundFederationPropertyFromCloudFormation(properties.InboundFederation):void 0),ret.addPropertyResult("kmsKeyId","KMSKeyID",properties.KMSKeyID!=null?cfn_parse().FromCloudFormation.getString(properties.KMSKeyID):void 0),ret.addPropertyResult("postAuthentication","PostAuthentication",properties.PostAuthentication!=null?cfn_parse().FromCloudFormation.getString(properties.PostAuthentication):void 0),ret.addPropertyResult("postConfirmation","PostConfirmation",properties.PostConfirmation!=null?cfn_parse().FromCloudFormation.getString(properties.PostConfirmation):void 0),ret.addPropertyResult("preAuthentication","PreAuthentication",properties.PreAuthentication!=null?cfn_parse().FromCloudFormation.getString(properties.PreAuthentication):void 0),ret.addPropertyResult("preSignUp","PreSignUp",properties.PreSignUp!=null?cfn_parse().FromCloudFormation.getString(properties.PreSignUp):void 0),ret.addPropertyResult("preTokenGeneration","PreTokenGeneration",properties.PreTokenGeneration!=null?cfn_parse().FromCloudFormation.getString(properties.PreTokenGeneration):void 0),ret.addPropertyResult("preTokenGenerationConfig","PreTokenGenerationConfig",properties.PreTokenGenerationConfig!=null?CfnUserPoolPreTokenGenerationConfigPropertyFromCloudFormation(properties.PreTokenGenerationConfig):void 0),ret.addPropertyResult("userMigration","UserMigration",properties.UserMigration!=null?cfn_parse().FromCloudFormation.getString(properties.UserMigration):void 0),ret.addPropertyResult("verifyAuthChallengeResponse","VerifyAuthChallengeResponse",properties.VerifyAuthChallengeResponse!=null?cfn_parse().FromCloudFormation.getString(properties.VerifyAuthChallengeResponse):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolDeviceConfigurationPropertyValidator(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("challengeRequiredOnNewDevice",cdk().validateBoolean)(properties.challengeRequiredOnNewDevice)),errors.collect(cdk().propertyValidator("deviceOnlyRememberedOnUserPrompt",cdk().validateBoolean)(properties.deviceOnlyRememberedOnUserPrompt)),errors.wrap('supplied properties not correct for "DeviceConfigurationProperty"')}function convertCfnUserPoolDeviceConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolDeviceConfigurationPropertyValidator(properties).assertSuccess(),{ChallengeRequiredOnNewDevice:cdk().booleanToCloudFormation(properties.challengeRequiredOnNewDevice),DeviceOnlyRememberedOnUserPrompt:cdk().booleanToCloudFormation(properties.deviceOnlyRememberedOnUserPrompt)}):properties}function CfnUserPoolDeviceConfigurationPropertyFromCloudFormation(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("challengeRequiredOnNewDevice","ChallengeRequiredOnNewDevice",properties.ChallengeRequiredOnNewDevice!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ChallengeRequiredOnNewDevice):void 0),ret.addPropertyResult("deviceOnlyRememberedOnUserPrompt","DeviceOnlyRememberedOnUserPrompt",properties.DeviceOnlyRememberedOnUserPrompt!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DeviceOnlyRememberedOnUserPrompt):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRecoveryOptionPropertyValidator(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("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("priority",cdk().validateNumber)(properties.priority)),errors.wrap('supplied properties not correct for "RecoveryOptionProperty"')}function convertCfnUserPoolRecoveryOptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRecoveryOptionPropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Priority:cdk().numberToCloudFormation(properties.priority)}):properties}function CfnUserPoolRecoveryOptionPropertyFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("priority","Priority",properties.Priority!=null?cfn_parse().FromCloudFormation.getNumber(properties.Priority):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolAccountRecoverySettingPropertyValidator(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("recoveryMechanisms",cdk().listValidator(CfnUserPoolRecoveryOptionPropertyValidator))(properties.recoveryMechanisms)),errors.wrap('supplied properties not correct for "AccountRecoverySettingProperty"')}function convertCfnUserPoolAccountRecoverySettingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolAccountRecoverySettingPropertyValidator(properties).assertSuccess(),{RecoveryMechanisms:cdk().listMapper(convertCfnUserPoolRecoveryOptionPropertyToCloudFormation)(properties.recoveryMechanisms)}):properties}function CfnUserPoolAccountRecoverySettingPropertyFromCloudFormation(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("recoveryMechanisms","RecoveryMechanisms",properties.RecoveryMechanisms!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolRecoveryOptionPropertyFromCloudFormation)(properties.RecoveryMechanisms):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolPropsValidator(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("accountRecoverySetting",CfnUserPoolAccountRecoverySettingPropertyValidator)(properties.accountRecoverySetting)),errors.collect(cdk().propertyValidator("adminCreateUserConfig",CfnUserPoolAdminCreateUserConfigPropertyValidator)(properties.adminCreateUserConfig)),errors.collect(cdk().propertyValidator("aliasAttributes",cdk().listValidator(cdk().validateString))(properties.aliasAttributes)),errors.collect(cdk().propertyValidator("autoVerifiedAttributes",cdk().listValidator(cdk().validateString))(properties.autoVerifiedAttributes)),errors.collect(cdk().propertyValidator("deletionProtection",cdk().validateString)(properties.deletionProtection)),errors.collect(cdk().propertyValidator("deviceConfiguration",CfnUserPoolDeviceConfigurationPropertyValidator)(properties.deviceConfiguration)),errors.collect(cdk().propertyValidator("emailAuthenticationMessage",cdk().validateString)(properties.emailAuthenticationMessage)),errors.collect(cdk().propertyValidator("emailAuthenticationSubject",cdk().validateString)(properties.emailAuthenticationSubject)),errors.collect(cdk().propertyValidator("emailConfiguration",CfnUserPoolEmailConfigurationPropertyValidator)(properties.emailConfiguration)),errors.collect(cdk().propertyValidator("emailVerificationMessage",cdk().validateString)(properties.emailVerificationMessage)),errors.collect(cdk().propertyValidator("emailVerificationSubject",cdk().validateString)(properties.emailVerificationSubject)),errors.collect(cdk().propertyValidator("enabledMfas",cdk().listValidator(cdk().validateString))(properties.enabledMfas)),errors.collect(cdk().propertyValidator("lambdaConfig",CfnUserPoolLambdaConfigPropertyValidator)(properties.lambdaConfig)),errors.collect(cdk().propertyValidator("mfaConfiguration",cdk().validateString)(properties.mfaConfiguration)),errors.collect(cdk().propertyValidator("policies",CfnUserPoolPoliciesPropertyValidator)(properties.policies)),errors.collect(cdk().propertyValidator("schema",cdk().listValidator(CfnUserPoolSchemaAttributePropertyValidator))(properties.schema)),errors.collect(cdk().propertyValidator("smsAuthenticationMessage",cdk().validateString)(properties.smsAuthenticationMessage)),errors.collect(cdk().propertyValidator("smsConfiguration",CfnUserPoolSmsConfigurationPropertyValidator)(properties.smsConfiguration)),errors.collect(cdk().propertyValidator("smsVerificationMessage",cdk().validateString)(properties.smsVerificationMessage)),errors.collect(cdk().propertyValidator("userAttributeUpdateSettings",CfnUserPoolUserAttributeUpdateSettingsPropertyValidator)(properties.userAttributeUpdateSettings)),errors.collect(cdk().propertyValidator("userPoolAddOns",CfnUserPoolUserPoolAddOnsPropertyValidator)(properties.userPoolAddOns)),errors.collect(cdk().propertyValidator("userPoolName",cdk().validateString)(properties.userPoolName)),errors.collect(cdk().propertyValidator("userPoolTags",cdk().validateObject)(properties.userPoolTags)),errors.collect(cdk().propertyValidator("userPoolTier",cdk().validateString)(properties.userPoolTier)),errors.collect(cdk().propertyValidator("usernameAttributes",cdk().listValidator(cdk().validateString))(properties.usernameAttributes)),errors.collect(cdk().propertyValidator("usernameConfiguration",CfnUserPoolUsernameConfigurationPropertyValidator)(properties.usernameConfiguration)),errors.collect(cdk().propertyValidator("verificationMessageTemplate",CfnUserPoolVerificationMessageTemplatePropertyValidator)(properties.verificationMessageTemplate)),errors.collect(cdk().propertyValidator("webAuthnRelyingPartyId",cdk().validateString)(properties.webAuthnRelyingPartyId)),errors.collect(cdk().propertyValidator("webAuthnUserVerification",cdk().validateString)(properties.webAuthnUserVerification)),errors.wrap('supplied properties not correct for "CfnUserPoolProps"')}function convertCfnUserPoolPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPropsValidator(properties).assertSuccess(),{AccountRecoverySetting:convertCfnUserPoolAccountRecoverySettingPropertyToCloudFormation(properties.accountRecoverySetting),AdminCreateUserConfig:convertCfnUserPoolAdminCreateUserConfigPropertyToCloudFormation(properties.adminCreateUserConfig),AliasAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.aliasAttributes),AutoVerifiedAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.autoVerifiedAttributes),DeletionProtection:cdk().stringToCloudFormation(properties.deletionProtection),DeviceConfiguration:convertCfnUserPoolDeviceConfigurationPropertyToCloudFormation(properties.deviceConfiguration),EmailAuthenticationMessage:cdk().stringToCloudFormation(properties.emailAuthenticationMessage),EmailAuthenticationSubject:cdk().stringToCloudFormation(properties.emailAuthenticationSubject),EmailConfiguration:convertCfnUserPoolEmailConfigurationPropertyToCloudFormation(properties.emailConfiguration),EmailVerificationMessage:cdk().stringToCloudFormation(properties.emailVerificationMessage),EmailVerificationSubject:cdk().stringToCloudFormation(properties.emailVerificationSubject),EnabledMfas:cdk().listMapper(cdk().stringToCloudFormation)(properties.enabledMfas),LambdaConfig:convertCfnUserPoolLambdaConfigPropertyToCloudFormation(properties.lambdaConfig),MfaConfiguration:cdk().stringToCloudFormation(properties.mfaConfiguration),Policies:convertCfnUserPoolPoliciesPropertyToCloudFormation(properties.policies),Schema:cdk().listMapper(convertCfnUserPoolSchemaAttributePropertyToCloudFormation)(properties.schema),SmsAuthenticationMessage:cdk().stringToCloudFormation(properties.smsAuthenticationMessage),SmsConfiguration:convertCfnUserPoolSmsConfigurationPropertyToCloudFormation(properties.smsConfiguration),SmsVerificationMessage:cdk().stringToCloudFormation(properties.smsVerificationMessage),UserAttributeUpdateSettings:convertCfnUserPoolUserAttributeUpdateSettingsPropertyToCloudFormation(properties.userAttributeUpdateSettings),UserPoolAddOns:convertCfnUserPoolUserPoolAddOnsPropertyToCloudFormation(properties.userPoolAddOns),UserPoolName:cdk().stringToCloudFormation(properties.userPoolName),UserPoolTags:cdk().objectToCloudFormation(properties.userPoolTags),UserPoolTier:cdk().stringToCloudFormation(properties.userPoolTier),UsernameAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.usernameAttributes),UsernameConfiguration:convertCfnUserPoolUsernameConfigurationPropertyToCloudFormation(properties.usernameConfiguration),VerificationMessageTemplate:convertCfnUserPoolVerificationMessageTemplatePropertyToCloudFormation(properties.verificationMessageTemplate),WebAuthnRelyingPartyID:cdk().stringToCloudFormation(properties.webAuthnRelyingPartyId),WebAuthnUserVerification:cdk().stringToCloudFormation(properties.webAuthnUserVerification)}):properties}function CfnUserPoolPropsFromCloudFormation(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("accountRecoverySetting","AccountRecoverySetting",properties.AccountRecoverySetting!=null?CfnUserPoolAccountRecoverySettingPropertyFromCloudFormation(properties.AccountRecoverySetting):void 0),ret.addPropertyResult("adminCreateUserConfig","AdminCreateUserConfig",properties.AdminCreateUserConfig!=null?CfnUserPoolAdminCreateUserConfigPropertyFromCloudFormation(properties.AdminCreateUserConfig):void 0),ret.addPropertyResult("aliasAttributes","AliasAttributes",properties.AliasAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AliasAttributes):void 0),ret.addPropertyResult("autoVerifiedAttributes","AutoVerifiedAttributes",properties.AutoVerifiedAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AutoVerifiedAttributes):void 0),ret.addPropertyResult("deletionProtection","DeletionProtection",properties.DeletionProtection!=null?cfn_parse().FromCloudFormation.getString(properties.DeletionProtection):void 0),ret.addPropertyResult("deviceConfiguration","DeviceConfiguration",properties.DeviceConfiguration!=null?CfnUserPoolDeviceConfigurationPropertyFromCloudFormation(properties.DeviceConfiguration):void 0),ret.addPropertyResult("emailAuthenticationMessage","EmailAuthenticationMessage",properties.EmailAuthenticationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailAuthenticationMessage):void 0),ret.addPropertyResult("emailAuthenticationSubject","EmailAuthenticationSubject",properties.EmailAuthenticationSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailAuthenticationSubject):void 0),ret.addPropertyResult("emailConfiguration","EmailConfiguration",properties.EmailConfiguration!=null?CfnUserPoolEmailConfigurationPropertyFromCloudFormation(properties.EmailConfiguration):void 0),ret.addPropertyResult("emailVerificationMessage","EmailVerificationMessage",properties.EmailVerificationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailVerificationMessage):void 0),ret.addPropertyResult("emailVerificationSubject","EmailVerificationSubject",properties.EmailVerificationSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailVerificationSubject):void 0),ret.addPropertyResult("enabledMfas","EnabledMfas",properties.EnabledMfas!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EnabledMfas):void 0),ret.addPropertyResult("lambdaConfig","LambdaConfig",properties.LambdaConfig!=null?CfnUserPoolLambdaConfigPropertyFromCloudFormation(properties.LambdaConfig):void 0),ret.addPropertyResult("mfaConfiguration","MfaConfiguration",properties.MfaConfiguration!=null?cfn_parse().FromCloudFormation.getString(properties.MfaConfiguration):void 0),ret.addPropertyResult("policies","Policies",properties.Policies!=null?CfnUserPoolPoliciesPropertyFromCloudFormation(properties.Policies):void 0),ret.addPropertyResult("schema","Schema",properties.Schema!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolSchemaAttributePropertyFromCloudFormation)(properties.Schema):void 0),ret.addPropertyResult("smsAuthenticationMessage","SmsAuthenticationMessage",properties.SmsAuthenticationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SmsAuthenticationMessage):void 0),ret.addPropertyResult("smsConfiguration","SmsConfiguration",properties.SmsConfiguration!=null?CfnUserPoolSmsConfigurationPropertyFromCloudFormation(properties.SmsConfiguration):void 0),ret.addPropertyResult("smsVerificationMessage","SmsVerificationMessage",properties.SmsVerificationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SmsVerificationMessage):void 0),ret.addPropertyResult("userAttributeUpdateSettings","UserAttributeUpdateSettings",properties.UserAttributeUpdateSettings!=null?CfnUserPoolUserAttributeUpdateSettingsPropertyFromCloudFormation(properties.UserAttributeUpdateSettings):void 0),ret.addPropertyResult("usernameAttributes","UsernameAttributes",properties.UsernameAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.UsernameAttributes):void 0),ret.addPropertyResult("usernameConfiguration","UsernameConfiguration",properties.UsernameConfiguration!=null?CfnUserPoolUsernameConfigurationPropertyFromCloudFormation(properties.UsernameConfiguration):void 0),ret.addPropertyResult("userPoolAddOns","UserPoolAddOns",properties.UserPoolAddOns!=null?CfnUserPoolUserPoolAddOnsPropertyFromCloudFormation(properties.UserPoolAddOns):void 0),ret.addPropertyResult("userPoolName","UserPoolName",properties.UserPoolName!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolName):void 0),ret.addPropertyResult("userPoolTags","UserPoolTags",properties.UserPoolTags!=null?cfn_parse().FromCloudFormation.getAny(properties.UserPoolTags):void 0),ret.addPropertyResult("userPoolTier","UserPoolTier",properties.UserPoolTier!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolTier):void 0),ret.addPropertyResult("verificationMessageTemplate","VerificationMessageTemplate",properties.VerificationMessageTemplate!=null?CfnUserPoolVerificationMessageTemplatePropertyFromCloudFormation(properties.VerificationMessageTemplate):void 0),ret.addPropertyResult("webAuthnRelyingPartyId","WebAuthnRelyingPartyID",properties.WebAuthnRelyingPartyID!=null?cfn_parse().FromCloudFormation.getString(properties.WebAuthnRelyingPartyID):void 0),ret.addPropertyResult("webAuthnUserVerification","WebAuthnUserVerification",properties.WebAuthnUserVerification!=null?cfn_parse().FromCloudFormation.getString(properties.WebAuthnUserVerification):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolClient extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolClient",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolClient";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolClientPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolClient(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 isCfnUserPoolClient(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolClient.CFN_RESOURCE_TYPE_NAME}_accessTokenValidity;_allowedOAuthFlows;_allowedOAuthFlowsUserPoolClient;_allowedOAuthScopes;_analyticsConfiguration;_authSessionValidity;_callbackUrLs;_clientName;_defaultRedirectUri;_enablePropagateAdditionalUserContextData;_enableTokenRevocation;_explicitAuthFlows;_generateSecret;_idTokenValidity;_logoutUrLs;_preventUserExistenceErrors;_readAttributes;_refreshTokenRotation;_refreshTokenValidity;_supportedIdentityProviders;_tokenValidityUnits;_userPoolId;_writeAttributes;cfnPropertyNames={accessTokenValidity:"AccessTokenValidity",allowedOAuthFlows:"AllowedOAuthFlows",allowedOAuthFlowsUserPoolClient:"AllowedOAuthFlowsUserPoolClient",allowedOAuthScopes:"AllowedOAuthScopes",analyticsConfiguration:"AnalyticsConfiguration",authSessionValidity:"AuthSessionValidity",callbackUrLs:"CallbackURLs",clientName:"ClientName",defaultRedirectUri:"DefaultRedirectURI",enablePropagateAdditionalUserContextData:"EnablePropagateAdditionalUserContextData",enableTokenRevocation:"EnableTokenRevocation",explicitAuthFlows:"ExplicitAuthFlows",generateSecret:"GenerateSecret",idTokenValidity:"IdTokenValidity",logoutUrLs:"LogoutURLs",preventUserExistenceErrors:"PreventUserExistenceErrors",readAttributes:"ReadAttributes",refreshTokenRotation:"RefreshTokenRotation",refreshTokenValidity:"RefreshTokenValidity",supportedIdentityProviders:"SupportedIdentityProviders",tokenValidityUnits:"TokenValidityUnits",userPoolId:"UserPoolId",writeAttributes:"WriteAttributes"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolClient.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolClientProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolClient),error}cdk().requireProperty(props,"userPoolId",this),this._accessTokenValidity=props.accessTokenValidity,this._allowedOAuthFlows=props.allowedOAuthFlows,this._allowedOAuthFlowsUserPoolClient=props.allowedOAuthFlowsUserPoolClient,this._allowedOAuthScopes=props.allowedOAuthScopes,this._analyticsConfiguration=props.analyticsConfiguration,this._authSessionValidity=props.authSessionValidity,this._callbackUrLs=props.callbackUrLs,this._clientName=props.clientName,this._defaultRedirectUri=props.defaultRedirectUri,this._enablePropagateAdditionalUserContextData=props.enablePropagateAdditionalUserContextData,this._enableTokenRevocation=props.enableTokenRevocation,this._explicitAuthFlows=props.explicitAuthFlows,this._generateSecret=props.generateSecret,this._idTokenValidity=props.idTokenValidity,this._logoutUrLs=props.logoutUrLs,this._preventUserExistenceErrors=props.preventUserExistenceErrors,this._readAttributes=props.readAttributes,this._refreshTokenRotation=props.refreshTokenRotation,this._refreshTokenValidity=props.refreshTokenValidity,this._supportedIdentityProviders=props.supportedIdentityProviders,this._tokenValidityUnits=props.tokenValidityUnits,this._userPoolId=cdk().getRefProperty(props.userPoolId?.userPoolRef,"userPoolId")??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string"),this._writeAttributes=props.writeAttributes}get userPoolClientRef(){return{userPoolId:this.userPoolId,clientId:this.ref}}get accessTokenValidity(){return this._accessTokenValidity}set accessTokenValidity(value){cdk().traceProperty(this.node,"AccessTokenValidity"),this._accessTokenValidity=value}get allowedOAuthFlows(){return this._allowedOAuthFlows}set allowedOAuthFlows(value){cdk().traceProperty(this.node,"AllowedOAuthFlows"),this._allowedOAuthFlows=value}get allowedOAuthFlowsUserPoolClient(){return this._allowedOAuthFlowsUserPoolClient}set allowedOAuthFlowsUserPoolClient(value){cdk().traceProperty(this.node,"AllowedOAuthFlowsUserPoolClient"),this._allowedOAuthFlowsUserPoolClient=value}get allowedOAuthScopes(){return this._allowedOAuthScopes}set allowedOAuthScopes(value){cdk().traceProperty(this.node,"AllowedOAuthScopes"),this._allowedOAuthScopes=value}get analyticsConfiguration(){return this._analyticsConfiguration}set analyticsConfiguration(value){cdk().traceProperty(this.node,"AnalyticsConfiguration"),this._analyticsConfiguration=value}get authSessionValidity(){return this._authSessionValidity}set authSessionValidity(value){cdk().traceProperty(this.node,"AuthSessionValidity"),this._authSessionValidity=value}get callbackUrLs(){return this._callbackUrLs}set callbackUrLs(value){cdk().traceProperty(this.node,"CallbackURLs"),this._callbackUrLs=value}get clientName(){return this._clientName}set clientName(value){cdk().traceProperty(this.node,"ClientName"),this._clientName=value}get defaultRedirectUri(){return this._defaultRedirectUri}set defaultRedirectUri(value){cdk().traceProperty(this.node,"DefaultRedirectURI"),this._defaultRedirectUri=value}get enablePropagateAdditionalUserContextData(){return this._enablePropagateAdditionalUserContextData}set enablePropagateAdditionalUserContextData(value){cdk().traceProperty(this.node,"EnablePropagateAdditionalUserContextData"),this._enablePropagateAdditionalUserContextData=value}get enableTokenRevocation(){return this._enableTokenRevocation}set enableTokenRevocation(value){cdk().traceProperty(this.node,"EnableTokenRevocation"),this._enableTokenRevocation=value}get explicitAuthFlows(){return this._explicitAuthFlows}set explicitAuthFlows(value){cdk().traceProperty(this.node,"ExplicitAuthFlows"),this._explicitAuthFlows=value}get generateSecret(){return this._generateSecret}set generateSecret(value){cdk().traceProperty(this.node,"GenerateSecret"),this._generateSecret=value}get idTokenValidity(){return this._idTokenValidity}set idTokenValidity(value){cdk().traceProperty(this.node,"IdTokenValidity"),this._idTokenValidity=value}get logoutUrLs(){return this._logoutUrLs}set logoutUrLs(value){cdk().traceProperty(this.node,"LogoutURLs"),this._logoutUrLs=value}get preventUserExistenceErrors(){return this._preventUserExistenceErrors}set preventUserExistenceErrors(value){cdk().traceProperty(this.node,"PreventUserExistenceErrors"),this._preventUserExistenceErrors=value}get readAttributes(){return this._readAttributes}set readAttributes(value){cdk().traceProperty(this.node,"ReadAttributes"),this._readAttributes=value}get refreshTokenRotation(){return this._refreshTokenRotation}set refreshTokenRotation(value){cdk().traceProperty(this.node,"RefreshTokenRotation"),this._refreshTokenRotation=value}get refreshTokenValidity(){return this._refreshTokenValidity}set refreshTokenValidity(value){cdk().traceProperty(this.node,"RefreshTokenValidity"),this._refreshTokenValidity=value}get supportedIdentityProviders(){return this._supportedIdentityProviders}set supportedIdentityProviders(value){cdk().traceProperty(this.node,"SupportedIdentityProviders"),this._supportedIdentityProviders=value}get tokenValidityUnits(){return this._tokenValidityUnits}set tokenValidityUnits(value){cdk().traceProperty(this.node,"TokenValidityUnits"),this._tokenValidityUnits=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get writeAttributes(){return this._writeAttributes}set writeAttributes(value){cdk().traceProperty(this.node,"WriteAttributes"),this._writeAttributes=value}get attrClientId(){return cdk().Token.asString(this.getAtt("ClientId",cdk().ResolutionTypeHint.STRING))}get attrClientSecret(){return cdk().Token.asString(this.getAtt("ClientSecret",cdk().ResolutionTypeHint.STRING))}get attrName(){return cdk().Token.asString(this.getAtt("Name",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{accessTokenValidity:this._accessTokenValidity,allowedOAuthFlows:this._allowedOAuthFlows,allowedOAuthFlowsUserPoolClient:this._allowedOAuthFlowsUserPoolClient,allowedOAuthScopes:this._allowedOAuthScopes,analyticsConfiguration:this._analyticsConfiguration,authSessionValidity:this._authSessionValidity,callbackUrLs:this._callbackUrLs,clientName:this._clientName,defaultRedirectUri:this._defaultRedirectUri,enablePropagateAdditionalUserContextData:this._enablePropagateAdditionalUserContextData,enableTokenRevocation:this._enableTokenRevocation,explicitAuthFlows:this._explicitAuthFlows,generateSecret:this._generateSecret,idTokenValidity:this._idTokenValidity,logoutUrLs:this._logoutUrLs,preventUserExistenceErrors:this._preventUserExistenceErrors,readAttributes:this._readAttributes,refreshTokenRotation:this._refreshTokenRotation,refreshTokenValidity:this._refreshTokenValidity,supportedIdentityProviders:this._supportedIdentityProviders,tokenValidityUnits:this._tokenValidityUnits,userPoolId:this._userPoolId,writeAttributes:this._writeAttributes}}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",CfnUserPoolClient.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolClientPropsToCloudFormation(props)}}exports.CfnUserPoolClient=CfnUserPoolClient;function CfnUserPoolClientAnalyticsConfigurationPropertyValidator(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("applicationArn",cdk().validateString)(properties.applicationArn)),errors.collect(cdk().propertyValidator("applicationId",cdk().validateString)(properties.applicationId)),errors.collect(cdk().propertyValidator("externalId",cdk().validateString)(properties.externalId)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("userDataShared",cdk().validateBoolean)(properties.userDataShared)),errors.wrap('supplied properties not correct for "AnalyticsConfigurationProperty"')}function convertCfnUserPoolClientAnalyticsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientAnalyticsConfigurationPropertyValidator(properties).assertSuccess(),{ApplicationArn:cdk().stringToCloudFormation(properties.applicationArn),ApplicationId:cdk().stringToCloudFormation(properties.applicationId),ExternalId:cdk().stringToCloudFormation(properties.externalId),RoleArn:cdk().stringToCloudFormation(properties.roleArn),UserDataShared:cdk().booleanToCloudFormation(properties.userDataShared)}):properties}function CfnUserPoolClientAnalyticsConfigurationPropertyFromCloudFormation(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("applicationArn","ApplicationArn",properties.ApplicationArn!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationArn):void 0),ret.addPropertyResult("applicationId","ApplicationId",properties.ApplicationId!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationId):void 0),ret.addPropertyResult("externalId","ExternalId",properties.ExternalId!=null?cfn_parse().FromCloudFormation.getString(properties.ExternalId):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("userDataShared","UserDataShared",properties.UserDataShared!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UserDataShared):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolClientTokenValidityUnitsPropertyValidator(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("accessToken",cdk().validateString)(properties.accessToken)),errors.collect(cdk().propertyValidator("idToken",cdk().validateString)(properties.idToken)),errors.collect(cdk().propertyValidator("refreshToken",cdk().validateString)(properties.refreshToken)),errors.wrap('supplied properties not correct for "TokenValidityUnitsProperty"')}function convertCfnUserPoolClientTokenValidityUnitsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientTokenValidityUnitsPropertyValidator(properties).assertSuccess(),{AccessToken:cdk().stringToCloudFormation(properties.accessToken),IdToken:cdk().stringToCloudFormation(properties.idToken),RefreshToken:cdk().stringToCloudFormation(properties.refreshToken)}):properties}function CfnUserPoolClientTokenValidityUnitsPropertyFromCloudFormation(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("accessToken","AccessToken",properties.AccessToken!=null?cfn_parse().FromCloudFormation.getString(properties.AccessToken):void 0),ret.addPropertyResult("idToken","IdToken",properties.IdToken!=null?cfn_parse().FromCloudFormation.getString(properties.IdToken):void 0),ret.addPropertyResult("refreshToken","RefreshToken",properties.RefreshToken!=null?cfn_parse().FromCloudFormation.getString(properties.RefreshToken):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolClientRefreshTokenRotationPropertyValidator(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("feature",cdk().validateString)(properties.feature)),errors.collect(cdk().propertyValidator("retryGracePeriodSeconds",cdk().validateNumber)(properties.retryGracePeriodSeconds)),errors.wrap('supplied properties not correct for "RefreshTokenRotationProperty"')}function convertCfnUserPoolClientRefreshTokenRotationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientRefreshTokenRotationPropertyValidator(properties).assertSuccess(),{Feature:cdk().stringToCloudFormation(properties.feature),RetryGracePeriodSeconds:cdk().numberToCloudFormation(properties.retryGracePeriodSeconds)}):properties}function CfnUserPoolClientRefreshTokenRotationPropertyFromCloudFormation(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("feature","Feature",properties.Feature!=null?cfn_parse().FromCloudFormation.getString(properties.Feature):void 0),ret.addPropertyResult("retryGracePeriodSeconds","RetryGracePeriodSeconds",properties.RetryGracePeriodSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.RetryGracePeriodSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolClientPropsValidator(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("accessTokenValidity",cdk().validateNumber)(properties.accessTokenValidity)),errors.collect(cdk().propertyValidator("allowedOAuthFlows",cdk().listValidator(cdk().validateString))(properties.allowedOAuthFlows)),errors.collect(cdk().propertyValidator("allowedOAuthFlowsUserPoolClient",cdk().validateBoolean)(properties.allowedOAuthFlowsUserPoolClient)),errors.collect(cdk().propertyValidator("allowedOAuthScopes",cdk().listValidator(cdk().validateString))(properties.allowedOAuthScopes)),errors.collect(cdk().propertyValidator("analyticsConfiguration",CfnUserPoolClientAnalyticsConfigurationPropertyValidator)(properties.analyticsConfiguration)),errors.collect(cdk().propertyValidator("authSessionValidity",cdk().validateNumber)(properties.authSessionValidity)),errors.collect(cdk().propertyValidator("callbackUrLs",cdk().listValidator(cdk().validateString))(properties.callbackUrLs)),errors.collect(cdk().propertyValidator("clientName",cdk().validateString)(properties.clientName)),errors.collect(cdk().propertyValidator("defaultRedirectUri",cdk().validateString)(properties.defaultRedirectUri)),errors.collect(cdk().propertyValidator("enablePropagateAdditionalUserContextData",cdk().validateBoolean)(properties.enablePropagateAdditionalUserContextData)),errors.collect(cdk().propertyValidator("enableTokenRevocation",cdk().validateBoolean)(properties.enableTokenRevocation)),errors.collect(cdk().propertyValidator("explicitAuthFlows",cdk().listValidator(cdk().validateString))(properties.explicitAuthFlows)),errors.collect(cdk().propertyValidator("generateSecret",cdk().validateBoolean)(properties.generateSecret)),errors.collect(cdk().propertyValidator("idTokenValidity",cdk().validateNumber)(properties.idTokenValidity)),errors.collect(cdk().propertyValidator("logoutUrLs",cdk().listValidator(cdk().validateString))(properties.logoutUrLs)),errors.collect(cdk().propertyValidator("preventUserExistenceErrors",cdk().validateString)(properties.preventUserExistenceErrors)),errors.collect(cdk().propertyValidator("readAttributes",cdk().listValidator(cdk().validateString))(properties.readAttributes)),errors.collect(cdk().propertyValidator("refreshTokenRotation",CfnUserPoolClientRefreshTokenRotationPropertyValidator)(properties.refreshTokenRotation)),errors.collect(cdk().propertyValidator("refreshTokenValidity",cdk().validateNumber)(properties.refreshTokenValidity)),errors.collect(cdk().propertyValidator("supportedIdentityProviders",cdk().listValidator(cdk().validateString))(properties.supportedIdentityProviders)),errors.collect(cdk().propertyValidator("tokenValidityUnits",CfnUserPoolClientTokenValidityUnitsPropertyValidator)(properties.tokenValidityUnits)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.collect(cdk().propertyValidator("writeAttributes",cdk().listValidator(cdk().validateString))(properties.writeAttributes)),errors.wrap('supplied properties not correct for "CfnUserPoolClientProps"')}function convertCfnUserPoolClientPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientPropsValidator(properties).assertSuccess(),{AccessTokenValidity:cdk().numberToCloudFormation(properties.accessTokenValidity),AllowedOAuthFlows:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedOAuthFlows),AllowedOAuthFlowsUserPoolClient:cdk().booleanToCloudFormation(properties.allowedOAuthFlowsUserPoolClient),AllowedOAuthScopes:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedOAuthScopes),AnalyticsConfiguration:convertCfnUserPoolClientAnalyticsConfigurationPropertyToCloudFormation(properties.analyticsConfiguration),AuthSessionValidity:cdk().numberToCloudFormation(properties.authSessionValidity),CallbackURLs:cdk().listMapper(cdk().stringToCloudFormation)(properties.callbackUrLs),ClientName:cdk().stringToCloudFormation(properties.clientName),DefaultRedirectURI:cdk().stringToCloudFormation(properties.defaultRedirectUri),EnablePropagateAdditionalUserContextData:cdk().booleanToCloudFormation(properties.enablePropagateAdditionalUserContextData),EnableTokenRevocation:cdk().booleanToCloudFormation(properties.enableTokenRevocation),ExplicitAuthFlows:cdk().listMapper(cdk().stringToCloudFormation)(properties.explicitAuthFlows),GenerateSecret:cdk().booleanToCloudFormation(properties.generateSecret),IdTokenValidity:cdk().numberToCloudFormation(properties.idTokenValidity),LogoutURLs:cdk().listMapper(cdk().stringToCloudFormation)(properties.logoutUrLs),PreventUserExistenceErrors:cdk().stringToCloudFormation(properties.preventUserExistenceErrors),ReadAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.readAttributes),RefreshTokenRotation:convertCfnUserPoolClientRefreshTokenRotationPropertyToCloudFormation(properties.refreshTokenRotation),RefreshTokenValidity:cdk().numberToCloudFormation(properties.refreshTokenValidity),SupportedIdentityProviders:cdk().listMapper(cdk().stringToCloudFormation)(properties.supportedIdentityProviders),TokenValidityUnits:convertCfnUserPoolClientTokenValidityUnitsPropertyToCloudFormation(properties.tokenValidityUnits),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId),WriteAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.writeAttributes)}):properties}function CfnUserPoolClientPropsFromCloudFormation(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("accessTokenValidity","AccessTokenValidity",properties.AccessTokenValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.AccessTokenValidity):void 0),ret.addPropertyResult("allowedOAuthFlows","AllowedOAuthFlows",properties.AllowedOAuthFlows!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedOAuthFlows):void 0),ret.addPropertyResult("allowedOAuthFlowsUserPoolClient","AllowedOAuthFlowsUserPoolClient",properties.AllowedOAuthFlowsUserPoolClient!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowedOAuthFlowsUserPoolClient):void 0),ret.addPropertyResult("allowedOAuthScopes","AllowedOAuthScopes",properties.AllowedOAuthScopes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedOAuthScopes):void 0),ret.addPropertyResult("analyticsConfiguration","AnalyticsConfiguration",properties.AnalyticsConfiguration!=null?CfnUserPoolClientAnalyticsConfigurationPropertyFromCloudFormation(properties.AnalyticsConfiguration):void 0),ret.addPropertyResult("authSessionValidity","AuthSessionValidity",properties.AuthSessionValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.AuthSessionValidity):void 0),ret.addPropertyResult("callbackUrLs","CallbackURLs",properties.CallbackURLs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CallbackURLs):void 0),ret.addPropertyResult("clientName","ClientName",properties.ClientName!=null?cfn_parse().FromCloudFormation.getString(properties.ClientName):void 0),ret.addPropertyResult("defaultRedirectUri","DefaultRedirectURI",properties.DefaultRedirectURI!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultRedirectURI):void 0),ret.addPropertyResult("enablePropagateAdditionalUserContextData","EnablePropagateAdditionalUserContextData",properties.EnablePropagateAdditionalUserContextData!=null?cfn_parse().FromCloudFormation.getBoolean(properties.EnablePropagateAdditionalUserContextData):void 0),ret.addPropertyResult("enableTokenRevocation","EnableTokenRevocation",properties.EnableTokenRevocation!=null?cfn_parse().FromCloudFormation.getBoolean(properties.EnableTokenRevocation):void 0),ret.addPropertyResult("explicitAuthFlows","ExplicitAuthFlows",properties.ExplicitAuthFlows!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExplicitAuthFlows):void 0),ret.addPropertyResult("generateSecret","GenerateSecret",properties.GenerateSecret!=null?cfn_parse().FromCloudFormation.getBoolean(properties.GenerateSecret):void 0),ret.addPropertyResult("idTokenValidity","IdTokenValidity",properties.IdTokenValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.IdTokenValidity):void 0),ret.addPropertyResult("logoutUrLs","LogoutURLs",properties.LogoutURLs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.LogoutURLs):void 0),ret.addPropertyResult("preventUserExistenceErrors","PreventUserExistenceErrors",properties.PreventUserExistenceErrors!=null?cfn_parse().FromCloudFormation.getString(properties.PreventUserExistenceErrors):void 0),ret.addPropertyResult("readAttributes","ReadAttributes",properties.ReadAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ReadAttributes):void 0),ret.addPropertyResult("refreshTokenRotation","RefreshTokenRotation",properties.RefreshTokenRotation!=null?CfnUserPoolClientRefreshTokenRotationPropertyFromCloudFormation(properties.RefreshTokenRotation):void 0),ret.addPropertyResult("refreshTokenValidity","RefreshTokenValidity",properties.RefreshTokenValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.RefreshTokenValidity):void 0),ret.addPropertyResult("supportedIdentityProviders","SupportedIdentityProviders",properties.SupportedIdentityProviders!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SupportedIdentityProviders):void 0),ret.addPropertyResult("tokenValidityUnits","TokenValidityUnits",properties.TokenValidityUnits!=null?CfnUserPoolClientTokenValidityUnitsPropertyFromCloudFormation(properties.TokenValidityUnits):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addPropertyResult("writeAttributes","WriteAttributes",properties.WriteAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.WriteAttributes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolDomain extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolDomain",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolDomain";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolDomainPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolDomain(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 isCfnUserPoolDomain(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolDomain.CFN_RESOURCE_TYPE_NAME}_customDomainConfig;_domain;_managedLoginVersion;_userPoolId;cfnPropertyNames={customDomainConfig:"CustomDomainConfig",domain:"Domain",managedLoginVersion:"ManagedLoginVersion",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolDomain.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolDomainProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolDomain),error}cdk().requireProperty(props,"domain",this),cdk().requireProperty(props,"userPoolId",this),this._customDomainConfig=props.customDomainConfig,this._domain=props.domain,this._managedLoginVersion=props.managedLoginVersion,this._userPoolId=props.userPoolId}get userPoolDomainRef(){return{userPoolId:this.userPoolId,domain:this.ref}}get customDomainConfig(){return this._customDomainConfig}set customDomainConfig(value){cdk().traceProperty(this.node,"CustomDomainConfig"),this._customDomainConfig=value}get domain(){return this._domain}set domain(value){cdk().traceProperty(this.node,"Domain"),this._domain=value}get managedLoginVersion(){return this._managedLoginVersion}set managedLoginVersion(value){cdk().traceProperty(this.node,"ManagedLoginVersion"),this._managedLoginVersion=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get attrCloudFrontDistribution(){return cdk().Token.asString(this.getAtt("CloudFrontDistribution",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{customDomainConfig:this._customDomainConfig,domain:this._domain,managedLoginVersion:this._managedLoginVersion,userPoolId:this._userPoolId}}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",CfnUserPoolDomain.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolDomainPropsToCloudFormation(props)}}exports.CfnUserPoolDomain=CfnUserPoolDomain;function CfnUserPoolDomainCustomDomainConfigTypePropertyValidator(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("certificateArn",cdk().validateString)(properties.certificateArn)),errors.wrap('supplied properties not correct for "CustomDomainConfigTypeProperty"')}function convertCfnUserPoolDomainCustomDomainConfigTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolDomainCustomDomainConfigTypePropertyValidator(properties).assertSuccess(),{CertificateArn:cdk().stringToCloudFormation(properties.certificateArn)}):properties}function CfnUserPoolDomainCustomDomainConfigTypePropertyFromCloudFormation(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("certificateArn","CertificateArn",properties.CertificateArn!=null?cfn_parse().FromCloudFormation.getString(properties.CertificateArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolDomainPropsValidator(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("customDomainConfig",CfnUserPoolDomainCustomDomainConfigTypePropertyValidator)(properties.customDomainConfig)),errors.collect(cdk().propertyValidator("domain",cdk().requiredValidator)(properties.domain)),errors.collect(cdk().propertyValidator("domain",cdk().validateString)(properties.domain)),errors.collect(cdk().propertyValidator("managedLoginVersion",cdk().validateNumber)(properties.managedLoginVersion)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolDomainProps"')}function convertCfnUserPoolDomainPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolDomainPropsValidator(properties).assertSuccess(),{CustomDomainConfig:convertCfnUserPoolDomainCustomDomainConfigTypePropertyToCloudFormation(properties.customDomainConfig),Domain:cdk().stringToCloudFormation(properties.domain),ManagedLoginVersion:cdk().numberToCloudFormation(properties.managedLoginVersion),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolDomainPropsFromCloudFormation(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("customDomainConfig","CustomDomainConfig",properties.CustomDomainConfig!=null?CfnUserPoolDomainCustomDomainConfigTypePropertyFromCloudFormation(properties.CustomDomainConfig):void 0),ret.addPropertyResult("domain","Domain",properties.Domain!=null?cfn_parse().FromCloudFormation.getString(properties.Domain):void 0),ret.addPropertyResult("managedLoginVersion","ManagedLoginVersion",properties.ManagedLoginVersion!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManagedLoginVersion):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolGroup extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolGroup",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolGroup";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolGroup(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 isCfnUserPoolGroup(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolGroup.CFN_RESOURCE_TYPE_NAME}_description;_groupName;_precedence;_roleArn;_userPoolId;cfnPropertyNames={description:"Description",groupName:"GroupName",precedence:"Precedence",roleArn:"RoleArn",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolGroup),error}cdk().requireProperty(props,"userPoolId",this),this._description=props.description,this._groupName=props.groupName,this._precedence=props.precedence,this._roleArn=cdk().getRefProperty(props.roleArn?.roleRef,"roleArn")??cdk().ensureStringOrUndefined(props.roleArn,"roleArn","iam.IRoleRef | string"),this._userPoolId=cdk().getRefProperty(props.userPoolId?.userPoolRef,"userPoolId")??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolGroupRef(){return{userPoolId:this.userPoolId,groupName:this.ref}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get groupName(){return this._groupName}set groupName(value){cdk().traceProperty(this.node,"GroupName"),this._groupName=value}get precedence(){return this._precedence}set precedence(value){cdk().traceProperty(this.node,"Precedence"),this._precedence=value}get roleArn(){return this._roleArn}set roleArn(value){cdk().traceProperty(this.node,"RoleArn"),this._roleArn=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get cfnProperties(){return{description:this._description,groupName:this._groupName,precedence:this._precedence,roleArn:this._roleArn,userPoolId:this._userPoolId}}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",CfnUserPoolGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolGroupPropsToCloudFormation(props)}}exports.CfnUserPoolGroup=CfnUserPoolGroup;function CfnUserPoolGroupPropsValidator(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("groupName",cdk().validateString)(properties.groupName)),errors.collect(cdk().propertyValidator("precedence",cdk().validateNumber)(properties.precedence)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolGroupProps"')}function convertCfnUserPoolGroupPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolGroupPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),GroupName:cdk().stringToCloudFormation(properties.groupName),Precedence:cdk().numberToCloudFormation(properties.precedence),RoleArn:cdk().stringToCloudFormation(properties.roleArn),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolGroupPropsFromCloudFormation(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("groupName","GroupName",properties.GroupName!=null?cfn_parse().FromCloudFormation.getString(properties.GroupName):void 0),ret.addPropertyResult("precedence","Precedence",properties.Precedence!=null?cfn_parse().FromCloudFormation.getNumber(properties.Precedence):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolIdentityProvider extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolIdentityProvider",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolIdentityProvider";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolIdentityProviderPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolIdentityProvider(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 isCfnUserPoolIdentityProvider(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolIdentityProvider.CFN_RESOURCE_TYPE_NAME}_attributeMapping;_idpIdentifiers;_providerDetails;_providerName;_providerType;_userPoolId;cfnPropertyNames={attributeMapping:"AttributeMapping",idpIdentifiers:"IdpIdentifiers",providerDetails:"ProviderDetails",providerName:"ProviderName",providerType:"ProviderType",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolIdentityProvider.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolIdentityProviderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolIdentityProvider),error}cdk().requireProperty(props,"providerDetails",this),cdk().requireProperty(props,"providerName",this),cdk().requireProperty(props,"providerType",this),cdk().requireProperty(props,"userPoolId",this),this._attributeMapping=props.attributeMapping,this._idpIdentifiers=props.idpIdentifiers,this._providerDetails=props.providerDetails,this._providerName=props.providerName,this._providerType=props.providerType,this._userPoolId=props.userPoolId}get userPoolIdentityProviderRef(){return{userPoolId:this.userPoolId,providerName:this.ref}}get attributeMapping(){return this._attributeMapping}set attributeMapping(value){cdk().traceProperty(this.node,"AttributeMapping"),this._attributeMapping=value}get idpIdentifiers(){return this._idpIdentifiers}set idpIdentifiers(value){cdk().traceProperty(this.node,"IdpIdentifiers"),this._idpIdentifiers=value}get providerDetails(){return this._providerDetails}set providerDetails(value){cdk().traceProperty(this.node,"ProviderDetails"),this._providerDetails=value}get providerName(){return this._providerName}set providerName(value){cdk().traceProperty(this.node,"ProviderName"),this._providerName=value}get providerType(){return this._providerType}set providerType(value){cdk().traceProperty(this.node,"ProviderType"),this._providerType=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get cfnProperties(){return{attributeMapping:this._attributeMapping,idpIdentifiers:this._idpIdentifiers,providerDetails:this._providerDetails,providerName:this._providerName,providerType:this._providerType,userPoolId:this._userPoolId}}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",CfnUserPoolIdentityProvider.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolIdentityProviderPropsToCloudFormation(props)}}exports.CfnUserPoolIdentityProvider=CfnUserPoolIdentityProvider;function CfnUserPoolIdentityProviderPropsValidator(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("attributeMapping",cdk().validateObject)(properties.attributeMapping)),errors.collect(cdk().propertyValidator("idpIdentifiers",cdk().listValidator(cdk().validateString))(properties.idpIdentifiers)),errors.collect(cdk().propertyValidator("providerDetails",cdk().requiredValidator)(properties.providerDetails)),errors.collect(cdk().propertyValidator("providerDetails",cdk().validateObject)(properties.providerDetails)),errors.collect(cdk().propertyValidator("providerName",cdk().requiredValidator)(properties.providerName)),errors.collect(cdk().propertyValidator("providerName",cdk().validateString)(properties.providerName)),errors.collect(cdk().propertyValidator("providerType",cdk().requiredValidator)(properties.providerType)),errors.collect(cdk().propertyValidator("providerType",cdk().validateString)(properties.providerType)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolIdentityProviderProps"')}function convertCfnUserPoolIdentityProviderPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolIdentityProviderPropsValidator(properties).assertSuccess(),{AttributeMapping:cdk().objectToCloudFormation(properties.attributeMapping),IdpIdentifiers:cdk().listMapper(cdk().stringToCloudFormation)(properties.idpIdentifiers),ProviderDetails:cdk().objectToCloudFormation(properties.providerDetails),ProviderName:cdk().stringToCloudFormation(properties.providerName),ProviderType:cdk().stringToCloudFormation(properties.providerType),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolIdentityProviderPropsFromCloudFormation(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("attributeMapping","AttributeMapping",properties.AttributeMapping!=null?cfn_parse().FromCloudFormation.getAny(properties.AttributeMapping):void 0),ret.addPropertyResult("idpIdentifiers","IdpIdentifiers",properties.IdpIdentifiers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.IdpIdentifiers):void 0),ret.addPropertyResult("providerDetails","ProviderDetails",properties.ProviderDetails!=null?cfn_parse().FromCloudFormation.getAny(properties.ProviderDetails):void 0),ret.addPropertyResult("providerName","ProviderName",properties.ProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.ProviderName):void 0),ret.addPropertyResult("providerType","ProviderType",properties.ProviderType!=null?cfn_parse().FromCloudFormation.getString(properties.ProviderType):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolResourceServer extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolResourceServer",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolResourceServer";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolResourceServerPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolResourceServer(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 isCfnUserPoolResourceServer(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolResourceServer.CFN_RESOURCE_TYPE_NAME}_identifier;_name;_scopes;_userPoolId;cfnPropertyNames={identifier:"Identifier",name:"Name",scopes:"Scopes",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolResourceServer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolResourceServerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolResourceServer),error}cdk().requireProperty(props,"identifier",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"userPoolId",this),this._identifier=props.identifier,this._name=props.name,this._scopes=props.scopes,this._userPoolId=cdk().getRefProperty(props.userPoolId?.userPoolRef,"userPoolId")??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolResourceServerRef(){return{userPoolId:this.userPoolId,identifier:this.ref}}get identifier(){return this._identifier}set identifier(value){cdk().traceProperty(this.node,"Identifier"),this._identifier=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get scopes(){return this._scopes}set scopes(value){cdk().traceProperty(this.node,"Scopes"),this._scopes=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get cfnProperties(){return{identifier:this._identifier,name:this._name,scopes:this._scopes,userPoolId:this._userPoolId}}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",CfnUserPoolResourceServer.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolResourceServerPropsToCloudFormation(props)}}exports.CfnUserPoolResourceServer=CfnUserPoolResourceServer;function CfnUserPoolResourceServerResourceServerScopeTypePropertyValidator(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("scopeDescription",cdk().requiredValidator)(properties.scopeDescription)),errors.collect(cdk().propertyValidator("scopeDescription",cdk().validateString)(properties.scopeDescription)),errors.collect(cdk().propertyValidator("scopeName",cdk().requiredValidator)(properties.scopeName)),errors.collect(cdk().propertyValidator("scopeName",cdk().validateString)(properties.scopeName)),errors.wrap('supplied properties not correct for "ResourceServerScopeTypeProperty"')}function convertCfnUserPoolResourceServerResourceServerScopeTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolResourceServerResourceServerScopeTypePropertyValidator(properties).assertSuccess(),{ScopeDescription:cdk().stringToCloudFormation(properties.scopeDescription),ScopeName:cdk().stringToCloudFormation(properties.scopeName)}):properties}function CfnUserPoolResourceServerResourceServerScopeTypePropertyFromCloudFormation(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("scopeDescription","ScopeDescription",properties.ScopeDescription!=null?cfn_parse().FromCloudFormation.getString(properties.ScopeDescription):void 0),ret.addPropertyResult("scopeName","ScopeName",properties.ScopeName!=null?cfn_parse().FromCloudFormation.getString(properties.ScopeName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolResourceServerPropsValidator(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("identifier",cdk().requiredValidator)(properties.identifier)),errors.collect(cdk().propertyValidator("identifier",cdk().validateString)(properties.identifier)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("scopes",cdk().listValidator(CfnUserPoolResourceServerResourceServerScopeTypePropertyValidator))(properties.scopes)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolResourceServerProps"')}function convertCfnUserPoolResourceServerPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolResourceServerPropsValidator(properties).assertSuccess(),{Identifier:cdk().stringToCloudFormation(properties.identifier),Name:cdk().stringToCloudFormation(properties.name),Scopes:cdk().listMapper(convertCfnUserPoolResourceServerResourceServerScopeTypePropertyToCloudFormation)(properties.scopes),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolResourceServerPropsFromCloudFormation(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("identifier","Identifier",properties.Identifier!=null?cfn_parse().FromCloudFormation.getString(properties.Identifier):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("scopes","Scopes",properties.Scopes!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolResourceServerResourceServerScopeTypePropertyFromCloudFormation)(properties.Scopes):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolRiskConfigurationAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolRiskConfigurationAttachment",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolRiskConfigurationAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolRiskConfigurationAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolRiskConfigurationAttachment(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 isCfnUserPoolRiskConfigurationAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolRiskConfigurationAttachment.CFN_RESOURCE_TYPE_NAME}_accountTakeoverRiskConfiguration;_clientId;_compromisedCredentialsRiskConfiguration;_riskExceptionConfiguration;_userPoolId;cfnPropertyNames={accountTakeoverRiskConfiguration:"AccountTakeoverRiskConfiguration",clientId:"ClientId",compromisedCredentialsRiskConfiguration:"CompromisedCredentialsRiskConfiguration",riskExceptionConfiguration:"RiskExceptionConfiguration",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolRiskConfigurationAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolRiskConfigurationAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolRiskConfigurationAttachment),error}cdk().requireProperty(props,"clientId",this),cdk().requireProperty(props,"userPoolId",this),this._accountTakeoverRiskConfiguration=props.accountTakeoverRiskConfiguration,this._clientId=props.clientId,this._compromisedCredentialsRiskConfiguration=props.compromisedCredentialsRiskConfiguration,this._riskExceptionConfiguration=props.riskExceptionConfiguration,this._userPoolId=cdk().getRefProperty(props.userPoolId?.userPoolRef,"userPoolId")??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolRiskConfigurationAttachmentRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),clientId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get accountTakeoverRiskConfiguration(){return this._accountTakeoverRiskConfiguration}set accountTakeoverRiskConfiguration(value){cdk().traceProperty(this.node,"AccountTakeoverRiskConfiguration"),this._accountTakeoverRiskConfiguration=value}get clientId(){return this._clientId}set clientId(value){cdk().traceProperty(this.node,"ClientId"),this._clientId=value}get compromisedCredentialsRiskConfiguration(){return this._compromisedCredentialsRiskConfiguration}set compromisedCredentialsRiskConfiguration(value){cdk().traceProperty(this.node,"CompromisedCredentialsRiskConfiguration"),this._compromisedCredentialsRiskConfiguration=value}get riskExceptionConfiguration(){return this._riskExceptionConfiguration}set riskExceptionConfiguration(value){cdk().traceProperty(this.node,"RiskExceptionConfiguration"),this._riskExceptionConfiguration=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get cfnProperties(){return{accountTakeoverRiskConfiguration:this._accountTakeoverRiskConfiguration,clientId:this._clientId,compromisedCredentialsRiskConfiguration:this._compromisedCredentialsRiskConfiguration,riskExceptionConfiguration:this._riskExceptionConfiguration,userPoolId:this._userPoolId}}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",CfnUserPoolRiskConfigurationAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolRiskConfigurationAttachmentPropsToCloudFormation(props)}}exports.CfnUserPoolRiskConfigurationAttachment=CfnUserPoolRiskConfigurationAttachment;function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyValidator(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("eventAction",cdk().requiredValidator)(properties.eventAction)),errors.collect(cdk().propertyValidator("eventAction",cdk().validateString)(properties.eventAction)),errors.wrap('supplied properties not correct for "CompromisedCredentialsActionsTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyValidator(properties).assertSuccess(),{EventAction:cdk().stringToCloudFormation(properties.eventAction)}):properties}function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyFromCloudFormation(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("eventAction","EventAction",properties.EventAction!=null?cfn_parse().FromCloudFormation.getString(properties.EventAction):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyValidator(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("actions",cdk().requiredValidator)(properties.actions)),errors.collect(cdk().propertyValidator("actions",CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyValidator)(properties.actions)),errors.collect(cdk().propertyValidator("eventFilter",cdk().listValidator(cdk().validateString))(properties.eventFilter)),errors.wrap('supplied properties not correct for "CompromisedCredentialsRiskConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyValidator(properties).assertSuccess(),{Actions:convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyToCloudFormation(properties.actions),EventFilter:cdk().listMapper(cdk().stringToCloudFormation)(properties.eventFilter)}):properties}function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyFromCloudFormation(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("actions","Actions",properties.Actions!=null?CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyFromCloudFormation(properties.Actions):void 0),ret.addPropertyResult("eventFilter","EventFilter",properties.EventFilter!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EventFilter):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator(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("eventAction",cdk().requiredValidator)(properties.eventAction)),errors.collect(cdk().propertyValidator("eventAction",cdk().validateString)(properties.eventAction)),errors.collect(cdk().propertyValidator("notify",cdk().requiredValidator)(properties.notify)),errors.collect(cdk().propertyValidator("notify",cdk().validateBoolean)(properties.notify)),errors.wrap('supplied properties not correct for "AccountTakeoverActionTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator(properties).assertSuccess(),{EventAction:cdk().stringToCloudFormation(properties.eventAction),Notify:cdk().booleanToCloudFormation(properties.notify)}):properties}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(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("eventAction","EventAction",properties.EventAction!=null?cfn_parse().FromCloudFormation.getString(properties.EventAction):void 0),ret.addPropertyResult("notify","Notify",properties.Notify!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Notify):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyValidator(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("highAction",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator)(properties.highAction)),errors.collect(cdk().propertyValidator("lowAction",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator)(properties.lowAction)),errors.collect(cdk().propertyValidator("mediumAction",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator)(properties.mediumAction)),errors.wrap('supplied properties not correct for "AccountTakeoverActionsTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyValidator(properties).assertSuccess(),{HighAction:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties.highAction),LowAction:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties.lowAction),MediumAction:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties.mediumAction)}):properties}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyFromCloudFormation(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("highAction","HighAction",properties.HighAction!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(properties.HighAction):void 0),ret.addPropertyResult("lowAction","LowAction",properties.LowAction!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(properties.LowAction):void 0),ret.addPropertyResult("mediumAction","MediumAction",properties.MediumAction!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(properties.MediumAction):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator(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("htmlBody",cdk().validateString)(properties.htmlBody)),errors.collect(cdk().propertyValidator("subject",cdk().requiredValidator)(properties.subject)),errors.collect(cdk().propertyValidator("subject",cdk().validateString)(properties.subject)),errors.collect(cdk().propertyValidator("textBody",cdk().validateString)(properties.textBody)),errors.wrap('supplied properties not correct for "NotifyEmailTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator(properties).assertSuccess(),{HtmlBody:cdk().stringToCloudFormation(properties.htmlBody),Subject:cdk().stringToCloudFormation(properties.subject),TextBody:cdk().stringToCloudFormation(properties.textBody)}):properties}function CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(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("htmlBody","HtmlBody",properties.HtmlBody!=null?cfn_parse().FromCloudFormation.getString(properties.HtmlBody):void 0),ret.addPropertyResult("subject","Subject",properties.Subject!=null?cfn_parse().FromCloudFormation.getString(properties.Subject):void 0),ret.addPropertyResult("textBody","TextBody",properties.TextBody!=null?cfn_parse().FromCloudFormation.getString(properties.TextBody):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyValidator(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("blockEmail",CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator)(properties.blockEmail)),errors.collect(cdk().propertyValidator("from",cdk().validateString)(properties.from)),errors.collect(cdk().propertyValidator("mfaEmail",CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator)(properties.mfaEmail)),errors.collect(cdk().propertyValidator("noActionEmail",CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator)(properties.noActionEmail)),errors.collect(cdk().propertyValidator("replyTo",cdk().validateString)(properties.replyTo)),errors.collect(cdk().propertyValidator("sourceArn",cdk().requiredValidator)(properties.sourceArn)),errors.collect(cdk().propertyValidator("sourceArn",cdk().validateString)(properties.sourceArn)),errors.wrap('supplied properties not correct for "NotifyConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyValidator(properties).assertSuccess(),{BlockEmail:convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties.blockEmail),From:cdk().stringToCloudFormation(properties.from),MfaEmail:convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties.mfaEmail),NoActionEmail:convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties.noActionEmail),ReplyTo:cdk().stringToCloudFormation(properties.replyTo),SourceArn:cdk().stringToCloudFormation(properties.sourceArn)}):properties}function CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyFromCloudFormation(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("blockEmail","BlockEmail",properties.BlockEmail!=null?CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(properties.BlockEmail):void 0),ret.addPropertyResult("from","From",properties.From!=null?cfn_parse().FromCloudFormation.getString(properties.From):void 0),ret.addPropertyResult("mfaEmail","MfaEmail",properties.MfaEmail!=null?CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(properties.MfaEmail):void 0),ret.addPropertyResult("noActionEmail","NoActionEmail",properties.NoActionEmail!=null?CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(properties.NoActionEmail):void 0),ret.addPropertyResult("replyTo","ReplyTo",properties.ReplyTo!=null?cfn_parse().FromCloudFormation.getString(properties.ReplyTo):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyValidator(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("actions",cdk().requiredValidator)(properties.actions)),errors.collect(cdk().propertyValidator("actions",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyValidator)(properties.actions)),errors.collect(cdk().propertyValidator("notifyConfiguration",CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyValidator)(properties.notifyConfiguration)),errors.wrap('supplied properties not correct for "AccountTakeoverRiskConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyValidator(properties).assertSuccess(),{Actions:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyToCloudFormation(properties.actions),NotifyConfiguration:convertCfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyToCloudFormation(properties.notifyConfiguration)}):properties}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyFromCloudFormation(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("actions","Actions",properties.Actions!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyFromCloudFormation(properties.Actions):void 0),ret.addPropertyResult("notifyConfiguration","NotifyConfiguration",properties.NotifyConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyFromCloudFormation(properties.NotifyConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyValidator(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("blockedIpRangeList",cdk().listValidator(cdk().validateString))(properties.blockedIpRangeList)),errors.collect(cdk().propertyValidator("skippedIpRangeList",cdk().listValidator(cdk().validateString))(properties.skippedIpRangeList)),errors.wrap('supplied properties not correct for "RiskExceptionConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyValidator(properties).assertSuccess(),{BlockedIPRangeList:cdk().listMapper(cdk().stringToCloudFormation)(properties.blockedIpRangeList),SkippedIPRangeList:cdk().listMapper(cdk().stringToCloudFormation)(properties.skippedIpRangeList)}):properties}function CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyFromCloudFormation(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("blockedIpRangeList","BlockedIPRangeList",properties.BlockedIPRangeList!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.BlockedIPRangeList):void 0),ret.addPropertyResult("skippedIpRangeList","SkippedIPRangeList",properties.SkippedIPRangeList!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SkippedIPRangeList):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentPropsValidator(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("accountTakeoverRiskConfiguration",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyValidator)(properties.accountTakeoverRiskConfiguration)),errors.collect(cdk().propertyValidator("clientId",cdk().requiredValidator)(properties.clientId)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("compromisedCredentialsRiskConfiguration",CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyValidator)(properties.compromisedCredentialsRiskConfiguration)),errors.collect(cdk().propertyValidator("riskExceptionConfiguration",CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyValidator)(properties.riskExceptionConfiguration)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolRiskConfigurationAttachmentProps"')}function convertCfnUserPoolRiskConfigurationAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentPropsValidator(properties).assertSuccess(),{AccountTakeoverRiskConfiguration:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyToCloudFormation(properties.accountTakeoverRiskConfiguration),ClientId:cdk().stringToCloudFormation(properties.clientId),CompromisedCredentialsRiskConfiguration:convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyToCloudFormation(properties.compromisedCredentialsRiskConfiguration),RiskExceptionConfiguration:convertCfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyToCloudFormation(properties.riskExceptionConfiguration),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolRiskConfigurationAttachmentPropsFromCloudFormation(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("accountTakeoverRiskConfiguration","AccountTakeoverRiskConfiguration",properties.AccountTakeoverRiskConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyFromCloudFormation(properties.AccountTakeoverRiskConfiguration):void 0),ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("compromisedCredentialsRiskConfiguration","CompromisedCredentialsRiskConfiguration",properties.CompromisedCredentialsRiskConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyFromCloudFormation(properties.CompromisedCredentialsRiskConfiguration):void 0),ret.addPropertyResult("riskExceptionConfiguration","RiskExceptionConfiguration",properties.RiskExceptionConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyFromCloudFormation(properties.RiskExceptionConfiguration):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolUICustomizationAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolUICustomizationAttachment",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolUICustomizationAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolUICustomizationAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolUICustomizationAttachment(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 isCfnUserPoolUICustomizationAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolUICustomizationAttachment.CFN_RESOURCE_TYPE_NAME}_clientId;_css;_userPoolId;cfnPropertyNames={clientId:"ClientId",css:"CSS",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolUICustomizationAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolUICustomizationAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolUICustomizationAttachment),error}cdk().requireProperty(props,"clientId",this),cdk().requireProperty(props,"userPoolId",this),this._clientId=props.clientId,this._css=props.css,this._userPoolId=cdk().getRefProperty(props.userPoolId?.userPoolRef,"userPoolId")??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolUiCustomizationAttachmentRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),clientId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get clientId(){return this._clientId}set clientId(value){cdk().traceProperty(this.node,"ClientId"),this._clientId=value}get css(){return this._css}set css(value){cdk().traceProperty(this.node,"CSS"),this._css=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get cfnProperties(){return{clientId:this._clientId,css:this._css,userPoolId:this._userPoolId}}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",CfnUserPoolUICustomizationAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolUICustomizationAttachmentPropsToCloudFormation(props)}}exports.CfnUserPoolUICustomizationAttachment=CfnUserPoolUICustomizationAttachment;function CfnUserPoolUICustomizationAttachmentPropsValidator(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("css",cdk().validateString)(properties.css)),errors.collect(cdk().propertyValidator("clientId",cdk().requiredValidator)(properties.clientId)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolUICustomizationAttachmentProps"')}function convertCfnUserPoolUICustomizationAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUICustomizationAttachmentPropsValidator(properties).assertSuccess(),{CSS:cdk().stringToCloudFormation(properties.css),ClientId:cdk().stringToCloudFormation(properties.clientId),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolUICustomizationAttachmentPropsFromCloudFormation(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("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("css","CSS",properties.CSS!=null?cfn_parse().FromCloudFormation.getString(properties.CSS):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolUser extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolUser",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolUser";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolUserPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolUser(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 isCfnUserPoolUser(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolUser.CFN_RESOURCE_TYPE_NAME}_clientMetadata;_desiredDeliveryMediums;_forceAliasCreation;_messageAction;_userAttributes;_username;_userPoolId;_validationData;cfnPropertyNames={clientMetadata:"ClientMetadata",desiredDeliveryMediums:"DesiredDeliveryMediums",forceAliasCreation:"ForceAliasCreation",messageAction:"MessageAction",userAttributes:"UserAttributes",username:"Username",userPoolId:"UserPoolId",validationData:"ValidationData"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolUser.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolUserProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolUser),error}cdk().requireProperty(props,"userPoolId",this),this._clientMetadata=props.clientMetadata,this._desiredDeliveryMediums=props.desiredDeliveryMediums,this._forceAliasCreation=props.forceAliasCreation,this._messageAction=props.messageAction,this._userAttributes=props.userAttributes,this._username=props.username,this._userPoolId=cdk().getRefProperty(props.userPoolId?.userPoolRef,"userPoolId")??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string"),this._validationData=props.validationData}get userPoolUserRef(){return{userPoolId:this.userPoolId,username:this.ref}}get clientMetadata(){return this._clientMetadata}set clientMetadata(value){cdk().traceProperty(this.node,"ClientMetadata"),this._clientMetadata=value}get desiredDeliveryMediums(){return this._desiredDeliveryMediums}set desiredDeliveryMediums(value){cdk().traceProperty(this.node,"DesiredDeliveryMediums"),this._desiredDeliveryMediums=value}get forceAliasCreation(){return this._forceAliasCreation}set forceAliasCreation(value){cdk().traceProperty(this.node,"ForceAliasCreation"),this._forceAliasCreation=value}get messageAction(){return this._messageAction}set messageAction(value){cdk().traceProperty(this.node,"MessageAction"),this._messageAction=value}get userAttributes(){return this._userAttributes}set userAttributes(value){cdk().traceProperty(this.node,"UserAttributes"),this._userAttributes=value}get username(){return this._username}set username(value){cdk().traceProperty(this.node,"Username"),this._username=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get validationData(){return this._validationData}set validationData(value){cdk().traceProperty(this.node,"ValidationData"),this._validationData=value}get cfnProperties(){return{clientMetadata:this._clientMetadata,desiredDeliveryMediums:this._desiredDeliveryMediums,forceAliasCreation:this._forceAliasCreation,messageAction:this._messageAction,userAttributes:this._userAttributes,username:this._username,userPoolId:this._userPoolId,validationData:this._validationData}}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",CfnUserPoolUser.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolUserPropsToCloudFormation(props)}}exports.CfnUserPoolUser=CfnUserPoolUser;function CfnUserPoolUserAttributeTypePropertyValidator(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("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "AttributeTypeProperty"')}function convertCfnUserPoolUserAttributeTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserAttributeTypePropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnUserPoolUserAttributeTypePropertyFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUserPropsValidator(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("clientMetadata",cdk().hashValidator(cdk().validateString))(properties.clientMetadata)),errors.collect(cdk().propertyValidator("desiredDeliveryMediums",cdk().listValidator(cdk().validateString))(properties.desiredDeliveryMediums)),errors.collect(cdk().propertyValidator("forceAliasCreation",cdk().validateBoolean)(properties.forceAliasCreation)),errors.collect(cdk().propertyValidator("messageAction",cdk().validateString)(properties.messageAction)),errors.collect(cdk().propertyValidator("userAttributes",cdk().listValidator(CfnUserPoolUserAttributeTypePropertyValidator))(properties.userAttributes)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.collect(cdk().propertyValidator("username",cdk().validateString)(properties.username)),errors.collect(cdk().propertyValidator("validationData",cdk().listValidator(CfnUserPoolUserAttributeTypePropertyValidator))(properties.validationData)),errors.wrap('supplied properties not correct for "CfnUserPoolUserProps"')}function convertCfnUserPoolUserPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserPropsValidator(properties).assertSuccess(),{ClientMetadata:cdk().hashMapper(cdk().stringToCloudFormation)(properties.clientMetadata),DesiredDeliveryMediums:cdk().listMapper(cdk().stringToCloudFormation)(properties.desiredDeliveryMediums),ForceAliasCreation:cdk().booleanToCloudFormation(properties.forceAliasCreation),MessageAction:cdk().stringToCloudFormation(properties.messageAction),UserAttributes:cdk().listMapper(convertCfnUserPoolUserAttributeTypePropertyToCloudFormation)(properties.userAttributes),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId),Username:cdk().stringToCloudFormation(properties.username),ValidationData:cdk().listMapper(convertCfnUserPoolUserAttributeTypePropertyToCloudFormation)(properties.validationData)}):properties}function CfnUserPoolUserPropsFromCloudFormation(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("clientMetadata","ClientMetadata",properties.ClientMetadata!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.ClientMetadata):void 0),ret.addPropertyResult("desiredDeliveryMediums","DesiredDeliveryMediums",properties.DesiredDeliveryMediums!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.DesiredDeliveryMediums):void 0),ret.addPropertyResult("forceAliasCreation","ForceAliasCreation",properties.ForceAliasCreation!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ForceAliasCreation):void 0),ret.addPropertyResult("messageAction","MessageAction",properties.MessageAction!=null?cfn_parse().FromCloudFormation.getString(properties.MessageAction):void 0),ret.addPropertyResult("userAttributes","UserAttributes",properties.UserAttributes!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolUserAttributeTypePropertyFromCloudFormation)(properties.UserAttributes):void 0),ret.addPropertyResult("username","Username",properties.Username!=null?cfn_parse().FromCloudFormation.getString(properties.Username):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addPropertyResult("validationData","ValidationData",properties.ValidationData!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolUserAttributeTypePropertyFromCloudFormation)(properties.ValidationData):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolUserToGroupAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolUserToGroupAttachment",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolUserToGroupAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolUserToGroupAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUserPoolUserToGroupAttachment(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 isCfnUserPoolUserToGroupAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolUserToGroupAttachment.CFN_RESOURCE_TYPE_NAME}_groupName;_username;_userPoolId;cfnPropertyNames={groupName:"GroupName",username:"Username",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnUserPoolUserToGroupAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolUserToGroupAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolUserToGroupAttachment),error}cdk().requireProperty(props,"groupName",this),cdk().requireProperty(props,"username",this),cdk().requireProperty(props,"userPoolId",this),this._groupName=cdk().getRefProperty(props.groupName?.userPoolGroupRef,"groupName")??cdk().ensureStringOrUndefined(props.groupName,"groupName","cognito.IUserPoolGroupRef | string"),this._username=cdk().getRefProperty(props.username?.userPoolUserRef,"username")??cdk().ensureStringOrUndefined(props.username,"username","cognito.IUserPoolUserRef | string"),this._userPoolId=cdk().getRefProperty(props.userPoolId?.userPoolRef,"userPoolId")??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolUserToGroupAttachmentRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),groupName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref)),username:cdk().Fn.select(2,cdk().Fn.split("|",this.ref))}}get groupName(){return this._groupName}set groupName(value){cdk().traceProperty(this.node,"GroupName"),this._groupName=value}get username(){return this._username}set username(value){cdk().traceProperty(this.node,"Username"),this._username=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get cfnProperties(){return{groupName:this._groupName,username:this._username,userPoolId:this._userPoolId}}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",CfnUserPoolUserToGroupAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolUserToGroupAttachmentPropsToCloudFormation(props)}}exports.CfnUserPoolUserToGroupAttachment=CfnUserPoolUserToGroupAttachment;function CfnUserPoolUserToGroupAttachmentPropsValidator(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("groupName",cdk().requiredValidator)(properties.groupName)),errors.collect(cdk().propertyValidator("groupName",cdk().validateString)(properties.groupName)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.collect(cdk().propertyValidator("username",cdk().requiredValidator)(properties.username)),errors.collect(cdk().propertyValidator("username",cdk().validateString)(properties.username)),errors.wrap('supplied properties not correct for "CfnUserPoolUserToGroupAttachmentProps"')}function convertCfnUserPoolUserToGroupAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserToGroupAttachmentPropsValidator(properties).assertSuccess(),{GroupName:cdk().stringToCloudFormation(properties.groupName),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId),Username:cdk().stringToCloudFormation(properties.username)}):properties}function CfnUserPoolUserToGroupAttachmentPropsFromCloudFormation(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("groupName","GroupName",properties.GroupName!=null?cfn_parse().FromCloudFormation.getString(properties.GroupName):void 0),ret.addPropertyResult("username","Username",properties.Username!=null?cfn_parse().FromCloudFormation.getString(properties.Username):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLogDeliveryConfiguration extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnLogDeliveryConfiguration",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::LogDeliveryConfiguration";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLogDeliveryConfigurationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLogDeliveryConfiguration(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 isCfnLogDeliveryConfiguration(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLogDeliveryConfiguration.CFN_RESOURCE_TYPE_NAME}_logConfigurations;_userPoolId;cfnPropertyNames={logConfigurations:"LogConfigurations",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnLogDeliveryConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnLogDeliveryConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLogDeliveryConfiguration),error}cdk().requireProperty(props,"userPoolId",this),this._logConfigurations=props.logConfigurations,this._userPoolId=props.userPoolId}get logDeliveryConfigurationRef(){return{logDeliveryConfigurationId:this.ref}}get logConfigurations(){return this._logConfigurations}set logConfigurations(value){cdk().traceProperty(this.node,"LogConfigurations"),this._logConfigurations=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{logConfigurations:this._logConfigurations,userPoolId:this._userPoolId}}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",CfnLogDeliveryConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLogDeliveryConfigurationPropsToCloudFormation(props)}}exports.CfnLogDeliveryConfiguration=CfnLogDeliveryConfiguration;function CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyValidator(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("logGroupArn",cdk().validateString)(properties.logGroupArn)),errors.wrap('supplied properties not correct for "CloudWatchLogsConfigurationProperty"')}function convertCfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyValidator(properties).assertSuccess(),{LogGroupArn:cdk().stringToCloudFormation(properties.logGroupArn)}):properties}function CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyFromCloudFormation(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("logGroupArn","LogGroupArn",properties.LogGroupArn!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroupArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationS3ConfigurationPropertyValidator(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("bucketArn",cdk().validateString)(properties.bucketArn)),errors.wrap('supplied properties not correct for "S3ConfigurationProperty"')}function convertCfnLogDeliveryConfigurationS3ConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationS3ConfigurationPropertyValidator(properties).assertSuccess(),{BucketArn:cdk().stringToCloudFormation(properties.bucketArn)}):properties}function CfnLogDeliveryConfigurationS3ConfigurationPropertyFromCloudFormation(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("bucketArn","BucketArn",properties.BucketArn!=null?cfn_parse().FromCloudFormation.getString(properties.BucketArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationFirehoseConfigurationPropertyValidator(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("streamArn",cdk().validateString)(properties.streamArn)),errors.wrap('supplied properties not correct for "FirehoseConfigurationProperty"')}function convertCfnLogDeliveryConfigurationFirehoseConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationFirehoseConfigurationPropertyValidator(properties).assertSuccess(),{StreamArn:cdk().stringToCloudFormation(properties.streamArn)}):properties}function CfnLogDeliveryConfigurationFirehoseConfigurationPropertyFromCloudFormation(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("streamArn","StreamArn",properties.StreamArn!=null?cfn_parse().FromCloudFormation.getString(properties.StreamArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationLogConfigurationPropertyValidator(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("cloudWatchLogsConfiguration",CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyValidator)(properties.cloudWatchLogsConfiguration)),errors.collect(cdk().propertyValidator("eventSource",cdk().validateString)(properties.eventSource)),errors.collect(cdk().propertyValidator("firehoseConfiguration",CfnLogDeliveryConfigurationFirehoseConfigurationPropertyValidator)(properties.firehoseConfiguration)),errors.collect(cdk().propertyValidator("logLevel",cdk().validateString)(properties.logLevel)),errors.collect(cdk().propertyValidator("s3Configuration",CfnLogDeliveryConfigurationS3ConfigurationPropertyValidator)(properties.s3Configuration)),errors.wrap('supplied properties not correct for "LogConfigurationProperty"')}function convertCfnLogDeliveryConfigurationLogConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationLogConfigurationPropertyValidator(properties).assertSuccess(),{CloudWatchLogsConfiguration:convertCfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyToCloudFormation(properties.cloudWatchLogsConfiguration),EventSource:cdk().stringToCloudFormation(properties.eventSource),FirehoseConfiguration:convertCfnLogDeliveryConfigurationFirehoseConfigurationPropertyToCloudFormation(properties.firehoseConfiguration),LogLevel:cdk().stringToCloudFormation(properties.logLevel),S3Configuration:convertCfnLogDeliveryConfigurationS3ConfigurationPropertyToCloudFormation(properties.s3Configuration)}):properties}function CfnLogDeliveryConfigurationLogConfigurationPropertyFromCloudFormation(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("cloudWatchLogsConfiguration","CloudWatchLogsConfiguration",properties.CloudWatchLogsConfiguration!=null?CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyFromCloudFormation(properties.CloudWatchLogsConfiguration):void 0),ret.addPropertyResult("eventSource","EventSource",properties.EventSource!=null?cfn_parse().FromCloudFormation.getString(properties.EventSource):void 0),ret.addPropertyResult("firehoseConfiguration","FirehoseConfiguration",properties.FirehoseConfiguration!=null?CfnLogDeliveryConfigurationFirehoseConfigurationPropertyFromCloudFormation(properties.FirehoseConfiguration):void 0),ret.addPropertyResult("logLevel","LogLevel",properties.LogLevel!=null?cfn_parse().FromCloudFormation.getString(properties.LogLevel):void 0),ret.addPropertyResult("s3Configuration","S3Configuration",properties.S3Configuration!=null?CfnLogDeliveryConfigurationS3ConfigurationPropertyFromCloudFormation(properties.S3Configuration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationPropsValidator(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("logConfigurations",cdk().listValidator(CfnLogDeliveryConfigurationLogConfigurationPropertyValidator))(properties.logConfigurations)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnLogDeliveryConfigurationProps"')}function convertCfnLogDeliveryConfigurationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationPropsValidator(properties).assertSuccess(),{LogConfigurations:cdk().listMapper(convertCfnLogDeliveryConfigurationLogConfigurationPropertyToCloudFormation)(properties.logConfigurations),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnLogDeliveryConfigurationPropsFromCloudFormation(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("logConfigurations","LogConfigurations",properties.LogConfigurations!=null?cfn_parse().FromCloudFormation.getArray(CfnLogDeliveryConfigurationLogConfigurationPropertyFromCloudFormation)(properties.LogConfigurations):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnManagedLoginBranding extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnManagedLoginBranding",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::ManagedLoginBranding";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnManagedLoginBrandingPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnManagedLoginBranding(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 isCfnManagedLoginBranding(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnManagedLoginBranding.CFN_RESOURCE_TYPE_NAME}_assets;_clientId;_returnMergedResources;_settings;_useCognitoProvidedValues;_userPoolId;cfnPropertyNames={assets:"Assets",clientId:"ClientId",returnMergedResources:"ReturnMergedResources",settings:"Settings",useCognitoProvidedValues:"UseCognitoProvidedValues",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnManagedLoginBranding.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnManagedLoginBrandingProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnManagedLoginBranding),error}cdk().requireProperty(props,"userPoolId",this),this._assets=props.assets,this._clientId=props.clientId,this._returnMergedResources=props.returnMergedResources,this._settings=props.settings,this._useCognitoProvidedValues=props.useCognitoProvidedValues,this._userPoolId=props.userPoolId}get managedLoginBrandingRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),managedLoginBrandingId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get assets(){return this._assets}set assets(value){cdk().traceProperty(this.node,"Assets"),this._assets=value}get clientId(){return this._clientId}set clientId(value){cdk().traceProperty(this.node,"ClientId"),this._clientId=value}get returnMergedResources(){return this._returnMergedResources}set returnMergedResources(value){cdk().traceProperty(this.node,"ReturnMergedResources"),this._returnMergedResources=value}get settings(){return this._settings}set settings(value){cdk().traceProperty(this.node,"Settings"),this._settings=value}get useCognitoProvidedValues(){return this._useCognitoProvidedValues}set useCognitoProvidedValues(value){cdk().traceProperty(this.node,"UseCognitoProvidedValues"),this._useCognitoProvidedValues=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get attrManagedLoginBrandingId(){return cdk().Token.asString(this.getAtt("ManagedLoginBrandingId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{assets:this._assets,clientId:this._clientId,returnMergedResources:this._returnMergedResources,settings:this._settings,useCognitoProvidedValues:this._useCognitoProvidedValues,userPoolId:this._userPoolId}}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",CfnManagedLoginBranding.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnManagedLoginBrandingPropsToCloudFormation(props)}}exports.CfnManagedLoginBranding=CfnManagedLoginBranding;function CfnManagedLoginBrandingAssetTypePropertyValidator(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("bytes",cdk().validateString)(properties.bytes)),errors.collect(cdk().propertyValidator("category",cdk().requiredValidator)(properties.category)),errors.collect(cdk().propertyValidator("category",cdk().validateString)(properties.category)),errors.collect(cdk().propertyValidator("colorMode",cdk().requiredValidator)(properties.colorMode)),errors.collect(cdk().propertyValidator("colorMode",cdk().validateString)(properties.colorMode)),errors.collect(cdk().propertyValidator("extension",cdk().requiredValidator)(properties.extension)),errors.collect(cdk().propertyValidator("extension",cdk().validateString)(properties.extension)),errors.collect(cdk().propertyValidator("resourceId",cdk().validateString)(properties.resourceId)),errors.wrap('supplied properties not correct for "AssetTypeProperty"')}function convertCfnManagedLoginBrandingAssetTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnManagedLoginBrandingAssetTypePropertyValidator(properties).assertSuccess(),{Bytes:cdk().stringToCloudFormation(properties.bytes),Category:cdk().stringToCloudFormation(properties.category),ColorMode:cdk().stringToCloudFormation(properties.colorMode),Extension:cdk().stringToCloudFormation(properties.extension),ResourceId:cdk().stringToCloudFormation(properties.resourceId)}):properties}function CfnManagedLoginBrandingAssetTypePropertyFromCloudFormation(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("bytes","Bytes",properties.Bytes!=null?cfn_parse().FromCloudFormation.getString(properties.Bytes):void 0),ret.addPropertyResult("category","Category",properties.Category!=null?cfn_parse().FromCloudFormation.getString(properties.Category):void 0),ret.addPropertyResult("colorMode","ColorMode",properties.ColorMode!=null?cfn_parse().FromCloudFormation.getString(properties.ColorMode):void 0),ret.addPropertyResult("extension","Extension",properties.Extension!=null?cfn_parse().FromCloudFormation.getString(properties.Extension):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnManagedLoginBrandingPropsValidator(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("assets",cdk().listValidator(CfnManagedLoginBrandingAssetTypePropertyValidator))(properties.assets)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("returnMergedResources",cdk().validateBoolean)(properties.returnMergedResources)),errors.collect(cdk().propertyValidator("settings",cdk().validateObject)(properties.settings)),errors.collect(cdk().propertyValidator("useCognitoProvidedValues",cdk().validateBoolean)(properties.useCognitoProvidedValues)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnManagedLoginBrandingProps"')}function convertCfnManagedLoginBrandingPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnManagedLoginBrandingPropsValidator(properties).assertSuccess(),{Assets:cdk().listMapper(convertCfnManagedLoginBrandingAssetTypePropertyToCloudFormation)(properties.assets),ClientId:cdk().stringToCloudFormation(properties.clientId),ReturnMergedResources:cdk().booleanToCloudFormation(properties.returnMergedResources),Settings:cdk().objectToCloudFormation(properties.settings),UseCognitoProvidedValues:cdk().booleanToCloudFormation(properties.useCognitoProvidedValues),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnManagedLoginBrandingPropsFromCloudFormation(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("assets","Assets",properties.Assets!=null?cfn_parse().FromCloudFormation.getArray(CfnManagedLoginBrandingAssetTypePropertyFromCloudFormation)(properties.Assets):void 0),ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("returnMergedResources","ReturnMergedResources",properties.ReturnMergedResources!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ReturnMergedResources):void 0),ret.addPropertyResult("settings","Settings",properties.Settings!=null?cfn_parse().FromCloudFormation.getAny(properties.Settings):void 0),ret.addPropertyResult("useCognitoProvidedValues","UseCognitoProvidedValues",properties.UseCognitoProvidedValues!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UseCognitoProvidedValues):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnTerms extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnTerms",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::Terms";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTermsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnTerms(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 isCfnTerms(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnTerms.CFN_RESOURCE_TYPE_NAME}_clientId;_enforcement;_links;_termsName;_termsSource;_userPoolId;cfnPropertyNames={clientId:"ClientId",enforcement:"Enforcement",links:"Links",termsName:"TermsName",termsSource:"TermsSource",userPoolId:"UserPoolId"};constructor(scope,id,props){super(scope,id,{type:CfnTerms.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnTermsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTerms),error}cdk().requireProperty(props,"enforcement",this),cdk().requireProperty(props,"links",this),cdk().requireProperty(props,"termsName",this),cdk().requireProperty(props,"termsSource",this),cdk().requireProperty(props,"userPoolId",this),this._clientId=props.clientId,this._enforcement=props.enforcement,this._links=props.links,this._termsName=props.termsName,this._termsSource=props.termsSource,this._userPoolId=props.userPoolId}get termsRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),termsId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get clientId(){return this._clientId}set clientId(value){cdk().traceProperty(this.node,"ClientId"),this._clientId=value}get enforcement(){return this._enforcement}set enforcement(value){cdk().traceProperty(this.node,"Enforcement"),this._enforcement=value}get links(){return this._links}set links(value){cdk().traceProperty(this.node,"Links"),this._links=value}get termsName(){return this._termsName}set termsName(value){cdk().traceProperty(this.node,"TermsName"),this._termsName=value}get termsSource(){return this._termsSource}set termsSource(value){cdk().traceProperty(this.node,"TermsSource"),this._termsSource=value}get userPoolId(){return this._userPoolId}set userPoolId(value){cdk().traceProperty(this.node,"UserPoolId"),this._userPoolId=value}get attrTermsId(){return cdk().Token.asString(this.getAtt("TermsId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{clientId:this._clientId,enforcement:this._enforcement,links:this._links,termsName:this._termsName,termsSource:this._termsSource,userPoolId:this._userPoolId}}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",CfnTerms.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTermsPropsToCloudFormation(props)}}exports.CfnTerms=CfnTerms;function CfnTermsPropsValidator(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("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("enforcement",cdk().requiredValidator)(properties.enforcement)),errors.collect(cdk().propertyValidator("enforcement",cdk().validateString)(properties.enforcement)),errors.collect(cdk().propertyValidator("links",cdk().requiredValidator)(properties.links)),errors.collect(cdk().propertyValidator("links",cdk().hashValidator(cdk().validateString))(properties.links)),errors.collect(cdk().propertyValidator("termsName",cdk().requiredValidator)(properties.termsName)),errors.collect(cdk().propertyValidator("termsName",cdk().validateString)(properties.termsName)),errors.collect(cdk().propertyValidator("termsSource",cdk().requiredValidator)(properties.termsSource)),errors.collect(cdk().propertyValidator("termsSource",cdk().validateString)(properties.termsSource)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnTermsProps"')}function convertCfnTermsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTermsPropsValidator(properties).assertSuccess(),{ClientId:cdk().stringToCloudFormation(properties.clientId),Enforcement:cdk().stringToCloudFormation(properties.enforcement),Links:cdk().hashMapper(cdk().stringToCloudFormation)(properties.links),TermsName:cdk().stringToCloudFormation(properties.termsName),TermsSource:cdk().stringToCloudFormation(properties.termsSource),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnTermsPropsFromCloudFormation(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("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("enforcement","Enforcement",properties.Enforcement!=null?cfn_parse().FromCloudFormation.getString(properties.Enforcement):void 0),ret.addPropertyResult("links","Links",properties.Links!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Links):void 0),ret.addPropertyResult("termsName","TermsName",properties.TermsName!=null?cfn_parse().FromCloudFormation.getString(properties.TermsName):void 0),ret.addPropertyResult("termsSource","TermsSource",properties.TermsSource!=null?cfn_parse().FromCloudFormation.getString(properties.TermsSource):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}